-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the TaxId resource and APIs
- Loading branch information
1 parent
0d40b87
commit 1f4941f
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_id.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.