https://github.com/invoice-generator/go-invoice-generator-connector
Go Connector to the Invoice-Generator API
https://github.com/invoice-generator/go-invoice-generator-connector
Last synced: 5 months ago
JSON representation
Go Connector to the Invoice-Generator API
- Host: GitHub
- URL: https://github.com/invoice-generator/go-invoice-generator-connector
- Owner: Invoice-Generator
- License: mit
- Created: 2015-02-13T01:42:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T15:43:57.000Z (about 10 years ago)
- Last Synced: 2024-06-21T18:06:44.343Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 11
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-invoice-generator-connector
Go Connector to the Invoice-Generator API
It lets you create a pdf invoice by querying the invoice-generator.com api.
###Example
```Go
r := new(Invoice)
r.From = "parag@invoiced.com"
r.To = "jared@invoiced.com"
r.Date = "January 2nd 2014"
r.Logo = "https://invoiced.com/img/header-logo.png"
r.PaymentTerms = "NET 30"
r.Number = "INV-001"
r.PurchaseOrder = "PO-32422"
items := make([]Item, 1)
item := Item{}
item.Name = "Marketing"
item.Quantity = 221
item.Unit_cost = 50.45
items[0] = item
r.Items = items
r.Discounts = 12.21
r.Tax = 13.11
r.Shipping = 12.20
r.TaxTitle = "Austin Tax"
r.Currency = "UAH"
err := r.Create("/usr/local/pdfstash/bill7.pdf")
if err != nil {
panic(err)
}
```