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
package/types/Subscriptions.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare module 'stripe' {
|
|
|
5
5
|
/**
|
|
6
6
|
* Subscriptions allow you to charge a customer on a recurring basis.
|
|
7
7
|
*
|
|
8
|
-
* Related guide: [Creating subscriptions](https://stripe.com/
|
|
8
|
+
* Related guide: [Creating subscriptions](https://docs.stripe.com/billing/subscriptions/creating)
|
|
9
9
|
*/
|
|
10
10
|
interface Subscription {
|
|
11
11
|
/**
|
|
@@ -35,12 +35,7 @@ declare module 'stripe' {
|
|
|
35
35
|
automatic_tax: Subscription.AutomaticTax;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
39
|
-
*/
|
|
40
|
-
billing_cadence?: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
|
|
38
|
+
* The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
|
|
44
39
|
*/
|
|
45
40
|
billing_cycle_anchor: number;
|
|
46
41
|
|
|
@@ -54,11 +49,6 @@ declare module 'stripe' {
|
|
|
54
49
|
*/
|
|
55
50
|
billing_mode: Subscription.BillingMode;
|
|
56
51
|
|
|
57
|
-
/**
|
|
58
|
-
* Billing schedules for this subscription.
|
|
59
|
-
*/
|
|
60
|
-
billing_schedules?: Array<Subscription.BillingSchedule>;
|
|
61
|
-
|
|
62
52
|
/**
|
|
63
53
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
64
54
|
*/
|
|
@@ -105,9 +95,9 @@ declare module 'stripe' {
|
|
|
105
95
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
106
96
|
|
|
107
97
|
/**
|
|
108
|
-
* ID of the account who owns the subscription.
|
|
98
|
+
* ID of the account representing the customer who owns the subscription.
|
|
109
99
|
*/
|
|
110
|
-
customer_account
|
|
100
|
+
customer_account: string | null;
|
|
111
101
|
|
|
112
102
|
/**
|
|
113
103
|
* Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`.
|
|
@@ -115,12 +105,12 @@ declare module 'stripe' {
|
|
|
115
105
|
days_until_due: number | null;
|
|
116
106
|
|
|
117
107
|
/**
|
|
118
|
-
* ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/
|
|
108
|
+
* ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
119
109
|
*/
|
|
120
110
|
default_payment_method: string | Stripe.PaymentMethod | null;
|
|
121
111
|
|
|
122
112
|
/**
|
|
123
|
-
* ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/
|
|
113
|
+
* ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
124
114
|
*/
|
|
125
115
|
default_source: string | Stripe.CustomerSource | null;
|
|
126
116
|
|
|
@@ -151,11 +141,6 @@ declare module 'stripe' {
|
|
|
151
141
|
*/
|
|
152
142
|
items: ApiList<Stripe.SubscriptionItem>;
|
|
153
143
|
|
|
154
|
-
/**
|
|
155
|
-
* Details of the most recent price migration that failed for the subscription.
|
|
156
|
-
*/
|
|
157
|
-
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
|
|
158
|
-
|
|
159
144
|
/**
|
|
160
145
|
* The most recent invoice this subscription has generated.
|
|
161
146
|
*/
|
|
@@ -167,7 +152,7 @@ declare module 'stripe' {
|
|
|
167
152
|
livemode: boolean;
|
|
168
153
|
|
|
169
154
|
/**
|
|
170
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
155
|
+
* 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.
|
|
171
156
|
*/
|
|
172
157
|
metadata: Stripe.Metadata;
|
|
173
158
|
|
|
@@ -177,12 +162,12 @@ declare module 'stripe' {
|
|
|
177
162
|
next_pending_invoice_item_invoice: number | null;
|
|
178
163
|
|
|
179
164
|
/**
|
|
180
|
-
* The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://stripe.com/
|
|
165
|
+
* The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://docs.stripe.com/connect/subscriptions#on-behalf-of) for details.
|
|
181
166
|
*/
|
|
182
167
|
on_behalf_of: string | Stripe.Account | null;
|
|
183
168
|
|
|
184
169
|
/**
|
|
185
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/
|
|
170
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
186
171
|
*/
|
|
187
172
|
pause_collection: Subscription.PauseCollection | null;
|
|
188
173
|
|
|
@@ -192,25 +177,20 @@ declare module 'stripe' {
|
|
|
192
177
|
payment_settings: Subscription.PaymentSettings | null;
|
|
193
178
|
|
|
194
179
|
/**
|
|
195
|
-
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/
|
|
180
|
+
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
|
|
196
181
|
*/
|
|
197
182
|
pending_invoice_item_interval: Subscription.PendingInvoiceItemInterval | null;
|
|
198
183
|
|
|
199
184
|
/**
|
|
200
|
-
* You can use this [SetupIntent](https://stripe.com/
|
|
185
|
+
* You can use this [SetupIntent](https://docs.stripe.com/api/setup_intents) to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication#scenario-2).
|
|
201
186
|
*/
|
|
202
187
|
pending_setup_intent: string | Stripe.SetupIntent | null;
|
|
203
188
|
|
|
204
189
|
/**
|
|
205
|
-
* If specified, [pending updates](https://stripe.com/
|
|
190
|
+
* If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
206
191
|
*/
|
|
207
192
|
pending_update: Subscription.PendingUpdate | null;
|
|
208
193
|
|
|
209
|
-
/**
|
|
210
|
-
* Time period and invoice for a Subscription billed in advance.
|
|
211
|
-
*/
|
|
212
|
-
prebilling?: Subscription.Prebilling | null;
|
|
213
|
-
|
|
214
194
|
/**
|
|
215
195
|
* The schedule attached to the subscription
|
|
216
196
|
*/
|
|
@@ -228,7 +208,7 @@ declare module 'stripe' {
|
|
|
228
208
|
*
|
|
229
209
|
* A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over.
|
|
230
210
|
*
|
|
231
|
-
* A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/
|
|
211
|
+
* A subscription can only enter a `paused` status [when a trial ends without a payment method](https://docs.stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
|
|
232
212
|
*
|
|
233
213
|
* If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings).
|
|
234
214
|
*
|
|
@@ -357,101 +337,6 @@ declare module 'stripe' {
|
|
|
357
337
|
type Type = 'classic' | 'flexible';
|
|
358
338
|
}
|
|
359
339
|
|
|
360
|
-
interface BillingSchedule {
|
|
361
|
-
/**
|
|
362
|
-
* Specifies which subscription items the billing schedule applies to.
|
|
363
|
-
*/
|
|
364
|
-
applies_to: Array<BillingSchedule.AppliesTo> | null;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Specifies the start of the billing period.
|
|
368
|
-
*/
|
|
369
|
-
bill_from?: BillingSchedule.BillFrom | null;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Specifies the end of billing period.
|
|
373
|
-
*/
|
|
374
|
-
bill_until: BillingSchedule.BillUntil;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Unique identifier for the billing schedule.
|
|
378
|
-
*/
|
|
379
|
-
key: string;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
namespace BillingSchedule {
|
|
383
|
-
interface AppliesTo {
|
|
384
|
-
/**
|
|
385
|
-
* The billing schedule will apply to the subscription item with the given price ID.
|
|
386
|
-
*/
|
|
387
|
-
price: string | Stripe.Price | null;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Controls which subscription items the billing schedule applies to.
|
|
391
|
-
*/
|
|
392
|
-
type: 'price';
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
interface BillFrom {
|
|
396
|
-
/**
|
|
397
|
-
* The time the billing schedule applies from.
|
|
398
|
-
*/
|
|
399
|
-
computed_timestamp: number;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
403
|
-
*/
|
|
404
|
-
timestamp: number | null;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
408
|
-
*/
|
|
409
|
-
type: 'timestamp';
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
interface BillUntil {
|
|
413
|
-
/**
|
|
414
|
-
* The timestamp the billing schedule will apply until.
|
|
415
|
-
*/
|
|
416
|
-
computed_timestamp: number;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Specifies the billing period.
|
|
420
|
-
*/
|
|
421
|
-
duration: BillUntil.Duration | null;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* If specified, the billing schedule will apply until the specified timestamp.
|
|
425
|
-
*/
|
|
426
|
-
timestamp: number | null;
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
430
|
-
*/
|
|
431
|
-
type: BillUntil.Type;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
namespace BillUntil {
|
|
435
|
-
interface Duration {
|
|
436
|
-
/**
|
|
437
|
-
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
438
|
-
*/
|
|
439
|
-
interval: Duration.Interval;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* The multiplier applied to the interval.
|
|
443
|
-
*/
|
|
444
|
-
interval_count: number | null;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
namespace Duration {
|
|
448
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
type Type = 'duration' | 'timestamp';
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
340
|
interface BillingThresholds {
|
|
456
341
|
/**
|
|
457
342
|
* Monetary threshold that triggers the subscription to create an invoice
|
|
@@ -529,37 +414,6 @@ declare module 'stripe' {
|
|
|
529
414
|
}
|
|
530
415
|
}
|
|
531
416
|
|
|
532
|
-
interface LastPriceMigrationError {
|
|
533
|
-
/**
|
|
534
|
-
* The time at which the price migration encountered an error.
|
|
535
|
-
*/
|
|
536
|
-
errored_at: number;
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* The involved price pairs in each failed transition.
|
|
540
|
-
*/
|
|
541
|
-
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* The type of error encountered by the price migration.
|
|
545
|
-
*/
|
|
546
|
-
type: 'price_uniqueness_violation';
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
namespace LastPriceMigrationError {
|
|
550
|
-
interface FailedTransition {
|
|
551
|
-
/**
|
|
552
|
-
* The original price to be migrated.
|
|
553
|
-
*/
|
|
554
|
-
source_price: string;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* The intended resulting price of the migration.
|
|
558
|
-
*/
|
|
559
|
-
target_price: string;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
417
|
interface PauseCollection {
|
|
564
418
|
/**
|
|
565
419
|
* The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
@@ -615,31 +469,21 @@ declare module 'stripe' {
|
|
|
615
469
|
*/
|
|
616
470
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
617
471
|
|
|
618
|
-
/**
|
|
619
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
620
|
-
*/
|
|
621
|
-
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
622
|
-
|
|
623
472
|
/**
|
|
624
473
|
* This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
625
474
|
*/
|
|
626
475
|
konbini: PaymentMethodOptions.Konbini | null;
|
|
627
476
|
|
|
628
477
|
/**
|
|
629
|
-
* This sub-hash contains details about the
|
|
478
|
+
* This sub-hash contains details about the PayTo payment method options to pass to invoices created by the subscription.
|
|
630
479
|
*/
|
|
631
|
-
|
|
480
|
+
payto?: PaymentMethodOptions.Payto | null;
|
|
632
481
|
|
|
633
482
|
/**
|
|
634
483
|
* This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
|
|
635
484
|
*/
|
|
636
485
|
sepa_debit: PaymentMethodOptions.SepaDebit | null;
|
|
637
486
|
|
|
638
|
-
/**
|
|
639
|
-
* This sub-hash contains details about the UPI payment method options to pass to invoices created by the subscription.
|
|
640
|
-
*/
|
|
641
|
-
upi?: PaymentMethodOptions.Upi | null;
|
|
642
|
-
|
|
643
487
|
/**
|
|
644
488
|
* This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
|
|
645
489
|
*/
|
|
@@ -691,7 +535,7 @@ declare module 'stripe' {
|
|
|
691
535
|
network: Card.Network | null;
|
|
692
536
|
|
|
693
537
|
/**
|
|
694
|
-
* 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/
|
|
538
|
+
* 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. 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.
|
|
695
539
|
*/
|
|
696
540
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
697
541
|
}
|
|
@@ -769,83 +613,50 @@ declare module 'stripe' {
|
|
|
769
613
|
}
|
|
770
614
|
}
|
|
771
615
|
|
|
772
|
-
interface IdBankTransfer {}
|
|
773
|
-
|
|
774
616
|
interface Konbini {}
|
|
775
617
|
|
|
776
|
-
interface
|
|
777
|
-
mandate_options?:
|
|
618
|
+
interface Payto {
|
|
619
|
+
mandate_options?: Payto.MandateOptions;
|
|
778
620
|
}
|
|
779
621
|
|
|
780
|
-
namespace
|
|
622
|
+
namespace Payto {
|
|
781
623
|
interface MandateOptions {
|
|
782
624
|
/**
|
|
783
|
-
*
|
|
625
|
+
* The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
|
|
784
626
|
*/
|
|
785
627
|
amount: number | null;
|
|
786
628
|
|
|
787
629
|
/**
|
|
788
|
-
*
|
|
789
|
-
*/
|
|
790
|
-
amount_includes_iof: MandateOptions.AmountIncludesIof | null;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
794
|
-
*/
|
|
795
|
-
end_date: string | null;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Schedule at which the future payments will be charged.
|
|
799
|
-
*/
|
|
800
|
-
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
namespace MandateOptions {
|
|
804
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
805
|
-
|
|
806
|
-
type PaymentSchedule =
|
|
807
|
-
| 'halfyearly'
|
|
808
|
-
| 'monthly'
|
|
809
|
-
| 'quarterly'
|
|
810
|
-
| 'weekly'
|
|
811
|
-
| 'yearly';
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
interface SepaDebit {}
|
|
816
|
-
|
|
817
|
-
interface Upi {
|
|
818
|
-
mandate_options?: Upi.MandateOptions;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
namespace Upi {
|
|
822
|
-
interface MandateOptions {
|
|
823
|
-
/**
|
|
824
|
-
* Amount to be charged for future payments.
|
|
825
|
-
*/
|
|
826
|
-
amount: number | null;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
630
|
+
* Only `maximum` is supported.
|
|
830
631
|
*/
|
|
831
632
|
amount_type: MandateOptions.AmountType | null;
|
|
832
633
|
|
|
833
634
|
/**
|
|
834
|
-
*
|
|
835
|
-
*/
|
|
836
|
-
description: string | null;
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
635
|
+
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
840
636
|
*/
|
|
841
|
-
|
|
637
|
+
purpose: MandateOptions.Purpose | null;
|
|
842
638
|
}
|
|
843
639
|
|
|
844
640
|
namespace MandateOptions {
|
|
845
641
|
type AmountType = 'fixed' | 'maximum';
|
|
642
|
+
|
|
643
|
+
type Purpose =
|
|
644
|
+
| 'dependant_support'
|
|
645
|
+
| 'government'
|
|
646
|
+
| 'loan'
|
|
647
|
+
| 'mortgage'
|
|
648
|
+
| 'other'
|
|
649
|
+
| 'pension'
|
|
650
|
+
| 'personal'
|
|
651
|
+
| 'retail'
|
|
652
|
+
| 'salary'
|
|
653
|
+
| 'tax'
|
|
654
|
+
| 'utility';
|
|
846
655
|
}
|
|
847
656
|
}
|
|
848
657
|
|
|
658
|
+
interface SepaDebit {}
|
|
659
|
+
|
|
849
660
|
interface UsBankAccount {
|
|
850
661
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
851
662
|
|
|
@@ -876,11 +687,6 @@ declare module 'stripe' {
|
|
|
876
687
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
877
688
|
*/
|
|
878
689
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* The institution to use to filter for possible accounts to link.
|
|
882
|
-
*/
|
|
883
|
-
institution?: string;
|
|
884
690
|
}
|
|
885
691
|
|
|
886
692
|
namespace Filters {
|
|
@@ -893,11 +699,7 @@ declare module 'stripe' {
|
|
|
893
699
|
| 'payment_method'
|
|
894
700
|
| 'transactions';
|
|
895
701
|
|
|
896
|
-
type Prefetch =
|
|
897
|
-
| 'balances'
|
|
898
|
-
| 'inferred_balances'
|
|
899
|
-
| 'ownership'
|
|
900
|
-
| 'transactions';
|
|
702
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
901
703
|
}
|
|
902
704
|
|
|
903
705
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -923,7 +725,6 @@ declare module 'stripe' {
|
|
|
923
725
|
| 'fpx'
|
|
924
726
|
| 'giropay'
|
|
925
727
|
| 'grabpay'
|
|
926
|
-
| 'id_bank_transfer'
|
|
927
728
|
| 'ideal'
|
|
928
729
|
| 'jp_credit_transfer'
|
|
929
730
|
| 'kakao_pay'
|
|
@@ -938,15 +739,13 @@ declare module 'stripe' {
|
|
|
938
739
|
| 'payco'
|
|
939
740
|
| 'paynow'
|
|
940
741
|
| 'paypal'
|
|
941
|
-
| '
|
|
742
|
+
| 'payto'
|
|
942
743
|
| 'promptpay'
|
|
943
744
|
| 'revolut_pay'
|
|
944
745
|
| 'sepa_credit_transfer'
|
|
945
746
|
| 'sepa_debit'
|
|
946
747
|
| 'sofort'
|
|
947
|
-
| 'stripe_balance'
|
|
948
748
|
| 'swish'
|
|
949
|
-
| 'upi'
|
|
950
749
|
| 'us_bank_account'
|
|
951
750
|
| 'wechat_pay';
|
|
952
751
|
|
|
@@ -980,11 +779,6 @@ declare module 'stripe' {
|
|
|
980
779
|
*/
|
|
981
780
|
expires_at: number;
|
|
982
781
|
|
|
983
|
-
/**
|
|
984
|
-
* The number of iterations of prebilling to apply.
|
|
985
|
-
*/
|
|
986
|
-
prebilling_iterations?: number | null;
|
|
987
|
-
|
|
988
782
|
/**
|
|
989
783
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
990
784
|
*/
|
|
@@ -996,37 +790,11 @@ declare module 'stripe' {
|
|
|
996
790
|
trial_end: number | null;
|
|
997
791
|
|
|
998
792
|
/**
|
|
999
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/
|
|
793
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
1000
794
|
*/
|
|
1001
795
|
trial_from_plan: boolean | null;
|
|
1002
796
|
}
|
|
1003
797
|
|
|
1004
|
-
interface Prebilling {
|
|
1005
|
-
/**
|
|
1006
|
-
* ID of the prebilling invoice.
|
|
1007
|
-
*/
|
|
1008
|
-
invoice: string | Stripe.Invoice;
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* The end of the last period for which the invoice pre-bills.
|
|
1012
|
-
*/
|
|
1013
|
-
period_end: number;
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* The start of the first period for which the invoice pre-bills.
|
|
1017
|
-
*/
|
|
1018
|
-
period_start: number;
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
1022
|
-
*/
|
|
1023
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
namespace Prebilling {
|
|
1027
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
798
|
type Status =
|
|
1031
799
|
| 'active'
|
|
1032
800
|
| 'canceled'
|