stripe 18.1.0-beta.3 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +140 -1208
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +3 -93
- package/cjs/RequestSender.js +3 -7
- package/cjs/Webhooks.js +6 -2
- package/cjs/apiVersion.js +1 -1
- package/cjs/net/FetchHttpClient.js +3 -4
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/Invoices.js +0 -4
- package/cjs/resources/PaymentIntents.js +0 -13
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/cjs/resources.js +18 -108
- package/cjs/stripe.core.js +2 -4
- package/cjs/utils.js +28 -4
- package/esm/Error.js +2 -81
- package/esm/RequestSender.js +4 -8
- package/esm/Webhooks.js +6 -2
- package/esm/apiVersion.js +1 -1
- package/esm/net/FetchHttpClient.js +3 -4
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/Invoices.js +0 -4
- package/esm/resources/PaymentIntents.js +0 -13
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -84
- package/esm/stripe.core.js +2 -4
- package/esm/utils.js +24 -3
- package/package.json +12 -3
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -300
- package/types/Accounts.d.ts +1 -212
- package/types/AccountsResource.d.ts +2 -546
- package/types/Billing/CreditBalanceSummary.d.ts +0 -5
- package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
- package/types/Billing/CreditGrants.d.ts +0 -5
- package/types/Billing/CreditGrantsResource.d.ts +1 -11
- package/types/BillingPortal/Sessions.d.ts +0 -5
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Cards.d.ts +0 -5
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +0 -166
- package/types/ChargesResource.d.ts +0 -1314
- package/types/Checkout/Sessions.d.ts +13 -306
- package/types/Checkout/SessionsResource.d.ts +1 -333
- package/types/ConfirmationTokens.d.ts +0 -120
- package/types/Coupons.d.ts +0 -33
- package/types/CouponsResource.d.ts +0 -21
- package/types/CreditNoteLineItems.d.ts +0 -17
- package/types/CreditNotes.d.ts +0 -9
- package/types/CreditNotesResource.d.ts +0 -5
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +0 -5
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +23 -11
- package/types/Discounts.d.ts +0 -10
- package/types/Errors.d.ts +2 -69
- package/types/EventTypes.d.ts +0 -698
- package/types/Events.d.ts +1 -100
- package/types/FinancialConnections/Accounts.d.ts +1 -31
- package/types/FinancialConnections/AccountsResource.d.ts +3 -40
- package/types/FinancialConnections/Sessions.d.ts +1 -51
- package/types/FinancialConnections/SessionsResource.d.ts +1 -43
- package/types/Identity/VerificationSessions.d.ts +0 -5
- package/types/Identity/VerificationSessionsResource.d.ts +0 -7
- package/types/InvoiceItems.d.ts +0 -10
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +2 -46
- package/types/InvoicePayments.d.ts +0 -5
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +15 -138
- package/types/InvoicesResource.d.ts +15 -1471
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -49
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +2 -728
- package/types/PaymentIntentsResource.d.ts +3955 -8479
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +0 -120
- package/types/PaymentMethodsResource.d.ts +2 -167
- package/types/Payouts.d.ts +0 -5
- package/types/PayoutsResource.d.ts +0 -5
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +0 -10
- package/types/Quotes.d.ts +2 -597
- package/types/QuotesResource.d.ts +224 -2571
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +1 -50
- package/types/SetupIntents.d.ts +2 -121
- package/types/SetupIntentsResource.d.ts +3 -730
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -23
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -205
- package/types/SubscriptionSchedulesResource.d.ts +8 -1236
- package/types/Subscriptions.d.ts +1 -97
- package/types/SubscriptionsResource.d.ts +9 -391
- package/types/Tax/Calculations.d.ts +11 -1
- package/types/Tax/CalculationsResource.d.ts +11 -1
- package/types/Tax/Registrations.d.ts +27 -0
- package/types/Tax/RegistrationsResource.d.ts +36 -0
- package/types/Tax/Transactions.d.ts +11 -1
- package/types/TaxIds.d.ts +11 -11
- package/types/TaxIdsResource.d.ts +11 -11
- package/types/Terminal/Readers.d.ts +0 -300
- package/types/Terminal/ReadersResource.d.ts +0 -220
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +7 -127
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Transfers.d.ts +0 -5
- package/types/TransfersResource.d.ts +0 -5
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundPaymentsResource.d.ts +0 -5
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/EventTypes.d.ts +7 -677
- package/types/WebhookEndpointsResource.d.ts +4 -85
- package/types/index.d.ts +5 -146
- package/types/lib.d.ts +1 -11
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/BalanceSettings.js +0 -10
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/FxQuotes.js +0 -15
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Privacy/RedactionJobs.js +0 -46
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/V2/Core/AccountLinks.js +0 -9
- package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
- package/cjs/resources/V2/Core/Accounts.js +0 -25
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceSettings.js +0 -7
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/FxQuotes.js +0 -12
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Privacy/RedactionJobs.js +0 -43
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/V2/Core/AccountLinks.js +0 -6
- package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
- package/esm/resources/V2/Core/Accounts.js +0 -22
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/BalanceSettings.d.ts +0 -89
- package/types/BalanceSettingsResource.d.ts +0 -108
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/ExternalAccountsResource.d.ts +0 -304
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -153
- package/types/FxQuotesResource.d.ts +0 -130
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -113
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1189
- package/types/OrdersResource.d.ts +0 -2981
- package/types/PaymentAttemptRecords.d.ts +0 -2112
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
- package/types/PaymentRecords.d.ts +0 -2105
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
- package/types/Privacy/RedactionJobs.d.ts +0 -43
- package/types/Privacy/RedactionJobsResource.d.ts +0 -240
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1687
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/V2/Core/AccountLinks.d.ts +0 -101
- package/types/V2/Core/AccountLinksResource.d.ts +0 -90
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
- package/types/V2/Core/Accounts.d.ts +0 -8057
- package/types/V2/Core/AccountsResource.d.ts +0 -10184
- package/types/V2/Core/Persons.d.ts +0 -1857
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
|
@@ -76,11 +76,6 @@ declare module 'stripe' {
|
|
|
76
76
|
*/
|
|
77
77
|
customer?: string;
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* ID of an existing Account, if one exists. Has the same behavior as `customer`.
|
|
81
|
-
*/
|
|
82
|
-
customer_account?: string;
|
|
83
|
-
|
|
84
79
|
/**
|
|
85
80
|
* Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
|
|
86
81
|
*
|
|
@@ -709,11 +704,6 @@ declare module 'stripe' {
|
|
|
709
704
|
*/
|
|
710
705
|
dynamic_tax_rates?: Array<string>;
|
|
711
706
|
|
|
712
|
-
/**
|
|
713
|
-
* 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`.
|
|
714
|
-
*/
|
|
715
|
-
metadata?: Stripe.MetadataParam;
|
|
716
|
-
|
|
717
707
|
/**
|
|
718
708
|
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
719
709
|
*/
|
|
@@ -1222,11 +1212,6 @@ declare module 'stripe' {
|
|
|
1222
1212
|
*/
|
|
1223
1213
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1224
1214
|
|
|
1225
|
-
/**
|
|
1226
|
-
* contains details about the PayTo payment method options.
|
|
1227
|
-
*/
|
|
1228
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1229
|
-
|
|
1230
1215
|
/**
|
|
1231
1216
|
* contains details about the Pix payment method options.
|
|
1232
1217
|
*/
|
|
@@ -1496,11 +1481,6 @@ declare module 'stripe' {
|
|
|
1496
1481
|
*/
|
|
1497
1482
|
installments?: Card.Installments;
|
|
1498
1483
|
|
|
1499
|
-
/**
|
|
1500
|
-
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1501
|
-
*/
|
|
1502
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1503
|
-
|
|
1504
1484
|
/**
|
|
1505
1485
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1506
1486
|
*/
|
|
@@ -1562,8 +1542,6 @@ declare module 'stripe' {
|
|
|
1562
1542
|
enabled?: boolean;
|
|
1563
1543
|
}
|
|
1564
1544
|
|
|
1565
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1566
|
-
|
|
1567
1545
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1568
1546
|
|
|
1569
1547
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1959,11 +1937,6 @@ declare module 'stripe' {
|
|
|
1959
1937
|
*/
|
|
1960
1938
|
reference?: string;
|
|
1961
1939
|
|
|
1962
|
-
/**
|
|
1963
|
-
* A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1964
|
-
*/
|
|
1965
|
-
reference_id?: string;
|
|
1966
|
-
|
|
1967
1940
|
/**
|
|
1968
1941
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1969
1942
|
*/
|
|
@@ -1981,11 +1954,6 @@ declare module 'stripe' {
|
|
|
1981
1954
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1982
1955
|
*/
|
|
1983
1956
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1984
|
-
|
|
1985
|
-
/**
|
|
1986
|
-
* 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.
|
|
1987
|
-
*/
|
|
1988
|
-
subsellers?: Array<string>;
|
|
1989
1957
|
}
|
|
1990
1958
|
|
|
1991
1959
|
namespace Paypal {
|
|
@@ -2015,92 +1983,6 @@ declare module 'stripe' {
|
|
|
2015
1983
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2016
1984
|
}
|
|
2017
1985
|
|
|
2018
|
-
interface Payto {
|
|
2019
|
-
/**
|
|
2020
|
-
* Additional fields for Mandate creation
|
|
2021
|
-
*/
|
|
2022
|
-
mandate_options?: Payto.MandateOptions;
|
|
2023
|
-
|
|
2024
|
-
/**
|
|
2025
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2026
|
-
*
|
|
2027
|
-
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2028
|
-
*
|
|
2029
|
-
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2030
|
-
*
|
|
2031
|
-
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2032
|
-
*/
|
|
2033
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
namespace Payto {
|
|
2037
|
-
interface MandateOptions {
|
|
2038
|
-
/**
|
|
2039
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2040
|
-
*/
|
|
2041
|
-
amount?: number;
|
|
2042
|
-
|
|
2043
|
-
/**
|
|
2044
|
-
* 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.
|
|
2045
|
-
*/
|
|
2046
|
-
amount_type?: MandateOptions.AmountType;
|
|
2047
|
-
|
|
2048
|
-
/**
|
|
2049
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2050
|
-
*/
|
|
2051
|
-
end_date?: string;
|
|
2052
|
-
|
|
2053
|
-
/**
|
|
2054
|
-
* The periodicity at which payments will be collected.
|
|
2055
|
-
*/
|
|
2056
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2057
|
-
|
|
2058
|
-
/**
|
|
2059
|
-
* 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.
|
|
2060
|
-
*/
|
|
2061
|
-
payments_per_period?: number;
|
|
2062
|
-
|
|
2063
|
-
/**
|
|
2064
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
2065
|
-
*/
|
|
2066
|
-
purpose?: MandateOptions.Purpose;
|
|
2067
|
-
|
|
2068
|
-
/**
|
|
2069
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2070
|
-
*/
|
|
2071
|
-
start_date?: string;
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
namespace MandateOptions {
|
|
2075
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2076
|
-
|
|
2077
|
-
type PaymentSchedule =
|
|
2078
|
-
| 'adhoc'
|
|
2079
|
-
| 'annual'
|
|
2080
|
-
| 'daily'
|
|
2081
|
-
| 'fortnightly'
|
|
2082
|
-
| 'monthly'
|
|
2083
|
-
| 'quarterly'
|
|
2084
|
-
| 'semi_annual'
|
|
2085
|
-
| 'weekly';
|
|
2086
|
-
|
|
2087
|
-
type Purpose =
|
|
2088
|
-
| 'dependant_support'
|
|
2089
|
-
| 'government'
|
|
2090
|
-
| 'loan'
|
|
2091
|
-
| 'mortgage'
|
|
2092
|
-
| 'other'
|
|
2093
|
-
| 'pension'
|
|
2094
|
-
| 'personal'
|
|
2095
|
-
| 'retail'
|
|
2096
|
-
| 'salary'
|
|
2097
|
-
| 'tax'
|
|
2098
|
-
| 'utility';
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
1986
|
interface Pix {
|
|
2105
1987
|
/**
|
|
2106
1988
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2234,11 +2116,7 @@ declare module 'stripe' {
|
|
|
2234
2116
|
| 'payment_method'
|
|
2235
2117
|
| 'transactions';
|
|
2236
2118
|
|
|
2237
|
-
type Prefetch =
|
|
2238
|
-
| 'balances'
|
|
2239
|
-
| 'inferred_balances'
|
|
2240
|
-
| 'ownership'
|
|
2241
|
-
| 'transactions';
|
|
2119
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2242
2120
|
}
|
|
2243
2121
|
|
|
2244
2122
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2293,7 +2171,6 @@ declare module 'stripe' {
|
|
|
2293
2171
|
| 'eps'
|
|
2294
2172
|
| 'fpx'
|
|
2295
2173
|
| 'giropay'
|
|
2296
|
-
| 'gopay'
|
|
2297
2174
|
| 'grabpay'
|
|
2298
2175
|
| 'ideal'
|
|
2299
2176
|
| 'kakao_pay'
|
|
@@ -2301,7 +2178,6 @@ declare module 'stripe' {
|
|
|
2301
2178
|
| 'konbini'
|
|
2302
2179
|
| 'kr_card'
|
|
2303
2180
|
| 'link'
|
|
2304
|
-
| 'mb_way'
|
|
2305
2181
|
| 'mobilepay'
|
|
2306
2182
|
| 'multibanco'
|
|
2307
2183
|
| 'naver_pay'
|
|
@@ -2311,16 +2187,12 @@ declare module 'stripe' {
|
|
|
2311
2187
|
| 'payco'
|
|
2312
2188
|
| 'paynow'
|
|
2313
2189
|
| 'paypal'
|
|
2314
|
-
| 'payto'
|
|
2315
2190
|
| 'pix'
|
|
2316
2191
|
| 'promptpay'
|
|
2317
|
-
| 'qris'
|
|
2318
|
-
| 'rechnung'
|
|
2319
2192
|
| 'revolut_pay'
|
|
2320
2193
|
| 'samsung_pay'
|
|
2321
2194
|
| 'satispay'
|
|
2322
2195
|
| 'sepa_debit'
|
|
2323
|
-
| 'shopeepay'
|
|
2324
2196
|
| 'sofort'
|
|
2325
2197
|
| 'swish'
|
|
2326
2198
|
| 'twint'
|
|
@@ -2329,20 +2201,6 @@ declare module 'stripe' {
|
|
|
2329
2201
|
| 'zip';
|
|
2330
2202
|
|
|
2331
2203
|
interface Permissions {
|
|
2332
|
-
/**
|
|
2333
|
-
* Permissions for updating the Checkout Session.
|
|
2334
|
-
*/
|
|
2335
|
-
update?: Permissions.Update;
|
|
2336
|
-
|
|
2337
|
-
/**
|
|
2338
|
-
* Determines which entity is allowed to update the line items.
|
|
2339
|
-
*
|
|
2340
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2341
|
-
*
|
|
2342
|
-
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2343
|
-
*/
|
|
2344
|
-
update_line_items?: Permissions.UpdateLineItems;
|
|
2345
|
-
|
|
2346
2204
|
/**
|
|
2347
2205
|
* Determines which entity is allowed to update the shipping details.
|
|
2348
2206
|
*
|
|
@@ -2354,34 +2212,6 @@ declare module 'stripe' {
|
|
|
2354
2212
|
}
|
|
2355
2213
|
|
|
2356
2214
|
namespace Permissions {
|
|
2357
|
-
interface Update {
|
|
2358
|
-
/**
|
|
2359
|
-
* Determines which entity is allowed to update the line items.
|
|
2360
|
-
*
|
|
2361
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2362
|
-
*
|
|
2363
|
-
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2364
|
-
*/
|
|
2365
|
-
line_items?: Update.LineItems;
|
|
2366
|
-
|
|
2367
|
-
/**
|
|
2368
|
-
* Determines which entity is allowed to update the shipping details.
|
|
2369
|
-
*
|
|
2370
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2371
|
-
*
|
|
2372
|
-
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
2373
|
-
*/
|
|
2374
|
-
shipping_details?: Update.ShippingDetails;
|
|
2375
|
-
}
|
|
2376
|
-
|
|
2377
|
-
namespace Update {
|
|
2378
|
-
type LineItems = 'client_only' | 'server_only';
|
|
2379
|
-
|
|
2380
|
-
type ShippingDetails = 'client_only' | 'server_only';
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
type UpdateLineItems = 'client_only' | 'server_only';
|
|
2384
|
-
|
|
2385
2215
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2386
2216
|
}
|
|
2387
2217
|
|
|
@@ -3010,23 +2840,6 @@ declare module 'stripe' {
|
|
|
3010
2840
|
*/
|
|
3011
2841
|
expand?: Array<string>;
|
|
3012
2842
|
|
|
3013
|
-
/**
|
|
3014
|
-
* A list of items the customer is purchasing.
|
|
3015
|
-
*
|
|
3016
|
-
* When updating line items, you must retransmit the entire array of line items.
|
|
3017
|
-
*
|
|
3018
|
-
* To retain an existing line item, specify its `id`.
|
|
3019
|
-
*
|
|
3020
|
-
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
3021
|
-
*
|
|
3022
|
-
* To add a new line item, specify a `price` and `quantity`.
|
|
3023
|
-
*
|
|
3024
|
-
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
3025
|
-
*
|
|
3026
|
-
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
3027
|
-
*/
|
|
3028
|
-
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3029
|
-
|
|
3030
2843
|
/**
|
|
3031
2844
|
* 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`.
|
|
3032
2845
|
*/
|
|
@@ -3096,146 +2909,6 @@ declare module 'stripe' {
|
|
|
3096
2909
|
}
|
|
3097
2910
|
}
|
|
3098
2911
|
|
|
3099
|
-
interface LineItem {
|
|
3100
|
-
/**
|
|
3101
|
-
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
3102
|
-
*/
|
|
3103
|
-
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
3104
|
-
|
|
3105
|
-
/**
|
|
3106
|
-
* ID of an existing line item.
|
|
3107
|
-
*/
|
|
3108
|
-
id?: string;
|
|
3109
|
-
|
|
3110
|
-
/**
|
|
3111
|
-
* 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`.
|
|
3112
|
-
*/
|
|
3113
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3114
|
-
|
|
3115
|
-
/**
|
|
3116
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
|
|
3117
|
-
*/
|
|
3118
|
-
price?: string;
|
|
3119
|
-
|
|
3120
|
-
/**
|
|
3121
|
-
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
|
|
3122
|
-
*/
|
|
3123
|
-
price_data?: LineItem.PriceData;
|
|
3124
|
-
|
|
3125
|
-
/**
|
|
3126
|
-
* The quantity of the line item being purchased.
|
|
3127
|
-
*/
|
|
3128
|
-
quantity?: Stripe.Emptyable<number>;
|
|
3129
|
-
|
|
3130
|
-
/**
|
|
3131
|
-
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
3132
|
-
*/
|
|
3133
|
-
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
namespace LineItem {
|
|
3137
|
-
interface AdjustableQuantity {
|
|
3138
|
-
/**
|
|
3139
|
-
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
3140
|
-
*/
|
|
3141
|
-
enabled: boolean;
|
|
3142
|
-
|
|
3143
|
-
/**
|
|
3144
|
-
* The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
|
|
3145
|
-
*/
|
|
3146
|
-
maximum?: number;
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
3150
|
-
*/
|
|
3151
|
-
minimum?: number;
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
interface PriceData {
|
|
3155
|
-
/**
|
|
3156
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
3157
|
-
*/
|
|
3158
|
-
currency: string;
|
|
3159
|
-
|
|
3160
|
-
/**
|
|
3161
|
-
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
|
|
3162
|
-
*/
|
|
3163
|
-
product?: string;
|
|
3164
|
-
|
|
3165
|
-
/**
|
|
3166
|
-
* Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
|
3167
|
-
*/
|
|
3168
|
-
product_data?: PriceData.ProductData;
|
|
3169
|
-
|
|
3170
|
-
/**
|
|
3171
|
-
* The recurring components of a price such as `interval` and `interval_count`.
|
|
3172
|
-
*/
|
|
3173
|
-
recurring?: PriceData.Recurring;
|
|
3174
|
-
|
|
3175
|
-
/**
|
|
3176
|
-
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
3177
|
-
*/
|
|
3178
|
-
tax_behavior?: PriceData.TaxBehavior;
|
|
3179
|
-
|
|
3180
|
-
/**
|
|
3181
|
-
* A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
|
3182
|
-
*/
|
|
3183
|
-
unit_amount?: number;
|
|
3184
|
-
|
|
3185
|
-
/**
|
|
3186
|
-
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
|
3187
|
-
*/
|
|
3188
|
-
unit_amount_decimal?: string;
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
namespace PriceData {
|
|
3192
|
-
interface ProductData {
|
|
3193
|
-
/**
|
|
3194
|
-
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
3195
|
-
*/
|
|
3196
|
-
description?: string;
|
|
3197
|
-
|
|
3198
|
-
/**
|
|
3199
|
-
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
3200
|
-
*/
|
|
3201
|
-
images?: Array<string>;
|
|
3202
|
-
|
|
3203
|
-
/**
|
|
3204
|
-
* 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`.
|
|
3205
|
-
*/
|
|
3206
|
-
metadata?: Stripe.MetadataParam;
|
|
3207
|
-
|
|
3208
|
-
/**
|
|
3209
|
-
* The product's name, meant to be displayable to the customer.
|
|
3210
|
-
*/
|
|
3211
|
-
name: string;
|
|
3212
|
-
|
|
3213
|
-
/**
|
|
3214
|
-
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
3215
|
-
*/
|
|
3216
|
-
tax_code?: string;
|
|
3217
|
-
}
|
|
3218
|
-
|
|
3219
|
-
interface Recurring {
|
|
3220
|
-
/**
|
|
3221
|
-
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
3222
|
-
*/
|
|
3223
|
-
interval: Recurring.Interval;
|
|
3224
|
-
|
|
3225
|
-
/**
|
|
3226
|
-
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
|
3227
|
-
*/
|
|
3228
|
-
interval_count?: number;
|
|
3229
|
-
}
|
|
3230
|
-
|
|
3231
|
-
namespace Recurring {
|
|
3232
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
2912
|
interface ShippingOption {
|
|
3240
2913
|
/**
|
|
3241
2914
|
* The ID of the Shipping Rate to use for this shipping option.
|
|
@@ -3386,11 +3059,6 @@ declare module 'stripe' {
|
|
|
3386
3059
|
*/
|
|
3387
3060
|
customer?: string;
|
|
3388
3061
|
|
|
3389
|
-
/**
|
|
3390
|
-
* Only return the Checkout Sessions for the Account specified.
|
|
3391
|
-
*/
|
|
3392
|
-
customer_account?: string;
|
|
3393
|
-
|
|
3394
3062
|
/**
|
|
3395
3063
|
* Only return the Checkout Sessions for the Customer details specified.
|
|
3396
3064
|
*/
|
|
@@ -211,8 +211,6 @@ declare module 'stripe' {
|
|
|
211
211
|
*/
|
|
212
212
|
customer: string | Stripe.Customer | null;
|
|
213
213
|
|
|
214
|
-
customer_account?: string | null;
|
|
215
|
-
|
|
216
214
|
customer_balance?: PaymentMethodPreview.CustomerBalance;
|
|
217
215
|
|
|
218
216
|
eps?: PaymentMethodPreview.Eps;
|
|
@@ -221,12 +219,8 @@ declare module 'stripe' {
|
|
|
221
219
|
|
|
222
220
|
giropay?: PaymentMethodPreview.Giropay;
|
|
223
221
|
|
|
224
|
-
gopay?: PaymentMethodPreview.Gopay;
|
|
225
|
-
|
|
226
222
|
grabpay?: PaymentMethodPreview.Grabpay;
|
|
227
223
|
|
|
228
|
-
id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
|
|
229
|
-
|
|
230
224
|
ideal?: PaymentMethodPreview.Ideal;
|
|
231
225
|
|
|
232
226
|
interac_present?: PaymentMethodPreview.InteracPresent;
|
|
@@ -241,8 +235,6 @@ declare module 'stripe' {
|
|
|
241
235
|
|
|
242
236
|
link?: PaymentMethodPreview.Link;
|
|
243
237
|
|
|
244
|
-
mb_way?: PaymentMethodPreview.MbWay;
|
|
245
|
-
|
|
246
238
|
mobilepay?: PaymentMethodPreview.Mobilepay;
|
|
247
239
|
|
|
248
240
|
multibanco?: PaymentMethodPreview.Multibanco;
|
|
@@ -263,16 +255,10 @@ declare module 'stripe' {
|
|
|
263
255
|
|
|
264
256
|
paypal?: PaymentMethodPreview.Paypal;
|
|
265
257
|
|
|
266
|
-
payto?: PaymentMethodPreview.Payto;
|
|
267
|
-
|
|
268
258
|
pix?: PaymentMethodPreview.Pix;
|
|
269
259
|
|
|
270
260
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
271
261
|
|
|
272
|
-
qris?: PaymentMethodPreview.Qris;
|
|
273
|
-
|
|
274
|
-
rechnung?: PaymentMethodPreview.Rechnung;
|
|
275
|
-
|
|
276
262
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
277
263
|
|
|
278
264
|
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
|
@@ -281,12 +267,8 @@ declare module 'stripe' {
|
|
|
281
267
|
|
|
282
268
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
283
269
|
|
|
284
|
-
shopeepay?: PaymentMethodPreview.Shopeepay;
|
|
285
|
-
|
|
286
270
|
sofort?: PaymentMethodPreview.Sofort;
|
|
287
271
|
|
|
288
|
-
stripe_balance?: PaymentMethodPreview.StripeBalance;
|
|
289
|
-
|
|
290
272
|
swish?: PaymentMethodPreview.Swish;
|
|
291
273
|
|
|
292
274
|
twint?: PaymentMethodPreview.Twint;
|
|
@@ -1109,24 +1091,8 @@ declare module 'stripe' {
|
|
|
1109
1091
|
|
|
1110
1092
|
interface Giropay {}
|
|
1111
1093
|
|
|
1112
|
-
interface Gopay {}
|
|
1113
|
-
|
|
1114
1094
|
interface Grabpay {}
|
|
1115
1095
|
|
|
1116
|
-
interface IdBankTransfer {
|
|
1117
|
-
bank: IdBankTransfer.Bank | null;
|
|
1118
|
-
|
|
1119
|
-
bank_code: string | null;
|
|
1120
|
-
|
|
1121
|
-
bank_name: string | null;
|
|
1122
|
-
|
|
1123
|
-
display_name: string | null;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
namespace IdBankTransfer {
|
|
1127
|
-
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
1096
|
interface Ideal {
|
|
1131
1097
|
/**
|
|
1132
1098
|
* The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
@@ -1354,8 +1320,6 @@ declare module 'stripe' {
|
|
|
1354
1320
|
persistent_token?: string;
|
|
1355
1321
|
}
|
|
1356
1322
|
|
|
1357
|
-
interface MbWay {}
|
|
1358
|
-
|
|
1359
1323
|
interface Mobilepay {}
|
|
1360
1324
|
|
|
1361
1325
|
interface Multibanco {}
|
|
@@ -1459,11 +1423,6 @@ declare module 'stripe' {
|
|
|
1459
1423
|
*/
|
|
1460
1424
|
country: string | null;
|
|
1461
1425
|
|
|
1462
|
-
/**
|
|
1463
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1464
|
-
*/
|
|
1465
|
-
fingerprint?: string | null;
|
|
1466
|
-
|
|
1467
1426
|
/**
|
|
1468
1427
|
* Owner's email. Values are provided by PayPal directly
|
|
1469
1428
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1474,60 +1433,12 @@ declare module 'stripe' {
|
|
|
1474
1433
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1475
1434
|
*/
|
|
1476
1435
|
payer_id: string | null;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1480
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1481
|
-
*/
|
|
1482
|
-
verified_email?: string | null;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
interface Payto {
|
|
1486
|
-
/**
|
|
1487
|
-
* Bank-State-Branch number of the bank account.
|
|
1488
|
-
*/
|
|
1489
|
-
bsb_number: string | null;
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
* Last four digits of the bank account number.
|
|
1493
|
-
*/
|
|
1494
|
-
last4: string | null;
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* The PayID alias for the bank account.
|
|
1498
|
-
*/
|
|
1499
|
-
pay_id: string | null;
|
|
1500
1436
|
}
|
|
1501
1437
|
|
|
1502
1438
|
interface Pix {}
|
|
1503
1439
|
|
|
1504
1440
|
interface Promptpay {}
|
|
1505
1441
|
|
|
1506
|
-
interface Qris {}
|
|
1507
|
-
|
|
1508
|
-
interface Rechnung {
|
|
1509
|
-
dob?: Rechnung.Dob;
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
namespace Rechnung {
|
|
1513
|
-
interface Dob {
|
|
1514
|
-
/**
|
|
1515
|
-
* The day of birth, between 1 and 31.
|
|
1516
|
-
*/
|
|
1517
|
-
day: number;
|
|
1518
|
-
|
|
1519
|
-
/**
|
|
1520
|
-
* The month of birth, between 1 and 12.
|
|
1521
|
-
*/
|
|
1522
|
-
month: number;
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* The four-digit year of birth.
|
|
1526
|
-
*/
|
|
1527
|
-
year: number;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
1442
|
interface RevolutPay {}
|
|
1532
1443
|
|
|
1533
1444
|
interface SamsungPay {}
|
|
@@ -1580,8 +1491,6 @@ declare module 'stripe' {
|
|
|
1580
1491
|
}
|
|
1581
1492
|
}
|
|
1582
1493
|
|
|
1583
|
-
interface Shopeepay {}
|
|
1584
|
-
|
|
1585
1494
|
interface Sofort {
|
|
1586
1495
|
/**
|
|
1587
1496
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1589,22 +1498,6 @@ declare module 'stripe' {
|
|
|
1589
1498
|
country: string | null;
|
|
1590
1499
|
}
|
|
1591
1500
|
|
|
1592
|
-
interface StripeBalance {
|
|
1593
|
-
/**
|
|
1594
|
-
* The connected account ID whose Stripe balance to use as the source of payment
|
|
1595
|
-
*/
|
|
1596
|
-
account?: string | null;
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1600
|
-
*/
|
|
1601
|
-
source_type: StripeBalance.SourceType;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
namespace StripeBalance {
|
|
1605
|
-
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
1501
|
interface Swish {}
|
|
1609
1502
|
|
|
1610
1503
|
interface Twint {}
|
|
@@ -1629,9 +1522,7 @@ declare module 'stripe' {
|
|
|
1629
1522
|
| 'eps'
|
|
1630
1523
|
| 'fpx'
|
|
1631
1524
|
| 'giropay'
|
|
1632
|
-
| 'gopay'
|
|
1633
1525
|
| 'grabpay'
|
|
1634
|
-
| 'id_bank_transfer'
|
|
1635
1526
|
| 'ideal'
|
|
1636
1527
|
| 'interac_present'
|
|
1637
1528
|
| 'kakao_pay'
|
|
@@ -1639,7 +1530,6 @@ declare module 'stripe' {
|
|
|
1639
1530
|
| 'konbini'
|
|
1640
1531
|
| 'kr_card'
|
|
1641
1532
|
| 'link'
|
|
1642
|
-
| 'mb_way'
|
|
1643
1533
|
| 'mobilepay'
|
|
1644
1534
|
| 'multibanco'
|
|
1645
1535
|
| 'naver_pay'
|
|
@@ -1650,18 +1540,13 @@ declare module 'stripe' {
|
|
|
1650
1540
|
| 'payco'
|
|
1651
1541
|
| 'paynow'
|
|
1652
1542
|
| 'paypal'
|
|
1653
|
-
| 'payto'
|
|
1654
1543
|
| 'pix'
|
|
1655
1544
|
| 'promptpay'
|
|
1656
|
-
| 'qris'
|
|
1657
|
-
| 'rechnung'
|
|
1658
1545
|
| 'revolut_pay'
|
|
1659
1546
|
| 'samsung_pay'
|
|
1660
1547
|
| 'satispay'
|
|
1661
1548
|
| 'sepa_debit'
|
|
1662
|
-
| 'shopeepay'
|
|
1663
1549
|
| 'sofort'
|
|
1664
|
-
| 'stripe_balance'
|
|
1665
1550
|
| 'swish'
|
|
1666
1551
|
| 'twint'
|
|
1667
1552
|
| 'us_bank_account'
|
|
@@ -1674,11 +1559,6 @@ declare module 'stripe' {
|
|
|
1674
1559
|
*/
|
|
1675
1560
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1676
1561
|
|
|
1677
|
-
/**
|
|
1678
|
-
* Account number of the bank account.
|
|
1679
|
-
*/
|
|
1680
|
-
account_number?: string | null;
|
|
1681
|
-
|
|
1682
1562
|
/**
|
|
1683
1563
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1684
1564
|
*/
|