-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds specific tax amount overrides to SubscriptionPricing and Checkou…
…tPricing - Adds amount param to tax methods on each - Adds tax_amount_now and tax_amount_next input detection to Attachment classes - Adds tax calculation overrides to Calculations classes When amount is specified, all tax calculations are overridden. Vat numbers, tax codes, and exemption rules are ignored. #### Examples ```js const subscriptionPricing = recurly.Pricing.Subscription(); subscriptionPricing .plan('basic') .tax({ amount: { now: '20.01', next: '5.09' } }).done(function (price) { price.now.tax; // '20.01' price.next.tax; // '5.09' }); ``` ```js const checkoutPricing = recurly.Pricing.Checkout(); checkoutPricing .subscription(subscriptionPricing) .adjustment({ amount: '5' }) .taxes({ amount: { now: '20.01', next: '5.09' } }).done(function (price) { price.now.taxes; // '20.01' price.next.taxes; // '5.09' }); ```
- Loading branch information
1 parent
f5cb65d
commit 51bc103
Showing
13 changed files
with
271 additions
and
20 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
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
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
Oops, something went wrong.