stripe 19.2.1 → 19.3.0-alpha.2
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 +1686 -15
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -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/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -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/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +20 -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/ClaimableSandboxes.js +16 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +142 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +100 -0
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +9 -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/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -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/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +17 -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/ClaimableSandboxes.js +13 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +129 -0
- 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 +264 -0
- package/types/Accounts.d.ts +214 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +149 -2
- package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
- package/types/Billing/Analytics/MeterUsageResource.d.ts +694 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +58 -0
- package/types/Billing/CreditBalanceSummary.d.ts +123 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +20 -3
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +76 -1
- package/types/Billing/CreditGrantsResource.d.ts +45 -4
- package/types/Billing/MeterEventSummaries.d.ts +7 -0
- package/types/Billing/Meters.d.ts +5 -0
- package/types/Billing/MetersResource.d.ts +17 -0
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- package/types/Capabilities.d.ts +2 -0
- 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 +19 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +185 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +427 -2
- package/types/Checkout/SessionsResource.d.ts +682 -2
- package/types/ConfirmationTokens.d.ts +139 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +5 -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 +46 -0
- package/types/CustomerSessionsResource.d.ts +47 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +360 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +630 -0
- package/types/Events.d.ts +95 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +36 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/FxQuotes.d.ts +155 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +114 -2
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +158 -3
- package/types/InvoicePayments.d.ts +1 -1
- package/types/Invoices.d.ts +203 -4
- package/types/InvoicesResource.d.ts +1625 -2
- 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 +135 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +141 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +7 -13
- package/types/PaymentIntents.d.ts +807 -20
- package/types/PaymentIntentsResource.d.ts +9765 -4959
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +216 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
- package/types/PaymentMethods.d.ts +144 -0
- package/types/PaymentMethodsResource.d.ts +187 -2
- package/types/PaymentRecords.d.ts +141 -0
- package/types/Persons.d.ts +2 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -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 +1771 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2588 -243
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +51 -1
- package/types/SetupIntents.d.ts +239 -2
- package/types/SetupIntentsResource.d.ts +1044 -4
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1233 -5
- package/types/Subscriptions.d.ts +262 -1
- package/types/SubscriptionsResource.d.ts +745 -8
- package/types/Tax/Associations.d.ts +82 -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/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Transfers.d.ts +9 -0
- package/types/TransfersResource.d.ts +7 -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/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +731 -0
- package/types/V2/Billing/CadencesResource.d.ts +516 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +274 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
- package/types/V2/Core/AccountLinks.d.ts +168 -0
- package/types/V2/Core/AccountLinksResource.d.ts +152 -0
- package/types/V2/Core/AccountPersons.d.ts +615 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
- package/types/V2/Core/Accounts.d.ts +7478 -0
- package/types/V2/Core/AccountsResource.d.ts +6723 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
- package/types/V2/Core/EventTypes.d.ts +8589 -10
- package/types/V2/Core/Events.d.ts +12 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +116 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +126 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +283 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +247 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +330 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +256 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +213 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +201 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +307 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +186 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +74 -0
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +222 -0
- package/types/lib.d.ts +10 -0
|
@@ -26,6 +26,11 @@ declare module 'stripe' {
|
|
|
26
26
|
*/
|
|
27
27
|
object: 'payment_intent';
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Allocated Funds configuration for this PaymentIntent.
|
|
31
|
+
*/
|
|
32
|
+
allocated_funds?: PaymentIntent.AllocatedFunds | null;
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
35
|
* Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
31
36
|
*/
|
|
@@ -106,6 +111,15 @@ declare module 'stripe' {
|
|
|
106
111
|
*/
|
|
107
112
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
108
113
|
|
|
114
|
+
/**
|
|
115
|
+
* ID of the Account this PaymentIntent belongs to, if one exists.
|
|
116
|
+
*
|
|
117
|
+
* Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
118
|
+
*
|
|
119
|
+
* 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.
|
|
120
|
+
*/
|
|
121
|
+
customer_account?: string | null;
|
|
122
|
+
|
|
109
123
|
/**
|
|
110
124
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
111
125
|
*/
|
|
@@ -118,6 +132,13 @@ declare module 'stripe' {
|
|
|
118
132
|
PaymentIntent.ExcludedPaymentMethodType
|
|
119
133
|
> | null;
|
|
120
134
|
|
|
135
|
+
/**
|
|
136
|
+
* The FX Quote used for the PaymentIntent.
|
|
137
|
+
*/
|
|
138
|
+
fx_quote?: string | null;
|
|
139
|
+
|
|
140
|
+
hooks?: PaymentIntent.Hooks;
|
|
141
|
+
|
|
121
142
|
/**
|
|
122
143
|
* The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
|
123
144
|
*/
|
|
@@ -187,6 +208,11 @@ declare module 'stripe' {
|
|
|
187
208
|
*/
|
|
188
209
|
review: string | Stripe.Review | null;
|
|
189
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
213
|
+
*/
|
|
214
|
+
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
215
|
+
|
|
190
216
|
/**
|
|
191
217
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
192
218
|
*
|
|
@@ -241,11 +267,16 @@ declare module 'stripe' {
|
|
|
241
267
|
}
|
|
242
268
|
|
|
243
269
|
namespace PaymentIntent {
|
|
270
|
+
interface AllocatedFunds {
|
|
271
|
+
/**
|
|
272
|
+
* Allocated Funds configuration for this PaymentIntent.
|
|
273
|
+
*/
|
|
274
|
+
enabled: boolean | null;
|
|
275
|
+
}
|
|
276
|
+
|
|
244
277
|
interface AmountDetails {
|
|
245
278
|
/**
|
|
246
|
-
* The total discount applied on the transaction
|
|
247
|
-
*
|
|
248
|
-
* This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
279
|
+
* The total discount applied on the transaction.
|
|
249
280
|
*/
|
|
250
281
|
discount_amount?: number;
|
|
251
282
|
|
|
@@ -264,26 +295,24 @@ declare module 'stripe' {
|
|
|
264
295
|
namespace AmountDetails {
|
|
265
296
|
interface Shipping {
|
|
266
297
|
/**
|
|
267
|
-
*
|
|
298
|
+
* Portion of the amount that is for shipping.
|
|
268
299
|
*/
|
|
269
300
|
amount: number | null;
|
|
270
301
|
|
|
271
302
|
/**
|
|
272
|
-
*
|
|
303
|
+
* The postal code that represents the shipping source.
|
|
273
304
|
*/
|
|
274
305
|
from_postal_code: string | null;
|
|
275
306
|
|
|
276
307
|
/**
|
|
277
|
-
*
|
|
308
|
+
* The postal code that represents the shipping destination.
|
|
278
309
|
*/
|
|
279
310
|
to_postal_code: string | null;
|
|
280
311
|
}
|
|
281
312
|
|
|
282
313
|
interface Tax {
|
|
283
314
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
315
|
+
* Total portion of the amount that is for tax.
|
|
287
316
|
*/
|
|
288
317
|
total_tax_amount: number | null;
|
|
289
318
|
}
|
|
@@ -348,7 +377,9 @@ declare module 'stripe' {
|
|
|
348
377
|
| 'eps'
|
|
349
378
|
| 'fpx'
|
|
350
379
|
| 'giropay'
|
|
380
|
+
| 'gopay'
|
|
351
381
|
| 'grabpay'
|
|
382
|
+
| 'id_bank_transfer'
|
|
352
383
|
| 'ideal'
|
|
353
384
|
| 'kakao_pay'
|
|
354
385
|
| 'klarna'
|
|
@@ -365,19 +396,44 @@ declare module 'stripe' {
|
|
|
365
396
|
| 'payco'
|
|
366
397
|
| 'paynow'
|
|
367
398
|
| 'paypal'
|
|
399
|
+
| 'paypay'
|
|
400
|
+
| 'payto'
|
|
368
401
|
| 'pix'
|
|
369
402
|
| 'promptpay'
|
|
403
|
+
| 'qris'
|
|
404
|
+
| 'rechnung'
|
|
370
405
|
| 'revolut_pay'
|
|
371
406
|
| 'samsung_pay'
|
|
372
407
|
| 'satispay'
|
|
373
408
|
| 'sepa_debit'
|
|
409
|
+
| 'shopeepay'
|
|
374
410
|
| 'sofort'
|
|
411
|
+
| 'stripe_balance'
|
|
375
412
|
| 'swish'
|
|
376
413
|
| 'twint'
|
|
377
414
|
| 'us_bank_account'
|
|
378
415
|
| 'wechat_pay'
|
|
379
416
|
| 'zip';
|
|
380
417
|
|
|
418
|
+
interface Hooks {
|
|
419
|
+
inputs?: Hooks.Inputs;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
namespace Hooks {
|
|
423
|
+
interface Inputs {
|
|
424
|
+
tax?: Inputs.Tax;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
namespace Inputs {
|
|
428
|
+
interface Tax {
|
|
429
|
+
/**
|
|
430
|
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
431
|
+
*/
|
|
432
|
+
calculation: string;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
381
437
|
interface LastPaymentError {
|
|
382
438
|
/**
|
|
383
439
|
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
|
|
@@ -544,6 +600,7 @@ declare module 'stripe' {
|
|
|
544
600
|
| 'financial_connections_account_inactive'
|
|
545
601
|
| 'financial_connections_account_pending_account_numbers'
|
|
546
602
|
| 'financial_connections_account_unavailable_account_numbers'
|
|
603
|
+
| 'financial_connections_institution_unavailable'
|
|
547
604
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
548
605
|
| 'forwarding_api_inactive'
|
|
549
606
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -642,6 +699,7 @@ declare module 'stripe' {
|
|
|
642
699
|
| 'return_intent_already_processed'
|
|
643
700
|
| 'routing_number_invalid'
|
|
644
701
|
| 'secret_key_required'
|
|
702
|
+
| 'sensitive_data_access_expired'
|
|
645
703
|
| 'sepa_unsupported_account'
|
|
646
704
|
| 'setup_attempt_failed'
|
|
647
705
|
| 'setup_intent_authentication_failure'
|
|
@@ -661,6 +719,7 @@ declare module 'stripe' {
|
|
|
661
719
|
| 'taxes_calculation_failed'
|
|
662
720
|
| 'terminal_location_country_unsupported'
|
|
663
721
|
| 'terminal_reader_busy'
|
|
722
|
+
| 'terminal_reader_collected_data_invalid'
|
|
664
723
|
| 'terminal_reader_hardware_fault'
|
|
665
724
|
| 'terminal_reader_invalid_location_for_activation'
|
|
666
725
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -673,7 +732,9 @@ declare module 'stripe' {
|
|
|
673
732
|
| 'token_in_use'
|
|
674
733
|
| 'transfer_source_balance_parameters_mismatch'
|
|
675
734
|
| 'transfers_not_allowed'
|
|
676
|
-
| 'url_invalid'
|
|
735
|
+
| 'url_invalid'
|
|
736
|
+
| 'v2_account_disconnection_unsupported'
|
|
737
|
+
| 'v2_account_missing_configuration';
|
|
677
738
|
|
|
678
739
|
type Type =
|
|
679
740
|
| 'api_error'
|
|
@@ -1438,21 +1499,350 @@ declare module 'stripe' {
|
|
|
1438
1499
|
}
|
|
1439
1500
|
|
|
1440
1501
|
interface PaymentDetails {
|
|
1502
|
+
benefit?: PaymentDetails.Benefit;
|
|
1503
|
+
|
|
1504
|
+
car_rental?: PaymentDetails.CarRental;
|
|
1505
|
+
|
|
1441
1506
|
/**
|
|
1442
|
-
*
|
|
1443
|
-
*
|
|
1444
|
-
* This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1507
|
+
* Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
|
1445
1508
|
*/
|
|
1446
1509
|
customer_reference: string | null;
|
|
1447
1510
|
|
|
1511
|
+
event_details?: PaymentDetails.EventDetails;
|
|
1512
|
+
|
|
1448
1513
|
/**
|
|
1449
|
-
* A unique value assigned by the business to identify the transaction.
|
|
1450
|
-
*
|
|
1451
|
-
* Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1452
|
-
*
|
|
1453
|
-
* For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
1514
|
+
* A unique value assigned by the business to identify the transaction.
|
|
1454
1515
|
*/
|
|
1455
1516
|
order_reference: string | null;
|
|
1517
|
+
|
|
1518
|
+
subscription?: PaymentDetails.Subscription;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
namespace PaymentDetails {
|
|
1522
|
+
interface Benefit {
|
|
1523
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
namespace Benefit {
|
|
1527
|
+
interface FrMealVoucher {
|
|
1528
|
+
/**
|
|
1529
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1530
|
+
*/
|
|
1531
|
+
siret?: string;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
interface CarRental {
|
|
1536
|
+
affiliate?: CarRental.Affiliate;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* The booking number associated with the car rental.
|
|
1540
|
+
*/
|
|
1541
|
+
booking_number: string;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Class code of the car.
|
|
1545
|
+
*/
|
|
1546
|
+
car_class_code?: string;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Make of the car.
|
|
1550
|
+
*/
|
|
1551
|
+
car_make?: string;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Model of the car.
|
|
1555
|
+
*/
|
|
1556
|
+
car_model?: string;
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* The name of the rental car company.
|
|
1560
|
+
*/
|
|
1561
|
+
company?: string;
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* The customer service phone number of the car rental company.
|
|
1565
|
+
*/
|
|
1566
|
+
customer_service_phone_number?: string;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Number of days the car is being rented.
|
|
1570
|
+
*/
|
|
1571
|
+
days_rented: number;
|
|
1572
|
+
|
|
1573
|
+
delivery?: CarRental.Delivery;
|
|
1574
|
+
|
|
1575
|
+
distance?: CarRental.Distance;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* The details of the drivers associated with the trip.
|
|
1579
|
+
*/
|
|
1580
|
+
drivers?: Array<CarRental.Driver>;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* List of additional charges being billed.
|
|
1584
|
+
*/
|
|
1585
|
+
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Indicates if the customer did not keep nor cancel their booking.
|
|
1589
|
+
*/
|
|
1590
|
+
no_show?: boolean;
|
|
1591
|
+
|
|
1592
|
+
pickup_address?: Stripe.Address;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1596
|
+
*/
|
|
1597
|
+
pickup_at: number;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Name of the pickup location.
|
|
1601
|
+
*/
|
|
1602
|
+
pickup_location_name?: string;
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* Rental rate.
|
|
1606
|
+
*/
|
|
1607
|
+
rate_amount?: number;
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1611
|
+
*/
|
|
1612
|
+
rate_interval?: CarRental.RateInterval;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* The full name of the person or entity renting the car.
|
|
1616
|
+
*/
|
|
1617
|
+
renter_name?: string;
|
|
1618
|
+
|
|
1619
|
+
return_address?: Stripe.Address;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Car return time. Measured in seconds since the Unix epoch.
|
|
1623
|
+
*/
|
|
1624
|
+
return_at: number;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* Name of the return location.
|
|
1628
|
+
*/
|
|
1629
|
+
return_location_name?: string;
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1633
|
+
*/
|
|
1634
|
+
tax_exempt?: boolean;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* The vehicle identification number of the car.
|
|
1638
|
+
*/
|
|
1639
|
+
vehicle_identification_number?: string;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
namespace CarRental {
|
|
1643
|
+
interface Affiliate {
|
|
1644
|
+
/**
|
|
1645
|
+
* The name of the affiliate that originated the purchase.
|
|
1646
|
+
*/
|
|
1647
|
+
name?: string;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
interface Delivery {
|
|
1651
|
+
/**
|
|
1652
|
+
* The delivery method for the payment
|
|
1653
|
+
*/
|
|
1654
|
+
mode?: Delivery.Mode;
|
|
1655
|
+
|
|
1656
|
+
recipient?: Delivery.Recipient;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
namespace Delivery {
|
|
1660
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1661
|
+
|
|
1662
|
+
interface Recipient {
|
|
1663
|
+
/**
|
|
1664
|
+
* The email of the recipient the ticket is delivered to.
|
|
1665
|
+
*/
|
|
1666
|
+
email?: string;
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* The name of the recipient the ticket is delivered to.
|
|
1670
|
+
*/
|
|
1671
|
+
name?: string;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1675
|
+
*/
|
|
1676
|
+
phone?: string;
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
interface Distance {
|
|
1681
|
+
/**
|
|
1682
|
+
* Distance traveled.
|
|
1683
|
+
*/
|
|
1684
|
+
amount?: number;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
|
1688
|
+
*/
|
|
1689
|
+
unit?: string;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
interface Driver {
|
|
1693
|
+
/**
|
|
1694
|
+
* Driver's identification number.
|
|
1695
|
+
*/
|
|
1696
|
+
driver_identification_number?: string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Driver's tax number.
|
|
1700
|
+
*/
|
|
1701
|
+
driver_tax_number?: string;
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Full name of the driver on the reservation.
|
|
1705
|
+
*/
|
|
1706
|
+
name?: string;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
type ExtraCharge =
|
|
1710
|
+
| 'extra_mileage'
|
|
1711
|
+
| 'gas'
|
|
1712
|
+
| 'late_return'
|
|
1713
|
+
| 'one_way_service'
|
|
1714
|
+
| 'parking_violation';
|
|
1715
|
+
|
|
1716
|
+
type RateInterval = 'day' | 'month' | 'week';
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
interface EventDetails {
|
|
1720
|
+
/**
|
|
1721
|
+
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1722
|
+
*/
|
|
1723
|
+
access_controlled_venue?: boolean;
|
|
1724
|
+
|
|
1725
|
+
address?: Stripe.Address;
|
|
1726
|
+
|
|
1727
|
+
affiliate?: EventDetails.Affiliate;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* The name of the company
|
|
1731
|
+
*/
|
|
1732
|
+
company?: string;
|
|
1733
|
+
|
|
1734
|
+
delivery?: EventDetails.Delivery;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Event end time. Measured in seconds since the Unix epoch.
|
|
1738
|
+
*/
|
|
1739
|
+
ends_at?: number;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Type of the event entertainment (concert, sports event etc)
|
|
1743
|
+
*/
|
|
1744
|
+
genre?: string;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* The name of the event.
|
|
1748
|
+
*/
|
|
1749
|
+
name?: string;
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Event start time. Measured in seconds since the Unix epoch.
|
|
1753
|
+
*/
|
|
1754
|
+
starts_at?: number;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
namespace EventDetails {
|
|
1758
|
+
interface Affiliate {
|
|
1759
|
+
/**
|
|
1760
|
+
* The name of the affiliate that originated the purchase.
|
|
1761
|
+
*/
|
|
1762
|
+
name?: string;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
interface Delivery {
|
|
1766
|
+
/**
|
|
1767
|
+
* The delivery method for the payment
|
|
1768
|
+
*/
|
|
1769
|
+
mode?: Delivery.Mode;
|
|
1770
|
+
|
|
1771
|
+
recipient?: Delivery.Recipient;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
namespace Delivery {
|
|
1775
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1776
|
+
|
|
1777
|
+
interface Recipient {
|
|
1778
|
+
/**
|
|
1779
|
+
* The email of the recipient the ticket is delivered to.
|
|
1780
|
+
*/
|
|
1781
|
+
email?: string;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* The name of the recipient the ticket is delivered to.
|
|
1785
|
+
*/
|
|
1786
|
+
name?: string;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1790
|
+
*/
|
|
1791
|
+
phone?: string;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
interface Subscription {
|
|
1797
|
+
affiliate?: Subscription.Affiliate;
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Info whether the subscription will be auto renewed upon expiry.
|
|
1801
|
+
*/
|
|
1802
|
+
auto_renewal?: boolean;
|
|
1803
|
+
|
|
1804
|
+
billing_interval?: Subscription.BillingInterval;
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1808
|
+
*/
|
|
1809
|
+
ends_at?: number;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1813
|
+
*/
|
|
1814
|
+
name?: string;
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1818
|
+
*/
|
|
1819
|
+
starts_at?: number;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
namespace Subscription {
|
|
1823
|
+
interface Affiliate {
|
|
1824
|
+
/**
|
|
1825
|
+
* The name of the affiliate that originated the purchase.
|
|
1826
|
+
*/
|
|
1827
|
+
name?: string;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
interface BillingInterval {
|
|
1831
|
+
/**
|
|
1832
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1833
|
+
*/
|
|
1834
|
+
count?: number;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1838
|
+
*/
|
|
1839
|
+
interval?: BillingInterval.Interval;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
namespace BillingInterval {
|
|
1843
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1456
1846
|
}
|
|
1457
1847
|
|
|
1458
1848
|
interface PaymentMethodConfigurationDetails {
|
|
@@ -1508,8 +1898,12 @@ declare module 'stripe' {
|
|
|
1508
1898
|
|
|
1509
1899
|
giropay?: PaymentMethodOptions.Giropay;
|
|
1510
1900
|
|
|
1901
|
+
gopay?: PaymentMethodOptions.Gopay;
|
|
1902
|
+
|
|
1511
1903
|
grabpay?: PaymentMethodOptions.Grabpay;
|
|
1512
1904
|
|
|
1905
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
|
|
1906
|
+
|
|
1513
1907
|
ideal?: PaymentMethodOptions.Ideal;
|
|
1514
1908
|
|
|
1515
1909
|
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
@@ -1546,10 +1940,18 @@ declare module 'stripe' {
|
|
|
1546
1940
|
|
|
1547
1941
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1548
1942
|
|
|
1943
|
+
paypay?: PaymentMethodOptions.Paypay;
|
|
1944
|
+
|
|
1945
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1946
|
+
|
|
1549
1947
|
pix?: PaymentMethodOptions.Pix;
|
|
1550
1948
|
|
|
1551
1949
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1552
1950
|
|
|
1951
|
+
qris?: PaymentMethodOptions.Qris;
|
|
1952
|
+
|
|
1953
|
+
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1954
|
+
|
|
1553
1955
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1554
1956
|
|
|
1555
1957
|
samsung_pay?: PaymentMethodOptions.SamsungPay;
|
|
@@ -1558,8 +1960,12 @@ declare module 'stripe' {
|
|
|
1558
1960
|
|
|
1559
1961
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
1560
1962
|
|
|
1963
|
+
shopeepay?: PaymentMethodOptions.Shopeepay;
|
|
1964
|
+
|
|
1561
1965
|
sofort?: PaymentMethodOptions.Sofort;
|
|
1562
1966
|
|
|
1967
|
+
stripe_balance?: PaymentMethodOptions.StripeBalance;
|
|
1968
|
+
|
|
1563
1969
|
swish?: PaymentMethodOptions.Swish;
|
|
1564
1970
|
|
|
1565
1971
|
twint?: PaymentMethodOptions.Twint;
|
|
@@ -1866,6 +2272,11 @@ declare module 'stripe' {
|
|
|
1866
2272
|
*/
|
|
1867
2273
|
network: Card.Network | null;
|
|
1868
2274
|
|
|
2275
|
+
/**
|
|
2276
|
+
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
2277
|
+
*/
|
|
2278
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
2279
|
+
|
|
1869
2280
|
/**
|
|
1870
2281
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1871
2282
|
*/
|
|
@@ -1886,6 +2297,11 @@ declare module 'stripe' {
|
|
|
1886
2297
|
*/
|
|
1887
2298
|
request_overcapture?: Card.RequestOvercapture;
|
|
1888
2299
|
|
|
2300
|
+
/**
|
|
2301
|
+
* Request partial authorization on this PaymentIntent.
|
|
2302
|
+
*/
|
|
2303
|
+
request_partial_authorization?: Card.RequestPartialAuthorization;
|
|
2304
|
+
|
|
1889
2305
|
/**
|
|
1890
2306
|
* 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.
|
|
1891
2307
|
*/
|
|
@@ -1916,6 +2332,8 @@ declare module 'stripe' {
|
|
|
1916
2332
|
* 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.
|
|
1917
2333
|
*/
|
|
1918
2334
|
statement_descriptor_suffix_kanji?: string;
|
|
2335
|
+
|
|
2336
|
+
statement_details?: Card.StatementDetails;
|
|
1919
2337
|
}
|
|
1920
2338
|
|
|
1921
2339
|
namespace Card {
|
|
@@ -2050,6 +2468,8 @@ declare module 'stripe' {
|
|
|
2050
2468
|
| 'unknown'
|
|
2051
2469
|
| 'visa';
|
|
2052
2470
|
|
|
2471
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2472
|
+
|
|
2053
2473
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2054
2474
|
|
|
2055
2475
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2058,9 +2478,54 @@ declare module 'stripe' {
|
|
|
2058
2478
|
|
|
2059
2479
|
type RequestOvercapture = 'if_available' | 'never';
|
|
2060
2480
|
|
|
2481
|
+
type RequestPartialAuthorization = 'if_available' | 'never';
|
|
2482
|
+
|
|
2061
2483
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2062
2484
|
|
|
2063
2485
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2486
|
+
|
|
2487
|
+
interface StatementDetails {
|
|
2488
|
+
address?: StatementDetails.Address;
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* Phone number
|
|
2492
|
+
*/
|
|
2493
|
+
phone?: string;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
namespace StatementDetails {
|
|
2497
|
+
interface Address {
|
|
2498
|
+
/**
|
|
2499
|
+
* City, district, suburb, town, or village.
|
|
2500
|
+
*/
|
|
2501
|
+
city?: string;
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2505
|
+
*/
|
|
2506
|
+
country?: string;
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Address line 1, such as the street, PO Box, or company name.
|
|
2510
|
+
*/
|
|
2511
|
+
line1?: string;
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* Address line 2, such as the apartment, suite, unit, or building.
|
|
2515
|
+
*/
|
|
2516
|
+
line2?: string;
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* ZIP or postal code.
|
|
2520
|
+
*/
|
|
2521
|
+
postal_code?: string;
|
|
2522
|
+
|
|
2523
|
+
/**
|
|
2524
|
+
* State, county, province, or region.
|
|
2525
|
+
*/
|
|
2526
|
+
state?: string;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2064
2529
|
}
|
|
2065
2530
|
|
|
2066
2531
|
interface CardPresent {
|
|
@@ -2231,6 +2696,23 @@ declare module 'stripe' {
|
|
|
2231
2696
|
setup_future_usage?: 'none';
|
|
2232
2697
|
}
|
|
2233
2698
|
|
|
2699
|
+
interface Gopay {
|
|
2700
|
+
/**
|
|
2701
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2702
|
+
*
|
|
2703
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2704
|
+
*
|
|
2705
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2706
|
+
*
|
|
2707
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
2708
|
+
*/
|
|
2709
|
+
setup_future_usage?: Gopay.SetupFutureUsage;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
namespace Gopay {
|
|
2713
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2234
2716
|
interface Grabpay {
|
|
2235
2717
|
/**
|
|
2236
2718
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2244,6 +2726,29 @@ declare module 'stripe' {
|
|
|
2244
2726
|
setup_future_usage?: 'none';
|
|
2245
2727
|
}
|
|
2246
2728
|
|
|
2729
|
+
interface IdBankTransfer {
|
|
2730
|
+
/**
|
|
2731
|
+
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2732
|
+
*/
|
|
2733
|
+
expires_after?: number | null;
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* 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.
|
|
2737
|
+
*/
|
|
2738
|
+
expires_at: number | null;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2742
|
+
*
|
|
2743
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2744
|
+
*
|
|
2745
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2746
|
+
*
|
|
2747
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
2748
|
+
*/
|
|
2749
|
+
setup_future_usage?: 'none';
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2247
2752
|
interface Ideal {
|
|
2248
2753
|
/**
|
|
2249
2754
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2542,6 +3047,11 @@ declare module 'stripe' {
|
|
|
2542
3047
|
*/
|
|
2543
3048
|
capture_method?: 'manual';
|
|
2544
3049
|
|
|
3050
|
+
/**
|
|
3051
|
+
* The line items purchased by the customer.
|
|
3052
|
+
*/
|
|
3053
|
+
line_items?: Array<Paypal.LineItem>;
|
|
3054
|
+
|
|
2545
3055
|
/**
|
|
2546
3056
|
* Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2547
3057
|
*/
|
|
@@ -2552,6 +3062,11 @@ declare module 'stripe' {
|
|
|
2552
3062
|
*/
|
|
2553
3063
|
reference: string | null;
|
|
2554
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* 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.
|
|
3067
|
+
*/
|
|
3068
|
+
reference_id?: string | null;
|
|
3069
|
+
|
|
2555
3070
|
/**
|
|
2556
3071
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2557
3072
|
*
|
|
@@ -2562,9 +3077,153 @@ declare module 'stripe' {
|
|
|
2562
3077
|
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
2563
3078
|
*/
|
|
2564
3079
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* 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.
|
|
3083
|
+
*/
|
|
3084
|
+
subsellers?: Array<string>;
|
|
2565
3085
|
}
|
|
2566
3086
|
|
|
2567
3087
|
namespace Paypal {
|
|
3088
|
+
interface LineItem {
|
|
3089
|
+
/**
|
|
3090
|
+
* Type of the line item.
|
|
3091
|
+
*/
|
|
3092
|
+
category?: LineItem.Category;
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* Description of the line item.
|
|
3096
|
+
*/
|
|
3097
|
+
description?: string;
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Descriptive name of the line item.
|
|
3101
|
+
*/
|
|
3102
|
+
name: string;
|
|
3103
|
+
|
|
3104
|
+
/**
|
|
3105
|
+
* Quantity of the line item. Cannot be a negative number.
|
|
3106
|
+
*/
|
|
3107
|
+
quantity: number;
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* Client facing stock keeping unit, article number or similar.
|
|
3111
|
+
*/
|
|
3112
|
+
sku?: string;
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* 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).
|
|
3116
|
+
*/
|
|
3117
|
+
sold_by?: string;
|
|
3118
|
+
|
|
3119
|
+
tax?: LineItem.Tax;
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3123
|
+
*/
|
|
3124
|
+
unit_amount: number;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
namespace LineItem {
|
|
3128
|
+
type Category = 'digital_goods' | 'donation' | 'physical_goods';
|
|
3129
|
+
|
|
3130
|
+
interface Tax {
|
|
3131
|
+
/**
|
|
3132
|
+
* The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3133
|
+
*/
|
|
3134
|
+
amount: number;
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* The tax behavior for the line item.
|
|
3138
|
+
*/
|
|
3139
|
+
behavior: Tax.Behavior;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
namespace Tax {
|
|
3143
|
+
type Behavior = 'exclusive' | 'inclusive';
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
interface Paypay {}
|
|
3151
|
+
|
|
3152
|
+
interface Payto {
|
|
3153
|
+
mandate_options?: Payto.MandateOptions;
|
|
3154
|
+
|
|
3155
|
+
/**
|
|
3156
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3157
|
+
*
|
|
3158
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3159
|
+
*
|
|
3160
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3161
|
+
*
|
|
3162
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
3163
|
+
*/
|
|
3164
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
namespace Payto {
|
|
3168
|
+
interface MandateOptions {
|
|
3169
|
+
/**
|
|
3170
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
3171
|
+
*/
|
|
3172
|
+
amount: number | null;
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* 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.
|
|
3176
|
+
*/
|
|
3177
|
+
amount_type: MandateOptions.AmountType | null;
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
3181
|
+
*/
|
|
3182
|
+
end_date: string | null;
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* The periodicity at which payments will be collected.
|
|
3186
|
+
*/
|
|
3187
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* 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.
|
|
3191
|
+
*/
|
|
3192
|
+
payments_per_period: number | null;
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
3196
|
+
*/
|
|
3197
|
+
purpose: MandateOptions.Purpose | null;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
namespace MandateOptions {
|
|
3201
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3202
|
+
|
|
3203
|
+
type PaymentSchedule =
|
|
3204
|
+
| 'adhoc'
|
|
3205
|
+
| 'annual'
|
|
3206
|
+
| 'daily'
|
|
3207
|
+
| 'fortnightly'
|
|
3208
|
+
| 'monthly'
|
|
3209
|
+
| 'quarterly'
|
|
3210
|
+
| 'semi_annual'
|
|
3211
|
+
| 'weekly';
|
|
3212
|
+
|
|
3213
|
+
type Purpose =
|
|
3214
|
+
| 'dependant_support'
|
|
3215
|
+
| 'government'
|
|
3216
|
+
| 'loan'
|
|
3217
|
+
| 'mortgage'
|
|
3218
|
+
| 'other'
|
|
3219
|
+
| 'pension'
|
|
3220
|
+
| 'personal'
|
|
3221
|
+
| 'retail'
|
|
3222
|
+
| 'salary'
|
|
3223
|
+
| 'tax'
|
|
3224
|
+
| 'utility';
|
|
3225
|
+
}
|
|
3226
|
+
|
|
2568
3227
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2569
3228
|
}
|
|
2570
3229
|
|
|
@@ -2584,6 +3243,8 @@ declare module 'stripe' {
|
|
|
2584
3243
|
*/
|
|
2585
3244
|
expires_at: number | null;
|
|
2586
3245
|
|
|
3246
|
+
mandate_options?: Pix.MandateOptions;
|
|
3247
|
+
|
|
2587
3248
|
/**
|
|
2588
3249
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2589
3250
|
*
|
|
@@ -2593,11 +3254,68 @@ declare module 'stripe' {
|
|
|
2593
3254
|
*
|
|
2594
3255
|
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
2595
3256
|
*/
|
|
2596
|
-
setup_future_usage?:
|
|
3257
|
+
setup_future_usage?: Pix.SetupFutureUsage;
|
|
2597
3258
|
}
|
|
2598
3259
|
|
|
2599
3260
|
namespace Pix {
|
|
2600
3261
|
type AmountIncludesIof = 'always' | 'never';
|
|
3262
|
+
|
|
3263
|
+
interface MandateOptions {
|
|
3264
|
+
/**
|
|
3265
|
+
* Amount to be charged for future payments.
|
|
3266
|
+
*/
|
|
3267
|
+
amount?: number;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* Determines if the amount includes the IOF tax.
|
|
3271
|
+
*/
|
|
3272
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Type of amount.
|
|
3276
|
+
*/
|
|
3277
|
+
amount_type?: MandateOptions.AmountType;
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
3281
|
+
*/
|
|
3282
|
+
currency?: string;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
3286
|
+
*/
|
|
3287
|
+
end_date?: string;
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* Schedule at which the future payments will be charged.
|
|
3291
|
+
*/
|
|
3292
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Subscription name displayed to buyers in their bank app.
|
|
3296
|
+
*/
|
|
3297
|
+
reference?: string;
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
* Start date of the mandate, in `YYYY-MM-DD`.
|
|
3301
|
+
*/
|
|
3302
|
+
start_date?: string;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
namespace MandateOptions {
|
|
3306
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
3307
|
+
|
|
3308
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3309
|
+
|
|
3310
|
+
type PaymentSchedule =
|
|
3311
|
+
| 'halfyearly'
|
|
3312
|
+
| 'monthly'
|
|
3313
|
+
| 'quarterly'
|
|
3314
|
+
| 'weekly'
|
|
3315
|
+
| 'yearly';
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2601
3319
|
}
|
|
2602
3320
|
|
|
2603
3321
|
interface Promptpay {
|
|
@@ -2613,6 +3331,21 @@ declare module 'stripe' {
|
|
|
2613
3331
|
setup_future_usage?: 'none';
|
|
2614
3332
|
}
|
|
2615
3333
|
|
|
3334
|
+
interface Qris {
|
|
3335
|
+
/**
|
|
3336
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3337
|
+
*
|
|
3338
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3339
|
+
*
|
|
3340
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3341
|
+
*
|
|
3342
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
3343
|
+
*/
|
|
3344
|
+
setup_future_usage?: 'none';
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
interface Rechnung {}
|
|
3348
|
+
|
|
2616
3349
|
interface RevolutPay {
|
|
2617
3350
|
/**
|
|
2618
3351
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2680,6 +3413,19 @@ declare module 'stripe' {
|
|
|
2680
3413
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2681
3414
|
}
|
|
2682
3415
|
|
|
3416
|
+
interface Shopeepay {
|
|
3417
|
+
/**
|
|
3418
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3419
|
+
*
|
|
3420
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3421
|
+
*
|
|
3422
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3423
|
+
*
|
|
3424
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
3425
|
+
*/
|
|
3426
|
+
setup_future_usage?: 'none';
|
|
3427
|
+
}
|
|
3428
|
+
|
|
2683
3429
|
interface Sofort {
|
|
2684
3430
|
/**
|
|
2685
3431
|
* Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
@@ -2711,6 +3457,23 @@ declare module 'stripe' {
|
|
|
2711
3457
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2712
3458
|
}
|
|
2713
3459
|
|
|
3460
|
+
interface StripeBalance {
|
|
3461
|
+
/**
|
|
3462
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3463
|
+
*
|
|
3464
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3465
|
+
*
|
|
3466
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3467
|
+
*
|
|
3468
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
3469
|
+
*/
|
|
3470
|
+
setup_future_usage?: StripeBalance.SetupFutureUsage;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
namespace StripeBalance {
|
|
3474
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
3475
|
+
}
|
|
3476
|
+
|
|
2714
3477
|
interface Swish {
|
|
2715
3478
|
/**
|
|
2716
3479
|
* A reference for this payment to be displayed in the Swish app.
|
|
@@ -2778,6 +3541,8 @@ declare module 'stripe' {
|
|
|
2778
3541
|
interface FinancialConnections {
|
|
2779
3542
|
filters?: FinancialConnections.Filters;
|
|
2780
3543
|
|
|
3544
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3545
|
+
|
|
2781
3546
|
/**
|
|
2782
3547
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2783
3548
|
*/
|
|
@@ -2800,19 +3565,39 @@ declare module 'stripe' {
|
|
|
2800
3565
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2801
3566
|
*/
|
|
2802
3567
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* The institution to use to filter for possible accounts to link.
|
|
3571
|
+
*/
|
|
3572
|
+
institution?: string;
|
|
2803
3573
|
}
|
|
2804
3574
|
|
|
2805
3575
|
namespace Filters {
|
|
2806
3576
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2807
3577
|
}
|
|
2808
3578
|
|
|
3579
|
+
interface ManualEntry {
|
|
3580
|
+
/**
|
|
3581
|
+
* Settings for configuring manual entry of account details.
|
|
3582
|
+
*/
|
|
3583
|
+
mode?: ManualEntry.Mode;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
namespace ManualEntry {
|
|
3587
|
+
type Mode = 'automatic' | 'custom';
|
|
3588
|
+
}
|
|
3589
|
+
|
|
2809
3590
|
type Permission =
|
|
2810
3591
|
| 'balances'
|
|
2811
3592
|
| 'ownership'
|
|
2812
3593
|
| 'payment_method'
|
|
2813
3594
|
| 'transactions';
|
|
2814
3595
|
|
|
2815
|
-
type Prefetch =
|
|
3596
|
+
type Prefetch =
|
|
3597
|
+
| 'balances'
|
|
3598
|
+
| 'inferred_balances'
|
|
3599
|
+
| 'ownership'
|
|
3600
|
+
| 'transactions';
|
|
2816
3601
|
}
|
|
2817
3602
|
|
|
2818
3603
|
interface MandateOptions {
|
|
@@ -2911,6 +3696,8 @@ declare module 'stripe' {
|
|
|
2911
3696
|
}
|
|
2912
3697
|
}
|
|
2913
3698
|
|
|
3699
|
+
type SecretKeyConfirmation = 'optional' | 'required';
|
|
3700
|
+
|
|
2914
3701
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2915
3702
|
|
|
2916
3703
|
interface Shipping {
|