stripe 12.7.0 → 12.8.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 +10 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Charges.d.ts +4 -5
- package/types/ChargesResource.d.ts +7 -3
- package/types/Checkout/Sessions.d.ts +25 -2
- package/types/Checkout/SessionsResource.d.ts +38 -1
- package/types/CustomerCashBalanceTransactions.d.ts +21 -2
- package/types/CustomersResource.d.ts +2 -1
- package/types/Invoices.d.ts +1 -1
- package/types/InvoicesResource.d.ts +2 -2
- package/types/Issuing/Cardholders.d.ts +8 -0
- package/types/Issuing/CardholdersResource.d.ts +16 -0
- package/types/PaymentIntents.d.ts +7 -3
- package/types/PaymentIntentsResource.d.ts +15 -6
- package/types/PaymentLinksResource.d.ts +68 -0
- package/types/PaymentMethods.d.ts +36 -0
- package/types/Subscriptions.d.ts +1 -1
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/Tokens.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 12.8.0 - 2023-06-01
|
|
4
|
+
* [#1799](https://github.com/stripe/stripe-node/pull/1799) Update generated code
|
|
5
|
+
* Add support for `numeric` and `text` on `CheckoutSessionCreateParams.custom_fields[]`, `PaymentLinkCreateParams.custom_fields[]`, and `PaymentLinkUpdateParams.custom_fields[]`
|
|
6
|
+
* Add support for new values `aba` and `swift` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `CheckoutSessionCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`
|
|
7
|
+
* Add support for new value `us_bank_transfer` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.type`, `CheckoutSessionCreateParams.payment_method_options.customer_balance.bank_transfer.type`, `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type`
|
|
8
|
+
* Add support for `maximum_length` and `minimum_length` on `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text`
|
|
9
|
+
* Add support for `preferred_locales` on `Issuing.Cardholder`, `IssuingCardholderCreateParams`, and `IssuingCardholderUpdateParams`
|
|
10
|
+
* Add support for `description`, `iin`, and `issuer` on `PaymentMethod.card_present` and `PaymentMethod.interac_present`
|
|
11
|
+
* Add support for `payer_email` on `PaymentMethod.paypal`
|
|
12
|
+
|
|
3
13
|
## 12.7.0 - 2023-05-25
|
|
4
14
|
* [#1797](https://github.com/stripe/stripe-node/pull/1797) Update generated code
|
|
5
15
|
* Add support for `zip_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
12.
|
|
1
|
+
12.8.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '12.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '12.8.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '12.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '12.8.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Charges.d.ts
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Related guide: [Accept a payment with the Charges API](https://stripe.com/docs/payments/accept-a-payment-charges)
|
|
6
|
+
* The `Charge` object represents a single attempt to move money into your Stripe account.
|
|
7
|
+
* PaymentIntent confirmation is the most common way to create Charges, but transferring
|
|
8
|
+
* money to a different Stripe account through Connect also creates Charges.
|
|
9
|
+
* Some legacy payment flows create Charges directly, which is not recommended for new integrations.
|
|
11
10
|
*/
|
|
12
11
|
interface Charge {
|
|
13
12
|
/**
|
|
@@ -346,7 +346,9 @@ declare module 'stripe' {
|
|
|
346
346
|
|
|
347
347
|
class ChargesResource {
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
349
|
+
* Use the [Payment Intents API](https://stripe.com/docs/api/payment_intents) to initiate a new payment instead
|
|
350
|
+
* of using this method. Confirmation of the PaymentIntent creates the Charge
|
|
351
|
+
* object used to request payment, so this method is limited to legacy integrations.
|
|
350
352
|
*/
|
|
351
353
|
create(
|
|
352
354
|
params?: ChargeCreateParams,
|
|
@@ -386,9 +388,11 @@ declare module 'stripe' {
|
|
|
386
388
|
list(options?: RequestOptions): ApiListPromise<Stripe.Charge>;
|
|
387
389
|
|
|
388
390
|
/**
|
|
389
|
-
* Capture the payment of an existing, uncaptured
|
|
391
|
+
* Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
|
390
392
|
*
|
|
391
|
-
* Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold))
|
|
393
|
+
* Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
|
394
|
+
*
|
|
395
|
+
* Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
|
392
396
|
*/
|
|
393
397
|
capture(
|
|
394
398
|
id: string,
|
|
@@ -563,6 +563,16 @@ declare module 'stripe' {
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
interface Numeric {
|
|
566
|
+
/**
|
|
567
|
+
* The maximum character length constraint for the customer's input.
|
|
568
|
+
*/
|
|
569
|
+
maximum_length: number | null;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* The minimum character length requirement for the customer's input.
|
|
573
|
+
*/
|
|
574
|
+
minimum_length: number | null;
|
|
575
|
+
|
|
566
576
|
/**
|
|
567
577
|
* The value entered by the customer, containing only digits.
|
|
568
578
|
*/
|
|
@@ -570,6 +580,16 @@ declare module 'stripe' {
|
|
|
570
580
|
}
|
|
571
581
|
|
|
572
582
|
interface Text {
|
|
583
|
+
/**
|
|
584
|
+
* The maximum character length constraint for the customer's input.
|
|
585
|
+
*/
|
|
586
|
+
maximum_length: number | null;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The minimum character length requirement for the customer's input.
|
|
590
|
+
*/
|
|
591
|
+
minimum_length: number | null;
|
|
592
|
+
|
|
573
593
|
/**
|
|
574
594
|
* The value entered by the customer.
|
|
575
595
|
*/
|
|
@@ -1008,7 +1028,7 @@ declare module 'stripe' {
|
|
|
1008
1028
|
>;
|
|
1009
1029
|
|
|
1010
1030
|
/**
|
|
1011
|
-
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
1031
|
+
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
1012
1032
|
*/
|
|
1013
1033
|
type: BankTransfer.Type | null;
|
|
1014
1034
|
}
|
|
@@ -1026,17 +1046,20 @@ declare module 'stripe' {
|
|
|
1026
1046
|
}
|
|
1027
1047
|
|
|
1028
1048
|
type RequestedAddressType =
|
|
1049
|
+
| 'aba'
|
|
1029
1050
|
| 'iban'
|
|
1030
1051
|
| 'sepa'
|
|
1031
1052
|
| 'sort_code'
|
|
1032
1053
|
| 'spei'
|
|
1054
|
+
| 'swift'
|
|
1033
1055
|
| 'zengin';
|
|
1034
1056
|
|
|
1035
1057
|
type Type =
|
|
1036
1058
|
| 'eu_bank_transfer'
|
|
1037
1059
|
| 'gb_bank_transfer'
|
|
1038
1060
|
| 'jp_bank_transfer'
|
|
1039
|
-
| 'mx_bank_transfer'
|
|
1061
|
+
| 'mx_bank_transfer'
|
|
1062
|
+
| 'us_bank_transfer';
|
|
1040
1063
|
}
|
|
1041
1064
|
}
|
|
1042
1065
|
|
|
@@ -331,11 +331,21 @@ declare module 'stripe' {
|
|
|
331
331
|
*/
|
|
332
332
|
label: CustomField.Label;
|
|
333
333
|
|
|
334
|
+
/**
|
|
335
|
+
* Configuration for `type=numeric` fields.
|
|
336
|
+
*/
|
|
337
|
+
numeric?: CustomField.Numeric;
|
|
338
|
+
|
|
334
339
|
/**
|
|
335
340
|
* Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
336
341
|
*/
|
|
337
342
|
optional?: boolean;
|
|
338
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Configuration for `type=text` fields.
|
|
346
|
+
*/
|
|
347
|
+
text?: CustomField.Text;
|
|
348
|
+
|
|
339
349
|
/**
|
|
340
350
|
* The type of the field.
|
|
341
351
|
*/
|
|
@@ -376,6 +386,30 @@ declare module 'stripe' {
|
|
|
376
386
|
type: 'custom';
|
|
377
387
|
}
|
|
378
388
|
|
|
389
|
+
interface Numeric {
|
|
390
|
+
/**
|
|
391
|
+
* The maximum character length constraint for the customer's input.
|
|
392
|
+
*/
|
|
393
|
+
maximum_length?: number;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The minimum character length requirement for the customer's input.
|
|
397
|
+
*/
|
|
398
|
+
minimum_length?: number;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
interface Text {
|
|
402
|
+
/**
|
|
403
|
+
* The maximum character length constraint for the customer's input.
|
|
404
|
+
*/
|
|
405
|
+
maximum_length?: number;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* The minimum character length requirement for the customer's input.
|
|
409
|
+
*/
|
|
410
|
+
minimum_length?: number;
|
|
411
|
+
}
|
|
412
|
+
|
|
379
413
|
type Type = 'dropdown' | 'numeric' | 'text';
|
|
380
414
|
}
|
|
381
415
|
|
|
@@ -1218,17 +1252,20 @@ declare module 'stripe' {
|
|
|
1218
1252
|
}
|
|
1219
1253
|
|
|
1220
1254
|
type RequestedAddressType =
|
|
1255
|
+
| 'aba'
|
|
1221
1256
|
| 'iban'
|
|
1222
1257
|
| 'sepa'
|
|
1223
1258
|
| 'sort_code'
|
|
1224
1259
|
| 'spei'
|
|
1260
|
+
| 'swift'
|
|
1225
1261
|
| 'zengin';
|
|
1226
1262
|
|
|
1227
1263
|
type Type =
|
|
1228
1264
|
| 'eu_bank_transfer'
|
|
1229
1265
|
| 'gb_bank_transfer'
|
|
1230
1266
|
| 'jp_bank_transfer'
|
|
1231
|
-
| 'mx_bank_transfer'
|
|
1267
|
+
| 'mx_bank_transfer'
|
|
1268
|
+
| 'us_bank_transfer';
|
|
1232
1269
|
}
|
|
1233
1270
|
}
|
|
1234
1271
|
|
|
@@ -89,9 +89,11 @@ declare module 'stripe' {
|
|
|
89
89
|
reference: string | null;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* The funding method type used to fund the customer balance. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
92
|
+
* The funding method type used to fund the customer balance. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
93
93
|
*/
|
|
94
94
|
type: BankTransfer.Type;
|
|
95
|
+
|
|
96
|
+
us_bank_transfer?: BankTransfer.UsBankTransfer;
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
namespace BankTransfer {
|
|
@@ -150,7 +152,24 @@ declare module 'stripe' {
|
|
|
150
152
|
| 'eu_bank_transfer'
|
|
151
153
|
| 'gb_bank_transfer'
|
|
152
154
|
| 'jp_bank_transfer'
|
|
153
|
-
| 'mx_bank_transfer'
|
|
155
|
+
| 'mx_bank_transfer'
|
|
156
|
+
| 'us_bank_transfer';
|
|
157
|
+
|
|
158
|
+
interface UsBankTransfer {
|
|
159
|
+
/**
|
|
160
|
+
* The banking network used for this funding.
|
|
161
|
+
*/
|
|
162
|
+
network?: UsBankTransfer.Network;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The full name of the sender, as supplied by the sending bank.
|
|
166
|
+
*/
|
|
167
|
+
sender_name: string | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
namespace UsBankTransfer {
|
|
171
|
+
type Network = 'ach' | 'domestic_wire_us' | 'swift';
|
|
172
|
+
}
|
|
154
173
|
}
|
|
155
174
|
}
|
|
156
175
|
|
package/types/Invoices.d.ts
CHANGED
|
@@ -962,7 +962,7 @@ declare module 'stripe' {
|
|
|
962
962
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
963
963
|
|
|
964
964
|
/**
|
|
965
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
965
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
966
966
|
*/
|
|
967
967
|
type: string | null;
|
|
968
968
|
}
|
|
@@ -358,7 +358,7 @@ declare module 'stripe' {
|
|
|
358
358
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
361
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
362
362
|
*/
|
|
363
363
|
type?: string;
|
|
364
364
|
}
|
|
@@ -946,7 +946,7 @@ declare module 'stripe' {
|
|
|
946
946
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
947
947
|
|
|
948
948
|
/**
|
|
949
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
949
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
950
950
|
*/
|
|
951
951
|
type?: string;
|
|
952
952
|
}
|
|
@@ -61,6 +61,12 @@ declare module 'stripe' {
|
|
|
61
61
|
*/
|
|
62
62
|
phone_number: string | null;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
|
|
66
|
+
* This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
|
|
67
|
+
*/
|
|
68
|
+
preferred_locales: Array<Cardholder.PreferredLocale> | null;
|
|
69
|
+
|
|
64
70
|
requirements: Cardholder.Requirements;
|
|
65
71
|
|
|
66
72
|
/**
|
|
@@ -184,6 +190,8 @@ declare module 'stripe' {
|
|
|
184
190
|
}
|
|
185
191
|
}
|
|
186
192
|
|
|
193
|
+
type PreferredLocale = 'de' | 'en' | 'es' | 'fr' | 'it';
|
|
194
|
+
|
|
187
195
|
interface Requirements {
|
|
188
196
|
/**
|
|
189
197
|
* If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason.
|
|
@@ -44,6 +44,12 @@ declare module 'stripe' {
|
|
|
44
44
|
*/
|
|
45
45
|
phone_number?: string;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
|
|
49
|
+
* This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
|
|
50
|
+
*/
|
|
51
|
+
preferred_locales?: Array<CardholderCreateParams.PreferredLocale>;
|
|
52
|
+
|
|
47
53
|
/**
|
|
48
54
|
* Rules that control spending across this cardholder's cards. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details.
|
|
49
55
|
*/
|
|
@@ -202,6 +208,8 @@ declare module 'stripe' {
|
|
|
202
208
|
}
|
|
203
209
|
}
|
|
204
210
|
|
|
211
|
+
type PreferredLocale = 'de' | 'en' | 'es' | 'fr' | 'it';
|
|
212
|
+
|
|
205
213
|
interface SpendingControls {
|
|
206
214
|
/**
|
|
207
215
|
* Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
|
@@ -1192,6 +1200,12 @@ declare module 'stripe' {
|
|
|
1192
1200
|
*/
|
|
1193
1201
|
phone_number?: string;
|
|
1194
1202
|
|
|
1203
|
+
/**
|
|
1204
|
+
* The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
|
|
1205
|
+
* This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
|
|
1206
|
+
*/
|
|
1207
|
+
preferred_locales?: Array<CardholderUpdateParams.PreferredLocale>;
|
|
1208
|
+
|
|
1195
1209
|
/**
|
|
1196
1210
|
* Rules that control spending across this cardholder's cards. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details.
|
|
1197
1211
|
*/
|
|
@@ -1345,6 +1359,8 @@ declare module 'stripe' {
|
|
|
1345
1359
|
}
|
|
1346
1360
|
}
|
|
1347
1361
|
|
|
1362
|
+
type PreferredLocale = 'de' | 'en' | 'es' | 'fr' | 'it';
|
|
1363
|
+
|
|
1348
1364
|
interface SpendingControls {
|
|
1349
1365
|
/**
|
|
1350
1366
|
* Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
|
@@ -822,7 +822,8 @@ declare module 'stripe' {
|
|
|
822
822
|
| 'eu_bank_transfer'
|
|
823
823
|
| 'gb_bank_transfer'
|
|
824
824
|
| 'jp_bank_transfer'
|
|
825
|
-
| 'mx_bank_transfer'
|
|
825
|
+
| 'mx_bank_transfer'
|
|
826
|
+
| 'us_bank_transfer';
|
|
826
827
|
}
|
|
827
828
|
|
|
828
829
|
interface KonbiniDisplayDetails {
|
|
@@ -1598,7 +1599,7 @@ declare module 'stripe' {
|
|
|
1598
1599
|
requested_address_types?: Array<BankTransfer.RequestedAddressType>;
|
|
1599
1600
|
|
|
1600
1601
|
/**
|
|
1601
|
-
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
1602
|
+
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
1602
1603
|
*/
|
|
1603
1604
|
type: BankTransfer.Type | null;
|
|
1604
1605
|
}
|
|
@@ -1616,17 +1617,20 @@ declare module 'stripe' {
|
|
|
1616
1617
|
}
|
|
1617
1618
|
|
|
1618
1619
|
type RequestedAddressType =
|
|
1620
|
+
| 'aba'
|
|
1619
1621
|
| 'iban'
|
|
1620
1622
|
| 'sepa'
|
|
1621
1623
|
| 'sort_code'
|
|
1622
1624
|
| 'spei'
|
|
1625
|
+
| 'swift'
|
|
1623
1626
|
| 'zengin';
|
|
1624
1627
|
|
|
1625
1628
|
type Type =
|
|
1626
1629
|
| 'eu_bank_transfer'
|
|
1627
1630
|
| 'gb_bank_transfer'
|
|
1628
1631
|
| 'jp_bank_transfer'
|
|
1629
|
-
| 'mx_bank_transfer'
|
|
1632
|
+
| 'mx_bank_transfer'
|
|
1633
|
+
| 'us_bank_transfer';
|
|
1630
1634
|
}
|
|
1631
1635
|
}
|
|
1632
1636
|
|
|
@@ -1409,7 +1409,7 @@ declare module 'stripe' {
|
|
|
1409
1409
|
requested_address_types?: Array<BankTransfer.RequestedAddressType>;
|
|
1410
1410
|
|
|
1411
1411
|
/**
|
|
1412
|
-
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
1412
|
+
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
1413
1413
|
*/
|
|
1414
1414
|
type: BankTransfer.Type;
|
|
1415
1415
|
}
|
|
@@ -1423,17 +1423,20 @@ declare module 'stripe' {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
type RequestedAddressType =
|
|
1426
|
+
| 'aba'
|
|
1426
1427
|
| 'iban'
|
|
1427
1428
|
| 'sepa'
|
|
1428
1429
|
| 'sort_code'
|
|
1429
1430
|
| 'spei'
|
|
1431
|
+
| 'swift'
|
|
1430
1432
|
| 'zengin';
|
|
1431
1433
|
|
|
1432
1434
|
type Type =
|
|
1433
1435
|
| 'eu_bank_transfer'
|
|
1434
1436
|
| 'gb_bank_transfer'
|
|
1435
1437
|
| 'jp_bank_transfer'
|
|
1436
|
-
| 'mx_bank_transfer'
|
|
1438
|
+
| 'mx_bank_transfer'
|
|
1439
|
+
| 'us_bank_transfer';
|
|
1437
1440
|
}
|
|
1438
1441
|
}
|
|
1439
1442
|
|
|
@@ -3319,7 +3322,7 @@ declare module 'stripe' {
|
|
|
3319
3322
|
requested_address_types?: Array<BankTransfer.RequestedAddressType>;
|
|
3320
3323
|
|
|
3321
3324
|
/**
|
|
3322
|
-
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
3325
|
+
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
3323
3326
|
*/
|
|
3324
3327
|
type: BankTransfer.Type;
|
|
3325
3328
|
}
|
|
@@ -3333,17 +3336,20 @@ declare module 'stripe' {
|
|
|
3333
3336
|
}
|
|
3334
3337
|
|
|
3335
3338
|
type RequestedAddressType =
|
|
3339
|
+
| 'aba'
|
|
3336
3340
|
| 'iban'
|
|
3337
3341
|
| 'sepa'
|
|
3338
3342
|
| 'sort_code'
|
|
3339
3343
|
| 'spei'
|
|
3344
|
+
| 'swift'
|
|
3340
3345
|
| 'zengin';
|
|
3341
3346
|
|
|
3342
3347
|
type Type =
|
|
3343
3348
|
| 'eu_bank_transfer'
|
|
3344
3349
|
| 'gb_bank_transfer'
|
|
3345
3350
|
| 'jp_bank_transfer'
|
|
3346
|
-
| 'mx_bank_transfer'
|
|
3351
|
+
| 'mx_bank_transfer'
|
|
3352
|
+
| 'us_bank_transfer';
|
|
3347
3353
|
}
|
|
3348
3354
|
}
|
|
3349
3355
|
|
|
@@ -5369,7 +5375,7 @@ declare module 'stripe' {
|
|
|
5369
5375
|
requested_address_types?: Array<BankTransfer.RequestedAddressType>;
|
|
5370
5376
|
|
|
5371
5377
|
/**
|
|
5372
|
-
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
5378
|
+
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
5373
5379
|
*/
|
|
5374
5380
|
type: BankTransfer.Type;
|
|
5375
5381
|
}
|
|
@@ -5383,17 +5389,20 @@ declare module 'stripe' {
|
|
|
5383
5389
|
}
|
|
5384
5390
|
|
|
5385
5391
|
type RequestedAddressType =
|
|
5392
|
+
| 'aba'
|
|
5386
5393
|
| 'iban'
|
|
5387
5394
|
| 'sepa'
|
|
5388
5395
|
| 'sort_code'
|
|
5389
5396
|
| 'spei'
|
|
5397
|
+
| 'swift'
|
|
5390
5398
|
| 'zengin';
|
|
5391
5399
|
|
|
5392
5400
|
type Type =
|
|
5393
5401
|
| 'eu_bank_transfer'
|
|
5394
5402
|
| 'gb_bank_transfer'
|
|
5395
5403
|
| 'jp_bank_transfer'
|
|
5396
|
-
| 'mx_bank_transfer'
|
|
5404
|
+
| 'mx_bank_transfer'
|
|
5405
|
+
| 'us_bank_transfer';
|
|
5397
5406
|
}
|
|
5398
5407
|
}
|
|
5399
5408
|
|
|
@@ -224,11 +224,21 @@ declare module 'stripe' {
|
|
|
224
224
|
*/
|
|
225
225
|
label: CustomField.Label;
|
|
226
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Configuration for `type=numeric` fields.
|
|
229
|
+
*/
|
|
230
|
+
numeric?: CustomField.Numeric;
|
|
231
|
+
|
|
227
232
|
/**
|
|
228
233
|
* Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
229
234
|
*/
|
|
230
235
|
optional?: boolean;
|
|
231
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Configuration for `type=text` fields.
|
|
239
|
+
*/
|
|
240
|
+
text?: CustomField.Text;
|
|
241
|
+
|
|
232
242
|
/**
|
|
233
243
|
* The type of the field.
|
|
234
244
|
*/
|
|
@@ -269,6 +279,30 @@ declare module 'stripe' {
|
|
|
269
279
|
type: 'custom';
|
|
270
280
|
}
|
|
271
281
|
|
|
282
|
+
interface Numeric {
|
|
283
|
+
/**
|
|
284
|
+
* The maximum character length constraint for the customer's input.
|
|
285
|
+
*/
|
|
286
|
+
maximum_length?: number;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The minimum character length requirement for the customer's input.
|
|
290
|
+
*/
|
|
291
|
+
minimum_length?: number;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface Text {
|
|
295
|
+
/**
|
|
296
|
+
* The maximum character length constraint for the customer's input.
|
|
297
|
+
*/
|
|
298
|
+
maximum_length?: number;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The minimum character length requirement for the customer's input.
|
|
302
|
+
*/
|
|
303
|
+
minimum_length?: number;
|
|
304
|
+
}
|
|
305
|
+
|
|
272
306
|
type Type = 'dropdown' | 'numeric' | 'text';
|
|
273
307
|
}
|
|
274
308
|
|
|
@@ -926,11 +960,21 @@ declare module 'stripe' {
|
|
|
926
960
|
*/
|
|
927
961
|
label: CustomField.Label;
|
|
928
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Configuration for `type=numeric` fields.
|
|
965
|
+
*/
|
|
966
|
+
numeric?: CustomField.Numeric;
|
|
967
|
+
|
|
929
968
|
/**
|
|
930
969
|
* Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
931
970
|
*/
|
|
932
971
|
optional?: boolean;
|
|
933
972
|
|
|
973
|
+
/**
|
|
974
|
+
* Configuration for `type=text` fields.
|
|
975
|
+
*/
|
|
976
|
+
text?: CustomField.Text;
|
|
977
|
+
|
|
934
978
|
/**
|
|
935
979
|
* The type of the field.
|
|
936
980
|
*/
|
|
@@ -971,6 +1015,30 @@ declare module 'stripe' {
|
|
|
971
1015
|
type: 'custom';
|
|
972
1016
|
}
|
|
973
1017
|
|
|
1018
|
+
interface Numeric {
|
|
1019
|
+
/**
|
|
1020
|
+
* The maximum character length constraint for the customer's input.
|
|
1021
|
+
*/
|
|
1022
|
+
maximum_length?: number;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* The minimum character length requirement for the customer's input.
|
|
1026
|
+
*/
|
|
1027
|
+
minimum_length?: number;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
interface Text {
|
|
1031
|
+
/**
|
|
1032
|
+
* The maximum character length constraint for the customer's input.
|
|
1033
|
+
*/
|
|
1034
|
+
maximum_length?: number;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* The minimum character length requirement for the customer's input.
|
|
1038
|
+
*/
|
|
1039
|
+
minimum_length?: number;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
974
1042
|
type Type = 'dropdown' | 'numeric' | 'text';
|
|
975
1043
|
}
|
|
976
1044
|
|
|
@@ -439,6 +439,11 @@ declare module 'stripe' {
|
|
|
439
439
|
*/
|
|
440
440
|
country: string | null;
|
|
441
441
|
|
|
442
|
+
/**
|
|
443
|
+
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
444
|
+
*/
|
|
445
|
+
description?: string | null;
|
|
446
|
+
|
|
442
447
|
/**
|
|
443
448
|
* Two-digit number representing the card's expiration month.
|
|
444
449
|
*/
|
|
@@ -461,6 +466,16 @@ declare module 'stripe' {
|
|
|
461
466
|
*/
|
|
462
467
|
funding: string | null;
|
|
463
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
471
|
+
*/
|
|
472
|
+
iin?: string | null;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
476
|
+
*/
|
|
477
|
+
issuer?: string | null;
|
|
478
|
+
|
|
464
479
|
/**
|
|
465
480
|
* The last four digits of the card.
|
|
466
481
|
*/
|
|
@@ -658,6 +673,11 @@ declare module 'stripe' {
|
|
|
658
673
|
*/
|
|
659
674
|
country: string | null;
|
|
660
675
|
|
|
676
|
+
/**
|
|
677
|
+
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
678
|
+
*/
|
|
679
|
+
description?: string | null;
|
|
680
|
+
|
|
661
681
|
/**
|
|
662
682
|
* Two-digit number representing the card's expiration month.
|
|
663
683
|
*/
|
|
@@ -680,6 +700,16 @@ declare module 'stripe' {
|
|
|
680
700
|
*/
|
|
681
701
|
funding: string | null;
|
|
682
702
|
|
|
703
|
+
/**
|
|
704
|
+
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
705
|
+
*/
|
|
706
|
+
iin?: string | null;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
710
|
+
*/
|
|
711
|
+
issuer?: string | null;
|
|
712
|
+
|
|
683
713
|
/**
|
|
684
714
|
* The last four digits of the card.
|
|
685
715
|
*/
|
|
@@ -809,6 +839,12 @@ declare module 'stripe' {
|
|
|
809
839
|
interface Paynow {}
|
|
810
840
|
|
|
811
841
|
interface Paypal {
|
|
842
|
+
/**
|
|
843
|
+
* Owner's email. Values are provided by PayPal directly
|
|
844
|
+
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
845
|
+
*/
|
|
846
|
+
payer_email?: string | null;
|
|
847
|
+
|
|
812
848
|
/**
|
|
813
849
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
814
850
|
*/
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -457,7 +457,7 @@ declare module 'stripe' {
|
|
|
457
457
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
460
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
461
461
|
*/
|
|
462
462
|
type: string | null;
|
|
463
463
|
}
|
|
@@ -529,7 +529,7 @@ declare module 'stripe' {
|
|
|
529
529
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
532
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
533
533
|
*/
|
|
534
534
|
type?: string;
|
|
535
535
|
}
|
|
@@ -1242,7 +1242,7 @@ declare module 'stripe' {
|
|
|
1242
1242
|
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
1243
1243
|
|
|
1244
1244
|
/**
|
|
1245
|
-
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `
|
|
1245
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
1246
1246
|
*/
|
|
1247
1247
|
type?: string;
|
|
1248
1248
|
}
|
package/types/Tokens.d.ts
CHANGED
|
@@ -23,8 +23,6 @@ declare module 'stripe' {
|
|
|
23
23
|
* objects or [Custom accounts](https://stripe.com/docs/api#external_accounts). Note that
|
|
24
24
|
* [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
|
|
25
25
|
* performs best with integrations that use client-side tokenization.
|
|
26
|
-
*
|
|
27
|
-
* Related guide: [Accept a payment with Charges and Tokens](https://stripe.com/docs/payments/accept-a-payment-charges#web-create-token)
|
|
28
26
|
*/
|
|
29
27
|
interface Token {
|
|
30
28
|
/**
|