stripe 18.0.0 → 18.1.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 +1155 -242
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +91 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceSettings.js +10 -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/ExternalAccounts.js +23 -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/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -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/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +12 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +102 -18
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +79 -0
- package/esm/apiVersion.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceSettings.js +7 -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/ExternalAccounts.js +20 -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/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -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/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +9 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +79 -1
- package/esm/stripe.core.js +1 -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 +243 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +85 -0
- package/types/BalanceSettingsResource.d.ts +108 -0
- package/types/Billing/CreditBalanceSummary.d.ts +5 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +5 -0
- package/types/Billing/CreditGrantsResource.d.ts +11 -1
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- 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/Cards.d.ts +5 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +166 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +312 -3
- package/types/Checkout/SessionsResource.d.ts +244 -1
- package/types/ConfirmationTokens.d.ts +151 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +9 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +5 -0
- package/types/CustomerSessionsResource.d.ts +6 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Errors.d.ts +69 -2
- package/types/EventTypes.d.ts +596 -0
- package/types/Events.d.ts +96 -1
- package/types/ExternalAccountsResource.d.ts +219 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +31 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -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/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +10 -0
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/InvoicePayments.d.ts +5 -0
- package/types/Invoices.d.ts +141 -3
- package/types/InvoicesResource.d.ts +1545 -6
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -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 +1189 -0
- package/types/OrdersResource.d.ts +2981 -0
- package/types/PaymentAttemptRecords.d.ts +2112 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +679 -2
- package/types/PaymentIntentsResource.d.ts +8437 -3941
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +120 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2105 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Payouts.d.ts +5 -0
- package/types/PayoutsResource.d.ts +5 -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/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1685 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
- package/types/Quotes.d.ts +601 -1
- package/types/QuotesResource.d.ts +2565 -218
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +50 -1
- package/types/SetupIntents.d.ts +121 -2
- package/types/SetupIntentsResource.d.ts +730 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +23 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1237 -9
- package/types/Subscriptions.d.ts +94 -1
- package/types/SubscriptionsResource.d.ts +384 -8
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +300 -0
- package/types/Terminal/ReadersResource.d.ts +220 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +171 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -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/V2/Core/AccountLinks.d.ts +101 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3760 -0
- package/types/V2/Core/Accounts.d.ts +8057 -0
- package/types/V2/Core/AccountsResource.d.ts +10184 -0
- package/types/V2/Core/Persons.d.ts +1857 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +155 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +65 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +687 -1
- package/types/V2/FinancialAddressCreditSimulations.d.ts +22 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +27 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +105 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +540 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +287 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +201 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +141 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +93 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +273 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +92 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +246 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +146 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +82 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +280 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +219 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +151 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +166 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +72 -2
- package/types/index.d.ts +135 -5
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/InvoicePaymentsResource.d.ts +0 -74
|
@@ -34,6 +34,13 @@ declare module 'stripe' {
|
|
|
34
34
|
*/
|
|
35
35
|
customer?: string;
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* ID of the Account this SetupIntent belongs to, if one exists.
|
|
39
|
+
*
|
|
40
|
+
* If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
|
|
41
|
+
*/
|
|
42
|
+
customer_account?: string;
|
|
43
|
+
|
|
37
44
|
/**
|
|
38
45
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
39
46
|
*/
|
|
@@ -281,11 +288,21 @@ declare module 'stripe' {
|
|
|
281
288
|
*/
|
|
282
289
|
giropay?: PaymentMethodData.Giropay;
|
|
283
290
|
|
|
291
|
+
/**
|
|
292
|
+
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
293
|
+
*/
|
|
294
|
+
gopay?: PaymentMethodData.Gopay;
|
|
295
|
+
|
|
284
296
|
/**
|
|
285
297
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
286
298
|
*/
|
|
287
299
|
grabpay?: PaymentMethodData.Grabpay;
|
|
288
300
|
|
|
301
|
+
/**
|
|
302
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
303
|
+
*/
|
|
304
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
305
|
+
|
|
289
306
|
/**
|
|
290
307
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
291
308
|
*/
|
|
@@ -321,6 +338,11 @@ declare module 'stripe' {
|
|
|
321
338
|
*/
|
|
322
339
|
link?: PaymentMethodData.Link;
|
|
323
340
|
|
|
341
|
+
/**
|
|
342
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
343
|
+
*/
|
|
344
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
345
|
+
|
|
324
346
|
/**
|
|
325
347
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
326
348
|
*/
|
|
@@ -376,6 +398,11 @@ declare module 'stripe' {
|
|
|
376
398
|
*/
|
|
377
399
|
paypal?: PaymentMethodData.Paypal;
|
|
378
400
|
|
|
401
|
+
/**
|
|
402
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
403
|
+
*/
|
|
404
|
+
payto?: PaymentMethodData.Payto;
|
|
405
|
+
|
|
379
406
|
/**
|
|
380
407
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
381
408
|
*/
|
|
@@ -386,11 +413,21 @@ declare module 'stripe' {
|
|
|
386
413
|
*/
|
|
387
414
|
promptpay?: PaymentMethodData.Promptpay;
|
|
388
415
|
|
|
416
|
+
/**
|
|
417
|
+
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
418
|
+
*/
|
|
419
|
+
qris?: PaymentMethodData.Qris;
|
|
420
|
+
|
|
389
421
|
/**
|
|
390
422
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
391
423
|
*/
|
|
392
424
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
393
425
|
|
|
426
|
+
/**
|
|
427
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
428
|
+
*/
|
|
429
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
430
|
+
|
|
394
431
|
/**
|
|
395
432
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
396
433
|
*/
|
|
@@ -411,11 +448,21 @@ declare module 'stripe' {
|
|
|
411
448
|
*/
|
|
412
449
|
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
413
450
|
|
|
451
|
+
/**
|
|
452
|
+
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
453
|
+
*/
|
|
454
|
+
shopeepay?: PaymentMethodData.Shopeepay;
|
|
455
|
+
|
|
414
456
|
/**
|
|
415
457
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
416
458
|
*/
|
|
417
459
|
sofort?: PaymentMethodData.Sofort;
|
|
418
460
|
|
|
461
|
+
/**
|
|
462
|
+
* This hash contains details about the Stripe balance payment method.
|
|
463
|
+
*/
|
|
464
|
+
stripe_balance?: PaymentMethodData.StripeBalance;
|
|
465
|
+
|
|
419
466
|
/**
|
|
420
467
|
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
421
468
|
*/
|
|
@@ -621,8 +668,21 @@ declare module 'stripe' {
|
|
|
621
668
|
|
|
622
669
|
interface Giropay {}
|
|
623
670
|
|
|
671
|
+
interface Gopay {}
|
|
672
|
+
|
|
624
673
|
interface Grabpay {}
|
|
625
674
|
|
|
675
|
+
interface IdBankTransfer {
|
|
676
|
+
/**
|
|
677
|
+
* Bank where the account is held.
|
|
678
|
+
*/
|
|
679
|
+
bank?: IdBankTransfer.Bank;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
namespace IdBankTransfer {
|
|
683
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
684
|
+
}
|
|
685
|
+
|
|
626
686
|
interface Ideal {
|
|
627
687
|
/**
|
|
628
688
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -686,6 +746,8 @@ declare module 'stripe' {
|
|
|
686
746
|
|
|
687
747
|
interface Link {}
|
|
688
748
|
|
|
749
|
+
interface MbWay {}
|
|
750
|
+
|
|
689
751
|
interface Mobilepay {}
|
|
690
752
|
|
|
691
753
|
interface Multibanco {}
|
|
@@ -777,10 +839,29 @@ declare module 'stripe' {
|
|
|
777
839
|
|
|
778
840
|
interface Paypal {}
|
|
779
841
|
|
|
842
|
+
interface Payto {
|
|
843
|
+
/**
|
|
844
|
+
* The account number for the bank account.
|
|
845
|
+
*/
|
|
846
|
+
account_number?: string;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Bank-State-Branch number of the bank account.
|
|
850
|
+
*/
|
|
851
|
+
bsb_number?: string;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* The PayID alias for the bank account.
|
|
855
|
+
*/
|
|
856
|
+
pay_id?: string;
|
|
857
|
+
}
|
|
858
|
+
|
|
780
859
|
interface Pix {}
|
|
781
860
|
|
|
782
861
|
interface Promptpay {}
|
|
783
862
|
|
|
863
|
+
interface Qris {}
|
|
864
|
+
|
|
784
865
|
interface RadarOptions {
|
|
785
866
|
/**
|
|
786
867
|
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -788,6 +869,32 @@ declare module 'stripe' {
|
|
|
788
869
|
session?: string;
|
|
789
870
|
}
|
|
790
871
|
|
|
872
|
+
interface Rechnung {
|
|
873
|
+
/**
|
|
874
|
+
* Customer's date of birth
|
|
875
|
+
*/
|
|
876
|
+
dob: Rechnung.Dob;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
namespace Rechnung {
|
|
880
|
+
interface Dob {
|
|
881
|
+
/**
|
|
882
|
+
* The day of birth, between 1 and 31.
|
|
883
|
+
*/
|
|
884
|
+
day: number;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The month of birth, between 1 and 12.
|
|
888
|
+
*/
|
|
889
|
+
month: number;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The four-digit year of birth.
|
|
893
|
+
*/
|
|
894
|
+
year: number;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
791
898
|
interface RevolutPay {}
|
|
792
899
|
|
|
793
900
|
interface SamsungPay {}
|
|
@@ -801,6 +908,8 @@ declare module 'stripe' {
|
|
|
801
908
|
iban: string;
|
|
802
909
|
}
|
|
803
910
|
|
|
911
|
+
interface Shopeepay {}
|
|
912
|
+
|
|
804
913
|
interface Sofort {
|
|
805
914
|
/**
|
|
806
915
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -812,6 +921,22 @@ declare module 'stripe' {
|
|
|
812
921
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
813
922
|
}
|
|
814
923
|
|
|
924
|
+
interface StripeBalance {
|
|
925
|
+
/**
|
|
926
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
927
|
+
*/
|
|
928
|
+
account?: string;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
932
|
+
*/
|
|
933
|
+
source_type?: StripeBalance.SourceType;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
namespace StripeBalance {
|
|
937
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
938
|
+
}
|
|
939
|
+
|
|
815
940
|
interface Swish {}
|
|
816
941
|
|
|
817
942
|
interface Twint {}
|
|
@@ -834,13 +959,16 @@ declare module 'stripe' {
|
|
|
834
959
|
| 'eps'
|
|
835
960
|
| 'fpx'
|
|
836
961
|
| 'giropay'
|
|
962
|
+
| 'gopay'
|
|
837
963
|
| 'grabpay'
|
|
964
|
+
| 'id_bank_transfer'
|
|
838
965
|
| 'ideal'
|
|
839
966
|
| 'kakao_pay'
|
|
840
967
|
| 'klarna'
|
|
841
968
|
| 'konbini'
|
|
842
969
|
| 'kr_card'
|
|
843
970
|
| 'link'
|
|
971
|
+
| 'mb_way'
|
|
844
972
|
| 'mobilepay'
|
|
845
973
|
| 'multibanco'
|
|
846
974
|
| 'naver_pay'
|
|
@@ -851,13 +979,18 @@ declare module 'stripe' {
|
|
|
851
979
|
| 'payco'
|
|
852
980
|
| 'paynow'
|
|
853
981
|
| 'paypal'
|
|
982
|
+
| 'payto'
|
|
854
983
|
| 'pix'
|
|
855
984
|
| 'promptpay'
|
|
985
|
+
| 'qris'
|
|
986
|
+
| 'rechnung'
|
|
856
987
|
| 'revolut_pay'
|
|
857
988
|
| 'samsung_pay'
|
|
858
989
|
| 'satispay'
|
|
859
990
|
| 'sepa_debit'
|
|
991
|
+
| 'shopeepay'
|
|
860
992
|
| 'sofort'
|
|
993
|
+
| 'stripe_balance'
|
|
861
994
|
| 'swish'
|
|
862
995
|
| 'twint'
|
|
863
996
|
| 'us_bank_account'
|
|
@@ -938,6 +1071,11 @@ declare module 'stripe' {
|
|
|
938
1071
|
*/
|
|
939
1072
|
paypal?: PaymentMethodOptions.Paypal;
|
|
940
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
1076
|
+
*/
|
|
1077
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1078
|
+
|
|
941
1079
|
/**
|
|
942
1080
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
943
1081
|
*/
|
|
@@ -1239,6 +1377,86 @@ declare module 'stripe' {
|
|
|
1239
1377
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
1240
1378
|
*/
|
|
1241
1379
|
billing_agreement_id?: string;
|
|
1380
|
+
|
|
1381
|
+
currency?: string;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* 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.
|
|
1385
|
+
*/
|
|
1386
|
+
subsellers?: Array<string>;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
interface Payto {
|
|
1390
|
+
/**
|
|
1391
|
+
* Additional fields for Mandate creation.
|
|
1392
|
+
*/
|
|
1393
|
+
mandate_options?: Payto.MandateOptions;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
namespace Payto {
|
|
1397
|
+
interface MandateOptions {
|
|
1398
|
+
/**
|
|
1399
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1400
|
+
*/
|
|
1401
|
+
amount?: number;
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* 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.
|
|
1405
|
+
*/
|
|
1406
|
+
amount_type?: MandateOptions.AmountType;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1410
|
+
*/
|
|
1411
|
+
end_date?: string;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* The periodicity at which payments will be collected.
|
|
1415
|
+
*/
|
|
1416
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* 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.
|
|
1420
|
+
*/
|
|
1421
|
+
payments_per_period?: number;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1425
|
+
*/
|
|
1426
|
+
purpose?: MandateOptions.Purpose;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1430
|
+
*/
|
|
1431
|
+
start_date?: string;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
namespace MandateOptions {
|
|
1435
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1436
|
+
|
|
1437
|
+
type PaymentSchedule =
|
|
1438
|
+
| 'adhoc'
|
|
1439
|
+
| 'annual'
|
|
1440
|
+
| 'daily'
|
|
1441
|
+
| 'fortnightly'
|
|
1442
|
+
| 'monthly'
|
|
1443
|
+
| 'quarterly'
|
|
1444
|
+
| 'semi_annual'
|
|
1445
|
+
| 'weekly';
|
|
1446
|
+
|
|
1447
|
+
type Purpose =
|
|
1448
|
+
| 'dependant_support'
|
|
1449
|
+
| 'government'
|
|
1450
|
+
| 'loan'
|
|
1451
|
+
| 'mortgage'
|
|
1452
|
+
| 'other'
|
|
1453
|
+
| 'pension'
|
|
1454
|
+
| 'personal'
|
|
1455
|
+
| 'retail'
|
|
1456
|
+
| 'salary'
|
|
1457
|
+
| 'tax'
|
|
1458
|
+
| 'utility';
|
|
1459
|
+
}
|
|
1242
1460
|
}
|
|
1243
1461
|
|
|
1244
1462
|
interface SepaDebit {
|
|
@@ -1286,6 +1504,11 @@ declare module 'stripe' {
|
|
|
1286
1504
|
*/
|
|
1287
1505
|
filters?: FinancialConnections.Filters;
|
|
1288
1506
|
|
|
1507
|
+
/**
|
|
1508
|
+
* Customize manual entry behavior
|
|
1509
|
+
*/
|
|
1510
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1511
|
+
|
|
1289
1512
|
/**
|
|
1290
1513
|
* 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`.
|
|
1291
1514
|
*/
|
|
@@ -1308,19 +1531,39 @@ declare module 'stripe' {
|
|
|
1308
1531
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1309
1532
|
*/
|
|
1310
1533
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1537
|
+
*/
|
|
1538
|
+
institution?: string;
|
|
1311
1539
|
}
|
|
1312
1540
|
|
|
1313
1541
|
namespace Filters {
|
|
1314
1542
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1315
1543
|
}
|
|
1316
1544
|
|
|
1545
|
+
interface ManualEntry {
|
|
1546
|
+
/**
|
|
1547
|
+
* Settings for configuring manual entry of account details.
|
|
1548
|
+
*/
|
|
1549
|
+
mode: ManualEntry.Mode;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
namespace ManualEntry {
|
|
1553
|
+
type Mode = 'automatic' | 'custom';
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1317
1556
|
type Permission =
|
|
1318
1557
|
| 'balances'
|
|
1319
1558
|
| 'ownership'
|
|
1320
1559
|
| 'payment_method'
|
|
1321
1560
|
| 'transactions';
|
|
1322
1561
|
|
|
1323
|
-
type Prefetch =
|
|
1562
|
+
type Prefetch =
|
|
1563
|
+
| 'balances'
|
|
1564
|
+
| 'inferred_balances'
|
|
1565
|
+
| 'ownership'
|
|
1566
|
+
| 'transactions';
|
|
1324
1567
|
}
|
|
1325
1568
|
|
|
1326
1569
|
interface MandateOptions {
|
|
@@ -1387,6 +1630,13 @@ declare module 'stripe' {
|
|
|
1387
1630
|
*/
|
|
1388
1631
|
customer?: string;
|
|
1389
1632
|
|
|
1633
|
+
/**
|
|
1634
|
+
* ID of the Account this SetupIntent belongs to, if one exists.
|
|
1635
|
+
*
|
|
1636
|
+
* If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
|
|
1637
|
+
*/
|
|
1638
|
+
customer_account?: string;
|
|
1639
|
+
|
|
1390
1640
|
/**
|
|
1391
1641
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1392
1642
|
*/
|
|
@@ -1535,11 +1785,21 @@ declare module 'stripe' {
|
|
|
1535
1785
|
*/
|
|
1536
1786
|
giropay?: PaymentMethodData.Giropay;
|
|
1537
1787
|
|
|
1788
|
+
/**
|
|
1789
|
+
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
1790
|
+
*/
|
|
1791
|
+
gopay?: PaymentMethodData.Gopay;
|
|
1792
|
+
|
|
1538
1793
|
/**
|
|
1539
1794
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
1540
1795
|
*/
|
|
1541
1796
|
grabpay?: PaymentMethodData.Grabpay;
|
|
1542
1797
|
|
|
1798
|
+
/**
|
|
1799
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
1800
|
+
*/
|
|
1801
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
1802
|
+
|
|
1543
1803
|
/**
|
|
1544
1804
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
1545
1805
|
*/
|
|
@@ -1575,6 +1835,11 @@ declare module 'stripe' {
|
|
|
1575
1835
|
*/
|
|
1576
1836
|
link?: PaymentMethodData.Link;
|
|
1577
1837
|
|
|
1838
|
+
/**
|
|
1839
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
1840
|
+
*/
|
|
1841
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
1842
|
+
|
|
1578
1843
|
/**
|
|
1579
1844
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1580
1845
|
*/
|
|
@@ -1630,6 +1895,11 @@ declare module 'stripe' {
|
|
|
1630
1895
|
*/
|
|
1631
1896
|
paypal?: PaymentMethodData.Paypal;
|
|
1632
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1900
|
+
*/
|
|
1901
|
+
payto?: PaymentMethodData.Payto;
|
|
1902
|
+
|
|
1633
1903
|
/**
|
|
1634
1904
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
1635
1905
|
*/
|
|
@@ -1640,11 +1910,21 @@ declare module 'stripe' {
|
|
|
1640
1910
|
*/
|
|
1641
1911
|
promptpay?: PaymentMethodData.Promptpay;
|
|
1642
1912
|
|
|
1913
|
+
/**
|
|
1914
|
+
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
1915
|
+
*/
|
|
1916
|
+
qris?: PaymentMethodData.Qris;
|
|
1917
|
+
|
|
1643
1918
|
/**
|
|
1644
1919
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
1645
1920
|
*/
|
|
1646
1921
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
1647
1922
|
|
|
1923
|
+
/**
|
|
1924
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1925
|
+
*/
|
|
1926
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
1927
|
+
|
|
1648
1928
|
/**
|
|
1649
1929
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
1650
1930
|
*/
|
|
@@ -1665,11 +1945,21 @@ declare module 'stripe' {
|
|
|
1665
1945
|
*/
|
|
1666
1946
|
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
1667
1947
|
|
|
1948
|
+
/**
|
|
1949
|
+
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
1950
|
+
*/
|
|
1951
|
+
shopeepay?: PaymentMethodData.Shopeepay;
|
|
1952
|
+
|
|
1668
1953
|
/**
|
|
1669
1954
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
1670
1955
|
*/
|
|
1671
1956
|
sofort?: PaymentMethodData.Sofort;
|
|
1672
1957
|
|
|
1958
|
+
/**
|
|
1959
|
+
* This hash contains details about the Stripe balance payment method.
|
|
1960
|
+
*/
|
|
1961
|
+
stripe_balance?: PaymentMethodData.StripeBalance;
|
|
1962
|
+
|
|
1673
1963
|
/**
|
|
1674
1964
|
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
1675
1965
|
*/
|
|
@@ -1875,8 +2165,21 @@ declare module 'stripe' {
|
|
|
1875
2165
|
|
|
1876
2166
|
interface Giropay {}
|
|
1877
2167
|
|
|
2168
|
+
interface Gopay {}
|
|
2169
|
+
|
|
1878
2170
|
interface Grabpay {}
|
|
1879
2171
|
|
|
2172
|
+
interface IdBankTransfer {
|
|
2173
|
+
/**
|
|
2174
|
+
* Bank where the account is held.
|
|
2175
|
+
*/
|
|
2176
|
+
bank?: IdBankTransfer.Bank;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
namespace IdBankTransfer {
|
|
2180
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
2181
|
+
}
|
|
2182
|
+
|
|
1880
2183
|
interface Ideal {
|
|
1881
2184
|
/**
|
|
1882
2185
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -1940,6 +2243,8 @@ declare module 'stripe' {
|
|
|
1940
2243
|
|
|
1941
2244
|
interface Link {}
|
|
1942
2245
|
|
|
2246
|
+
interface MbWay {}
|
|
2247
|
+
|
|
1943
2248
|
interface Mobilepay {}
|
|
1944
2249
|
|
|
1945
2250
|
interface Multibanco {}
|
|
@@ -2031,10 +2336,29 @@ declare module 'stripe' {
|
|
|
2031
2336
|
|
|
2032
2337
|
interface Paypal {}
|
|
2033
2338
|
|
|
2339
|
+
interface Payto {
|
|
2340
|
+
/**
|
|
2341
|
+
* The account number for the bank account.
|
|
2342
|
+
*/
|
|
2343
|
+
account_number?: string;
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Bank-State-Branch number of the bank account.
|
|
2347
|
+
*/
|
|
2348
|
+
bsb_number?: string;
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* The PayID alias for the bank account.
|
|
2352
|
+
*/
|
|
2353
|
+
pay_id?: string;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2034
2356
|
interface Pix {}
|
|
2035
2357
|
|
|
2036
2358
|
interface Promptpay {}
|
|
2037
2359
|
|
|
2360
|
+
interface Qris {}
|
|
2361
|
+
|
|
2038
2362
|
interface RadarOptions {
|
|
2039
2363
|
/**
|
|
2040
2364
|
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -2042,6 +2366,32 @@ declare module 'stripe' {
|
|
|
2042
2366
|
session?: string;
|
|
2043
2367
|
}
|
|
2044
2368
|
|
|
2369
|
+
interface Rechnung {
|
|
2370
|
+
/**
|
|
2371
|
+
* Customer's date of birth
|
|
2372
|
+
*/
|
|
2373
|
+
dob: Rechnung.Dob;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
namespace Rechnung {
|
|
2377
|
+
interface Dob {
|
|
2378
|
+
/**
|
|
2379
|
+
* The day of birth, between 1 and 31.
|
|
2380
|
+
*/
|
|
2381
|
+
day: number;
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* The month of birth, between 1 and 12.
|
|
2385
|
+
*/
|
|
2386
|
+
month: number;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* The four-digit year of birth.
|
|
2390
|
+
*/
|
|
2391
|
+
year: number;
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2045
2395
|
interface RevolutPay {}
|
|
2046
2396
|
|
|
2047
2397
|
interface SamsungPay {}
|
|
@@ -2055,6 +2405,8 @@ declare module 'stripe' {
|
|
|
2055
2405
|
iban: string;
|
|
2056
2406
|
}
|
|
2057
2407
|
|
|
2408
|
+
interface Shopeepay {}
|
|
2409
|
+
|
|
2058
2410
|
interface Sofort {
|
|
2059
2411
|
/**
|
|
2060
2412
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -2066,6 +2418,22 @@ declare module 'stripe' {
|
|
|
2066
2418
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
2067
2419
|
}
|
|
2068
2420
|
|
|
2421
|
+
interface StripeBalance {
|
|
2422
|
+
/**
|
|
2423
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
2424
|
+
*/
|
|
2425
|
+
account?: string;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2429
|
+
*/
|
|
2430
|
+
source_type?: StripeBalance.SourceType;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
namespace StripeBalance {
|
|
2434
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2069
2437
|
interface Swish {}
|
|
2070
2438
|
|
|
2071
2439
|
interface Twint {}
|
|
@@ -2088,13 +2456,16 @@ declare module 'stripe' {
|
|
|
2088
2456
|
| 'eps'
|
|
2089
2457
|
| 'fpx'
|
|
2090
2458
|
| 'giropay'
|
|
2459
|
+
| 'gopay'
|
|
2091
2460
|
| 'grabpay'
|
|
2461
|
+
| 'id_bank_transfer'
|
|
2092
2462
|
| 'ideal'
|
|
2093
2463
|
| 'kakao_pay'
|
|
2094
2464
|
| 'klarna'
|
|
2095
2465
|
| 'konbini'
|
|
2096
2466
|
| 'kr_card'
|
|
2097
2467
|
| 'link'
|
|
2468
|
+
| 'mb_way'
|
|
2098
2469
|
| 'mobilepay'
|
|
2099
2470
|
| 'multibanco'
|
|
2100
2471
|
| 'naver_pay'
|
|
@@ -2105,13 +2476,18 @@ declare module 'stripe' {
|
|
|
2105
2476
|
| 'payco'
|
|
2106
2477
|
| 'paynow'
|
|
2107
2478
|
| 'paypal'
|
|
2479
|
+
| 'payto'
|
|
2108
2480
|
| 'pix'
|
|
2109
2481
|
| 'promptpay'
|
|
2482
|
+
| 'qris'
|
|
2483
|
+
| 'rechnung'
|
|
2110
2484
|
| 'revolut_pay'
|
|
2111
2485
|
| 'samsung_pay'
|
|
2112
2486
|
| 'satispay'
|
|
2113
2487
|
| 'sepa_debit'
|
|
2488
|
+
| 'shopeepay'
|
|
2114
2489
|
| 'sofort'
|
|
2490
|
+
| 'stripe_balance'
|
|
2115
2491
|
| 'swish'
|
|
2116
2492
|
| 'twint'
|
|
2117
2493
|
| 'us_bank_account'
|
|
@@ -2192,6 +2568,11 @@ declare module 'stripe' {
|
|
|
2192
2568
|
*/
|
|
2193
2569
|
paypal?: PaymentMethodOptions.Paypal;
|
|
2194
2570
|
|
|
2571
|
+
/**
|
|
2572
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
2573
|
+
*/
|
|
2574
|
+
payto?: PaymentMethodOptions.Payto;
|
|
2575
|
+
|
|
2195
2576
|
/**
|
|
2196
2577
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2197
2578
|
*/
|
|
@@ -2493,6 +2874,86 @@ declare module 'stripe' {
|
|
|
2493
2874
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
2494
2875
|
*/
|
|
2495
2876
|
billing_agreement_id?: string;
|
|
2877
|
+
|
|
2878
|
+
currency?: string;
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* 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.
|
|
2882
|
+
*/
|
|
2883
|
+
subsellers?: Array<string>;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
interface Payto {
|
|
2887
|
+
/**
|
|
2888
|
+
* Additional fields for Mandate creation.
|
|
2889
|
+
*/
|
|
2890
|
+
mandate_options?: Payto.MandateOptions;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
namespace Payto {
|
|
2894
|
+
interface MandateOptions {
|
|
2895
|
+
/**
|
|
2896
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2897
|
+
*/
|
|
2898
|
+
amount?: number;
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* 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.
|
|
2902
|
+
*/
|
|
2903
|
+
amount_type?: MandateOptions.AmountType;
|
|
2904
|
+
|
|
2905
|
+
/**
|
|
2906
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2907
|
+
*/
|
|
2908
|
+
end_date?: string;
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* The periodicity at which payments will be collected.
|
|
2912
|
+
*/
|
|
2913
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2914
|
+
|
|
2915
|
+
/**
|
|
2916
|
+
* 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.
|
|
2917
|
+
*/
|
|
2918
|
+
payments_per_period?: number;
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2922
|
+
*/
|
|
2923
|
+
purpose?: MandateOptions.Purpose;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2927
|
+
*/
|
|
2928
|
+
start_date?: string;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
namespace MandateOptions {
|
|
2932
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2933
|
+
|
|
2934
|
+
type PaymentSchedule =
|
|
2935
|
+
| 'adhoc'
|
|
2936
|
+
| 'annual'
|
|
2937
|
+
| 'daily'
|
|
2938
|
+
| 'fortnightly'
|
|
2939
|
+
| 'monthly'
|
|
2940
|
+
| 'quarterly'
|
|
2941
|
+
| 'semi_annual'
|
|
2942
|
+
| 'weekly';
|
|
2943
|
+
|
|
2944
|
+
type Purpose =
|
|
2945
|
+
| 'dependant_support'
|
|
2946
|
+
| 'government'
|
|
2947
|
+
| 'loan'
|
|
2948
|
+
| 'mortgage'
|
|
2949
|
+
| 'other'
|
|
2950
|
+
| 'pension'
|
|
2951
|
+
| 'personal'
|
|
2952
|
+
| 'retail'
|
|
2953
|
+
| 'salary'
|
|
2954
|
+
| 'tax'
|
|
2955
|
+
| 'utility';
|
|
2956
|
+
}
|
|
2496
2957
|
}
|
|
2497
2958
|
|
|
2498
2959
|
interface SepaDebit {
|
|
@@ -2540,6 +3001,11 @@ declare module 'stripe' {
|
|
|
2540
3001
|
*/
|
|
2541
3002
|
filters?: FinancialConnections.Filters;
|
|
2542
3003
|
|
|
3004
|
+
/**
|
|
3005
|
+
* Customize manual entry behavior
|
|
3006
|
+
*/
|
|
3007
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3008
|
+
|
|
2543
3009
|
/**
|
|
2544
3010
|
* 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`.
|
|
2545
3011
|
*/
|
|
@@ -2562,19 +3028,39 @@ declare module 'stripe' {
|
|
|
2562
3028
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2563
3029
|
*/
|
|
2564
3030
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3034
|
+
*/
|
|
3035
|
+
institution?: string;
|
|
2565
3036
|
}
|
|
2566
3037
|
|
|
2567
3038
|
namespace Filters {
|
|
2568
3039
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2569
3040
|
}
|
|
2570
3041
|
|
|
3042
|
+
interface ManualEntry {
|
|
3043
|
+
/**
|
|
3044
|
+
* Settings for configuring manual entry of account details.
|
|
3045
|
+
*/
|
|
3046
|
+
mode: ManualEntry.Mode;
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
namespace ManualEntry {
|
|
3050
|
+
type Mode = 'automatic' | 'custom';
|
|
3051
|
+
}
|
|
3052
|
+
|
|
2571
3053
|
type Permission =
|
|
2572
3054
|
| 'balances'
|
|
2573
3055
|
| 'ownership'
|
|
2574
3056
|
| 'payment_method'
|
|
2575
3057
|
| 'transactions';
|
|
2576
3058
|
|
|
2577
|
-
type Prefetch =
|
|
3059
|
+
type Prefetch =
|
|
3060
|
+
| 'balances'
|
|
3061
|
+
| 'inferred_balances'
|
|
3062
|
+
| 'ownership'
|
|
3063
|
+
| 'transactions';
|
|
2578
3064
|
}
|
|
2579
3065
|
|
|
2580
3066
|
interface MandateOptions {
|
|
@@ -2618,6 +3104,11 @@ declare module 'stripe' {
|
|
|
2618
3104
|
*/
|
|
2619
3105
|
customer?: string;
|
|
2620
3106
|
|
|
3107
|
+
/**
|
|
3108
|
+
* Only return SetupIntents for the account specified by this customer ID.
|
|
3109
|
+
*/
|
|
3110
|
+
customer_account?: string;
|
|
3111
|
+
|
|
2621
3112
|
/**
|
|
2622
3113
|
* Specifies which fields in the response should be expanded.
|
|
2623
3114
|
*/
|
|
@@ -2838,11 +3329,21 @@ declare module 'stripe' {
|
|
|
2838
3329
|
*/
|
|
2839
3330
|
giropay?: PaymentMethodData.Giropay;
|
|
2840
3331
|
|
|
3332
|
+
/**
|
|
3333
|
+
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
3334
|
+
*/
|
|
3335
|
+
gopay?: PaymentMethodData.Gopay;
|
|
3336
|
+
|
|
2841
3337
|
/**
|
|
2842
3338
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2843
3339
|
*/
|
|
2844
3340
|
grabpay?: PaymentMethodData.Grabpay;
|
|
2845
3341
|
|
|
3342
|
+
/**
|
|
3343
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
3344
|
+
*/
|
|
3345
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
3346
|
+
|
|
2846
3347
|
/**
|
|
2847
3348
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2848
3349
|
*/
|
|
@@ -2878,6 +3379,11 @@ declare module 'stripe' {
|
|
|
2878
3379
|
*/
|
|
2879
3380
|
link?: PaymentMethodData.Link;
|
|
2880
3381
|
|
|
3382
|
+
/**
|
|
3383
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
3384
|
+
*/
|
|
3385
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
3386
|
+
|
|
2881
3387
|
/**
|
|
2882
3388
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2883
3389
|
*/
|
|
@@ -2933,6 +3439,11 @@ declare module 'stripe' {
|
|
|
2933
3439
|
*/
|
|
2934
3440
|
paypal?: PaymentMethodData.Paypal;
|
|
2935
3441
|
|
|
3442
|
+
/**
|
|
3443
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
3444
|
+
*/
|
|
3445
|
+
payto?: PaymentMethodData.Payto;
|
|
3446
|
+
|
|
2936
3447
|
/**
|
|
2937
3448
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2938
3449
|
*/
|
|
@@ -2943,11 +3454,21 @@ declare module 'stripe' {
|
|
|
2943
3454
|
*/
|
|
2944
3455
|
promptpay?: PaymentMethodData.Promptpay;
|
|
2945
3456
|
|
|
3457
|
+
/**
|
|
3458
|
+
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
3459
|
+
*/
|
|
3460
|
+
qris?: PaymentMethodData.Qris;
|
|
3461
|
+
|
|
2946
3462
|
/**
|
|
2947
3463
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
2948
3464
|
*/
|
|
2949
3465
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
2950
3466
|
|
|
3467
|
+
/**
|
|
3468
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
3469
|
+
*/
|
|
3470
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
3471
|
+
|
|
2951
3472
|
/**
|
|
2952
3473
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2953
3474
|
*/
|
|
@@ -2968,11 +3489,21 @@ declare module 'stripe' {
|
|
|
2968
3489
|
*/
|
|
2969
3490
|
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
2970
3491
|
|
|
3492
|
+
/**
|
|
3493
|
+
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
3494
|
+
*/
|
|
3495
|
+
shopeepay?: PaymentMethodData.Shopeepay;
|
|
3496
|
+
|
|
2971
3497
|
/**
|
|
2972
3498
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2973
3499
|
*/
|
|
2974
3500
|
sofort?: PaymentMethodData.Sofort;
|
|
2975
3501
|
|
|
3502
|
+
/**
|
|
3503
|
+
* This hash contains details about the Stripe balance payment method.
|
|
3504
|
+
*/
|
|
3505
|
+
stripe_balance?: PaymentMethodData.StripeBalance;
|
|
3506
|
+
|
|
2976
3507
|
/**
|
|
2977
3508
|
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2978
3509
|
*/
|
|
@@ -3178,8 +3709,21 @@ declare module 'stripe' {
|
|
|
3178
3709
|
|
|
3179
3710
|
interface Giropay {}
|
|
3180
3711
|
|
|
3712
|
+
interface Gopay {}
|
|
3713
|
+
|
|
3181
3714
|
interface Grabpay {}
|
|
3182
3715
|
|
|
3716
|
+
interface IdBankTransfer {
|
|
3717
|
+
/**
|
|
3718
|
+
* Bank where the account is held.
|
|
3719
|
+
*/
|
|
3720
|
+
bank?: IdBankTransfer.Bank;
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
namespace IdBankTransfer {
|
|
3724
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3183
3727
|
interface Ideal {
|
|
3184
3728
|
/**
|
|
3185
3729
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -3243,6 +3787,8 @@ declare module 'stripe' {
|
|
|
3243
3787
|
|
|
3244
3788
|
interface Link {}
|
|
3245
3789
|
|
|
3790
|
+
interface MbWay {}
|
|
3791
|
+
|
|
3246
3792
|
interface Mobilepay {}
|
|
3247
3793
|
|
|
3248
3794
|
interface Multibanco {}
|
|
@@ -3334,10 +3880,29 @@ declare module 'stripe' {
|
|
|
3334
3880
|
|
|
3335
3881
|
interface Paypal {}
|
|
3336
3882
|
|
|
3883
|
+
interface Payto {
|
|
3884
|
+
/**
|
|
3885
|
+
* The account number for the bank account.
|
|
3886
|
+
*/
|
|
3887
|
+
account_number?: string;
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* Bank-State-Branch number of the bank account.
|
|
3891
|
+
*/
|
|
3892
|
+
bsb_number?: string;
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* The PayID alias for the bank account.
|
|
3896
|
+
*/
|
|
3897
|
+
pay_id?: string;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3337
3900
|
interface Pix {}
|
|
3338
3901
|
|
|
3339
3902
|
interface Promptpay {}
|
|
3340
3903
|
|
|
3904
|
+
interface Qris {}
|
|
3905
|
+
|
|
3341
3906
|
interface RadarOptions {
|
|
3342
3907
|
/**
|
|
3343
3908
|
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -3345,6 +3910,32 @@ declare module 'stripe' {
|
|
|
3345
3910
|
session?: string;
|
|
3346
3911
|
}
|
|
3347
3912
|
|
|
3913
|
+
interface Rechnung {
|
|
3914
|
+
/**
|
|
3915
|
+
* Customer's date of birth
|
|
3916
|
+
*/
|
|
3917
|
+
dob: Rechnung.Dob;
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3920
|
+
namespace Rechnung {
|
|
3921
|
+
interface Dob {
|
|
3922
|
+
/**
|
|
3923
|
+
* The day of birth, between 1 and 31.
|
|
3924
|
+
*/
|
|
3925
|
+
day: number;
|
|
3926
|
+
|
|
3927
|
+
/**
|
|
3928
|
+
* The month of birth, between 1 and 12.
|
|
3929
|
+
*/
|
|
3930
|
+
month: number;
|
|
3931
|
+
|
|
3932
|
+
/**
|
|
3933
|
+
* The four-digit year of birth.
|
|
3934
|
+
*/
|
|
3935
|
+
year: number;
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3348
3939
|
interface RevolutPay {}
|
|
3349
3940
|
|
|
3350
3941
|
interface SamsungPay {}
|
|
@@ -3358,6 +3949,8 @@ declare module 'stripe' {
|
|
|
3358
3949
|
iban: string;
|
|
3359
3950
|
}
|
|
3360
3951
|
|
|
3952
|
+
interface Shopeepay {}
|
|
3953
|
+
|
|
3361
3954
|
interface Sofort {
|
|
3362
3955
|
/**
|
|
3363
3956
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -3369,6 +3962,22 @@ declare module 'stripe' {
|
|
|
3369
3962
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
3370
3963
|
}
|
|
3371
3964
|
|
|
3965
|
+
interface StripeBalance {
|
|
3966
|
+
/**
|
|
3967
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
3968
|
+
*/
|
|
3969
|
+
account?: string;
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
3973
|
+
*/
|
|
3974
|
+
source_type?: StripeBalance.SourceType;
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
namespace StripeBalance {
|
|
3978
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
3979
|
+
}
|
|
3980
|
+
|
|
3372
3981
|
interface Swish {}
|
|
3373
3982
|
|
|
3374
3983
|
interface Twint {}
|
|
@@ -3391,13 +4000,16 @@ declare module 'stripe' {
|
|
|
3391
4000
|
| 'eps'
|
|
3392
4001
|
| 'fpx'
|
|
3393
4002
|
| 'giropay'
|
|
4003
|
+
| 'gopay'
|
|
3394
4004
|
| 'grabpay'
|
|
4005
|
+
| 'id_bank_transfer'
|
|
3395
4006
|
| 'ideal'
|
|
3396
4007
|
| 'kakao_pay'
|
|
3397
4008
|
| 'klarna'
|
|
3398
4009
|
| 'konbini'
|
|
3399
4010
|
| 'kr_card'
|
|
3400
4011
|
| 'link'
|
|
4012
|
+
| 'mb_way'
|
|
3401
4013
|
| 'mobilepay'
|
|
3402
4014
|
| 'multibanco'
|
|
3403
4015
|
| 'naver_pay'
|
|
@@ -3408,13 +4020,18 @@ declare module 'stripe' {
|
|
|
3408
4020
|
| 'payco'
|
|
3409
4021
|
| 'paynow'
|
|
3410
4022
|
| 'paypal'
|
|
4023
|
+
| 'payto'
|
|
3411
4024
|
| 'pix'
|
|
3412
4025
|
| 'promptpay'
|
|
4026
|
+
| 'qris'
|
|
4027
|
+
| 'rechnung'
|
|
3413
4028
|
| 'revolut_pay'
|
|
3414
4029
|
| 'samsung_pay'
|
|
3415
4030
|
| 'satispay'
|
|
3416
4031
|
| 'sepa_debit'
|
|
4032
|
+
| 'shopeepay'
|
|
3417
4033
|
| 'sofort'
|
|
4034
|
+
| 'stripe_balance'
|
|
3418
4035
|
| 'swish'
|
|
3419
4036
|
| 'twint'
|
|
3420
4037
|
| 'us_bank_account'
|
|
@@ -3495,6 +4112,11 @@ declare module 'stripe' {
|
|
|
3495
4112
|
*/
|
|
3496
4113
|
paypal?: PaymentMethodOptions.Paypal;
|
|
3497
4114
|
|
|
4115
|
+
/**
|
|
4116
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
4117
|
+
*/
|
|
4118
|
+
payto?: PaymentMethodOptions.Payto;
|
|
4119
|
+
|
|
3498
4120
|
/**
|
|
3499
4121
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
3500
4122
|
*/
|
|
@@ -3796,6 +4418,86 @@ declare module 'stripe' {
|
|
|
3796
4418
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
3797
4419
|
*/
|
|
3798
4420
|
billing_agreement_id?: string;
|
|
4421
|
+
|
|
4422
|
+
currency?: string;
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* 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.
|
|
4426
|
+
*/
|
|
4427
|
+
subsellers?: Array<string>;
|
|
4428
|
+
}
|
|
4429
|
+
|
|
4430
|
+
interface Payto {
|
|
4431
|
+
/**
|
|
4432
|
+
* Additional fields for Mandate creation.
|
|
4433
|
+
*/
|
|
4434
|
+
mandate_options?: Payto.MandateOptions;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
namespace Payto {
|
|
4438
|
+
interface MandateOptions {
|
|
4439
|
+
/**
|
|
4440
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
4441
|
+
*/
|
|
4442
|
+
amount?: number;
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* 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.
|
|
4446
|
+
*/
|
|
4447
|
+
amount_type?: MandateOptions.AmountType;
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
4451
|
+
*/
|
|
4452
|
+
end_date?: string;
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* The periodicity at which payments will be collected.
|
|
4456
|
+
*/
|
|
4457
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* 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.
|
|
4461
|
+
*/
|
|
4462
|
+
payments_per_period?: number;
|
|
4463
|
+
|
|
4464
|
+
/**
|
|
4465
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
4466
|
+
*/
|
|
4467
|
+
purpose?: MandateOptions.Purpose;
|
|
4468
|
+
|
|
4469
|
+
/**
|
|
4470
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
4471
|
+
*/
|
|
4472
|
+
start_date?: string;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
namespace MandateOptions {
|
|
4476
|
+
type AmountType = 'fixed' | 'maximum';
|
|
4477
|
+
|
|
4478
|
+
type PaymentSchedule =
|
|
4479
|
+
| 'adhoc'
|
|
4480
|
+
| 'annual'
|
|
4481
|
+
| 'daily'
|
|
4482
|
+
| 'fortnightly'
|
|
4483
|
+
| 'monthly'
|
|
4484
|
+
| 'quarterly'
|
|
4485
|
+
| 'semi_annual'
|
|
4486
|
+
| 'weekly';
|
|
4487
|
+
|
|
4488
|
+
type Purpose =
|
|
4489
|
+
| 'dependant_support'
|
|
4490
|
+
| 'government'
|
|
4491
|
+
| 'loan'
|
|
4492
|
+
| 'mortgage'
|
|
4493
|
+
| 'other'
|
|
4494
|
+
| 'pension'
|
|
4495
|
+
| 'personal'
|
|
4496
|
+
| 'retail'
|
|
4497
|
+
| 'salary'
|
|
4498
|
+
| 'tax'
|
|
4499
|
+
| 'utility';
|
|
4500
|
+
}
|
|
3799
4501
|
}
|
|
3800
4502
|
|
|
3801
4503
|
interface SepaDebit {
|
|
@@ -3843,6 +4545,11 @@ declare module 'stripe' {
|
|
|
3843
4545
|
*/
|
|
3844
4546
|
filters?: FinancialConnections.Filters;
|
|
3845
4547
|
|
|
4548
|
+
/**
|
|
4549
|
+
* Customize manual entry behavior
|
|
4550
|
+
*/
|
|
4551
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
4552
|
+
|
|
3846
4553
|
/**
|
|
3847
4554
|
* 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`.
|
|
3848
4555
|
*/
|
|
@@ -3865,19 +4572,39 @@ declare module 'stripe' {
|
|
|
3865
4572
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3866
4573
|
*/
|
|
3867
4574
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
4575
|
+
|
|
4576
|
+
/**
|
|
4577
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
4578
|
+
*/
|
|
4579
|
+
institution?: string;
|
|
3868
4580
|
}
|
|
3869
4581
|
|
|
3870
4582
|
namespace Filters {
|
|
3871
4583
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3872
4584
|
}
|
|
3873
4585
|
|
|
4586
|
+
interface ManualEntry {
|
|
4587
|
+
/**
|
|
4588
|
+
* Settings for configuring manual entry of account details.
|
|
4589
|
+
*/
|
|
4590
|
+
mode: ManualEntry.Mode;
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
namespace ManualEntry {
|
|
4594
|
+
type Mode = 'automatic' | 'custom';
|
|
4595
|
+
}
|
|
4596
|
+
|
|
3874
4597
|
type Permission =
|
|
3875
4598
|
| 'balances'
|
|
3876
4599
|
| 'ownership'
|
|
3877
4600
|
| 'payment_method'
|
|
3878
4601
|
| 'transactions';
|
|
3879
4602
|
|
|
3880
|
-
type Prefetch =
|
|
4603
|
+
type Prefetch =
|
|
4604
|
+
| 'balances'
|
|
4605
|
+
| 'inferred_balances'
|
|
4606
|
+
| 'ownership'
|
|
4607
|
+
| 'transactions';
|
|
3881
4608
|
}
|
|
3882
4609
|
|
|
3883
4610
|
interface MandateOptions {
|