stripe 16.4.0-beta.1 → 16.5.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 +145 -767
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +1 -1
- package/cjs/resources/Checkout/Sessions.js +4 -0
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -13
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources.js +10 -38
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +2 -2
- package/esm/resources/Checkout/Sessions.js +4 -0
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -13
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources.js +0 -24
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +30 -15
- package/types/AccountSessionsResource.d.ts +0 -163
- package/types/Accounts.d.ts +4 -91
- package/types/AccountsResource.d.ts +26 -230
- package/types/Charges.d.ts +38 -69
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +1 -28
- package/types/Checkout/SessionsResource.d.ts +22 -15
- package/types/ConfirmationTokens.d.ts +23 -62
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +0 -2
- package/types/Disputes.d.ts +9 -168
- package/types/DisputesResource.d.ts +3 -120
- package/types/EventTypes.d.ts +47 -422
- package/types/Events.d.ts +3 -83
- package/types/EventsResource.d.ts +1 -1
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/Identity/VerificationReports.d.ts +1 -1
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +0 -22
- package/types/Invoices.d.ts +2 -116
- package/types/InvoicesResource.d.ts +1784 -5359
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +2 -470
- package/types/PaymentIntentsResource.d.ts +3377 -6725
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +18 -62
- package/types/PaymentMethodsResource.d.ts +0 -110
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -578
- package/types/QuotesResource.d.ts +266 -3175
- package/types/RefundsResource.d.ts +1 -1
- package/types/SetupAttempts.d.ts +0 -9
- package/types/SetupIntents.d.ts +1 -110
- package/types/SetupIntentsResource.d.ts +3 -498
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -164
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +3 -47
- package/types/SubscriptionsResource.d.ts +6 -349
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/CalculationsResource.d.ts +1 -3
- package/types/Terminal/Readers.d.ts +2 -279
- package/types/Terminal/ReadersResource.d.ts +1 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +7 -7
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +6 -50
- package/types/index.d.ts +0 -64
- package/types/lib.d.ts +0 -12
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Forms.js +0 -20
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -110
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -91
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1057
- package/types/OrdersResource.d.ts +0 -2711
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1530
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
|
@@ -334,11 +334,6 @@ 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
|
-
|
|
342
337
|
/**
|
|
343
338
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
344
339
|
*/
|
|
@@ -354,11 +349,6 @@ declare module 'stripe' {
|
|
|
354
349
|
*/
|
|
355
350
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
356
351
|
|
|
357
|
-
/**
|
|
358
|
-
* If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
359
|
-
*/
|
|
360
|
-
rechnung?: PaymentMethodData.Rechnung;
|
|
361
|
-
|
|
362
352
|
/**
|
|
363
353
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
364
354
|
*/
|
|
@@ -683,23 +673,6 @@ declare module 'stripe' {
|
|
|
683
673
|
|
|
684
674
|
interface Paypal {}
|
|
685
675
|
|
|
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
|
-
|
|
703
676
|
interface Pix {}
|
|
704
677
|
|
|
705
678
|
interface Promptpay {}
|
|
@@ -711,32 +684,6 @@ declare module 'stripe' {
|
|
|
711
684
|
session?: string;
|
|
712
685
|
}
|
|
713
686
|
|
|
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
|
-
|
|
740
687
|
interface RevolutPay {}
|
|
741
688
|
|
|
742
689
|
interface SepaDebit {
|
|
@@ -788,10 +735,8 @@ declare module 'stripe' {
|
|
|
788
735
|
| 'p24'
|
|
789
736
|
| 'paynow'
|
|
790
737
|
| 'paypal'
|
|
791
|
-
| 'payto'
|
|
792
738
|
| 'pix'
|
|
793
739
|
| 'promptpay'
|
|
794
|
-
| 'rechnung'
|
|
795
740
|
| 'revolut_pay'
|
|
796
741
|
| 'sepa_debit'
|
|
797
742
|
| 'sofort'
|
|
@@ -870,11 +815,6 @@ declare module 'stripe' {
|
|
|
870
815
|
*/
|
|
871
816
|
paypal?: PaymentMethodOptions.Paypal;
|
|
872
817
|
|
|
873
|
-
/**
|
|
874
|
-
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
875
|
-
*/
|
|
876
|
-
payto?: PaymentMethodOptions.Payto;
|
|
877
|
-
|
|
878
818
|
/**
|
|
879
819
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
880
820
|
*/
|
|
@@ -1158,86 +1098,6 @@ declare module 'stripe' {
|
|
|
1158
1098
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
1159
1099
|
*/
|
|
1160
1100
|
billing_agreement_id?: string;
|
|
1161
|
-
|
|
1162
|
-
currency?: string;
|
|
1163
|
-
|
|
1164
|
-
/**
|
|
1165
|
-
* 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.
|
|
1166
|
-
*/
|
|
1167
|
-
subsellers?: Array<string>;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
interface Payto {
|
|
1171
|
-
/**
|
|
1172
|
-
* Additional fields for Mandate creation.
|
|
1173
|
-
*/
|
|
1174
|
-
mandate_options?: Payto.MandateOptions;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
namespace Payto {
|
|
1178
|
-
interface MandateOptions {
|
|
1179
|
-
/**
|
|
1180
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1181
|
-
*/
|
|
1182
|
-
amount?: number;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* 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.
|
|
1186
|
-
*/
|
|
1187
|
-
amount_type?: MandateOptions.AmountType;
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1191
|
-
*/
|
|
1192
|
-
end_date?: string;
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* The periodicity at which payments will be collected.
|
|
1196
|
-
*/
|
|
1197
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1198
|
-
|
|
1199
|
-
/**
|
|
1200
|
-
* 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.
|
|
1201
|
-
*/
|
|
1202
|
-
payments_per_period?: number;
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1206
|
-
*/
|
|
1207
|
-
purpose?: MandateOptions.Purpose;
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1211
|
-
*/
|
|
1212
|
-
start_date?: string;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
namespace MandateOptions {
|
|
1216
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1217
|
-
|
|
1218
|
-
type PaymentSchedule =
|
|
1219
|
-
| 'adhoc'
|
|
1220
|
-
| 'annual'
|
|
1221
|
-
| 'daily'
|
|
1222
|
-
| 'fortnightly'
|
|
1223
|
-
| 'monthly'
|
|
1224
|
-
| 'quarterly'
|
|
1225
|
-
| 'semi_annual'
|
|
1226
|
-
| 'weekly';
|
|
1227
|
-
|
|
1228
|
-
type Purpose =
|
|
1229
|
-
| 'dependant_support'
|
|
1230
|
-
| 'government'
|
|
1231
|
-
| 'loan'
|
|
1232
|
-
| 'mortgage'
|
|
1233
|
-
| 'other'
|
|
1234
|
-
| 'pension'
|
|
1235
|
-
| 'personal'
|
|
1236
|
-
| 'retail'
|
|
1237
|
-
| 'salary'
|
|
1238
|
-
| 'tax'
|
|
1239
|
-
| 'utility';
|
|
1240
|
-
}
|
|
1241
1101
|
}
|
|
1242
1102
|
|
|
1243
1103
|
interface SepaDebit {
|
|
@@ -1280,11 +1140,6 @@ declare module 'stripe' {
|
|
|
1280
1140
|
*/
|
|
1281
1141
|
filters?: FinancialConnections.Filters;
|
|
1282
1142
|
|
|
1283
|
-
/**
|
|
1284
|
-
* Customize manual entry behavior
|
|
1285
|
-
*/
|
|
1286
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
1287
|
-
|
|
1288
1143
|
/**
|
|
1289
1144
|
* 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`.
|
|
1290
1145
|
*/
|
|
@@ -1307,39 +1162,19 @@ declare module 'stripe' {
|
|
|
1307
1162
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1308
1163
|
*/
|
|
1309
1164
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1310
|
-
|
|
1311
|
-
/**
|
|
1312
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1313
|
-
*/
|
|
1314
|
-
institution?: string;
|
|
1315
1165
|
}
|
|
1316
1166
|
|
|
1317
1167
|
namespace Filters {
|
|
1318
1168
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1319
1169
|
}
|
|
1320
1170
|
|
|
1321
|
-
interface ManualEntry {
|
|
1322
|
-
/**
|
|
1323
|
-
* Settings for configuring manual entry of account details.
|
|
1324
|
-
*/
|
|
1325
|
-
mode: ManualEntry.Mode;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
namespace ManualEntry {
|
|
1329
|
-
type Mode = 'automatic' | 'custom';
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
1171
|
type Permission =
|
|
1333
1172
|
| 'balances'
|
|
1334
1173
|
| 'ownership'
|
|
1335
1174
|
| 'payment_method'
|
|
1336
1175
|
| 'transactions';
|
|
1337
1176
|
|
|
1338
|
-
type Prefetch =
|
|
1339
|
-
| 'balances'
|
|
1340
|
-
| 'inferred_balances'
|
|
1341
|
-
| 'ownership'
|
|
1342
|
-
| 'transactions';
|
|
1177
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1343
1178
|
}
|
|
1344
1179
|
|
|
1345
1180
|
interface MandateOptions {
|
|
@@ -1609,11 +1444,6 @@ declare module 'stripe' {
|
|
|
1609
1444
|
*/
|
|
1610
1445
|
paypal?: PaymentMethodData.Paypal;
|
|
1611
1446
|
|
|
1612
|
-
/**
|
|
1613
|
-
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1614
|
-
*/
|
|
1615
|
-
payto?: PaymentMethodData.Payto;
|
|
1616
|
-
|
|
1617
1447
|
/**
|
|
1618
1448
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
1619
1449
|
*/
|
|
@@ -1629,11 +1459,6 @@ declare module 'stripe' {
|
|
|
1629
1459
|
*/
|
|
1630
1460
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
1631
1461
|
|
|
1632
|
-
/**
|
|
1633
|
-
* If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1634
|
-
*/
|
|
1635
|
-
rechnung?: PaymentMethodData.Rechnung;
|
|
1636
|
-
|
|
1637
1462
|
/**
|
|
1638
1463
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
1639
1464
|
*/
|
|
@@ -1958,23 +1783,6 @@ declare module 'stripe' {
|
|
|
1958
1783
|
|
|
1959
1784
|
interface Paypal {}
|
|
1960
1785
|
|
|
1961
|
-
interface Payto {
|
|
1962
|
-
/**
|
|
1963
|
-
* The account number for the bank account.
|
|
1964
|
-
*/
|
|
1965
|
-
account_number?: string;
|
|
1966
|
-
|
|
1967
|
-
/**
|
|
1968
|
-
* Bank-State-Branch number of the bank account.
|
|
1969
|
-
*/
|
|
1970
|
-
bsb_number?: string;
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* The PayID alias for the bank account.
|
|
1974
|
-
*/
|
|
1975
|
-
pay_id?: string;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
1786
|
interface Pix {}
|
|
1979
1787
|
|
|
1980
1788
|
interface Promptpay {}
|
|
@@ -1986,32 +1794,6 @@ declare module 'stripe' {
|
|
|
1986
1794
|
session?: string;
|
|
1987
1795
|
}
|
|
1988
1796
|
|
|
1989
|
-
interface Rechnung {
|
|
1990
|
-
/**
|
|
1991
|
-
* Customer's date of birth
|
|
1992
|
-
*/
|
|
1993
|
-
dob: Rechnung.Dob;
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
namespace Rechnung {
|
|
1997
|
-
interface Dob {
|
|
1998
|
-
/**
|
|
1999
|
-
* The day of birth, between 1 and 31.
|
|
2000
|
-
*/
|
|
2001
|
-
day: number;
|
|
2002
|
-
|
|
2003
|
-
/**
|
|
2004
|
-
* The month of birth, between 1 and 12.
|
|
2005
|
-
*/
|
|
2006
|
-
month: number;
|
|
2007
|
-
|
|
2008
|
-
/**
|
|
2009
|
-
* The four-digit year of birth.
|
|
2010
|
-
*/
|
|
2011
|
-
year: number;
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
1797
|
interface RevolutPay {}
|
|
2016
1798
|
|
|
2017
1799
|
interface SepaDebit {
|
|
@@ -2063,10 +1845,8 @@ declare module 'stripe' {
|
|
|
2063
1845
|
| 'p24'
|
|
2064
1846
|
| 'paynow'
|
|
2065
1847
|
| 'paypal'
|
|
2066
|
-
| 'payto'
|
|
2067
1848
|
| 'pix'
|
|
2068
1849
|
| 'promptpay'
|
|
2069
|
-
| 'rechnung'
|
|
2070
1850
|
| 'revolut_pay'
|
|
2071
1851
|
| 'sepa_debit'
|
|
2072
1852
|
| 'sofort'
|
|
@@ -2145,11 +1925,6 @@ declare module 'stripe' {
|
|
|
2145
1925
|
*/
|
|
2146
1926
|
paypal?: PaymentMethodOptions.Paypal;
|
|
2147
1927
|
|
|
2148
|
-
/**
|
|
2149
|
-
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
2150
|
-
*/
|
|
2151
|
-
payto?: PaymentMethodOptions.Payto;
|
|
2152
|
-
|
|
2153
1928
|
/**
|
|
2154
1929
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2155
1930
|
*/
|
|
@@ -2433,86 +2208,6 @@ declare module 'stripe' {
|
|
|
2433
2208
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
2434
2209
|
*/
|
|
2435
2210
|
billing_agreement_id?: string;
|
|
2436
|
-
|
|
2437
|
-
currency?: string;
|
|
2438
|
-
|
|
2439
|
-
/**
|
|
2440
|
-
* 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.
|
|
2441
|
-
*/
|
|
2442
|
-
subsellers?: Array<string>;
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
interface Payto {
|
|
2446
|
-
/**
|
|
2447
|
-
* Additional fields for Mandate creation.
|
|
2448
|
-
*/
|
|
2449
|
-
mandate_options?: Payto.MandateOptions;
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
namespace Payto {
|
|
2453
|
-
interface MandateOptions {
|
|
2454
|
-
/**
|
|
2455
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2456
|
-
*/
|
|
2457
|
-
amount?: number;
|
|
2458
|
-
|
|
2459
|
-
/**
|
|
2460
|
-
* 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.
|
|
2461
|
-
*/
|
|
2462
|
-
amount_type?: MandateOptions.AmountType;
|
|
2463
|
-
|
|
2464
|
-
/**
|
|
2465
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2466
|
-
*/
|
|
2467
|
-
end_date?: string;
|
|
2468
|
-
|
|
2469
|
-
/**
|
|
2470
|
-
* The periodicity at which payments will be collected.
|
|
2471
|
-
*/
|
|
2472
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2473
|
-
|
|
2474
|
-
/**
|
|
2475
|
-
* 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.
|
|
2476
|
-
*/
|
|
2477
|
-
payments_per_period?: number;
|
|
2478
|
-
|
|
2479
|
-
/**
|
|
2480
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
2481
|
-
*/
|
|
2482
|
-
purpose?: MandateOptions.Purpose;
|
|
2483
|
-
|
|
2484
|
-
/**
|
|
2485
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2486
|
-
*/
|
|
2487
|
-
start_date?: string;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
namespace MandateOptions {
|
|
2491
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2492
|
-
|
|
2493
|
-
type PaymentSchedule =
|
|
2494
|
-
| 'adhoc'
|
|
2495
|
-
| 'annual'
|
|
2496
|
-
| 'daily'
|
|
2497
|
-
| 'fortnightly'
|
|
2498
|
-
| 'monthly'
|
|
2499
|
-
| 'quarterly'
|
|
2500
|
-
| 'semi_annual'
|
|
2501
|
-
| 'weekly';
|
|
2502
|
-
|
|
2503
|
-
type Purpose =
|
|
2504
|
-
| 'dependant_support'
|
|
2505
|
-
| 'government'
|
|
2506
|
-
| 'loan'
|
|
2507
|
-
| 'mortgage'
|
|
2508
|
-
| 'other'
|
|
2509
|
-
| 'pension'
|
|
2510
|
-
| 'personal'
|
|
2511
|
-
| 'retail'
|
|
2512
|
-
| 'salary'
|
|
2513
|
-
| 'tax'
|
|
2514
|
-
| 'utility';
|
|
2515
|
-
}
|
|
2516
2211
|
}
|
|
2517
2212
|
|
|
2518
2213
|
interface SepaDebit {
|
|
@@ -2555,11 +2250,6 @@ declare module 'stripe' {
|
|
|
2555
2250
|
*/
|
|
2556
2251
|
filters?: FinancialConnections.Filters;
|
|
2557
2252
|
|
|
2558
|
-
/**
|
|
2559
|
-
* Customize manual entry behavior
|
|
2560
|
-
*/
|
|
2561
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
2562
|
-
|
|
2563
2253
|
/**
|
|
2564
2254
|
* 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`.
|
|
2565
2255
|
*/
|
|
@@ -2582,39 +2272,19 @@ declare module 'stripe' {
|
|
|
2582
2272
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2583
2273
|
*/
|
|
2584
2274
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2585
|
-
|
|
2586
|
-
/**
|
|
2587
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
2588
|
-
*/
|
|
2589
|
-
institution?: string;
|
|
2590
2275
|
}
|
|
2591
2276
|
|
|
2592
2277
|
namespace Filters {
|
|
2593
2278
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2594
2279
|
}
|
|
2595
2280
|
|
|
2596
|
-
interface ManualEntry {
|
|
2597
|
-
/**
|
|
2598
|
-
* Settings for configuring manual entry of account details.
|
|
2599
|
-
*/
|
|
2600
|
-
mode: ManualEntry.Mode;
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
namespace ManualEntry {
|
|
2604
|
-
type Mode = 'automatic' | 'custom';
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
2281
|
type Permission =
|
|
2608
2282
|
| 'balances'
|
|
2609
2283
|
| 'ownership'
|
|
2610
2284
|
| 'payment_method'
|
|
2611
2285
|
| 'transactions';
|
|
2612
2286
|
|
|
2613
|
-
type Prefetch =
|
|
2614
|
-
| 'balances'
|
|
2615
|
-
| 'inferred_balances'
|
|
2616
|
-
| 'ownership'
|
|
2617
|
-
| 'transactions';
|
|
2287
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2618
2288
|
}
|
|
2619
2289
|
|
|
2620
2290
|
interface MandateOptions {
|
|
@@ -2933,11 +2603,6 @@ declare module 'stripe' {
|
|
|
2933
2603
|
*/
|
|
2934
2604
|
paypal?: PaymentMethodData.Paypal;
|
|
2935
2605
|
|
|
2936
|
-
/**
|
|
2937
|
-
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
2938
|
-
*/
|
|
2939
|
-
payto?: PaymentMethodData.Payto;
|
|
2940
|
-
|
|
2941
2606
|
/**
|
|
2942
2607
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2943
2608
|
*/
|
|
@@ -2953,11 +2618,6 @@ declare module 'stripe' {
|
|
|
2953
2618
|
*/
|
|
2954
2619
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
2955
2620
|
|
|
2956
|
-
/**
|
|
2957
|
-
* If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2958
|
-
*/
|
|
2959
|
-
rechnung?: PaymentMethodData.Rechnung;
|
|
2960
|
-
|
|
2961
2621
|
/**
|
|
2962
2622
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2963
2623
|
*/
|
|
@@ -3282,23 +2942,6 @@ declare module 'stripe' {
|
|
|
3282
2942
|
|
|
3283
2943
|
interface Paypal {}
|
|
3284
2944
|
|
|
3285
|
-
interface Payto {
|
|
3286
|
-
/**
|
|
3287
|
-
* The account number for the bank account.
|
|
3288
|
-
*/
|
|
3289
|
-
account_number?: string;
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* Bank-State-Branch number of the bank account.
|
|
3293
|
-
*/
|
|
3294
|
-
bsb_number?: string;
|
|
3295
|
-
|
|
3296
|
-
/**
|
|
3297
|
-
* The PayID alias for the bank account.
|
|
3298
|
-
*/
|
|
3299
|
-
pay_id?: string;
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
2945
|
interface Pix {}
|
|
3303
2946
|
|
|
3304
2947
|
interface Promptpay {}
|
|
@@ -3310,32 +2953,6 @@ declare module 'stripe' {
|
|
|
3310
2953
|
session?: string;
|
|
3311
2954
|
}
|
|
3312
2955
|
|
|
3313
|
-
interface Rechnung {
|
|
3314
|
-
/**
|
|
3315
|
-
* Customer's date of birth
|
|
3316
|
-
*/
|
|
3317
|
-
dob: Rechnung.Dob;
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
namespace Rechnung {
|
|
3321
|
-
interface Dob {
|
|
3322
|
-
/**
|
|
3323
|
-
* The day of birth, between 1 and 31.
|
|
3324
|
-
*/
|
|
3325
|
-
day: number;
|
|
3326
|
-
|
|
3327
|
-
/**
|
|
3328
|
-
* The month of birth, between 1 and 12.
|
|
3329
|
-
*/
|
|
3330
|
-
month: number;
|
|
3331
|
-
|
|
3332
|
-
/**
|
|
3333
|
-
* The four-digit year of birth.
|
|
3334
|
-
*/
|
|
3335
|
-
year: number;
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
|
|
3339
2956
|
interface RevolutPay {}
|
|
3340
2957
|
|
|
3341
2958
|
interface SepaDebit {
|
|
@@ -3387,10 +3004,8 @@ declare module 'stripe' {
|
|
|
3387
3004
|
| 'p24'
|
|
3388
3005
|
| 'paynow'
|
|
3389
3006
|
| 'paypal'
|
|
3390
|
-
| 'payto'
|
|
3391
3007
|
| 'pix'
|
|
3392
3008
|
| 'promptpay'
|
|
3393
|
-
| 'rechnung'
|
|
3394
3009
|
| 'revolut_pay'
|
|
3395
3010
|
| 'sepa_debit'
|
|
3396
3011
|
| 'sofort'
|
|
@@ -3469,11 +3084,6 @@ declare module 'stripe' {
|
|
|
3469
3084
|
*/
|
|
3470
3085
|
paypal?: PaymentMethodOptions.Paypal;
|
|
3471
3086
|
|
|
3472
|
-
/**
|
|
3473
|
-
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
3474
|
-
*/
|
|
3475
|
-
payto?: PaymentMethodOptions.Payto;
|
|
3476
|
-
|
|
3477
3087
|
/**
|
|
3478
3088
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
3479
3089
|
*/
|
|
@@ -3757,86 +3367,6 @@ declare module 'stripe' {
|
|
|
3757
3367
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
3758
3368
|
*/
|
|
3759
3369
|
billing_agreement_id?: string;
|
|
3760
|
-
|
|
3761
|
-
currency?: string;
|
|
3762
|
-
|
|
3763
|
-
/**
|
|
3764
|
-
* 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.
|
|
3765
|
-
*/
|
|
3766
|
-
subsellers?: Array<string>;
|
|
3767
|
-
}
|
|
3768
|
-
|
|
3769
|
-
interface Payto {
|
|
3770
|
-
/**
|
|
3771
|
-
* Additional fields for Mandate creation.
|
|
3772
|
-
*/
|
|
3773
|
-
mandate_options?: Payto.MandateOptions;
|
|
3774
|
-
}
|
|
3775
|
-
|
|
3776
|
-
namespace Payto {
|
|
3777
|
-
interface MandateOptions {
|
|
3778
|
-
/**
|
|
3779
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
3780
|
-
*/
|
|
3781
|
-
amount?: number;
|
|
3782
|
-
|
|
3783
|
-
/**
|
|
3784
|
-
* 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.
|
|
3785
|
-
*/
|
|
3786
|
-
amount_type?: MandateOptions.AmountType;
|
|
3787
|
-
|
|
3788
|
-
/**
|
|
3789
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
3790
|
-
*/
|
|
3791
|
-
end_date?: string;
|
|
3792
|
-
|
|
3793
|
-
/**
|
|
3794
|
-
* The periodicity at which payments will be collected.
|
|
3795
|
-
*/
|
|
3796
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3797
|
-
|
|
3798
|
-
/**
|
|
3799
|
-
* 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.
|
|
3800
|
-
*/
|
|
3801
|
-
payments_per_period?: number;
|
|
3802
|
-
|
|
3803
|
-
/**
|
|
3804
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
3805
|
-
*/
|
|
3806
|
-
purpose?: MandateOptions.Purpose;
|
|
3807
|
-
|
|
3808
|
-
/**
|
|
3809
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
3810
|
-
*/
|
|
3811
|
-
start_date?: string;
|
|
3812
|
-
}
|
|
3813
|
-
|
|
3814
|
-
namespace MandateOptions {
|
|
3815
|
-
type AmountType = 'fixed' | 'maximum';
|
|
3816
|
-
|
|
3817
|
-
type PaymentSchedule =
|
|
3818
|
-
| 'adhoc'
|
|
3819
|
-
| 'annual'
|
|
3820
|
-
| 'daily'
|
|
3821
|
-
| 'fortnightly'
|
|
3822
|
-
| 'monthly'
|
|
3823
|
-
| 'quarterly'
|
|
3824
|
-
| 'semi_annual'
|
|
3825
|
-
| 'weekly';
|
|
3826
|
-
|
|
3827
|
-
type Purpose =
|
|
3828
|
-
| 'dependant_support'
|
|
3829
|
-
| 'government'
|
|
3830
|
-
| 'loan'
|
|
3831
|
-
| 'mortgage'
|
|
3832
|
-
| 'other'
|
|
3833
|
-
| 'pension'
|
|
3834
|
-
| 'personal'
|
|
3835
|
-
| 'retail'
|
|
3836
|
-
| 'salary'
|
|
3837
|
-
| 'tax'
|
|
3838
|
-
| 'utility';
|
|
3839
|
-
}
|
|
3840
3370
|
}
|
|
3841
3371
|
|
|
3842
3372
|
interface SepaDebit {
|
|
@@ -3879,11 +3409,6 @@ declare module 'stripe' {
|
|
|
3879
3409
|
*/
|
|
3880
3410
|
filters?: FinancialConnections.Filters;
|
|
3881
3411
|
|
|
3882
|
-
/**
|
|
3883
|
-
* Customize manual entry behavior
|
|
3884
|
-
*/
|
|
3885
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
3886
|
-
|
|
3887
3412
|
/**
|
|
3888
3413
|
* 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`.
|
|
3889
3414
|
*/
|
|
@@ -3906,39 +3431,19 @@ declare module 'stripe' {
|
|
|
3906
3431
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3907
3432
|
*/
|
|
3908
3433
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3909
|
-
|
|
3910
|
-
/**
|
|
3911
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
3912
|
-
*/
|
|
3913
|
-
institution?: string;
|
|
3914
3434
|
}
|
|
3915
3435
|
|
|
3916
3436
|
namespace Filters {
|
|
3917
3437
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3918
3438
|
}
|
|
3919
3439
|
|
|
3920
|
-
interface ManualEntry {
|
|
3921
|
-
/**
|
|
3922
|
-
* Settings for configuring manual entry of account details.
|
|
3923
|
-
*/
|
|
3924
|
-
mode: ManualEntry.Mode;
|
|
3925
|
-
}
|
|
3926
|
-
|
|
3927
|
-
namespace ManualEntry {
|
|
3928
|
-
type Mode = 'automatic' | 'custom';
|
|
3929
|
-
}
|
|
3930
|
-
|
|
3931
3440
|
type Permission =
|
|
3932
3441
|
| 'balances'
|
|
3933
3442
|
| 'ownership'
|
|
3934
3443
|
| 'payment_method'
|
|
3935
3444
|
| 'transactions';
|
|
3936
3445
|
|
|
3937
|
-
type Prefetch =
|
|
3938
|
-
| 'balances'
|
|
3939
|
-
| 'inferred_balances'
|
|
3940
|
-
| 'ownership'
|
|
3941
|
-
| 'transactions';
|
|
3446
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
3942
3447
|
}
|
|
3943
3448
|
|
|
3944
3449
|
interface MandateOptions {
|