stripe 16.8.0 → 16.9.0-beta.1
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 +805 -118
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +66 -5
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -1
- package/cjs/multipart.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/QuotePhases.js +22 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +40 -10
- package/cjs/stripe.core.js +6 -3
- package/cjs/utils.js +30 -3
- package/esm/RequestSender.js +67 -6
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -0
- package/esm/multipart.js +2 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/QuotePhases.js +19 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +26 -0
- package/esm/stripe.core.js +6 -3
- package/esm/utils.js +27 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +260 -0
- package/types/Accounts.d.ts +106 -1
- package/types/AccountsResource.d.ts +246 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +67 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +185 -4
- package/types/Checkout/SessionsResource.d.ts +349 -5
- package/types/ConfirmationTokens.d.ts +62 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +2 -0
- package/types/Disputes.d.ts +158 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +460 -0
- package/types/Events.d.ts +85 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +22 -0
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +116 -1
- package/types/InvoicesResource.d.ts +5455 -1797
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1083 -0
- package/types/OrdersResource.d.ts +2763 -0
- package/types/PaymentIntents.d.ts +487 -1
- package/types/PaymentIntentsResource.d.ts +6954 -3438
- package/types/PaymentLinks.d.ts +1 -0
- package/types/PaymentLinksResource.d.ts +2 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +62 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePhases.d.ts +198 -0
- package/types/QuotePhasesResource.d.ts +67 -0
- package/types/QuotePreviewInvoices.d.ts +1530 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +596 -1
- package/types/QuotesResource.d.ts +3174 -265
- package/types/SetupAttempts.d.ts +9 -0
- package/types/SetupIntents.d.ts +110 -1
- package/types/SetupIntentsResource.d.ts +498 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +208 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +54 -0
- package/types/index.d.ts +67 -0
- package/types/lib.d.ts +12 -0
|
@@ -334,6 +334,11 @@ declare module 'stripe' {
|
|
|
334
334
|
*/
|
|
335
335
|
paypal?: PaymentMethodData.Paypal;
|
|
336
336
|
|
|
337
|
+
/**
|
|
338
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
339
|
+
*/
|
|
340
|
+
payto?: PaymentMethodData.Payto;
|
|
341
|
+
|
|
337
342
|
/**
|
|
338
343
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
339
344
|
*/
|
|
@@ -349,6 +354,11 @@ declare module 'stripe' {
|
|
|
349
354
|
*/
|
|
350
355
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
351
356
|
|
|
357
|
+
/**
|
|
358
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
359
|
+
*/
|
|
360
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
361
|
+
|
|
352
362
|
/**
|
|
353
363
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
354
364
|
*/
|
|
@@ -673,6 +683,23 @@ declare module 'stripe' {
|
|
|
673
683
|
|
|
674
684
|
interface Paypal {}
|
|
675
685
|
|
|
686
|
+
interface Payto {
|
|
687
|
+
/**
|
|
688
|
+
* The account number for the bank account.
|
|
689
|
+
*/
|
|
690
|
+
account_number?: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Bank-State-Branch number of the bank account.
|
|
694
|
+
*/
|
|
695
|
+
bsb_number?: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* The PayID alias for the bank account.
|
|
699
|
+
*/
|
|
700
|
+
pay_id?: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
676
703
|
interface Pix {}
|
|
677
704
|
|
|
678
705
|
interface Promptpay {}
|
|
@@ -684,6 +711,32 @@ declare module 'stripe' {
|
|
|
684
711
|
session?: string;
|
|
685
712
|
}
|
|
686
713
|
|
|
714
|
+
interface Rechnung {
|
|
715
|
+
/**
|
|
716
|
+
* Customer's date of birth
|
|
717
|
+
*/
|
|
718
|
+
dob: Rechnung.Dob;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
namespace Rechnung {
|
|
722
|
+
interface Dob {
|
|
723
|
+
/**
|
|
724
|
+
* The day of birth, between 1 and 31.
|
|
725
|
+
*/
|
|
726
|
+
day: number;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* The month of birth, between 1 and 12.
|
|
730
|
+
*/
|
|
731
|
+
month: number;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The four-digit year of birth.
|
|
735
|
+
*/
|
|
736
|
+
year: number;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
|
|
687
740
|
interface RevolutPay {}
|
|
688
741
|
|
|
689
742
|
interface SepaDebit {
|
|
@@ -735,8 +788,10 @@ declare module 'stripe' {
|
|
|
735
788
|
| 'p24'
|
|
736
789
|
| 'paynow'
|
|
737
790
|
| 'paypal'
|
|
791
|
+
| 'payto'
|
|
738
792
|
| 'pix'
|
|
739
793
|
| 'promptpay'
|
|
794
|
+
| 'rechnung'
|
|
740
795
|
| 'revolut_pay'
|
|
741
796
|
| 'sepa_debit'
|
|
742
797
|
| 'sofort'
|
|
@@ -820,6 +875,11 @@ declare module 'stripe' {
|
|
|
820
875
|
*/
|
|
821
876
|
paypal?: PaymentMethodOptions.Paypal;
|
|
822
877
|
|
|
878
|
+
/**
|
|
879
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
880
|
+
*/
|
|
881
|
+
payto?: PaymentMethodOptions.Payto;
|
|
882
|
+
|
|
823
883
|
/**
|
|
824
884
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
825
885
|
*/
|
|
@@ -1115,6 +1175,86 @@ declare module 'stripe' {
|
|
|
1115
1175
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
1116
1176
|
*/
|
|
1117
1177
|
billing_agreement_id?: string;
|
|
1178
|
+
|
|
1179
|
+
currency?: string;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1183
|
+
*/
|
|
1184
|
+
subsellers?: Array<string>;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
interface Payto {
|
|
1188
|
+
/**
|
|
1189
|
+
* Additional fields for Mandate creation.
|
|
1190
|
+
*/
|
|
1191
|
+
mandate_options?: Payto.MandateOptions;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
namespace Payto {
|
|
1195
|
+
interface MandateOptions {
|
|
1196
|
+
/**
|
|
1197
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1198
|
+
*/
|
|
1199
|
+
amount?: number;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
1203
|
+
*/
|
|
1204
|
+
amount_type?: MandateOptions.AmountType;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1208
|
+
*/
|
|
1209
|
+
end_date?: string;
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* The periodicity at which payments will be collected.
|
|
1213
|
+
*/
|
|
1214
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
1218
|
+
*/
|
|
1219
|
+
payments_per_period?: number;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1223
|
+
*/
|
|
1224
|
+
purpose?: MandateOptions.Purpose;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1228
|
+
*/
|
|
1229
|
+
start_date?: string;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
namespace MandateOptions {
|
|
1233
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1234
|
+
|
|
1235
|
+
type PaymentSchedule =
|
|
1236
|
+
| 'adhoc'
|
|
1237
|
+
| 'annual'
|
|
1238
|
+
| 'daily'
|
|
1239
|
+
| 'fortnightly'
|
|
1240
|
+
| 'monthly'
|
|
1241
|
+
| 'quarterly'
|
|
1242
|
+
| 'semi_annual'
|
|
1243
|
+
| 'weekly';
|
|
1244
|
+
|
|
1245
|
+
type Purpose =
|
|
1246
|
+
| 'dependant_support'
|
|
1247
|
+
| 'government'
|
|
1248
|
+
| 'loan'
|
|
1249
|
+
| 'mortgage'
|
|
1250
|
+
| 'other'
|
|
1251
|
+
| 'pension'
|
|
1252
|
+
| 'personal'
|
|
1253
|
+
| 'retail'
|
|
1254
|
+
| 'salary'
|
|
1255
|
+
| 'tax'
|
|
1256
|
+
| 'utility';
|
|
1257
|
+
}
|
|
1118
1258
|
}
|
|
1119
1259
|
|
|
1120
1260
|
interface SepaDebit {
|
|
@@ -1157,6 +1297,11 @@ declare module 'stripe' {
|
|
|
1157
1297
|
*/
|
|
1158
1298
|
filters?: FinancialConnections.Filters;
|
|
1159
1299
|
|
|
1300
|
+
/**
|
|
1301
|
+
* Customize manual entry behavior
|
|
1302
|
+
*/
|
|
1303
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1304
|
+
|
|
1160
1305
|
/**
|
|
1161
1306
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1162
1307
|
*/
|
|
@@ -1179,19 +1324,39 @@ declare module 'stripe' {
|
|
|
1179
1324
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1180
1325
|
*/
|
|
1181
1326
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1330
|
+
*/
|
|
1331
|
+
institution?: string;
|
|
1182
1332
|
}
|
|
1183
1333
|
|
|
1184
1334
|
namespace Filters {
|
|
1185
1335
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1186
1336
|
}
|
|
1187
1337
|
|
|
1338
|
+
interface ManualEntry {
|
|
1339
|
+
/**
|
|
1340
|
+
* Settings for configuring manual entry of account details.
|
|
1341
|
+
*/
|
|
1342
|
+
mode: ManualEntry.Mode;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
namespace ManualEntry {
|
|
1346
|
+
type Mode = 'automatic' | 'custom';
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1188
1349
|
type Permission =
|
|
1189
1350
|
| 'balances'
|
|
1190
1351
|
| 'ownership'
|
|
1191
1352
|
| 'payment_method'
|
|
1192
1353
|
| 'transactions';
|
|
1193
1354
|
|
|
1194
|
-
type Prefetch =
|
|
1355
|
+
type Prefetch =
|
|
1356
|
+
| 'balances'
|
|
1357
|
+
| 'inferred_balances'
|
|
1358
|
+
| 'ownership'
|
|
1359
|
+
| 'transactions';
|
|
1195
1360
|
}
|
|
1196
1361
|
|
|
1197
1362
|
interface MandateOptions {
|
|
@@ -1461,6 +1626,11 @@ declare module 'stripe' {
|
|
|
1461
1626
|
*/
|
|
1462
1627
|
paypal?: PaymentMethodData.Paypal;
|
|
1463
1628
|
|
|
1629
|
+
/**
|
|
1630
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1631
|
+
*/
|
|
1632
|
+
payto?: PaymentMethodData.Payto;
|
|
1633
|
+
|
|
1464
1634
|
/**
|
|
1465
1635
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
1466
1636
|
*/
|
|
@@ -1476,6 +1646,11 @@ declare module 'stripe' {
|
|
|
1476
1646
|
*/
|
|
1477
1647
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
1478
1648
|
|
|
1649
|
+
/**
|
|
1650
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1651
|
+
*/
|
|
1652
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
1653
|
+
|
|
1479
1654
|
/**
|
|
1480
1655
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
1481
1656
|
*/
|
|
@@ -1800,6 +1975,23 @@ declare module 'stripe' {
|
|
|
1800
1975
|
|
|
1801
1976
|
interface Paypal {}
|
|
1802
1977
|
|
|
1978
|
+
interface Payto {
|
|
1979
|
+
/**
|
|
1980
|
+
* The account number for the bank account.
|
|
1981
|
+
*/
|
|
1982
|
+
account_number?: string;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Bank-State-Branch number of the bank account.
|
|
1986
|
+
*/
|
|
1987
|
+
bsb_number?: string;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* The PayID alias for the bank account.
|
|
1991
|
+
*/
|
|
1992
|
+
pay_id?: string;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1803
1995
|
interface Pix {}
|
|
1804
1996
|
|
|
1805
1997
|
interface Promptpay {}
|
|
@@ -1811,6 +2003,32 @@ declare module 'stripe' {
|
|
|
1811
2003
|
session?: string;
|
|
1812
2004
|
}
|
|
1813
2005
|
|
|
2006
|
+
interface Rechnung {
|
|
2007
|
+
/**
|
|
2008
|
+
* Customer's date of birth
|
|
2009
|
+
*/
|
|
2010
|
+
dob: Rechnung.Dob;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
namespace Rechnung {
|
|
2014
|
+
interface Dob {
|
|
2015
|
+
/**
|
|
2016
|
+
* The day of birth, between 1 and 31.
|
|
2017
|
+
*/
|
|
2018
|
+
day: number;
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* The month of birth, between 1 and 12.
|
|
2022
|
+
*/
|
|
2023
|
+
month: number;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* The four-digit year of birth.
|
|
2027
|
+
*/
|
|
2028
|
+
year: number;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
1814
2032
|
interface RevolutPay {}
|
|
1815
2033
|
|
|
1816
2034
|
interface SepaDebit {
|
|
@@ -1862,8 +2080,10 @@ declare module 'stripe' {
|
|
|
1862
2080
|
| 'p24'
|
|
1863
2081
|
| 'paynow'
|
|
1864
2082
|
| 'paypal'
|
|
2083
|
+
| 'payto'
|
|
1865
2084
|
| 'pix'
|
|
1866
2085
|
| 'promptpay'
|
|
2086
|
+
| 'rechnung'
|
|
1867
2087
|
| 'revolut_pay'
|
|
1868
2088
|
| 'sepa_debit'
|
|
1869
2089
|
| 'sofort'
|
|
@@ -1947,6 +2167,11 @@ declare module 'stripe' {
|
|
|
1947
2167
|
*/
|
|
1948
2168
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1949
2169
|
|
|
2170
|
+
/**
|
|
2171
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
2172
|
+
*/
|
|
2173
|
+
payto?: PaymentMethodOptions.Payto;
|
|
2174
|
+
|
|
1950
2175
|
/**
|
|
1951
2176
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
1952
2177
|
*/
|
|
@@ -2242,6 +2467,86 @@ declare module 'stripe' {
|
|
|
2242
2467
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
2243
2468
|
*/
|
|
2244
2469
|
billing_agreement_id?: string;
|
|
2470
|
+
|
|
2471
|
+
currency?: string;
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
2475
|
+
*/
|
|
2476
|
+
subsellers?: Array<string>;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
interface Payto {
|
|
2480
|
+
/**
|
|
2481
|
+
* Additional fields for Mandate creation.
|
|
2482
|
+
*/
|
|
2483
|
+
mandate_options?: Payto.MandateOptions;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
namespace Payto {
|
|
2487
|
+
interface MandateOptions {
|
|
2488
|
+
/**
|
|
2489
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2490
|
+
*/
|
|
2491
|
+
amount?: number;
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
2495
|
+
*/
|
|
2496
|
+
amount_type?: MandateOptions.AmountType;
|
|
2497
|
+
|
|
2498
|
+
/**
|
|
2499
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2500
|
+
*/
|
|
2501
|
+
end_date?: string;
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* The periodicity at which payments will be collected.
|
|
2505
|
+
*/
|
|
2506
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
2510
|
+
*/
|
|
2511
|
+
payments_per_period?: number;
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2515
|
+
*/
|
|
2516
|
+
purpose?: MandateOptions.Purpose;
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2520
|
+
*/
|
|
2521
|
+
start_date?: string;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
namespace MandateOptions {
|
|
2525
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2526
|
+
|
|
2527
|
+
type PaymentSchedule =
|
|
2528
|
+
| 'adhoc'
|
|
2529
|
+
| 'annual'
|
|
2530
|
+
| 'daily'
|
|
2531
|
+
| 'fortnightly'
|
|
2532
|
+
| 'monthly'
|
|
2533
|
+
| 'quarterly'
|
|
2534
|
+
| 'semi_annual'
|
|
2535
|
+
| 'weekly';
|
|
2536
|
+
|
|
2537
|
+
type Purpose =
|
|
2538
|
+
| 'dependant_support'
|
|
2539
|
+
| 'government'
|
|
2540
|
+
| 'loan'
|
|
2541
|
+
| 'mortgage'
|
|
2542
|
+
| 'other'
|
|
2543
|
+
| 'pension'
|
|
2544
|
+
| 'personal'
|
|
2545
|
+
| 'retail'
|
|
2546
|
+
| 'salary'
|
|
2547
|
+
| 'tax'
|
|
2548
|
+
| 'utility';
|
|
2549
|
+
}
|
|
2245
2550
|
}
|
|
2246
2551
|
|
|
2247
2552
|
interface SepaDebit {
|
|
@@ -2284,6 +2589,11 @@ declare module 'stripe' {
|
|
|
2284
2589
|
*/
|
|
2285
2590
|
filters?: FinancialConnections.Filters;
|
|
2286
2591
|
|
|
2592
|
+
/**
|
|
2593
|
+
* Customize manual entry behavior
|
|
2594
|
+
*/
|
|
2595
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
2596
|
+
|
|
2287
2597
|
/**
|
|
2288
2598
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
2289
2599
|
*/
|
|
@@ -2306,19 +2616,39 @@ declare module 'stripe' {
|
|
|
2306
2616
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2307
2617
|
*/
|
|
2308
2618
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2622
|
+
*/
|
|
2623
|
+
institution?: string;
|
|
2309
2624
|
}
|
|
2310
2625
|
|
|
2311
2626
|
namespace Filters {
|
|
2312
2627
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2313
2628
|
}
|
|
2314
2629
|
|
|
2630
|
+
interface ManualEntry {
|
|
2631
|
+
/**
|
|
2632
|
+
* Settings for configuring manual entry of account details.
|
|
2633
|
+
*/
|
|
2634
|
+
mode: ManualEntry.Mode;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
namespace ManualEntry {
|
|
2638
|
+
type Mode = 'automatic' | 'custom';
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2315
2641
|
type Permission =
|
|
2316
2642
|
| 'balances'
|
|
2317
2643
|
| 'ownership'
|
|
2318
2644
|
| 'payment_method'
|
|
2319
2645
|
| 'transactions';
|
|
2320
2646
|
|
|
2321
|
-
type Prefetch =
|
|
2647
|
+
type Prefetch =
|
|
2648
|
+
| 'balances'
|
|
2649
|
+
| 'inferred_balances'
|
|
2650
|
+
| 'ownership'
|
|
2651
|
+
| 'transactions';
|
|
2322
2652
|
}
|
|
2323
2653
|
|
|
2324
2654
|
interface MandateOptions {
|
|
@@ -2637,6 +2967,11 @@ declare module 'stripe' {
|
|
|
2637
2967
|
*/
|
|
2638
2968
|
paypal?: PaymentMethodData.Paypal;
|
|
2639
2969
|
|
|
2970
|
+
/**
|
|
2971
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
2972
|
+
*/
|
|
2973
|
+
payto?: PaymentMethodData.Payto;
|
|
2974
|
+
|
|
2640
2975
|
/**
|
|
2641
2976
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2642
2977
|
*/
|
|
@@ -2652,6 +2987,11 @@ declare module 'stripe' {
|
|
|
2652
2987
|
*/
|
|
2653
2988
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
2654
2989
|
|
|
2990
|
+
/**
|
|
2991
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2992
|
+
*/
|
|
2993
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
2994
|
+
|
|
2655
2995
|
/**
|
|
2656
2996
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2657
2997
|
*/
|
|
@@ -2976,6 +3316,23 @@ declare module 'stripe' {
|
|
|
2976
3316
|
|
|
2977
3317
|
interface Paypal {}
|
|
2978
3318
|
|
|
3319
|
+
interface Payto {
|
|
3320
|
+
/**
|
|
3321
|
+
* The account number for the bank account.
|
|
3322
|
+
*/
|
|
3323
|
+
account_number?: string;
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* Bank-State-Branch number of the bank account.
|
|
3327
|
+
*/
|
|
3328
|
+
bsb_number?: string;
|
|
3329
|
+
|
|
3330
|
+
/**
|
|
3331
|
+
* The PayID alias for the bank account.
|
|
3332
|
+
*/
|
|
3333
|
+
pay_id?: string;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
2979
3336
|
interface Pix {}
|
|
2980
3337
|
|
|
2981
3338
|
interface Promptpay {}
|
|
@@ -2987,6 +3344,32 @@ declare module 'stripe' {
|
|
|
2987
3344
|
session?: string;
|
|
2988
3345
|
}
|
|
2989
3346
|
|
|
3347
|
+
interface Rechnung {
|
|
3348
|
+
/**
|
|
3349
|
+
* Customer's date of birth
|
|
3350
|
+
*/
|
|
3351
|
+
dob: Rechnung.Dob;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
namespace Rechnung {
|
|
3355
|
+
interface Dob {
|
|
3356
|
+
/**
|
|
3357
|
+
* The day of birth, between 1 and 31.
|
|
3358
|
+
*/
|
|
3359
|
+
day: number;
|
|
3360
|
+
|
|
3361
|
+
/**
|
|
3362
|
+
* The month of birth, between 1 and 12.
|
|
3363
|
+
*/
|
|
3364
|
+
month: number;
|
|
3365
|
+
|
|
3366
|
+
/**
|
|
3367
|
+
* The four-digit year of birth.
|
|
3368
|
+
*/
|
|
3369
|
+
year: number;
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
|
|
2990
3373
|
interface RevolutPay {}
|
|
2991
3374
|
|
|
2992
3375
|
interface SepaDebit {
|
|
@@ -3038,8 +3421,10 @@ declare module 'stripe' {
|
|
|
3038
3421
|
| 'p24'
|
|
3039
3422
|
| 'paynow'
|
|
3040
3423
|
| 'paypal'
|
|
3424
|
+
| 'payto'
|
|
3041
3425
|
| 'pix'
|
|
3042
3426
|
| 'promptpay'
|
|
3427
|
+
| 'rechnung'
|
|
3043
3428
|
| 'revolut_pay'
|
|
3044
3429
|
| 'sepa_debit'
|
|
3045
3430
|
| 'sofort'
|
|
@@ -3123,6 +3508,11 @@ declare module 'stripe' {
|
|
|
3123
3508
|
*/
|
|
3124
3509
|
paypal?: PaymentMethodOptions.Paypal;
|
|
3125
3510
|
|
|
3511
|
+
/**
|
|
3512
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
3513
|
+
*/
|
|
3514
|
+
payto?: PaymentMethodOptions.Payto;
|
|
3515
|
+
|
|
3126
3516
|
/**
|
|
3127
3517
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
3128
3518
|
*/
|
|
@@ -3418,6 +3808,86 @@ declare module 'stripe' {
|
|
|
3418
3808
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
3419
3809
|
*/
|
|
3420
3810
|
billing_agreement_id?: string;
|
|
3811
|
+
|
|
3812
|
+
currency?: string;
|
|
3813
|
+
|
|
3814
|
+
/**
|
|
3815
|
+
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
3816
|
+
*/
|
|
3817
|
+
subsellers?: Array<string>;
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
interface Payto {
|
|
3821
|
+
/**
|
|
3822
|
+
* Additional fields for Mandate creation.
|
|
3823
|
+
*/
|
|
3824
|
+
mandate_options?: Payto.MandateOptions;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
namespace Payto {
|
|
3828
|
+
interface MandateOptions {
|
|
3829
|
+
/**
|
|
3830
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
3831
|
+
*/
|
|
3832
|
+
amount?: number;
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
3836
|
+
*/
|
|
3837
|
+
amount_type?: MandateOptions.AmountType;
|
|
3838
|
+
|
|
3839
|
+
/**
|
|
3840
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
3841
|
+
*/
|
|
3842
|
+
end_date?: string;
|
|
3843
|
+
|
|
3844
|
+
/**
|
|
3845
|
+
* The periodicity at which payments will be collected.
|
|
3846
|
+
*/
|
|
3847
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3848
|
+
|
|
3849
|
+
/**
|
|
3850
|
+
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
3851
|
+
*/
|
|
3852
|
+
payments_per_period?: number;
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
3856
|
+
*/
|
|
3857
|
+
purpose?: MandateOptions.Purpose;
|
|
3858
|
+
|
|
3859
|
+
/**
|
|
3860
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
3861
|
+
*/
|
|
3862
|
+
start_date?: string;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
namespace MandateOptions {
|
|
3866
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3867
|
+
|
|
3868
|
+
type PaymentSchedule =
|
|
3869
|
+
| 'adhoc'
|
|
3870
|
+
| 'annual'
|
|
3871
|
+
| 'daily'
|
|
3872
|
+
| 'fortnightly'
|
|
3873
|
+
| 'monthly'
|
|
3874
|
+
| 'quarterly'
|
|
3875
|
+
| 'semi_annual'
|
|
3876
|
+
| 'weekly';
|
|
3877
|
+
|
|
3878
|
+
type Purpose =
|
|
3879
|
+
| 'dependant_support'
|
|
3880
|
+
| 'government'
|
|
3881
|
+
| 'loan'
|
|
3882
|
+
| 'mortgage'
|
|
3883
|
+
| 'other'
|
|
3884
|
+
| 'pension'
|
|
3885
|
+
| 'personal'
|
|
3886
|
+
| 'retail'
|
|
3887
|
+
| 'salary'
|
|
3888
|
+
| 'tax'
|
|
3889
|
+
| 'utility';
|
|
3890
|
+
}
|
|
3421
3891
|
}
|
|
3422
3892
|
|
|
3423
3893
|
interface SepaDebit {
|
|
@@ -3460,6 +3930,11 @@ declare module 'stripe' {
|
|
|
3460
3930
|
*/
|
|
3461
3931
|
filters?: FinancialConnections.Filters;
|
|
3462
3932
|
|
|
3933
|
+
/**
|
|
3934
|
+
* Customize manual entry behavior
|
|
3935
|
+
*/
|
|
3936
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3937
|
+
|
|
3463
3938
|
/**
|
|
3464
3939
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
3465
3940
|
*/
|
|
@@ -3482,19 +3957,39 @@ declare module 'stripe' {
|
|
|
3482
3957
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3483
3958
|
*/
|
|
3484
3959
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3963
|
+
*/
|
|
3964
|
+
institution?: string;
|
|
3485
3965
|
}
|
|
3486
3966
|
|
|
3487
3967
|
namespace Filters {
|
|
3488
3968
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3489
3969
|
}
|
|
3490
3970
|
|
|
3971
|
+
interface ManualEntry {
|
|
3972
|
+
/**
|
|
3973
|
+
* Settings for configuring manual entry of account details.
|
|
3974
|
+
*/
|
|
3975
|
+
mode: ManualEntry.Mode;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
namespace ManualEntry {
|
|
3979
|
+
type Mode = 'automatic' | 'custom';
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3491
3982
|
type Permission =
|
|
3492
3983
|
| 'balances'
|
|
3493
3984
|
| 'ownership'
|
|
3494
3985
|
| 'payment_method'
|
|
3495
3986
|
| 'transactions';
|
|
3496
3987
|
|
|
3497
|
-
type Prefetch =
|
|
3988
|
+
type Prefetch =
|
|
3989
|
+
| 'balances'
|
|
3990
|
+
| 'inferred_balances'
|
|
3991
|
+
| 'ownership'
|
|
3992
|
+
| 'transactions';
|
|
3498
3993
|
}
|
|
3499
3994
|
|
|
3500
3995
|
interface MandateOptions {
|