stripe 20.1.0-alpha.4 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -1920
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +1 -115
- package/cjs/apiVersion.js +3 -2
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Mandates.js +0 -5
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/PaymentMethods.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Subscriptions.js +0 -4
- package/cjs/resources.js +2 -148
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +0 -100
- package/esm/apiVersion.js +2 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Mandates.js +0 -5
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/PaymentMethods.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Subscriptions.js +0 -4
- package/esm/resources.js +0 -140
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinks.d.ts +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +2 -65
- package/types/AccountSessionsResource.d.ts +0 -264
- package/types/Accounts.d.ts +25 -249
- package/types/AccountsResource.d.ts +114 -756
- package/types/ApplicationFees.d.ts +1 -6
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -84
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +2 -3
- package/types/BankAccounts.d.ts +10 -12
- package/types/Billing/AlertTriggereds.d.ts +1 -16
- package/types/Billing/Alerts.d.ts +2 -117
- package/types/Billing/AlertsResource.d.ts +2 -149
- package/types/Billing/CreditBalanceSummary.d.ts +3 -119
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -14
- package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +4 -74
- package/types/Billing/CreditGrantsResource.d.ts +4 -35
- package/types/Billing/MeterEventSummaries.d.ts +0 -7
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- package/types/Billing/Meters.d.ts +0 -5
- package/types/Billing/MetersResource.d.ts +0 -17
- package/types/BillingPortal/Configurations.d.ts +10 -3
- package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
- package/types/BillingPortal/Sessions.d.ts +7 -7
- package/types/BillingPortal/SessionsResource.d.ts +7 -7
- package/types/Capabilities.d.ts +16 -18
- package/types/Cards.d.ts +2 -21
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -193
- package/types/ChargesResource.d.ts +88 -3868
- package/types/Checkout/Sessions.d.ts +20 -355
- package/types/Checkout/SessionsResource.d.ts +59 -467
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -123
- package/types/Coupons.d.ts +3 -38
- package/types/CouponsResource.d.ts +2 -25
- package/types/CreditNoteLineItems.d.ts +3 -17
- package/types/CreditNotes.d.ts +8 -5
- package/types/CreditNotesResource.d.ts +5 -5
- package/types/CustomerBalanceTransactions.d.ts +9 -6
- package/types/CustomerCashBalanceTransactions.d.ts +13 -10
- package/types/CustomerSessions.d.ts +1 -42
- package/types/CustomerSessionsResource.d.ts +0 -41
- package/types/Customers.d.ts +8 -5
- package/types/CustomersResource.d.ts +21 -23
- package/types/Discounts.d.ts +6 -16
- package/types/Disputes.d.ts +3 -43
- package/types/DisputesResource.d.ts +1 -12
- package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
- package/types/Errors.d.ts +0 -85
- package/types/EventTypes.d.ts +0 -630
- package/types/Events.d.ts +1 -97
- package/types/ExchangeRates.d.ts +2 -2
- package/types/FeeRefunds.d.ts +2 -2
- package/types/FileLinks.d.ts +1 -1
- package/types/FileLinksResource.d.ts +2 -2
- package/types/Files.d.ts +4 -4
- package/types/FilesResource.d.ts +3 -3
- package/types/FinancialConnections/Accounts.d.ts +4 -37
- package/types/FinancialConnections/AccountsResource.d.ts +6 -38
- package/types/FinancialConnections/Sessions.d.ts +3 -51
- package/types/FinancialConnections/SessionsResource.d.ts +4 -41
- package/types/Forwarding/Requests.d.ts +1 -1
- package/types/Forwarding/RequestsResource.d.ts +1 -1
- package/types/FundingInstructions.d.ts +2 -2
- package/types/Identity/VerificationReports.d.ts +8 -18
- package/types/Identity/VerificationReportsResource.d.ts +0 -5
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +10 -130
- package/types/InvoiceItemsResource.d.ts +16 -114
- package/types/InvoiceLineItems.d.ts +12 -172
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +60 -217
- package/types/InvoicesResource.d.ts +141 -1819
- package/types/Issuing/Authorizations.d.ts +20 -20
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/Cardholders.d.ts +13 -13
- package/types/Issuing/CardholdersResource.d.ts +21 -22
- package/types/Issuing/Cards.d.ts +10 -10
- package/types/Issuing/CardsResource.d.ts +13 -13
- package/types/Issuing/Disputes.d.ts +7 -7
- package/types/Issuing/DisputesResource.d.ts +5 -5
- package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
- package/types/Issuing/Tokens.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +12 -17
- package/types/Issuing/TransactionsResource.d.ts +1 -6
- package/types/LineItems.d.ts +4 -48
- package/types/LoginLinks.d.ts +1 -1
- package/types/Mandates.d.ts +1 -69
- package/types/MandatesResource.d.ts +0 -31
- package/types/PaymentAttemptRecords.d.ts +119 -135
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
- package/types/PaymentIntents.d.ts +48 -744
- package/types/PaymentIntentsResource.d.ts +6824 -19519
- package/types/PaymentLinks.d.ts +7 -12
- package/types/PaymentLinksResource.d.ts +28 -38
- package/types/PaymentMethodConfigurations.d.ts +4 -184
- package/types/PaymentMethodConfigurationsResource.d.ts +76 -326
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +10 -130
- package/types/PaymentMethodsResource.d.ts +7 -136
- package/types/PaymentRecords.d.ts +126 -135
- package/types/PaymentRecordsResource.d.ts +7 -7
- package/types/Payouts.d.ts +7 -7
- package/types/PayoutsResource.d.ts +3 -3
- package/types/Persons.d.ts +21 -51
- package/types/Plans.d.ts +5 -5
- package/types/PlansResource.d.ts +6 -6
- package/types/Prices.d.ts +6 -28
- package/types/PricesResource.d.ts +10 -32
- package/types/Products.d.ts +10 -10
- package/types/ProductsResource.d.ts +14 -14
- package/types/PromotionCodes.d.ts +5 -5
- package/types/PromotionCodesResource.d.ts +5 -5
- package/types/Quotes.d.ts +14 -884
- package/types/QuotesResource.d.ts +302 -3250
- package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
- package/types/Radar/ValueListItems.d.ts +1 -1
- package/types/Radar/ValueLists.d.ts +2 -2
- package/types/Radar/ValueListsResource.d.ts +2 -2
- package/types/Refunds.d.ts +3 -17
- package/types/RefundsResource.d.ts +3 -3
- package/types/Reporting/ReportRuns.d.ts +3 -3
- package/types/Reporting/ReportRunsResource.d.ts +2 -2
- package/types/Reporting/ReportTypes.d.ts +3 -3
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +22 -60
- package/types/SetupIntents.d.ts +22 -178
- package/types/SetupIntentsResource.d.ts +50 -763
- package/types/ShippingRates.d.ts +3 -3
- package/types/ShippingRatesResource.d.ts +3 -3
- package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/types/SourceMandateNotifications.d.ts +3 -3
- package/types/Sources.d.ts +5 -34
- package/types/SourcesResource.d.ts +2 -2
- package/types/SubscriptionItems.d.ts +7 -46
- package/types/SubscriptionItemsResource.d.ts +22 -165
- package/types/SubscriptionSchedules.d.ts +9 -333
- package/types/SubscriptionSchedulesResource.d.ts +79 -1535
- package/types/Subscriptions.d.ts +41 -273
- package/types/SubscriptionsResource.d.ts +94 -768
- package/types/Tax/Associations.d.ts +3 -3
- package/types/Tax/AssociationsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +7 -7
- package/types/Tax/Calculations.d.ts +12 -12
- package/types/Tax/CalculationsResource.d.ts +7 -7
- package/types/Tax/Registrations.d.ts +3 -3
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Tax/SettingsResource.d.ts +1 -1
- package/types/Tax/TransactionLineItems.d.ts +5 -5
- package/types/Tax/Transactions.d.ts +9 -9
- package/types/Tax/TransactionsResource.d.ts +10 -10
- package/types/TaxIds.d.ts +6 -6
- package/types/TaxIdsResource.d.ts +4 -4
- package/types/TaxRates.d.ts +1 -1
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/Configurations.d.ts +0 -9
- package/types/Terminal/ConfigurationsResource.d.ts +0 -28
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/Locations.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +3 -3
- package/types/Terminal/Readers.d.ts +10 -30
- package/types/Terminal/ReadersResource.d.ts +7 -7
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -107
- package/types/TestHelpers/CustomersResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -27
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -27
- package/types/Tokens.d.ts +4 -4
- package/types/TokensResource.d.ts +17 -85
- package/types/Topups.d.ts +3 -3
- package/types/TopupsResource.d.ts +3 -3
- package/types/TransferReversals.d.ts +4 -4
- package/types/Transfers.d.ts +5 -14
- package/types/TransfersResource.d.ts +6 -13
- package/types/Treasury/CreditReversals.d.ts +3 -3
- package/types/Treasury/CreditReversalsResource.d.ts +1 -1
- package/types/Treasury/DebitReversals.d.ts +3 -3
- package/types/Treasury/DebitReversalsResource.d.ts +1 -1
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +2 -39
- package/types/Treasury/InboundTransfers.d.ts +4 -4
- package/types/Treasury/InboundTransfersResource.d.ts +2 -2
- package/types/Treasury/OutboundPayments.d.ts +5 -5
- package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
- package/types/Treasury/OutboundTransfers.d.ts +4 -30
- package/types/Treasury/OutboundTransfersResource.d.ts +3 -29
- package/types/Treasury/ReceivedCredits.d.ts +9 -35
- package/types/Treasury/ReceivedDebits.d.ts +6 -37
- package/types/Treasury/TransactionEntries.d.ts +11 -11
- package/types/Treasury/Transactions.d.ts +11 -11
- package/types/V2/Core/AccountLinks.d.ts +13 -21
- package/types/V2/Core/AccountLinksResource.d.ts +8 -16
- package/types/V2/Core/AccountPersons.d.ts +55 -10
- package/types/V2/Core/AccountTokensResource.d.ts +99 -267
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
- package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
- package/types/V2/Core/Accounts.d.ts +263 -2861
- package/types/V2/Core/AccountsResource.d.ts +594 -2554
- package/types/V2/Core/EventTypes.d.ts +10 -4813
- package/types/V2/Core/Events.d.ts +0 -61
- package/types/V2/Core/EventsResource.d.ts +1 -11
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +5 -79
- package/types/Webhooks.d.ts +0 -2
- package/types/apiVersion.d.ts +2 -1
- package/types/index.d.ts +0 -233
- package/types/lib.d.ts +0 -10
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/BalanceTransfers.js +0 -9
- package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +0 -28
- package/cjs/resources/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/FxQuotes.js +0 -15
- package/cjs/resources/Identity/BlocklistEntries.js +0 -25
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Issuing/Programs.js +0 -22
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Privacy/RedactionJobs.js +0 -42
- package/cjs/resources/ProductCatalog/TrialOffers.js +0 -12
- package/cjs/resources/Radar/AccountEvaluations.js +0 -20
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +0 -16
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/BillSettings.js +0 -27
- package/cjs/resources/V2/Billing/Cadences.js +0 -23
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
- package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
- package/cjs/resources/V2/Billing/Intents.js +0 -36
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
- package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
- package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
- package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -12
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -26
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
- package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
- package/cjs/resources/V2/Billing/Profiles.js +0 -19
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
- package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
- package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
- package/cjs/resources/V2/Billing/RateCards.js +0 -29
- package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +0 -21
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
- package/cjs/resources/V2/Reporting/ReportRuns.js +0 -13
- package/cjs/resources/V2/Reporting/Reports.js +0 -12
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceTransfers.js +0 -6
- package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +0 -25
- package/esm/resources/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/FxQuotes.js +0 -12
- package/esm/resources/Identity/BlocklistEntries.js +0 -22
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Issuing/Programs.js +0 -19
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Privacy/RedactionJobs.js +0 -39
- package/esm/resources/ProductCatalog/TrialOffers.js +0 -9
- package/esm/resources/Radar/AccountEvaluations.js +0 -17
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +0 -13
- package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/BillSettings.js +0 -24
- package/esm/resources/V2/Billing/Cadences.js +0 -20
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
- package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
- package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
- package/esm/resources/V2/Billing/Intents.js +0 -33
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
- package/esm/resources/V2/Billing/LicenseFees.js +0 -24
- package/esm/resources/V2/Billing/LicensedItems.js +0 -22
- package/esm/resources/V2/Billing/MeteredItems.js +0 -19
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -9
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -23
- package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
- package/esm/resources/V2/Billing/PricingPlans.js +0 -26
- package/esm/resources/V2/Billing/Profiles.js +0 -16
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
- package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
- package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
- package/esm/resources/V2/Billing/RateCards.js +0 -26
- package/esm/resources/V2/Billing/ServiceActions.js +0 -17
- package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +0 -18
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
- package/esm/resources/V2/Reporting/ReportRuns.js +0 -10
- package/esm/resources/V2/Reporting/Reports.js +0 -9
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/BalanceTransfers.d.ts +0 -122
- package/types/BalanceTransfersResource.d.ts +0 -87
- package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
- package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -694
- package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -58
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/DelegatedCheckout/RequestedSessions.d.ts +0 -399
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +0 -599
- package/types/ExternalAccountsResource.d.ts +0 -304
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -98
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -155
- package/types/FxQuotesResource.d.ts +0 -130
- package/types/Identity/BlocklistEntries.d.ts +0 -78
- package/types/Identity/BlocklistEntriesResource.d.ts +0 -146
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Programs.d.ts +0 -42
- package/types/Issuing/ProgramsResource.d.ts +0 -96
- package/types/Issuing/Settlements.d.ts +0 -113
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1163
- package/types/OrdersResource.d.ts +0 -5505
- package/types/PaymentMethodBalances.d.ts +0 -63
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
- package/types/Privacy/RedactionJobs.d.ts +0 -111
- package/types/Privacy/RedactionJobsResource.d.ts +0 -230
- package/types/ProductCatalog/TrialOffers.d.ts +0 -77
- package/types/ProductCatalog/TrialOffersResource.d.ts +0 -80
- package/types/QuoteLines.d.ts +0 -651
- package/types/QuotePreviewInvoices.d.ts +0 -1784
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -1034
- package/types/Radar/AccountEvaluations.d.ts +0 -88
- package/types/Radar/AccountEvaluationsResource.d.ts +0 -148
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +0 -130
- package/types/TransitBalances.d.ts +0 -40
- package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/BillSettings.d.ts +0 -120
- package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
- package/types/V2/Billing/Cadences.d.ts +0 -735
- package/types/V2/Billing/CadencesResource.d.ts +0 -516
- package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
- package/types/V2/Billing/CollectionSettings.d.ts +0 -341
- package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
- package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
- package/types/V2/Billing/IntentActions.d.ts +0 -459
- package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
- package/types/V2/Billing/Intents.d.ts +0 -117
- package/types/V2/Billing/IntentsResource.d.ts +0 -575
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
- package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/LicenseFees.d.ts +0 -164
- package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
- package/types/V2/Billing/LicensedItems.d.ts +0 -73
- package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
- package/types/V2/Billing/MeteredItems.d.ts +0 -101
- package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
- package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +0 -57
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +0 -40
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -120
- package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/PricingPlans.d.ts +0 -84
- package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
- package/types/V2/Billing/Profiles.d.ts +0 -70
- package/types/V2/Billing/ProfilesResource.d.ts +0 -150
- package/types/V2/Billing/RateCardRates.d.ts +0 -144
- package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
- package/types/V2/Billing/RateCardVersions.d.ts +0 -39
- package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/RateCards.d.ts +0 -98
- package/types/V2/Billing/RateCardsResource.d.ts +0 -162
- package/types/V2/Billing/ServiceActions.d.ts +0 -298
- package/types/V2/Billing/ServiceActionsResource.d.ts +0 -394
- package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -46
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -122
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/CurrencyConversions.d.ts +0 -98
- package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +0 -141
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -186
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -126
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -250
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -156
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -222
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -127
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -323
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -259
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -330
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -225
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -201
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -347
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -248
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -200
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -227
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/Payments/OffSessionPayments.d.ts +0 -249
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -306
- package/types/V2/Reporting/ReportRuns.d.ts +0 -154
- package/types/V2/Reporting/ReportRunsResource.d.ts +0 -75
- package/types/V2/Reporting/Reports.d.ts +0 -120
- package/types/V2/Reporting/ReportsResource.d.ts +0 -30
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -85
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -49
|
@@ -9,11 +9,11 @@ declare module 'stripe' {
|
|
|
9
9
|
* see the history of payment attempts for a particular session.
|
|
10
10
|
*
|
|
11
11
|
* A PaymentIntent transitions through
|
|
12
|
-
* [multiple statuses](https://stripe.com/
|
|
12
|
+
* [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
|
|
13
13
|
* throughout its lifetime as it interfaces with Stripe.js to perform
|
|
14
14
|
* authentication flows and ultimately creates at most one successful charge.
|
|
15
15
|
*
|
|
16
|
-
* Related guide: [Payment Intents API](https://stripe.com/
|
|
16
|
+
* Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
|
|
17
17
|
*/
|
|
18
18
|
interface PaymentIntent {
|
|
19
19
|
/**
|
|
@@ -27,12 +27,7 @@ declare module 'stripe' {
|
|
|
27
27
|
object: 'payment_intent';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
allocated_funds?: PaymentIntent.AllocatedFunds | null;
|
|
33
|
-
|
|
34
|
-
/**
|
|
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).
|
|
30
|
+
* Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/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://docs.stripe.com/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).
|
|
36
31
|
*/
|
|
37
32
|
amount: number;
|
|
38
33
|
|
|
@@ -54,7 +49,7 @@ declare module 'stripe' {
|
|
|
54
49
|
application: string | Stripe.Application | null;
|
|
55
50
|
|
|
56
51
|
/**
|
|
57
|
-
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/
|
|
52
|
+
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
58
53
|
*/
|
|
59
54
|
application_fee_amount: number | null;
|
|
60
55
|
|
|
@@ -83,7 +78,7 @@ declare module 'stripe' {
|
|
|
83
78
|
*
|
|
84
79
|
* The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
85
80
|
*
|
|
86
|
-
* Refer to our docs to [accept a payment](https://stripe.com/
|
|
81
|
+
* Refer to our docs to [accept a payment](https://docs.stripe.com/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
|
|
87
82
|
*/
|
|
88
83
|
client_secret: string | null;
|
|
89
84
|
|
|
@@ -107,18 +102,18 @@ declare module 'stripe' {
|
|
|
107
102
|
*
|
|
108
103
|
* Payment methods attached to other Customers cannot be used with this PaymentIntent.
|
|
109
104
|
*
|
|
110
|
-
* If [setup_future_usage](https://stripe.com
|
|
105
|
+
* If [setup_future_usage](https://api.stripe.com#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 Customer 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 Customer instead.
|
|
111
106
|
*/
|
|
112
107
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
113
108
|
|
|
114
109
|
/**
|
|
115
|
-
* ID of the Account this PaymentIntent belongs to, if one exists.
|
|
110
|
+
* ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
|
|
116
111
|
*
|
|
117
112
|
* Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
118
113
|
*
|
|
119
|
-
* If [setup_future_usage](https://stripe.com
|
|
114
|
+
* If [setup_future_usage](https://api.stripe.com#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
115
|
*/
|
|
121
|
-
customer_account
|
|
116
|
+
customer_account: string | null;
|
|
122
117
|
|
|
123
118
|
/**
|
|
124
119
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
@@ -132,11 +127,6 @@ declare module 'stripe' {
|
|
|
132
127
|
PaymentIntent.ExcludedPaymentMethodType
|
|
133
128
|
> | null;
|
|
134
129
|
|
|
135
|
-
/**
|
|
136
|
-
* The FX Quote used for the PaymentIntent.
|
|
137
|
-
*/
|
|
138
|
-
fx_quote?: string | null;
|
|
139
|
-
|
|
140
130
|
hooks?: PaymentIntent.Hooks;
|
|
141
131
|
|
|
142
132
|
/**
|
|
@@ -145,7 +135,7 @@ declare module 'stripe' {
|
|
|
145
135
|
last_payment_error: PaymentIntent.LastPaymentError | null;
|
|
146
136
|
|
|
147
137
|
/**
|
|
148
|
-
* ID of the latest [Charge object](https://stripe.com/
|
|
138
|
+
* ID of the latest [Charge object](https://docs.stripe.com/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
|
|
149
139
|
*/
|
|
150
140
|
latest_charge: string | Stripe.Charge | null;
|
|
151
141
|
|
|
@@ -155,7 +145,7 @@ declare module 'stripe' {
|
|
|
155
145
|
livemode: boolean;
|
|
156
146
|
|
|
157
147
|
/**
|
|
158
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
148
|
+
* 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. Learn more about [storing information in metadata](https://docs.stripe.com/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
|
|
159
149
|
*/
|
|
160
150
|
metadata: Stripe.Metadata;
|
|
161
151
|
|
|
@@ -165,7 +155,8 @@ declare module 'stripe' {
|
|
|
165
155
|
next_action: PaymentIntent.NextAction | null;
|
|
166
156
|
|
|
167
157
|
/**
|
|
168
|
-
*
|
|
158
|
+
* You can specify the settlement merchant as the
|
|
159
|
+
* connected account using the `on_behalf_of` attribute on the charge. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts) for details.
|
|
169
160
|
*/
|
|
170
161
|
on_behalf_of: string | Stripe.Account | null;
|
|
171
162
|
|
|
@@ -177,7 +168,7 @@ declare module 'stripe' {
|
|
|
177
168
|
payment_method: string | Stripe.PaymentMethod | null;
|
|
178
169
|
|
|
179
170
|
/**
|
|
180
|
-
* Information about the [payment method configuration](https://stripe.com/
|
|
171
|
+
* Information about the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) used for this PaymentIntent.
|
|
181
172
|
*/
|
|
182
173
|
payment_method_configuration_details: PaymentIntent.PaymentMethodConfigurationDetails | null;
|
|
183
174
|
|
|
@@ -191,11 +182,6 @@ declare module 'stripe' {
|
|
|
191
182
|
*/
|
|
192
183
|
payment_method_types: Array<string>;
|
|
193
184
|
|
|
194
|
-
/**
|
|
195
|
-
* When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
196
|
-
*/
|
|
197
|
-
payments_orchestration?: PaymentIntent.PaymentsOrchestration | null;
|
|
198
|
-
|
|
199
185
|
presentment_details?: PaymentIntent.PresentmentDetails;
|
|
200
186
|
|
|
201
187
|
/**
|
|
@@ -213,11 +199,6 @@ declare module 'stripe' {
|
|
|
213
199
|
*/
|
|
214
200
|
review: string | Stripe.Review | null;
|
|
215
201
|
|
|
216
|
-
/**
|
|
217
|
-
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
218
|
-
*/
|
|
219
|
-
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
220
|
-
|
|
221
202
|
/**
|
|
222
203
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
223
204
|
*
|
|
@@ -256,39 +237,32 @@ declare module 'stripe' {
|
|
|
256
237
|
statement_descriptor_suffix: string | null;
|
|
257
238
|
|
|
258
239
|
/**
|
|
259
|
-
* Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/
|
|
240
|
+
* Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses).
|
|
260
241
|
*/
|
|
261
242
|
status: PaymentIntent.Status;
|
|
262
243
|
|
|
263
244
|
/**
|
|
264
|
-
* The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
245
|
+
* The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
265
246
|
*/
|
|
266
|
-
transfer_data
|
|
247
|
+
transfer_data?: PaymentIntent.TransferData | null;
|
|
267
248
|
|
|
268
249
|
/**
|
|
269
|
-
* A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
250
|
+
* A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
270
251
|
*/
|
|
271
252
|
transfer_group: string | null;
|
|
272
253
|
}
|
|
273
254
|
|
|
274
255
|
namespace PaymentIntent {
|
|
275
|
-
interface AllocatedFunds {
|
|
276
|
-
/**
|
|
277
|
-
* Allocated Funds configuration for this PaymentIntent.
|
|
278
|
-
*/
|
|
279
|
-
enabled: boolean | null;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
256
|
interface AmountDetails {
|
|
283
257
|
/**
|
|
284
|
-
* The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
258
|
+
* The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
285
259
|
*
|
|
286
260
|
* This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
287
261
|
*/
|
|
288
262
|
discount_amount?: number;
|
|
289
263
|
|
|
290
264
|
/**
|
|
291
|
-
* A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of
|
|
265
|
+
* A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
292
266
|
*/
|
|
293
267
|
line_items?: ApiList<Stripe.PaymentIntentAmountDetailsLineItem>;
|
|
294
268
|
|
|
@@ -302,7 +276,7 @@ declare module 'stripe' {
|
|
|
302
276
|
namespace AmountDetails {
|
|
303
277
|
interface Shipping {
|
|
304
278
|
/**
|
|
305
|
-
* If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/
|
|
279
|
+
* If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
306
280
|
*/
|
|
307
281
|
amount: number | null;
|
|
308
282
|
|
|
@@ -319,7 +293,7 @@ declare module 'stripe' {
|
|
|
319
293
|
|
|
320
294
|
interface Tax {
|
|
321
295
|
/**
|
|
322
|
-
* The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
296
|
+
* The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
323
297
|
*
|
|
324
298
|
* This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
325
299
|
*/
|
|
@@ -338,7 +312,7 @@ declare module 'stripe' {
|
|
|
338
312
|
/**
|
|
339
313
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
340
314
|
*
|
|
341
|
-
* Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/
|
|
315
|
+
* Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
342
316
|
*/
|
|
343
317
|
allow_redirects?: AutomaticPaymentMethods.AllowRedirects;
|
|
344
318
|
|
|
@@ -386,9 +360,7 @@ declare module 'stripe' {
|
|
|
386
360
|
| 'eps'
|
|
387
361
|
| 'fpx'
|
|
388
362
|
| 'giropay'
|
|
389
|
-
| 'gopay'
|
|
390
363
|
| 'grabpay'
|
|
391
|
-
| 'id_bank_transfer'
|
|
392
364
|
| 'ideal'
|
|
393
365
|
| 'kakao_pay'
|
|
394
366
|
| 'klarna'
|
|
@@ -405,19 +377,14 @@ declare module 'stripe' {
|
|
|
405
377
|
| 'payco'
|
|
406
378
|
| 'paynow'
|
|
407
379
|
| 'paypal'
|
|
408
|
-
| 'paypay'
|
|
409
380
|
| 'payto'
|
|
410
381
|
| 'pix'
|
|
411
382
|
| 'promptpay'
|
|
412
|
-
| 'qris'
|
|
413
|
-
| 'rechnung'
|
|
414
383
|
| 'revolut_pay'
|
|
415
384
|
| 'samsung_pay'
|
|
416
385
|
| 'satispay'
|
|
417
386
|
| 'sepa_debit'
|
|
418
|
-
| 'shopeepay'
|
|
419
387
|
| 'sofort'
|
|
420
|
-
| 'stripe_balance'
|
|
421
388
|
| 'swish'
|
|
422
389
|
| 'twint'
|
|
423
390
|
| 'us_bank_account'
|
|
@@ -436,7 +403,7 @@ declare module 'stripe' {
|
|
|
436
403
|
namespace Inputs {
|
|
437
404
|
interface Tax {
|
|
438
405
|
/**
|
|
439
|
-
* The [TaxCalculation](https://stripe.com/
|
|
406
|
+
* The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
440
407
|
*/
|
|
441
408
|
calculation: string;
|
|
442
409
|
}
|
|
@@ -445,7 +412,7 @@ declare module 'stripe' {
|
|
|
445
412
|
|
|
446
413
|
interface LastPaymentError {
|
|
447
414
|
/**
|
|
448
|
-
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/
|
|
415
|
+
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
|
|
449
416
|
*/
|
|
450
417
|
advice_code?: string;
|
|
451
418
|
|
|
@@ -455,17 +422,17 @@ declare module 'stripe' {
|
|
|
455
422
|
charge?: string;
|
|
456
423
|
|
|
457
424
|
/**
|
|
458
|
-
* For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/
|
|
425
|
+
* For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
|
|
459
426
|
*/
|
|
460
427
|
code?: LastPaymentError.Code;
|
|
461
428
|
|
|
462
429
|
/**
|
|
463
|
-
* For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/
|
|
430
|
+
* For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
|
|
464
431
|
*/
|
|
465
432
|
decline_code?: string;
|
|
466
433
|
|
|
467
434
|
/**
|
|
468
|
-
* A URL to more information about the [error code](https://stripe.com/
|
|
435
|
+
* A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
469
436
|
*/
|
|
470
437
|
doc_url?: string;
|
|
471
438
|
|
|
@@ -496,20 +463,20 @@ declare module 'stripe' {
|
|
|
496
463
|
* see the history of payment attempts for a particular session.
|
|
497
464
|
*
|
|
498
465
|
* A PaymentIntent transitions through
|
|
499
|
-
* [multiple statuses](https://stripe.com/
|
|
466
|
+
* [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
|
|
500
467
|
* throughout its lifetime as it interfaces with Stripe.js to perform
|
|
501
468
|
* authentication flows and ultimately creates at most one successful charge.
|
|
502
469
|
*
|
|
503
|
-
* Related guide: [Payment Intents API](https://stripe.com/
|
|
470
|
+
* Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
|
|
504
471
|
*/
|
|
505
472
|
payment_intent?: Stripe.PaymentIntent;
|
|
506
473
|
|
|
507
474
|
/**
|
|
508
475
|
* PaymentMethod objects represent your customer's payment instruments.
|
|
509
|
-
* You can use them with [PaymentIntents](https://stripe.com/
|
|
476
|
+
* You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
|
|
510
477
|
* Customer objects to store instrument details for future payments.
|
|
511
478
|
*
|
|
512
|
-
* Related guides: [Payment Methods](https://stripe.com/
|
|
479
|
+
* Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
|
|
513
480
|
*/
|
|
514
481
|
payment_method?: Stripe.PaymentMethod;
|
|
515
482
|
|
|
@@ -526,7 +493,7 @@ declare module 'stripe' {
|
|
|
526
493
|
/**
|
|
527
494
|
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
|
|
528
495
|
* For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
|
|
529
|
-
* Later, you can use [PaymentIntents](https://stripe.com
|
|
496
|
+
* Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
|
|
530
497
|
*
|
|
531
498
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
532
499
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
@@ -537,9 +504,9 @@ declare module 'stripe' {
|
|
|
537
504
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
538
505
|
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
539
506
|
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
540
|
-
* If you use the SetupIntent with a [Customer](https://stripe.com
|
|
507
|
+
* If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
|
|
541
508
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
542
|
-
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com
|
|
509
|
+
* We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
|
|
543
510
|
* PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
|
|
544
511
|
*
|
|
545
512
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
@@ -564,6 +531,7 @@ declare module 'stripe' {
|
|
|
564
531
|
| 'account_information_mismatch'
|
|
565
532
|
| 'account_invalid'
|
|
566
533
|
| 'account_number_invalid'
|
|
534
|
+
| 'account_token_required_for_v2_account'
|
|
567
535
|
| 'acss_debit_session_incomplete'
|
|
568
536
|
| 'alipay_upgrade_required'
|
|
569
537
|
| 'amount_too_large'
|
|
@@ -609,7 +577,6 @@ declare module 'stripe' {
|
|
|
609
577
|
| 'financial_connections_account_inactive'
|
|
610
578
|
| 'financial_connections_account_pending_account_numbers'
|
|
611
579
|
| 'financial_connections_account_unavailable_account_numbers'
|
|
612
|
-
| 'financial_connections_institution_unavailable'
|
|
613
580
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
614
581
|
| 'forwarding_api_inactive'
|
|
615
582
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -708,7 +675,6 @@ declare module 'stripe' {
|
|
|
708
675
|
| 'return_intent_already_processed'
|
|
709
676
|
| 'routing_number_invalid'
|
|
710
677
|
| 'secret_key_required'
|
|
711
|
-
| 'sensitive_data_access_expired'
|
|
712
678
|
| 'sepa_unsupported_account'
|
|
713
679
|
| 'setup_attempt_failed'
|
|
714
680
|
| 'setup_intent_authentication_failure'
|
|
@@ -728,7 +694,6 @@ declare module 'stripe' {
|
|
|
728
694
|
| 'taxes_calculation_failed'
|
|
729
695
|
| 'terminal_location_country_unsupported'
|
|
730
696
|
| 'terminal_reader_busy'
|
|
731
|
-
| 'terminal_reader_collected_data_invalid'
|
|
732
697
|
| 'terminal_reader_hardware_fault'
|
|
733
698
|
| 'terminal_reader_invalid_location_for_activation'
|
|
734
699
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -741,9 +706,7 @@ declare module 'stripe' {
|
|
|
741
706
|
| 'token_in_use'
|
|
742
707
|
| 'transfer_source_balance_parameters_mismatch'
|
|
743
708
|
| 'transfers_not_allowed'
|
|
744
|
-
| 'url_invalid'
|
|
745
|
-
| 'v2_account_disconnection_unsupported'
|
|
746
|
-
| 'v2_account_missing_configuration';
|
|
709
|
+
| 'url_invalid';
|
|
747
710
|
|
|
748
711
|
type Type =
|
|
749
712
|
| 'api_error'
|
|
@@ -1510,10 +1473,6 @@ declare module 'stripe' {
|
|
|
1510
1473
|
}
|
|
1511
1474
|
|
|
1512
1475
|
interface PaymentDetails {
|
|
1513
|
-
benefit?: PaymentDetails.Benefit;
|
|
1514
|
-
|
|
1515
|
-
car_rental?: PaymentDetails.CarRental;
|
|
1516
|
-
|
|
1517
1476
|
/**
|
|
1518
1477
|
* A unique value to identify the customer. This field is available only for card payments.
|
|
1519
1478
|
*
|
|
@@ -1521,8 +1480,6 @@ declare module 'stripe' {
|
|
|
1521
1480
|
*/
|
|
1522
1481
|
customer_reference: string | null;
|
|
1523
1482
|
|
|
1524
|
-
event_details?: PaymentDetails.EventDetails;
|
|
1525
|
-
|
|
1526
1483
|
/**
|
|
1527
1484
|
* A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1528
1485
|
*
|
|
@@ -1531,335 +1488,6 @@ declare module 'stripe' {
|
|
|
1531
1488
|
* 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.
|
|
1532
1489
|
*/
|
|
1533
1490
|
order_reference: string | null;
|
|
1534
|
-
|
|
1535
|
-
subscription?: PaymentDetails.Subscription;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
namespace PaymentDetails {
|
|
1539
|
-
interface Benefit {
|
|
1540
|
-
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
namespace Benefit {
|
|
1544
|
-
interface FrMealVoucher {
|
|
1545
|
-
/**
|
|
1546
|
-
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1547
|
-
*/
|
|
1548
|
-
siret?: string;
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
interface CarRental {
|
|
1553
|
-
affiliate?: CarRental.Affiliate;
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* The booking number associated with the car rental.
|
|
1557
|
-
*/
|
|
1558
|
-
booking_number: string;
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Class code of the car.
|
|
1562
|
-
*/
|
|
1563
|
-
car_class_code?: string;
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* Make of the car.
|
|
1567
|
-
*/
|
|
1568
|
-
car_make?: string;
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* Model of the car.
|
|
1572
|
-
*/
|
|
1573
|
-
car_model?: string;
|
|
1574
|
-
|
|
1575
|
-
/**
|
|
1576
|
-
* The name of the rental car company.
|
|
1577
|
-
*/
|
|
1578
|
-
company?: string;
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* The customer service phone number of the car rental company.
|
|
1582
|
-
*/
|
|
1583
|
-
customer_service_phone_number?: string;
|
|
1584
|
-
|
|
1585
|
-
/**
|
|
1586
|
-
* Number of days the car is being rented.
|
|
1587
|
-
*/
|
|
1588
|
-
days_rented: number;
|
|
1589
|
-
|
|
1590
|
-
delivery?: CarRental.Delivery;
|
|
1591
|
-
|
|
1592
|
-
distance?: CarRental.Distance;
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* The details of the drivers associated with the trip.
|
|
1596
|
-
*/
|
|
1597
|
-
drivers?: Array<CarRental.Driver>;
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* List of additional charges being billed.
|
|
1601
|
-
*/
|
|
1602
|
-
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1603
|
-
|
|
1604
|
-
/**
|
|
1605
|
-
* Indicates if the customer did not keep nor cancel their booking.
|
|
1606
|
-
*/
|
|
1607
|
-
no_show?: boolean;
|
|
1608
|
-
|
|
1609
|
-
pickup_address?: Stripe.Address;
|
|
1610
|
-
|
|
1611
|
-
/**
|
|
1612
|
-
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1613
|
-
*/
|
|
1614
|
-
pickup_at: number;
|
|
1615
|
-
|
|
1616
|
-
/**
|
|
1617
|
-
* Name of the pickup location.
|
|
1618
|
-
*/
|
|
1619
|
-
pickup_location_name?: string;
|
|
1620
|
-
|
|
1621
|
-
/**
|
|
1622
|
-
* Rental rate.
|
|
1623
|
-
*/
|
|
1624
|
-
rate_amount?: number;
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1628
|
-
*/
|
|
1629
|
-
rate_interval?: CarRental.RateInterval;
|
|
1630
|
-
|
|
1631
|
-
/**
|
|
1632
|
-
* The full name of the person or entity renting the car.
|
|
1633
|
-
*/
|
|
1634
|
-
renter_name?: string;
|
|
1635
|
-
|
|
1636
|
-
return_address?: Stripe.Address;
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* Car return time. Measured in seconds since the Unix epoch.
|
|
1640
|
-
*/
|
|
1641
|
-
return_at: number;
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
* Name of the return location.
|
|
1645
|
-
*/
|
|
1646
|
-
return_location_name?: string;
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1650
|
-
*/
|
|
1651
|
-
tax_exempt?: boolean;
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* The vehicle identification number of the car.
|
|
1655
|
-
*/
|
|
1656
|
-
vehicle_identification_number?: string;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
namespace CarRental {
|
|
1660
|
-
interface Affiliate {
|
|
1661
|
-
/**
|
|
1662
|
-
* The name of the affiliate that originated the purchase.
|
|
1663
|
-
*/
|
|
1664
|
-
name?: string;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
interface Delivery {
|
|
1668
|
-
/**
|
|
1669
|
-
* The delivery method for the payment
|
|
1670
|
-
*/
|
|
1671
|
-
mode?: Delivery.Mode;
|
|
1672
|
-
|
|
1673
|
-
recipient?: Delivery.Recipient;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
namespace Delivery {
|
|
1677
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1678
|
-
|
|
1679
|
-
interface Recipient {
|
|
1680
|
-
/**
|
|
1681
|
-
* The email of the recipient the ticket is delivered to.
|
|
1682
|
-
*/
|
|
1683
|
-
email?: string;
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
* The name of the recipient the ticket is delivered to.
|
|
1687
|
-
*/
|
|
1688
|
-
name?: string;
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1692
|
-
*/
|
|
1693
|
-
phone?: string;
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
interface Distance {
|
|
1698
|
-
/**
|
|
1699
|
-
* Distance traveled.
|
|
1700
|
-
*/
|
|
1701
|
-
amount?: number;
|
|
1702
|
-
|
|
1703
|
-
/**
|
|
1704
|
-
* Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
|
1705
|
-
*/
|
|
1706
|
-
unit?: string;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
interface Driver {
|
|
1710
|
-
/**
|
|
1711
|
-
* Driver's identification number.
|
|
1712
|
-
*/
|
|
1713
|
-
driver_identification_number?: string;
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Driver's tax number.
|
|
1717
|
-
*/
|
|
1718
|
-
driver_tax_number?: string;
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Full name of the driver on the reservation.
|
|
1722
|
-
*/
|
|
1723
|
-
name?: string;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
type ExtraCharge =
|
|
1727
|
-
| 'extra_mileage'
|
|
1728
|
-
| 'gas'
|
|
1729
|
-
| 'late_return'
|
|
1730
|
-
| 'one_way_service'
|
|
1731
|
-
| 'parking_violation';
|
|
1732
|
-
|
|
1733
|
-
type RateInterval = 'day' | 'month' | 'week';
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
interface EventDetails {
|
|
1737
|
-
/**
|
|
1738
|
-
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1739
|
-
*/
|
|
1740
|
-
access_controlled_venue?: boolean;
|
|
1741
|
-
|
|
1742
|
-
address?: Stripe.Address;
|
|
1743
|
-
|
|
1744
|
-
affiliate?: EventDetails.Affiliate;
|
|
1745
|
-
|
|
1746
|
-
/**
|
|
1747
|
-
* The name of the company
|
|
1748
|
-
*/
|
|
1749
|
-
company?: string;
|
|
1750
|
-
|
|
1751
|
-
delivery?: EventDetails.Delivery;
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* Event end time. Measured in seconds since the Unix epoch.
|
|
1755
|
-
*/
|
|
1756
|
-
ends_at?: number;
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* Type of the event entertainment (concert, sports event etc)
|
|
1760
|
-
*/
|
|
1761
|
-
genre?: string;
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* The name of the event.
|
|
1765
|
-
*/
|
|
1766
|
-
name?: string;
|
|
1767
|
-
|
|
1768
|
-
/**
|
|
1769
|
-
* Event start time. Measured in seconds since the Unix epoch.
|
|
1770
|
-
*/
|
|
1771
|
-
starts_at?: number;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
namespace EventDetails {
|
|
1775
|
-
interface Affiliate {
|
|
1776
|
-
/**
|
|
1777
|
-
* The name of the affiliate that originated the purchase.
|
|
1778
|
-
*/
|
|
1779
|
-
name?: string;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
interface Delivery {
|
|
1783
|
-
/**
|
|
1784
|
-
* The delivery method for the payment
|
|
1785
|
-
*/
|
|
1786
|
-
mode?: Delivery.Mode;
|
|
1787
|
-
|
|
1788
|
-
recipient?: Delivery.Recipient;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
namespace Delivery {
|
|
1792
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1793
|
-
|
|
1794
|
-
interface Recipient {
|
|
1795
|
-
/**
|
|
1796
|
-
* The email of the recipient the ticket is delivered to.
|
|
1797
|
-
*/
|
|
1798
|
-
email?: string;
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* The name of the recipient the ticket is delivered to.
|
|
1802
|
-
*/
|
|
1803
|
-
name?: string;
|
|
1804
|
-
|
|
1805
|
-
/**
|
|
1806
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1807
|
-
*/
|
|
1808
|
-
phone?: string;
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
interface Subscription {
|
|
1814
|
-
affiliate?: Subscription.Affiliate;
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* Info whether the subscription will be auto renewed upon expiry.
|
|
1818
|
-
*/
|
|
1819
|
-
auto_renewal?: boolean;
|
|
1820
|
-
|
|
1821
|
-
billing_interval?: Subscription.BillingInterval;
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1825
|
-
*/
|
|
1826
|
-
ends_at?: number;
|
|
1827
|
-
|
|
1828
|
-
/**
|
|
1829
|
-
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1830
|
-
*/
|
|
1831
|
-
name?: string;
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1835
|
-
*/
|
|
1836
|
-
starts_at?: number;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
namespace Subscription {
|
|
1840
|
-
interface Affiliate {
|
|
1841
|
-
/**
|
|
1842
|
-
* The name of the affiliate that originated the purchase.
|
|
1843
|
-
*/
|
|
1844
|
-
name?: string;
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
interface BillingInterval {
|
|
1848
|
-
/**
|
|
1849
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1850
|
-
*/
|
|
1851
|
-
count?: number;
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1855
|
-
*/
|
|
1856
|
-
interval?: BillingInterval.Interval;
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
namespace BillingInterval {
|
|
1860
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
1491
|
}
|
|
1864
1492
|
|
|
1865
1493
|
interface PaymentMethodConfigurationDetails {
|
|
@@ -1915,12 +1543,8 @@ declare module 'stripe' {
|
|
|
1915
1543
|
|
|
1916
1544
|
giropay?: PaymentMethodOptions.Giropay;
|
|
1917
1545
|
|
|
1918
|
-
gopay?: PaymentMethodOptions.Gopay;
|
|
1919
|
-
|
|
1920
1546
|
grabpay?: PaymentMethodOptions.Grabpay;
|
|
1921
1547
|
|
|
1922
|
-
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
|
|
1923
|
-
|
|
1924
1548
|
ideal?: PaymentMethodOptions.Ideal;
|
|
1925
1549
|
|
|
1926
1550
|
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
@@ -1957,18 +1581,12 @@ declare module 'stripe' {
|
|
|
1957
1581
|
|
|
1958
1582
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1959
1583
|
|
|
1960
|
-
paypay?: PaymentMethodOptions.Paypay;
|
|
1961
|
-
|
|
1962
1584
|
payto?: PaymentMethodOptions.Payto;
|
|
1963
1585
|
|
|
1964
1586
|
pix?: PaymentMethodOptions.Pix;
|
|
1965
1587
|
|
|
1966
1588
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1967
1589
|
|
|
1968
|
-
qris?: PaymentMethodOptions.Qris;
|
|
1969
|
-
|
|
1970
|
-
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1971
|
-
|
|
1972
1590
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1973
1591
|
|
|
1974
1592
|
samsung_pay?: PaymentMethodOptions.SamsungPay;
|
|
@@ -1977,12 +1595,8 @@ declare module 'stripe' {
|
|
|
1977
1595
|
|
|
1978
1596
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
1979
1597
|
|
|
1980
|
-
shopeepay?: PaymentMethodOptions.Shopeepay;
|
|
1981
|
-
|
|
1982
1598
|
sofort?: PaymentMethodOptions.Sofort;
|
|
1983
1599
|
|
|
1984
|
-
stripe_balance?: PaymentMethodOptions.StripeBalance;
|
|
1985
|
-
|
|
1986
1600
|
swish?: PaymentMethodOptions.Swish;
|
|
1987
1601
|
|
|
1988
1602
|
twint?: PaymentMethodOptions.Twint;
|
|
@@ -2275,7 +1889,7 @@ declare module 'stripe' {
|
|
|
2275
1889
|
/**
|
|
2276
1890
|
* Installment details for this payment.
|
|
2277
1891
|
*
|
|
2278
|
-
* For more information, see the [installments integration guide](https://stripe.com/
|
|
1892
|
+
* For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
2279
1893
|
*/
|
|
2280
1894
|
installments: Card.Installments | null;
|
|
2281
1895
|
|
|
@@ -2290,37 +1904,27 @@ declare module 'stripe' {
|
|
|
2290
1904
|
network: Card.Network | null;
|
|
2291
1905
|
|
|
2292
1906
|
/**
|
|
2293
|
-
* Request ability to [
|
|
2294
|
-
*/
|
|
2295
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
2296
|
-
|
|
2297
|
-
/**
|
|
2298
|
-
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1907
|
+
* Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
2299
1908
|
*/
|
|
2300
1909
|
request_extended_authorization?: Card.RequestExtendedAuthorization;
|
|
2301
1910
|
|
|
2302
1911
|
/**
|
|
2303
|
-
* Request ability to [increment the authorization](https://stripe.com/
|
|
1912
|
+
* Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
2304
1913
|
*/
|
|
2305
1914
|
request_incremental_authorization?: Card.RequestIncrementalAuthorization;
|
|
2306
1915
|
|
|
2307
1916
|
/**
|
|
2308
|
-
* Request ability to make [multiple captures](https://stripe.com/
|
|
1917
|
+
* Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
2309
1918
|
*/
|
|
2310
1919
|
request_multicapture?: Card.RequestMulticapture;
|
|
2311
1920
|
|
|
2312
1921
|
/**
|
|
2313
|
-
* Request ability to [overcapture](https://stripe.com/
|
|
1922
|
+
* Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
2314
1923
|
*/
|
|
2315
1924
|
request_overcapture?: Card.RequestOvercapture;
|
|
2316
1925
|
|
|
2317
1926
|
/**
|
|
2318
|
-
*
|
|
2319
|
-
*/
|
|
2320
|
-
request_partial_authorization?: Card.RequestPartialAuthorization;
|
|
2321
|
-
|
|
2322
|
-
/**
|
|
2323
|
-
* 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.
|
|
1927
|
+
* 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://docs.stripe.com/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://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
2324
1928
|
*/
|
|
2325
1929
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
2326
1930
|
|
|
@@ -2349,8 +1953,6 @@ declare module 'stripe' {
|
|
|
2349
1953
|
* 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.
|
|
2350
1954
|
*/
|
|
2351
1955
|
statement_descriptor_suffix_kanji?: string;
|
|
2352
|
-
|
|
2353
|
-
statement_details?: Card.StatementDetails;
|
|
2354
1956
|
}
|
|
2355
1957
|
|
|
2356
1958
|
namespace Card {
|
|
@@ -2485,8 +2087,6 @@ declare module 'stripe' {
|
|
|
2485
2087
|
| 'unknown'
|
|
2486
2088
|
| 'visa';
|
|
2487
2089
|
|
|
2488
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2489
|
-
|
|
2490
2090
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2491
2091
|
|
|
2492
2092
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2495,54 +2095,9 @@ declare module 'stripe' {
|
|
|
2495
2095
|
|
|
2496
2096
|
type RequestOvercapture = 'if_available' | 'never';
|
|
2497
2097
|
|
|
2498
|
-
type RequestPartialAuthorization = 'if_available' | 'never';
|
|
2499
|
-
|
|
2500
2098
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2501
2099
|
|
|
2502
2100
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2503
|
-
|
|
2504
|
-
interface StatementDetails {
|
|
2505
|
-
address?: StatementDetails.Address;
|
|
2506
|
-
|
|
2507
|
-
/**
|
|
2508
|
-
* Phone number
|
|
2509
|
-
*/
|
|
2510
|
-
phone?: string;
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
namespace StatementDetails {
|
|
2514
|
-
interface Address {
|
|
2515
|
-
/**
|
|
2516
|
-
* City, district, suburb, town, or village.
|
|
2517
|
-
*/
|
|
2518
|
-
city?: string;
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2522
|
-
*/
|
|
2523
|
-
country?: string;
|
|
2524
|
-
|
|
2525
|
-
/**
|
|
2526
|
-
* Address line 1, such as the street, PO Box, or company name.
|
|
2527
|
-
*/
|
|
2528
|
-
line1?: string;
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* Address line 2, such as the apartment, suite, unit, or building.
|
|
2532
|
-
*/
|
|
2533
|
-
line2?: string;
|
|
2534
|
-
|
|
2535
|
-
/**
|
|
2536
|
-
* ZIP or postal code.
|
|
2537
|
-
*/
|
|
2538
|
-
postal_code?: string;
|
|
2539
|
-
|
|
2540
|
-
/**
|
|
2541
|
-
* State, county, province, or region.
|
|
2542
|
-
*/
|
|
2543
|
-
state?: string;
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
2101
|
}
|
|
2547
2102
|
|
|
2548
2103
|
interface CardPresent {
|
|
@@ -2552,12 +2107,12 @@ declare module 'stripe' {
|
|
|
2552
2107
|
capture_method?: CardPresent.CaptureMethod;
|
|
2553
2108
|
|
|
2554
2109
|
/**
|
|
2555
|
-
* Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/
|
|
2110
|
+
* Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
2556
2111
|
*/
|
|
2557
2112
|
request_extended_authorization: boolean | null;
|
|
2558
2113
|
|
|
2559
2114
|
/**
|
|
2560
|
-
* Request ability to [increment](https://stripe.com/
|
|
2115
|
+
* Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
|
|
2561
2116
|
*/
|
|
2562
2117
|
request_incremental_authorization_support: boolean | null;
|
|
2563
2118
|
|
|
@@ -2720,23 +2275,6 @@ declare module 'stripe' {
|
|
|
2720
2275
|
setup_future_usage?: 'none';
|
|
2721
2276
|
}
|
|
2722
2277
|
|
|
2723
|
-
interface Gopay {
|
|
2724
|
-
/**
|
|
2725
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2726
|
-
*
|
|
2727
|
-
* 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.
|
|
2728
|
-
*
|
|
2729
|
-
* 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.
|
|
2730
|
-
*
|
|
2731
|
-
* 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).
|
|
2732
|
-
*/
|
|
2733
|
-
setup_future_usage?: Gopay.SetupFutureUsage;
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
namespace Gopay {
|
|
2737
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
2278
|
interface Grabpay {
|
|
2741
2279
|
/**
|
|
2742
2280
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2750,29 +2288,6 @@ declare module 'stripe' {
|
|
|
2750
2288
|
setup_future_usage?: 'none';
|
|
2751
2289
|
}
|
|
2752
2290
|
|
|
2753
|
-
interface IdBankTransfer {
|
|
2754
|
-
/**
|
|
2755
|
-
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2756
|
-
*/
|
|
2757
|
-
expires_after?: number | null;
|
|
2758
|
-
|
|
2759
|
-
/**
|
|
2760
|
-
* 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.
|
|
2761
|
-
*/
|
|
2762
|
-
expires_at: number | null;
|
|
2763
|
-
|
|
2764
|
-
/**
|
|
2765
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2766
|
-
*
|
|
2767
|
-
* 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.
|
|
2768
|
-
*
|
|
2769
|
-
* 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.
|
|
2770
|
-
*
|
|
2771
|
-
* 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).
|
|
2772
|
-
*/
|
|
2773
|
-
setup_future_usage?: 'none';
|
|
2774
|
-
}
|
|
2775
|
-
|
|
2776
2291
|
interface Ideal {
|
|
2777
2292
|
/**
|
|
2778
2293
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -3071,11 +2586,6 @@ declare module 'stripe' {
|
|
|
3071
2586
|
*/
|
|
3072
2587
|
capture_method?: 'manual';
|
|
3073
2588
|
|
|
3074
|
-
/**
|
|
3075
|
-
* The line items purchased by the customer.
|
|
3076
|
-
*/
|
|
3077
|
-
line_items?: Array<Paypal.LineItem>;
|
|
3078
|
-
|
|
3079
2589
|
/**
|
|
3080
2590
|
* Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
3081
2591
|
*/
|
|
@@ -3086,11 +2596,6 @@ declare module 'stripe' {
|
|
|
3086
2596
|
*/
|
|
3087
2597
|
reference: string | null;
|
|
3088
2598
|
|
|
3089
|
-
/**
|
|
3090
|
-
* 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.
|
|
3091
|
-
*/
|
|
3092
|
-
reference_id?: string | null;
|
|
3093
|
-
|
|
3094
2599
|
/**
|
|
3095
2600
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3096
2601
|
*
|
|
@@ -3101,78 +2606,12 @@ declare module 'stripe' {
|
|
|
3101
2606
|
* 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).
|
|
3102
2607
|
*/
|
|
3103
2608
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
3104
|
-
|
|
3105
|
-
/**
|
|
3106
|
-
* 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.
|
|
3107
|
-
*/
|
|
3108
|
-
subsellers?: Array<string>;
|
|
3109
2609
|
}
|
|
3110
2610
|
|
|
3111
2611
|
namespace Paypal {
|
|
3112
|
-
interface LineItem {
|
|
3113
|
-
/**
|
|
3114
|
-
* Type of the line item.
|
|
3115
|
-
*/
|
|
3116
|
-
category?: LineItem.Category;
|
|
3117
|
-
|
|
3118
|
-
/**
|
|
3119
|
-
* Description of the line item.
|
|
3120
|
-
*/
|
|
3121
|
-
description?: string;
|
|
3122
|
-
|
|
3123
|
-
/**
|
|
3124
|
-
* Descriptive name of the line item.
|
|
3125
|
-
*/
|
|
3126
|
-
name: string;
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* Quantity of the line item. Cannot be a negative number.
|
|
3130
|
-
*/
|
|
3131
|
-
quantity: number;
|
|
3132
|
-
|
|
3133
|
-
/**
|
|
3134
|
-
* Client facing stock keeping unit, article number or similar.
|
|
3135
|
-
*/
|
|
3136
|
-
sku?: string;
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* 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).
|
|
3140
|
-
*/
|
|
3141
|
-
sold_by?: string;
|
|
3142
|
-
|
|
3143
|
-
tax?: LineItem.Tax;
|
|
3144
|
-
|
|
3145
|
-
/**
|
|
3146
|
-
* Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3147
|
-
*/
|
|
3148
|
-
unit_amount: number;
|
|
3149
|
-
}
|
|
3150
|
-
|
|
3151
|
-
namespace LineItem {
|
|
3152
|
-
type Category = 'digital_goods' | 'donation' | 'physical_goods';
|
|
3153
|
-
|
|
3154
|
-
interface Tax {
|
|
3155
|
-
/**
|
|
3156
|
-
* The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3157
|
-
*/
|
|
3158
|
-
amount: number;
|
|
3159
|
-
|
|
3160
|
-
/**
|
|
3161
|
-
* The tax behavior for the line item.
|
|
3162
|
-
*/
|
|
3163
|
-
behavior: Tax.Behavior;
|
|
3164
|
-
}
|
|
3165
|
-
|
|
3166
|
-
namespace Tax {
|
|
3167
|
-
type Behavior = 'exclusive' | 'inclusive';
|
|
3168
|
-
}
|
|
3169
|
-
}
|
|
3170
|
-
|
|
3171
2612
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
3172
2613
|
}
|
|
3173
2614
|
|
|
3174
|
-
interface Paypay {}
|
|
3175
|
-
|
|
3176
2615
|
interface Payto {
|
|
3177
2616
|
mandate_options?: Payto.MandateOptions;
|
|
3178
2617
|
|
|
@@ -3267,8 +2706,6 @@ declare module 'stripe' {
|
|
|
3267
2706
|
*/
|
|
3268
2707
|
expires_at: number | null;
|
|
3269
2708
|
|
|
3270
|
-
mandate_options?: Pix.MandateOptions;
|
|
3271
|
-
|
|
3272
2709
|
/**
|
|
3273
2710
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3274
2711
|
*
|
|
@@ -3278,68 +2715,11 @@ declare module 'stripe' {
|
|
|
3278
2715
|
*
|
|
3279
2716
|
* 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).
|
|
3280
2717
|
*/
|
|
3281
|
-
setup_future_usage?:
|
|
2718
|
+
setup_future_usage?: 'none';
|
|
3282
2719
|
}
|
|
3283
2720
|
|
|
3284
2721
|
namespace Pix {
|
|
3285
2722
|
type AmountIncludesIof = 'always' | 'never';
|
|
3286
|
-
|
|
3287
|
-
interface MandateOptions {
|
|
3288
|
-
/**
|
|
3289
|
-
* Amount to be charged for future payments.
|
|
3290
|
-
*/
|
|
3291
|
-
amount?: number;
|
|
3292
|
-
|
|
3293
|
-
/**
|
|
3294
|
-
* Determines if the amount includes the IOF tax.
|
|
3295
|
-
*/
|
|
3296
|
-
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
3297
|
-
|
|
3298
|
-
/**
|
|
3299
|
-
* Type of amount.
|
|
3300
|
-
*/
|
|
3301
|
-
amount_type?: MandateOptions.AmountType;
|
|
3302
|
-
|
|
3303
|
-
/**
|
|
3304
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
3305
|
-
*/
|
|
3306
|
-
currency?: string;
|
|
3307
|
-
|
|
3308
|
-
/**
|
|
3309
|
-
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
3310
|
-
*/
|
|
3311
|
-
end_date?: string;
|
|
3312
|
-
|
|
3313
|
-
/**
|
|
3314
|
-
* Schedule at which the future payments will be charged.
|
|
3315
|
-
*/
|
|
3316
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3317
|
-
|
|
3318
|
-
/**
|
|
3319
|
-
* Subscription name displayed to buyers in their bank app.
|
|
3320
|
-
*/
|
|
3321
|
-
reference?: string;
|
|
3322
|
-
|
|
3323
|
-
/**
|
|
3324
|
-
* Start date of the mandate, in `YYYY-MM-DD`.
|
|
3325
|
-
*/
|
|
3326
|
-
start_date?: string;
|
|
3327
|
-
}
|
|
3328
|
-
|
|
3329
|
-
namespace MandateOptions {
|
|
3330
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
3331
|
-
|
|
3332
|
-
type AmountType = 'fixed' | 'maximum';
|
|
3333
|
-
|
|
3334
|
-
type PaymentSchedule =
|
|
3335
|
-
| 'halfyearly'
|
|
3336
|
-
| 'monthly'
|
|
3337
|
-
| 'quarterly'
|
|
3338
|
-
| 'weekly'
|
|
3339
|
-
| 'yearly';
|
|
3340
|
-
}
|
|
3341
|
-
|
|
3342
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
3343
2723
|
}
|
|
3344
2724
|
|
|
3345
2725
|
interface Promptpay {
|
|
@@ -3355,21 +2735,6 @@ declare module 'stripe' {
|
|
|
3355
2735
|
setup_future_usage?: 'none';
|
|
3356
2736
|
}
|
|
3357
2737
|
|
|
3358
|
-
interface Qris {
|
|
3359
|
-
/**
|
|
3360
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3361
|
-
*
|
|
3362
|
-
* 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.
|
|
3363
|
-
*
|
|
3364
|
-
* 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.
|
|
3365
|
-
*
|
|
3366
|
-
* 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).
|
|
3367
|
-
*/
|
|
3368
|
-
setup_future_usage?: 'none';
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3371
|
-
interface Rechnung {}
|
|
3372
|
-
|
|
3373
2738
|
interface RevolutPay {
|
|
3374
2739
|
/**
|
|
3375
2740
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -3437,19 +2802,6 @@ declare module 'stripe' {
|
|
|
3437
2802
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
3438
2803
|
}
|
|
3439
2804
|
|
|
3440
|
-
interface Shopeepay {
|
|
3441
|
-
/**
|
|
3442
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3443
|
-
*
|
|
3444
|
-
* 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.
|
|
3445
|
-
*
|
|
3446
|
-
* 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.
|
|
3447
|
-
*
|
|
3448
|
-
* 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).
|
|
3449
|
-
*/
|
|
3450
|
-
setup_future_usage?: 'none';
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
2805
|
interface Sofort {
|
|
3454
2806
|
/**
|
|
3455
2807
|
* Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
@@ -3481,23 +2833,6 @@ declare module 'stripe' {
|
|
|
3481
2833
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
3482
2834
|
}
|
|
3483
2835
|
|
|
3484
|
-
interface StripeBalance {
|
|
3485
|
-
/**
|
|
3486
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3487
|
-
*
|
|
3488
|
-
* 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.
|
|
3489
|
-
*
|
|
3490
|
-
* 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.
|
|
3491
|
-
*
|
|
3492
|
-
* 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).
|
|
3493
|
-
*/
|
|
3494
|
-
setup_future_usage?: StripeBalance.SetupFutureUsage;
|
|
3495
|
-
}
|
|
3496
|
-
|
|
3497
|
-
namespace StripeBalance {
|
|
3498
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
2836
|
interface Swish {
|
|
3502
2837
|
/**
|
|
3503
2838
|
* A reference for this payment to be displayed in the Swish app.
|
|
@@ -3565,8 +2900,6 @@ declare module 'stripe' {
|
|
|
3565
2900
|
interface FinancialConnections {
|
|
3566
2901
|
filters?: FinancialConnections.Filters;
|
|
3567
2902
|
|
|
3568
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
3569
|
-
|
|
3570
2903
|
/**
|
|
3571
2904
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
3572
2905
|
*/
|
|
@@ -3589,39 +2922,19 @@ declare module 'stripe' {
|
|
|
3589
2922
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
3590
2923
|
*/
|
|
3591
2924
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3592
|
-
|
|
3593
|
-
/**
|
|
3594
|
-
* The institution to use to filter for possible accounts to link.
|
|
3595
|
-
*/
|
|
3596
|
-
institution?: string;
|
|
3597
2925
|
}
|
|
3598
2926
|
|
|
3599
2927
|
namespace Filters {
|
|
3600
2928
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3601
2929
|
}
|
|
3602
2930
|
|
|
3603
|
-
interface ManualEntry {
|
|
3604
|
-
/**
|
|
3605
|
-
* Settings for configuring manual entry of account details.
|
|
3606
|
-
*/
|
|
3607
|
-
mode?: ManualEntry.Mode;
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
|
-
namespace ManualEntry {
|
|
3611
|
-
type Mode = 'automatic' | 'custom';
|
|
3612
|
-
}
|
|
3613
|
-
|
|
3614
2931
|
type Permission =
|
|
3615
2932
|
| 'balances'
|
|
3616
2933
|
| 'ownership'
|
|
3617
2934
|
| 'payment_method'
|
|
3618
2935
|
| 'transactions';
|
|
3619
2936
|
|
|
3620
|
-
type Prefetch =
|
|
3621
|
-
| 'balances'
|
|
3622
|
-
| 'inferred_balances'
|
|
3623
|
-
| 'ownership'
|
|
3624
|
-
| 'transactions';
|
|
2937
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
3625
2938
|
}
|
|
3626
2939
|
|
|
3627
2940
|
interface MandateOptions {
|
|
@@ -3679,13 +2992,6 @@ declare module 'stripe' {
|
|
|
3679
2992
|
}
|
|
3680
2993
|
}
|
|
3681
2994
|
|
|
3682
|
-
interface PaymentsOrchestration {
|
|
3683
|
-
/**
|
|
3684
|
-
* Whether this feature is enabled.
|
|
3685
|
-
*/
|
|
3686
|
-
enabled: boolean;
|
|
3687
|
-
}
|
|
3688
|
-
|
|
3689
2995
|
interface PresentmentDetails {
|
|
3690
2996
|
/**
|
|
3691
2997
|
* Amount intended to be collected by this payment, denominated in `presentment_currency`.
|
|
@@ -3727,8 +3033,6 @@ declare module 'stripe' {
|
|
|
3727
3033
|
}
|
|
3728
3034
|
}
|
|
3729
3035
|
|
|
3730
|
-
type SecretKeyConfirmation = 'optional' | 'required';
|
|
3731
|
-
|
|
3732
3036
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
3733
3037
|
|
|
3734
3038
|
interface Shipping {
|
|
@@ -3767,7 +3071,7 @@ declare module 'stripe' {
|
|
|
3767
3071
|
interface TransferData {
|
|
3768
3072
|
/**
|
|
3769
3073
|
* The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
|
|
3770
|
-
* The amount must be less than or equal to the [amount](https://stripe.com/
|
|
3074
|
+
* The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
|
|
3771
3075
|
* representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
|
|
3772
3076
|
*/
|
|
3773
3077
|
amount?: number;
|