Skip to content

Instantly share code, notes, and snippets.

@henzard
Created April 21, 2016 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henzard/a741b4357c2639734918a033851b77fd to your computer and use it in GitHub Desktop.
Save henzard/a741b4357c2639734918a033851b77fd to your computer and use it in GitHub Desktop.
var invoice = Api.Create(new Invoice
{
Contact = new Contact { Name = "ABC Limited" },
Type = InvoiceType.AccountsReceivable,
LineItems = new List<LineItem>
{
new LineItem
{
AccountCode = "200",
Description = "Good value item",
UnitAmount = 25.6m,
Quantity = 1m
},
new LineItem
{
AccountCode = "200",
Description = "Another good value item",
UnitAmount = 125.65m,
Quantity = 5m
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment