@depup/stripe 21.0.0-depup.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 +4529 -0
- package/LICENSE +20 -0
- package/OPENAPI_VERSION +1 -0
- package/README.md +25 -0
- package/VERSION +1 -0
- package/changes.json +5 -0
- package/cjs/Decimal.js +854 -0
- package/cjs/Error.js +284 -0
- package/cjs/RequestSender.js +469 -0
- package/cjs/ResourceNamespace.js +21 -0
- package/cjs/StripeContext.js +56 -0
- package/cjs/StripeEmitter.js +46 -0
- package/cjs/StripeMethod.js +36 -0
- package/cjs/StripeResource.js +188 -0
- package/cjs/V2Coercion.js +109 -0
- package/cjs/Webhooks.js +225 -0
- package/cjs/apiVersion.js +6 -0
- package/cjs/autoPagination.js +294 -0
- package/cjs/crypto/CryptoProvider.js +51 -0
- package/cjs/crypto/NodeCryptoProvider.js +30 -0
- package/cjs/crypto/SubtleCryptoProvider.js +51 -0
- package/cjs/multipart.js +61 -0
- package/cjs/net/FetchHttpClient.js +145 -0
- package/cjs/net/HttpClient.js +53 -0
- package/cjs/net/NodeHttpClient.js +108 -0
- package/cjs/package.json +1 -0
- package/cjs/platform/NodePlatformFunctions.js +98 -0
- package/cjs/platform/PlatformFunctions.js +98 -0
- package/cjs/platform/WebPlatformFunctions.js +38 -0
- package/cjs/resources/AccountLinks.js +9 -0
- package/cjs/resources/AccountSessions.js +9 -0
- package/cjs/resources/Accounts.js +101 -0
- package/cjs/resources/ApplePayDomains.js +22 -0
- package/cjs/resources/ApplicationFees.js +34 -0
- package/cjs/resources/Apps/Secrets.js +19 -0
- package/cjs/resources/Balance.js +9 -0
- package/cjs/resources/BalanceSettings.js +10 -0
- package/cjs/resources/BalanceTransactions.js +17 -0
- package/cjs/resources/Billing/Alerts.js +27 -0
- package/cjs/resources/Billing/CreditBalanceSummary.js +12 -0
- package/cjs/resources/Billing/CreditBalanceTransactions.js +17 -0
- package/cjs/resources/Billing/CreditGrants.js +30 -0
- package/cjs/resources/Billing/MeterEventAdjustments.js +12 -0
- package/cjs/resources/Billing/MeterEvents.js +9 -0
- package/cjs/resources/Billing/Meters.js +29 -0
- package/cjs/resources/BillingPortal/Configurations.js +25 -0
- package/cjs/resources/BillingPortal/Sessions.js +12 -0
- package/cjs/resources/Charges.js +25 -0
- package/cjs/resources/Checkout/Sessions.js +538 -0
- package/cjs/resources/Climate/Orders.js +61 -0
- package/cjs/resources/Climate/Products.js +33 -0
- package/cjs/resources/Climate/Suppliers.js +17 -0
- package/cjs/resources/ConfirmationTokens.js +12 -0
- package/cjs/resources/CountrySpecs.js +17 -0
- package/cjs/resources/Coupons.js +17 -0
- package/cjs/resources/CreditNotes.js +253 -0
- package/cjs/resources/CustomerSessions.js +9 -0
- package/cjs/resources/Customers.js +581 -0
- package/cjs/resources/Disputes.js +19 -0
- package/cjs/resources/Entitlements/ActiveEntitlements.js +17 -0
- package/cjs/resources/Entitlements/Features.js +22 -0
- package/cjs/resources/EphemeralKeys.js +18 -0
- package/cjs/resources/Events.js +14 -0
- package/cjs/resources/ExchangeRates.js +17 -0
- package/cjs/resources/FileLinks.js +16 -0
- package/cjs/resources/Files.js +24 -0
- package/cjs/resources/FinancialConnections/Accounts.js +38 -0
- package/cjs/resources/FinancialConnections/Sessions.js +16 -0
- package/cjs/resources/FinancialConnections/Transactions.js +17 -0
- package/cjs/resources/Forwarding/Requests.js +18 -0
- package/cjs/resources/Identity/VerificationReports.js +17 -0
- package/cjs/resources/Identity/VerificationSessions.js +33 -0
- package/cjs/resources/InvoiceItems.js +131 -0
- package/cjs/resources/InvoicePayments.js +17 -0
- package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
- package/cjs/resources/Invoices.js +776 -0
- package/cjs/resources/Issuing/Authorizations.js +847 -0
- package/cjs/resources/Issuing/Cardholders.js +22 -0
- package/cjs/resources/Issuing/Cards.js +16 -0
- package/cjs/resources/Issuing/Disputes.js +26 -0
- package/cjs/resources/Issuing/PersonalizationDesigns.js +25 -0
- package/cjs/resources/Issuing/PhysicalBundles.js +17 -0
- package/cjs/resources/Issuing/Tokens.js +21 -0
- package/cjs/resources/Issuing/Transactions.js +275 -0
- package/cjs/resources/Mandates.js +9 -0
- package/cjs/resources/OAuth.js +44 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +56 -0
- package/cjs/resources/PaymentLinks.js +420 -0
- package/cjs/resources/PaymentMethodConfigurations.js +25 -0
- package/cjs/resources/PaymentMethodDomains.js +29 -0
- package/cjs/resources/PaymentMethods.js +30 -0
- package/cjs/resources/PaymentRecords.js +37 -0
- package/cjs/resources/Payouts.js +24 -0
- package/cjs/resources/Plans.js +141 -0
- package/cjs/resources/Prices.js +346 -0
- package/cjs/resources/Products.js +72 -0
- package/cjs/resources/PromotionCodes.js +22 -0
- package/cjs/resources/Quotes.js +825 -0
- package/cjs/resources/Radar/EarlyFraudWarnings.js +17 -0
- package/cjs/resources/Radar/PaymentEvaluations.js +12 -0
- package/cjs/resources/Radar/ValueListItems.js +25 -0
- package/cjs/resources/Radar/ValueLists.js +26 -0
- package/cjs/resources/Refunds.js +20 -0
- package/cjs/resources/Reporting/ReportRuns.js +18 -0
- package/cjs/resources/Reporting/ReportTypes.js +17 -0
- package/cjs/resources/Reviews.js +18 -0
- package/cjs/resources/SetupAttempts.js +13 -0
- package/cjs/resources/SetupIntents.js +34 -0
- package/cjs/resources/ShippingRates.js +22 -0
- package/cjs/resources/Sigma/ScheduledQueryRuns.js +17 -0
- package/cjs/resources/Sources.js +20 -0
- package/cjs/resources/SubscriptionItems.js +378 -0
- package/cjs/resources/SubscriptionSchedules.js +107 -0
- package/cjs/resources/Subscriptions.js +888 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Calculations.js +18 -0
- package/cjs/resources/Tax/Registrations.js +22 -0
- package/cjs/resources/Tax/Settings.js +10 -0
- package/cjs/resources/Tax/Transactions.js +25 -0
- package/cjs/resources/TaxCodes.js +14 -0
- package/cjs/resources/TaxIds.js +16 -0
- package/cjs/resources/TaxRates.js +16 -0
- package/cjs/resources/Terminal/Configurations.js +29 -0
- package/cjs/resources/Terminal/ConnectionTokens.js +12 -0
- package/cjs/resources/Terminal/Locations.js +26 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/Readers.js +58 -0
- package/cjs/resources/TestHelpers/ConfirmationTokens.js +12 -0
- package/cjs/resources/TestHelpers/Customers.js +12 -0
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +1293 -0
- package/cjs/resources/TestHelpers/Issuing/Cards.js +28 -0
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +20 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.js +364 -0
- package/cjs/resources/TestHelpers/Refunds.js +12 -0
- package/cjs/resources/TestHelpers/Terminal/Readers.js +20 -0
- package/cjs/resources/TestHelpers/TestClocks.js +29 -0
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +20 -0
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +24 -0
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +24 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.js +12 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.js +12 -0
- package/cjs/resources/Tokens.js +10 -0
- package/cjs/resources/Topups.js +17 -0
- package/cjs/resources/Transfers.js +33 -0
- package/cjs/resources/Treasury/CreditReversals.js +21 -0
- package/cjs/resources/Treasury/DebitReversals.js +21 -0
- package/cjs/resources/Treasury/FinancialAccounts.js +37 -0
- package/cjs/resources/Treasury/InboundTransfers.js +25 -0
- package/cjs/resources/Treasury/OutboundPayments.js +25 -0
- package/cjs/resources/Treasury/OutboundTransfers.js +25 -0
- package/cjs/resources/Treasury/ReceivedCredits.js +17 -0
- package/cjs/resources/Treasury/ReceivedDebits.js +17 -0
- package/cjs/resources/Treasury/TransactionEntries.js +393 -0
- package/cjs/resources/Treasury/Transactions.js +447 -0
- package/cjs/resources/V2/Billing/MeterEventAdjustments.js +12 -0
- package/cjs/resources/V2/Billing/MeterEventSession.js +12 -0
- package/cjs/resources/V2/Billing/MeterEventStream.js +13 -0
- package/cjs/resources/V2/Billing/MeterEvents.js +9 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/AccountTokens.js +35 -0
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +25 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +91 -0
- package/cjs/resources/V2/Core/Accounts.js +177 -0
- package/cjs/resources/V2/Core/EventDestinations.js +41 -0
- package/cjs/resources/V2/Core/Events.js +66 -0
- package/cjs/resources/WebhookEndpoints.js +26 -0
- package/cjs/resources.js +324 -0
- package/cjs/stripe.cjs.node.js +13 -0
- package/cjs/stripe.cjs.worker.js +13 -0
- package/cjs/stripe.core.js +412 -0
- package/cjs/utils.js +477 -0
- package/esm/Decimal.js +850 -0
- package/esm/Error.js +259 -0
- package/esm/RequestSender.js +465 -0
- package/esm/ResourceNamespace.js +17 -0
- package/esm/StripeContext.js +52 -0
- package/esm/StripeEmitter.js +42 -0
- package/esm/StripeMethod.js +32 -0
- package/esm/StripeResource.js +185 -0
- package/esm/V2Coercion.js +104 -0
- package/esm/Webhooks.js +221 -0
- package/esm/apiVersion.js +3 -0
- package/esm/autoPagination.js +290 -0
- package/esm/crypto/CryptoProvider.js +46 -0
- package/esm/crypto/NodeCryptoProvider.js +26 -0
- package/esm/crypto/SubtleCryptoProvider.js +47 -0
- package/esm/multipart.js +57 -0
- package/esm/net/FetchHttpClient.js +140 -0
- package/esm/net/HttpClient.js +48 -0
- package/esm/net/NodeHttpClient.js +103 -0
- package/esm/package.json +1 -0
- package/esm/platform/NodePlatformFunctions.js +94 -0
- package/esm/platform/PlatformFunctions.js +94 -0
- package/esm/platform/WebPlatformFunctions.js +34 -0
- package/esm/resources/AccountLinks.js +6 -0
- package/esm/resources/AccountSessions.js +6 -0
- package/esm/resources/Accounts.js +98 -0
- package/esm/resources/ApplePayDomains.js +19 -0
- package/esm/resources/ApplicationFees.js +31 -0
- package/esm/resources/Apps/Secrets.js +16 -0
- package/esm/resources/Balance.js +6 -0
- package/esm/resources/BalanceSettings.js +7 -0
- package/esm/resources/BalanceTransactions.js +14 -0
- package/esm/resources/Billing/Alerts.js +24 -0
- package/esm/resources/Billing/CreditBalanceSummary.js +9 -0
- package/esm/resources/Billing/CreditBalanceTransactions.js +14 -0
- package/esm/resources/Billing/CreditGrants.js +27 -0
- package/esm/resources/Billing/MeterEventAdjustments.js +9 -0
- package/esm/resources/Billing/MeterEvents.js +6 -0
- package/esm/resources/Billing/Meters.js +26 -0
- package/esm/resources/BillingPortal/Configurations.js +22 -0
- package/esm/resources/BillingPortal/Sessions.js +9 -0
- package/esm/resources/Charges.js +22 -0
- package/esm/resources/Checkout/Sessions.js +535 -0
- package/esm/resources/Climate/Orders.js +58 -0
- package/esm/resources/Climate/Products.js +30 -0
- package/esm/resources/Climate/Suppliers.js +14 -0
- package/esm/resources/ConfirmationTokens.js +9 -0
- package/esm/resources/CountrySpecs.js +14 -0
- package/esm/resources/Coupons.js +14 -0
- package/esm/resources/CreditNotes.js +250 -0
- package/esm/resources/CustomerSessions.js +6 -0
- package/esm/resources/Customers.js +578 -0
- package/esm/resources/Disputes.js +16 -0
- package/esm/resources/Entitlements/ActiveEntitlements.js +14 -0
- package/esm/resources/Entitlements/Features.js +19 -0
- package/esm/resources/EphemeralKeys.js +15 -0
- package/esm/resources/Events.js +11 -0
- package/esm/resources/ExchangeRates.js +14 -0
- package/esm/resources/FileLinks.js +13 -0
- package/esm/resources/Files.js +21 -0
- package/esm/resources/FinancialConnections/Accounts.js +35 -0
- package/esm/resources/FinancialConnections/Sessions.js +13 -0
- package/esm/resources/FinancialConnections/Transactions.js +14 -0
- package/esm/resources/Forwarding/Requests.js +15 -0
- package/esm/resources/Identity/VerificationReports.js +14 -0
- package/esm/resources/Identity/VerificationSessions.js +30 -0
- package/esm/resources/InvoiceItems.js +128 -0
- package/esm/resources/InvoicePayments.js +14 -0
- package/esm/resources/InvoiceRenderingTemplates.js +22 -0
- package/esm/resources/Invoices.js +773 -0
- package/esm/resources/Issuing/Authorizations.js +844 -0
- package/esm/resources/Issuing/Cardholders.js +19 -0
- package/esm/resources/Issuing/Cards.js +13 -0
- package/esm/resources/Issuing/Disputes.js +23 -0
- package/esm/resources/Issuing/PersonalizationDesigns.js +22 -0
- package/esm/resources/Issuing/PhysicalBundles.js +14 -0
- package/esm/resources/Issuing/Tokens.js +18 -0
- package/esm/resources/Issuing/Transactions.js +272 -0
- package/esm/resources/Mandates.js +6 -0
- package/esm/resources/OAuth.js +42 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +53 -0
- package/esm/resources/PaymentLinks.js +417 -0
- package/esm/resources/PaymentMethodConfigurations.js +22 -0
- package/esm/resources/PaymentMethodDomains.js +26 -0
- package/esm/resources/PaymentMethods.js +27 -0
- package/esm/resources/PaymentRecords.js +34 -0
- package/esm/resources/Payouts.js +21 -0
- package/esm/resources/Plans.js +138 -0
- package/esm/resources/Prices.js +343 -0
- package/esm/resources/Products.js +69 -0
- package/esm/resources/PromotionCodes.js +19 -0
- package/esm/resources/Quotes.js +822 -0
- package/esm/resources/Radar/EarlyFraudWarnings.js +14 -0
- package/esm/resources/Radar/PaymentEvaluations.js +9 -0
- package/esm/resources/Radar/ValueListItems.js +22 -0
- package/esm/resources/Radar/ValueLists.js +23 -0
- package/esm/resources/Refunds.js +17 -0
- package/esm/resources/Reporting/ReportRuns.js +15 -0
- package/esm/resources/Reporting/ReportTypes.js +14 -0
- package/esm/resources/Reviews.js +15 -0
- package/esm/resources/SetupAttempts.js +10 -0
- package/esm/resources/SetupIntents.js +31 -0
- package/esm/resources/ShippingRates.js +19 -0
- package/esm/resources/Sigma/ScheduledQueryRuns.js +14 -0
- package/esm/resources/Sources.js +17 -0
- package/esm/resources/SubscriptionItems.js +375 -0
- package/esm/resources/SubscriptionSchedules.js +104 -0
- package/esm/resources/Subscriptions.js +885 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Calculations.js +15 -0
- package/esm/resources/Tax/Registrations.js +19 -0
- package/esm/resources/Tax/Settings.js +7 -0
- package/esm/resources/Tax/Transactions.js +22 -0
- package/esm/resources/TaxCodes.js +11 -0
- package/esm/resources/TaxIds.js +13 -0
- package/esm/resources/TaxRates.js +13 -0
- package/esm/resources/Terminal/Configurations.js +26 -0
- package/esm/resources/Terminal/ConnectionTokens.js +9 -0
- package/esm/resources/Terminal/Locations.js +23 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/Readers.js +55 -0
- package/esm/resources/TestHelpers/ConfirmationTokens.js +9 -0
- package/esm/resources/TestHelpers/Customers.js +9 -0
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +1290 -0
- package/esm/resources/TestHelpers/Issuing/Cards.js +25 -0
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +17 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.js +361 -0
- package/esm/resources/TestHelpers/Refunds.js +9 -0
- package/esm/resources/TestHelpers/Terminal/Readers.js +17 -0
- package/esm/resources/TestHelpers/TestClocks.js +26 -0
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +17 -0
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +21 -0
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +21 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.js +9 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.js +9 -0
- package/esm/resources/Tokens.js +7 -0
- package/esm/resources/Topups.js +14 -0
- package/esm/resources/Transfers.js +30 -0
- package/esm/resources/Treasury/CreditReversals.js +18 -0
- package/esm/resources/Treasury/DebitReversals.js +18 -0
- package/esm/resources/Treasury/FinancialAccounts.js +34 -0
- package/esm/resources/Treasury/InboundTransfers.js +22 -0
- package/esm/resources/Treasury/OutboundPayments.js +22 -0
- package/esm/resources/Treasury/OutboundTransfers.js +22 -0
- package/esm/resources/Treasury/ReceivedCredits.js +14 -0
- package/esm/resources/Treasury/ReceivedDebits.js +14 -0
- package/esm/resources/Treasury/TransactionEntries.js +390 -0
- package/esm/resources/Treasury/Transactions.js +444 -0
- package/esm/resources/V2/Billing/MeterEventAdjustments.js +9 -0
- package/esm/resources/V2/Billing/MeterEventSession.js +9 -0
- package/esm/resources/V2/Billing/MeterEventStream.js +10 -0
- package/esm/resources/V2/Billing/MeterEvents.js +6 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/AccountTokens.js +32 -0
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +22 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +88 -0
- package/esm/resources/V2/Core/Accounts.js +174 -0
- package/esm/resources/V2/Core/EventDestinations.js +38 -0
- package/esm/resources/V2/Core/Events.js +63 -0
- package/esm/resources/WebhookEndpoints.js +23 -0
- package/esm/resources.js +263 -0
- package/esm/stripe.core.js +408 -0
- package/esm/stripe.esm.node.js +5 -0
- package/esm/stripe.esm.worker.js +5 -0
- package/esm/utils.js +450 -0
- package/package.json +110 -0
- package/types/.eslintrc.js +22 -0
- package/types/AccountLinks.d.ts +33 -0
- package/types/AccountLinksResource.d.ts +78 -0
- package/types/AccountSessions.d.ts +578 -0
- package/types/AccountSessionsResource.d.ts +677 -0
- package/types/Accounts.d.ts +1736 -0
- package/types/AccountsResource.d.ts +5312 -0
- package/types/ApplePayDomains.d.ts +57 -0
- package/types/ApplePayDomainsResource.d.ts +77 -0
- package/types/ApplicationFees.d.ts +108 -0
- package/types/ApplicationFeesResource.d.ts +162 -0
- package/types/Applications.d.ts +55 -0
- package/types/Apps/Secrets.d.ts +80 -0
- package/types/Apps/SecretsResource.d.ts +186 -0
- package/types/Balance.d.ts +343 -0
- package/types/BalanceResource.d.ts +26 -0
- package/types/BalanceSettings.d.ts +103 -0
- package/types/BalanceSettingsResource.d.ts +124 -0
- package/types/BalanceTransactionSources.d.ts +23 -0
- package/types/BalanceTransactions.d.ts +176 -0
- package/types/BalanceTransactionsResource.d.ts +72 -0
- package/types/BankAccounts.d.ts +433 -0
- package/types/Billing/AlertTriggereds.d.ts +42 -0
- package/types/Billing/Alerts.d.ts +84 -0
- package/types/Billing/AlertsResource.d.ts +183 -0
- package/types/Billing/CreditBalanceSummary.d.ts +99 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +83 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +178 -0
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +62 -0
- package/types/Billing/CreditGrants.d.ts +150 -0
- package/types/Billing/CreditGrantsResource.d.ts +248 -0
- package/types/Billing/MeterEventAdjustments.d.ts +53 -0
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +48 -0
- package/types/Billing/MeterEventSummaries.d.ts +50 -0
- package/types/Billing/MeterEvents.d.ts +49 -0
- package/types/Billing/MeterEventsResource.d.ts +46 -0
- package/types/Billing/Meters.d.ts +110 -0
- package/types/Billing/MetersResource.d.ts +234 -0
- package/types/BillingPortal/Configurations.d.ts +319 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +679 -0
- package/types/BillingPortal/Sessions.d.ts +293 -0
- package/types/BillingPortal/SessionsResource.d.ts +273 -0
- package/types/Capabilities.d.ts +422 -0
- package/types/Cards.d.ts +225 -0
- package/types/CashBalances.d.ts +57 -0
- package/types/Charges.d.ts +2646 -0
- package/types/ChargesResource.d.ts +426 -0
- package/types/Checkout/Sessions.d.ts +2878 -0
- package/types/Checkout/SessionsResource.d.ts +4027 -0
- package/types/Climate/Orders.d.ts +197 -0
- package/types/Climate/OrdersResource.d.ts +159 -0
- package/types/Climate/Products.d.ts +81 -0
- package/types/Climate/ProductsResource.d.ts +45 -0
- package/types/Climate/Suppliers.d.ts +82 -0
- package/types/Climate/SuppliersResource.d.ts +45 -0
- package/types/ConfirmationTokens.d.ts +1755 -0
- package/types/ConfirmationTokensResource.d.ts +27 -0
- package/types/ConnectCollectionTransfers.d.ts +40 -0
- package/types/CountrySpecs.d.ts +88 -0
- package/types/CountrySpecsResource.d.ts +43 -0
- package/types/Coupons.d.ts +139 -0
- package/types/CouponsResource.d.ts +203 -0
- package/types/CreditNoteLineItems.d.ts +195 -0
- package/types/CreditNotes.d.ts +408 -0
- package/types/CreditNotesResource.d.ts +765 -0
- package/types/CustomerBalanceTransactions.d.ts +106 -0
- package/types/CustomerCashBalanceTransactions.d.ts +230 -0
- package/types/CustomerSessions.d.ts +283 -0
- package/types/CustomerSessionsResource.d.ts +263 -0
- package/types/CustomerSources.d.ts +9 -0
- package/types/Customers.d.ts +326 -0
- package/types/CustomersResource.d.ts +1554 -0
- package/types/Discounts.d.ts +175 -0
- package/types/Disputes.d.ts +519 -0
- package/types/DisputesResource.d.ts +384 -0
- package/types/Entitlements/ActiveEntitlementSummaries.d.ts +32 -0
- package/types/Entitlements/ActiveEntitlements.d.ts +37 -0
- package/types/Entitlements/ActiveEntitlementsResource.d.ts +49 -0
- package/types/Entitlements/Features.d.ts +48 -0
- package/types/Entitlements/FeaturesResource.d.ts +118 -0
- package/types/EphemeralKeys.d.ts +40 -0
- package/types/EphemeralKeysResource.d.ts +65 -0
- package/types/Errors.d.ts +356 -0
- package/types/EventTypes.d.ts +4443 -0
- package/types/Events.d.ts +373 -0
- package/types/EventsResource.d.ts +63 -0
- package/types/ExchangeRates.d.ts +54 -0
- package/types/ExchangeRatesResource.d.ts +49 -0
- package/types/ExternalAccounts.d.ts +9 -0
- package/types/FeeRefunds.d.ts +54 -0
- package/types/FileLinks.d.ts +57 -0
- package/types/FileLinksResource.d.ts +114 -0
- package/types/Files.d.ts +96 -0
- package/types/FilesResource.d.ts +146 -0
- package/types/FinancialConnections/AccountOwners.d.ts +52 -0
- package/types/FinancialConnections/AccountOwnerships.d.ts +32 -0
- package/types/FinancialConnections/Accounts.d.ts +325 -0
- package/types/FinancialConnections/AccountsResource.d.ts +184 -0
- package/types/FinancialConnections/Sessions.d.ts +113 -0
- package/types/FinancialConnections/SessionsResource.d.ts +128 -0
- package/types/FinancialConnections/Transactions.d.ts +85 -0
- package/types/FinancialConnections/TransactionsResource.d.ts +68 -0
- package/types/Forwarding/Requests.d.ts +165 -0
- package/types/Forwarding/RequestsResource.d.ts +127 -0
- package/types/FundingInstructions.d.ts +297 -0
- package/types/Identity/VerificationReports.d.ts +487 -0
- package/types/Identity/VerificationReportsResource.d.ts +71 -0
- package/types/Identity/VerificationSessions.d.ts +352 -0
- package/types/Identity/VerificationSessionsResource.d.ts +366 -0
- package/types/InvoiceItems.d.ts +240 -0
- package/types/InvoiceItemsResource.d.ts +424 -0
- package/types/InvoiceLineItems.d.ts +366 -0
- package/types/InvoicePayments.d.ts +111 -0
- package/types/InvoicePaymentsResource.d.ts +88 -0
- package/types/InvoiceRenderingTemplates.d.ts +55 -0
- package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
- package/types/Invoices.d.ts +1650 -0
- package/types/InvoicesResource.d.ts +4196 -0
- package/types/Issuing/Authorizations.d.ts +689 -0
- package/types/Issuing/AuthorizationsResource.d.ts +151 -0
- package/types/Issuing/Cardholders.d.ts +1184 -0
- package/types/Issuing/CardholdersResource.d.ts +2411 -0
- package/types/Issuing/Cards.d.ts +1312 -0
- package/types/Issuing/CardsResource.d.ts +2371 -0
- package/types/Issuing/Disputes.d.ts +383 -0
- package/types/Issuing/DisputesResource.d.ts +776 -0
- package/types/Issuing/PersonalizationDesigns.d.ts +142 -0
- package/types/Issuing/PersonalizationDesignsResource.d.ts +253 -0
- package/types/Issuing/PhysicalBundles.d.ts +75 -0
- package/types/Issuing/PhysicalBundlesResource.d.ts +63 -0
- package/types/Issuing/Tokens.d.ts +273 -0
- package/types/Issuing/TokensResource.d.ts +88 -0
- package/types/Issuing/Transactions.d.ts +479 -0
- package/types/Issuing/TransactionsResource.d.ts +92 -0
- package/types/LineItems.d.ts +145 -0
- package/types/LoginLinks.d.ts +26 -0
- package/types/Mandates.d.ts +373 -0
- package/types/MandatesResource.d.ts +27 -0
- package/types/OAuth.d.ts +355 -0
- package/types/PaymentAttemptRecords.d.ts +2438 -0
- package/types/PaymentAttemptRecordsResource.d.ts +57 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +126 -0
- package/types/PaymentIntents.d.ts +3162 -0
- package/types/PaymentIntentsResource.d.ts +11473 -0
- package/types/PaymentLinks.d.ts +1051 -0
- package/types/PaymentLinksResource.d.ts +2334 -0
- package/types/PaymentMethodConfigurations.d.ts +2045 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +2958 -0
- package/types/PaymentMethodDomains.d.ts +213 -0
- package/types/PaymentMethodDomainsResource.d.ts +126 -0
- package/types/PaymentMethods.d.ts +1645 -0
- package/types/PaymentMethodsResource.d.ts +1223 -0
- package/types/PaymentRecords.d.ts +2438 -0
- package/types/PaymentRecordsResource.d.ts +657 -0
- package/types/Payouts.d.ts +177 -0
- package/types/PayoutsResource.d.ts +201 -0
- package/types/Persons.d.ts +824 -0
- package/types/Plans.d.ts +195 -0
- package/types/PlansResource.d.ts +303 -0
- package/types/Prices.d.ts +325 -0
- package/types/PricesResource.d.ts +607 -0
- package/types/ProductFeatures.d.ts +57 -0
- package/types/Products.d.ts +170 -0
- package/types/ProductsResource.d.ts +616 -0
- package/types/PromotionCodes.d.ts +125 -0
- package/types/PromotionCodesResource.d.ts +233 -0
- package/types/Quotes.d.ts +690 -0
- package/types/QuotesResource.d.ts +898 -0
- package/types/Radar/EarlyFraudWarnings.d.ts +55 -0
- package/types/Radar/EarlyFraudWarningsResource.d.ts +64 -0
- package/types/Radar/PaymentEvaluations.d.ts +580 -0
- package/types/Radar/PaymentEvaluationsResource.d.ts +208 -0
- package/types/Radar/ValueListItems.d.ts +74 -0
- package/types/Radar/ValueListItemsResource.d.ts +99 -0
- package/types/Radar/ValueLists.d.ts +104 -0
- package/types/Radar/ValueListsResource.d.ts +156 -0
- package/types/Refunds.d.ts +487 -0
- package/types/RefundsResource.d.ts +187 -0
- package/types/Reporting/ReportRuns.d.ts +115 -0
- package/types/Reporting/ReportRunsResource.d.ts +763 -0
- package/types/Reporting/ReportTypes.d.ts +64 -0
- package/types/Reporting/ReportTypesResource.d.ts +47 -0
- package/types/Reserve/Holds.d.ts +104 -0
- package/types/Reserve/Plans.d.ts +103 -0
- package/types/Reserve/Releases.d.ts +105 -0
- package/types/ReserveTransactions.d.ts +32 -0
- package/types/Reviews.d.ts +146 -0
- package/types/ReviewsResource.d.ts +68 -0
- package/types/SetupAttempts.d.ts +878 -0
- package/types/SetupAttemptsResource.d.ts +35 -0
- package/types/SetupIntents.d.ts +1105 -0
- package/types/SetupIntentsResource.d.ts +5251 -0
- package/types/ShippingRates.d.ts +155 -0
- package/types/ShippingRatesResource.d.ts +262 -0
- package/types/Sigma/ScheduledQueryRuns.d.ts +76 -0
- package/types/Sigma/ScheduledQueryRunsResource.d.ts +47 -0
- package/types/SourceMandateNotifications.d.ts +105 -0
- package/types/SourceTransactions.d.ts +203 -0
- package/types/Sources.d.ts +746 -0
- package/types/SourcesResource.d.ts +611 -0
- package/types/SubscriptionItems.d.ts +122 -0
- package/types/SubscriptionItemsResource.d.ts +441 -0
- package/types/SubscriptionSchedules.d.ts +687 -0
- package/types/SubscriptionSchedulesResource.d.ts +1565 -0
- package/types/Subscriptions.d.ts +852 -0
- package/types/SubscriptionsResource.d.ts +2326 -0
- package/types/Tax/Associations.d.ts +82 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/CalculationLineItems.d.ts +187 -0
- package/types/Tax/Calculations.d.ts +511 -0
- package/types/Tax/CalculationsResource.d.ts +406 -0
- package/types/Tax/Registrations.d.ts +1710 -0
- package/types/Tax/RegistrationsResource.d.ts +2583 -0
- package/types/Tax/Settings.d.ts +86 -0
- package/types/Tax/SettingsResource.d.ts +77 -0
- package/types/Tax/TransactionLineItems.d.ts +90 -0
- package/types/Tax/Transactions.d.ts +418 -0
- package/types/Tax/TransactionsResource.d.ts +182 -0
- package/types/TaxCodes.d.ts +30 -0
- package/types/TaxCodesResource.d.ts +43 -0
- package/types/TaxDeductedAtSources.d.ts +35 -0
- package/types/TaxIds.d.ts +262 -0
- package/types/TaxIdsResource.d.ts +263 -0
- package/types/TaxRates.d.ts +144 -0
- package/types/TaxRatesResource.d.ts +215 -0
- package/types/Terminal/Configurations.d.ts +630 -0
- package/types/Terminal/ConfigurationsResource.d.ts +1469 -0
- package/types/Terminal/ConnectionTokens.d.ts +29 -0
- package/types/Terminal/ConnectionTokensResource.d.ts +32 -0
- package/types/Terminal/Locations.d.ts +166 -0
- package/types/Terminal/LocationsResource.d.ts +233 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/Terminal/Readers.d.ts +676 -0
- package/types/Terminal/ReadersResource.d.ts +665 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +936 -0
- package/types/TestHelpers/CustomersResource.d.ts +40 -0
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +1404 -0
- package/types/TestHelpers/Issuing/CardsResource.d.ts +121 -0
- package/types/TestHelpers/Issuing/PersonalizationDesignsResource.d.ts +113 -0
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +1354 -0
- package/types/TestHelpers/RefundsResource.d.ts +29 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +151 -0
- package/types/TestHelpers/TestClocks.d.ts +98 -0
- package/types/TestHelpers/TestClocksResource.d.ts +108 -0
- package/types/TestHelpers/Treasury/InboundTransfersResource.d.ts +108 -0
- package/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +175 -0
- package/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts +175 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +93 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +91 -0
- package/types/Tokens.d.ts +84 -0
- package/types/TokensResource.d.ts +1086 -0
- package/types/Topups.d.ts +103 -0
- package/types/TopupsResource.d.ts +158 -0
- package/types/TransferReversals.d.ts +72 -0
- package/types/Transfers.d.ts +104 -0
- package/types/TransfersResource.d.ts +260 -0
- package/types/Treasury/CreditReversals.d.ts +92 -0
- package/types/Treasury/CreditReversalsResource.d.ts +88 -0
- package/types/Treasury/DebitReversals.d.ts +104 -0
- package/types/Treasury/DebitReversalsResource.d.ts +95 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +623 -0
- package/types/Treasury/FinancialAccounts.d.ts +250 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +733 -0
- package/types/Treasury/InboundTransfers.d.ts +235 -0
- package/types/Treasury/InboundTransfersResource.d.ts +128 -0
- package/types/Treasury/OutboundPayments.d.ts +324 -0
- package/types/Treasury/OutboundPaymentsResource.d.ts +285 -0
- package/types/Treasury/OutboundTransfers.d.ts +299 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +179 -0
- package/types/Treasury/ReceivedCredits.d.ts +279 -0
- package/types/Treasury/ReceivedCreditsResource.d.ts +79 -0
- package/types/Treasury/ReceivedDebits.d.ts +227 -0
- package/types/Treasury/ReceivedDebitsResource.d.ts +58 -0
- package/types/Treasury/TransactionEntries.d.ts +203 -0
- package/types/Treasury/TransactionEntriesResource.d.ts +70 -0
- package/types/Treasury/Transactions.d.ts +202 -0
- package/types/Treasury/TransactionsResource.d.ts +82 -0
- package/types/UpcomingInvoices.d.ts +5 -0
- package/types/V2/Billing/MeterEventAdjustments.d.ts +65 -0
- package/types/V2/Billing/MeterEventAdjustmentsResource.d.ts +47 -0
- package/types/V2/Billing/MeterEventSessionResource.d.ts +26 -0
- package/types/V2/Billing/MeterEventSessions.d.ts +45 -0
- package/types/V2/Billing/MeterEventStreamResource.d.ts +62 -0
- package/types/V2/Billing/MeterEvents.d.ts +55 -0
- package/types/V2/Billing/MeterEventsResource.d.ts +52 -0
- package/types/V2/Core/AccountLinks.d.ts +160 -0
- package/types/V2/Core/AccountLinksResource.d.ts +145 -0
- package/types/V2/Core/AccountPersonTokens.d.ts +44 -0
- package/types/V2/Core/AccountPersons.d.ts +661 -0
- package/types/V2/Core/AccountTokens.d.ts +44 -0
- package/types/V2/Core/AccountTokensResource.d.ts +1149 -0
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +556 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +1260 -0
- package/types/V2/Core/Accounts.d.ts +5422 -0
- package/types/V2/Core/AccountsResource.d.ts +5042 -0
- package/types/V2/Core/EventDestinations.d.ts +168 -0
- package/types/V2/Core/EventDestinationsResource.d.ts +278 -0
- package/types/V2/Core/EventTypes.d.ts +798 -0
- package/types/V2/Core/Events.d.ts +86 -0
- package/types/V2/Core/EventsResource.d.ts +63 -0
- package/types/V2/DeletedObject.d.ts +22 -0
- package/types/V2/EventMisc.d.ts +80 -0
- package/types/WebhookEndpoints.d.ts +101 -0
- package/types/WebhookEndpointsResource.d.ts +798 -0
- package/types/Webhooks.d.ts +164 -0
- package/types/apiVersion.d.ts +4 -0
- package/types/crypto/crypto.d.ts +59 -0
- package/types/index.d.ts +596 -0
- package/types/lib.d.ts +420 -0
- package/types/net/net.d.ts +99 -0
- package/types/shared.d.ts +178 -0
- package/types/test/.eslintrc.js +6 -0
- package/types/test/tsconfig.json +67 -0
- package/types/test/typescriptTest.ts +357 -0
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace TestHelpers {
|
|
6
|
+
interface ConfirmationTokenCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* ID of an existing PaymentMethod.
|
|
14
|
+
*/
|
|
15
|
+
payment_method?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* If provided, this hash will be used to create a PaymentMethod.
|
|
19
|
+
*/
|
|
20
|
+
payment_method_data?: ConfirmationTokenCreateParams.PaymentMethodData;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Payment-method-specific configuration for this ConfirmationToken.
|
|
24
|
+
*/
|
|
25
|
+
payment_method_options?: ConfirmationTokenCreateParams.PaymentMethodOptions;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Return URL used to confirm the Intent.
|
|
29
|
+
*/
|
|
30
|
+
return_url?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Indicates that you intend to make future payments with this ConfirmationToken's payment method.
|
|
34
|
+
*
|
|
35
|
+
* The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
|
|
36
|
+
*/
|
|
37
|
+
setup_future_usage?: ConfirmationTokenCreateParams.SetupFutureUsage;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Shipping information for this ConfirmationToken.
|
|
41
|
+
*/
|
|
42
|
+
shipping?: ConfirmationTokenCreateParams.Shipping;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
namespace ConfirmationTokenCreateParams {
|
|
46
|
+
interface PaymentMethodData {
|
|
47
|
+
/**
|
|
48
|
+
* If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
49
|
+
*/
|
|
50
|
+
acss_debit?: PaymentMethodData.AcssDebit;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
54
|
+
*/
|
|
55
|
+
affirm?: PaymentMethodData.Affirm;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
59
|
+
*/
|
|
60
|
+
afterpay_clearpay?: PaymentMethodData.AfterpayClearpay;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
|
64
|
+
*/
|
|
65
|
+
alipay?: PaymentMethodData.Alipay;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
|
69
|
+
*/
|
|
70
|
+
allow_redisplay?: PaymentMethodData.AllowRedisplay;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
|
74
|
+
*/
|
|
75
|
+
alma?: PaymentMethodData.Alma;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
|
79
|
+
*/
|
|
80
|
+
amazon_pay?: PaymentMethodData.AmazonPay;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
84
|
+
*/
|
|
85
|
+
au_becs_debit?: PaymentMethodData.AuBecsDebit;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
89
|
+
*/
|
|
90
|
+
bacs_debit?: PaymentMethodData.BacsDebit;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
94
|
+
*/
|
|
95
|
+
bancontact?: PaymentMethodData.Bancontact;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
|
99
|
+
*/
|
|
100
|
+
billie?: PaymentMethodData.Billie;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
|
104
|
+
*/
|
|
105
|
+
billing_details?: PaymentMethodData.BillingDetails;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
|
109
|
+
*/
|
|
110
|
+
blik?: PaymentMethodData.Blik;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
|
114
|
+
*/
|
|
115
|
+
boleto?: PaymentMethodData.Boleto;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
|
119
|
+
*/
|
|
120
|
+
cashapp?: PaymentMethodData.Cashapp;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
|
124
|
+
*/
|
|
125
|
+
crypto?: PaymentMethodData.Crypto;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
129
|
+
*/
|
|
130
|
+
customer_balance?: PaymentMethodData.CustomerBalance;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
134
|
+
*/
|
|
135
|
+
eps?: PaymentMethodData.Eps;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
139
|
+
*/
|
|
140
|
+
fpx?: PaymentMethodData.Fpx;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
144
|
+
*/
|
|
145
|
+
giropay?: PaymentMethodData.Giropay;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
149
|
+
*/
|
|
150
|
+
grabpay?: PaymentMethodData.Grabpay;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
154
|
+
*/
|
|
155
|
+
ideal?: PaymentMethodData.Ideal;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
159
|
+
*/
|
|
160
|
+
interac_present?: PaymentMethodData.InteracPresent;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
|
164
|
+
*/
|
|
165
|
+
kakao_pay?: PaymentMethodData.KakaoPay;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
|
169
|
+
*/
|
|
170
|
+
klarna?: PaymentMethodData.Klarna;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
|
174
|
+
*/
|
|
175
|
+
konbini?: PaymentMethodData.Konbini;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
|
179
|
+
*/
|
|
180
|
+
kr_card?: PaymentMethodData.KrCard;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
184
|
+
*/
|
|
185
|
+
link?: PaymentMethodData.Link;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
189
|
+
*/
|
|
190
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
194
|
+
*/
|
|
195
|
+
metadata?: Stripe.MetadataParam;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
199
|
+
*/
|
|
200
|
+
mobilepay?: PaymentMethodData.Mobilepay;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
|
204
|
+
*/
|
|
205
|
+
multibanco?: PaymentMethodData.Multibanco;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
|
209
|
+
*/
|
|
210
|
+
naver_pay?: PaymentMethodData.NaverPay;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
|
214
|
+
*/
|
|
215
|
+
nz_bank_account?: PaymentMethodData.NzBankAccount;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
219
|
+
*/
|
|
220
|
+
oxxo?: PaymentMethodData.Oxxo;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
|
224
|
+
*/
|
|
225
|
+
p24?: PaymentMethodData.P24;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
|
229
|
+
*/
|
|
230
|
+
pay_by_bank?: PaymentMethodData.PayByBank;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
|
234
|
+
*/
|
|
235
|
+
payco?: PaymentMethodData.Payco;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
|
239
|
+
*/
|
|
240
|
+
paynow?: PaymentMethodData.Paynow;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
244
|
+
*/
|
|
245
|
+
paypal?: PaymentMethodData.Paypal;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
249
|
+
*/
|
|
250
|
+
payto?: PaymentMethodData.Payto;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
254
|
+
*/
|
|
255
|
+
pix?: PaymentMethodData.Pix;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
259
|
+
*/
|
|
260
|
+
promptpay?: PaymentMethodData.Promptpay;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
264
|
+
*/
|
|
265
|
+
radar_options?: PaymentMethodData.RadarOptions;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
269
|
+
*/
|
|
270
|
+
revolut_pay?: PaymentMethodData.RevolutPay;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
274
|
+
*/
|
|
275
|
+
samsung_pay?: PaymentMethodData.SamsungPay;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
|
279
|
+
*/
|
|
280
|
+
satispay?: PaymentMethodData.Satispay;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
284
|
+
*/
|
|
285
|
+
sepa_debit?: PaymentMethodData.SepaDebit;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
289
|
+
*/
|
|
290
|
+
sofort?: PaymentMethodData.Sofort;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
294
|
+
*/
|
|
295
|
+
swish?: PaymentMethodData.Swish;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
299
|
+
*/
|
|
300
|
+
twint?: PaymentMethodData.Twint;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
304
|
+
*/
|
|
305
|
+
type: PaymentMethodData.Type;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
|
|
309
|
+
*/
|
|
310
|
+
upi?: PaymentMethodData.Upi;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
314
|
+
*/
|
|
315
|
+
us_bank_account?: PaymentMethodData.UsBankAccount;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
319
|
+
*/
|
|
320
|
+
wechat_pay?: PaymentMethodData.WechatPay;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
324
|
+
*/
|
|
325
|
+
zip?: PaymentMethodData.Zip;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
namespace PaymentMethodData {
|
|
329
|
+
interface AcssDebit {
|
|
330
|
+
/**
|
|
331
|
+
* Customer's bank account number.
|
|
332
|
+
*/
|
|
333
|
+
account_number: string;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Institution number of the customer's bank.
|
|
337
|
+
*/
|
|
338
|
+
institution_number: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Transit number of the customer's bank.
|
|
342
|
+
*/
|
|
343
|
+
transit_number: string;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
interface Affirm {}
|
|
347
|
+
|
|
348
|
+
interface AfterpayClearpay {}
|
|
349
|
+
|
|
350
|
+
interface Alipay {}
|
|
351
|
+
|
|
352
|
+
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
|
353
|
+
|
|
354
|
+
interface Alma {}
|
|
355
|
+
|
|
356
|
+
interface AmazonPay {}
|
|
357
|
+
|
|
358
|
+
interface AuBecsDebit {
|
|
359
|
+
/**
|
|
360
|
+
* The account number for the bank account.
|
|
361
|
+
*/
|
|
362
|
+
account_number: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Bank-State-Branch number of the bank account.
|
|
366
|
+
*/
|
|
367
|
+
bsb_number: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface BacsDebit {
|
|
371
|
+
/**
|
|
372
|
+
* Account number of the bank account that the funds will be debited from.
|
|
373
|
+
*/
|
|
374
|
+
account_number?: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Sort code of the bank account. (e.g., `10-20-30`)
|
|
378
|
+
*/
|
|
379
|
+
sort_code?: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
interface Bancontact {}
|
|
383
|
+
|
|
384
|
+
interface Billie {}
|
|
385
|
+
|
|
386
|
+
interface BillingDetails {
|
|
387
|
+
/**
|
|
388
|
+
* Billing address.
|
|
389
|
+
*/
|
|
390
|
+
address?: Stripe.Emptyable<Stripe.AddressParam>;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Email address.
|
|
394
|
+
*/
|
|
395
|
+
email?: Stripe.Emptyable<string>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Full name.
|
|
399
|
+
*/
|
|
400
|
+
name?: Stripe.Emptyable<string>;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Billing phone number (including extension).
|
|
404
|
+
*/
|
|
405
|
+
phone?: Stripe.Emptyable<string>;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
|
409
|
+
*/
|
|
410
|
+
tax_id?: string;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface Blik {}
|
|
414
|
+
|
|
415
|
+
interface Boleto {
|
|
416
|
+
/**
|
|
417
|
+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
|
418
|
+
*/
|
|
419
|
+
tax_id: string;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
interface Cashapp {}
|
|
423
|
+
|
|
424
|
+
interface Crypto {}
|
|
425
|
+
|
|
426
|
+
interface CustomerBalance {}
|
|
427
|
+
|
|
428
|
+
interface Eps {
|
|
429
|
+
/**
|
|
430
|
+
* The customer's bank.
|
|
431
|
+
*/
|
|
432
|
+
bank?: Eps.Bank;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
namespace Eps {
|
|
436
|
+
type Bank =
|
|
437
|
+
| 'arzte_und_apotheker_bank'
|
|
438
|
+
| 'austrian_anadi_bank_ag'
|
|
439
|
+
| 'bank_austria'
|
|
440
|
+
| 'bankhaus_carl_spangler'
|
|
441
|
+
| 'bankhaus_schelhammer_und_schattera_ag'
|
|
442
|
+
| 'bawag_psk_ag'
|
|
443
|
+
| 'bks_bank_ag'
|
|
444
|
+
| 'brull_kallmus_bank_ag'
|
|
445
|
+
| 'btv_vier_lander_bank'
|
|
446
|
+
| 'capital_bank_grawe_gruppe_ag'
|
|
447
|
+
| 'deutsche_bank_ag'
|
|
448
|
+
| 'dolomitenbank'
|
|
449
|
+
| 'easybank_ag'
|
|
450
|
+
| 'erste_bank_und_sparkassen'
|
|
451
|
+
| 'hypo_alpeadriabank_international_ag'
|
|
452
|
+
| 'hypo_bank_burgenland_aktiengesellschaft'
|
|
453
|
+
| 'hypo_noe_lb_fur_niederosterreich_u_wien'
|
|
454
|
+
| 'hypo_oberosterreich_salzburg_steiermark'
|
|
455
|
+
| 'hypo_tirol_bank_ag'
|
|
456
|
+
| 'hypo_vorarlberg_bank_ag'
|
|
457
|
+
| 'marchfelder_bank'
|
|
458
|
+
| 'oberbank_ag'
|
|
459
|
+
| 'raiffeisen_bankengruppe_osterreich'
|
|
460
|
+
| 'schoellerbank_ag'
|
|
461
|
+
| 'sparda_bank_wien'
|
|
462
|
+
| 'volksbank_gruppe'
|
|
463
|
+
| 'volkskreditbank_ag'
|
|
464
|
+
| 'vr_bank_braunau';
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
interface Fpx {
|
|
468
|
+
/**
|
|
469
|
+
* Account holder type for FPX transaction
|
|
470
|
+
*/
|
|
471
|
+
account_holder_type?: Fpx.AccountHolderType;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The customer's bank.
|
|
475
|
+
*/
|
|
476
|
+
bank: Fpx.Bank;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
namespace Fpx {
|
|
480
|
+
type AccountHolderType = 'company' | 'individual';
|
|
481
|
+
|
|
482
|
+
type Bank =
|
|
483
|
+
| 'affin_bank'
|
|
484
|
+
| 'agrobank'
|
|
485
|
+
| 'alliance_bank'
|
|
486
|
+
| 'ambank'
|
|
487
|
+
| 'bank_islam'
|
|
488
|
+
| 'bank_muamalat'
|
|
489
|
+
| 'bank_of_china'
|
|
490
|
+
| 'bank_rakyat'
|
|
491
|
+
| 'bsn'
|
|
492
|
+
| 'cimb'
|
|
493
|
+
| 'deutsche_bank'
|
|
494
|
+
| 'hong_leong_bank'
|
|
495
|
+
| 'hsbc'
|
|
496
|
+
| 'kfh'
|
|
497
|
+
| 'maybank2e'
|
|
498
|
+
| 'maybank2u'
|
|
499
|
+
| 'ocbc'
|
|
500
|
+
| 'pb_enterprise'
|
|
501
|
+
| 'public_bank'
|
|
502
|
+
| 'rhb'
|
|
503
|
+
| 'standard_chartered'
|
|
504
|
+
| 'uob';
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
interface Giropay {}
|
|
508
|
+
|
|
509
|
+
interface Grabpay {}
|
|
510
|
+
|
|
511
|
+
interface Ideal {
|
|
512
|
+
/**
|
|
513
|
+
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
514
|
+
*/
|
|
515
|
+
bank?: Ideal.Bank;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
namespace Ideal {
|
|
519
|
+
type Bank =
|
|
520
|
+
| 'abn_amro'
|
|
521
|
+
| 'adyen'
|
|
522
|
+
| 'asn_bank'
|
|
523
|
+
| 'bunq'
|
|
524
|
+
| 'buut'
|
|
525
|
+
| 'finom'
|
|
526
|
+
| 'handelsbanken'
|
|
527
|
+
| 'ing'
|
|
528
|
+
| 'knab'
|
|
529
|
+
| 'mollie'
|
|
530
|
+
| 'moneyou'
|
|
531
|
+
| 'n26'
|
|
532
|
+
| 'nn'
|
|
533
|
+
| 'rabobank'
|
|
534
|
+
| 'regiobank'
|
|
535
|
+
| 'revolut'
|
|
536
|
+
| 'sns_bank'
|
|
537
|
+
| 'triodos_bank'
|
|
538
|
+
| 'van_lanschot'
|
|
539
|
+
| 'yoursafe';
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
interface InteracPresent {}
|
|
543
|
+
|
|
544
|
+
interface KakaoPay {}
|
|
545
|
+
|
|
546
|
+
interface Klarna {
|
|
547
|
+
/**
|
|
548
|
+
* Customer's date of birth
|
|
549
|
+
*/
|
|
550
|
+
dob?: Klarna.Dob;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
namespace Klarna {
|
|
554
|
+
interface Dob {
|
|
555
|
+
/**
|
|
556
|
+
* The day of birth, between 1 and 31.
|
|
557
|
+
*/
|
|
558
|
+
day: number;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* The month of birth, between 1 and 12.
|
|
562
|
+
*/
|
|
563
|
+
month: number;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* The four-digit year of birth.
|
|
567
|
+
*/
|
|
568
|
+
year: number;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
interface Konbini {}
|
|
573
|
+
|
|
574
|
+
interface KrCard {}
|
|
575
|
+
|
|
576
|
+
interface Link {}
|
|
577
|
+
|
|
578
|
+
interface MbWay {}
|
|
579
|
+
|
|
580
|
+
interface Mobilepay {}
|
|
581
|
+
|
|
582
|
+
interface Multibanco {}
|
|
583
|
+
|
|
584
|
+
interface NaverPay {
|
|
585
|
+
/**
|
|
586
|
+
* Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
|
587
|
+
*/
|
|
588
|
+
funding?: NaverPay.Funding;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
namespace NaverPay {
|
|
592
|
+
type Funding = 'card' | 'points';
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
interface NzBankAccount {
|
|
596
|
+
/**
|
|
597
|
+
* The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
|
|
598
|
+
*/
|
|
599
|
+
account_holder_name?: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The account number for the bank account.
|
|
603
|
+
*/
|
|
604
|
+
account_number: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* The numeric code for the bank account's bank.
|
|
608
|
+
*/
|
|
609
|
+
bank_code: string;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* The numeric code for the bank account's bank branch.
|
|
613
|
+
*/
|
|
614
|
+
branch_code: string;
|
|
615
|
+
|
|
616
|
+
reference?: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* The suffix of the bank account number.
|
|
620
|
+
*/
|
|
621
|
+
suffix: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
interface Oxxo {}
|
|
625
|
+
|
|
626
|
+
interface P24 {
|
|
627
|
+
/**
|
|
628
|
+
* The customer's bank.
|
|
629
|
+
*/
|
|
630
|
+
bank?: P24.Bank;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
namespace P24 {
|
|
634
|
+
type Bank =
|
|
635
|
+
| 'alior_bank'
|
|
636
|
+
| 'bank_millennium'
|
|
637
|
+
| 'bank_nowy_bfg_sa'
|
|
638
|
+
| 'bank_pekao_sa'
|
|
639
|
+
| 'banki_spbdzielcze'
|
|
640
|
+
| 'blik'
|
|
641
|
+
| 'bnp_paribas'
|
|
642
|
+
| 'boz'
|
|
643
|
+
| 'citi_handlowy'
|
|
644
|
+
| 'credit_agricole'
|
|
645
|
+
| 'envelobank'
|
|
646
|
+
| 'etransfer_pocztowy24'
|
|
647
|
+
| 'getin_bank'
|
|
648
|
+
| 'ideabank'
|
|
649
|
+
| 'ing'
|
|
650
|
+
| 'inteligo'
|
|
651
|
+
| 'mbank_mtransfer'
|
|
652
|
+
| 'nest_przelew'
|
|
653
|
+
| 'noble_pay'
|
|
654
|
+
| 'pbac_z_ipko'
|
|
655
|
+
| 'plus_bank'
|
|
656
|
+
| 'santander_przelew24'
|
|
657
|
+
| 'tmobile_usbugi_bankowe'
|
|
658
|
+
| 'toyota_bank'
|
|
659
|
+
| 'velobank'
|
|
660
|
+
| 'volkswagen_bank';
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
interface PayByBank {}
|
|
664
|
+
|
|
665
|
+
interface Payco {}
|
|
666
|
+
|
|
667
|
+
interface Paynow {}
|
|
668
|
+
|
|
669
|
+
interface Paypal {}
|
|
670
|
+
|
|
671
|
+
interface Payto {
|
|
672
|
+
/**
|
|
673
|
+
* The account number for the bank account.
|
|
674
|
+
*/
|
|
675
|
+
account_number?: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Bank-State-Branch number of the bank account.
|
|
679
|
+
*/
|
|
680
|
+
bsb_number?: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* The PayID alias for the bank account.
|
|
684
|
+
*/
|
|
685
|
+
pay_id?: string;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface Pix {}
|
|
689
|
+
|
|
690
|
+
interface Promptpay {}
|
|
691
|
+
|
|
692
|
+
interface RadarOptions {
|
|
693
|
+
/**
|
|
694
|
+
* A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
695
|
+
*/
|
|
696
|
+
session?: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
interface RevolutPay {}
|
|
700
|
+
|
|
701
|
+
interface SamsungPay {}
|
|
702
|
+
|
|
703
|
+
interface Satispay {}
|
|
704
|
+
|
|
705
|
+
interface SepaDebit {
|
|
706
|
+
/**
|
|
707
|
+
* IBAN of the bank account.
|
|
708
|
+
*/
|
|
709
|
+
iban: string;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
interface Sofort {
|
|
713
|
+
/**
|
|
714
|
+
* Two-letter ISO code representing the country the bank account is located in.
|
|
715
|
+
*/
|
|
716
|
+
country: Sofort.Country;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
namespace Sofort {
|
|
720
|
+
type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
interface Swish {}
|
|
724
|
+
|
|
725
|
+
interface Twint {}
|
|
726
|
+
|
|
727
|
+
type Type =
|
|
728
|
+
| 'acss_debit'
|
|
729
|
+
| 'affirm'
|
|
730
|
+
| 'afterpay_clearpay'
|
|
731
|
+
| 'alipay'
|
|
732
|
+
| 'alma'
|
|
733
|
+
| 'amazon_pay'
|
|
734
|
+
| 'au_becs_debit'
|
|
735
|
+
| 'bacs_debit'
|
|
736
|
+
| 'bancontact'
|
|
737
|
+
| 'billie'
|
|
738
|
+
| 'blik'
|
|
739
|
+
| 'boleto'
|
|
740
|
+
| 'cashapp'
|
|
741
|
+
| 'crypto'
|
|
742
|
+
| 'customer_balance'
|
|
743
|
+
| 'eps'
|
|
744
|
+
| 'fpx'
|
|
745
|
+
| 'giropay'
|
|
746
|
+
| 'grabpay'
|
|
747
|
+
| 'ideal'
|
|
748
|
+
| 'kakao_pay'
|
|
749
|
+
| 'klarna'
|
|
750
|
+
| 'konbini'
|
|
751
|
+
| 'kr_card'
|
|
752
|
+
| 'link'
|
|
753
|
+
| 'mb_way'
|
|
754
|
+
| 'mobilepay'
|
|
755
|
+
| 'multibanco'
|
|
756
|
+
| 'naver_pay'
|
|
757
|
+
| 'nz_bank_account'
|
|
758
|
+
| 'oxxo'
|
|
759
|
+
| 'p24'
|
|
760
|
+
| 'pay_by_bank'
|
|
761
|
+
| 'payco'
|
|
762
|
+
| 'paynow'
|
|
763
|
+
| 'paypal'
|
|
764
|
+
| 'payto'
|
|
765
|
+
| 'pix'
|
|
766
|
+
| 'promptpay'
|
|
767
|
+
| 'revolut_pay'
|
|
768
|
+
| 'samsung_pay'
|
|
769
|
+
| 'satispay'
|
|
770
|
+
| 'sepa_debit'
|
|
771
|
+
| 'sofort'
|
|
772
|
+
| 'swish'
|
|
773
|
+
| 'twint'
|
|
774
|
+
| 'upi'
|
|
775
|
+
| 'us_bank_account'
|
|
776
|
+
| 'wechat_pay'
|
|
777
|
+
| 'zip';
|
|
778
|
+
|
|
779
|
+
interface Upi {
|
|
780
|
+
/**
|
|
781
|
+
* Configuration options for setting up an eMandate
|
|
782
|
+
*/
|
|
783
|
+
mandate_options?: Upi.MandateOptions;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
namespace Upi {
|
|
787
|
+
interface MandateOptions {
|
|
788
|
+
/**
|
|
789
|
+
* Amount to be charged for future payments.
|
|
790
|
+
*/
|
|
791
|
+
amount?: number;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
795
|
+
*/
|
|
796
|
+
amount_type?: MandateOptions.AmountType;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
800
|
+
*/
|
|
801
|
+
description?: string;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* End date of the mandate or subscription.
|
|
805
|
+
*/
|
|
806
|
+
end_date?: number;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
namespace MandateOptions {
|
|
810
|
+
type AmountType = 'fixed' | 'maximum';
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
interface UsBankAccount {
|
|
815
|
+
/**
|
|
816
|
+
* Account holder type: individual or company.
|
|
817
|
+
*/
|
|
818
|
+
account_holder_type?: UsBankAccount.AccountHolderType;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Account number of the bank account.
|
|
822
|
+
*/
|
|
823
|
+
account_number?: string;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
827
|
+
*/
|
|
828
|
+
account_type?: UsBankAccount.AccountType;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* The ID of a Financial Connections Account to use as a payment method.
|
|
832
|
+
*/
|
|
833
|
+
financial_connections_account?: string;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Routing number of the bank account.
|
|
837
|
+
*/
|
|
838
|
+
routing_number?: string;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
namespace UsBankAccount {
|
|
842
|
+
type AccountHolderType = 'company' | 'individual';
|
|
843
|
+
|
|
844
|
+
type AccountType = 'checking' | 'savings';
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
interface WechatPay {}
|
|
848
|
+
|
|
849
|
+
interface Zip {}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
interface PaymentMethodOptions {
|
|
853
|
+
/**
|
|
854
|
+
* Configuration for any card payments confirmed using this ConfirmationToken.
|
|
855
|
+
*/
|
|
856
|
+
card?: PaymentMethodOptions.Card;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
namespace PaymentMethodOptions {
|
|
860
|
+
interface Card {
|
|
861
|
+
/**
|
|
862
|
+
* Installment configuration for payments confirmed using this ConfirmationToken.
|
|
863
|
+
*/
|
|
864
|
+
installments?: Card.Installments;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
namespace Card {
|
|
868
|
+
interface Installments {
|
|
869
|
+
/**
|
|
870
|
+
* The selected installment plan to use for this payment attempt.
|
|
871
|
+
* This parameter can only be provided during confirmation.
|
|
872
|
+
*/
|
|
873
|
+
plan: Installments.Plan;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
namespace Installments {
|
|
877
|
+
interface Plan {
|
|
878
|
+
/**
|
|
879
|
+
* For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
880
|
+
*/
|
|
881
|
+
count?: number;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
|
885
|
+
* One of `month`.
|
|
886
|
+
*/
|
|
887
|
+
interval?: 'month';
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
|
891
|
+
*/
|
|
892
|
+
type: Plan.Type;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
namespace Plan {
|
|
896
|
+
type Type = 'bonus' | 'fixed_count' | 'revolving';
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
903
|
+
|
|
904
|
+
interface Shipping {
|
|
905
|
+
/**
|
|
906
|
+
* Shipping address
|
|
907
|
+
*/
|
|
908
|
+
address: Stripe.AddressParam;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Recipient name.
|
|
912
|
+
*/
|
|
913
|
+
name: string;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Recipient phone (including extension)
|
|
917
|
+
*/
|
|
918
|
+
phone?: Stripe.Emptyable<string>;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
class ConfirmationTokensResource {
|
|
923
|
+
/**
|
|
924
|
+
* Creates a test mode Confirmation Token server side for your integration tests.
|
|
925
|
+
*/
|
|
926
|
+
create(
|
|
927
|
+
params?: ConfirmationTokenCreateParams,
|
|
928
|
+
options?: RequestOptions
|
|
929
|
+
): Promise<Stripe.Response<Stripe.ConfirmationToken>>;
|
|
930
|
+
create(
|
|
931
|
+
options?: RequestOptions
|
|
932
|
+
): Promise<Stripe.Response<Stripe.ConfirmationToken>>;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|