-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from stripe/remi-add-tax-ids
Add support for the TaxId resource and APIs
- Loading branch information
Showing
5 changed files
with
270 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
var StripeResource = require('../StripeResource'); | ||
|
||
/** | ||
* TaxIds is a unique resource in that, upon instantiation, | ||
* requires a customerId, and therefore each of its methods only | ||
* require the taxId argument. | ||
* | ||
* This streamlines the API specifically for the case of accessing a tax id | ||
* on a returned customer object. | ||
* | ||
* E.g. customerObject.tax_ids.retrieve(taxIdId) | ||
* (As opposed to the also-supported stripe.customers.retrieveTaxId(customerId, taxIdId)) | ||
*/ | ||
module.exports = StripeResource.extend({ | ||
path: 'customers/{customerId}/tax_ids', | ||
includeBasic: ['create', 'del', 'list', 'retrieve'], | ||
}); |
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.