stripe 11.17.0 → 11.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/VERSION +1 -1
- package/cjs/StripeMethod.js +1 -6
- package/cjs/autoPagination.js +77 -64
- package/cjs/stripe.core.js +1 -1
- package/esm/StripeMethod.js +1 -6
- package/esm/autoPagination.js +76 -63
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Cards.d.ts +1 -1
- package/types/Charges.d.ts +7 -6
- package/types/Checkout/SessionsResource.d.ts +1 -1
- package/types/InvoiceItemsResource.d.ts +4 -4
- package/types/InvoicesResource.d.ts +6 -6
- package/types/Issuing/Cardholders.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +5 -5
- package/types/PaymentMethods.d.ts +56 -2
- package/types/Prices.d.ts +2 -2
- package/types/PricesResource.d.ts +4 -4
- package/types/ProductsResource.d.ts +2 -2
- package/types/QuotesResource.d.ts +2 -2
- package/types/Refunds.d.ts +1 -1
- package/types/RefundsResource.d.ts +1 -1
- package/types/SubscriptionItemsResource.d.ts +2 -2
- package/types/SubscriptionSchedulesResource.d.ts +4 -4
- package/types/SubscriptionsResource.d.ts +4 -4
- package/types/Tax/Calculations.d.ts +3 -1
- package/types/Tax/CalculationsResource.d.ts +1 -1
- package/types/Tax/Transactions.d.ts +3 -1
- package/types/lib.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 11.18.0 - 2023-04-06
|
|
4
|
+
* [#1738](https://github.com/stripe/stripe-node/pull/1738) Update generated code
|
|
5
|
+
* Add support for new value `link` on enums `Charge.payment_method_details.card.wallet.type` and `PaymentMethod.card.wallet.type`
|
|
6
|
+
* Change `IssuingCardholderCreateParams.type` to be optional
|
|
7
|
+
* Add support for `country` on `PaymentMethod.link`
|
|
8
|
+
* Add support for `status_details` on `PaymentMethod.us_bank_account`
|
|
9
|
+
* [#1747](https://github.com/stripe/stripe-node/pull/1747) (Typescript) remove deprecated properties
|
|
10
|
+
|
|
3
11
|
## 11.17.0 - 2023-03-30
|
|
4
12
|
* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code
|
|
5
13
|
* Remove support for `create` method on resource `Tax.Transaction`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.
|
|
1
|
+
11.18.0
|
package/cjs/StripeMethod.js
CHANGED
|
@@ -29,12 +29,7 @@ function stripeMethod(spec) {
|
|
|
29
29
|
const callback = typeof args[args.length - 1] == 'function' && args.pop();
|
|
30
30
|
spec.urlParams = (0, utils_js_1.extractUrlParams)(spec.fullPath || this.createResourcePathWithSymbols(spec.path || ''));
|
|
31
31
|
const requestPromise = (0, utils_js_1.callbackifyPromiseWithTimeout)(this._makeRequest(args, spec, {}), callback);
|
|
32
|
-
|
|
33
|
-
// interface is subject to change/removal at any time.
|
|
34
|
-
if (spec.methodType === 'list' || spec.methodType === 'search') {
|
|
35
|
-
const autoPaginationMethods = (0, autoPagination_js_1.makeAutoPaginationMethods)(this, args, spec, requestPromise);
|
|
36
|
-
Object.assign(requestPromise, autoPaginationMethods);
|
|
37
|
-
}
|
|
32
|
+
Object.assign(requestPromise, (0, autoPagination_js_1.makeAutoPaginationMethods)(this, args, spec, requestPromise));
|
|
38
33
|
return requestPromise;
|
|
39
34
|
};
|
|
40
35
|
}
|
package/cjs/autoPagination.js
CHANGED
|
@@ -2,72 +2,101 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeAutoPaginationMethods = void 0;
|
|
4
4
|
const utils_js_1 = require("./utils.js");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// an item ID to paginate and is bi-directional.
|
|
14
|
-
//
|
|
15
|
-
// Please note: spec.methodType === 'search' is beta functionality and is
|
|
16
|
-
// subject to change/removal at any time.
|
|
17
|
-
let getNextPagePromise;
|
|
18
|
-
if (spec.methodType === 'search') {
|
|
19
|
-
getNextPagePromise = (pageResult) => {
|
|
20
|
-
if (!pageResult.next_page) {
|
|
21
|
-
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
|
22
|
-
}
|
|
23
|
-
return self._makeRequest(requestArgs, spec, {
|
|
24
|
-
page: pageResult.next_page,
|
|
25
|
-
});
|
|
26
|
-
};
|
|
5
|
+
class StripeIterator {
|
|
6
|
+
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
|
7
|
+
this.index = 0;
|
|
8
|
+
this.pagePromise = firstPagePromise;
|
|
9
|
+
this.promiseCache = { currentPromise: null };
|
|
10
|
+
this.requestArgs = requestArgs;
|
|
11
|
+
this.spec = spec;
|
|
12
|
+
this.stripeResource = stripeResource;
|
|
27
13
|
}
|
|
28
|
-
|
|
29
|
-
getNextPagePromise = (pageResult) => {
|
|
30
|
-
const lastId = getLastId(pageResult, reverseIteration);
|
|
31
|
-
return self._makeRequest(requestArgs, spec, {
|
|
32
|
-
[reverseIteration ? 'ending_before' : 'starting_after']: lastId,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function iterate(pageResult) {
|
|
14
|
+
async iterate(pageResult) {
|
|
37
15
|
if (!(pageResult &&
|
|
38
16
|
pageResult.data &&
|
|
39
17
|
typeof pageResult.data.length === 'number')) {
|
|
40
18
|
throw Error('Unexpected: Stripe API response does not have a well-formed `data` array.');
|
|
41
19
|
}
|
|
42
|
-
|
|
43
|
-
|
|
20
|
+
const reverseIteration = isReverseIteration(this.requestArgs);
|
|
21
|
+
if (this.index < pageResult.data.length) {
|
|
22
|
+
const idx = reverseIteration
|
|
23
|
+
? pageResult.data.length - 1 - this.index
|
|
24
|
+
: this.index;
|
|
44
25
|
const value = pageResult.data[idx];
|
|
45
|
-
|
|
26
|
+
this.index += 1;
|
|
46
27
|
return { value, done: false };
|
|
47
28
|
}
|
|
48
29
|
else if (pageResult.has_more) {
|
|
49
30
|
// Reset counter, request next page, and recurse.
|
|
50
|
-
|
|
51
|
-
pagePromise =
|
|
52
|
-
|
|
31
|
+
this.index = 0;
|
|
32
|
+
this.pagePromise = this.getNextPage(pageResult);
|
|
33
|
+
const nextPageResult = await this.pagePromise;
|
|
34
|
+
return this.iterate(nextPageResult);
|
|
53
35
|
}
|
|
54
|
-
return {
|
|
36
|
+
return { done: true, value: undefined };
|
|
55
37
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
38
|
+
/** @abstract */
|
|
39
|
+
getNextPage(_pageResult) {
|
|
40
|
+
throw new Error('Unimplemented');
|
|
41
|
+
}
|
|
42
|
+
async _next() {
|
|
43
|
+
return this.iterate(await this.pagePromise);
|
|
44
|
+
}
|
|
45
|
+
next() {
|
|
46
|
+
/**
|
|
47
|
+
* If a user calls `.next()` multiple times in parallel,
|
|
48
|
+
* return the same result until something has resolved
|
|
49
|
+
* to prevent page-turning race conditions.
|
|
50
|
+
*/
|
|
51
|
+
if (this.promiseCache.currentPromise) {
|
|
52
|
+
return this.promiseCache.currentPromise;
|
|
53
|
+
}
|
|
54
|
+
const nextPromise = (async () => {
|
|
55
|
+
const ret = await this._next();
|
|
56
|
+
this.promiseCache.currentPromise = null;
|
|
57
|
+
return ret;
|
|
58
|
+
})();
|
|
59
|
+
this.promiseCache.currentPromise = nextPromise;
|
|
60
|
+
return nextPromise;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
class ListIterator extends StripeIterator {
|
|
64
|
+
getNextPage(pageResult) {
|
|
65
|
+
const reverseIteration = isReverseIteration(this.requestArgs);
|
|
66
|
+
const lastId = getLastId(pageResult, reverseIteration);
|
|
67
|
+
return this.stripeResource._makeRequest(this.requestArgs, this.spec, {
|
|
68
|
+
[reverseIteration ? 'ending_before' : 'starting_after']: lastId,
|
|
62
69
|
});
|
|
63
70
|
}
|
|
64
|
-
|
|
71
|
+
}
|
|
72
|
+
class SearchIterator extends StripeIterator {
|
|
73
|
+
getNextPage(pageResult) {
|
|
74
|
+
if (!pageResult.next_page) {
|
|
75
|
+
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
|
76
|
+
}
|
|
77
|
+
return this.stripeResource._makeRequest(this.requestArgs, this.spec, {
|
|
78
|
+
page: pageResult.next_page,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
|
83
|
+
if (spec.methodType === 'search') {
|
|
84
|
+
return makeAutoPaginationMethodsFromIterator(new SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
|
85
|
+
}
|
|
86
|
+
if (spec.methodType === 'list') {
|
|
87
|
+
return makeAutoPaginationMethodsFromIterator(new ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
};
|
|
91
|
+
exports.makeAutoPaginationMethods = makeAutoPaginationMethods;
|
|
92
|
+
const makeAutoPaginationMethodsFromIterator = (iterator) => {
|
|
93
|
+
const autoPagingEach = makeAutoPagingEach((...args) => iterator.next(...args));
|
|
65
94
|
const autoPagingToArray = makeAutoPagingToArray(autoPagingEach);
|
|
66
95
|
const autoPaginationMethods = {
|
|
67
96
|
autoPagingEach,
|
|
68
97
|
autoPagingToArray,
|
|
69
98
|
// Async iterator functions:
|
|
70
|
-
next:
|
|
99
|
+
next: () => iterator.next(),
|
|
71
100
|
return: () => {
|
|
72
101
|
// This is required for `break`.
|
|
73
102
|
return {};
|
|
@@ -77,8 +106,7 @@ function makeAutoPaginationMethods(self, requestArgs, spec, firstPagePromise) {
|
|
|
77
106
|
},
|
|
78
107
|
};
|
|
79
108
|
return autoPaginationMethods;
|
|
80
|
-
}
|
|
81
|
-
exports.makeAutoPaginationMethods = makeAutoPaginationMethods;
|
|
109
|
+
};
|
|
82
110
|
/**
|
|
83
111
|
* ----------------
|
|
84
112
|
* Private Helpers:
|
|
@@ -145,21 +173,6 @@ function getLastId(listResult, reverseIteration) {
|
|
|
145
173
|
}
|
|
146
174
|
return lastId;
|
|
147
175
|
}
|
|
148
|
-
/**
|
|
149
|
-
* If a user calls `.next()` multiple times in parallel,
|
|
150
|
-
* return the same result until something has resolved
|
|
151
|
-
* to prevent page-turning race conditions.
|
|
152
|
-
*/
|
|
153
|
-
function memoizedPromise(promiseCache, cb) {
|
|
154
|
-
if (promiseCache.currentPromise) {
|
|
155
|
-
return promiseCache.currentPromise;
|
|
156
|
-
}
|
|
157
|
-
promiseCache.currentPromise = new Promise(cb).then((ret) => {
|
|
158
|
-
promiseCache.currentPromise = undefined;
|
|
159
|
-
return ret;
|
|
160
|
-
});
|
|
161
|
-
return promiseCache.currentPromise;
|
|
162
|
-
}
|
|
163
176
|
function makeAutoPagingEach(asyncIteratorNext) {
|
|
164
177
|
return function autoPagingEach( /* onItem?, onDone? */) {
|
|
165
178
|
const args = [].slice.call(arguments);
|
|
@@ -215,7 +228,7 @@ function wrapAsyncIteratorWithCallback(asyncIteratorNext, onItem) {
|
|
|
215
228
|
onItem(item, next);
|
|
216
229
|
}).then((shouldContinue) => {
|
|
217
230
|
if (shouldContinue === false) {
|
|
218
|
-
return handleIteration({ done: true });
|
|
231
|
+
return handleIteration({ done: true, value: undefined });
|
|
219
232
|
}
|
|
220
233
|
else {
|
|
221
234
|
return asyncIteratorNext().then(handleIteration);
|
package/cjs/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '11.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '11.18.0';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
38
38
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/esm/StripeMethod.js
CHANGED
|
@@ -26,12 +26,7 @@ export function stripeMethod(spec) {
|
|
|
26
26
|
const callback = typeof args[args.length - 1] == 'function' && args.pop();
|
|
27
27
|
spec.urlParams = extractUrlParams(spec.fullPath || this.createResourcePathWithSymbols(spec.path || ''));
|
|
28
28
|
const requestPromise = callbackifyPromiseWithTimeout(this._makeRequest(args, spec, {}), callback);
|
|
29
|
-
|
|
30
|
-
// interface is subject to change/removal at any time.
|
|
31
|
-
if (spec.methodType === 'list' || spec.methodType === 'search') {
|
|
32
|
-
const autoPaginationMethods = makeAutoPaginationMethods(this, args, spec, requestPromise);
|
|
33
|
-
Object.assign(requestPromise, autoPaginationMethods);
|
|
34
|
-
}
|
|
29
|
+
Object.assign(requestPromise, makeAutoPaginationMethods(this, args, spec, requestPromise));
|
|
35
30
|
return requestPromise;
|
|
36
31
|
};
|
|
37
32
|
}
|
package/esm/autoPagination.js
CHANGED
|
@@ -1,70 +1,98 @@
|
|
|
1
1
|
import { callbackifyPromiseWithTimeout, getDataFromArgs } from './utils.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// an item ID to paginate and is bi-directional.
|
|
11
|
-
//
|
|
12
|
-
// Please note: spec.methodType === 'search' is beta functionality and is
|
|
13
|
-
// subject to change/removal at any time.
|
|
14
|
-
let getNextPagePromise;
|
|
15
|
-
if (spec.methodType === 'search') {
|
|
16
|
-
getNextPagePromise = (pageResult) => {
|
|
17
|
-
if (!pageResult.next_page) {
|
|
18
|
-
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
|
19
|
-
}
|
|
20
|
-
return self._makeRequest(requestArgs, spec, {
|
|
21
|
-
page: pageResult.next_page,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
2
|
+
class StripeIterator {
|
|
3
|
+
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
|
4
|
+
this.index = 0;
|
|
5
|
+
this.pagePromise = firstPagePromise;
|
|
6
|
+
this.promiseCache = { currentPromise: null };
|
|
7
|
+
this.requestArgs = requestArgs;
|
|
8
|
+
this.spec = spec;
|
|
9
|
+
this.stripeResource = stripeResource;
|
|
24
10
|
}
|
|
25
|
-
|
|
26
|
-
getNextPagePromise = (pageResult) => {
|
|
27
|
-
const lastId = getLastId(pageResult, reverseIteration);
|
|
28
|
-
return self._makeRequest(requestArgs, spec, {
|
|
29
|
-
[reverseIteration ? 'ending_before' : 'starting_after']: lastId,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function iterate(pageResult) {
|
|
11
|
+
async iterate(pageResult) {
|
|
34
12
|
if (!(pageResult &&
|
|
35
13
|
pageResult.data &&
|
|
36
14
|
typeof pageResult.data.length === 'number')) {
|
|
37
15
|
throw Error('Unexpected: Stripe API response does not have a well-formed `data` array.');
|
|
38
16
|
}
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
const reverseIteration = isReverseIteration(this.requestArgs);
|
|
18
|
+
if (this.index < pageResult.data.length) {
|
|
19
|
+
const idx = reverseIteration
|
|
20
|
+
? pageResult.data.length - 1 - this.index
|
|
21
|
+
: this.index;
|
|
41
22
|
const value = pageResult.data[idx];
|
|
42
|
-
|
|
23
|
+
this.index += 1;
|
|
43
24
|
return { value, done: false };
|
|
44
25
|
}
|
|
45
26
|
else if (pageResult.has_more) {
|
|
46
27
|
// Reset counter, request next page, and recurse.
|
|
47
|
-
|
|
48
|
-
pagePromise =
|
|
49
|
-
|
|
28
|
+
this.index = 0;
|
|
29
|
+
this.pagePromise = this.getNextPage(pageResult);
|
|
30
|
+
const nextPageResult = await this.pagePromise;
|
|
31
|
+
return this.iterate(nextPageResult);
|
|
50
32
|
}
|
|
51
|
-
return {
|
|
33
|
+
return { done: true, value: undefined };
|
|
52
34
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
/** @abstract */
|
|
36
|
+
getNextPage(_pageResult) {
|
|
37
|
+
throw new Error('Unimplemented');
|
|
38
|
+
}
|
|
39
|
+
async _next() {
|
|
40
|
+
return this.iterate(await this.pagePromise);
|
|
41
|
+
}
|
|
42
|
+
next() {
|
|
43
|
+
/**
|
|
44
|
+
* If a user calls `.next()` multiple times in parallel,
|
|
45
|
+
* return the same result until something has resolved
|
|
46
|
+
* to prevent page-turning race conditions.
|
|
47
|
+
*/
|
|
48
|
+
if (this.promiseCache.currentPromise) {
|
|
49
|
+
return this.promiseCache.currentPromise;
|
|
50
|
+
}
|
|
51
|
+
const nextPromise = (async () => {
|
|
52
|
+
const ret = await this._next();
|
|
53
|
+
this.promiseCache.currentPromise = null;
|
|
54
|
+
return ret;
|
|
55
|
+
})();
|
|
56
|
+
this.promiseCache.currentPromise = nextPromise;
|
|
57
|
+
return nextPromise;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
class ListIterator extends StripeIterator {
|
|
61
|
+
getNextPage(pageResult) {
|
|
62
|
+
const reverseIteration = isReverseIteration(this.requestArgs);
|
|
63
|
+
const lastId = getLastId(pageResult, reverseIteration);
|
|
64
|
+
return this.stripeResource._makeRequest(this.requestArgs, this.spec, {
|
|
65
|
+
[reverseIteration ? 'ending_before' : 'starting_after']: lastId,
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
|
-
|
|
68
|
+
}
|
|
69
|
+
class SearchIterator extends StripeIterator {
|
|
70
|
+
getNextPage(pageResult) {
|
|
71
|
+
if (!pageResult.next_page) {
|
|
72
|
+
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
|
73
|
+
}
|
|
74
|
+
return this.stripeResource._makeRequest(this.requestArgs, this.spec, {
|
|
75
|
+
page: pageResult.next_page,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
|
80
|
+
if (spec.methodType === 'search') {
|
|
81
|
+
return makeAutoPaginationMethodsFromIterator(new SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
|
82
|
+
}
|
|
83
|
+
if (spec.methodType === 'list') {
|
|
84
|
+
return makeAutoPaginationMethodsFromIterator(new ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
};
|
|
88
|
+
const makeAutoPaginationMethodsFromIterator = (iterator) => {
|
|
89
|
+
const autoPagingEach = makeAutoPagingEach((...args) => iterator.next(...args));
|
|
62
90
|
const autoPagingToArray = makeAutoPagingToArray(autoPagingEach);
|
|
63
91
|
const autoPaginationMethods = {
|
|
64
92
|
autoPagingEach,
|
|
65
93
|
autoPagingToArray,
|
|
66
94
|
// Async iterator functions:
|
|
67
|
-
next:
|
|
95
|
+
next: () => iterator.next(),
|
|
68
96
|
return: () => {
|
|
69
97
|
// This is required for `break`.
|
|
70
98
|
return {};
|
|
@@ -74,7 +102,7 @@ export function makeAutoPaginationMethods(self, requestArgs, spec, firstPageProm
|
|
|
74
102
|
},
|
|
75
103
|
};
|
|
76
104
|
return autoPaginationMethods;
|
|
77
|
-
}
|
|
105
|
+
};
|
|
78
106
|
/**
|
|
79
107
|
* ----------------
|
|
80
108
|
* Private Helpers:
|
|
@@ -141,21 +169,6 @@ function getLastId(listResult, reverseIteration) {
|
|
|
141
169
|
}
|
|
142
170
|
return lastId;
|
|
143
171
|
}
|
|
144
|
-
/**
|
|
145
|
-
* If a user calls `.next()` multiple times in parallel,
|
|
146
|
-
* return the same result until something has resolved
|
|
147
|
-
* to prevent page-turning race conditions.
|
|
148
|
-
*/
|
|
149
|
-
function memoizedPromise(promiseCache, cb) {
|
|
150
|
-
if (promiseCache.currentPromise) {
|
|
151
|
-
return promiseCache.currentPromise;
|
|
152
|
-
}
|
|
153
|
-
promiseCache.currentPromise = new Promise(cb).then((ret) => {
|
|
154
|
-
promiseCache.currentPromise = undefined;
|
|
155
|
-
return ret;
|
|
156
|
-
});
|
|
157
|
-
return promiseCache.currentPromise;
|
|
158
|
-
}
|
|
159
172
|
function makeAutoPagingEach(asyncIteratorNext) {
|
|
160
173
|
return function autoPagingEach( /* onItem?, onDone? */) {
|
|
161
174
|
const args = [].slice.call(arguments);
|
|
@@ -211,7 +224,7 @@ function wrapAsyncIteratorWithCallback(asyncIteratorNext, onItem) {
|
|
|
211
224
|
onItem(item, next);
|
|
212
225
|
}).then((shouldContinue) => {
|
|
213
226
|
if (shouldContinue === false) {
|
|
214
|
-
return handleIteration({ done: true });
|
|
227
|
+
return handleIteration({ done: true, value: undefined });
|
|
215
228
|
}
|
|
216
229
|
else {
|
|
217
230
|
return asyncIteratorNext().then(handleIteration);
|
package/esm/stripe.core.js
CHANGED
|
@@ -30,7 +30,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
30
30
|
];
|
|
31
31
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
32
32
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
33
|
-
Stripe.PACKAGE_VERSION = '11.
|
|
33
|
+
Stripe.PACKAGE_VERSION = '11.18.0';
|
|
34
34
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
35
35
|
Stripe.StripeResource = StripeResource;
|
|
36
36
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Cards.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare module 'stripe' {
|
|
|
71
71
|
available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Card brand. Can be `American Express`, `Diners Club`, `Discover`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
74
|
+
* Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
75
75
|
*/
|
|
76
76
|
brand: string;
|
|
77
77
|
|
package/types/Charges.d.ts
CHANGED
|
@@ -693,7 +693,7 @@ declare module 'stripe' {
|
|
|
693
693
|
|
|
694
694
|
interface Card {
|
|
695
695
|
/**
|
|
696
|
-
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
696
|
+
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
697
697
|
*/
|
|
698
698
|
brand: string | null;
|
|
699
699
|
|
|
@@ -767,7 +767,7 @@ declare module 'stripe' {
|
|
|
767
767
|
moto?: boolean | null;
|
|
768
768
|
|
|
769
769
|
/**
|
|
770
|
-
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
770
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
771
771
|
*/
|
|
772
772
|
network: string | null;
|
|
773
773
|
|
|
@@ -891,7 +891,7 @@ declare module 'stripe' {
|
|
|
891
891
|
samsung_pay?: Wallet.SamsungPay;
|
|
892
892
|
|
|
893
893
|
/**
|
|
894
|
-
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, or `
|
|
894
|
+
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
|
|
895
895
|
*/
|
|
896
896
|
type: Wallet.Type;
|
|
897
897
|
|
|
@@ -933,6 +933,7 @@ declare module 'stripe' {
|
|
|
933
933
|
| 'amex_express_checkout'
|
|
934
934
|
| 'apple_pay'
|
|
935
935
|
| 'google_pay'
|
|
936
|
+
| 'link'
|
|
936
937
|
| 'masterpass'
|
|
937
938
|
| 'samsung_pay'
|
|
938
939
|
| 'visa_checkout';
|
|
@@ -968,7 +969,7 @@ declare module 'stripe' {
|
|
|
968
969
|
amount_authorized: number | null;
|
|
969
970
|
|
|
970
971
|
/**
|
|
971
|
-
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
972
|
+
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
972
973
|
*/
|
|
973
974
|
brand: string | null;
|
|
974
975
|
|
|
@@ -1045,7 +1046,7 @@ declare module 'stripe' {
|
|
|
1045
1046
|
last4: string | null;
|
|
1046
1047
|
|
|
1047
1048
|
/**
|
|
1048
|
-
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
1049
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
1049
1050
|
*/
|
|
1050
1051
|
network: string | null;
|
|
1051
1052
|
|
|
@@ -1387,7 +1388,7 @@ declare module 'stripe' {
|
|
|
1387
1388
|
last4: string | null;
|
|
1388
1389
|
|
|
1389
1390
|
/**
|
|
1390
|
-
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
1391
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
1391
1392
|
*/
|
|
1392
1393
|
network: string | null;
|
|
1393
1394
|
|
|
@@ -564,7 +564,7 @@ declare module 'stripe' {
|
|
|
564
564
|
recurring?: PriceData.Recurring;
|
|
565
565
|
|
|
566
566
|
/**
|
|
567
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
567
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
568
568
|
*/
|
|
569
569
|
tax_behavior?: PriceData.TaxBehavior;
|
|
570
570
|
|
|
@@ -74,7 +74,7 @@ declare module 'stripe' {
|
|
|
74
74
|
subscription?: string;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
77
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
78
78
|
*/
|
|
79
79
|
tax_behavior?: InvoiceItemCreateParams.TaxBehavior;
|
|
80
80
|
|
|
@@ -136,7 +136,7 @@ declare module 'stripe' {
|
|
|
136
136
|
product: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
139
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
140
140
|
*/
|
|
141
141
|
tax_behavior?: PriceData.TaxBehavior;
|
|
142
142
|
|
|
@@ -217,7 +217,7 @@ declare module 'stripe' {
|
|
|
217
217
|
quantity?: number;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
220
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
221
221
|
*/
|
|
222
222
|
tax_behavior?: InvoiceItemUpdateParams.TaxBehavior;
|
|
223
223
|
|
|
@@ -279,7 +279,7 @@ declare module 'stripe' {
|
|
|
279
279
|
product: string;
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
282
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
283
283
|
*/
|
|
284
284
|
tax_behavior?: PriceData.TaxBehavior;
|
|
285
285
|
|
|
@@ -1576,7 +1576,7 @@ declare module 'stripe' {
|
|
|
1576
1576
|
quantity?: number;
|
|
1577
1577
|
|
|
1578
1578
|
/**
|
|
1579
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1579
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1580
1580
|
*/
|
|
1581
1581
|
tax_behavior?: InvoiceItem.TaxBehavior;
|
|
1582
1582
|
|
|
@@ -1638,7 +1638,7 @@ declare module 'stripe' {
|
|
|
1638
1638
|
product: string;
|
|
1639
1639
|
|
|
1640
1640
|
/**
|
|
1641
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1641
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1642
1642
|
*/
|
|
1643
1643
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1644
1644
|
|
|
@@ -1741,7 +1741,7 @@ declare module 'stripe' {
|
|
|
1741
1741
|
recurring: PriceData.Recurring;
|
|
1742
1742
|
|
|
1743
1743
|
/**
|
|
1744
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1744
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1745
1745
|
*/
|
|
1746
1746
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1747
1747
|
|
|
@@ -2146,7 +2146,7 @@ declare module 'stripe' {
|
|
|
2146
2146
|
quantity?: number;
|
|
2147
2147
|
|
|
2148
2148
|
/**
|
|
2149
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2149
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2150
2150
|
*/
|
|
2151
2151
|
tax_behavior?: InvoiceItem.TaxBehavior;
|
|
2152
2152
|
|
|
@@ -2208,7 +2208,7 @@ declare module 'stripe' {
|
|
|
2208
2208
|
product: string;
|
|
2209
2209
|
|
|
2210
2210
|
/**
|
|
2211
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2211
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2212
2212
|
*/
|
|
2213
2213
|
tax_behavior?: PriceData.TaxBehavior;
|
|
2214
2214
|
|
|
@@ -2311,7 +2311,7 @@ declare module 'stripe' {
|
|
|
2311
2311
|
recurring: PriceData.Recurring;
|
|
2312
2312
|
|
|
2313
2313
|
/**
|
|
2314
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2314
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
2315
2315
|
*/
|
|
2316
2316
|
tax_behavior?: PriceData.TaxBehavior;
|
|
2317
2317
|
|
|
@@ -74,7 +74,7 @@ declare module 'stripe' {
|
|
|
74
74
|
status: Cardholder.Status;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* One of `individual` or `company`.
|
|
77
|
+
* One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
|
|
78
78
|
*/
|
|
79
79
|
type: Cardholder.Type;
|
|
80
80
|
}
|
|
@@ -14,11 +14,6 @@ declare module 'stripe' {
|
|
|
14
14
|
*/
|
|
15
15
|
name: string;
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
|
|
19
|
-
*/
|
|
20
|
-
type: CardholderCreateParams.Type;
|
|
21
|
-
|
|
22
17
|
/**
|
|
23
18
|
* Additional information about a `company` cardholder.
|
|
24
19
|
*/
|
|
@@ -58,6 +53,11 @@ declare module 'stripe' {
|
|
|
58
53
|
* Specifies whether to permit authorizations on this cardholder's cards. Defaults to `active`.
|
|
59
54
|
*/
|
|
60
55
|
status?: CardholderCreateParams.Status;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
|
|
59
|
+
*/
|
|
60
|
+
type?: CardholderCreateParams.Type;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
namespace CardholderCreateParams {
|
|
@@ -218,7 +218,7 @@ declare module 'stripe' {
|
|
|
218
218
|
|
|
219
219
|
interface Card {
|
|
220
220
|
/**
|
|
221
|
-
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
221
|
+
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
222
222
|
*/
|
|
223
223
|
brand: string;
|
|
224
224
|
|
|
@@ -344,7 +344,7 @@ declare module 'stripe' {
|
|
|
344
344
|
samsung_pay?: Wallet.SamsungPay;
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, or `
|
|
347
|
+
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
|
|
348
348
|
*/
|
|
349
349
|
type: Wallet.Type;
|
|
350
350
|
|
|
@@ -386,6 +386,7 @@ declare module 'stripe' {
|
|
|
386
386
|
| 'amex_express_checkout'
|
|
387
387
|
| 'apple_pay'
|
|
388
388
|
| 'google_pay'
|
|
389
|
+
| 'link'
|
|
389
390
|
| 'masterpass'
|
|
390
391
|
| 'samsung_pay'
|
|
391
392
|
| 'visa_checkout';
|
|
@@ -580,6 +581,12 @@ declare module 'stripe' {
|
|
|
580
581
|
interface Konbini {}
|
|
581
582
|
|
|
582
583
|
interface Link {
|
|
584
|
+
/**
|
|
585
|
+
* Two-letter ISO code representing the funding source (i.e. card, bank) country beneath the Link payment method.
|
|
586
|
+
* You could use this attribute to get a sense of the international breakdown of funding sources you've collected.
|
|
587
|
+
*/
|
|
588
|
+
country?: string;
|
|
589
|
+
|
|
583
590
|
/**
|
|
584
591
|
* Account owner's email address.
|
|
585
592
|
*/
|
|
@@ -768,6 +775,11 @@ declare module 'stripe' {
|
|
|
768
775
|
* Routing number of the bank account.
|
|
769
776
|
*/
|
|
770
777
|
routing_number: string | null;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Contains information about the future reusability of this PaymentMethod.
|
|
781
|
+
*/
|
|
782
|
+
status_details?: UsBankAccount.StatusDetails | null;
|
|
771
783
|
}
|
|
772
784
|
|
|
773
785
|
namespace UsBankAccount {
|
|
@@ -790,6 +802,48 @@ declare module 'stripe' {
|
|
|
790
802
|
namespace Networks {
|
|
791
803
|
type Supported = 'ach' | 'us_domestic_wire';
|
|
792
804
|
}
|
|
805
|
+
|
|
806
|
+
interface StatusDetails {
|
|
807
|
+
blocked?: StatusDetails.Blocked;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
namespace StatusDetails {
|
|
811
|
+
interface Blocked {
|
|
812
|
+
/**
|
|
813
|
+
* The ACH network code that resulted in this block.
|
|
814
|
+
*/
|
|
815
|
+
network_code: Blocked.NetworkCode | null;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* The reason why this PaymentMethod's fingerprint has been blocked
|
|
819
|
+
*/
|
|
820
|
+
reason: Blocked.Reason | null;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
namespace Blocked {
|
|
824
|
+
type NetworkCode =
|
|
825
|
+
| 'R02'
|
|
826
|
+
| 'R03'
|
|
827
|
+
| 'R04'
|
|
828
|
+
| 'R05'
|
|
829
|
+
| 'R07'
|
|
830
|
+
| 'R08'
|
|
831
|
+
| 'R10'
|
|
832
|
+
| 'R11'
|
|
833
|
+
| 'R16'
|
|
834
|
+
| 'R20'
|
|
835
|
+
| 'R29'
|
|
836
|
+
| 'R31';
|
|
837
|
+
|
|
838
|
+
type Reason =
|
|
839
|
+
| 'bank_account_closed'
|
|
840
|
+
| 'bank_account_frozen'
|
|
841
|
+
| 'bank_account_invalid_details'
|
|
842
|
+
| 'bank_account_restricted'
|
|
843
|
+
| 'bank_account_unusable'
|
|
844
|
+
| 'debit_not_authorized';
|
|
845
|
+
}
|
|
846
|
+
}
|
|
793
847
|
}
|
|
794
848
|
|
|
795
849
|
interface WechatPay {}
|
package/types/Prices.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ declare module 'stripe' {
|
|
|
86
86
|
recurring: Price.Recurring | null;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
89
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
90
90
|
*/
|
|
91
91
|
tax_behavior: Price.TaxBehavior | null;
|
|
92
92
|
|
|
@@ -131,7 +131,7 @@ declare module 'stripe' {
|
|
|
131
131
|
custom_unit_amount: CurrencyOptions.CustomUnitAmount | null;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
134
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
135
135
|
*/
|
|
136
136
|
tax_behavior: CurrencyOptions.TaxBehavior | null;
|
|
137
137
|
|
|
@@ -66,7 +66,7 @@ declare module 'stripe' {
|
|
|
66
66
|
recurring?: PriceCreateParams.Recurring;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
69
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
70
70
|
*/
|
|
71
71
|
tax_behavior?: PriceCreateParams.TaxBehavior;
|
|
72
72
|
|
|
@@ -111,7 +111,7 @@ declare module 'stripe' {
|
|
|
111
111
|
custom_unit_amount?: CurrencyOptions.CustomUnitAmount;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
114
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
115
115
|
*/
|
|
116
116
|
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
117
117
|
|
|
@@ -378,7 +378,7 @@ declare module 'stripe' {
|
|
|
378
378
|
recurring?: Stripe.Emptyable<PriceUpdateParams.Recurring>;
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
381
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
382
382
|
*/
|
|
383
383
|
tax_behavior?: PriceUpdateParams.TaxBehavior;
|
|
384
384
|
|
|
@@ -396,7 +396,7 @@ declare module 'stripe' {
|
|
|
396
396
|
custom_unit_amount?: CurrencyOptions.CustomUnitAmount;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
399
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
400
400
|
*/
|
|
401
401
|
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
402
402
|
|
|
@@ -117,7 +117,7 @@ declare module 'stripe' {
|
|
|
117
117
|
recurring?: DefaultPriceData.Recurring;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
120
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
121
121
|
*/
|
|
122
122
|
tax_behavior?: DefaultPriceData.TaxBehavior;
|
|
123
123
|
|
|
@@ -140,7 +140,7 @@ declare module 'stripe' {
|
|
|
140
140
|
custom_unit_amount?: CurrencyOptions.CustomUnitAmount;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
143
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
144
144
|
*/
|
|
145
145
|
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
146
146
|
|
|
@@ -185,7 +185,7 @@ declare module 'stripe' {
|
|
|
185
185
|
recurring?: PriceData.Recurring;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
188
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
189
189
|
*/
|
|
190
190
|
tax_behavior?: PriceData.TaxBehavior;
|
|
191
191
|
|
|
@@ -429,7 +429,7 @@ declare module 'stripe' {
|
|
|
429
429
|
recurring?: PriceData.Recurring;
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
432
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
433
433
|
*/
|
|
434
434
|
tax_behavior?: PriceData.TaxBehavior;
|
|
435
435
|
|
package/types/Refunds.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare module 'stripe' {
|
|
|
61
61
|
failure_reason?: string;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* For payment methods without native refund support (e.g., Konbini, PromptPay), email for the customer to receive refund instructions.
|
|
65
65
|
*/
|
|
66
66
|
instructions_email?: string;
|
|
67
67
|
|
|
@@ -26,7 +26,7 @@ declare module 'stripe' {
|
|
|
26
26
|
expand?: Array<string>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions.
|
|
30
30
|
*/
|
|
31
31
|
instructions_email?: string;
|
|
32
32
|
|
|
@@ -103,7 +103,7 @@ declare module 'stripe' {
|
|
|
103
103
|
recurring: PriceData.Recurring;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
106
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
107
107
|
*/
|
|
108
108
|
tax_behavior?: PriceData.TaxBehavior;
|
|
109
109
|
|
|
@@ -249,7 +249,7 @@ declare module 'stripe' {
|
|
|
249
249
|
recurring: PriceData.Recurring;
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
252
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
253
253
|
*/
|
|
254
254
|
tax_behavior?: PriceData.TaxBehavior;
|
|
255
255
|
|
|
@@ -288,7 +288,7 @@ declare module 'stripe' {
|
|
|
288
288
|
product: string;
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
291
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
292
292
|
*/
|
|
293
293
|
tax_behavior?: PriceData.TaxBehavior;
|
|
294
294
|
|
|
@@ -400,7 +400,7 @@ declare module 'stripe' {
|
|
|
400
400
|
recurring: PriceData.Recurring;
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
403
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
404
404
|
*/
|
|
405
405
|
tax_behavior?: PriceData.TaxBehavior;
|
|
406
406
|
|
|
@@ -743,7 +743,7 @@ declare module 'stripe' {
|
|
|
743
743
|
product: string;
|
|
744
744
|
|
|
745
745
|
/**
|
|
746
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
746
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
747
747
|
*/
|
|
748
748
|
tax_behavior?: PriceData.TaxBehavior;
|
|
749
749
|
|
|
@@ -855,7 +855,7 @@ declare module 'stripe' {
|
|
|
855
855
|
recurring: PriceData.Recurring;
|
|
856
856
|
|
|
857
857
|
/**
|
|
858
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
858
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
859
859
|
*/
|
|
860
860
|
tax_behavior?: PriceData.TaxBehavior;
|
|
861
861
|
|
|
@@ -214,7 +214,7 @@ declare module 'stripe' {
|
|
|
214
214
|
product: string;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
217
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
218
218
|
*/
|
|
219
219
|
tax_behavior?: PriceData.TaxBehavior;
|
|
220
220
|
|
|
@@ -317,7 +317,7 @@ declare module 'stripe' {
|
|
|
317
317
|
recurring: PriceData.Recurring;
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
320
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
321
321
|
*/
|
|
322
322
|
tax_behavior?: PriceData.TaxBehavior;
|
|
323
323
|
|
|
@@ -868,7 +868,7 @@ declare module 'stripe' {
|
|
|
868
868
|
product: string;
|
|
869
869
|
|
|
870
870
|
/**
|
|
871
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
871
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
872
872
|
*/
|
|
873
873
|
tax_behavior?: PriceData.TaxBehavior;
|
|
874
874
|
|
|
@@ -1012,7 +1012,7 @@ declare module 'stripe' {
|
|
|
1012
1012
|
recurring: PriceData.Recurring;
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
1015
|
-
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1015
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1016
1016
|
*/
|
|
1017
1017
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1018
1018
|
|
|
@@ -4,7 +4,9 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Tax {
|
|
6
6
|
/**
|
|
7
|
-
* A Tax
|
|
7
|
+
* A Tax Calculation allows you to calculate the tax to collect from your customer.
|
|
8
|
+
*
|
|
9
|
+
* Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom).
|
|
8
10
|
*/
|
|
9
11
|
interface Calculation {
|
|
10
12
|
/**
|
|
@@ -4,7 +4,9 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Tax {
|
|
6
6
|
/**
|
|
7
|
-
* A Tax
|
|
7
|
+
* A Tax Transaction records the tax collected from or refunded to your customer.
|
|
8
|
+
*
|
|
9
|
+
* Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction).
|
|
8
10
|
*/
|
|
9
11
|
interface Transaction {
|
|
10
12
|
/**
|
package/types/lib.d.ts
CHANGED
|
@@ -118,31 +118,21 @@ declare module 'stripe' {
|
|
|
118
118
|
* For Connect, we recommend using `stripeAccount` instead.
|
|
119
119
|
*/
|
|
120
120
|
apiKey?: string;
|
|
121
|
-
/** @deprecated Please use apiKey instead. */
|
|
122
|
-
api_key?: string;
|
|
123
121
|
|
|
124
122
|
/**
|
|
125
123
|
* See the [idempotency key docs](https://stripe.com/docs/api/idempotent_requests).
|
|
126
124
|
*/
|
|
127
125
|
idempotencyKey?: string;
|
|
128
|
-
/** @deprecated Please use idempotencyKey instead. */
|
|
129
|
-
idempotency_key?: string;
|
|
130
126
|
|
|
131
127
|
/**
|
|
132
128
|
* An account id on whose behalf you wish to make a request.
|
|
133
129
|
*/
|
|
134
130
|
stripeAccount?: string;
|
|
135
|
-
/** @deprecated Please use stripeAccount instead. */
|
|
136
|
-
stripe_account?: string;
|
|
137
131
|
|
|
138
132
|
/**
|
|
139
133
|
* The [API Version](https://stripe.com/docs/upgrades) to use for a given request (e.g., '2020-03-02').
|
|
140
134
|
*/
|
|
141
135
|
apiVersion?: string;
|
|
142
|
-
/** @deprecated Please use apiVersion instead. */
|
|
143
|
-
stripeVersion?: string;
|
|
144
|
-
/** @deprecated Please use stripeVersion instead. */
|
|
145
|
-
stripe_version?: string;
|
|
146
136
|
|
|
147
137
|
/**
|
|
148
138
|
* Specify the number of requests to retry in event of error.
|