stripe 17.7.0 → 18.0.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 +139 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/InvoicePayments.js +17 -0
- package/cjs/resources/Invoices.js +0 -9
- package/cjs/resources/SubscriptionItems.js +0 -9
- package/cjs/resources.js +4 -2
- package/cjs/stripe.core.js +3 -14
- package/esm/apiVersion.js +1 -1
- package/esm/resources/InvoicePayments.js +14 -0
- package/esm/resources/Invoices.js +0 -9
- package/esm/resources/SubscriptionItems.js +0 -9
- package/esm/resources.js +1 -0
- package/esm/stripe.core.js +3 -14
- package/package.json +1 -1
- package/types/Accounts.d.ts +47 -6
- package/types/AccountsResource.d.ts +110 -3
- package/types/ApplicationFees.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/BankAccounts.d.ts +9 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +2 -2
- package/types/Capabilities.d.ts +8 -0
- package/types/Cards.d.ts +1 -4
- package/types/Charges.d.ts +56 -5
- package/types/ChargesResource.d.ts +1 -1
- package/types/Checkout/Sessions.d.ts +77 -53
- package/types/Checkout/SessionsResource.d.ts +232 -15
- package/types/ConfirmationTokens.d.ts +50 -0
- package/types/CreditNoteLineItems.d.ts +24 -22
- package/types/CreditNotes.d.ts +39 -15
- package/types/CreditNotesResource.d.ts +48 -12
- package/types/CustomerBalanceTransactions.d.ts +8 -1
- package/types/Customers.d.ts +3 -3
- package/types/CustomersResource.d.ts +3 -14
- package/types/EventTypes.d.ts +138 -2
- package/types/Events.d.ts +9 -1
- package/types/Identity/VerificationSessions.d.ts +1 -1
- package/types/Identity/VerificationSessionsResource.d.ts +1 -1
- package/types/InvoiceItems.d.ts +60 -26
- package/types/InvoiceItemsResource.d.ts +26 -22
- package/types/InvoiceLineItems.d.ts +160 -70
- package/types/InvoicePayments.d.ts +99 -0
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +97 -83
- package/types/InvoicesResource.d.ts +239 -2846
- package/types/Issuing/Authorizations.d.ts +2 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Mandates.d.ts +8 -0
- package/types/PaymentIntents.d.ts +59 -8
- package/types/PaymentIntentsResource.d.ts +293 -8
- package/types/PaymentLinks.d.ts +49 -0
- package/types/PaymentLinksResource.d.ts +77 -0
- package/types/PaymentMethodConfigurations.d.ts +108 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
- package/types/PaymentMethodDomainsResource.d.ts +6 -6
- package/types/PaymentMethods.d.ts +50 -0
- package/types/PaymentMethodsResource.d.ts +54 -16
- package/types/Persons.d.ts +17 -9
- package/types/Plans.d.ts +0 -7
- package/types/PlansResource.d.ts +0 -7
- package/types/Prices.d.ts +0 -11
- package/types/PricesResource.d.ts +2 -13
- package/types/QuotesResource.d.ts +2 -2
- package/types/Refunds.d.ts +18 -0
- package/types/Reviews.d.ts +3 -2
- package/types/SetupAttempts.d.ts +15 -0
- package/types/SetupIntents.d.ts +2 -0
- package/types/SetupIntentsResource.d.ts +155 -0
- package/types/SubscriptionItems.d.ts +9 -13
- package/types/SubscriptionItemsResource.d.ts +2 -94
- package/types/SubscriptionSchedules.d.ts +0 -51
- package/types/SubscriptionSchedulesResource.d.ts +4 -110
- package/types/Subscriptions.d.ts +3 -33
- package/types/SubscriptionsResource.d.ts +8 -86
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/TaxRates.d.ts +1 -1
- package/types/Terminal/Configurations.d.ts +86 -3
- package/types/Terminal/ConfigurationsResource.d.ts +192 -2
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
- package/types/TokensResource.d.ts +6 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
- package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
- package/types/V2/Core/EventsResource.d.ts +0 -5
- package/types/V2/EventDestinations.d.ts +1 -1
- package/types/V2/Events.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +21 -3
- package/types/index.d.ts +3 -3
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -6
- package/types/Deprecations.d.ts +0 -215
- package/types/UsageRecordSummaries.d.ts +0 -56
- package/types/UsageRecords.d.ts +0 -45
|
@@ -88,6 +88,13 @@ declare module 'stripe' {
|
|
|
88
88
|
*/
|
|
89
89
|
on_behalf_of?: string;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
|
|
93
|
+
* There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items.
|
|
94
|
+
* There is a maximum of 20 combined line items and optional items.
|
|
95
|
+
*/
|
|
96
|
+
optional_items?: Array<PaymentLinkCreateParams.OptionalItem>;
|
|
97
|
+
|
|
91
98
|
/**
|
|
92
99
|
* A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
|
|
93
100
|
*/
|
|
@@ -299,6 +306,11 @@ declare module 'stripe' {
|
|
|
299
306
|
|
|
300
307
|
namespace CustomField {
|
|
301
308
|
interface Dropdown {
|
|
309
|
+
/**
|
|
310
|
+
* The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
|
|
311
|
+
*/
|
|
312
|
+
default_value?: string;
|
|
313
|
+
|
|
302
314
|
/**
|
|
303
315
|
* The options available for the customer to select. Up to 200 options allowed.
|
|
304
316
|
*/
|
|
@@ -332,6 +344,11 @@ declare module 'stripe' {
|
|
|
332
344
|
}
|
|
333
345
|
|
|
334
346
|
interface Numeric {
|
|
347
|
+
/**
|
|
348
|
+
* The value that will pre-fill the field on the payment page.
|
|
349
|
+
*/
|
|
350
|
+
default_value?: string;
|
|
351
|
+
|
|
335
352
|
/**
|
|
336
353
|
* The maximum character length constraint for the customer's input.
|
|
337
354
|
*/
|
|
@@ -344,6 +361,11 @@ declare module 'stripe' {
|
|
|
344
361
|
}
|
|
345
362
|
|
|
346
363
|
interface Text {
|
|
364
|
+
/**
|
|
365
|
+
* The value that will pre-fill the field on the payment page.
|
|
366
|
+
*/
|
|
367
|
+
default_value?: string;
|
|
368
|
+
|
|
347
369
|
/**
|
|
348
370
|
* The maximum character length constraint for the customer's input.
|
|
349
371
|
*/
|
|
@@ -542,6 +564,42 @@ declare module 'stripe' {
|
|
|
542
564
|
}
|
|
543
565
|
}
|
|
544
566
|
|
|
567
|
+
interface OptionalItem {
|
|
568
|
+
/**
|
|
569
|
+
* When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
|
|
570
|
+
*/
|
|
571
|
+
adjustable_quantity?: OptionalItem.AdjustableQuantity;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
|
|
575
|
+
*/
|
|
576
|
+
price: string;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* The initial quantity of the line item created when a customer chooses to add this optional item to their order.
|
|
580
|
+
*/
|
|
581
|
+
quantity: number;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
namespace OptionalItem {
|
|
585
|
+
interface AdjustableQuantity {
|
|
586
|
+
/**
|
|
587
|
+
* Set to true if the quantity can be adjusted to any non-negative integer.
|
|
588
|
+
*/
|
|
589
|
+
enabled: boolean;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* The maximum quantity of this item the customer can purchase. By default this value is 99.
|
|
593
|
+
*/
|
|
594
|
+
maximum?: number;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
|
|
598
|
+
*/
|
|
599
|
+
minimum?: number;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
545
603
|
interface PaymentIntentData {
|
|
546
604
|
/**
|
|
547
605
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -607,6 +665,7 @@ declare module 'stripe' {
|
|
|
607
665
|
| 'au_becs_debit'
|
|
608
666
|
| 'bacs_debit'
|
|
609
667
|
| 'bancontact'
|
|
668
|
+
| 'billie'
|
|
610
669
|
| 'blik'
|
|
611
670
|
| 'boleto'
|
|
612
671
|
| 'card'
|
|
@@ -628,6 +687,7 @@ declare module 'stripe' {
|
|
|
628
687
|
| 'paypal'
|
|
629
688
|
| 'pix'
|
|
630
689
|
| 'promptpay'
|
|
690
|
+
| 'satispay'
|
|
631
691
|
| 'sepa_debit'
|
|
632
692
|
| 'sofort'
|
|
633
693
|
| 'swish'
|
|
@@ -1266,6 +1326,11 @@ declare module 'stripe' {
|
|
|
1266
1326
|
|
|
1267
1327
|
namespace CustomField {
|
|
1268
1328
|
interface Dropdown {
|
|
1329
|
+
/**
|
|
1330
|
+
* The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
|
|
1331
|
+
*/
|
|
1332
|
+
default_value?: string;
|
|
1333
|
+
|
|
1269
1334
|
/**
|
|
1270
1335
|
* The options available for the customer to select. Up to 200 options allowed.
|
|
1271
1336
|
*/
|
|
@@ -1299,6 +1364,11 @@ declare module 'stripe' {
|
|
|
1299
1364
|
}
|
|
1300
1365
|
|
|
1301
1366
|
interface Numeric {
|
|
1367
|
+
/**
|
|
1368
|
+
* The value that will pre-fill the field on the payment page.
|
|
1369
|
+
*/
|
|
1370
|
+
default_value?: string;
|
|
1371
|
+
|
|
1302
1372
|
/**
|
|
1303
1373
|
* The maximum character length constraint for the customer's input.
|
|
1304
1374
|
*/
|
|
@@ -1311,6 +1381,11 @@ declare module 'stripe' {
|
|
|
1311
1381
|
}
|
|
1312
1382
|
|
|
1313
1383
|
interface Text {
|
|
1384
|
+
/**
|
|
1385
|
+
* The value that will pre-fill the field on the payment page.
|
|
1386
|
+
*/
|
|
1387
|
+
default_value?: string;
|
|
1388
|
+
|
|
1314
1389
|
/**
|
|
1315
1390
|
* The maximum character length constraint for the customer's input.
|
|
1316
1391
|
*/
|
|
@@ -1548,6 +1623,7 @@ declare module 'stripe' {
|
|
|
1548
1623
|
| 'au_becs_debit'
|
|
1549
1624
|
| 'bacs_debit'
|
|
1550
1625
|
| 'bancontact'
|
|
1626
|
+
| 'billie'
|
|
1551
1627
|
| 'blik'
|
|
1552
1628
|
| 'boleto'
|
|
1553
1629
|
| 'card'
|
|
@@ -1569,6 +1645,7 @@ declare module 'stripe' {
|
|
|
1569
1645
|
| 'paypal'
|
|
1570
1646
|
| 'pix'
|
|
1571
1647
|
| 'promptpay'
|
|
1648
|
+
| 'satispay'
|
|
1572
1649
|
| 'sepa_debit'
|
|
1573
1650
|
| 'sofort'
|
|
1574
1651
|
| 'swish'
|
|
@@ -59,6 +59,8 @@ declare module 'stripe' {
|
|
|
59
59
|
|
|
60
60
|
bancontact?: PaymentMethodConfiguration.Bancontact;
|
|
61
61
|
|
|
62
|
+
billie?: PaymentMethodConfiguration.Billie;
|
|
63
|
+
|
|
62
64
|
blik?: PaymentMethodConfiguration.Blik;
|
|
63
65
|
|
|
64
66
|
boleto?: PaymentMethodConfiguration.Boleto;
|
|
@@ -110,6 +112,8 @@ declare module 'stripe' {
|
|
|
110
112
|
*/
|
|
111
113
|
name: string;
|
|
112
114
|
|
|
115
|
+
nz_bank_account?: PaymentMethodConfiguration.NzBankAccount;
|
|
116
|
+
|
|
113
117
|
oxxo?: PaymentMethodConfiguration.Oxxo;
|
|
114
118
|
|
|
115
119
|
p24?: PaymentMethodConfiguration.P24;
|
|
@@ -129,6 +133,8 @@ declare module 'stripe' {
|
|
|
129
133
|
|
|
130
134
|
revolut_pay?: PaymentMethodConfiguration.RevolutPay;
|
|
131
135
|
|
|
136
|
+
satispay?: PaymentMethodConfiguration.Satispay;
|
|
137
|
+
|
|
132
138
|
sepa_debit?: PaymentMethodConfiguration.SepaDebit;
|
|
133
139
|
|
|
134
140
|
sofort?: PaymentMethodConfiguration.Sofort;
|
|
@@ -485,6 +491,40 @@ declare module 'stripe' {
|
|
|
485
491
|
}
|
|
486
492
|
}
|
|
487
493
|
|
|
494
|
+
interface Billie {
|
|
495
|
+
/**
|
|
496
|
+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
497
|
+
*/
|
|
498
|
+
available: boolean;
|
|
499
|
+
|
|
500
|
+
display_preference: Billie.DisplayPreference;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
namespace Billie {
|
|
504
|
+
interface DisplayPreference {
|
|
505
|
+
/**
|
|
506
|
+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
507
|
+
*/
|
|
508
|
+
overridable: boolean | null;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* The account's display preference.
|
|
512
|
+
*/
|
|
513
|
+
preference: DisplayPreference.Preference;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The effective display preference value.
|
|
517
|
+
*/
|
|
518
|
+
value: DisplayPreference.Value;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
namespace DisplayPreference {
|
|
522
|
+
type Preference = 'none' | 'off' | 'on';
|
|
523
|
+
|
|
524
|
+
type Value = 'off' | 'on';
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
488
528
|
interface Blik {
|
|
489
529
|
/**
|
|
490
530
|
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
@@ -1097,6 +1137,40 @@ declare module 'stripe' {
|
|
|
1097
1137
|
}
|
|
1098
1138
|
}
|
|
1099
1139
|
|
|
1140
|
+
interface NzBankAccount {
|
|
1141
|
+
/**
|
|
1142
|
+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1143
|
+
*/
|
|
1144
|
+
available: boolean;
|
|
1145
|
+
|
|
1146
|
+
display_preference: NzBankAccount.DisplayPreference;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
namespace NzBankAccount {
|
|
1150
|
+
interface DisplayPreference {
|
|
1151
|
+
/**
|
|
1152
|
+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1153
|
+
*/
|
|
1154
|
+
overridable: boolean | null;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* The account's display preference.
|
|
1158
|
+
*/
|
|
1159
|
+
preference: DisplayPreference.Preference;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* The effective display preference value.
|
|
1163
|
+
*/
|
|
1164
|
+
value: DisplayPreference.Value;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
namespace DisplayPreference {
|
|
1168
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1169
|
+
|
|
1170
|
+
type Value = 'off' | 'on';
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1100
1174
|
interface Oxxo {
|
|
1101
1175
|
/**
|
|
1102
1176
|
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
@@ -1335,6 +1409,40 @@ declare module 'stripe' {
|
|
|
1335
1409
|
}
|
|
1336
1410
|
}
|
|
1337
1411
|
|
|
1412
|
+
interface Satispay {
|
|
1413
|
+
/**
|
|
1414
|
+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1415
|
+
*/
|
|
1416
|
+
available: boolean;
|
|
1417
|
+
|
|
1418
|
+
display_preference: Satispay.DisplayPreference;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
namespace Satispay {
|
|
1422
|
+
interface DisplayPreference {
|
|
1423
|
+
/**
|
|
1424
|
+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1425
|
+
*/
|
|
1426
|
+
overridable: boolean | null;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* The account's display preference.
|
|
1430
|
+
*/
|
|
1431
|
+
preference: DisplayPreference.Preference;
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* The effective display preference value.
|
|
1435
|
+
*/
|
|
1436
|
+
value: DisplayPreference.Value;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
namespace DisplayPreference {
|
|
1440
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1441
|
+
|
|
1442
|
+
type Value = 'off' | 'on';
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1338
1446
|
interface SepaDebit {
|
|
1339
1447
|
/**
|
|
1340
1448
|
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
@@ -58,6 +58,11 @@ declare module 'stripe' {
|
|
|
58
58
|
*/
|
|
59
59
|
bancontact?: PaymentMethodConfigurationCreateParams.Bancontact;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
|
|
63
|
+
*/
|
|
64
|
+
billie?: PaymentMethodConfigurationCreateParams.Billie;
|
|
65
|
+
|
|
61
66
|
/**
|
|
62
67
|
* BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://stripe.com/docs/payments/blik) for more details.
|
|
63
68
|
*/
|
|
@@ -158,6 +163,11 @@ declare module 'stripe' {
|
|
|
158
163
|
*/
|
|
159
164
|
name?: string;
|
|
160
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
|
|
168
|
+
*/
|
|
169
|
+
nz_bank_account?: PaymentMethodConfigurationCreateParams.NzBankAccount;
|
|
170
|
+
|
|
161
171
|
/**
|
|
162
172
|
* OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
|
|
163
173
|
*/
|
|
@@ -198,6 +208,11 @@ declare module 'stripe' {
|
|
|
198
208
|
*/
|
|
199
209
|
revolut_pay?: PaymentMethodConfigurationCreateParams.RevolutPay;
|
|
200
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
|
|
213
|
+
*/
|
|
214
|
+
satispay?: PaymentMethodConfigurationCreateParams.Satispay;
|
|
215
|
+
|
|
201
216
|
/**
|
|
202
217
|
* The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
|
|
203
218
|
*/
|
|
@@ -455,6 +470,26 @@ declare module 'stripe' {
|
|
|
455
470
|
}
|
|
456
471
|
}
|
|
457
472
|
|
|
473
|
+
interface Billie {
|
|
474
|
+
/**
|
|
475
|
+
* Whether or not the payment method should be displayed.
|
|
476
|
+
*/
|
|
477
|
+
display_preference?: Billie.DisplayPreference;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
namespace Billie {
|
|
481
|
+
interface DisplayPreference {
|
|
482
|
+
/**
|
|
483
|
+
* The account's preference for whether or not to display this payment method.
|
|
484
|
+
*/
|
|
485
|
+
preference?: DisplayPreference.Preference;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
namespace DisplayPreference {
|
|
489
|
+
type Preference = 'none' | 'off' | 'on';
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
458
493
|
interface Blik {
|
|
459
494
|
/**
|
|
460
495
|
* Whether or not the payment method should be displayed.
|
|
@@ -815,6 +850,26 @@ declare module 'stripe' {
|
|
|
815
850
|
}
|
|
816
851
|
}
|
|
817
852
|
|
|
853
|
+
interface NzBankAccount {
|
|
854
|
+
/**
|
|
855
|
+
* Whether or not the payment method should be displayed.
|
|
856
|
+
*/
|
|
857
|
+
display_preference?: NzBankAccount.DisplayPreference;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
namespace NzBankAccount {
|
|
861
|
+
interface DisplayPreference {
|
|
862
|
+
/**
|
|
863
|
+
* The account's preference for whether or not to display this payment method.
|
|
864
|
+
*/
|
|
865
|
+
preference?: DisplayPreference.Preference;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
namespace DisplayPreference {
|
|
869
|
+
type Preference = 'none' | 'off' | 'on';
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
818
873
|
interface Oxxo {
|
|
819
874
|
/**
|
|
820
875
|
* Whether or not the payment method should be displayed.
|
|
@@ -955,6 +1010,26 @@ declare module 'stripe' {
|
|
|
955
1010
|
}
|
|
956
1011
|
}
|
|
957
1012
|
|
|
1013
|
+
interface Satispay {
|
|
1014
|
+
/**
|
|
1015
|
+
* Whether or not the payment method should be displayed.
|
|
1016
|
+
*/
|
|
1017
|
+
display_preference?: Satispay.DisplayPreference;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
namespace Satispay {
|
|
1021
|
+
interface DisplayPreference {
|
|
1022
|
+
/**
|
|
1023
|
+
* The account's preference for whether or not to display this payment method.
|
|
1024
|
+
*/
|
|
1025
|
+
preference?: DisplayPreference.Preference;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
namespace DisplayPreference {
|
|
1029
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
958
1033
|
interface SepaDebit {
|
|
959
1034
|
/**
|
|
960
1035
|
* Whether or not the payment method should be displayed.
|
|
@@ -1164,6 +1239,11 @@ declare module 'stripe' {
|
|
|
1164
1239
|
*/
|
|
1165
1240
|
bancontact?: PaymentMethodConfigurationUpdateParams.Bancontact;
|
|
1166
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
* Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
|
|
1244
|
+
*/
|
|
1245
|
+
billie?: PaymentMethodConfigurationUpdateParams.Billie;
|
|
1246
|
+
|
|
1167
1247
|
/**
|
|
1168
1248
|
* BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://stripe.com/docs/payments/blik) for more details.
|
|
1169
1249
|
*/
|
|
@@ -1264,6 +1344,11 @@ declare module 'stripe' {
|
|
|
1264
1344
|
*/
|
|
1265
1345
|
name?: string;
|
|
1266
1346
|
|
|
1347
|
+
/**
|
|
1348
|
+
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
|
|
1349
|
+
*/
|
|
1350
|
+
nz_bank_account?: PaymentMethodConfigurationUpdateParams.NzBankAccount;
|
|
1351
|
+
|
|
1267
1352
|
/**
|
|
1268
1353
|
* OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
|
|
1269
1354
|
*/
|
|
@@ -1299,6 +1384,11 @@ declare module 'stripe' {
|
|
|
1299
1384
|
*/
|
|
1300
1385
|
revolut_pay?: PaymentMethodConfigurationUpdateParams.RevolutPay;
|
|
1301
1386
|
|
|
1387
|
+
/**
|
|
1388
|
+
* Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
|
|
1389
|
+
*/
|
|
1390
|
+
satispay?: PaymentMethodConfigurationUpdateParams.Satispay;
|
|
1391
|
+
|
|
1302
1392
|
/**
|
|
1303
1393
|
* The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
|
|
1304
1394
|
*/
|
|
@@ -1556,6 +1646,26 @@ declare module 'stripe' {
|
|
|
1556
1646
|
}
|
|
1557
1647
|
}
|
|
1558
1648
|
|
|
1649
|
+
interface Billie {
|
|
1650
|
+
/**
|
|
1651
|
+
* Whether or not the payment method should be displayed.
|
|
1652
|
+
*/
|
|
1653
|
+
display_preference?: Billie.DisplayPreference;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
namespace Billie {
|
|
1657
|
+
interface DisplayPreference {
|
|
1658
|
+
/**
|
|
1659
|
+
* The account's preference for whether or not to display this payment method.
|
|
1660
|
+
*/
|
|
1661
|
+
preference?: DisplayPreference.Preference;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
namespace DisplayPreference {
|
|
1665
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1559
1669
|
interface Blik {
|
|
1560
1670
|
/**
|
|
1561
1671
|
* Whether or not the payment method should be displayed.
|
|
@@ -1916,6 +2026,26 @@ declare module 'stripe' {
|
|
|
1916
2026
|
}
|
|
1917
2027
|
}
|
|
1918
2028
|
|
|
2029
|
+
interface NzBankAccount {
|
|
2030
|
+
/**
|
|
2031
|
+
* Whether or not the payment method should be displayed.
|
|
2032
|
+
*/
|
|
2033
|
+
display_preference?: NzBankAccount.DisplayPreference;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
namespace NzBankAccount {
|
|
2037
|
+
interface DisplayPreference {
|
|
2038
|
+
/**
|
|
2039
|
+
* The account's preference for whether or not to display this payment method.
|
|
2040
|
+
*/
|
|
2041
|
+
preference?: DisplayPreference.Preference;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
namespace DisplayPreference {
|
|
2045
|
+
type Preference = 'none' | 'off' | 'on';
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
|
|
1919
2049
|
interface Oxxo {
|
|
1920
2050
|
/**
|
|
1921
2051
|
* Whether or not the payment method should be displayed.
|
|
@@ -2056,6 +2186,26 @@ declare module 'stripe' {
|
|
|
2056
2186
|
}
|
|
2057
2187
|
}
|
|
2058
2188
|
|
|
2189
|
+
interface Satispay {
|
|
2190
|
+
/**
|
|
2191
|
+
* Whether or not the payment method should be displayed.
|
|
2192
|
+
*/
|
|
2193
|
+
display_preference?: Satispay.DisplayPreference;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
namespace Satispay {
|
|
2197
|
+
interface DisplayPreference {
|
|
2198
|
+
/**
|
|
2199
|
+
* The account's preference for whether or not to display this payment method.
|
|
2200
|
+
*/
|
|
2201
|
+
preference?: DisplayPreference.Preference;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
namespace DisplayPreference {
|
|
2205
|
+
type Preference = 'none' | 'off' | 'on';
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2059
2209
|
interface SepaDebit {
|
|
2060
2210
|
/**
|
|
2061
2211
|
* Whether or not the payment method should be displayed.
|
|
@@ -9,7 +9,7 @@ declare module 'stripe' {
|
|
|
9
9
|
domain_name: string;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
|
|
12
|
+
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout.
|
|
13
13
|
*/
|
|
14
14
|
enabled?: boolean;
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@ declare module 'stripe' {
|
|
|
28
28
|
|
|
29
29
|
interface PaymentMethodDomainUpdateParams {
|
|
30
30
|
/**
|
|
31
|
-
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
|
|
31
|
+
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout.
|
|
32
32
|
*/
|
|
33
33
|
enabled?: boolean;
|
|
34
34
|
|
|
@@ -45,7 +45,7 @@ declare module 'stripe' {
|
|
|
45
45
|
domain_name?: string;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements
|
|
48
|
+
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout
|
|
49
49
|
*/
|
|
50
50
|
enabled?: boolean;
|
|
51
51
|
|
|
@@ -105,10 +105,10 @@ declare module 'stripe' {
|
|
|
105
105
|
): ApiListPromise<Stripe.PaymentMethodDomain>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Some payment methods
|
|
109
|
-
* The payment method doesn't appear in Elements for this domain until it is active.
|
|
108
|
+
* Some payment methods might require additional steps to register a domain. If the requirements weren't satisfied when the domain was created, the payment method will be inactive on the domain.
|
|
109
|
+
* The payment method doesn't appear in Elements or Embedded Checkout for this domain until it is active.
|
|
110
110
|
*
|
|
111
|
-
* To activate a payment method on an existing payment method domain, complete the required
|
|
111
|
+
* To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
|
|
112
112
|
*
|
|
113
113
|
* Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
|
114
114
|
*/
|
|
@@ -43,6 +43,8 @@ declare module 'stripe' {
|
|
|
43
43
|
|
|
44
44
|
bancontact?: PaymentMethod.Bancontact;
|
|
45
45
|
|
|
46
|
+
billie?: PaymentMethod.Billie;
|
|
47
|
+
|
|
46
48
|
billing_details: PaymentMethod.BillingDetails;
|
|
47
49
|
|
|
48
50
|
blik?: PaymentMethod.Blik;
|
|
@@ -105,6 +107,8 @@ declare module 'stripe' {
|
|
|
105
107
|
|
|
106
108
|
naver_pay?: PaymentMethod.NaverPay;
|
|
107
109
|
|
|
110
|
+
nz_bank_account?: PaymentMethod.NzBankAccount;
|
|
111
|
+
|
|
108
112
|
oxxo?: PaymentMethod.Oxxo;
|
|
109
113
|
|
|
110
114
|
p24?: PaymentMethod.P24;
|
|
@@ -130,6 +134,8 @@ declare module 'stripe' {
|
|
|
130
134
|
|
|
131
135
|
samsung_pay?: PaymentMethod.SamsungPay;
|
|
132
136
|
|
|
137
|
+
satispay?: PaymentMethod.Satispay;
|
|
138
|
+
|
|
133
139
|
sepa_debit?: PaymentMethod.SepaDebit;
|
|
134
140
|
|
|
135
141
|
sofort?: PaymentMethod.Sofort;
|
|
@@ -226,6 +232,8 @@ declare module 'stripe' {
|
|
|
226
232
|
|
|
227
233
|
interface Bancontact {}
|
|
228
234
|
|
|
235
|
+
interface Billie {}
|
|
236
|
+
|
|
229
237
|
interface BillingDetails {
|
|
230
238
|
/**
|
|
231
239
|
* Billing address.
|
|
@@ -1183,6 +1191,11 @@ declare module 'stripe' {
|
|
|
1183
1191
|
interface Multibanco {}
|
|
1184
1192
|
|
|
1185
1193
|
interface NaverPay {
|
|
1194
|
+
/**
|
|
1195
|
+
* Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
|
|
1196
|
+
*/
|
|
1197
|
+
buyer_id?: string | null;
|
|
1198
|
+
|
|
1186
1199
|
/**
|
|
1187
1200
|
* Whether to fund this transaction with Naver Pay points or a card.
|
|
1188
1201
|
*/
|
|
@@ -1193,6 +1206,38 @@ declare module 'stripe' {
|
|
|
1193
1206
|
type Funding = 'card' | 'points';
|
|
1194
1207
|
}
|
|
1195
1208
|
|
|
1209
|
+
interface NzBankAccount {
|
|
1210
|
+
/**
|
|
1211
|
+
* The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
|
|
1212
|
+
*/
|
|
1213
|
+
account_holder_name: string | null;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* The numeric code for the bank account's bank.
|
|
1217
|
+
*/
|
|
1218
|
+
bank_code: string;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* The name of the bank.
|
|
1222
|
+
*/
|
|
1223
|
+
bank_name: string;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* The numeric code for the bank account's bank branch.
|
|
1227
|
+
*/
|
|
1228
|
+
branch_code: string;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Last four digits of the bank account number.
|
|
1232
|
+
*/
|
|
1233
|
+
last4: string;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* The suffix of the bank account number.
|
|
1237
|
+
*/
|
|
1238
|
+
suffix: string | null;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1196
1241
|
interface Oxxo {}
|
|
1197
1242
|
|
|
1198
1243
|
interface P24 {
|
|
@@ -1271,6 +1316,8 @@ declare module 'stripe' {
|
|
|
1271
1316
|
|
|
1272
1317
|
interface SamsungPay {}
|
|
1273
1318
|
|
|
1319
|
+
interface Satispay {}
|
|
1320
|
+
|
|
1274
1321
|
interface SepaDebit {
|
|
1275
1322
|
/**
|
|
1276
1323
|
* Bank code of bank associated with the bank account.
|
|
@@ -1338,6 +1385,7 @@ declare module 'stripe' {
|
|
|
1338
1385
|
| 'au_becs_debit'
|
|
1339
1386
|
| 'bacs_debit'
|
|
1340
1387
|
| 'bancontact'
|
|
1388
|
+
| 'billie'
|
|
1341
1389
|
| 'blik'
|
|
1342
1390
|
| 'boleto'
|
|
1343
1391
|
| 'card'
|
|
@@ -1358,6 +1406,7 @@ declare module 'stripe' {
|
|
|
1358
1406
|
| 'mobilepay'
|
|
1359
1407
|
| 'multibanco'
|
|
1360
1408
|
| 'naver_pay'
|
|
1409
|
+
| 'nz_bank_account'
|
|
1361
1410
|
| 'oxxo'
|
|
1362
1411
|
| 'p24'
|
|
1363
1412
|
| 'pay_by_bank'
|
|
@@ -1368,6 +1417,7 @@ declare module 'stripe' {
|
|
|
1368
1417
|
| 'promptpay'
|
|
1369
1418
|
| 'revolut_pay'
|
|
1370
1419
|
| 'samsung_pay'
|
|
1420
|
+
| 'satispay'
|
|
1371
1421
|
| 'sepa_debit'
|
|
1372
1422
|
| 'sofort'
|
|
1373
1423
|
| 'swish'
|