stripe 20.1.0-beta.1 → 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 -1500
- 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/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Subscriptions.js +0 -4
- package/cjs/resources.js +2 -88
- 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/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Subscriptions.js +0 -4
- package/esm/resources.js +0 -81
- 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 -47
- package/types/AccountSessionsResource.d.ts +0 -264
- package/types/Accounts.d.ts +25 -249
- package/types/AccountsResource.d.ts +114 -620
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -2
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +1 -1
- package/types/BankAccounts.d.ts +10 -12
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/CreditBalanceSummary.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +3 -3
- package/types/Billing/CreditGrantsResource.d.ts +3 -3
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- 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 -7
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -179
- package/types/ChargesResource.d.ts +88 -3868
- package/types/Checkout/Sessions.d.ts +20 -297
- package/types/Checkout/SessionsResource.d.ts +59 -417
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -109
- 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 -6
- 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 -8
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +8 -13
- package/types/InvoiceItemsResource.d.ts +16 -114
- package/types/InvoiceLineItems.d.ts +10 -46
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +60 -204
- package/types/InvoicesResource.d.ts +132 -1651
- 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 -705
- package/types/PaymentIntentsResource.d.ts +6867 -19451
- 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 -116
- package/types/PaymentMethodsResource.d.ts +7 -116
- 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 -23
- 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 -602
- package/types/QuotesResource.d.ts +298 -2628
- 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 -157
- package/types/SetupIntentsResource.d.ts +50 -673
- 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 -33
- package/types/SubscriptionItemsResource.d.ts +22 -131
- package/types/SubscriptionSchedules.d.ts +9 -209
- package/types/SubscriptionSchedulesResource.d.ts +39 -1257
- package/types/Subscriptions.d.ts +41 -251
- package/types/SubscriptionsResource.d.ts +94 -734
- 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 -17
- 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 -10
- package/types/TransfersResource.d.ts +6 -11
- 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 +129 -24
- 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 +256 -1349
- package/types/V2/Core/AccountsResource.d.ts +282 -567
- package/types/V2/Core/EventTypes.d.ts +10 -1542
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +5 -79
- package/types/apiVersion.d.ts +2 -1
- package/types/index.d.ts +0 -134
- package/types/lib.d.ts +0 -10
- package/cjs/resources/AccountNotices.js +0 -21
- 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/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/FxQuotes.js +0 -15
- 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/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Privacy/RedactionJobs.js +0 -42
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- 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/Profiles.js +0 -19
- 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/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/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- 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/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/FxQuotes.js +0 -12
- 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/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Privacy/RedactionJobs.js +0 -39
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- 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/Profiles.js +0 -16
- 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/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/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
- package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
- package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
- 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/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/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/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/Privacy/RedactionJobValidationErrors.d.ts +0 -60
- package/types/Privacy/RedactionJobs.d.ts +0 -111
- package/types/Privacy/RedactionJobsResource.d.ts +0 -230
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1771
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
- 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/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 -690
- package/types/V2/Billing/CadencesResource.d.ts +0 -487
- 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/Profiles.d.ts +0 -70
- package/types/V2/Billing/ProfilesResource.d.ts +0 -150
- 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 -32
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -175
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -109
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
- 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 -302
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
package/types/Quotes.d.ts
CHANGED
|
@@ -17,11 +17,6 @@ declare module 'stripe' {
|
|
|
17
17
|
*/
|
|
18
18
|
object: 'quote';
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
|
|
22
|
-
*/
|
|
23
|
-
allow_backdated_lines?: boolean | null;
|
|
24
|
-
|
|
25
20
|
/**
|
|
26
21
|
* Total before any discounts or taxes are applied.
|
|
27
22
|
*/
|
|
@@ -71,14 +66,14 @@ declare module 'stripe' {
|
|
|
71
66
|
currency: string | null;
|
|
72
67
|
|
|
73
68
|
/**
|
|
74
|
-
* The customer
|
|
69
|
+
* The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
|
|
75
70
|
*/
|
|
76
71
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
77
72
|
|
|
78
73
|
/**
|
|
79
|
-
* The account
|
|
74
|
+
* The account representing the customer who received this quote. A customer or account is required to finalize the quote. Once specified, you can't change it.
|
|
80
75
|
*/
|
|
81
|
-
customer_account
|
|
76
|
+
customer_account: string | null;
|
|
82
77
|
|
|
83
78
|
/**
|
|
84
79
|
* The tax rates applied to this quote.
|
|
@@ -106,7 +101,7 @@ declare module 'stripe' {
|
|
|
106
101
|
footer: string | null;
|
|
107
102
|
|
|
108
103
|
/**
|
|
109
|
-
* Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/
|
|
104
|
+
* Details of the quote that was cloned. See the [cloning documentation](https://docs.stripe.com/quotes/clone) for more details.
|
|
110
105
|
*/
|
|
111
106
|
from_quote: Quote.FromQuote | null;
|
|
112
107
|
|
|
@@ -127,23 +122,18 @@ declare module 'stripe' {
|
|
|
127
122
|
*/
|
|
128
123
|
line_items?: ApiList<Stripe.LineItem>;
|
|
129
124
|
|
|
130
|
-
/**
|
|
131
|
-
* A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
|
132
|
-
*/
|
|
133
|
-
lines?: Array<string> | null;
|
|
134
|
-
|
|
135
125
|
/**
|
|
136
126
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
137
127
|
*/
|
|
138
128
|
livemode: boolean;
|
|
139
129
|
|
|
140
130
|
/**
|
|
141
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
131
|
+
* 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.
|
|
142
132
|
*/
|
|
143
133
|
metadata: Stripe.Metadata;
|
|
144
134
|
|
|
145
135
|
/**
|
|
146
|
-
* A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/
|
|
136
|
+
* A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://docs.stripe.com/quotes/overview#finalize).
|
|
147
137
|
*/
|
|
148
138
|
number: string | null;
|
|
149
139
|
|
|
@@ -157,11 +147,6 @@ declare module 'stripe' {
|
|
|
157
147
|
*/
|
|
158
148
|
status: Quote.Status;
|
|
159
149
|
|
|
160
|
-
/**
|
|
161
|
-
* Details on when and why a quote has been marked as stale or canceled.
|
|
162
|
-
*/
|
|
163
|
-
status_details?: Quote.StatusDetails | null;
|
|
164
|
-
|
|
165
150
|
status_transitions: Quote.StatusTransitions;
|
|
166
151
|
|
|
167
152
|
/**
|
|
@@ -171,23 +156,11 @@ declare module 'stripe' {
|
|
|
171
156
|
|
|
172
157
|
subscription_data: Quote.SubscriptionData;
|
|
173
158
|
|
|
174
|
-
/**
|
|
175
|
-
* List representing overrides for `subscription_data` configurations for specific subscription schedules.
|
|
176
|
-
*/
|
|
177
|
-
subscription_data_overrides?: Array<
|
|
178
|
-
Quote.SubscriptionDataOverride
|
|
179
|
-
> | null;
|
|
180
|
-
|
|
181
159
|
/**
|
|
182
160
|
* The subscription schedule that was created or updated from this quote.
|
|
183
161
|
*/
|
|
184
162
|
subscription_schedule: string | Stripe.SubscriptionSchedule | null;
|
|
185
163
|
|
|
186
|
-
/**
|
|
187
|
-
* The subscription schedules that were created or updated from this quote.
|
|
188
|
-
*/
|
|
189
|
-
subscription_schedules?: Array<Quote.SubscriptionSchedule> | null;
|
|
190
|
-
|
|
191
164
|
/**
|
|
192
165
|
* ID of the test clock this quote belongs to.
|
|
193
166
|
*/
|
|
@@ -247,62 +220,15 @@ declare module 'stripe' {
|
|
|
247
220
|
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
248
221
|
|
|
249
222
|
interface Computed {
|
|
250
|
-
/**
|
|
251
|
-
* Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
|
|
252
|
-
*/
|
|
253
|
-
last_reestimation_details?: Computed.LastReestimationDetails | null;
|
|
254
|
-
|
|
255
223
|
/**
|
|
256
224
|
* The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.
|
|
257
225
|
*/
|
|
258
226
|
recurring: Computed.Recurring | null;
|
|
259
227
|
|
|
260
|
-
/**
|
|
261
|
-
* The time at which the quote's estimated schedules and upcoming invoices were generated.
|
|
262
|
-
*/
|
|
263
|
-
updated_at?: number | null;
|
|
264
|
-
|
|
265
228
|
upfront: Computed.Upfront;
|
|
266
229
|
}
|
|
267
230
|
|
|
268
231
|
namespace Computed {
|
|
269
|
-
interface LastReestimationDetails {
|
|
270
|
-
/**
|
|
271
|
-
* When `status` is `failed`, provides details about the quote reestimation failure.
|
|
272
|
-
*/
|
|
273
|
-
failed: LastReestimationDetails.Failed | null;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Latest status of the reestimation.
|
|
277
|
-
*/
|
|
278
|
-
status: LastReestimationDetails.Status;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
namespace LastReestimationDetails {
|
|
282
|
-
interface Failed {
|
|
283
|
-
/**
|
|
284
|
-
* The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
|
|
285
|
-
*/
|
|
286
|
-
failure_code: string | null;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
|
|
290
|
-
*/
|
|
291
|
-
message: string | null;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The reason the reestimation failed.
|
|
295
|
-
*/
|
|
296
|
-
reason: Failed.Reason;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
namespace Failed {
|
|
300
|
-
type Reason = 'automation_failure' | 'internal_error';
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
type Status = 'failed' | 'in_progress' | 'succeeded';
|
|
304
|
-
}
|
|
305
|
-
|
|
306
232
|
interface Recurring {
|
|
307
233
|
/**
|
|
308
234
|
* Total before any discounts or taxes are applied.
|
|
@@ -370,10 +296,10 @@ declare module 'stripe' {
|
|
|
370
296
|
amount: number;
|
|
371
297
|
|
|
372
298
|
/**
|
|
373
|
-
* A discount represents the actual application of a [coupon](https://stripe.com
|
|
299
|
+
* A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
374
300
|
* It contains information about when the discount began, when it will end, and what it is applied to.
|
|
375
301
|
*
|
|
376
|
-
* Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
302
|
+
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
377
303
|
*/
|
|
378
304
|
discount: Stripe.Discount;
|
|
379
305
|
}
|
|
@@ -484,10 +410,10 @@ declare module 'stripe' {
|
|
|
484
410
|
amount: number;
|
|
485
411
|
|
|
486
412
|
/**
|
|
487
|
-
* A discount represents the actual application of a [coupon](https://stripe.com
|
|
413
|
+
* A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
488
414
|
* It contains information about when the discount began, when it will end, and what it is applied to.
|
|
489
415
|
*
|
|
490
|
-
* Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
416
|
+
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
491
417
|
*/
|
|
492
418
|
discount: Stripe.Discount;
|
|
493
419
|
}
|
|
@@ -578,153 +504,7 @@ declare module 'stripe' {
|
|
|
578
504
|
}
|
|
579
505
|
}
|
|
580
506
|
|
|
581
|
-
type Status =
|
|
582
|
-
| 'accepted'
|
|
583
|
-
| 'accepting'
|
|
584
|
-
| 'canceled'
|
|
585
|
-
| 'draft'
|
|
586
|
-
| 'open'
|
|
587
|
-
| 'stale';
|
|
588
|
-
|
|
589
|
-
interface StatusDetails {
|
|
590
|
-
canceled?: StatusDetails.Canceled;
|
|
591
|
-
|
|
592
|
-
stale?: StatusDetails.Stale;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
namespace StatusDetails {
|
|
596
|
-
interface Canceled {
|
|
597
|
-
/**
|
|
598
|
-
* The reason this quote was marked as canceled.
|
|
599
|
-
*/
|
|
600
|
-
reason: Canceled.Reason | null;
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
|
|
604
|
-
*/
|
|
605
|
-
transitioned_at: number | null;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
namespace Canceled {
|
|
609
|
-
type Reason =
|
|
610
|
-
| 'canceled'
|
|
611
|
-
| 'quote_accepted'
|
|
612
|
-
| 'quote_expired'
|
|
613
|
-
| 'quote_superseded'
|
|
614
|
-
| 'subscription_canceled';
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
interface Stale {
|
|
618
|
-
/**
|
|
619
|
-
* Time at which the quote expires. Measured in seconds since the Unix epoch.
|
|
620
|
-
*/
|
|
621
|
-
expires_at: number | null;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* The most recent reason this quote was marked as stale.
|
|
625
|
-
*/
|
|
626
|
-
last_reason: Stale.LastReason | null;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
|
|
630
|
-
*/
|
|
631
|
-
last_updated_at: number | null;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
|
|
635
|
-
*/
|
|
636
|
-
transitioned_at: number | null;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
namespace Stale {
|
|
640
|
-
interface LastReason {
|
|
641
|
-
/**
|
|
642
|
-
* The ID of the line that is invalid if the stale reason type is `line_invalid`.
|
|
643
|
-
*/
|
|
644
|
-
line_invalid?: string;
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
|
|
648
|
-
*/
|
|
649
|
-
lines_invalid?: Array<LastReason.LinesInvalid>;
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* The user supplied mark stale reason.
|
|
653
|
-
*/
|
|
654
|
-
marked_stale?: string | null;
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* The ID of the subscription that was canceled.
|
|
658
|
-
*/
|
|
659
|
-
subscription_canceled?: string;
|
|
660
|
-
|
|
661
|
-
subscription_changed?: LastReason.SubscriptionChanged;
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* The ID of the subscription that was expired.
|
|
665
|
-
*/
|
|
666
|
-
subscription_expired?: string;
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* The ID of the subscription schedule that was canceled.
|
|
670
|
-
*/
|
|
671
|
-
subscription_schedule_canceled?: string;
|
|
672
|
-
|
|
673
|
-
subscription_schedule_changed?: LastReason.SubscriptionScheduleChanged;
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* The ID of the subscription schedule that was released.
|
|
677
|
-
*/
|
|
678
|
-
subscription_schedule_released?: string;
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* The reason the quote was marked as stale.
|
|
682
|
-
*/
|
|
683
|
-
type: LastReason.Type | null;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
namespace LastReason {
|
|
687
|
-
interface LinesInvalid {
|
|
688
|
-
/**
|
|
689
|
-
* The timestamp at which the lines were marked as invalid.
|
|
690
|
-
*/
|
|
691
|
-
invalid_at: number;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* The list of lines that became invalid at the given timestamp.
|
|
695
|
-
*/
|
|
696
|
-
lines: Array<string>;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
interface SubscriptionChanged {
|
|
700
|
-
/**
|
|
701
|
-
* The subscription's state before the quote was marked as stale.
|
|
702
|
-
*/
|
|
703
|
-
previous_subscription: Stripe.Subscription | null;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
interface SubscriptionScheduleChanged {
|
|
707
|
-
/**
|
|
708
|
-
* The subscription schedule's state before the quote was marked as stale.
|
|
709
|
-
*/
|
|
710
|
-
previous_subscription_schedule: Stripe.SubscriptionSchedule | null;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
type Type =
|
|
714
|
-
| 'accept_failed_validations'
|
|
715
|
-
| 'bill_on_acceptance_invalid'
|
|
716
|
-
| 'line_invalid'
|
|
717
|
-
| 'lines_invalid'
|
|
718
|
-
| 'marked_stale'
|
|
719
|
-
| 'subscription_canceled'
|
|
720
|
-
| 'subscription_changed'
|
|
721
|
-
| 'subscription_expired'
|
|
722
|
-
| 'subscription_schedule_canceled'
|
|
723
|
-
| 'subscription_schedule_changed'
|
|
724
|
-
| 'subscription_schedule_released';
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
}
|
|
507
|
+
type Status = 'accepted' | 'canceled' | 'draft' | 'open';
|
|
728
508
|
|
|
729
509
|
interface StatusTransitions {
|
|
730
510
|
/**
|
|
@@ -744,21 +524,6 @@ declare module 'stripe' {
|
|
|
744
524
|
}
|
|
745
525
|
|
|
746
526
|
interface SubscriptionData {
|
|
747
|
-
/**
|
|
748
|
-
* Describes the period to bill for upon accepting the quote.
|
|
749
|
-
*/
|
|
750
|
-
bill_on_acceptance?: SubscriptionData.BillOnAcceptance | null;
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
754
|
-
*/
|
|
755
|
-
billing_behavior?: SubscriptionData.BillingBehavior;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Whether the subscription will always start a new billing period when the quote is accepted.
|
|
759
|
-
*/
|
|
760
|
-
billing_cycle_anchor?: 'reset' | null;
|
|
761
|
-
|
|
762
527
|
/**
|
|
763
528
|
* The billing mode of the quote.
|
|
764
529
|
*/
|
|
@@ -775,30 +540,10 @@ declare module 'stripe' {
|
|
|
775
540
|
effective_date: number | null;
|
|
776
541
|
|
|
777
542
|
/**
|
|
778
|
-
*
|
|
779
|
-
*/
|
|
780
|
-
end_behavior?: SubscriptionData.EndBehavior | null;
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* The id of the subscription that will be updated when the quote is accepted.
|
|
784
|
-
*/
|
|
785
|
-
from_subscription?: string | Stripe.Subscription | null;
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
|
543
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
|
789
544
|
*/
|
|
790
545
|
metadata: Stripe.Metadata | null;
|
|
791
546
|
|
|
792
|
-
/**
|
|
793
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
|
|
794
|
-
*/
|
|
795
|
-
prebilling?: SubscriptionData.Prebilling | null;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
799
|
-
*/
|
|
800
|
-
proration_behavior?: SubscriptionData.ProrationBehavior;
|
|
801
|
-
|
|
802
547
|
/**
|
|
803
548
|
* Integer representing the number of trial period days before the customer is charged for the first time.
|
|
804
549
|
*/
|
|
@@ -806,8 +551,6 @@ declare module 'stripe' {
|
|
|
806
551
|
}
|
|
807
552
|
|
|
808
553
|
namespace SubscriptionData {
|
|
809
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
810
|
-
|
|
811
554
|
interface BillingMode {
|
|
812
555
|
flexible?: BillingMode.Flexible;
|
|
813
556
|
|
|
@@ -831,337 +574,6 @@ declare module 'stripe' {
|
|
|
831
574
|
|
|
832
575
|
type Type = 'classic' | 'flexible';
|
|
833
576
|
}
|
|
834
|
-
|
|
835
|
-
interface BillOnAcceptance {
|
|
836
|
-
/**
|
|
837
|
-
* The start of the period to bill from when the Quote is accepted.
|
|
838
|
-
*/
|
|
839
|
-
bill_from: BillOnAcceptance.BillFrom | null;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* The end of the period to bill until when the Quote is accepted.
|
|
843
|
-
*/
|
|
844
|
-
bill_until: BillOnAcceptance.BillUntil | null;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
namespace BillOnAcceptance {
|
|
848
|
-
interface BillFrom {
|
|
849
|
-
/**
|
|
850
|
-
* The materialized time.
|
|
851
|
-
*/
|
|
852
|
-
computed: number | null;
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* The timestamp the given line starts at.
|
|
856
|
-
*/
|
|
857
|
-
line_starts_at: BillFrom.LineStartsAt | null;
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* A precise Unix timestamp.
|
|
861
|
-
*/
|
|
862
|
-
timestamp: number | null;
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* The type of method to specify the `bill_from` time.
|
|
866
|
-
*/
|
|
867
|
-
type: BillFrom.Type;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
namespace BillFrom {
|
|
871
|
-
interface LineStartsAt {
|
|
872
|
-
/**
|
|
873
|
-
* Unique identifier for the object.
|
|
874
|
-
*/
|
|
875
|
-
id: string;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
type Type =
|
|
879
|
-
| 'line_starts_at'
|
|
880
|
-
| 'now'
|
|
881
|
-
| 'pause_collection_start'
|
|
882
|
-
| 'quote_acceptance_date'
|
|
883
|
-
| 'timestamp';
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
interface BillUntil {
|
|
887
|
-
/**
|
|
888
|
-
* The materialized time.
|
|
889
|
-
*/
|
|
890
|
-
computed: number | null;
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* Time span for the quote line starting from the `starts_at` date.
|
|
894
|
-
*/
|
|
895
|
-
duration: BillUntil.Duration | null;
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* The timestamp the given line ends at.
|
|
899
|
-
*/
|
|
900
|
-
line_ends_at: BillUntil.LineEndsAt | null;
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* A precise Unix timestamp.
|
|
904
|
-
*/
|
|
905
|
-
timestamp: number | null;
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* The type of method to specify the `bill_until` time.
|
|
909
|
-
*/
|
|
910
|
-
type: BillUntil.Type;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
namespace BillUntil {
|
|
914
|
-
interface Duration {
|
|
915
|
-
/**
|
|
916
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
917
|
-
*/
|
|
918
|
-
interval: Duration.Interval;
|
|
919
|
-
|
|
920
|
-
/**
|
|
921
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
922
|
-
*/
|
|
923
|
-
interval_count: number;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
namespace Duration {
|
|
927
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
interface LineEndsAt {
|
|
931
|
-
/**
|
|
932
|
-
* Unique identifier for the object.
|
|
933
|
-
*/
|
|
934
|
-
id: string;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
type Type =
|
|
938
|
-
| 'duration'
|
|
939
|
-
| 'line_ends_at'
|
|
940
|
-
| 'schedule_end'
|
|
941
|
-
| 'timestamp'
|
|
942
|
-
| 'upcoming_invoice';
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
type EndBehavior = 'cancel' | 'release';
|
|
947
|
-
|
|
948
|
-
interface Prebilling {
|
|
949
|
-
iterations: number;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
type ProrationBehavior =
|
|
953
|
-
| 'always_invoice'
|
|
954
|
-
| 'create_prorations'
|
|
955
|
-
| 'none';
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
interface SubscriptionDataOverride {
|
|
959
|
-
applies_to: SubscriptionDataOverride.AppliesTo;
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* Describes the period to bill for upon accepting the quote.
|
|
963
|
-
*/
|
|
964
|
-
bill_on_acceptance?: SubscriptionDataOverride.BillOnAcceptance | null;
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
968
|
-
*/
|
|
969
|
-
billing_behavior?: SubscriptionDataOverride.BillingBehavior;
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
|
|
973
|
-
*/
|
|
974
|
-
customer: string | null;
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
978
|
-
*/
|
|
979
|
-
description: string | null;
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* Behavior of the subscription schedule and underlying subscription when it ends.
|
|
983
|
-
*/
|
|
984
|
-
end_behavior?: SubscriptionDataOverride.EndBehavior | null;
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
988
|
-
*/
|
|
989
|
-
proration_behavior?: SubscriptionDataOverride.ProrationBehavior | null;
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
namespace SubscriptionDataOverride {
|
|
993
|
-
interface AppliesTo {
|
|
994
|
-
/**
|
|
995
|
-
* A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
996
|
-
*/
|
|
997
|
-
new_reference: string | null;
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* The ID of the schedule the line applies to.
|
|
1001
|
-
*/
|
|
1002
|
-
subscription_schedule: string | null;
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
1006
|
-
*/
|
|
1007
|
-
type: AppliesTo.Type;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
namespace AppliesTo {
|
|
1011
|
-
type Type = 'new_reference' | 'subscription_schedule';
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
1015
|
-
|
|
1016
|
-
interface BillOnAcceptance {
|
|
1017
|
-
/**
|
|
1018
|
-
* The start of the period to bill from when the Quote is accepted.
|
|
1019
|
-
*/
|
|
1020
|
-
bill_from: BillOnAcceptance.BillFrom | null;
|
|
1021
|
-
|
|
1022
|
-
/**
|
|
1023
|
-
* The end of the period to bill until when the Quote is accepted.
|
|
1024
|
-
*/
|
|
1025
|
-
bill_until: BillOnAcceptance.BillUntil | null;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
namespace BillOnAcceptance {
|
|
1029
|
-
interface BillFrom {
|
|
1030
|
-
/**
|
|
1031
|
-
* The materialized time.
|
|
1032
|
-
*/
|
|
1033
|
-
computed: number | null;
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* The timestamp the given line starts at.
|
|
1037
|
-
*/
|
|
1038
|
-
line_starts_at: BillFrom.LineStartsAt | null;
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* A precise Unix timestamp.
|
|
1042
|
-
*/
|
|
1043
|
-
timestamp: number | null;
|
|
1044
|
-
|
|
1045
|
-
/**
|
|
1046
|
-
* The type of method to specify the `bill_from` time.
|
|
1047
|
-
*/
|
|
1048
|
-
type: BillFrom.Type;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
namespace BillFrom {
|
|
1052
|
-
interface LineStartsAt {
|
|
1053
|
-
/**
|
|
1054
|
-
* Unique identifier for the object.
|
|
1055
|
-
*/
|
|
1056
|
-
id: string;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
type Type =
|
|
1060
|
-
| 'line_starts_at'
|
|
1061
|
-
| 'now'
|
|
1062
|
-
| 'pause_collection_start'
|
|
1063
|
-
| 'quote_acceptance_date'
|
|
1064
|
-
| 'timestamp';
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
interface BillUntil {
|
|
1068
|
-
/**
|
|
1069
|
-
* The materialized time.
|
|
1070
|
-
*/
|
|
1071
|
-
computed: number | null;
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* Time span for the quote line starting from the `starts_at` date.
|
|
1075
|
-
*/
|
|
1076
|
-
duration: BillUntil.Duration | null;
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* The timestamp the given line ends at.
|
|
1080
|
-
*/
|
|
1081
|
-
line_ends_at: BillUntil.LineEndsAt | null;
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* A precise Unix timestamp.
|
|
1085
|
-
*/
|
|
1086
|
-
timestamp: number | null;
|
|
1087
|
-
|
|
1088
|
-
/**
|
|
1089
|
-
* The type of method to specify the `bill_until` time.
|
|
1090
|
-
*/
|
|
1091
|
-
type: BillUntil.Type;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
namespace BillUntil {
|
|
1095
|
-
interface Duration {
|
|
1096
|
-
/**
|
|
1097
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1098
|
-
*/
|
|
1099
|
-
interval: Duration.Interval;
|
|
1100
|
-
|
|
1101
|
-
/**
|
|
1102
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1103
|
-
*/
|
|
1104
|
-
interval_count: number;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
namespace Duration {
|
|
1108
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
interface LineEndsAt {
|
|
1112
|
-
/**
|
|
1113
|
-
* Unique identifier for the object.
|
|
1114
|
-
*/
|
|
1115
|
-
id: string;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
type Type =
|
|
1119
|
-
| 'duration'
|
|
1120
|
-
| 'line_ends_at'
|
|
1121
|
-
| 'schedule_end'
|
|
1122
|
-
| 'timestamp'
|
|
1123
|
-
| 'upcoming_invoice';
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
type EndBehavior = 'cancel' | 'release';
|
|
1128
|
-
|
|
1129
|
-
type ProrationBehavior =
|
|
1130
|
-
| 'always_invoice'
|
|
1131
|
-
| 'create_prorations'
|
|
1132
|
-
| 'none';
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
interface SubscriptionSchedule {
|
|
1136
|
-
applies_to: SubscriptionSchedule.AppliesTo;
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* The subscription schedule that was created or updated from this quote.
|
|
1140
|
-
*/
|
|
1141
|
-
subscription_schedule: string;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
namespace SubscriptionSchedule {
|
|
1145
|
-
interface AppliesTo {
|
|
1146
|
-
/**
|
|
1147
|
-
* A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
1148
|
-
*/
|
|
1149
|
-
new_reference: string | null;
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* The ID of the schedule the line applies to.
|
|
1153
|
-
*/
|
|
1154
|
-
subscription_schedule: string | null;
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
1158
|
-
*/
|
|
1159
|
-
type: AppliesTo.Type;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
namespace AppliesTo {
|
|
1163
|
-
type Type = 'new_reference' | 'subscription_schedule';
|
|
1164
|
-
}
|
|
1165
577
|
}
|
|
1166
578
|
|
|
1167
579
|
interface TotalDetails {
|
|
@@ -1204,10 +616,10 @@ declare module 'stripe' {
|
|
|
1204
616
|
amount: number;
|
|
1205
617
|
|
|
1206
618
|
/**
|
|
1207
|
-
* A discount represents the actual application of a [coupon](https://stripe.com
|
|
619
|
+
* A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
1208
620
|
* It contains information about when the discount began, when it will end, and what it is applied to.
|
|
1209
621
|
*
|
|
1210
|
-
* Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
622
|
+
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
1211
623
|
*/
|
|
1212
624
|
discount: Stripe.Discount;
|
|
1213
625
|
}
|