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
|
@@ -39,8 +39,6 @@ declare module 'stripe' {
|
|
|
39
39
|
*/
|
|
40
40
|
cancel_url?: string;
|
|
41
41
|
|
|
42
|
-
checkout_items?: Array<SessionCreateParams.CheckoutItem>;
|
|
43
|
-
|
|
44
42
|
/**
|
|
45
43
|
* A unique string to reference the Checkout Session. This can be a
|
|
46
44
|
* customer ID, a cart ID, or similar, and can be used to reconcile the
|
|
@@ -71,15 +69,15 @@ declare module 'stripe' {
|
|
|
71
69
|
/**
|
|
72
70
|
* ID of an existing Customer, if one exists. In `payment` mode, the customer's most recently saved card
|
|
73
71
|
* payment method will be used to prefill the email, name, card details, and billing address
|
|
74
|
-
* on the Checkout page. In `subscription` mode, the customer's [default payment method](https://stripe.com/
|
|
72
|
+
* on the Checkout page. In `subscription` mode, the customer's [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)
|
|
75
73
|
* will be used if it's a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
|
|
76
74
|
*
|
|
77
|
-
* If the Customer already has a valid [email](https://stripe.com/
|
|
75
|
+
* If the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
|
|
78
76
|
* If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
|
|
79
77
|
*
|
|
80
78
|
* If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
|
|
81
79
|
*
|
|
82
|
-
* You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/
|
|
80
|
+
* You can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
|
|
83
81
|
*/
|
|
84
82
|
customer?: string;
|
|
85
83
|
|
|
@@ -89,12 +87,12 @@ declare module 'stripe' {
|
|
|
89
87
|
customer_account?: string;
|
|
90
88
|
|
|
91
89
|
/**
|
|
92
|
-
* Configure whether a Checkout Session creates a [Customer](https://stripe.com/
|
|
90
|
+
* Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.
|
|
93
91
|
*
|
|
94
92
|
* When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
|
|
95
|
-
* with [customer_details](https://stripe.com/
|
|
93
|
+
* with [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).
|
|
96
94
|
*
|
|
97
|
-
* Sessions that don't create Customers instead are grouped by [guest customers](https://stripe.com/
|
|
95
|
+
* Sessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)
|
|
98
96
|
* in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
|
|
99
97
|
*
|
|
100
98
|
* Can only be set in `payment` and `setup` mode.
|
|
@@ -143,7 +141,7 @@ declare module 'stripe' {
|
|
|
143
141
|
invoice_creation?: SessionCreateParams.InvoiceCreation;
|
|
144
142
|
|
|
145
143
|
/**
|
|
146
|
-
* A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/
|
|
144
|
+
* A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
|
|
147
145
|
*
|
|
148
146
|
* For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
|
|
149
147
|
*
|
|
@@ -157,7 +155,7 @@ declare module 'stripe' {
|
|
|
157
155
|
locale?: SessionCreateParams.Locale;
|
|
158
156
|
|
|
159
157
|
/**
|
|
160
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
158
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
161
159
|
*/
|
|
162
160
|
metadata?: Stripe.MetadataParam;
|
|
163
161
|
|
|
@@ -171,12 +169,12 @@ declare module 'stripe' {
|
|
|
171
169
|
*
|
|
172
170
|
* You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
|
|
173
171
|
*
|
|
174
|
-
* If a [Customer](https://stripe.com/
|
|
172
|
+
* If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
|
|
175
173
|
*/
|
|
176
174
|
name_collection?: SessionCreateParams.NameCollection;
|
|
177
175
|
|
|
178
176
|
/**
|
|
179
|
-
* A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/
|
|
177
|
+
* A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
|
|
180
178
|
*
|
|
181
179
|
* There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
|
|
182
180
|
*
|
|
@@ -202,7 +200,7 @@ declare module 'stripe' {
|
|
|
202
200
|
*
|
|
203
201
|
* Can only be set in `subscription` mode. Defaults to `always`.
|
|
204
202
|
*
|
|
205
|
-
* If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://stripe.com/
|
|
203
|
+
* If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
|
|
206
204
|
*/
|
|
207
205
|
payment_method_collection?: SessionCreateParams.PaymentMethodCollection;
|
|
208
206
|
|
|
@@ -225,7 +223,7 @@ declare module 'stripe' {
|
|
|
225
223
|
* A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
|
|
226
224
|
*
|
|
227
225
|
* You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
|
228
|
-
* See [Dynamic Payment Methods](https://stripe.com/
|
|
226
|
+
* See [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
|
|
229
227
|
*
|
|
230
228
|
* Read more about the supported payment methods and their requirements in our [payment
|
|
231
229
|
* method details guide](https://docs.stripe.com/docs/payments/checkout/payment-methods).
|
|
@@ -247,12 +245,12 @@ declare module 'stripe' {
|
|
|
247
245
|
* Controls phone number collection settings for the session.
|
|
248
246
|
*
|
|
249
247
|
* We recommend that you review your privacy policy and check with your legal contacts
|
|
250
|
-
* before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/
|
|
248
|
+
* before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).
|
|
251
249
|
*/
|
|
252
250
|
phone_number_collection?: SessionCreateParams.PhoneNumberCollection;
|
|
253
251
|
|
|
254
252
|
/**
|
|
255
|
-
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/
|
|
253
|
+
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
256
254
|
*/
|
|
257
255
|
redirect_on_completion?: SessionCreateParams.RedirectOnCompletion;
|
|
258
256
|
|
|
@@ -301,7 +299,7 @@ declare module 'stripe' {
|
|
|
301
299
|
* is complete.
|
|
302
300
|
* This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
|
|
303
301
|
* information from the successful Checkout Session on your page, read the
|
|
304
|
-
* guide on [customizing your success page](https://stripe.com/
|
|
302
|
+
* guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page).
|
|
305
303
|
*/
|
|
306
304
|
success_url?: string;
|
|
307
305
|
|
|
@@ -497,54 +495,6 @@ declare module 'stripe' {
|
|
|
497
495
|
}
|
|
498
496
|
}
|
|
499
497
|
|
|
500
|
-
interface CheckoutItem {
|
|
501
|
-
type: CheckoutItem.Type;
|
|
502
|
-
|
|
503
|
-
rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
|
|
504
|
-
|
|
505
|
-
pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
namespace CheckoutItem {
|
|
509
|
-
interface PricingPlanSubscriptionItem {
|
|
510
|
-
pricing_plan: string;
|
|
511
|
-
|
|
512
|
-
pricing_plan_version?: string;
|
|
513
|
-
|
|
514
|
-
metadata?: Stripe.MetadataParam;
|
|
515
|
-
|
|
516
|
-
component_configurations?: {
|
|
517
|
-
[key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
namespace PricingPlanSubscriptionItem {
|
|
522
|
-
interface ComponentConfigurations {
|
|
523
|
-
type: 'license_fee_component';
|
|
524
|
-
|
|
525
|
-
license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
namespace ComponentConfigurations {
|
|
529
|
-
interface LicenseFeeComponent {
|
|
530
|
-
quantity: number;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
interface RateCardSubscriptionItem {
|
|
536
|
-
rate_card: string;
|
|
537
|
-
|
|
538
|
-
metadata?: Stripe.MetadataParam;
|
|
539
|
-
|
|
540
|
-
rate_card_version?: string;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
type Type =
|
|
544
|
-
| 'rate_card_subscription_item'
|
|
545
|
-
| 'pricing_plan_subscription_item';
|
|
546
|
-
}
|
|
547
|
-
|
|
548
498
|
interface ConsentCollection {
|
|
549
499
|
/**
|
|
550
500
|
* Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
|
|
@@ -785,55 +735,12 @@ declare module 'stripe' {
|
|
|
785
735
|
*/
|
|
786
736
|
coupon?: string;
|
|
787
737
|
|
|
788
|
-
/**
|
|
789
|
-
* Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
|
|
790
|
-
*/
|
|
791
|
-
coupon_data?: Discount.CouponData;
|
|
792
|
-
|
|
793
738
|
/**
|
|
794
739
|
* The ID of a promotion code to apply to this Session.
|
|
795
740
|
*/
|
|
796
741
|
promotion_code?: string;
|
|
797
742
|
}
|
|
798
743
|
|
|
799
|
-
namespace Discount {
|
|
800
|
-
interface CouponData {
|
|
801
|
-
/**
|
|
802
|
-
* A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
|
|
803
|
-
*/
|
|
804
|
-
amount_off?: number;
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
|
|
808
|
-
*/
|
|
809
|
-
currency?: string;
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
|
|
813
|
-
*/
|
|
814
|
-
duration?: CouponData.Duration;
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
818
|
-
*/
|
|
819
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
|
|
823
|
-
*/
|
|
824
|
-
name?: string;
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
|
|
828
|
-
*/
|
|
829
|
-
percent_off?: number;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
namespace CouponData {
|
|
833
|
-
type Duration = 'forever' | 'once' | 'repeating';
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
|
|
837
744
|
type ExcludedPaymentMethodType =
|
|
838
745
|
| 'acss_debit'
|
|
839
746
|
| 'affirm'
|
|
@@ -854,7 +761,6 @@ declare module 'stripe' {
|
|
|
854
761
|
| 'eps'
|
|
855
762
|
| 'fpx'
|
|
856
763
|
| 'giropay'
|
|
857
|
-
| 'gopay'
|
|
858
764
|
| 'grabpay'
|
|
859
765
|
| 'ideal'
|
|
860
766
|
| 'kakao_pay'
|
|
@@ -872,17 +778,13 @@ declare module 'stripe' {
|
|
|
872
778
|
| 'payco'
|
|
873
779
|
| 'paynow'
|
|
874
780
|
| 'paypal'
|
|
875
|
-
| 'paypay'
|
|
876
781
|
| 'payto'
|
|
877
782
|
| 'pix'
|
|
878
783
|
| 'promptpay'
|
|
879
|
-
| 'qris'
|
|
880
|
-
| 'rechnung'
|
|
881
784
|
| 'revolut_pay'
|
|
882
785
|
| 'samsung_pay'
|
|
883
786
|
| 'satispay'
|
|
884
787
|
| 'sepa_debit'
|
|
885
|
-
| 'shopeepay'
|
|
886
788
|
| 'sofort'
|
|
887
789
|
| 'swish'
|
|
888
790
|
| 'twint'
|
|
@@ -930,7 +832,7 @@ declare module 'stripe' {
|
|
|
930
832
|
issuer?: InvoiceData.Issuer;
|
|
931
833
|
|
|
932
834
|
/**
|
|
933
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
835
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
934
836
|
*/
|
|
935
837
|
metadata?: Stripe.MetadataParam;
|
|
936
838
|
|
|
@@ -996,22 +898,22 @@ declare module 'stripe' {
|
|
|
996
898
|
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
997
899
|
|
|
998
900
|
/**
|
|
999
|
-
* The [tax rates](https://stripe.com/
|
|
901
|
+
* The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
|
|
1000
902
|
*/
|
|
1001
903
|
dynamic_tax_rates?: Array<string>;
|
|
1002
904
|
|
|
1003
905
|
/**
|
|
1004
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
906
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1005
907
|
*/
|
|
1006
908
|
metadata?: Stripe.MetadataParam;
|
|
1007
909
|
|
|
1008
910
|
/**
|
|
1009
|
-
* The ID of the [Price](https://stripe.com/
|
|
911
|
+
* The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required.
|
|
1010
912
|
*/
|
|
1011
913
|
price?: string;
|
|
1012
914
|
|
|
1013
915
|
/**
|
|
1014
|
-
* Data used to generate a new [Price](https://stripe.com/
|
|
916
|
+
* Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1015
917
|
*/
|
|
1016
918
|
price_data?: LineItem.PriceData;
|
|
1017
919
|
|
|
@@ -1021,7 +923,7 @@ declare module 'stripe' {
|
|
|
1021
923
|
quantity?: number;
|
|
1022
924
|
|
|
1023
925
|
/**
|
|
1024
|
-
* The [tax rates](https://stripe.com/
|
|
926
|
+
* The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
|
|
1025
927
|
*/
|
|
1026
928
|
tax_rates?: Array<string>;
|
|
1027
929
|
}
|
|
@@ -1066,7 +968,7 @@ declare module 'stripe' {
|
|
|
1066
968
|
recurring?: PriceData.Recurring;
|
|
1067
969
|
|
|
1068
970
|
/**
|
|
1069
|
-
* Only required if a [default tax behavior](https://stripe.com/
|
|
971
|
+
* Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1070
972
|
*/
|
|
1071
973
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1072
974
|
|
|
@@ -1094,7 +996,7 @@ declare module 'stripe' {
|
|
|
1094
996
|
images?: Array<string>;
|
|
1095
997
|
|
|
1096
998
|
/**
|
|
1097
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
999
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1098
1000
|
*/
|
|
1099
1001
|
metadata?: Stripe.MetadataParam;
|
|
1100
1002
|
|
|
@@ -1104,7 +1006,7 @@ declare module 'stripe' {
|
|
|
1104
1006
|
name: string;
|
|
1105
1007
|
|
|
1106
1008
|
/**
|
|
1107
|
-
* A [tax code](https://stripe.com/
|
|
1009
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
1108
1010
|
*/
|
|
1109
1011
|
tax_code?: string;
|
|
1110
1012
|
|
|
@@ -1224,7 +1126,7 @@ declare module 'stripe' {
|
|
|
1224
1126
|
adjustable_quantity?: OptionalItem.AdjustableQuantity;
|
|
1225
1127
|
|
|
1226
1128
|
/**
|
|
1227
|
-
* The ID of the [Price](https://stripe.com/
|
|
1129
|
+
* The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object.
|
|
1228
1130
|
*/
|
|
1229
1131
|
price: string;
|
|
1230
1132
|
|
|
@@ -1257,7 +1159,7 @@ declare module 'stripe' {
|
|
|
1257
1159
|
|
|
1258
1160
|
interface PaymentIntentData {
|
|
1259
1161
|
/**
|
|
1260
|
-
* 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/
|
|
1162
|
+
* 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).
|
|
1261
1163
|
*/
|
|
1262
1164
|
application_fee_amount?: number;
|
|
1263
1165
|
|
|
@@ -1272,7 +1174,7 @@ declare module 'stripe' {
|
|
|
1272
1174
|
description?: string;
|
|
1273
1175
|
|
|
1274
1176
|
/**
|
|
1275
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
1177
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1276
1178
|
*/
|
|
1277
1179
|
metadata?: Stripe.MetadataParam;
|
|
1278
1180
|
|
|
@@ -1289,7 +1191,7 @@ declare module 'stripe' {
|
|
|
1289
1191
|
receipt_email?: string;
|
|
1290
1192
|
|
|
1291
1193
|
/**
|
|
1292
|
-
* Indicates that you intend to [make future payments](https://stripe.com/
|
|
1194
|
+
* Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
|
|
1293
1195
|
* method collected by this Checkout Session.
|
|
1294
1196
|
*
|
|
1295
1197
|
* When setting this to `on_session`, Checkout will show a notice to the
|
|
@@ -1331,12 +1233,12 @@ declare module 'stripe' {
|
|
|
1331
1233
|
|
|
1332
1234
|
/**
|
|
1333
1235
|
* The parameters used to automatically create a Transfer when the payment succeeds.
|
|
1334
|
-
* For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/
|
|
1236
|
+
* For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
1335
1237
|
*/
|
|
1336
1238
|
transfer_data?: PaymentIntentData.TransferData;
|
|
1337
1239
|
|
|
1338
1240
|
/**
|
|
1339
|
-
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/
|
|
1241
|
+
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
|
|
1340
1242
|
*/
|
|
1341
1243
|
transfer_group?: string;
|
|
1342
1244
|
}
|
|
@@ -1891,11 +1793,6 @@ declare module 'stripe' {
|
|
|
1891
1793
|
*/
|
|
1892
1794
|
installments?: Card.Installments;
|
|
1893
1795
|
|
|
1894
|
-
/**
|
|
1895
|
-
* Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1896
|
-
*/
|
|
1897
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1898
|
-
|
|
1899
1796
|
/**
|
|
1900
1797
|
* Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1901
1798
|
*/
|
|
@@ -1917,7 +1814,7 @@ declare module 'stripe' {
|
|
|
1917
1814
|
request_overcapture?: Card.RequestOvercapture;
|
|
1918
1815
|
|
|
1919
1816
|
/**
|
|
1920
|
-
* 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/
|
|
1817
|
+
* 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.
|
|
1921
1818
|
*/
|
|
1922
1819
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1923
1820
|
|
|
@@ -1957,8 +1854,6 @@ declare module 'stripe' {
|
|
|
1957
1854
|
enabled?: boolean;
|
|
1958
1855
|
}
|
|
1959
1856
|
|
|
1960
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1961
|
-
|
|
1962
1857
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1963
1858
|
|
|
1964
1859
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2432,7 +2327,7 @@ declare module 'stripe' {
|
|
|
2432
2327
|
capture_method?: Stripe.Emptyable<'manual'>;
|
|
2433
2328
|
|
|
2434
2329
|
/**
|
|
2435
|
-
* [Preferred locale](https://stripe.com/
|
|
2330
|
+
* [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
2436
2331
|
*/
|
|
2437
2332
|
preferred_locale?: Paypal.PreferredLocale;
|
|
2438
2333
|
|
|
@@ -2441,11 +2336,6 @@ declare module 'stripe' {
|
|
|
2441
2336
|
*/
|
|
2442
2337
|
reference?: string;
|
|
2443
2338
|
|
|
2444
|
-
/**
|
|
2445
|
-
* 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.
|
|
2446
|
-
*/
|
|
2447
|
-
reference_id?: string;
|
|
2448
|
-
|
|
2449
2339
|
/**
|
|
2450
2340
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
2451
2341
|
*/
|
|
@@ -2463,11 +2353,6 @@ declare module 'stripe' {
|
|
|
2463
2353
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
2464
2354
|
*/
|
|
2465
2355
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* 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.
|
|
2469
|
-
*/
|
|
2470
|
-
subsellers?: Array<string>;
|
|
2471
2356
|
}
|
|
2472
2357
|
|
|
2473
2358
|
namespace Paypal {
|
|
@@ -2520,37 +2405,39 @@ declare module 'stripe' {
|
|
|
2520
2405
|
/**
|
|
2521
2406
|
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2522
2407
|
*/
|
|
2523
|
-
amount?: number
|
|
2408
|
+
amount?: Stripe.Emptyable<number>;
|
|
2524
2409
|
|
|
2525
2410
|
/**
|
|
2526
2411
|
* 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. Defaults to `maximum`.
|
|
2527
2412
|
*/
|
|
2528
|
-
amount_type?: MandateOptions.AmountType
|
|
2413
|
+
amount_type?: Stripe.Emptyable<MandateOptions.AmountType>;
|
|
2529
2414
|
|
|
2530
2415
|
/**
|
|
2531
2416
|
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2532
2417
|
*/
|
|
2533
|
-
end_date?: string
|
|
2418
|
+
end_date?: Stripe.Emptyable<string>;
|
|
2534
2419
|
|
|
2535
2420
|
/**
|
|
2536
2421
|
* The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
2537
2422
|
*/
|
|
2538
|
-
payment_schedule?:
|
|
2423
|
+
payment_schedule?: Stripe.Emptyable<
|
|
2424
|
+
MandateOptions.PaymentSchedule
|
|
2425
|
+
>;
|
|
2539
2426
|
|
|
2540
2427
|
/**
|
|
2541
2428
|
* 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.
|
|
2542
2429
|
*/
|
|
2543
|
-
payments_per_period?: number
|
|
2430
|
+
payments_per_period?: Stripe.Emptyable<number>;
|
|
2544
2431
|
|
|
2545
2432
|
/**
|
|
2546
2433
|
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
2547
2434
|
*/
|
|
2548
|
-
purpose?: MandateOptions.Purpose
|
|
2435
|
+
purpose?: Stripe.Emptyable<MandateOptions.Purpose>;
|
|
2549
2436
|
|
|
2550
2437
|
/**
|
|
2551
2438
|
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2552
2439
|
*/
|
|
2553
|
-
start_date?: string
|
|
2440
|
+
start_date?: Stripe.Emptyable<string>;
|
|
2554
2441
|
}
|
|
2555
2442
|
|
|
2556
2443
|
namespace MandateOptions {
|
|
@@ -2594,11 +2481,6 @@ declare module 'stripe' {
|
|
|
2594
2481
|
*/
|
|
2595
2482
|
expires_after_seconds?: number;
|
|
2596
2483
|
|
|
2597
|
-
/**
|
|
2598
|
-
* Additional fields for mandate creation.
|
|
2599
|
-
*/
|
|
2600
|
-
mandate_options?: Pix.MandateOptions;
|
|
2601
|
-
|
|
2602
2484
|
/**
|
|
2603
2485
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2604
2486
|
*
|
|
@@ -2608,68 +2490,11 @@ declare module 'stripe' {
|
|
|
2608
2490
|
*
|
|
2609
2491
|
* 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).
|
|
2610
2492
|
*/
|
|
2611
|
-
setup_future_usage?:
|
|
2493
|
+
setup_future_usage?: 'none';
|
|
2612
2494
|
}
|
|
2613
2495
|
|
|
2614
2496
|
namespace Pix {
|
|
2615
2497
|
type AmountIncludesIof = 'always' | 'never';
|
|
2616
|
-
|
|
2617
|
-
interface MandateOptions {
|
|
2618
|
-
/**
|
|
2619
|
-
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
2620
|
-
*/
|
|
2621
|
-
amount?: number;
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2625
|
-
*/
|
|
2626
|
-
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
2627
|
-
|
|
2628
|
-
/**
|
|
2629
|
-
* Type of amount. Defaults to `maximum`.
|
|
2630
|
-
*/
|
|
2631
|
-
amount_type?: MandateOptions.AmountType;
|
|
2632
|
-
|
|
2633
|
-
/**
|
|
2634
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
2635
|
-
*/
|
|
2636
|
-
currency?: string;
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
2640
|
-
*/
|
|
2641
|
-
end_date?: string;
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
2645
|
-
*/
|
|
2646
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2647
|
-
|
|
2648
|
-
/**
|
|
2649
|
-
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
2650
|
-
*/
|
|
2651
|
-
reference?: string;
|
|
2652
|
-
|
|
2653
|
-
/**
|
|
2654
|
-
* Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
|
2655
|
-
*/
|
|
2656
|
-
start_date?: string;
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
namespace MandateOptions {
|
|
2660
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
2661
|
-
|
|
2662
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2663
|
-
|
|
2664
|
-
type PaymentSchedule =
|
|
2665
|
-
| 'halfyearly'
|
|
2666
|
-
| 'monthly'
|
|
2667
|
-
| 'quarterly'
|
|
2668
|
-
| 'weekly'
|
|
2669
|
-
| 'yearly';
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2673
2498
|
}
|
|
2674
2499
|
|
|
2675
2500
|
interface RevolutPay {
|
|
@@ -2823,11 +2648,7 @@ declare module 'stripe' {
|
|
|
2823
2648
|
| 'payment_method'
|
|
2824
2649
|
| 'transactions';
|
|
2825
2650
|
|
|
2826
|
-
type Prefetch =
|
|
2827
|
-
| 'balances'
|
|
2828
|
-
| 'inferred_balances'
|
|
2829
|
-
| 'ownership'
|
|
2830
|
-
| 'transactions';
|
|
2651
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2831
2652
|
}
|
|
2832
2653
|
|
|
2833
2654
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2883,7 +2704,6 @@ declare module 'stripe' {
|
|
|
2883
2704
|
| 'eps'
|
|
2884
2705
|
| 'fpx'
|
|
2885
2706
|
| 'giropay'
|
|
2886
|
-
| 'gopay'
|
|
2887
2707
|
| 'grabpay'
|
|
2888
2708
|
| 'ideal'
|
|
2889
2709
|
| 'kakao_pay'
|
|
@@ -2902,17 +2722,13 @@ declare module 'stripe' {
|
|
|
2902
2722
|
| 'payco'
|
|
2903
2723
|
| 'paynow'
|
|
2904
2724
|
| 'paypal'
|
|
2905
|
-
| 'paypay'
|
|
2906
2725
|
| 'payto'
|
|
2907
2726
|
| 'pix'
|
|
2908
2727
|
| 'promptpay'
|
|
2909
|
-
| 'qris'
|
|
2910
|
-
| 'rechnung'
|
|
2911
2728
|
| 'revolut_pay'
|
|
2912
2729
|
| 'samsung_pay'
|
|
2913
2730
|
| 'satispay'
|
|
2914
2731
|
| 'sepa_debit'
|
|
2915
|
-
| 'shopeepay'
|
|
2916
2732
|
| 'sofort'
|
|
2917
2733
|
| 'swish'
|
|
2918
2734
|
| 'twint'
|
|
@@ -2921,27 +2737,6 @@ declare module 'stripe' {
|
|
|
2921
2737
|
| 'zip';
|
|
2922
2738
|
|
|
2923
2739
|
interface Permissions {
|
|
2924
|
-
/**
|
|
2925
|
-
* Permissions for updating the Checkout Session.
|
|
2926
|
-
*/
|
|
2927
|
-
update?: Permissions.Update;
|
|
2928
|
-
|
|
2929
|
-
/**
|
|
2930
|
-
* Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
|
|
2931
|
-
*
|
|
2932
|
-
* Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
|
|
2933
|
-
*/
|
|
2934
|
-
update_discounts?: Permissions.UpdateDiscounts;
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* Determines which entity is allowed to update the line items.
|
|
2938
|
-
*
|
|
2939
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2940
|
-
*
|
|
2941
|
-
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2942
|
-
*/
|
|
2943
|
-
update_line_items?: Permissions.UpdateLineItems;
|
|
2944
|
-
|
|
2945
2740
|
/**
|
|
2946
2741
|
* Determines which entity is allowed to update the shipping details.
|
|
2947
2742
|
*
|
|
@@ -2953,36 +2748,6 @@ declare module 'stripe' {
|
|
|
2953
2748
|
}
|
|
2954
2749
|
|
|
2955
2750
|
namespace Permissions {
|
|
2956
|
-
interface Update {
|
|
2957
|
-
/**
|
|
2958
|
-
* Determines which entity is allowed to update the line items.
|
|
2959
|
-
*
|
|
2960
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2961
|
-
*
|
|
2962
|
-
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2963
|
-
*/
|
|
2964
|
-
line_items?: Update.LineItems;
|
|
2965
|
-
|
|
2966
|
-
/**
|
|
2967
|
-
* Determines which entity is allowed to update the shipping details.
|
|
2968
|
-
*
|
|
2969
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2970
|
-
*
|
|
2971
|
-
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
2972
|
-
*/
|
|
2973
|
-
shipping_details?: Update.ShippingDetails;
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
namespace Update {
|
|
2977
|
-
type LineItems = 'client_only' | 'server_only';
|
|
2978
|
-
|
|
2979
|
-
type ShippingDetails = 'client_only' | 'server_only';
|
|
2980
|
-
}
|
|
2981
|
-
|
|
2982
|
-
type UpdateDiscounts = 'client_only' | 'server_only';
|
|
2983
|
-
|
|
2984
|
-
type UpdateLineItems = 'client_only' | 'server_only';
|
|
2985
|
-
|
|
2986
2751
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2987
2752
|
}
|
|
2988
2753
|
|
|
@@ -3031,7 +2796,7 @@ declare module 'stripe' {
|
|
|
3031
2796
|
description?: string;
|
|
3032
2797
|
|
|
3033
2798
|
/**
|
|
3034
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
2799
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3035
2800
|
*/
|
|
3036
2801
|
metadata?: Stripe.MetadataParam;
|
|
3037
2802
|
|
|
@@ -3321,7 +3086,7 @@ declare module 'stripe' {
|
|
|
3321
3086
|
fixed_amount?: ShippingRateData.FixedAmount;
|
|
3322
3087
|
|
|
3323
3088
|
/**
|
|
3324
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3089
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3325
3090
|
*/
|
|
3326
3091
|
metadata?: Stripe.MetadataParam;
|
|
3327
3092
|
|
|
@@ -3331,7 +3096,7 @@ declare module 'stripe' {
|
|
|
3331
3096
|
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
3332
3097
|
|
|
3333
3098
|
/**
|
|
3334
|
-
* A [tax code](https://stripe.com/
|
|
3099
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
3335
3100
|
*/
|
|
3336
3101
|
tax_code?: string;
|
|
3337
3102
|
|
|
@@ -3457,7 +3222,7 @@ declare module 'stripe' {
|
|
|
3457
3222
|
/**
|
|
3458
3223
|
* The subscription's description, meant to be displayable to the customer.
|
|
3459
3224
|
* Use this field to optionally store an explanation of the subscription
|
|
3460
|
-
* for rendering in the [customer portal](https://stripe.com/
|
|
3225
|
+
* for rendering in the [customer portal](https://docs.stripe.com/customer-management).
|
|
3461
3226
|
*/
|
|
3462
3227
|
description?: string;
|
|
3463
3228
|
|
|
@@ -3467,7 +3232,7 @@ declare module 'stripe' {
|
|
|
3467
3232
|
invoice_settings?: SubscriptionData.InvoiceSettings;
|
|
3468
3233
|
|
|
3469
3234
|
/**
|
|
3470
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3235
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3471
3236
|
*/
|
|
3472
3237
|
metadata?: Stripe.MetadataParam;
|
|
3473
3238
|
|
|
@@ -3637,31 +3402,16 @@ declare module 'stripe' {
|
|
|
3637
3402
|
}
|
|
3638
3403
|
|
|
3639
3404
|
interface SessionUpdateParams {
|
|
3640
|
-
/**
|
|
3641
|
-
* Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
|
|
3642
|
-
*/
|
|
3643
|
-
automatic_tax?: SessionUpdateParams.AutomaticTax;
|
|
3644
|
-
|
|
3645
3405
|
/**
|
|
3646
3406
|
* Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
|
3647
3407
|
*/
|
|
3648
3408
|
collected_information?: SessionUpdateParams.CollectedInformation;
|
|
3649
3409
|
|
|
3650
|
-
/**
|
|
3651
|
-
* List of coupons and promotion codes attached to the Checkout Session.
|
|
3652
|
-
*/
|
|
3653
|
-
discounts?: Stripe.Emptyable<Array<SessionUpdateParams.Discount>>;
|
|
3654
|
-
|
|
3655
3410
|
/**
|
|
3656
3411
|
* Specifies which fields in the response should be expanded.
|
|
3657
3412
|
*/
|
|
3658
3413
|
expand?: Array<string>;
|
|
3659
3414
|
|
|
3660
|
-
/**
|
|
3661
|
-
* Generate a post-purchase Invoice for one-time payments.
|
|
3662
|
-
*/
|
|
3663
|
-
invoice_creation?: SessionUpdateParams.InvoiceCreation;
|
|
3664
|
-
|
|
3665
3415
|
/**
|
|
3666
3416
|
* A list of items the customer is purchasing.
|
|
3667
3417
|
*
|
|
@@ -3680,7 +3430,7 @@ declare module 'stripe' {
|
|
|
3680
3430
|
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3681
3431
|
|
|
3682
3432
|
/**
|
|
3683
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3433
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3684
3434
|
*/
|
|
3685
3435
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3686
3436
|
|
|
@@ -3690,39 +3440,9 @@ declare module 'stripe' {
|
|
|
3690
3440
|
shipping_options?: Stripe.Emptyable<
|
|
3691
3441
|
Array<SessionUpdateParams.ShippingOption>
|
|
3692
3442
|
>;
|
|
3693
|
-
|
|
3694
|
-
/**
|
|
3695
|
-
* A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
|
|
3696
|
-
*/
|
|
3697
|
-
subscription_data?: SessionUpdateParams.SubscriptionData;
|
|
3698
3443
|
}
|
|
3699
3444
|
|
|
3700
3445
|
namespace SessionUpdateParams {
|
|
3701
|
-
interface AutomaticTax {
|
|
3702
|
-
/**
|
|
3703
|
-
* The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
3704
|
-
*/
|
|
3705
|
-
liability?: AutomaticTax.Liability;
|
|
3706
|
-
}
|
|
3707
|
-
|
|
3708
|
-
namespace AutomaticTax {
|
|
3709
|
-
interface Liability {
|
|
3710
|
-
/**
|
|
3711
|
-
* The connected account being referenced when `type` is `account`.
|
|
3712
|
-
*/
|
|
3713
|
-
account?: string;
|
|
3714
|
-
|
|
3715
|
-
/**
|
|
3716
|
-
* Type of the account referenced in the request.
|
|
3717
|
-
*/
|
|
3718
|
-
type: Liability.Type;
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
namespace Liability {
|
|
3722
|
-
type Type = 'account' | 'self';
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
3446
|
interface CollectedInformation {
|
|
3727
3447
|
/**
|
|
3728
3448
|
* The shipping details to apply to this Session.
|
|
@@ -3771,97 +3491,13 @@ declare module 'stripe' {
|
|
|
3771
3491
|
postal_code?: string;
|
|
3772
3492
|
|
|
3773
3493
|
/**
|
|
3774
|
-
* State, county, province, or region.
|
|
3494
|
+
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3775
3495
|
*/
|
|
3776
3496
|
state?: string;
|
|
3777
3497
|
}
|
|
3778
3498
|
}
|
|
3779
3499
|
}
|
|
3780
3500
|
|
|
3781
|
-
interface Discount {
|
|
3782
|
-
/**
|
|
3783
|
-
* The ID of the [Coupon](https://stripe.com/docs/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
|
|
3784
|
-
*/
|
|
3785
|
-
coupon?: string;
|
|
3786
|
-
|
|
3787
|
-
/**
|
|
3788
|
-
* Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
|
|
3789
|
-
*/
|
|
3790
|
-
coupon_data?: Discount.CouponData;
|
|
3791
|
-
}
|
|
3792
|
-
|
|
3793
|
-
namespace Discount {
|
|
3794
|
-
interface CouponData {
|
|
3795
|
-
/**
|
|
3796
|
-
* A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
|
|
3797
|
-
*/
|
|
3798
|
-
amount_off?: number;
|
|
3799
|
-
|
|
3800
|
-
/**
|
|
3801
|
-
* Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
|
|
3802
|
-
*/
|
|
3803
|
-
currency?: string;
|
|
3804
|
-
|
|
3805
|
-
/**
|
|
3806
|
-
* Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
|
|
3807
|
-
*/
|
|
3808
|
-
duration?: CouponData.Duration;
|
|
3809
|
-
|
|
3810
|
-
/**
|
|
3811
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3812
|
-
*/
|
|
3813
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3814
|
-
|
|
3815
|
-
/**
|
|
3816
|
-
* Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
|
|
3817
|
-
*/
|
|
3818
|
-
name?: string;
|
|
3819
|
-
|
|
3820
|
-
/**
|
|
3821
|
-
* A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
|
|
3822
|
-
*/
|
|
3823
|
-
percent_off?: number;
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
namespace CouponData {
|
|
3827
|
-
type Duration = 'forever' | 'once' | 'repeating';
|
|
3828
|
-
}
|
|
3829
|
-
}
|
|
3830
|
-
|
|
3831
|
-
interface InvoiceCreation {
|
|
3832
|
-
/**
|
|
3833
|
-
* Parameters passed when creating invoices for payment-mode Checkout Sessions.
|
|
3834
|
-
*/
|
|
3835
|
-
invoice_data?: InvoiceCreation.InvoiceData;
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
|
-
namespace InvoiceCreation {
|
|
3839
|
-
interface InvoiceData {
|
|
3840
|
-
/**
|
|
3841
|
-
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
3842
|
-
*/
|
|
3843
|
-
issuer?: InvoiceData.Issuer;
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
namespace InvoiceData {
|
|
3847
|
-
interface Issuer {
|
|
3848
|
-
/**
|
|
3849
|
-
* The connected account being referenced when `type` is `account`.
|
|
3850
|
-
*/
|
|
3851
|
-
account?: string;
|
|
3852
|
-
|
|
3853
|
-
/**
|
|
3854
|
-
* Type of the account referenced in the request.
|
|
3855
|
-
*/
|
|
3856
|
-
type: Issuer.Type;
|
|
3857
|
-
}
|
|
3858
|
-
|
|
3859
|
-
namespace Issuer {
|
|
3860
|
-
type Type = 'account' | 'self';
|
|
3861
|
-
}
|
|
3862
|
-
}
|
|
3863
|
-
}
|
|
3864
|
-
|
|
3865
3501
|
interface LineItem {
|
|
3866
3502
|
/**
|
|
3867
3503
|
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
@@ -3874,17 +3510,17 @@ declare module 'stripe' {
|
|
|
3874
3510
|
id?: string;
|
|
3875
3511
|
|
|
3876
3512
|
/**
|
|
3877
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3513
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3878
3514
|
*/
|
|
3879
3515
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3880
3516
|
|
|
3881
3517
|
/**
|
|
3882
|
-
* The ID of the [Price](https://stripe.com/
|
|
3518
|
+
* The ID of the [Price](https://docs.stripe.com/api/prices). One of `price` or `price_data` is required when creating a new line item.
|
|
3883
3519
|
*/
|
|
3884
3520
|
price?: string;
|
|
3885
3521
|
|
|
3886
3522
|
/**
|
|
3887
|
-
* Data used to generate a new [Price](https://stripe.com/
|
|
3523
|
+
* Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
|
|
3888
3524
|
*/
|
|
3889
3525
|
price_data?: LineItem.PriceData;
|
|
3890
3526
|
|
|
@@ -3894,7 +3530,7 @@ declare module 'stripe' {
|
|
|
3894
3530
|
quantity?: number;
|
|
3895
3531
|
|
|
3896
3532
|
/**
|
|
3897
|
-
* The [tax rates](https://stripe.com/
|
|
3533
|
+
* The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
|
|
3898
3534
|
*/
|
|
3899
3535
|
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3900
3536
|
}
|
|
@@ -3939,7 +3575,7 @@ declare module 'stripe' {
|
|
|
3939
3575
|
recurring?: PriceData.Recurring;
|
|
3940
3576
|
|
|
3941
3577
|
/**
|
|
3942
|
-
* Only required if a [default tax behavior](https://stripe.com/
|
|
3578
|
+
* Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
3943
3579
|
*/
|
|
3944
3580
|
tax_behavior?: PriceData.TaxBehavior;
|
|
3945
3581
|
|
|
@@ -3967,7 +3603,7 @@ declare module 'stripe' {
|
|
|
3967
3603
|
images?: Array<string>;
|
|
3968
3604
|
|
|
3969
3605
|
/**
|
|
3970
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3606
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3971
3607
|
*/
|
|
3972
3608
|
metadata?: Stripe.MetadataParam;
|
|
3973
3609
|
|
|
@@ -3977,7 +3613,7 @@ declare module 'stripe' {
|
|
|
3977
3613
|
name: string;
|
|
3978
3614
|
|
|
3979
3615
|
/**
|
|
3980
|
-
* A [tax code](https://stripe.com/
|
|
3616
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
3981
3617
|
*/
|
|
3982
3618
|
tax_code?: string;
|
|
3983
3619
|
|
|
@@ -4037,7 +3673,7 @@ declare module 'stripe' {
|
|
|
4037
3673
|
fixed_amount?: ShippingRateData.FixedAmount;
|
|
4038
3674
|
|
|
4039
3675
|
/**
|
|
4040
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
3676
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
4041
3677
|
*/
|
|
4042
3678
|
metadata?: Stripe.MetadataParam;
|
|
4043
3679
|
|
|
@@ -4047,7 +3683,7 @@ declare module 'stripe' {
|
|
|
4047
3683
|
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
4048
3684
|
|
|
4049
3685
|
/**
|
|
4050
|
-
* A [tax code](https://stripe.com/
|
|
3686
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
4051
3687
|
*/
|
|
4052
3688
|
tax_code?: string;
|
|
4053
3689
|
|
|
@@ -4144,50 +3780,6 @@ declare module 'stripe' {
|
|
|
4144
3780
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
4145
3781
|
}
|
|
4146
3782
|
}
|
|
4147
|
-
|
|
4148
|
-
interface SubscriptionData {
|
|
4149
|
-
/**
|
|
4150
|
-
* All invoices will be billed using the specified settings.
|
|
4151
|
-
*/
|
|
4152
|
-
invoice_settings?: SubscriptionData.InvoiceSettings;
|
|
4153
|
-
|
|
4154
|
-
/**
|
|
4155
|
-
* Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
|
|
4156
|
-
*/
|
|
4157
|
-
trial_end?: number;
|
|
4158
|
-
|
|
4159
|
-
/**
|
|
4160
|
-
* Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
|
|
4161
|
-
*/
|
|
4162
|
-
trial_period_days?: Stripe.Emptyable<number>;
|
|
4163
|
-
}
|
|
4164
|
-
|
|
4165
|
-
namespace SubscriptionData {
|
|
4166
|
-
interface InvoiceSettings {
|
|
4167
|
-
/**
|
|
4168
|
-
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
4169
|
-
*/
|
|
4170
|
-
issuer?: InvoiceSettings.Issuer;
|
|
4171
|
-
}
|
|
4172
|
-
|
|
4173
|
-
namespace InvoiceSettings {
|
|
4174
|
-
interface Issuer {
|
|
4175
|
-
/**
|
|
4176
|
-
* The connected account being referenced when `type` is `account`.
|
|
4177
|
-
*/
|
|
4178
|
-
account?: string;
|
|
4179
|
-
|
|
4180
|
-
/**
|
|
4181
|
-
* Type of the account referenced in the request.
|
|
4182
|
-
*/
|
|
4183
|
-
type: Issuer.Type;
|
|
4184
|
-
}
|
|
4185
|
-
|
|
4186
|
-
namespace Issuer {
|
|
4187
|
-
type Type = 'account' | 'self';
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
}
|
|
4191
3783
|
}
|
|
4192
3784
|
|
|
4193
3785
|
interface SessionListParams extends PaginationParams {
|