recurly / recurly-client-php

Recurly PHP Client
http://recurly.com
MIT License
172 stars 93 forks source link

V2 add support for Apply Credit Balance to existing invoice feature #733

Closed judith closed 1 year ago

judith commented 1 year ago

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.