stripe 16.1.0 → 16.2.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 +753 -109
- 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/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +25 -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/Forms.js +20 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +36 -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/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +25 -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/Forms.js +17 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +22 -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 +110 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +15 -0
- package/types/AccountSessionsResource.d.ts +205 -0
- package/types/Accounts.d.ts +88 -1
- package/types/AccountsResource.d.ts +204 -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 +23 -1
- package/types/Checkout/SessionsResource.d.ts +15 -1
- package/types/ConfirmationTokens.d.ts +83 -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/CustomerSessions.d.ts +48 -0
- package/types/CustomerSessionsResource.d.ts +48 -0
- package/types/CustomersResource.d.ts +2 -0
- package/types/Disputes.d.ts +167 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +426 -0
- package/types/Events.d.ts +83 -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/Sessions.d.ts +44 -1
- package/types/FinancialConnections/SessionsResource.d.ts +33 -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 +91 -0
- package/types/Invoices.d.ts +110 -1
- package/types/InvoicesResource.d.ts +6404 -2261
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/Cards.d.ts +34 -0
- package/types/Issuing/CardsResource.d.ts +125 -0
- 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 +1057 -0
- package/types/OrdersResource.d.ts +2711 -0
- package/types/PaymentIntents.d.ts +463 -1
- package/types/PaymentIntentsResource.d.ts +6682 -3349
- 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 +1528 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
- package/types/Quotes.d.ts +578 -1
- package/types/QuotesResource.d.ts +3174 -265
- package/types/SetupAttempts.d.ts +8 -0
- package/types/SetupIntents.d.ts +104 -1
- package/types/SetupIntentsResource.d.ts +483 -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 +164 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +41 -1
- package/types/SubscriptionsResource.d.ts +337 -2
- 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/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 +50 -0
- package/types/index.d.ts +61 -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'
|
|
@@ -815,6 +870,11 @@ declare module 'stripe' {
|
|
|
815
870
|
*/
|
|
816
871
|
paypal?: PaymentMethodOptions.Paypal;
|
|
817
872
|
|
|
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
|
+
|
|
818
878
|
/**
|
|
819
879
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
820
880
|
*/
|
|
@@ -1098,6 +1158,86 @@ declare module 'stripe' {
|
|
|
1098
1158
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
1099
1159
|
*/
|
|
1100
1160
|
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
|
+
}
|
|
1101
1241
|
}
|
|
1102
1242
|
|
|
1103
1243
|
interface SepaDebit {
|
|
@@ -1140,6 +1280,11 @@ declare module 'stripe' {
|
|
|
1140
1280
|
*/
|
|
1141
1281
|
filters?: FinancialConnections.Filters;
|
|
1142
1282
|
|
|
1283
|
+
/**
|
|
1284
|
+
* Customize manual entry behavior
|
|
1285
|
+
*/
|
|
1286
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1287
|
+
|
|
1143
1288
|
/**
|
|
1144
1289
|
* 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`.
|
|
1145
1290
|
*/
|
|
@@ -1168,13 +1313,28 @@ declare module 'stripe' {
|
|
|
1168
1313
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1169
1314
|
}
|
|
1170
1315
|
|
|
1316
|
+
interface ManualEntry {
|
|
1317
|
+
/**
|
|
1318
|
+
* Settings for configuring manual entry of account details.
|
|
1319
|
+
*/
|
|
1320
|
+
mode: ManualEntry.Mode;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
namespace ManualEntry {
|
|
1324
|
+
type Mode = 'automatic' | 'custom';
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1171
1327
|
type Permission =
|
|
1172
1328
|
| 'balances'
|
|
1173
1329
|
| 'ownership'
|
|
1174
1330
|
| 'payment_method'
|
|
1175
1331
|
| 'transactions';
|
|
1176
1332
|
|
|
1177
|
-
type Prefetch =
|
|
1333
|
+
type Prefetch =
|
|
1334
|
+
| 'balances'
|
|
1335
|
+
| 'inferred_balances'
|
|
1336
|
+
| 'ownership'
|
|
1337
|
+
| 'transactions';
|
|
1178
1338
|
}
|
|
1179
1339
|
|
|
1180
1340
|
interface MandateOptions {
|
|
@@ -1444,6 +1604,11 @@ declare module 'stripe' {
|
|
|
1444
1604
|
*/
|
|
1445
1605
|
paypal?: PaymentMethodData.Paypal;
|
|
1446
1606
|
|
|
1607
|
+
/**
|
|
1608
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1609
|
+
*/
|
|
1610
|
+
payto?: PaymentMethodData.Payto;
|
|
1611
|
+
|
|
1447
1612
|
/**
|
|
1448
1613
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
1449
1614
|
*/
|
|
@@ -1459,6 +1624,11 @@ declare module 'stripe' {
|
|
|
1459
1624
|
*/
|
|
1460
1625
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
1461
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1629
|
+
*/
|
|
1630
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
1631
|
+
|
|
1462
1632
|
/**
|
|
1463
1633
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
1464
1634
|
*/
|
|
@@ -1783,6 +1953,23 @@ declare module 'stripe' {
|
|
|
1783
1953
|
|
|
1784
1954
|
interface Paypal {}
|
|
1785
1955
|
|
|
1956
|
+
interface Payto {
|
|
1957
|
+
/**
|
|
1958
|
+
* The account number for the bank account.
|
|
1959
|
+
*/
|
|
1960
|
+
account_number?: string;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Bank-State-Branch number of the bank account.
|
|
1964
|
+
*/
|
|
1965
|
+
bsb_number?: string;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* The PayID alias for the bank account.
|
|
1969
|
+
*/
|
|
1970
|
+
pay_id?: string;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1786
1973
|
interface Pix {}
|
|
1787
1974
|
|
|
1788
1975
|
interface Promptpay {}
|
|
@@ -1794,6 +1981,32 @@ declare module 'stripe' {
|
|
|
1794
1981
|
session?: string;
|
|
1795
1982
|
}
|
|
1796
1983
|
|
|
1984
|
+
interface Rechnung {
|
|
1985
|
+
/**
|
|
1986
|
+
* Customer's date of birth
|
|
1987
|
+
*/
|
|
1988
|
+
dob: Rechnung.Dob;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
namespace Rechnung {
|
|
1992
|
+
interface Dob {
|
|
1993
|
+
/**
|
|
1994
|
+
* The day of birth, between 1 and 31.
|
|
1995
|
+
*/
|
|
1996
|
+
day: number;
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* The month of birth, between 1 and 12.
|
|
2000
|
+
*/
|
|
2001
|
+
month: number;
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* The four-digit year of birth.
|
|
2005
|
+
*/
|
|
2006
|
+
year: number;
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
|
|
1797
2010
|
interface RevolutPay {}
|
|
1798
2011
|
|
|
1799
2012
|
interface SepaDebit {
|
|
@@ -1845,8 +2058,10 @@ declare module 'stripe' {
|
|
|
1845
2058
|
| 'p24'
|
|
1846
2059
|
| 'paynow'
|
|
1847
2060
|
| 'paypal'
|
|
2061
|
+
| 'payto'
|
|
1848
2062
|
| 'pix'
|
|
1849
2063
|
| 'promptpay'
|
|
2064
|
+
| 'rechnung'
|
|
1850
2065
|
| 'revolut_pay'
|
|
1851
2066
|
| 'sepa_debit'
|
|
1852
2067
|
| 'sofort'
|
|
@@ -1925,6 +2140,11 @@ declare module 'stripe' {
|
|
|
1925
2140
|
*/
|
|
1926
2141
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1927
2142
|
|
|
2143
|
+
/**
|
|
2144
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
2145
|
+
*/
|
|
2146
|
+
payto?: PaymentMethodOptions.Payto;
|
|
2147
|
+
|
|
1928
2148
|
/**
|
|
1929
2149
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
1930
2150
|
*/
|
|
@@ -2208,6 +2428,86 @@ declare module 'stripe' {
|
|
|
2208
2428
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
2209
2429
|
*/
|
|
2210
2430
|
billing_agreement_id?: string;
|
|
2431
|
+
|
|
2432
|
+
currency?: string;
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* 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.
|
|
2436
|
+
*/
|
|
2437
|
+
subsellers?: Array<string>;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
interface Payto {
|
|
2441
|
+
/**
|
|
2442
|
+
* Additional fields for Mandate creation.
|
|
2443
|
+
*/
|
|
2444
|
+
mandate_options?: Payto.MandateOptions;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
namespace Payto {
|
|
2448
|
+
interface MandateOptions {
|
|
2449
|
+
/**
|
|
2450
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2451
|
+
*/
|
|
2452
|
+
amount?: number;
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* 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.
|
|
2456
|
+
*/
|
|
2457
|
+
amount_type?: MandateOptions.AmountType;
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2461
|
+
*/
|
|
2462
|
+
end_date?: string;
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* The periodicity at which payments will be collected.
|
|
2466
|
+
*/
|
|
2467
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* 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.
|
|
2471
|
+
*/
|
|
2472
|
+
payments_per_period?: number;
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2476
|
+
*/
|
|
2477
|
+
purpose?: MandateOptions.Purpose;
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2481
|
+
*/
|
|
2482
|
+
start_date?: string;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
namespace MandateOptions {
|
|
2486
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2487
|
+
|
|
2488
|
+
type PaymentSchedule =
|
|
2489
|
+
| 'adhoc'
|
|
2490
|
+
| 'annual'
|
|
2491
|
+
| 'daily'
|
|
2492
|
+
| 'fortnightly'
|
|
2493
|
+
| 'monthly'
|
|
2494
|
+
| 'quarterly'
|
|
2495
|
+
| 'semi_annual'
|
|
2496
|
+
| 'weekly';
|
|
2497
|
+
|
|
2498
|
+
type Purpose =
|
|
2499
|
+
| 'dependant_support'
|
|
2500
|
+
| 'government'
|
|
2501
|
+
| 'loan'
|
|
2502
|
+
| 'mortgage'
|
|
2503
|
+
| 'other'
|
|
2504
|
+
| 'pension'
|
|
2505
|
+
| 'personal'
|
|
2506
|
+
| 'retail'
|
|
2507
|
+
| 'salary'
|
|
2508
|
+
| 'tax'
|
|
2509
|
+
| 'utility';
|
|
2510
|
+
}
|
|
2211
2511
|
}
|
|
2212
2512
|
|
|
2213
2513
|
interface SepaDebit {
|
|
@@ -2250,6 +2550,11 @@ declare module 'stripe' {
|
|
|
2250
2550
|
*/
|
|
2251
2551
|
filters?: FinancialConnections.Filters;
|
|
2252
2552
|
|
|
2553
|
+
/**
|
|
2554
|
+
* Customize manual entry behavior
|
|
2555
|
+
*/
|
|
2556
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
2557
|
+
|
|
2253
2558
|
/**
|
|
2254
2559
|
* 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`.
|
|
2255
2560
|
*/
|
|
@@ -2278,13 +2583,28 @@ declare module 'stripe' {
|
|
|
2278
2583
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2279
2584
|
}
|
|
2280
2585
|
|
|
2586
|
+
interface ManualEntry {
|
|
2587
|
+
/**
|
|
2588
|
+
* Settings for configuring manual entry of account details.
|
|
2589
|
+
*/
|
|
2590
|
+
mode: ManualEntry.Mode;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
namespace ManualEntry {
|
|
2594
|
+
type Mode = 'automatic' | 'custom';
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2281
2597
|
type Permission =
|
|
2282
2598
|
| 'balances'
|
|
2283
2599
|
| 'ownership'
|
|
2284
2600
|
| 'payment_method'
|
|
2285
2601
|
| 'transactions';
|
|
2286
2602
|
|
|
2287
|
-
type Prefetch =
|
|
2603
|
+
type Prefetch =
|
|
2604
|
+
| 'balances'
|
|
2605
|
+
| 'inferred_balances'
|
|
2606
|
+
| 'ownership'
|
|
2607
|
+
| 'transactions';
|
|
2288
2608
|
}
|
|
2289
2609
|
|
|
2290
2610
|
interface MandateOptions {
|
|
@@ -2603,6 +2923,11 @@ declare module 'stripe' {
|
|
|
2603
2923
|
*/
|
|
2604
2924
|
paypal?: PaymentMethodData.Paypal;
|
|
2605
2925
|
|
|
2926
|
+
/**
|
|
2927
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
2928
|
+
*/
|
|
2929
|
+
payto?: PaymentMethodData.Payto;
|
|
2930
|
+
|
|
2606
2931
|
/**
|
|
2607
2932
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2608
2933
|
*/
|
|
@@ -2618,6 +2943,11 @@ declare module 'stripe' {
|
|
|
2618
2943
|
*/
|
|
2619
2944
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
2620
2945
|
|
|
2946
|
+
/**
|
|
2947
|
+
* If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2948
|
+
*/
|
|
2949
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
2950
|
+
|
|
2621
2951
|
/**
|
|
2622
2952
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2623
2953
|
*/
|
|
@@ -2942,6 +3272,23 @@ declare module 'stripe' {
|
|
|
2942
3272
|
|
|
2943
3273
|
interface Paypal {}
|
|
2944
3274
|
|
|
3275
|
+
interface Payto {
|
|
3276
|
+
/**
|
|
3277
|
+
* The account number for the bank account.
|
|
3278
|
+
*/
|
|
3279
|
+
account_number?: string;
|
|
3280
|
+
|
|
3281
|
+
/**
|
|
3282
|
+
* Bank-State-Branch number of the bank account.
|
|
3283
|
+
*/
|
|
3284
|
+
bsb_number?: string;
|
|
3285
|
+
|
|
3286
|
+
/**
|
|
3287
|
+
* The PayID alias for the bank account.
|
|
3288
|
+
*/
|
|
3289
|
+
pay_id?: string;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
2945
3292
|
interface Pix {}
|
|
2946
3293
|
|
|
2947
3294
|
interface Promptpay {}
|
|
@@ -2953,6 +3300,32 @@ declare module 'stripe' {
|
|
|
2953
3300
|
session?: string;
|
|
2954
3301
|
}
|
|
2955
3302
|
|
|
3303
|
+
interface Rechnung {
|
|
3304
|
+
/**
|
|
3305
|
+
* Customer's date of birth
|
|
3306
|
+
*/
|
|
3307
|
+
dob: Rechnung.Dob;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
namespace Rechnung {
|
|
3311
|
+
interface Dob {
|
|
3312
|
+
/**
|
|
3313
|
+
* The day of birth, between 1 and 31.
|
|
3314
|
+
*/
|
|
3315
|
+
day: number;
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* The month of birth, between 1 and 12.
|
|
3319
|
+
*/
|
|
3320
|
+
month: number;
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* The four-digit year of birth.
|
|
3324
|
+
*/
|
|
3325
|
+
year: number;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
|
|
2956
3329
|
interface RevolutPay {}
|
|
2957
3330
|
|
|
2958
3331
|
interface SepaDebit {
|
|
@@ -3004,8 +3377,10 @@ declare module 'stripe' {
|
|
|
3004
3377
|
| 'p24'
|
|
3005
3378
|
| 'paynow'
|
|
3006
3379
|
| 'paypal'
|
|
3380
|
+
| 'payto'
|
|
3007
3381
|
| 'pix'
|
|
3008
3382
|
| 'promptpay'
|
|
3383
|
+
| 'rechnung'
|
|
3009
3384
|
| 'revolut_pay'
|
|
3010
3385
|
| 'sepa_debit'
|
|
3011
3386
|
| 'sofort'
|
|
@@ -3084,6 +3459,11 @@ declare module 'stripe' {
|
|
|
3084
3459
|
*/
|
|
3085
3460
|
paypal?: PaymentMethodOptions.Paypal;
|
|
3086
3461
|
|
|
3462
|
+
/**
|
|
3463
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
3464
|
+
*/
|
|
3465
|
+
payto?: PaymentMethodOptions.Payto;
|
|
3466
|
+
|
|
3087
3467
|
/**
|
|
3088
3468
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
3089
3469
|
*/
|
|
@@ -3367,6 +3747,86 @@ declare module 'stripe' {
|
|
|
3367
3747
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
3368
3748
|
*/
|
|
3369
3749
|
billing_agreement_id?: string;
|
|
3750
|
+
|
|
3751
|
+
currency?: string;
|
|
3752
|
+
|
|
3753
|
+
/**
|
|
3754
|
+
* 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.
|
|
3755
|
+
*/
|
|
3756
|
+
subsellers?: Array<string>;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
interface Payto {
|
|
3760
|
+
/**
|
|
3761
|
+
* Additional fields for Mandate creation.
|
|
3762
|
+
*/
|
|
3763
|
+
mandate_options?: Payto.MandateOptions;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
namespace Payto {
|
|
3767
|
+
interface MandateOptions {
|
|
3768
|
+
/**
|
|
3769
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
3770
|
+
*/
|
|
3771
|
+
amount?: number;
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* 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.
|
|
3775
|
+
*/
|
|
3776
|
+
amount_type?: MandateOptions.AmountType;
|
|
3777
|
+
|
|
3778
|
+
/**
|
|
3779
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
3780
|
+
*/
|
|
3781
|
+
end_date?: string;
|
|
3782
|
+
|
|
3783
|
+
/**
|
|
3784
|
+
* The periodicity at which payments will be collected.
|
|
3785
|
+
*/
|
|
3786
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* 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.
|
|
3790
|
+
*/
|
|
3791
|
+
payments_per_period?: number;
|
|
3792
|
+
|
|
3793
|
+
/**
|
|
3794
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
3795
|
+
*/
|
|
3796
|
+
purpose?: MandateOptions.Purpose;
|
|
3797
|
+
|
|
3798
|
+
/**
|
|
3799
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
3800
|
+
*/
|
|
3801
|
+
start_date?: string;
|
|
3802
|
+
}
|
|
3803
|
+
|
|
3804
|
+
namespace MandateOptions {
|
|
3805
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3806
|
+
|
|
3807
|
+
type PaymentSchedule =
|
|
3808
|
+
| 'adhoc'
|
|
3809
|
+
| 'annual'
|
|
3810
|
+
| 'daily'
|
|
3811
|
+
| 'fortnightly'
|
|
3812
|
+
| 'monthly'
|
|
3813
|
+
| 'quarterly'
|
|
3814
|
+
| 'semi_annual'
|
|
3815
|
+
| 'weekly';
|
|
3816
|
+
|
|
3817
|
+
type Purpose =
|
|
3818
|
+
| 'dependant_support'
|
|
3819
|
+
| 'government'
|
|
3820
|
+
| 'loan'
|
|
3821
|
+
| 'mortgage'
|
|
3822
|
+
| 'other'
|
|
3823
|
+
| 'pension'
|
|
3824
|
+
| 'personal'
|
|
3825
|
+
| 'retail'
|
|
3826
|
+
| 'salary'
|
|
3827
|
+
| 'tax'
|
|
3828
|
+
| 'utility';
|
|
3829
|
+
}
|
|
3370
3830
|
}
|
|
3371
3831
|
|
|
3372
3832
|
interface SepaDebit {
|
|
@@ -3409,6 +3869,11 @@ declare module 'stripe' {
|
|
|
3409
3869
|
*/
|
|
3410
3870
|
filters?: FinancialConnections.Filters;
|
|
3411
3871
|
|
|
3872
|
+
/**
|
|
3873
|
+
* Customize manual entry behavior
|
|
3874
|
+
*/
|
|
3875
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3876
|
+
|
|
3412
3877
|
/**
|
|
3413
3878
|
* 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`.
|
|
3414
3879
|
*/
|
|
@@ -3437,13 +3902,28 @@ declare module 'stripe' {
|
|
|
3437
3902
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3438
3903
|
}
|
|
3439
3904
|
|
|
3905
|
+
interface ManualEntry {
|
|
3906
|
+
/**
|
|
3907
|
+
* Settings for configuring manual entry of account details.
|
|
3908
|
+
*/
|
|
3909
|
+
mode: ManualEntry.Mode;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
namespace ManualEntry {
|
|
3913
|
+
type Mode = 'automatic' | 'custom';
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3440
3916
|
type Permission =
|
|
3441
3917
|
| 'balances'
|
|
3442
3918
|
| 'ownership'
|
|
3443
3919
|
| 'payment_method'
|
|
3444
3920
|
| 'transactions';
|
|
3445
3921
|
|
|
3446
|
-
type Prefetch =
|
|
3922
|
+
type Prefetch =
|
|
3923
|
+
| 'balances'
|
|
3924
|
+
| 'inferred_balances'
|
|
3925
|
+
| 'ownership'
|
|
3926
|
+
| 'transactions';
|
|
3447
3927
|
}
|
|
3448
3928
|
|
|
3449
3929
|
interface MandateOptions {
|