Skip to content

Commit

Permalink
Added support for discount line items
Browse files Browse the repository at this point in the history
* invoices now support a discounts array
* discount line items support a description and a percentage or amount
* renamed balance_due, total_paid, and remaining_balance to match
  invoice view.
  • Loading branch information
akinsey committed Jul 8, 2014
1 parent a575c30 commit d524db2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/barontester/testinvoices/metadataid.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
"line_items": [
{
"description": "Line Item #1",
"quantity": 1,
"quantity": 2,
"amount": 50
}
],
"discounts": [
{
"description": "Discount Item #1",
"percentage": 50
}
],
"webhooks":{
"token": "token",
"paid": {"url": "http://localhost:9242/paid"},
Expand Down

0 comments on commit d524db2

Please sign in to comment.