-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V2 add support for Apply Credit Balance to existing invoice feature
Add new available_credit_balance_in_cents attribute to Recurly_AccountBalance. The available_credit_balance_in_cents attribute is a similar format to the balance_in_cents attribute and contains the total of open balances for credit invoices in each currency. This value is useful when trying to determine if the customer's account has any available credit that can be applied to an existing collectible invoice on the account. Add new applyCreditBalance method to Recurly_Invoice. This action will be available for collectible charge invoices. If the account has available credit it will be applied to pay down the balance on the invoice.
- Loading branch information
Showing
7 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<invoice href="https://api.recurly.com/v2/invoices/1001"> | ||
<account href="https://api.recurly.com/v2/accounts/1"/> | ||
<uuid>012345678901234567890123456789aa</uuid> | ||
<state>paid</state> | ||
<invoice_number type="integer">1001</invoice_number> | ||
<invoice_number_prefix></invoice_number_prefix> | ||
<po_number nil="nil"></po_number> | ||
<vat_number nil="nil"></vat_number> | ||
<subtotal_in_cents type="integer">2995</subtotal_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<total_in_cents type="integer">2995</total_in_cents> | ||
<currency>USD</currency> | ||
<created_at type="datetime">2012-05-28T17:44:13Z</created_at> | ||
<line_items type="array"> | ||
<adjustment href="https://api.recurly.com/v2/adjustments/190357944dad4d461272774dd184a17e" type="charge"> | ||
<account href="https://api.recurly.com/v2/accounts/1"/> | ||
<invoice href="https://api.recurly.com/v2/invoices/1001"/> | ||
<uuid>012345678901234567890123456789ab</uuid> | ||
<state>invoiced</state> | ||
<description>Silver Plan</description> | ||
<accounting_code></accounting_code> | ||
<origin>plan</origin> | ||
<unit_amount_in_cents type="integer">2995</unit_amount_in_cents> | ||
<quantity type="integer">1</quantity> | ||
<discount_in_cents type="integer">0</discount_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<total_in_cents type="integer">2995</total_in_cents> | ||
<currency>USD</currency> | ||
<taxable type="boolean">false</taxable> | ||
<start_date type="datetime">2012-05-28T17:44:13Z</start_date> | ||
<end_date type="datetime">2013-05-28T17:44:13Z</end_date> | ||
<created_at type="datetime">2012-05-28T17:44:13Z</created_at> | ||
</adjustment> | ||
</line_items> | ||
<transactions type="array"> | ||
</transactions> | ||
</invoice> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters