stripe 18.1.0 → 18.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 +1220 -140
- 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/FxQuotes.js +15 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +4 -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 +13 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -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 +16 -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 +108 -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/FxQuotes.js +12 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +4 -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 +13 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -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 +13 -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 +84 -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 +300 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +89 -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 +1314 -0
- package/types/Checkout/Sessions.d.ts +315 -2
- package/types/Checkout/SessionsResource.d.ts +340 -1
- package/types/ConfirmationTokens.d.ts +125 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- 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 +698 -0
- package/types/Events.d.ts +99 -0
- package/types/ExternalAccountsResource.d.ts +304 -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/FxQuotes.d.ts +153 -0
- package/types/FxQuotesResource.d.ts +130 -0
- 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 +136 -3
- package/types/InvoicesResource.d.ts +1483 -3
- 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 +1199 -0
- package/types/OrdersResource.d.ts +3001 -0
- package/types/PaymentAttemptRecords.d.ts +2112 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
- package/types/PaymentIntents.d.ts +728 -2
- package/types/PaymentIntentsResource.d.ts +8618 -4094
- 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 +125 -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/Privacy/RedactionJobValidationErrors.d.ts +30 -0
- package/types/Privacy/RedactionJobs.d.ts +65 -0
- package/types/Privacy/RedactionJobsResource.d.ts +218 -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 +1697 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +785 -0
- package/types/Quotes.d.ts +603 -1
- package/types/QuotesResource.d.ts +2572 -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 +212 -0
- package/types/SubscriptionSchedulesResource.d.ts +1240 -5
- package/types/Subscriptions.d.ts +104 -1
- package/types/SubscriptionsResource.d.ts +397 -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 +126 -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/Transfers.d.ts +5 -0
- package/types/TransfersResource.d.ts +5 -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 +106 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3770 -0
- package/types/V2/Core/Accounts.d.ts +8169 -0
- package/types/V2/Core/AccountsResource.d.ts +10203 -0
- package/types/V2/Core/Persons.d.ts +1867 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +812 -1
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +546 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +285 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +224 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +82 -0
- package/types/index.d.ts +145 -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
|
*/
|
|
@@ -626,8 +673,21 @@ declare module 'stripe' {
|
|
|
626
673
|
|
|
627
674
|
interface Giropay {}
|
|
628
675
|
|
|
676
|
+
interface Gopay {}
|
|
677
|
+
|
|
629
678
|
interface Grabpay {}
|
|
630
679
|
|
|
680
|
+
interface IdBankTransfer {
|
|
681
|
+
/**
|
|
682
|
+
* Bank where the account is held.
|
|
683
|
+
*/
|
|
684
|
+
bank?: IdBankTransfer.Bank;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
namespace IdBankTransfer {
|
|
688
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
689
|
+
}
|
|
690
|
+
|
|
631
691
|
interface Ideal {
|
|
632
692
|
/**
|
|
633
693
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -691,6 +751,8 @@ declare module 'stripe' {
|
|
|
691
751
|
|
|
692
752
|
interface Link {}
|
|
693
753
|
|
|
754
|
+
interface MbWay {}
|
|
755
|
+
|
|
694
756
|
interface Mobilepay {}
|
|
695
757
|
|
|
696
758
|
interface Multibanco {}
|
|
@@ -782,10 +844,29 @@ declare module 'stripe' {
|
|
|
782
844
|
|
|
783
845
|
interface Paypal {}
|
|
784
846
|
|
|
847
|
+
interface Payto {
|
|
848
|
+
/**
|
|
849
|
+
* The account number for the bank account.
|
|
850
|
+
*/
|
|
851
|
+
account_number?: string;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Bank-State-Branch number of the bank account.
|
|
855
|
+
*/
|
|
856
|
+
bsb_number?: string;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* The PayID alias for the bank account.
|
|
860
|
+
*/
|
|
861
|
+
pay_id?: string;
|
|
862
|
+
}
|
|
863
|
+
|
|
785
864
|
interface Pix {}
|
|
786
865
|
|
|
787
866
|
interface Promptpay {}
|
|
788
867
|
|
|
868
|
+
interface Qris {}
|
|
869
|
+
|
|
789
870
|
interface RadarOptions {
|
|
790
871
|
/**
|
|
791
872
|
* 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.
|
|
@@ -793,6 +874,32 @@ declare module 'stripe' {
|
|
|
793
874
|
session?: string;
|
|
794
875
|
}
|
|
795
876
|
|
|
877
|
+
interface Rechnung {
|
|
878
|
+
/**
|
|
879
|
+
* Customer's date of birth
|
|
880
|
+
*/
|
|
881
|
+
dob: Rechnung.Dob;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
namespace Rechnung {
|
|
885
|
+
interface Dob {
|
|
886
|
+
/**
|
|
887
|
+
* The day of birth, between 1 and 31.
|
|
888
|
+
*/
|
|
889
|
+
day: number;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The month of birth, between 1 and 12.
|
|
893
|
+
*/
|
|
894
|
+
month: number;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* The four-digit year of birth.
|
|
898
|
+
*/
|
|
899
|
+
year: number;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
796
903
|
interface RevolutPay {}
|
|
797
904
|
|
|
798
905
|
interface SamsungPay {}
|
|
@@ -806,6 +913,8 @@ declare module 'stripe' {
|
|
|
806
913
|
iban: string;
|
|
807
914
|
}
|
|
808
915
|
|
|
916
|
+
interface Shopeepay {}
|
|
917
|
+
|
|
809
918
|
interface Sofort {
|
|
810
919
|
/**
|
|
811
920
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -817,6 +926,22 @@ declare module 'stripe' {
|
|
|
817
926
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
818
927
|
}
|
|
819
928
|
|
|
929
|
+
interface StripeBalance {
|
|
930
|
+
/**
|
|
931
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
932
|
+
*/
|
|
933
|
+
account?: string;
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
937
|
+
*/
|
|
938
|
+
source_type?: StripeBalance.SourceType;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
namespace StripeBalance {
|
|
942
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
943
|
+
}
|
|
944
|
+
|
|
820
945
|
interface Swish {}
|
|
821
946
|
|
|
822
947
|
interface Twint {}
|
|
@@ -839,13 +964,16 @@ declare module 'stripe' {
|
|
|
839
964
|
| 'eps'
|
|
840
965
|
| 'fpx'
|
|
841
966
|
| 'giropay'
|
|
967
|
+
| 'gopay'
|
|
842
968
|
| 'grabpay'
|
|
969
|
+
| 'id_bank_transfer'
|
|
843
970
|
| 'ideal'
|
|
844
971
|
| 'kakao_pay'
|
|
845
972
|
| 'klarna'
|
|
846
973
|
| 'konbini'
|
|
847
974
|
| 'kr_card'
|
|
848
975
|
| 'link'
|
|
976
|
+
| 'mb_way'
|
|
849
977
|
| 'mobilepay'
|
|
850
978
|
| 'multibanco'
|
|
851
979
|
| 'naver_pay'
|
|
@@ -856,13 +984,18 @@ declare module 'stripe' {
|
|
|
856
984
|
| 'payco'
|
|
857
985
|
| 'paynow'
|
|
858
986
|
| 'paypal'
|
|
987
|
+
| 'payto'
|
|
859
988
|
| 'pix'
|
|
860
989
|
| 'promptpay'
|
|
990
|
+
| 'qris'
|
|
991
|
+
| 'rechnung'
|
|
861
992
|
| 'revolut_pay'
|
|
862
993
|
| 'samsung_pay'
|
|
863
994
|
| 'satispay'
|
|
864
995
|
| 'sepa_debit'
|
|
996
|
+
| 'shopeepay'
|
|
865
997
|
| 'sofort'
|
|
998
|
+
| 'stripe_balance'
|
|
866
999
|
| 'swish'
|
|
867
1000
|
| 'twint'
|
|
868
1001
|
| 'us_bank_account'
|
|
@@ -943,6 +1076,11 @@ declare module 'stripe' {
|
|
|
943
1076
|
*/
|
|
944
1077
|
paypal?: PaymentMethodOptions.Paypal;
|
|
945
1078
|
|
|
1079
|
+
/**
|
|
1080
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
1081
|
+
*/
|
|
1082
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1083
|
+
|
|
946
1084
|
/**
|
|
947
1085
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
948
1086
|
*/
|
|
@@ -1244,6 +1382,86 @@ declare module 'stripe' {
|
|
|
1244
1382
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
1245
1383
|
*/
|
|
1246
1384
|
billing_agreement_id?: string;
|
|
1385
|
+
|
|
1386
|
+
currency?: string;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* 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.
|
|
1390
|
+
*/
|
|
1391
|
+
subsellers?: Array<string>;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
interface Payto {
|
|
1395
|
+
/**
|
|
1396
|
+
* Additional fields for Mandate creation.
|
|
1397
|
+
*/
|
|
1398
|
+
mandate_options?: Payto.MandateOptions;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
namespace Payto {
|
|
1402
|
+
interface MandateOptions {
|
|
1403
|
+
/**
|
|
1404
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1405
|
+
*/
|
|
1406
|
+
amount?: number;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* 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.
|
|
1410
|
+
*/
|
|
1411
|
+
amount_type?: MandateOptions.AmountType;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1415
|
+
*/
|
|
1416
|
+
end_date?: string;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* The periodicity at which payments will be collected.
|
|
1420
|
+
*/
|
|
1421
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* 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.
|
|
1425
|
+
*/
|
|
1426
|
+
payments_per_period?: number;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1430
|
+
*/
|
|
1431
|
+
purpose?: MandateOptions.Purpose;
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1435
|
+
*/
|
|
1436
|
+
start_date?: string;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
namespace MandateOptions {
|
|
1440
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1441
|
+
|
|
1442
|
+
type PaymentSchedule =
|
|
1443
|
+
| 'adhoc'
|
|
1444
|
+
| 'annual'
|
|
1445
|
+
| 'daily'
|
|
1446
|
+
| 'fortnightly'
|
|
1447
|
+
| 'monthly'
|
|
1448
|
+
| 'quarterly'
|
|
1449
|
+
| 'semi_annual'
|
|
1450
|
+
| 'weekly';
|
|
1451
|
+
|
|
1452
|
+
type Purpose =
|
|
1453
|
+
| 'dependant_support'
|
|
1454
|
+
| 'government'
|
|
1455
|
+
| 'loan'
|
|
1456
|
+
| 'mortgage'
|
|
1457
|
+
| 'other'
|
|
1458
|
+
| 'pension'
|
|
1459
|
+
| 'personal'
|
|
1460
|
+
| 'retail'
|
|
1461
|
+
| 'salary'
|
|
1462
|
+
| 'tax'
|
|
1463
|
+
| 'utility';
|
|
1464
|
+
}
|
|
1247
1465
|
}
|
|
1248
1466
|
|
|
1249
1467
|
interface SepaDebit {
|
|
@@ -1291,6 +1509,11 @@ declare module 'stripe' {
|
|
|
1291
1509
|
*/
|
|
1292
1510
|
filters?: FinancialConnections.Filters;
|
|
1293
1511
|
|
|
1512
|
+
/**
|
|
1513
|
+
* Customize manual entry behavior
|
|
1514
|
+
*/
|
|
1515
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1516
|
+
|
|
1294
1517
|
/**
|
|
1295
1518
|
* 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`.
|
|
1296
1519
|
*/
|
|
@@ -1313,19 +1536,39 @@ declare module 'stripe' {
|
|
|
1313
1536
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1314
1537
|
*/
|
|
1315
1538
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1542
|
+
*/
|
|
1543
|
+
institution?: string;
|
|
1316
1544
|
}
|
|
1317
1545
|
|
|
1318
1546
|
namespace Filters {
|
|
1319
1547
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1320
1548
|
}
|
|
1321
1549
|
|
|
1550
|
+
interface ManualEntry {
|
|
1551
|
+
/**
|
|
1552
|
+
* Settings for configuring manual entry of account details.
|
|
1553
|
+
*/
|
|
1554
|
+
mode: ManualEntry.Mode;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
namespace ManualEntry {
|
|
1558
|
+
type Mode = 'automatic' | 'custom';
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1322
1561
|
type Permission =
|
|
1323
1562
|
| 'balances'
|
|
1324
1563
|
| 'ownership'
|
|
1325
1564
|
| 'payment_method'
|
|
1326
1565
|
| 'transactions';
|
|
1327
1566
|
|
|
1328
|
-
type Prefetch =
|
|
1567
|
+
type Prefetch =
|
|
1568
|
+
| 'balances'
|
|
1569
|
+
| 'inferred_balances'
|
|
1570
|
+
| 'ownership'
|
|
1571
|
+
| 'transactions';
|
|
1329
1572
|
}
|
|
1330
1573
|
|
|
1331
1574
|
interface MandateOptions {
|
|
@@ -1392,6 +1635,13 @@ declare module 'stripe' {
|
|
|
1392
1635
|
*/
|
|
1393
1636
|
customer?: string;
|
|
1394
1637
|
|
|
1638
|
+
/**
|
|
1639
|
+
* ID of the Account this SetupIntent belongs to, if one exists.
|
|
1640
|
+
*
|
|
1641
|
+
* 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.
|
|
1642
|
+
*/
|
|
1643
|
+
customer_account?: string;
|
|
1644
|
+
|
|
1395
1645
|
/**
|
|
1396
1646
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1397
1647
|
*/
|
|
@@ -1540,11 +1790,21 @@ declare module 'stripe' {
|
|
|
1540
1790
|
*/
|
|
1541
1791
|
giropay?: PaymentMethodData.Giropay;
|
|
1542
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
1795
|
+
*/
|
|
1796
|
+
gopay?: PaymentMethodData.Gopay;
|
|
1797
|
+
|
|
1543
1798
|
/**
|
|
1544
1799
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
1545
1800
|
*/
|
|
1546
1801
|
grabpay?: PaymentMethodData.Grabpay;
|
|
1547
1802
|
|
|
1803
|
+
/**
|
|
1804
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
1805
|
+
*/
|
|
1806
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
1807
|
+
|
|
1548
1808
|
/**
|
|
1549
1809
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
1550
1810
|
*/
|
|
@@ -1580,6 +1840,11 @@ declare module 'stripe' {
|
|
|
1580
1840
|
*/
|
|
1581
1841
|
link?: PaymentMethodData.Link;
|
|
1582
1842
|
|
|
1843
|
+
/**
|
|
1844
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
1845
|
+
*/
|
|
1846
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
1847
|
+
|
|
1583
1848
|
/**
|
|
1584
1849
|
* 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`.
|
|
1585
1850
|
*/
|
|
@@ -1635,6 +1900,11 @@ declare module 'stripe' {
|
|
|
1635
1900
|
*/
|
|
1636
1901
|
paypal?: PaymentMethodData.Paypal;
|
|
1637
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1905
|
+
*/
|
|
1906
|
+
payto?: PaymentMethodData.Payto;
|
|
1907
|
+
|
|
1638
1908
|
/**
|
|
1639
1909
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
1640
1910
|
*/
|
|
@@ -1645,11 +1915,21 @@ declare module 'stripe' {
|
|
|
1645
1915
|
*/
|
|
1646
1916
|
promptpay?: PaymentMethodData.Promptpay;
|
|
1647
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
1920
|
+
*/
|
|
1921
|
+
qris?: PaymentMethodData.Qris;
|
|
1922
|
+
|
|
1648
1923
|
/**
|
|
1649
1924
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
1650
1925
|
*/
|
|
1651
1926
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
1652
1927
|
|
|
1928
|
+
/**
|
|
1929
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1930
|
+
*/
|
|
1931
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
1932
|
+
|
|
1653
1933
|
/**
|
|
1654
1934
|
* If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
1655
1935
|
*/
|
|
@@ -1670,11 +1950,21 @@ declare module 'stripe' {
|
|
|
1670
1950
|
*/
|
|
1671
1951
|
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
1672
1952
|
|
|
1953
|
+
/**
|
|
1954
|
+
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
1955
|
+
*/
|
|
1956
|
+
shopeepay?: PaymentMethodData.Shopeepay;
|
|
1957
|
+
|
|
1673
1958
|
/**
|
|
1674
1959
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
1675
1960
|
*/
|
|
1676
1961
|
sofort?: PaymentMethodData.Sofort;
|
|
1677
1962
|
|
|
1963
|
+
/**
|
|
1964
|
+
* This hash contains details about the Stripe balance payment method.
|
|
1965
|
+
*/
|
|
1966
|
+
stripe_balance?: PaymentMethodData.StripeBalance;
|
|
1967
|
+
|
|
1678
1968
|
/**
|
|
1679
1969
|
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
1680
1970
|
*/
|
|
@@ -1885,8 +2175,21 @@ declare module 'stripe' {
|
|
|
1885
2175
|
|
|
1886
2176
|
interface Giropay {}
|
|
1887
2177
|
|
|
2178
|
+
interface Gopay {}
|
|
2179
|
+
|
|
1888
2180
|
interface Grabpay {}
|
|
1889
2181
|
|
|
2182
|
+
interface IdBankTransfer {
|
|
2183
|
+
/**
|
|
2184
|
+
* Bank where the account is held.
|
|
2185
|
+
*/
|
|
2186
|
+
bank?: IdBankTransfer.Bank;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
namespace IdBankTransfer {
|
|
2190
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
2191
|
+
}
|
|
2192
|
+
|
|
1890
2193
|
interface Ideal {
|
|
1891
2194
|
/**
|
|
1892
2195
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -1950,6 +2253,8 @@ declare module 'stripe' {
|
|
|
1950
2253
|
|
|
1951
2254
|
interface Link {}
|
|
1952
2255
|
|
|
2256
|
+
interface MbWay {}
|
|
2257
|
+
|
|
1953
2258
|
interface Mobilepay {}
|
|
1954
2259
|
|
|
1955
2260
|
interface Multibanco {}
|
|
@@ -2041,10 +2346,29 @@ declare module 'stripe' {
|
|
|
2041
2346
|
|
|
2042
2347
|
interface Paypal {}
|
|
2043
2348
|
|
|
2349
|
+
interface Payto {
|
|
2350
|
+
/**
|
|
2351
|
+
* The account number for the bank account.
|
|
2352
|
+
*/
|
|
2353
|
+
account_number?: string;
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* Bank-State-Branch number of the bank account.
|
|
2357
|
+
*/
|
|
2358
|
+
bsb_number?: string;
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* The PayID alias for the bank account.
|
|
2362
|
+
*/
|
|
2363
|
+
pay_id?: string;
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2044
2366
|
interface Pix {}
|
|
2045
2367
|
|
|
2046
2368
|
interface Promptpay {}
|
|
2047
2369
|
|
|
2370
|
+
interface Qris {}
|
|
2371
|
+
|
|
2048
2372
|
interface RadarOptions {
|
|
2049
2373
|
/**
|
|
2050
2374
|
* 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.
|
|
@@ -2052,6 +2376,32 @@ declare module 'stripe' {
|
|
|
2052
2376
|
session?: string;
|
|
2053
2377
|
}
|
|
2054
2378
|
|
|
2379
|
+
interface Rechnung {
|
|
2380
|
+
/**
|
|
2381
|
+
* Customer's date of birth
|
|
2382
|
+
*/
|
|
2383
|
+
dob: Rechnung.Dob;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
namespace Rechnung {
|
|
2387
|
+
interface Dob {
|
|
2388
|
+
/**
|
|
2389
|
+
* The day of birth, between 1 and 31.
|
|
2390
|
+
*/
|
|
2391
|
+
day: number;
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* The month of birth, between 1 and 12.
|
|
2395
|
+
*/
|
|
2396
|
+
month: number;
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
* The four-digit year of birth.
|
|
2400
|
+
*/
|
|
2401
|
+
year: number;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2055
2405
|
interface RevolutPay {}
|
|
2056
2406
|
|
|
2057
2407
|
interface SamsungPay {}
|
|
@@ -2065,6 +2415,8 @@ declare module 'stripe' {
|
|
|
2065
2415
|
iban: string;
|
|
2066
2416
|
}
|
|
2067
2417
|
|
|
2418
|
+
interface Shopeepay {}
|
|
2419
|
+
|
|
2068
2420
|
interface Sofort {
|
|
2069
2421
|
/**
|
|
2070
2422
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -2076,6 +2428,22 @@ declare module 'stripe' {
|
|
|
2076
2428
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
2077
2429
|
}
|
|
2078
2430
|
|
|
2431
|
+
interface StripeBalance {
|
|
2432
|
+
/**
|
|
2433
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
2434
|
+
*/
|
|
2435
|
+
account?: string;
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2439
|
+
*/
|
|
2440
|
+
source_type?: StripeBalance.SourceType;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
namespace StripeBalance {
|
|
2444
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2079
2447
|
interface Swish {}
|
|
2080
2448
|
|
|
2081
2449
|
interface Twint {}
|
|
@@ -2098,13 +2466,16 @@ declare module 'stripe' {
|
|
|
2098
2466
|
| 'eps'
|
|
2099
2467
|
| 'fpx'
|
|
2100
2468
|
| 'giropay'
|
|
2469
|
+
| 'gopay'
|
|
2101
2470
|
| 'grabpay'
|
|
2471
|
+
| 'id_bank_transfer'
|
|
2102
2472
|
| 'ideal'
|
|
2103
2473
|
| 'kakao_pay'
|
|
2104
2474
|
| 'klarna'
|
|
2105
2475
|
| 'konbini'
|
|
2106
2476
|
| 'kr_card'
|
|
2107
2477
|
| 'link'
|
|
2478
|
+
| 'mb_way'
|
|
2108
2479
|
| 'mobilepay'
|
|
2109
2480
|
| 'multibanco'
|
|
2110
2481
|
| 'naver_pay'
|
|
@@ -2115,13 +2486,18 @@ declare module 'stripe' {
|
|
|
2115
2486
|
| 'payco'
|
|
2116
2487
|
| 'paynow'
|
|
2117
2488
|
| 'paypal'
|
|
2489
|
+
| 'payto'
|
|
2118
2490
|
| 'pix'
|
|
2119
2491
|
| 'promptpay'
|
|
2492
|
+
| 'qris'
|
|
2493
|
+
| 'rechnung'
|
|
2120
2494
|
| 'revolut_pay'
|
|
2121
2495
|
| 'samsung_pay'
|
|
2122
2496
|
| 'satispay'
|
|
2123
2497
|
| 'sepa_debit'
|
|
2498
|
+
| 'shopeepay'
|
|
2124
2499
|
| 'sofort'
|
|
2500
|
+
| 'stripe_balance'
|
|
2125
2501
|
| 'swish'
|
|
2126
2502
|
| 'twint'
|
|
2127
2503
|
| 'us_bank_account'
|
|
@@ -2202,6 +2578,11 @@ declare module 'stripe' {
|
|
|
2202
2578
|
*/
|
|
2203
2579
|
paypal?: PaymentMethodOptions.Paypal;
|
|
2204
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
2583
|
+
*/
|
|
2584
|
+
payto?: PaymentMethodOptions.Payto;
|
|
2585
|
+
|
|
2205
2586
|
/**
|
|
2206
2587
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2207
2588
|
*/
|
|
@@ -2503,6 +2884,86 @@ declare module 'stripe' {
|
|
|
2503
2884
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
2504
2885
|
*/
|
|
2505
2886
|
billing_agreement_id?: string;
|
|
2887
|
+
|
|
2888
|
+
currency?: string;
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* 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.
|
|
2892
|
+
*/
|
|
2893
|
+
subsellers?: Array<string>;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
interface Payto {
|
|
2897
|
+
/**
|
|
2898
|
+
* Additional fields for Mandate creation.
|
|
2899
|
+
*/
|
|
2900
|
+
mandate_options?: Payto.MandateOptions;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
namespace Payto {
|
|
2904
|
+
interface MandateOptions {
|
|
2905
|
+
/**
|
|
2906
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2907
|
+
*/
|
|
2908
|
+
amount?: number;
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* 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.
|
|
2912
|
+
*/
|
|
2913
|
+
amount_type?: MandateOptions.AmountType;
|
|
2914
|
+
|
|
2915
|
+
/**
|
|
2916
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2917
|
+
*/
|
|
2918
|
+
end_date?: string;
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* The periodicity at which payments will be collected.
|
|
2922
|
+
*/
|
|
2923
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* 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.
|
|
2927
|
+
*/
|
|
2928
|
+
payments_per_period?: number;
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2932
|
+
*/
|
|
2933
|
+
purpose?: MandateOptions.Purpose;
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2937
|
+
*/
|
|
2938
|
+
start_date?: string;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
namespace MandateOptions {
|
|
2942
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2943
|
+
|
|
2944
|
+
type PaymentSchedule =
|
|
2945
|
+
| 'adhoc'
|
|
2946
|
+
| 'annual'
|
|
2947
|
+
| 'daily'
|
|
2948
|
+
| 'fortnightly'
|
|
2949
|
+
| 'monthly'
|
|
2950
|
+
| 'quarterly'
|
|
2951
|
+
| 'semi_annual'
|
|
2952
|
+
| 'weekly';
|
|
2953
|
+
|
|
2954
|
+
type Purpose =
|
|
2955
|
+
| 'dependant_support'
|
|
2956
|
+
| 'government'
|
|
2957
|
+
| 'loan'
|
|
2958
|
+
| 'mortgage'
|
|
2959
|
+
| 'other'
|
|
2960
|
+
| 'pension'
|
|
2961
|
+
| 'personal'
|
|
2962
|
+
| 'retail'
|
|
2963
|
+
| 'salary'
|
|
2964
|
+
| 'tax'
|
|
2965
|
+
| 'utility';
|
|
2966
|
+
}
|
|
2506
2967
|
}
|
|
2507
2968
|
|
|
2508
2969
|
interface SepaDebit {
|
|
@@ -2550,6 +3011,11 @@ declare module 'stripe' {
|
|
|
2550
3011
|
*/
|
|
2551
3012
|
filters?: FinancialConnections.Filters;
|
|
2552
3013
|
|
|
3014
|
+
/**
|
|
3015
|
+
* Customize manual entry behavior
|
|
3016
|
+
*/
|
|
3017
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3018
|
+
|
|
2553
3019
|
/**
|
|
2554
3020
|
* 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`.
|
|
2555
3021
|
*/
|
|
@@ -2572,19 +3038,39 @@ declare module 'stripe' {
|
|
|
2572
3038
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2573
3039
|
*/
|
|
2574
3040
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3044
|
+
*/
|
|
3045
|
+
institution?: string;
|
|
2575
3046
|
}
|
|
2576
3047
|
|
|
2577
3048
|
namespace Filters {
|
|
2578
3049
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2579
3050
|
}
|
|
2580
3051
|
|
|
3052
|
+
interface ManualEntry {
|
|
3053
|
+
/**
|
|
3054
|
+
* Settings for configuring manual entry of account details.
|
|
3055
|
+
*/
|
|
3056
|
+
mode: ManualEntry.Mode;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
namespace ManualEntry {
|
|
3060
|
+
type Mode = 'automatic' | 'custom';
|
|
3061
|
+
}
|
|
3062
|
+
|
|
2581
3063
|
type Permission =
|
|
2582
3064
|
| 'balances'
|
|
2583
3065
|
| 'ownership'
|
|
2584
3066
|
| 'payment_method'
|
|
2585
3067
|
| 'transactions';
|
|
2586
3068
|
|
|
2587
|
-
type Prefetch =
|
|
3069
|
+
type Prefetch =
|
|
3070
|
+
| 'balances'
|
|
3071
|
+
| 'inferred_balances'
|
|
3072
|
+
| 'ownership'
|
|
3073
|
+
| 'transactions';
|
|
2588
3074
|
}
|
|
2589
3075
|
|
|
2590
3076
|
interface MandateOptions {
|
|
@@ -2628,6 +3114,11 @@ declare module 'stripe' {
|
|
|
2628
3114
|
*/
|
|
2629
3115
|
customer?: string;
|
|
2630
3116
|
|
|
3117
|
+
/**
|
|
3118
|
+
* Only return SetupIntents for the account specified by this customer ID.
|
|
3119
|
+
*/
|
|
3120
|
+
customer_account?: string;
|
|
3121
|
+
|
|
2631
3122
|
/**
|
|
2632
3123
|
* Specifies which fields in the response should be expanded.
|
|
2633
3124
|
*/
|
|
@@ -2848,11 +3339,21 @@ declare module 'stripe' {
|
|
|
2848
3339
|
*/
|
|
2849
3340
|
giropay?: PaymentMethodData.Giropay;
|
|
2850
3341
|
|
|
3342
|
+
/**
|
|
3343
|
+
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
3344
|
+
*/
|
|
3345
|
+
gopay?: PaymentMethodData.Gopay;
|
|
3346
|
+
|
|
2851
3347
|
/**
|
|
2852
3348
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2853
3349
|
*/
|
|
2854
3350
|
grabpay?: PaymentMethodData.Grabpay;
|
|
2855
3351
|
|
|
3352
|
+
/**
|
|
3353
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
3354
|
+
*/
|
|
3355
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
3356
|
+
|
|
2856
3357
|
/**
|
|
2857
3358
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2858
3359
|
*/
|
|
@@ -2888,6 +3389,11 @@ declare module 'stripe' {
|
|
|
2888
3389
|
*/
|
|
2889
3390
|
link?: PaymentMethodData.Link;
|
|
2890
3391
|
|
|
3392
|
+
/**
|
|
3393
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
3394
|
+
*/
|
|
3395
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
3396
|
+
|
|
2891
3397
|
/**
|
|
2892
3398
|
* 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`.
|
|
2893
3399
|
*/
|
|
@@ -2943,6 +3449,11 @@ declare module 'stripe' {
|
|
|
2943
3449
|
*/
|
|
2944
3450
|
paypal?: PaymentMethodData.Paypal;
|
|
2945
3451
|
|
|
3452
|
+
/**
|
|
3453
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
3454
|
+
*/
|
|
3455
|
+
payto?: PaymentMethodData.Payto;
|
|
3456
|
+
|
|
2946
3457
|
/**
|
|
2947
3458
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2948
3459
|
*/
|
|
@@ -2953,11 +3464,21 @@ declare module 'stripe' {
|
|
|
2953
3464
|
*/
|
|
2954
3465
|
promptpay?: PaymentMethodData.Promptpay;
|
|
2955
3466
|
|
|
3467
|
+
/**
|
|
3468
|
+
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
3469
|
+
*/
|
|
3470
|
+
qris?: PaymentMethodData.Qris;
|
|
3471
|
+
|
|
2956
3472
|
/**
|
|
2957
3473
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
2958
3474
|
*/
|
|
2959
3475
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
2960
3476
|
|
|
3477
|
+
/**
|
|
3478
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
3479
|
+
*/
|
|
3480
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
3481
|
+
|
|
2961
3482
|
/**
|
|
2962
3483
|
* If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2963
3484
|
*/
|
|
@@ -2978,11 +3499,21 @@ declare module 'stripe' {
|
|
|
2978
3499
|
*/
|
|
2979
3500
|
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
2980
3501
|
|
|
3502
|
+
/**
|
|
3503
|
+
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
3504
|
+
*/
|
|
3505
|
+
shopeepay?: PaymentMethodData.Shopeepay;
|
|
3506
|
+
|
|
2981
3507
|
/**
|
|
2982
3508
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2983
3509
|
*/
|
|
2984
3510
|
sofort?: PaymentMethodData.Sofort;
|
|
2985
3511
|
|
|
3512
|
+
/**
|
|
3513
|
+
* This hash contains details about the Stripe balance payment method.
|
|
3514
|
+
*/
|
|
3515
|
+
stripe_balance?: PaymentMethodData.StripeBalance;
|
|
3516
|
+
|
|
2986
3517
|
/**
|
|
2987
3518
|
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2988
3519
|
*/
|
|
@@ -3193,8 +3724,21 @@ declare module 'stripe' {
|
|
|
3193
3724
|
|
|
3194
3725
|
interface Giropay {}
|
|
3195
3726
|
|
|
3727
|
+
interface Gopay {}
|
|
3728
|
+
|
|
3196
3729
|
interface Grabpay {}
|
|
3197
3730
|
|
|
3731
|
+
interface IdBankTransfer {
|
|
3732
|
+
/**
|
|
3733
|
+
* Bank where the account is held.
|
|
3734
|
+
*/
|
|
3735
|
+
bank?: IdBankTransfer.Bank;
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3738
|
+
namespace IdBankTransfer {
|
|
3739
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3198
3742
|
interface Ideal {
|
|
3199
3743
|
/**
|
|
3200
3744
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -3258,6 +3802,8 @@ declare module 'stripe' {
|
|
|
3258
3802
|
|
|
3259
3803
|
interface Link {}
|
|
3260
3804
|
|
|
3805
|
+
interface MbWay {}
|
|
3806
|
+
|
|
3261
3807
|
interface Mobilepay {}
|
|
3262
3808
|
|
|
3263
3809
|
interface Multibanco {}
|
|
@@ -3349,10 +3895,29 @@ declare module 'stripe' {
|
|
|
3349
3895
|
|
|
3350
3896
|
interface Paypal {}
|
|
3351
3897
|
|
|
3898
|
+
interface Payto {
|
|
3899
|
+
/**
|
|
3900
|
+
* The account number for the bank account.
|
|
3901
|
+
*/
|
|
3902
|
+
account_number?: string;
|
|
3903
|
+
|
|
3904
|
+
/**
|
|
3905
|
+
* Bank-State-Branch number of the bank account.
|
|
3906
|
+
*/
|
|
3907
|
+
bsb_number?: string;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* The PayID alias for the bank account.
|
|
3911
|
+
*/
|
|
3912
|
+
pay_id?: string;
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3352
3915
|
interface Pix {}
|
|
3353
3916
|
|
|
3354
3917
|
interface Promptpay {}
|
|
3355
3918
|
|
|
3919
|
+
interface Qris {}
|
|
3920
|
+
|
|
3356
3921
|
interface RadarOptions {
|
|
3357
3922
|
/**
|
|
3358
3923
|
* 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.
|
|
@@ -3360,6 +3925,32 @@ declare module 'stripe' {
|
|
|
3360
3925
|
session?: string;
|
|
3361
3926
|
}
|
|
3362
3927
|
|
|
3928
|
+
interface Rechnung {
|
|
3929
|
+
/**
|
|
3930
|
+
* Customer's date of birth
|
|
3931
|
+
*/
|
|
3932
|
+
dob: Rechnung.Dob;
|
|
3933
|
+
}
|
|
3934
|
+
|
|
3935
|
+
namespace Rechnung {
|
|
3936
|
+
interface Dob {
|
|
3937
|
+
/**
|
|
3938
|
+
* The day of birth, between 1 and 31.
|
|
3939
|
+
*/
|
|
3940
|
+
day: number;
|
|
3941
|
+
|
|
3942
|
+
/**
|
|
3943
|
+
* The month of birth, between 1 and 12.
|
|
3944
|
+
*/
|
|
3945
|
+
month: number;
|
|
3946
|
+
|
|
3947
|
+
/**
|
|
3948
|
+
* The four-digit year of birth.
|
|
3949
|
+
*/
|
|
3950
|
+
year: number;
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3363
3954
|
interface RevolutPay {}
|
|
3364
3955
|
|
|
3365
3956
|
interface SamsungPay {}
|
|
@@ -3373,6 +3964,8 @@ declare module 'stripe' {
|
|
|
3373
3964
|
iban: string;
|
|
3374
3965
|
}
|
|
3375
3966
|
|
|
3967
|
+
interface Shopeepay {}
|
|
3968
|
+
|
|
3376
3969
|
interface Sofort {
|
|
3377
3970
|
/**
|
|
3378
3971
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -3384,6 +3977,22 @@ declare module 'stripe' {
|
|
|
3384
3977
|
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
3385
3978
|
}
|
|
3386
3979
|
|
|
3980
|
+
interface StripeBalance {
|
|
3981
|
+
/**
|
|
3982
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
3983
|
+
*/
|
|
3984
|
+
account?: string;
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
3988
|
+
*/
|
|
3989
|
+
source_type?: StripeBalance.SourceType;
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
namespace StripeBalance {
|
|
3993
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3387
3996
|
interface Swish {}
|
|
3388
3997
|
|
|
3389
3998
|
interface Twint {}
|
|
@@ -3406,13 +4015,16 @@ declare module 'stripe' {
|
|
|
3406
4015
|
| 'eps'
|
|
3407
4016
|
| 'fpx'
|
|
3408
4017
|
| 'giropay'
|
|
4018
|
+
| 'gopay'
|
|
3409
4019
|
| 'grabpay'
|
|
4020
|
+
| 'id_bank_transfer'
|
|
3410
4021
|
| 'ideal'
|
|
3411
4022
|
| 'kakao_pay'
|
|
3412
4023
|
| 'klarna'
|
|
3413
4024
|
| 'konbini'
|
|
3414
4025
|
| 'kr_card'
|
|
3415
4026
|
| 'link'
|
|
4027
|
+
| 'mb_way'
|
|
3416
4028
|
| 'mobilepay'
|
|
3417
4029
|
| 'multibanco'
|
|
3418
4030
|
| 'naver_pay'
|
|
@@ -3423,13 +4035,18 @@ declare module 'stripe' {
|
|
|
3423
4035
|
| 'payco'
|
|
3424
4036
|
| 'paynow'
|
|
3425
4037
|
| 'paypal'
|
|
4038
|
+
| 'payto'
|
|
3426
4039
|
| 'pix'
|
|
3427
4040
|
| 'promptpay'
|
|
4041
|
+
| 'qris'
|
|
4042
|
+
| 'rechnung'
|
|
3428
4043
|
| 'revolut_pay'
|
|
3429
4044
|
| 'samsung_pay'
|
|
3430
4045
|
| 'satispay'
|
|
3431
4046
|
| 'sepa_debit'
|
|
4047
|
+
| 'shopeepay'
|
|
3432
4048
|
| 'sofort'
|
|
4049
|
+
| 'stripe_balance'
|
|
3433
4050
|
| 'swish'
|
|
3434
4051
|
| 'twint'
|
|
3435
4052
|
| 'us_bank_account'
|
|
@@ -3510,6 +4127,11 @@ declare module 'stripe' {
|
|
|
3510
4127
|
*/
|
|
3511
4128
|
paypal?: PaymentMethodOptions.Paypal;
|
|
3512
4129
|
|
|
4130
|
+
/**
|
|
4131
|
+
* If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
|
4132
|
+
*/
|
|
4133
|
+
payto?: PaymentMethodOptions.Payto;
|
|
4134
|
+
|
|
3513
4135
|
/**
|
|
3514
4136
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
3515
4137
|
*/
|
|
@@ -3811,6 +4433,86 @@ declare module 'stripe' {
|
|
|
3811
4433
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
3812
4434
|
*/
|
|
3813
4435
|
billing_agreement_id?: string;
|
|
4436
|
+
|
|
4437
|
+
currency?: string;
|
|
4438
|
+
|
|
4439
|
+
/**
|
|
4440
|
+
* 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.
|
|
4441
|
+
*/
|
|
4442
|
+
subsellers?: Array<string>;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
interface Payto {
|
|
4446
|
+
/**
|
|
4447
|
+
* Additional fields for Mandate creation.
|
|
4448
|
+
*/
|
|
4449
|
+
mandate_options?: Payto.MandateOptions;
|
|
4450
|
+
}
|
|
4451
|
+
|
|
4452
|
+
namespace Payto {
|
|
4453
|
+
interface MandateOptions {
|
|
4454
|
+
/**
|
|
4455
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
4456
|
+
*/
|
|
4457
|
+
amount?: number;
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* 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.
|
|
4461
|
+
*/
|
|
4462
|
+
amount_type?: MandateOptions.AmountType;
|
|
4463
|
+
|
|
4464
|
+
/**
|
|
4465
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
4466
|
+
*/
|
|
4467
|
+
end_date?: string;
|
|
4468
|
+
|
|
4469
|
+
/**
|
|
4470
|
+
* The periodicity at which payments will be collected.
|
|
4471
|
+
*/
|
|
4472
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
4473
|
+
|
|
4474
|
+
/**
|
|
4475
|
+
* 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.
|
|
4476
|
+
*/
|
|
4477
|
+
payments_per_period?: number;
|
|
4478
|
+
|
|
4479
|
+
/**
|
|
4480
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
4481
|
+
*/
|
|
4482
|
+
purpose?: MandateOptions.Purpose;
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
4486
|
+
*/
|
|
4487
|
+
start_date?: string;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
namespace MandateOptions {
|
|
4491
|
+
type AmountType = 'fixed' | 'maximum';
|
|
4492
|
+
|
|
4493
|
+
type PaymentSchedule =
|
|
4494
|
+
| 'adhoc'
|
|
4495
|
+
| 'annual'
|
|
4496
|
+
| 'daily'
|
|
4497
|
+
| 'fortnightly'
|
|
4498
|
+
| 'monthly'
|
|
4499
|
+
| 'quarterly'
|
|
4500
|
+
| 'semi_annual'
|
|
4501
|
+
| 'weekly';
|
|
4502
|
+
|
|
4503
|
+
type Purpose =
|
|
4504
|
+
| 'dependant_support'
|
|
4505
|
+
| 'government'
|
|
4506
|
+
| 'loan'
|
|
4507
|
+
| 'mortgage'
|
|
4508
|
+
| 'other'
|
|
4509
|
+
| 'pension'
|
|
4510
|
+
| 'personal'
|
|
4511
|
+
| 'retail'
|
|
4512
|
+
| 'salary'
|
|
4513
|
+
| 'tax'
|
|
4514
|
+
| 'utility';
|
|
4515
|
+
}
|
|
3814
4516
|
}
|
|
3815
4517
|
|
|
3816
4518
|
interface SepaDebit {
|
|
@@ -3858,6 +4560,11 @@ declare module 'stripe' {
|
|
|
3858
4560
|
*/
|
|
3859
4561
|
filters?: FinancialConnections.Filters;
|
|
3860
4562
|
|
|
4563
|
+
/**
|
|
4564
|
+
* Customize manual entry behavior
|
|
4565
|
+
*/
|
|
4566
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
4567
|
+
|
|
3861
4568
|
/**
|
|
3862
4569
|
* 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`.
|
|
3863
4570
|
*/
|
|
@@ -3880,19 +4587,39 @@ declare module 'stripe' {
|
|
|
3880
4587
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3881
4588
|
*/
|
|
3882
4589
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
4593
|
+
*/
|
|
4594
|
+
institution?: string;
|
|
3883
4595
|
}
|
|
3884
4596
|
|
|
3885
4597
|
namespace Filters {
|
|
3886
4598
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3887
4599
|
}
|
|
3888
4600
|
|
|
4601
|
+
interface ManualEntry {
|
|
4602
|
+
/**
|
|
4603
|
+
* Settings for configuring manual entry of account details.
|
|
4604
|
+
*/
|
|
4605
|
+
mode: ManualEntry.Mode;
|
|
4606
|
+
}
|
|
4607
|
+
|
|
4608
|
+
namespace ManualEntry {
|
|
4609
|
+
type Mode = 'automatic' | 'custom';
|
|
4610
|
+
}
|
|
4611
|
+
|
|
3889
4612
|
type Permission =
|
|
3890
4613
|
| 'balances'
|
|
3891
4614
|
| 'ownership'
|
|
3892
4615
|
| 'payment_method'
|
|
3893
4616
|
| 'transactions';
|
|
3894
4617
|
|
|
3895
|
-
type Prefetch =
|
|
4618
|
+
type Prefetch =
|
|
4619
|
+
| 'balances'
|
|
4620
|
+
| 'inferred_balances'
|
|
4621
|
+
| 'ownership'
|
|
4622
|
+
| 'transactions';
|
|
3896
4623
|
}
|
|
3897
4624
|
|
|
3898
4625
|
interface MandateOptions {
|