stripe 18.0.0 → 18.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1155 -242
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +91 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceSettings.js +10 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +12 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +102 -18
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +79 -0
- package/esm/apiVersion.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceSettings.js +7 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +9 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +79 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +243 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +85 -0
- package/types/BalanceSettingsResource.d.ts +108 -0
- package/types/Billing/CreditBalanceSummary.d.ts +5 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +5 -0
- package/types/Billing/CreditGrantsResource.d.ts +11 -1
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +5 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +166 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +312 -3
- package/types/Checkout/SessionsResource.d.ts +244 -1
- package/types/ConfirmationTokens.d.ts +151 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +9 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +5 -0
- package/types/CustomerSessionsResource.d.ts +6 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Errors.d.ts +69 -2
- package/types/EventTypes.d.ts +596 -0
- package/types/Events.d.ts +96 -1
- package/types/ExternalAccountsResource.d.ts +219 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +31 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +10 -0
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/InvoicePayments.d.ts +5 -0
- package/types/Invoices.d.ts +141 -3
- package/types/InvoicesResource.d.ts +1545 -6
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1189 -0
- package/types/OrdersResource.d.ts +2981 -0
- package/types/PaymentAttemptRecords.d.ts +2112 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +679 -2
- package/types/PaymentIntentsResource.d.ts +8437 -3941
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +120 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2105 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Payouts.d.ts +5 -0
- package/types/PayoutsResource.d.ts +5 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1685 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
- package/types/Quotes.d.ts +601 -1
- package/types/QuotesResource.d.ts +2565 -218
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +50 -1
- package/types/SetupIntents.d.ts +121 -2
- package/types/SetupIntentsResource.d.ts +730 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +23 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1237 -9
- package/types/Subscriptions.d.ts +94 -1
- package/types/SubscriptionsResource.d.ts +384 -8
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +300 -0
- package/types/Terminal/ReadersResource.d.ts +220 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +171 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Core/AccountLinks.d.ts +101 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3760 -0
- package/types/V2/Core/Accounts.d.ts +8057 -0
- package/types/V2/Core/AccountsResource.d.ts +10184 -0
- package/types/V2/Core/Persons.d.ts +1857 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +155 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +65 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +687 -1
- package/types/V2/FinancialAddressCreditSimulations.d.ts +22 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +27 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +105 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +540 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +287 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +201 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +141 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +93 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +273 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +92 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +246 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +146 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +82 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +280 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +219 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +151 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +166 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +72 -2
- package/types/index.d.ts +135 -5
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/InvoicePaymentsResource.d.ts +0 -74
|
@@ -53,6 +53,8 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
application_fee_amount: number | null;
|
|
55
55
|
|
|
56
|
+
async_workflows?: PaymentIntent.AsyncWorkflows;
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
58
60
|
*/
|
|
@@ -106,6 +108,15 @@ declare module 'stripe' {
|
|
|
106
108
|
*/
|
|
107
109
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
108
110
|
|
|
111
|
+
/**
|
|
112
|
+
* ID of the Account this PaymentIntent belongs to, if one exists.
|
|
113
|
+
*
|
|
114
|
+
* Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
115
|
+
*
|
|
116
|
+
* If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
|
117
|
+
*/
|
|
118
|
+
customer_account?: string | null;
|
|
119
|
+
|
|
109
120
|
/**
|
|
110
121
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
111
122
|
*/
|
|
@@ -141,6 +152,8 @@ declare module 'stripe' {
|
|
|
141
152
|
*/
|
|
142
153
|
on_behalf_of: string | Stripe.Account | null;
|
|
143
154
|
|
|
155
|
+
payment_details?: PaymentIntent.PaymentDetails;
|
|
156
|
+
|
|
144
157
|
/**
|
|
145
158
|
* ID of the payment method used in this PaymentIntent.
|
|
146
159
|
*/
|
|
@@ -178,6 +191,11 @@ declare module 'stripe' {
|
|
|
178
191
|
*/
|
|
179
192
|
review: string | Stripe.Review | null;
|
|
180
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
196
|
+
*/
|
|
197
|
+
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
198
|
+
|
|
181
199
|
/**
|
|
182
200
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
183
201
|
*
|
|
@@ -245,6 +263,25 @@ declare module 'stripe' {
|
|
|
245
263
|
}
|
|
246
264
|
}
|
|
247
265
|
|
|
266
|
+
interface AsyncWorkflows {
|
|
267
|
+
inputs?: AsyncWorkflows.Inputs;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
namespace AsyncWorkflows {
|
|
271
|
+
interface Inputs {
|
|
272
|
+
tax?: Inputs.Tax;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
namespace Inputs {
|
|
276
|
+
interface Tax {
|
|
277
|
+
/**
|
|
278
|
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
279
|
+
*/
|
|
280
|
+
calculation: string;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
248
285
|
interface AutomaticPaymentMethods {
|
|
249
286
|
/**
|
|
250
287
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
@@ -440,12 +477,16 @@ declare module 'stripe' {
|
|
|
440
477
|
| 'email_invalid'
|
|
441
478
|
| 'expired_card'
|
|
442
479
|
| 'financial_connections_account_inactive'
|
|
480
|
+
| 'financial_connections_institution_unavailable'
|
|
443
481
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
444
482
|
| 'forwarding_api_inactive'
|
|
445
483
|
| 'forwarding_api_invalid_parameter'
|
|
446
484
|
| 'forwarding_api_retryable_upstream_error'
|
|
447
485
|
| 'forwarding_api_upstream_connection_error'
|
|
448
486
|
| 'forwarding_api_upstream_connection_timeout'
|
|
487
|
+
| 'gift_card_balance_insufficient'
|
|
488
|
+
| 'gift_card_code_exists'
|
|
489
|
+
| 'gift_card_inactive'
|
|
449
490
|
| 'idempotency_key_in_use'
|
|
450
491
|
| 'incorrect_address'
|
|
451
492
|
| 'incorrect_cvc'
|
|
@@ -535,6 +576,7 @@ declare module 'stripe' {
|
|
|
535
576
|
| 'return_intent_already_processed'
|
|
536
577
|
| 'routing_number_invalid'
|
|
537
578
|
| 'secret_key_required'
|
|
579
|
+
| 'sensitive_data_access_expired'
|
|
538
580
|
| 'sepa_unsupported_account'
|
|
539
581
|
| 'setup_attempt_failed'
|
|
540
582
|
| 'setup_intent_authentication_failure'
|
|
@@ -553,6 +595,7 @@ declare module 'stripe' {
|
|
|
553
595
|
| 'taxes_calculation_failed'
|
|
554
596
|
| 'terminal_location_country_unsupported'
|
|
555
597
|
| 'terminal_reader_busy'
|
|
598
|
+
| 'terminal_reader_collected_data_invalid'
|
|
556
599
|
| 'terminal_reader_hardware_fault'
|
|
557
600
|
| 'terminal_reader_invalid_location_for_activation'
|
|
558
601
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -565,7 +608,9 @@ declare module 'stripe' {
|
|
|
565
608
|
| 'token_in_use'
|
|
566
609
|
| 'transfer_source_balance_parameters_mismatch'
|
|
567
610
|
| 'transfers_not_allowed'
|
|
568
|
-
| 'url_invalid'
|
|
611
|
+
| 'url_invalid'
|
|
612
|
+
| 'v2_account_disconnection_unsupported'
|
|
613
|
+
| 'v2_account_missing_configuration';
|
|
569
614
|
|
|
570
615
|
type Type =
|
|
571
616
|
| 'api_error'
|
|
@@ -1329,6 +1374,289 @@ declare module 'stripe' {
|
|
|
1329
1374
|
}
|
|
1330
1375
|
}
|
|
1331
1376
|
|
|
1377
|
+
interface PaymentDetails {
|
|
1378
|
+
car_rental?: PaymentDetails.CarRental;
|
|
1379
|
+
|
|
1380
|
+
event_details?: PaymentDetails.EventDetails;
|
|
1381
|
+
|
|
1382
|
+
subscription?: PaymentDetails.Subscription;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
namespace PaymentDetails {
|
|
1386
|
+
interface CarRental {
|
|
1387
|
+
affiliate?: CarRental.Affiliate;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* The booking number associated with the car rental.
|
|
1391
|
+
*/
|
|
1392
|
+
booking_number: string;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Class code of the car.
|
|
1396
|
+
*/
|
|
1397
|
+
car_class_code?: string;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Make of the car.
|
|
1401
|
+
*/
|
|
1402
|
+
car_make?: string;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Model of the car.
|
|
1406
|
+
*/
|
|
1407
|
+
car_model?: string;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* The name of the rental car company.
|
|
1411
|
+
*/
|
|
1412
|
+
company?: string;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* The customer service phone number of the car rental company.
|
|
1416
|
+
*/
|
|
1417
|
+
customer_service_phone_number?: string;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Number of days the car is being rented.
|
|
1421
|
+
*/
|
|
1422
|
+
days_rented: number;
|
|
1423
|
+
|
|
1424
|
+
delivery?: CarRental.Delivery;
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* The details of the drivers associated with the trip.
|
|
1428
|
+
*/
|
|
1429
|
+
drivers?: Array<CarRental.Driver>;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* List of additional charges being billed.
|
|
1433
|
+
*/
|
|
1434
|
+
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Indicates if the customer did not keep nor cancel their booking.
|
|
1438
|
+
*/
|
|
1439
|
+
no_show?: boolean;
|
|
1440
|
+
|
|
1441
|
+
pickup_address?: Stripe.Address;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1445
|
+
*/
|
|
1446
|
+
pickup_at: number;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Rental rate.
|
|
1450
|
+
*/
|
|
1451
|
+
rate_amount?: number;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1455
|
+
*/
|
|
1456
|
+
rate_interval?: CarRental.RateInterval;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* The full name of the person or entity renting the car.
|
|
1460
|
+
*/
|
|
1461
|
+
renter_name?: string;
|
|
1462
|
+
|
|
1463
|
+
return_address?: Stripe.Address;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Car return time. Measured in seconds since the Unix epoch.
|
|
1467
|
+
*/
|
|
1468
|
+
return_at: number;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1472
|
+
*/
|
|
1473
|
+
tax_exempt?: boolean;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
namespace CarRental {
|
|
1477
|
+
interface Affiliate {
|
|
1478
|
+
/**
|
|
1479
|
+
* The name of the affiliate that originated the purchase.
|
|
1480
|
+
*/
|
|
1481
|
+
name?: string;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
interface Delivery {
|
|
1485
|
+
/**
|
|
1486
|
+
* The delivery method for the payment
|
|
1487
|
+
*/
|
|
1488
|
+
mode?: Delivery.Mode;
|
|
1489
|
+
|
|
1490
|
+
recipient?: Delivery.Recipient;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
namespace Delivery {
|
|
1494
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1495
|
+
|
|
1496
|
+
interface Recipient {
|
|
1497
|
+
/**
|
|
1498
|
+
* The email of the recipient the ticket is delivered to.
|
|
1499
|
+
*/
|
|
1500
|
+
email?: string;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* The name of the recipient the ticket is delivered to.
|
|
1504
|
+
*/
|
|
1505
|
+
name?: string;
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1509
|
+
*/
|
|
1510
|
+
phone?: string;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
interface Driver {
|
|
1515
|
+
/**
|
|
1516
|
+
* Full name of the driver on the reservation.
|
|
1517
|
+
*/
|
|
1518
|
+
name?: string;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
type ExtraCharge =
|
|
1522
|
+
| 'extra_mileage'
|
|
1523
|
+
| 'gas'
|
|
1524
|
+
| 'late_return'
|
|
1525
|
+
| 'one_way_service'
|
|
1526
|
+
| 'parking_violation';
|
|
1527
|
+
|
|
1528
|
+
type RateInterval = 'day' | 'month' | 'week';
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
interface EventDetails {
|
|
1532
|
+
/**
|
|
1533
|
+
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1534
|
+
*/
|
|
1535
|
+
access_controlled_venue?: boolean;
|
|
1536
|
+
|
|
1537
|
+
address?: Stripe.Address;
|
|
1538
|
+
|
|
1539
|
+
affiliate?: EventDetails.Affiliate;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* The name of the company
|
|
1543
|
+
*/
|
|
1544
|
+
company?: string;
|
|
1545
|
+
|
|
1546
|
+
delivery?: EventDetails.Delivery;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Event end time. Measured in seconds since the Unix epoch.
|
|
1550
|
+
*/
|
|
1551
|
+
ends_at?: number;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Type of the event entertainment (concert, sports event etc)
|
|
1555
|
+
*/
|
|
1556
|
+
genre?: string;
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* The name of the event.
|
|
1560
|
+
*/
|
|
1561
|
+
name?: string;
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* Event start time. Measured in seconds since the Unix epoch.
|
|
1565
|
+
*/
|
|
1566
|
+
starts_at?: number;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
namespace EventDetails {
|
|
1570
|
+
interface Affiliate {
|
|
1571
|
+
/**
|
|
1572
|
+
* The name of the affiliate that originated the purchase.
|
|
1573
|
+
*/
|
|
1574
|
+
name?: string;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
interface Delivery {
|
|
1578
|
+
/**
|
|
1579
|
+
* The delivery method for the payment
|
|
1580
|
+
*/
|
|
1581
|
+
mode?: Delivery.Mode;
|
|
1582
|
+
|
|
1583
|
+
recipient?: Delivery.Recipient;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
namespace Delivery {
|
|
1587
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1588
|
+
|
|
1589
|
+
interface Recipient {
|
|
1590
|
+
/**
|
|
1591
|
+
* The email of the recipient the ticket is delivered to.
|
|
1592
|
+
*/
|
|
1593
|
+
email?: string;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* The name of the recipient the ticket is delivered to.
|
|
1597
|
+
*/
|
|
1598
|
+
name?: string;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1602
|
+
*/
|
|
1603
|
+
phone?: string;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
interface Subscription {
|
|
1609
|
+
affiliate?: Subscription.Affiliate;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Info whether the subscription will be auto renewed upon expiry.
|
|
1613
|
+
*/
|
|
1614
|
+
auto_renewal?: boolean;
|
|
1615
|
+
|
|
1616
|
+
billing_interval?: Subscription.BillingInterval;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1620
|
+
*/
|
|
1621
|
+
ends_at?: number;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1625
|
+
*/
|
|
1626
|
+
name?: string;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1630
|
+
*/
|
|
1631
|
+
starts_at?: number;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
namespace Subscription {
|
|
1635
|
+
interface Affiliate {
|
|
1636
|
+
/**
|
|
1637
|
+
* The name of the affiliate that originated the purchase.
|
|
1638
|
+
*/
|
|
1639
|
+
name?: string;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
interface BillingInterval {
|
|
1643
|
+
/**
|
|
1644
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1645
|
+
*/
|
|
1646
|
+
count?: number;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1650
|
+
*/
|
|
1651
|
+
interval?: BillingInterval.Interval;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
namespace BillingInterval {
|
|
1655
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1332
1660
|
interface PaymentMethodConfigurationDetails {
|
|
1333
1661
|
/**
|
|
1334
1662
|
* ID of the payment method configuration used.
|
|
@@ -1360,6 +1688,8 @@ declare module 'stripe' {
|
|
|
1360
1688
|
|
|
1361
1689
|
bancontact?: PaymentMethodOptions.Bancontact;
|
|
1362
1690
|
|
|
1691
|
+
billie?: PaymentMethodOptions.Billie;
|
|
1692
|
+
|
|
1363
1693
|
blik?: PaymentMethodOptions.Blik;
|
|
1364
1694
|
|
|
1365
1695
|
boleto?: PaymentMethodOptions.Boleto;
|
|
@@ -1378,8 +1708,12 @@ declare module 'stripe' {
|
|
|
1378
1708
|
|
|
1379
1709
|
giropay?: PaymentMethodOptions.Giropay;
|
|
1380
1710
|
|
|
1711
|
+
gopay?: PaymentMethodOptions.Gopay;
|
|
1712
|
+
|
|
1381
1713
|
grabpay?: PaymentMethodOptions.Grabpay;
|
|
1382
1714
|
|
|
1715
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
|
|
1716
|
+
|
|
1383
1717
|
ideal?: PaymentMethodOptions.Ideal;
|
|
1384
1718
|
|
|
1385
1719
|
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
@@ -1394,6 +1728,8 @@ declare module 'stripe' {
|
|
|
1394
1728
|
|
|
1395
1729
|
link?: PaymentMethodOptions.Link;
|
|
1396
1730
|
|
|
1731
|
+
mb_way?: PaymentMethodOptions.MbWay;
|
|
1732
|
+
|
|
1397
1733
|
mobilepay?: PaymentMethodOptions.Mobilepay;
|
|
1398
1734
|
|
|
1399
1735
|
multibanco?: PaymentMethodOptions.Multibanco;
|
|
@@ -1414,18 +1750,28 @@ declare module 'stripe' {
|
|
|
1414
1750
|
|
|
1415
1751
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1416
1752
|
|
|
1753
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1754
|
+
|
|
1417
1755
|
pix?: PaymentMethodOptions.Pix;
|
|
1418
1756
|
|
|
1419
1757
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1420
1758
|
|
|
1759
|
+
qris?: PaymentMethodOptions.Qris;
|
|
1760
|
+
|
|
1761
|
+
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1762
|
+
|
|
1421
1763
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1422
1764
|
|
|
1423
1765
|
samsung_pay?: PaymentMethodOptions.SamsungPay;
|
|
1424
1766
|
|
|
1425
1767
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
1426
1768
|
|
|
1769
|
+
shopeepay?: PaymentMethodOptions.Shopeepay;
|
|
1770
|
+
|
|
1427
1771
|
sofort?: PaymentMethodOptions.Sofort;
|
|
1428
1772
|
|
|
1773
|
+
stripe_balance?: PaymentMethodOptions.StripeBalance;
|
|
1774
|
+
|
|
1429
1775
|
swish?: PaymentMethodOptions.Swish;
|
|
1430
1776
|
|
|
1431
1777
|
twint?: PaymentMethodOptions.Twint;
|
|
@@ -1667,6 +2013,8 @@ declare module 'stripe' {
|
|
|
1667
2013
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1668
2014
|
}
|
|
1669
2015
|
|
|
2016
|
+
interface Billie {}
|
|
2017
|
+
|
|
1670
2018
|
interface Blik {
|
|
1671
2019
|
/**
|
|
1672
2020
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1725,6 +2073,11 @@ declare module 'stripe' {
|
|
|
1725
2073
|
*/
|
|
1726
2074
|
network: Card.Network | null;
|
|
1727
2075
|
|
|
2076
|
+
/**
|
|
2077
|
+
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
2078
|
+
*/
|
|
2079
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
2080
|
+
|
|
1728
2081
|
/**
|
|
1729
2082
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1730
2083
|
*/
|
|
@@ -1745,6 +2098,11 @@ declare module 'stripe' {
|
|
|
1745
2098
|
*/
|
|
1746
2099
|
request_overcapture?: Card.RequestOvercapture;
|
|
1747
2100
|
|
|
2101
|
+
/**
|
|
2102
|
+
* Request partial authorization on this PaymentIntent.
|
|
2103
|
+
*/
|
|
2104
|
+
request_partial_authorization?: Card.RequestPartialAuthorization;
|
|
2105
|
+
|
|
1748
2106
|
/**
|
|
1749
2107
|
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1750
2108
|
*/
|
|
@@ -1775,6 +2133,8 @@ declare module 'stripe' {
|
|
|
1775
2133
|
* Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1776
2134
|
*/
|
|
1777
2135
|
statement_descriptor_suffix_kanji?: string;
|
|
2136
|
+
|
|
2137
|
+
statement_details?: Card.StatementDetails;
|
|
1778
2138
|
}
|
|
1779
2139
|
|
|
1780
2140
|
namespace Card {
|
|
@@ -1901,6 +2261,8 @@ declare module 'stripe' {
|
|
|
1901
2261
|
| 'unknown'
|
|
1902
2262
|
| 'visa';
|
|
1903
2263
|
|
|
2264
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2265
|
+
|
|
1904
2266
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1905
2267
|
|
|
1906
2268
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1909,9 +2271,54 @@ declare module 'stripe' {
|
|
|
1909
2271
|
|
|
1910
2272
|
type RequestOvercapture = 'if_available' | 'never';
|
|
1911
2273
|
|
|
2274
|
+
type RequestPartialAuthorization = 'if_available' | 'never';
|
|
2275
|
+
|
|
1912
2276
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1913
2277
|
|
|
1914
2278
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2279
|
+
|
|
2280
|
+
interface StatementDetails {
|
|
2281
|
+
address?: StatementDetails.Address;
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* Phone number
|
|
2285
|
+
*/
|
|
2286
|
+
phone?: string;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
namespace StatementDetails {
|
|
2290
|
+
interface Address {
|
|
2291
|
+
/**
|
|
2292
|
+
* City, district, suburb, town, or village.
|
|
2293
|
+
*/
|
|
2294
|
+
city?: string;
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2298
|
+
*/
|
|
2299
|
+
country?: string;
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2303
|
+
*/
|
|
2304
|
+
line1?: string;
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2308
|
+
*/
|
|
2309
|
+
line2?: string;
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* ZIP or postal code.
|
|
2313
|
+
*/
|
|
2314
|
+
postal_code?: string;
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* State, county, province, or region.
|
|
2318
|
+
*/
|
|
2319
|
+
state?: string;
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
1915
2322
|
}
|
|
1916
2323
|
|
|
1917
2324
|
interface CardPresent {
|
|
@@ -2069,6 +2476,19 @@ declare module 'stripe' {
|
|
|
2069
2476
|
setup_future_usage?: 'none';
|
|
2070
2477
|
}
|
|
2071
2478
|
|
|
2479
|
+
interface Gopay {
|
|
2480
|
+
/**
|
|
2481
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2482
|
+
*
|
|
2483
|
+
* 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.
|
|
2484
|
+
*
|
|
2485
|
+
* 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.
|
|
2486
|
+
*
|
|
2487
|
+
* 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).
|
|
2488
|
+
*/
|
|
2489
|
+
setup_future_usage?: 'none';
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2072
2492
|
interface Grabpay {
|
|
2073
2493
|
/**
|
|
2074
2494
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2082,6 +2502,29 @@ declare module 'stripe' {
|
|
|
2082
2502
|
setup_future_usage?: 'none';
|
|
2083
2503
|
}
|
|
2084
2504
|
|
|
2505
|
+
interface IdBankTransfer {
|
|
2506
|
+
/**
|
|
2507
|
+
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2508
|
+
*/
|
|
2509
|
+
expires_after?: number | null;
|
|
2510
|
+
|
|
2511
|
+
/**
|
|
2512
|
+
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
2513
|
+
*/
|
|
2514
|
+
expires_at: number | null;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2518
|
+
*
|
|
2519
|
+
* 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.
|
|
2520
|
+
*
|
|
2521
|
+
* 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.
|
|
2522
|
+
*
|
|
2523
|
+
* 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).
|
|
2524
|
+
*/
|
|
2525
|
+
setup_future_usage?: 'none';
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2085
2528
|
interface Ideal {
|
|
2086
2529
|
/**
|
|
2087
2530
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2229,6 +2672,19 @@ declare module 'stripe' {
|
|
|
2229
2672
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2230
2673
|
}
|
|
2231
2674
|
|
|
2675
|
+
interface MbWay {
|
|
2676
|
+
/**
|
|
2677
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2678
|
+
*
|
|
2679
|
+
* 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.
|
|
2680
|
+
*
|
|
2681
|
+
* 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.
|
|
2682
|
+
*
|
|
2683
|
+
* 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).
|
|
2684
|
+
*/
|
|
2685
|
+
setup_future_usage?: 'none';
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2232
2688
|
interface Mobilepay {
|
|
2233
2689
|
/**
|
|
2234
2690
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2363,6 +2819,11 @@ declare module 'stripe' {
|
|
|
2363
2819
|
*/
|
|
2364
2820
|
capture_method?: 'manual';
|
|
2365
2821
|
|
|
2822
|
+
/**
|
|
2823
|
+
* The line items purchased by the customer.
|
|
2824
|
+
*/
|
|
2825
|
+
line_items?: Array<Paypal.LineItem>;
|
|
2826
|
+
|
|
2366
2827
|
/**
|
|
2367
2828
|
* Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2368
2829
|
*/
|
|
@@ -2373,6 +2834,11 @@ declare module 'stripe' {
|
|
|
2373
2834
|
*/
|
|
2374
2835
|
reference: string | null;
|
|
2375
2836
|
|
|
2837
|
+
/**
|
|
2838
|
+
* 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.
|
|
2839
|
+
*/
|
|
2840
|
+
reference_id?: string | null;
|
|
2841
|
+
|
|
2376
2842
|
/**
|
|
2377
2843
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2378
2844
|
*
|
|
@@ -2383,9 +2849,151 @@ declare module 'stripe' {
|
|
|
2383
2849
|
* 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).
|
|
2384
2850
|
*/
|
|
2385
2851
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* 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.
|
|
2855
|
+
*/
|
|
2856
|
+
subsellers?: Array<string>;
|
|
2386
2857
|
}
|
|
2387
2858
|
|
|
2388
2859
|
namespace Paypal {
|
|
2860
|
+
interface LineItem {
|
|
2861
|
+
/**
|
|
2862
|
+
* Type of the line item.
|
|
2863
|
+
*/
|
|
2864
|
+
category?: LineItem.Category;
|
|
2865
|
+
|
|
2866
|
+
/**
|
|
2867
|
+
* Description of the line item.
|
|
2868
|
+
*/
|
|
2869
|
+
description?: string;
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* Descriptive name of the line item.
|
|
2873
|
+
*/
|
|
2874
|
+
name: string;
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* Quantity of the line item. Cannot be a negative number.
|
|
2878
|
+
*/
|
|
2879
|
+
quantity: number;
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Client facing stock keeping unit, article number or similar.
|
|
2883
|
+
*/
|
|
2884
|
+
sku?: string;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
2888
|
+
*/
|
|
2889
|
+
sold_by?: string;
|
|
2890
|
+
|
|
2891
|
+
tax?: LineItem.Tax;
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2895
|
+
*/
|
|
2896
|
+
unit_amount: number;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
namespace LineItem {
|
|
2900
|
+
type Category = 'digital_goods' | 'donation' | 'physical_goods';
|
|
2901
|
+
|
|
2902
|
+
interface Tax {
|
|
2903
|
+
/**
|
|
2904
|
+
* The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2905
|
+
*/
|
|
2906
|
+
amount: number;
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* The tax behavior for the line item.
|
|
2910
|
+
*/
|
|
2911
|
+
behavior: Tax.Behavior;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
namespace Tax {
|
|
2915
|
+
type Behavior = 'exclusive' | 'inclusive';
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
interface Payto {
|
|
2923
|
+
mandate_options?: Payto.MandateOptions;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2927
|
+
*
|
|
2928
|
+
* 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.
|
|
2929
|
+
*
|
|
2930
|
+
* 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.
|
|
2931
|
+
*
|
|
2932
|
+
* 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).
|
|
2933
|
+
*/
|
|
2934
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
namespace Payto {
|
|
2938
|
+
interface MandateOptions {
|
|
2939
|
+
/**
|
|
2940
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2941
|
+
*/
|
|
2942
|
+
amount: number | null;
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* 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.
|
|
2946
|
+
*/
|
|
2947
|
+
amount_type: MandateOptions.AmountType | null;
|
|
2948
|
+
|
|
2949
|
+
/**
|
|
2950
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2951
|
+
*/
|
|
2952
|
+
end_date: string | null;
|
|
2953
|
+
|
|
2954
|
+
/**
|
|
2955
|
+
* The periodicity at which payments will be collected.
|
|
2956
|
+
*/
|
|
2957
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* 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.
|
|
2961
|
+
*/
|
|
2962
|
+
payments_per_period: number | null;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2966
|
+
*/
|
|
2967
|
+
purpose: MandateOptions.Purpose | null;
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
namespace MandateOptions {
|
|
2971
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2972
|
+
|
|
2973
|
+
type PaymentSchedule =
|
|
2974
|
+
| 'adhoc'
|
|
2975
|
+
| 'annual'
|
|
2976
|
+
| 'daily'
|
|
2977
|
+
| 'fortnightly'
|
|
2978
|
+
| 'monthly'
|
|
2979
|
+
| 'quarterly'
|
|
2980
|
+
| 'semi_annual'
|
|
2981
|
+
| 'weekly';
|
|
2982
|
+
|
|
2983
|
+
type Purpose =
|
|
2984
|
+
| 'dependant_support'
|
|
2985
|
+
| 'government'
|
|
2986
|
+
| 'loan'
|
|
2987
|
+
| 'mortgage'
|
|
2988
|
+
| 'other'
|
|
2989
|
+
| 'pension'
|
|
2990
|
+
| 'personal'
|
|
2991
|
+
| 'retail'
|
|
2992
|
+
| 'salary'
|
|
2993
|
+
| 'tax'
|
|
2994
|
+
| 'utility';
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2389
2997
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2390
2998
|
}
|
|
2391
2999
|
|
|
@@ -2425,6 +3033,21 @@ declare module 'stripe' {
|
|
|
2425
3033
|
setup_future_usage?: 'none';
|
|
2426
3034
|
}
|
|
2427
3035
|
|
|
3036
|
+
interface Qris {
|
|
3037
|
+
/**
|
|
3038
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3039
|
+
*
|
|
3040
|
+
* 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.
|
|
3041
|
+
*
|
|
3042
|
+
* 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.
|
|
3043
|
+
*
|
|
3044
|
+
* 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).
|
|
3045
|
+
*/
|
|
3046
|
+
setup_future_usage?: 'none';
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
interface Rechnung {}
|
|
3050
|
+
|
|
2428
3051
|
interface RevolutPay {
|
|
2429
3052
|
/**
|
|
2430
3053
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2485,6 +3108,19 @@ declare module 'stripe' {
|
|
|
2485
3108
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2486
3109
|
}
|
|
2487
3110
|
|
|
3111
|
+
interface Shopeepay {
|
|
3112
|
+
/**
|
|
3113
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3114
|
+
*
|
|
3115
|
+
* 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.
|
|
3116
|
+
*
|
|
3117
|
+
* 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.
|
|
3118
|
+
*
|
|
3119
|
+
* 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).
|
|
3120
|
+
*/
|
|
3121
|
+
setup_future_usage?: 'none';
|
|
3122
|
+
}
|
|
3123
|
+
|
|
2488
3124
|
interface Sofort {
|
|
2489
3125
|
/**
|
|
2490
3126
|
* Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
@@ -2516,6 +3152,23 @@ declare module 'stripe' {
|
|
|
2516
3152
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2517
3153
|
}
|
|
2518
3154
|
|
|
3155
|
+
interface StripeBalance {
|
|
3156
|
+
/**
|
|
3157
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3158
|
+
*
|
|
3159
|
+
* 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.
|
|
3160
|
+
*
|
|
3161
|
+
* 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.
|
|
3162
|
+
*
|
|
3163
|
+
* 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).
|
|
3164
|
+
*/
|
|
3165
|
+
setup_future_usage?: StripeBalance.SetupFutureUsage;
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
namespace StripeBalance {
|
|
3169
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
3170
|
+
}
|
|
3171
|
+
|
|
2519
3172
|
interface Swish {
|
|
2520
3173
|
/**
|
|
2521
3174
|
* A reference for this payment to be displayed in the Swish app.
|
|
@@ -2583,6 +3236,8 @@ declare module 'stripe' {
|
|
|
2583
3236
|
interface FinancialConnections {
|
|
2584
3237
|
filters?: FinancialConnections.Filters;
|
|
2585
3238
|
|
|
3239
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3240
|
+
|
|
2586
3241
|
/**
|
|
2587
3242
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2588
3243
|
*/
|
|
@@ -2605,19 +3260,39 @@ declare module 'stripe' {
|
|
|
2605
3260
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2606
3261
|
*/
|
|
2607
3262
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* The institution to use to filter for possible accounts to link.
|
|
3266
|
+
*/
|
|
3267
|
+
institution?: string;
|
|
2608
3268
|
}
|
|
2609
3269
|
|
|
2610
3270
|
namespace Filters {
|
|
2611
3271
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2612
3272
|
}
|
|
2613
3273
|
|
|
3274
|
+
interface ManualEntry {
|
|
3275
|
+
/**
|
|
3276
|
+
* Settings for configuring manual entry of account details.
|
|
3277
|
+
*/
|
|
3278
|
+
mode?: ManualEntry.Mode;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
namespace ManualEntry {
|
|
3282
|
+
type Mode = 'automatic' | 'custom';
|
|
3283
|
+
}
|
|
3284
|
+
|
|
2614
3285
|
type Permission =
|
|
2615
3286
|
| 'balances'
|
|
2616
3287
|
| 'ownership'
|
|
2617
3288
|
| 'payment_method'
|
|
2618
3289
|
| 'transactions';
|
|
2619
3290
|
|
|
2620
|
-
type Prefetch =
|
|
3291
|
+
type Prefetch =
|
|
3292
|
+
| 'balances'
|
|
3293
|
+
| 'inferred_balances'
|
|
3294
|
+
| 'ownership'
|
|
3295
|
+
| 'transactions';
|
|
2621
3296
|
}
|
|
2622
3297
|
|
|
2623
3298
|
interface MandateOptions {
|
|
@@ -2716,6 +3391,8 @@ declare module 'stripe' {
|
|
|
2716
3391
|
}
|
|
2717
3392
|
}
|
|
2718
3393
|
|
|
3394
|
+
type SecretKeyConfirmation = 'optional' | 'required';
|
|
3395
|
+
|
|
2719
3396
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2720
3397
|
|
|
2721
3398
|
interface Shipping {
|