stripe 22.3.0-beta.1 → 22.3.1
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 +158 -1770
- package/OPENAPI_VERSION +1 -1
- package/README.md +73 -58
- package/VERSION +1 -1
- package/cjs/Error.d.ts +0 -50
- package/cjs/Error.js +1 -125
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +2 -1
- package/cjs/RequestSender.js +13 -10
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/Types.d.ts +2 -4
- package/cjs/Types.js.map +1 -1
- package/cjs/Webhooks.d.ts +2 -2
- package/cjs/apiVersion.d.ts +2 -1
- package/cjs/apiVersion.js +3 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/autoPagination.js +27 -2
- package/cjs/autoPagination.js.map +1 -1
- package/cjs/platform/NodePlatformFunctions.d.ts +3 -0
- package/cjs/platform/NodePlatformFunctions.js +36 -2
- package/cjs/platform/NodePlatformFunctions.js.map +1 -1
- package/cjs/platform/PlatformFunctions.d.ts +1 -0
- package/cjs/platform/PlatformFunctions.js +3 -0
- package/cjs/platform/PlatformFunctions.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +1 -1
- package/cjs/resources/AccountSessions.d.ts +0 -262
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +5 -829
- package/cjs/resources/Accounts.js +18 -32
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplePayDomains.js +2 -2
- package/cjs/resources/ApplePayDomains.js.map +1 -1
- package/cjs/resources/ApplicationFees.js +5 -5
- package/cjs/resources/ApplicationFees.js.map +1 -1
- package/cjs/resources/Apps/Secrets.d.ts +14 -16
- package/cjs/resources/Apps/index.d.ts +1 -1
- package/cjs/resources/Balance.d.ts +0 -67
- package/cjs/resources/BalanceTransactions.d.ts +5 -5
- package/cjs/resources/BalanceTransactions.js +3 -3
- package/cjs/resources/BalanceTransactions.js.map +1 -1
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/cjs/resources/Billing/Alerts.d.ts +27 -29
- package/cjs/resources/Billing/Alerts.js +4 -4
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceSummary.d.ts +40 -42
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
- package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/cjs/resources/Billing/CreditGrants.d.ts +41 -43
- package/cjs/resources/Billing/CreditGrants.js +4 -4
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventAdjustments.d.ts +9 -11
- package/cjs/resources/Billing/Meters.d.ts +39 -41
- package/cjs/resources/Billing/Meters.js +5 -5
- package/cjs/resources/Billing/Meters.js.map +1 -1
- package/cjs/resources/Billing/index.d.ts +7 -10
- package/cjs/resources/Billing/index.js +0 -2
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/BillingPortal/Configurations.d.ts +132 -134
- package/cjs/resources/BillingPortal/Configurations.js +2 -2
- package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
- package/cjs/resources/BillingPortal/Sessions.d.ts +100 -102
- package/cjs/resources/BillingPortal/index.d.ts +2 -2
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Cards.d.ts +0 -4
- package/cjs/resources/Charges.d.ts +84 -3066
- package/cjs/resources/Charges.js +3 -3
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +1598 -1900
- package/cjs/resources/Checkout/Sessions.js +4 -4
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +1 -1
- package/cjs/resources/Climate/Orders.d.ts +47 -49
- package/cjs/resources/Climate/Orders.js +3 -3
- package/cjs/resources/Climate/Orders.js.map +1 -1
- package/cjs/resources/Climate/Products.d.ts +15 -17
- package/cjs/resources/Climate/Products.js +1 -1
- package/cjs/resources/Climate/Products.js.map +1 -1
- package/cjs/resources/Climate/Suppliers.d.ts +25 -27
- package/cjs/resources/Climate/Suppliers.js +1 -1
- package/cjs/resources/Climate/Suppliers.js.map +1 -1
- package/cjs/resources/Climate/index.d.ts +3 -3
- package/cjs/resources/ConfirmationTokens.d.ts +13 -67
- package/cjs/resources/ConfirmationTokens.js +1 -1
- package/cjs/resources/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/CountrySpecs.js +1 -1
- package/cjs/resources/CountrySpecs.js.map +1 -1
- package/cjs/resources/Coupons.d.ts +0 -53
- package/cjs/resources/Coupons.js +3 -16
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
- package/cjs/resources/CreditNotes.d.ts +8 -5
- package/cjs/resources/CreditNotes.js +6 -4
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerSessions.d.ts +0 -68
- package/cjs/resources/Customers.d.ts +1 -7
- package/cjs/resources/Customers.js +31 -41
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +28 -30
- package/cjs/resources/Disputes.js +3 -3
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
- package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
- package/cjs/resources/Entitlements/Features.js +2 -2
- package/cjs/resources/Entitlements/Features.js.map +1 -1
- package/cjs/resources/Entitlements/index.d.ts +2 -2
- package/cjs/resources/EphemeralKeys.js +1 -1
- package/cjs/resources/EphemeralKeys.js.map +1 -1
- package/cjs/resources/Events.d.ts +3 -548
- package/cjs/resources/Events.js +1 -1
- package/cjs/resources/Events.js.map +1 -1
- package/cjs/resources/ExchangeRates.js +1 -1
- package/cjs/resources/ExchangeRates.js.map +1 -1
- package/cjs/resources/ExternalAccounts.d.ts +1 -212
- package/cjs/resources/ExternalAccounts.js +0 -44
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FileLinks.js +2 -2
- package/cjs/resources/FileLinks.js.map +1 -1
- package/cjs/resources/Files.js +1 -1
- package/cjs/resources/Files.js.map +1 -1
- package/cjs/resources/FinancialConnections/Accounts.d.ts +169 -217
- package/cjs/resources/FinancialConnections/Accounts.js +6 -14
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Sessions.d.ts +43 -193
- package/cjs/resources/FinancialConnections/Sessions.js +1 -1
- package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
- package/cjs/resources/FinancialConnections/Transactions.d.ts +13 -15
- package/cjs/resources/FinancialConnections/Transactions.js +1 -1
- package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
- package/cjs/resources/FinancialConnections/index.d.ts +9 -24
- package/cjs/resources/FinancialConnections/index.js +0 -4
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/Forwarding/Requests.d.ts +57 -59
- package/cjs/resources/Forwarding/Requests.js +1 -1
- package/cjs/resources/Forwarding/Requests.js.map +1 -1
- package/cjs/resources/Forwarding/index.d.ts +1 -1
- package/cjs/resources/Identity/VerificationReports.d.ts +255 -257
- package/cjs/resources/Identity/VerificationReports.js +1 -1
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +148 -150
- package/cjs/resources/Identity/VerificationSessions.js +4 -4
- package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
- package/cjs/resources/Identity/index.d.ts +2 -2
- package/cjs/resources/InvoiceItems.d.ts +0 -85
- package/cjs/resources/InvoiceItems.js +3 -3
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +2 -40
- package/cjs/resources/InvoicePayments.js +1 -1
- package/cjs/resources/InvoicePayments.js.map +1 -1
- package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
- package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/cjs/resources/Invoices.d.ts +23 -1341
- package/cjs/resources/Invoices.js +14 -55
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +354 -356
- package/cjs/resources/Issuing/Authorizations.js +4 -4
- package/cjs/resources/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +144 -147
- package/cjs/resources/Issuing/Cardholders.js +2 -2
- package/cjs/resources/Issuing/Cardholders.js.map +1 -1
- package/cjs/resources/Issuing/Cards.d.ts +183 -185
- package/cjs/resources/Issuing/Cards.js +2 -2
- package/cjs/resources/Issuing/Cards.js.map +1 -1
- package/cjs/resources/Issuing/Disputes.d.ts +215 -217
- package/cjs/resources/Issuing/Disputes.js +3 -3
- package/cjs/resources/Issuing/Disputes.js.map +1 -1
- package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
- package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
- package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/Issuing/PhysicalBundles.d.ts +24 -26
- package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
- package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
- package/cjs/resources/Issuing/Tokens.d.ts +130 -132
- package/cjs/resources/Issuing/Tokens.js +2 -2
- package/cjs/resources/Issuing/Tokens.js.map +1 -1
- package/cjs/resources/Issuing/Transactions.d.ts +223 -234
- package/cjs/resources/Issuing/Transactions.js +2 -2
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +30 -55
- package/cjs/resources/Issuing/index.js +0 -6
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +4 -30
- package/cjs/resources/Mandates.d.ts +1 -33
- package/cjs/resources/Mandates.js +1 -9
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/PaymentAttemptRecords.d.ts +9 -92
- package/cjs/resources/PaymentAttemptRecords.js +1 -1
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntents.d.ts +6495 -17272
- package/cjs/resources/PaymentIntents.js +9 -36
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +6 -19
- package/cjs/resources/PaymentLinks.js +3 -3
- package/cjs/resources/PaymentLinks.js.map +1 -1
- package/cjs/resources/PaymentMethodConfigurations.d.ts +0 -350
- package/cjs/resources/PaymentMethodConfigurations.js +2 -2
- package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
- package/cjs/resources/PaymentMethodDomains.js +3 -3
- package/cjs/resources/PaymentMethodDomains.js.map +1 -1
- package/cjs/resources/PaymentMethods.d.ts +16 -152
- package/cjs/resources/PaymentMethods.js +4 -4
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +19 -102
- package/cjs/resources/PaymentRecords.js +7 -7
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Payouts.js +4 -4
- package/cjs/resources/Payouts.js.map +1 -1
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Plans.d.ts +0 -16
- package/cjs/resources/Plans.js +3 -3
- package/cjs/resources/Plans.js.map +1 -1
- package/cjs/resources/Prices.d.ts +0 -52
- package/cjs/resources/Prices.js +2 -2
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Products.d.ts +0 -42
- package/cjs/resources/Products.js +7 -7
- package/cjs/resources/Products.js.map +1 -1
- package/cjs/resources/PromotionCodes.d.ts +0 -12
- package/cjs/resources/PromotionCodes.js +2 -29
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/Quotes.d.ts +165 -2374
- package/cjs/resources/Quotes.js +20 -1180
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
- package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +294 -296
- package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
- package/cjs/resources/Radar/ValueListItems.js +2 -2
- package/cjs/resources/Radar/ValueListItems.js.map +1 -1
- package/cjs/resources/Radar/ValueLists.d.ts +18 -20
- package/cjs/resources/Radar/ValueLists.js +3 -3
- package/cjs/resources/Radar/ValueLists.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +8 -6
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +0 -11
- package/cjs/resources/Refunds.js +3 -3
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
- package/cjs/resources/Reporting/ReportRuns.js +1 -1
- package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
- package/cjs/resources/Reporting/ReportTypes.js +1 -1
- package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
- package/cjs/resources/Reporting/index.d.ts +2 -2
- package/cjs/resources/Reserve/Holds.d.ts +24 -64
- package/cjs/resources/Reserve/Holds.js +0 -19
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +25 -43
- package/cjs/resources/Reserve/Plans.js +0 -11
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +17 -59
- package/cjs/resources/Reserve/Releases.js +0 -19
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +3 -14
- package/cjs/resources/Reserve/index.js +0 -9
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/Reviews.js +2 -2
- package/cjs/resources/Reviews.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +8 -26
- package/cjs/resources/SetupIntents.d.ts +14 -333
- package/cjs/resources/SetupIntents.js +5 -5
- package/cjs/resources/SetupIntents.js.map +1 -1
- package/cjs/resources/ShippingRates.js +2 -2
- package/cjs/resources/ShippingRates.js.map +1 -1
- package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
- package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
- package/cjs/resources/Sigma/index.d.ts +1 -1
- package/cjs/resources/Sources.d.ts +1 -16
- package/cjs/resources/Sources.js +4 -4
- package/cjs/resources/Sources.js.map +1 -1
- package/cjs/resources/SubscriptionItems.d.ts +0 -143
- package/cjs/resources/SubscriptionItems.js +3 -3
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +4 -1155
- package/cjs/resources/SubscriptionSchedules.js +4 -10
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +61 -560
- package/cjs/resources/Subscriptions.js +7 -152
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Associations.d.ts +24 -26
- package/cjs/resources/Tax/CalculationLineItems.d.ts +56 -62
- package/cjs/resources/Tax/Calculations.d.ts +158 -164
- package/cjs/resources/Tax/Calculations.js +2 -2
- package/cjs/resources/Tax/Calculations.js.map +1 -1
- package/cjs/resources/Tax/Registrations.d.ts +1095 -1233
- package/cjs/resources/Tax/Registrations.js +2 -2
- package/cjs/resources/Tax/Registrations.js.map +1 -1
- package/cjs/resources/Tax/Settings.d.ts +37 -39
- package/cjs/resources/Tax/TransactionLineItems.d.ts +11 -13
- package/cjs/resources/Tax/Transactions.d.ts +113 -115
- package/cjs/resources/Tax/Transactions.js +2 -2
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +18 -32
- package/cjs/resources/Tax/index.js +0 -4
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +0 -15
- package/cjs/resources/TaxCodes.js +1 -1
- package/cjs/resources/TaxCodes.js.map +1 -1
- package/cjs/resources/TaxIds.js +2 -2
- package/cjs/resources/TaxIds.js.map +1 -1
- package/cjs/resources/TaxRates.js +2 -2
- package/cjs/resources/TaxRates.js.map +1 -1
- package/cjs/resources/Terminal/Configurations.d.ts +479 -508
- package/cjs/resources/Terminal/Configurations.js +3 -3
- package/cjs/resources/Terminal/Configurations.js.map +1 -1
- package/cjs/resources/Terminal/Locations.d.ts +72 -74
- package/cjs/resources/Terminal/Locations.js +3 -3
- package/cjs/resources/Terminal/Locations.js.map +1 -1
- package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
- package/cjs/resources/Terminal/Readers.d.ts +479 -497
- package/cjs/resources/Terminal/Readers.js +11 -11
- package/cjs/resources/Terminal/Readers.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +11 -13
- package/cjs/resources/Terminal/index.js +0 -2
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
- package/cjs/resources/TestHelpers/Customers.js +1 -1
- package/cjs/resources/TestHelpers/Customers.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
- package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
- package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/TestHelpers/Refunds.js +1 -1
- package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
- package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
- package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/cjs/resources/TestHelpers/TestClocks.d.ts +27 -29
- package/cjs/resources/TestHelpers/TestClocks.js +3 -3
- package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/cjs/resources/TestHelpers/index.d.ts +3 -5
- package/cjs/resources/TestHelpers/index.js +4 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.js +1 -1
- package/cjs/resources/Tokens.js.map +1 -1
- package/cjs/resources/Topups.d.ts +18 -0
- package/cjs/resources/Topups.js +3 -3
- package/cjs/resources/Topups.js.map +1 -1
- package/cjs/resources/Transfers.d.ts +0 -8
- package/cjs/resources/Transfers.js +6 -6
- package/cjs/resources/Transfers.js.map +1 -1
- package/cjs/resources/Treasury/CreditReversals.d.ts +11 -13
- package/cjs/resources/Treasury/CreditReversals.js +1 -1
- package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
- package/cjs/resources/Treasury/DebitReversals.d.ts +18 -20
- package/cjs/resources/Treasury/DebitReversals.js +1 -1
- package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +88 -123
- package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
- package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/cjs/resources/Treasury/InboundTransfers.d.ts +79 -81
- package/cjs/resources/Treasury/InboundTransfers.js +2 -2
- package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +125 -135
- package/cjs/resources/Treasury/OutboundPayments.js +2 -2
- package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +114 -160
- package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
- package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +118 -142
- package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
- package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +86 -114
- package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
- package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
- package/cjs/resources/Treasury/TransactionEntries.d.ts +75 -77
- package/cjs/resources/Treasury/TransactionEntries.js +1 -1
- package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
- package/cjs/resources/Treasury/Transactions.d.ts +86 -88
- package/cjs/resources/Treasury/Transactions.js +1 -1
- package/cjs/resources/Treasury/Transactions.js.map +1 -1
- package/cjs/resources/Treasury/index.d.ts +10 -10
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
- package/cjs/resources/V2/Billing/index.d.ts +9 -48
- package/cjs/resources/V2/Billing/index.js +0 -8
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
- package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
- package/cjs/resources/V2/Core/AccountLinks.d.ts +81 -85
- package/cjs/resources/V2/Core/AccountPersons.d.ts +369 -373
- package/cjs/resources/V2/Core/AccountTokens.d.ts +0 -10
- package/cjs/resources/V2/Core/AccountTokens.js +1 -1
- package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +3 -3
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
- package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +3043 -4006
- package/cjs/resources/V2/Core/Accounts.js +3 -3
- package/cjs/resources/V2/Core/Accounts.js.map +1 -1
- package/cjs/resources/V2/Core/EventDestinations.d.ts +78 -82
- package/cjs/resources/V2/Core/EventDestinations.js +6 -6
- package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
- package/cjs/resources/V2/Core/Events.d.ts +31 -1154
- package/cjs/resources/V2/Core/Events.js +1 -1
- package/cjs/resources/V2/Core/Events.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +14 -24
- package/cjs/resources/V2/Core/index.js +0 -4
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/index.d.ts +0 -27
- package/cjs/resources/V2/index.js +0 -14
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +3 -3
- package/cjs/resources/WebhookEndpoints.js +3 -3
- package/cjs/resources/WebhookEndpoints.js.map +1 -1
- package/cjs/resources.d.ts +0 -10
- package/cjs/resources.js +10 -146
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +14396 -3
- package/cjs/stripe.cjs.node.js +1 -4
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +81 -62
- package/cjs/stripe.core.js +37 -55
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +0 -1
- package/cjs/utils.js +1 -6
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +0 -50
- package/esm/Error.js +0 -109
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +2 -1
- package/esm/RequestSender.js +14 -11
- package/esm/RequestSender.js.map +1 -1
- package/esm/Types.d.ts +2 -4
- package/esm/Types.js.map +1 -1
- package/esm/Webhooks.d.ts +2 -2
- package/esm/apiVersion.d.ts +2 -1
- package/esm/apiVersion.js +2 -1
- package/esm/apiVersion.js.map +1 -1
- package/esm/autoPagination.js +27 -2
- package/esm/autoPagination.js.map +1 -1
- package/esm/platform/NodePlatformFunctions.d.ts +3 -0
- package/esm/platform/NodePlatformFunctions.js +36 -2
- package/esm/platform/NodePlatformFunctions.js.map +1 -1
- package/esm/platform/PlatformFunctions.d.ts +1 -0
- package/esm/platform/PlatformFunctions.js +3 -0
- package/esm/platform/PlatformFunctions.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +1 -1
- package/esm/resources/AccountSessions.d.ts +0 -262
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +5 -829
- package/esm/resources/Accounts.js +18 -32
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplePayDomains.js +2 -2
- package/esm/resources/ApplePayDomains.js.map +1 -1
- package/esm/resources/ApplicationFees.js +5 -5
- package/esm/resources/ApplicationFees.js.map +1 -1
- package/esm/resources/Apps/Secrets.d.ts +14 -16
- package/esm/resources/Apps/index.d.ts +1 -1
- package/esm/resources/Balance.d.ts +0 -67
- package/esm/resources/BalanceTransactions.d.ts +5 -5
- package/esm/resources/BalanceTransactions.js +3 -3
- package/esm/resources/BalanceTransactions.js.map +1 -1
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/esm/resources/Billing/Alerts.d.ts +27 -29
- package/esm/resources/Billing/Alerts.js +4 -4
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceSummary.d.ts +40 -42
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
- package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/esm/resources/Billing/CreditGrants.d.ts +41 -43
- package/esm/resources/Billing/CreditGrants.js +4 -4
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventAdjustments.d.ts +9 -11
- package/esm/resources/Billing/Meters.d.ts +39 -41
- package/esm/resources/Billing/Meters.js +5 -5
- package/esm/resources/Billing/Meters.js.map +1 -1
- package/esm/resources/Billing/index.d.ts +7 -10
- package/esm/resources/Billing/index.js +0 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/BillingPortal/Configurations.d.ts +132 -134
- package/esm/resources/BillingPortal/Configurations.js +2 -2
- package/esm/resources/BillingPortal/Configurations.js.map +1 -1
- package/esm/resources/BillingPortal/Sessions.d.ts +100 -102
- package/esm/resources/BillingPortal/index.d.ts +2 -2
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Cards.d.ts +0 -4
- package/esm/resources/Charges.d.ts +84 -3066
- package/esm/resources/Charges.js +3 -3
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +1598 -1900
- package/esm/resources/Checkout/Sessions.js +4 -4
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +1 -1
- package/esm/resources/Climate/Orders.d.ts +47 -49
- package/esm/resources/Climate/Orders.js +3 -3
- package/esm/resources/Climate/Orders.js.map +1 -1
- package/esm/resources/Climate/Products.d.ts +15 -17
- package/esm/resources/Climate/Products.js +1 -1
- package/esm/resources/Climate/Products.js.map +1 -1
- package/esm/resources/Climate/Suppliers.d.ts +25 -27
- package/esm/resources/Climate/Suppliers.js +1 -1
- package/esm/resources/Climate/Suppliers.js.map +1 -1
- package/esm/resources/Climate/index.d.ts +3 -3
- package/esm/resources/ConfirmationTokens.d.ts +13 -67
- package/esm/resources/ConfirmationTokens.js +1 -1
- package/esm/resources/ConfirmationTokens.js.map +1 -1
- package/esm/resources/CountrySpecs.js +1 -1
- package/esm/resources/CountrySpecs.js.map +1 -1
- package/esm/resources/Coupons.d.ts +0 -53
- package/esm/resources/Coupons.js +3 -16
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +1 -15
- package/esm/resources/CreditNotes.d.ts +8 -5
- package/esm/resources/CreditNotes.js +6 -4
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerSessions.d.ts +0 -68
- package/esm/resources/Customers.d.ts +1 -7
- package/esm/resources/Customers.js +31 -41
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +28 -30
- package/esm/resources/Disputes.js +3 -3
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
- package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
- package/esm/resources/Entitlements/Features.js +2 -2
- package/esm/resources/Entitlements/Features.js.map +1 -1
- package/esm/resources/Entitlements/index.d.ts +2 -2
- package/esm/resources/EphemeralKeys.js +1 -1
- package/esm/resources/EphemeralKeys.js.map +1 -1
- package/esm/resources/Events.d.ts +3 -548
- package/esm/resources/Events.js +1 -1
- package/esm/resources/Events.js.map +1 -1
- package/esm/resources/ExchangeRates.js +1 -1
- package/esm/resources/ExchangeRates.js.map +1 -1
- package/esm/resources/ExternalAccounts.d.ts +1 -212
- package/esm/resources/ExternalAccounts.js +1 -42
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FileLinks.js +2 -2
- package/esm/resources/FileLinks.js.map +1 -1
- package/esm/resources/Files.js +1 -1
- package/esm/resources/Files.js.map +1 -1
- package/esm/resources/FinancialConnections/Accounts.d.ts +169 -217
- package/esm/resources/FinancialConnections/Accounts.js +6 -14
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Sessions.d.ts +43 -193
- package/esm/resources/FinancialConnections/Sessions.js +1 -1
- package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
- package/esm/resources/FinancialConnections/Transactions.d.ts +13 -15
- package/esm/resources/FinancialConnections/Transactions.js +1 -1
- package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
- package/esm/resources/FinancialConnections/index.d.ts +9 -24
- package/esm/resources/FinancialConnections/index.js +0 -4
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/Forwarding/Requests.d.ts +57 -59
- package/esm/resources/Forwarding/Requests.js +1 -1
- package/esm/resources/Forwarding/Requests.js.map +1 -1
- package/esm/resources/Forwarding/index.d.ts +1 -1
- package/esm/resources/Identity/VerificationReports.d.ts +255 -257
- package/esm/resources/Identity/VerificationReports.js +1 -1
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +148 -150
- package/esm/resources/Identity/VerificationSessions.js +4 -4
- package/esm/resources/Identity/VerificationSessions.js.map +1 -1
- package/esm/resources/Identity/index.d.ts +2 -2
- package/esm/resources/InvoiceItems.d.ts +0 -85
- package/esm/resources/InvoiceItems.js +3 -3
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +2 -40
- package/esm/resources/InvoicePayments.js +1 -1
- package/esm/resources/InvoicePayments.js.map +1 -1
- package/esm/resources/InvoiceRenderingTemplates.js +3 -3
- package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/esm/resources/Invoices.d.ts +23 -1341
- package/esm/resources/Invoices.js +14 -55
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +354 -356
- package/esm/resources/Issuing/Authorizations.js +4 -4
- package/esm/resources/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +144 -147
- package/esm/resources/Issuing/Cardholders.js +2 -2
- package/esm/resources/Issuing/Cardholders.js.map +1 -1
- package/esm/resources/Issuing/Cards.d.ts +183 -185
- package/esm/resources/Issuing/Cards.js +2 -2
- package/esm/resources/Issuing/Cards.js.map +1 -1
- package/esm/resources/Issuing/Disputes.d.ts +215 -217
- package/esm/resources/Issuing/Disputes.js +3 -3
- package/esm/resources/Issuing/Disputes.js.map +1 -1
- package/esm/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
- package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
- package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/Issuing/PhysicalBundles.d.ts +24 -26
- package/esm/resources/Issuing/PhysicalBundles.js +1 -1
- package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
- package/esm/resources/Issuing/Tokens.d.ts +130 -132
- package/esm/resources/Issuing/Tokens.js +2 -2
- package/esm/resources/Issuing/Tokens.js.map +1 -1
- package/esm/resources/Issuing/Transactions.d.ts +223 -234
- package/esm/resources/Issuing/Transactions.js +2 -2
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +30 -55
- package/esm/resources/Issuing/index.js +0 -6
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +4 -30
- package/esm/resources/Mandates.d.ts +1 -33
- package/esm/resources/Mandates.js +1 -9
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/PaymentAttemptRecords.d.ts +9 -92
- package/esm/resources/PaymentAttemptRecords.js +1 -1
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntents.d.ts +6495 -17272
- package/esm/resources/PaymentIntents.js +9 -36
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +6 -19
- package/esm/resources/PaymentLinks.js +3 -3
- package/esm/resources/PaymentLinks.js.map +1 -1
- package/esm/resources/PaymentMethodConfigurations.d.ts +0 -350
- package/esm/resources/PaymentMethodConfigurations.js +2 -2
- package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
- package/esm/resources/PaymentMethodDomains.js +3 -3
- package/esm/resources/PaymentMethodDomains.js.map +1 -1
- package/esm/resources/PaymentMethods.d.ts +16 -152
- package/esm/resources/PaymentMethods.js +4 -4
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +19 -102
- package/esm/resources/PaymentRecords.js +7 -7
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Payouts.js +4 -4
- package/esm/resources/Payouts.js.map +1 -1
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Plans.d.ts +0 -16
- package/esm/resources/Plans.js +3 -3
- package/esm/resources/Plans.js.map +1 -1
- package/esm/resources/Prices.d.ts +0 -52
- package/esm/resources/Prices.js +2 -2
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Products.d.ts +0 -42
- package/esm/resources/Products.js +7 -7
- package/esm/resources/Products.js.map +1 -1
- package/esm/resources/PromotionCodes.d.ts +0 -12
- package/esm/resources/PromotionCodes.js +2 -29
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/Quotes.d.ts +165 -2374
- package/esm/resources/Quotes.js +20 -1180
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
- package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +294 -296
- package/esm/resources/Radar/ValueListItems.d.ts +14 -16
- package/esm/resources/Radar/ValueListItems.js +2 -2
- package/esm/resources/Radar/ValueListItems.js.map +1 -1
- package/esm/resources/Radar/ValueLists.d.ts +18 -20
- package/esm/resources/Radar/ValueLists.js +3 -3
- package/esm/resources/Radar/ValueLists.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +8 -6
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +0 -11
- package/esm/resources/Refunds.js +3 -3
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
- package/esm/resources/Reporting/ReportRuns.js +1 -1
- package/esm/resources/Reporting/ReportRuns.js.map +1 -1
- package/esm/resources/Reporting/ReportTypes.js +1 -1
- package/esm/resources/Reporting/ReportTypes.js.map +1 -1
- package/esm/resources/Reporting/index.d.ts +2 -2
- package/esm/resources/Reserve/Holds.d.ts +24 -64
- package/esm/resources/Reserve/Holds.js +1 -17
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +25 -43
- package/esm/resources/Reserve/Plans.js +1 -9
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +17 -59
- package/esm/resources/Reserve/Releases.js +1 -17
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +3 -14
- package/esm/resources/Reserve/index.js +0 -9
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/Reviews.js +2 -2
- package/esm/resources/Reviews.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +8 -26
- package/esm/resources/SetupIntents.d.ts +14 -333
- package/esm/resources/SetupIntents.js +5 -5
- package/esm/resources/SetupIntents.js.map +1 -1
- package/esm/resources/ShippingRates.js +2 -2
- package/esm/resources/ShippingRates.js.map +1 -1
- package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
- package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
- package/esm/resources/Sigma/index.d.ts +1 -1
- package/esm/resources/Sources.d.ts +1 -16
- package/esm/resources/Sources.js +4 -4
- package/esm/resources/Sources.js.map +1 -1
- package/esm/resources/SubscriptionItems.d.ts +0 -143
- package/esm/resources/SubscriptionItems.js +3 -3
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +4 -1155
- package/esm/resources/SubscriptionSchedules.js +4 -10
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +61 -560
- package/esm/resources/Subscriptions.js +7 -152
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Associations.d.ts +24 -26
- package/esm/resources/Tax/CalculationLineItems.d.ts +56 -62
- package/esm/resources/Tax/Calculations.d.ts +158 -164
- package/esm/resources/Tax/Calculations.js +2 -2
- package/esm/resources/Tax/Calculations.js.map +1 -1
- package/esm/resources/Tax/Registrations.d.ts +1095 -1233
- package/esm/resources/Tax/Registrations.js +2 -2
- package/esm/resources/Tax/Registrations.js.map +1 -1
- package/esm/resources/Tax/Settings.d.ts +37 -39
- package/esm/resources/Tax/TransactionLineItems.d.ts +11 -13
- package/esm/resources/Tax/Transactions.d.ts +113 -115
- package/esm/resources/Tax/Transactions.js +2 -2
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +18 -32
- package/esm/resources/Tax/index.js +0 -4
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +0 -15
- package/esm/resources/TaxCodes.js +1 -1
- package/esm/resources/TaxCodes.js.map +1 -1
- package/esm/resources/TaxIds.js +2 -2
- package/esm/resources/TaxIds.js.map +1 -1
- package/esm/resources/TaxRates.js +2 -2
- package/esm/resources/TaxRates.js.map +1 -1
- package/esm/resources/Terminal/Configurations.d.ts +479 -508
- package/esm/resources/Terminal/Configurations.js +3 -3
- package/esm/resources/Terminal/Configurations.js.map +1 -1
- package/esm/resources/Terminal/Locations.d.ts +72 -74
- package/esm/resources/Terminal/Locations.js +3 -3
- package/esm/resources/Terminal/Locations.js.map +1 -1
- package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
- package/esm/resources/Terminal/Readers.d.ts +479 -497
- package/esm/resources/Terminal/Readers.js +11 -11
- package/esm/resources/Terminal/Readers.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +11 -13
- package/esm/resources/Terminal/index.js +0 -2
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
- package/esm/resources/TestHelpers/Customers.js +1 -1
- package/esm/resources/TestHelpers/Customers.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
- package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
- package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
- package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- package/esm/resources/TestHelpers/Refunds.js +1 -1
- package/esm/resources/TestHelpers/Refunds.js.map +1 -1
- package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
- package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/esm/resources/TestHelpers/TestClocks.d.ts +27 -29
- package/esm/resources/TestHelpers/TestClocks.js +3 -3
- package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/esm/resources/TestHelpers/index.d.ts +3 -5
- package/esm/resources/TestHelpers/index.js +0 -2
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.js +1 -1
- package/esm/resources/Tokens.js.map +1 -1
- package/esm/resources/Topups.d.ts +18 -0
- package/esm/resources/Topups.js +3 -3
- package/esm/resources/Topups.js.map +1 -1
- package/esm/resources/Transfers.d.ts +0 -8
- package/esm/resources/Transfers.js +6 -6
- package/esm/resources/Transfers.js.map +1 -1
- package/esm/resources/Treasury/CreditReversals.d.ts +11 -13
- package/esm/resources/Treasury/CreditReversals.js +1 -1
- package/esm/resources/Treasury/CreditReversals.js.map +1 -1
- package/esm/resources/Treasury/DebitReversals.d.ts +18 -20
- package/esm/resources/Treasury/DebitReversals.js +1 -1
- package/esm/resources/Treasury/DebitReversals.js.map +1 -1
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
- package/esm/resources/Treasury/FinancialAccounts.d.ts +88 -123
- package/esm/resources/Treasury/FinancialAccounts.js +5 -5
- package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/esm/resources/Treasury/InboundTransfers.d.ts +79 -81
- package/esm/resources/Treasury/InboundTransfers.js +2 -2
- package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +125 -135
- package/esm/resources/Treasury/OutboundPayments.js +2 -2
- package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/Treasury/OutboundTransfers.d.ts +114 -160
- package/esm/resources/Treasury/OutboundTransfers.js +2 -2
- package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/ReceivedCredits.d.ts +118 -142
- package/esm/resources/Treasury/ReceivedCredits.js +1 -1
- package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
- package/esm/resources/Treasury/ReceivedDebits.d.ts +86 -114
- package/esm/resources/Treasury/ReceivedDebits.js +1 -1
- package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
- package/esm/resources/Treasury/TransactionEntries.d.ts +75 -77
- package/esm/resources/Treasury/TransactionEntries.js +1 -1
- package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
- package/esm/resources/Treasury/Transactions.d.ts +86 -88
- package/esm/resources/Treasury/Transactions.js +1 -1
- package/esm/resources/Treasury/Transactions.js.map +1 -1
- package/esm/resources/Treasury/index.d.ts +10 -10
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
- package/esm/resources/V2/Billing/index.d.ts +9 -48
- package/esm/resources/V2/Billing/index.js +0 -8
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
- package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
- package/esm/resources/V2/Core/AccountLinks.d.ts +81 -85
- package/esm/resources/V2/Core/AccountPersons.d.ts +369 -373
- package/esm/resources/V2/Core/AccountTokens.d.ts +0 -10
- package/esm/resources/V2/Core/AccountTokens.js +1 -1
- package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +3 -3
- package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
- package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/esm/resources/V2/Core/Accounts.d.ts +3043 -4006
- package/esm/resources/V2/Core/Accounts.js +3 -3
- package/esm/resources/V2/Core/Accounts.js.map +1 -1
- package/esm/resources/V2/Core/EventDestinations.d.ts +78 -82
- package/esm/resources/V2/Core/EventDestinations.js +6 -6
- package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
- package/esm/resources/V2/Core/Events.d.ts +31 -1154
- package/esm/resources/V2/Core/Events.js +1 -1
- package/esm/resources/V2/Core/Events.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +14 -24
- package/esm/resources/V2/Core/index.js +0 -4
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/index.d.ts +0 -27
- package/esm/resources/V2/index.js +0 -14
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +3 -3
- package/esm/resources/WebhookEndpoints.js +3 -3
- package/esm/resources/WebhookEndpoints.js.map +1 -1
- package/esm/resources.d.ts +0 -10
- package/esm/resources.js +0 -131
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +81 -62
- package/esm/stripe.core.js +7 -25
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +80 -63
- package/esm/stripe.esm.node.js +2 -25
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +0 -1
- package/esm/utils.js +0 -4
- package/esm/utils.js.map +1 -1
- package/package.json +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +0 -19
- package/cjs/StripeEventNotificationHandler.js +0 -148
- package/cjs/StripeEventNotificationHandler.js.map +0 -1
- package/cjs/resources/AccountNotices.d.ts +0 -140
- package/cjs/resources/AccountNotices.js +0 -29
- package/cjs/resources/AccountNotices.js.map +0 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
- package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
- package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
- package/cjs/resources/Billing/Analytics/index.js +0 -13
- package/cjs/resources/Billing/Analytics/index.js.map +0 -1
- package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
- package/cjs/resources/Capital/FinancingOffers.js +0 -30
- package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
- package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
- package/cjs/resources/Capital/FinancingSummary.js +0 -15
- package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
- package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
- package/cjs/resources/Capital/FinancingTransactions.js +0 -24
- package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
- package/cjs/resources/Capital/index.d.ts +0 -25
- package/cjs/resources/Capital/index.js +0 -17
- package/cjs/resources/Capital/index.js.map +0 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
- package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
- package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
- package/cjs/resources/FinancialConnections/Institutions.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
- package/cjs/resources/FxQuotes.d.ts +0 -212
- package/cjs/resources/FxQuotes.js +0 -29
- package/cjs/resources/FxQuotes.js.map +0 -1
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
- package/cjs/resources/Issuing/Settlements.d.ts +0 -85
- package/cjs/resources/Issuing/Settlements.js +0 -4
- package/cjs/resources/Issuing/Settlements.js.map +0 -1
- package/cjs/resources/Margins.d.ts +0 -115
- package/cjs/resources/Margins.js +0 -35
- package/cjs/resources/Margins.js.map +0 -1
- package/cjs/resources/Orders.d.ts +0 -4693
- package/cjs/resources/Orders.js +0 -457
- package/cjs/resources/Orders.js.map +0 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
- package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
- package/cjs/resources/Privacy/RedactionJobs.js +0 -73
- package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
- package/cjs/resources/Privacy/index.d.ts +0 -22
- package/cjs/resources/Privacy/index.js +0 -13
- package/cjs/resources/Privacy/index.js.map +0 -1
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
- package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
- package/cjs/resources/ProductCatalog/index.d.ts +0 -12
- package/cjs/resources/ProductCatalog/index.js +0 -13
- package/cjs/resources/ProductCatalog/index.js.map +0 -1
- package/cjs/resources/QuoteLines.d.ts +0 -507
- package/cjs/resources/QuoteLines.js +0 -4
- package/cjs/resources/QuoteLines.js.map +0 -1
- package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1120
- package/cjs/resources/QuotePreviewInvoices.js +0 -4
- package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
- package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
- package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
- package/cjs/resources/SharedPayment/index.d.ts +0 -19
- package/cjs/resources/SharedPayment/index.js +0 -15
- package/cjs/resources/SharedPayment/index.js.map +0 -1
- package/cjs/resources/Tax/Forms.d.ts +0 -230
- package/cjs/resources/Tax/Forms.js +0 -32
- package/cjs/resources/Tax/Forms.js.map +0 -1
- package/cjs/resources/Tax/Locations.d.ts +0 -108
- package/cjs/resources/Tax/Locations.js +0 -33
- package/cjs/resources/Tax/Locations.js.map +0 -1
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
- package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
- package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
- package/cjs/resources/V2/Billing/BillSettings.js +0 -41
- package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
- package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
- package/cjs/resources/V2/Billing/Cadences.js +0 -198
- package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
- package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
- package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
- package/cjs/resources/V2/Billing/Profiles.js +0 -35
- package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
- package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
- package/cjs/resources/V2/Core/BatchJobs.js +0 -225
- package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
- package/cjs/resources/V2/Core/Vault/index.js +0 -15
- package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
- package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
- package/cjs/resources/V2/Data/Reporting/index.js +0 -13
- package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
- package/cjs/resources/V2/Data/index.d.ts +0 -10
- package/cjs/resources/V2/Data/index.js +0 -13
- package/cjs/resources/V2/Data/index.js.map +0 -1
- package/cjs/resources/V2/EventMisc.d.ts +0 -0
- package/cjs/resources/V2/EventMisc.js +0 -2
- package/cjs/resources/V2/EventMisc.js.map +0 -1
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
- package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
- package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
- package/cjs/resources/V2/Extend/Workflows.js +0 -30
- package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
- package/cjs/resources/V2/Extend/index.d.ts +0 -20
- package/cjs/resources/V2/Extend/index.js +0 -15
- package/cjs/resources/V2/Extend/index.js.map +0 -1
- package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -214
- package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/cjs/resources/V2/Iam/index.d.ts +0 -13
- package/cjs/resources/V2/Iam/index.js +0 -13
- package/cjs/resources/V2/Iam/index.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
- package/cjs/resources/V2/MoneyManagement/index.js +0 -39
- package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
- package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
- package/cjs/resources/V2/Network/index.d.ts +0 -13
- package/cjs/resources/V2/Network/index.js +0 -13
- package/cjs/resources/V2/Network/index.js.map +0 -1
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
- package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
- package/cjs/resources/V2/TestHelpers/index.js +0 -13
- package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
- package/esm/StripeEventNotificationHandler.d.ts +0 -19
- package/esm/StripeEventNotificationHandler.js +0 -144
- package/esm/StripeEventNotificationHandler.js.map +0 -1
- package/esm/resources/AccountNotices.d.ts +0 -140
- package/esm/resources/AccountNotices.js +0 -25
- package/esm/resources/AccountNotices.js.map +0 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
- package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
- package/esm/resources/Billing/Analytics/index.d.ts +0 -15
- package/esm/resources/Billing/Analytics/index.js +0 -9
- package/esm/resources/Billing/Analytics/index.js.map +0 -1
- package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
- package/esm/resources/Capital/FinancingOffers.js +0 -26
- package/esm/resources/Capital/FinancingOffers.js.map +0 -1
- package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
- package/esm/resources/Capital/FinancingSummary.js +0 -11
- package/esm/resources/Capital/FinancingSummary.js.map +0 -1
- package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
- package/esm/resources/Capital/FinancingTransactions.js +0 -20
- package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
- package/esm/resources/Capital/index.d.ts +0 -25
- package/esm/resources/Capital/index.js +0 -13
- package/esm/resources/Capital/index.js.map +0 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
- package/esm/resources/FinancialConnections/Authorizations.js +0 -11
- package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
- package/esm/resources/FinancialConnections/Institutions.js +0 -19
- package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
- package/esm/resources/FxQuotes.d.ts +0 -212
- package/esm/resources/FxQuotes.js +0 -25
- package/esm/resources/FxQuotes.js.map +0 -1
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
- package/esm/resources/Issuing/Settlements.d.ts +0 -85
- package/esm/resources/Issuing/Settlements.js +0 -3
- package/esm/resources/Issuing/Settlements.js.map +0 -1
- package/esm/resources/Margins.d.ts +0 -115
- package/esm/resources/Margins.js +0 -31
- package/esm/resources/Margins.js.map +0 -1
- package/esm/resources/Orders.d.ts +0 -4693
- package/esm/resources/Orders.js +0 -453
- package/esm/resources/Orders.js.map +0 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
- package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
- package/esm/resources/Privacy/RedactionJobs.js +0 -69
- package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
- package/esm/resources/Privacy/index.d.ts +0 -22
- package/esm/resources/Privacy/index.js +0 -9
- package/esm/resources/Privacy/index.js.map +0 -1
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
- package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
- package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
- package/esm/resources/ProductCatalog/index.d.ts +0 -12
- package/esm/resources/ProductCatalog/index.js +0 -9
- package/esm/resources/ProductCatalog/index.js.map +0 -1
- package/esm/resources/QuoteLines.d.ts +0 -507
- package/esm/resources/QuoteLines.js +0 -3
- package/esm/resources/QuoteLines.js.map +0 -1
- package/esm/resources/QuotePreviewInvoices.d.ts +0 -1120
- package/esm/resources/QuotePreviewInvoices.js +0 -3
- package/esm/resources/QuotePreviewInvoices.js.map +0 -1
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
- package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
- package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
- package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
- package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
- package/esm/resources/SharedPayment/index.d.ts +0 -19
- package/esm/resources/SharedPayment/index.js +0 -11
- package/esm/resources/SharedPayment/index.js.map +0 -1
- package/esm/resources/Tax/Forms.d.ts +0 -230
- package/esm/resources/Tax/Forms.js +0 -28
- package/esm/resources/Tax/Forms.js.map +0 -1
- package/esm/resources/Tax/Locations.d.ts +0 -108
- package/esm/resources/Tax/Locations.js +0 -29
- package/esm/resources/Tax/Locations.js.map +0 -1
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
- package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
- package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
- package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
- package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
- package/esm/resources/V2/Billing/BillSettings.js +0 -37
- package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
- package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
- package/esm/resources/V2/Billing/Cadences.js +0 -194
- package/esm/resources/V2/Billing/Cadences.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
- package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
- package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
- package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
- package/esm/resources/V2/Billing/Profiles.js +0 -31
- package/esm/resources/V2/Billing/Profiles.js.map +0 -1
- package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
- package/esm/resources/V2/Core/BatchJobs.js +0 -221
- package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
- package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
- package/esm/resources/V2/Core/Vault/index.js +0 -11
- package/esm/resources/V2/Core/Vault/index.js.map +0 -1
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
- package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
- package/esm/resources/V2/Data/Reporting/index.js +0 -9
- package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
- package/esm/resources/V2/Data/index.d.ts +0 -10
- package/esm/resources/V2/Data/index.js +0 -9
- package/esm/resources/V2/Data/index.js.map +0 -1
- package/esm/resources/V2/EventMisc.d.ts +0 -0
- package/esm/resources/V2/EventMisc.js +0 -2
- package/esm/resources/V2/EventMisc.js.map +0 -1
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
- package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
- package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
- package/esm/resources/V2/Extend/Workflows.js +0 -26
- package/esm/resources/V2/Extend/Workflows.js.map +0 -1
- package/esm/resources/V2/Extend/index.d.ts +0 -20
- package/esm/resources/V2/Extend/index.js +0 -11
- package/esm/resources/V2/Extend/index.js.map +0 -1
- package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -214
- package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
- package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/esm/resources/V2/Iam/index.d.ts +0 -13
- package/esm/resources/V2/Iam/index.js +0 -9
- package/esm/resources/V2/Iam/index.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
- package/esm/resources/V2/MoneyManagement/index.js +0 -35
- package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
- package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
- package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
- package/esm/resources/V2/Network/index.d.ts +0 -13
- package/esm/resources/V2/Network/index.js +0 -9
- package/esm/resources/V2/Network/index.js.map +0 -1
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
- package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
- package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
- package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
- package/esm/resources/V2/TestHelpers/index.js +0 -9
- package/esm/resources/V2/TestHelpers/index.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StripeResource } from '../StripeResource.js';
|
|
2
|
+
import { Discount as _Discount } from './Discounts.js';
|
|
2
3
|
import { Application, DeletedApplication } from './Applications.js';
|
|
3
4
|
import { Customer, DeletedCustomer } from './Customers.js';
|
|
4
5
|
import { Subscription } from './Subscriptions.js';
|
|
@@ -10,7 +11,6 @@ import { Price, DeletedPrice } from './Prices.js';
|
|
|
10
11
|
import { Coupon } from './Coupons.js';
|
|
11
12
|
import { PromotionCode } from './PromotionCodes.js';
|
|
12
13
|
import { Plan, DeletedPlan } from './Plans.js';
|
|
13
|
-
import { Invoice } from './Invoices.js';
|
|
14
14
|
import * as TestHelpers from './TestHelpers/index.js';
|
|
15
15
|
import { Emptyable, MetadataParam, Decimal, PaginationParams, RangeQueryParam, Metadata } from '../shared.js';
|
|
16
16
|
import { RequestOptions, ApiListPromise, Response } from '../lib.js';
|
|
@@ -31,10 +31,6 @@ export declare class SubscriptionScheduleResource extends StripeResource {
|
|
|
31
31
|
* Updates an existing subscription schedule.
|
|
32
32
|
*/
|
|
33
33
|
update(id: string, params?: SubscriptionScheduleUpdateParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
|
|
34
|
-
/**
|
|
35
|
-
* Amends an existing subscription schedule.
|
|
36
|
-
*/
|
|
37
|
-
amend(id: string, params?: SubscriptionScheduleAmendParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
|
|
38
34
|
/**
|
|
39
35
|
* Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
40
36
|
*/
|
|
@@ -57,10 +53,6 @@ export interface SubscriptionSchedule {
|
|
|
57
53
|
* ID of the Connect Application that created the schedule.
|
|
58
54
|
*/
|
|
59
55
|
application: string | Application | DeletedApplication | null;
|
|
60
|
-
/**
|
|
61
|
-
* 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.
|
|
62
|
-
*/
|
|
63
|
-
billing_behavior?: SubscriptionSchedule.BillingBehavior;
|
|
64
56
|
/**
|
|
65
57
|
* The billing mode of the subscription.
|
|
66
58
|
*/
|
|
@@ -94,10 +86,6 @@ export interface SubscriptionSchedule {
|
|
|
94
86
|
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
95
87
|
*/
|
|
96
88
|
end_behavior: SubscriptionSchedule.EndBehavior;
|
|
97
|
-
/**
|
|
98
|
-
* Details of the most recent price migration that failed for the subscription schedule.
|
|
99
|
-
*/
|
|
100
|
-
last_price_migration_error?: SubscriptionSchedule.LastPriceMigrationError | null;
|
|
101
89
|
/**
|
|
102
90
|
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
103
91
|
*/
|
|
@@ -110,10 +98,6 @@ export interface SubscriptionSchedule {
|
|
|
110
98
|
* Configuration for the subscription schedule's phases.
|
|
111
99
|
*/
|
|
112
100
|
phases: Array<SubscriptionSchedule.Phase>;
|
|
113
|
-
/**
|
|
114
|
-
* Time period and invoice for a Subscription billed in advance.
|
|
115
|
-
*/
|
|
116
|
-
prebilling?: SubscriptionSchedule.Prebilling | null;
|
|
117
101
|
/**
|
|
118
102
|
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
119
103
|
*/
|
|
@@ -136,7 +120,6 @@ export interface SubscriptionSchedule {
|
|
|
136
120
|
test_clock: string | TestHelpers.TestClock | null;
|
|
137
121
|
}
|
|
138
122
|
export declare namespace SubscriptionSchedule {
|
|
139
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
140
123
|
interface BillingMode {
|
|
141
124
|
/**
|
|
142
125
|
* Configure behavior for flexible billing mode
|
|
@@ -198,20 +181,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
198
181
|
transfer_data: DefaultSettings.TransferData | null;
|
|
199
182
|
}
|
|
200
183
|
type EndBehavior = 'cancel' | 'none' | 'release' | 'renew';
|
|
201
|
-
interface LastPriceMigrationError {
|
|
202
|
-
/**
|
|
203
|
-
* The time at which the price migration encountered an error.
|
|
204
|
-
*/
|
|
205
|
-
errored_at: number;
|
|
206
|
-
/**
|
|
207
|
-
* The involved price pairs in each failed transition.
|
|
208
|
-
*/
|
|
209
|
-
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
210
|
-
/**
|
|
211
|
-
* The type of error encountered by the price migration.
|
|
212
|
-
*/
|
|
213
|
-
type: 'price_uniqueness_violation';
|
|
214
|
-
}
|
|
215
184
|
interface Phase {
|
|
216
185
|
/**
|
|
217
186
|
* A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
@@ -274,10 +243,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
274
243
|
* The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
|
275
244
|
*/
|
|
276
245
|
on_behalf_of: string | Account | null;
|
|
277
|
-
/**
|
|
278
|
-
* 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).
|
|
279
|
-
*/
|
|
280
|
-
pause_collection?: Phase.PauseCollection | null;
|
|
281
246
|
/**
|
|
282
247
|
* When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
283
248
|
*/
|
|
@@ -290,36 +255,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
290
255
|
* The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
291
256
|
*/
|
|
292
257
|
transfer_data: Phase.TransferData | null;
|
|
293
|
-
/**
|
|
294
|
-
* Specify behavior of the trial when crossing schedule phase boundaries
|
|
295
|
-
*/
|
|
296
|
-
trial_continuation?: Phase.TrialContinuation | null;
|
|
297
258
|
/**
|
|
298
259
|
* When the trial ends within the phase.
|
|
299
260
|
*/
|
|
300
261
|
trial_end: number | null;
|
|
301
|
-
/**
|
|
302
|
-
* Settings related to any trials on the subscription during this phase.
|
|
303
|
-
*/
|
|
304
|
-
trial_settings?: Phase.TrialSettings | null;
|
|
305
|
-
}
|
|
306
|
-
interface Prebilling {
|
|
307
|
-
/**
|
|
308
|
-
* ID of the prebilling invoice.
|
|
309
|
-
*/
|
|
310
|
-
invoice: string | Invoice;
|
|
311
|
-
/**
|
|
312
|
-
* The end of the last period for which the invoice pre-bills.
|
|
313
|
-
*/
|
|
314
|
-
period_end: number;
|
|
315
|
-
/**
|
|
316
|
-
* The start of the first period for which the invoice pre-bills.
|
|
317
|
-
*/
|
|
318
|
-
period_start: number;
|
|
319
|
-
/**
|
|
320
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
321
|
-
*/
|
|
322
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
323
262
|
}
|
|
324
263
|
type Status = 'active' | 'canceled' | 'completed' | 'not_started' | 'released';
|
|
325
264
|
namespace BillingMode {
|
|
@@ -413,18 +352,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
413
352
|
}
|
|
414
353
|
}
|
|
415
354
|
}
|
|
416
|
-
namespace LastPriceMigrationError {
|
|
417
|
-
interface FailedTransition {
|
|
418
|
-
/**
|
|
419
|
-
* The original price to be migrated.
|
|
420
|
-
*/
|
|
421
|
-
source_price: string;
|
|
422
|
-
/**
|
|
423
|
-
* The intended resulting price of the migration.
|
|
424
|
-
*/
|
|
425
|
-
target_price: string;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
355
|
namespace Phase {
|
|
429
356
|
interface AddInvoiceItem {
|
|
430
357
|
/**
|
|
@@ -487,11 +414,7 @@ export declare namespace SubscriptionSchedule {
|
|
|
487
414
|
/**
|
|
488
415
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
489
416
|
*/
|
|
490
|
-
discount: string |
|
|
491
|
-
/**
|
|
492
|
-
* Details to determine how long the discount should be applied for.
|
|
493
|
-
*/
|
|
494
|
-
discount_end?: Discount.DiscountEnd | null;
|
|
417
|
+
discount: string | _Discount | null;
|
|
495
418
|
/**
|
|
496
419
|
* ID of the promotion code to create a new discount for.
|
|
497
420
|
*/
|
|
@@ -540,20 +463,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
540
463
|
* The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
|
541
464
|
*/
|
|
542
465
|
tax_rates?: Array<TaxRate> | null;
|
|
543
|
-
/**
|
|
544
|
-
* Options that configure the trial on the subscription item.
|
|
545
|
-
*/
|
|
546
|
-
trial?: Item.Trial | null;
|
|
547
|
-
/**
|
|
548
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
549
|
-
*/
|
|
550
|
-
trial_offer?: string | null;
|
|
551
|
-
}
|
|
552
|
-
interface PauseCollection {
|
|
553
|
-
/**
|
|
554
|
-
* The payment collection behavior for this subscription while paused.
|
|
555
|
-
*/
|
|
556
|
-
behavior: PauseCollection.Behavior;
|
|
557
466
|
}
|
|
558
467
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
559
468
|
interface TransferData {
|
|
@@ -566,13 +475,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
566
475
|
*/
|
|
567
476
|
destination: string | Account;
|
|
568
477
|
}
|
|
569
|
-
type TrialContinuation = 'continue' | 'none';
|
|
570
|
-
interface TrialSettings {
|
|
571
|
-
/**
|
|
572
|
-
* Defines how the subscription should behave when a trial ends.
|
|
573
|
-
*/
|
|
574
|
-
end_behavior: TrialSettings.EndBehavior | null;
|
|
575
|
-
}
|
|
576
478
|
namespace AddInvoiceItem {
|
|
577
479
|
interface Discount {
|
|
578
480
|
/**
|
|
@@ -582,11 +484,7 @@ export declare namespace SubscriptionSchedule {
|
|
|
582
484
|
/**
|
|
583
485
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
584
486
|
*/
|
|
585
|
-
discount: string |
|
|
586
|
-
/**
|
|
587
|
-
* Details to determine how long the discount should be applied for.
|
|
588
|
-
*/
|
|
589
|
-
discount_end?: Discount.DiscountEnd | null;
|
|
487
|
+
discount: string | _Discount | null;
|
|
590
488
|
/**
|
|
591
489
|
* ID of the promotion code to create a new discount for.
|
|
592
490
|
*/
|
|
@@ -596,18 +494,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
596
494
|
end: Period.End;
|
|
597
495
|
start: Period.Start;
|
|
598
496
|
}
|
|
599
|
-
namespace Discount {
|
|
600
|
-
interface DiscountEnd {
|
|
601
|
-
/**
|
|
602
|
-
* The discount end timestamp.
|
|
603
|
-
*/
|
|
604
|
-
timestamp: number | null;
|
|
605
|
-
/**
|
|
606
|
-
* The discount end type.
|
|
607
|
-
*/
|
|
608
|
-
type: 'timestamp';
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
497
|
namespace Period {
|
|
612
498
|
interface End {
|
|
613
499
|
/**
|
|
@@ -652,18 +538,6 @@ export declare namespace SubscriptionSchedule {
|
|
|
652
538
|
type Type = 'account' | 'self';
|
|
653
539
|
}
|
|
654
540
|
}
|
|
655
|
-
namespace Discount {
|
|
656
|
-
interface DiscountEnd {
|
|
657
|
-
/**
|
|
658
|
-
* The discount end timestamp.
|
|
659
|
-
*/
|
|
660
|
-
timestamp: number | null;
|
|
661
|
-
/**
|
|
662
|
-
* The discount end type.
|
|
663
|
-
*/
|
|
664
|
-
type: 'timestamp';
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
541
|
namespace InvoiceSettings {
|
|
668
542
|
interface Issuer {
|
|
669
543
|
/**
|
|
@@ -694,66 +568,16 @@ export declare namespace SubscriptionSchedule {
|
|
|
694
568
|
/**
|
|
695
569
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
696
570
|
*/
|
|
697
|
-
discount: string |
|
|
698
|
-
/**
|
|
699
|
-
* Details to determine how long the discount should be applied for.
|
|
700
|
-
*/
|
|
701
|
-
discount_end?: Discount.DiscountEnd | null;
|
|
571
|
+
discount: string | _Discount | null;
|
|
702
572
|
/**
|
|
703
573
|
* ID of the promotion code to create a new discount for.
|
|
704
574
|
*/
|
|
705
575
|
promotion_code: string | PromotionCode | null;
|
|
706
576
|
}
|
|
707
|
-
interface Trial {
|
|
708
|
-
/**
|
|
709
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
710
|
-
*/
|
|
711
|
-
converts_to?: Array<string> | null;
|
|
712
|
-
/**
|
|
713
|
-
* Determines the type of trial for this item.
|
|
714
|
-
*/
|
|
715
|
-
type: Trial.Type;
|
|
716
|
-
}
|
|
717
|
-
namespace Discount {
|
|
718
|
-
interface DiscountEnd {
|
|
719
|
-
/**
|
|
720
|
-
* The discount end timestamp.
|
|
721
|
-
*/
|
|
722
|
-
timestamp: number | null;
|
|
723
|
-
/**
|
|
724
|
-
* The discount end type.
|
|
725
|
-
*/
|
|
726
|
-
type: 'timestamp';
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
namespace Trial {
|
|
730
|
-
type Type = 'free' | 'paid';
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
namespace PauseCollection {
|
|
734
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
735
|
-
}
|
|
736
|
-
namespace TrialSettings {
|
|
737
|
-
interface EndBehavior {
|
|
738
|
-
/**
|
|
739
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
740
|
-
*/
|
|
741
|
-
prorate_up_front: EndBehavior.ProrateUpFront | null;
|
|
742
|
-
}
|
|
743
|
-
namespace EndBehavior {
|
|
744
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
745
|
-
}
|
|
746
577
|
}
|
|
747
578
|
}
|
|
748
|
-
namespace Prebilling {
|
|
749
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
750
|
-
}
|
|
751
579
|
}
|
|
752
580
|
export interface SubscriptionScheduleCreateParams {
|
|
753
|
-
/**
|
|
754
|
-
* 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.
|
|
755
|
-
*/
|
|
756
|
-
billing_behavior?: SubscriptionScheduleCreateParams.BillingBehavior;
|
|
757
581
|
/**
|
|
758
582
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
759
583
|
*/
|
|
@@ -790,17 +614,12 @@ export interface SubscriptionScheduleCreateParams {
|
|
|
790
614
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
791
615
|
*/
|
|
792
616
|
phases?: Array<SubscriptionScheduleCreateParams.Phase>;
|
|
793
|
-
/**
|
|
794
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
795
|
-
*/
|
|
796
|
-
prebilling?: SubscriptionScheduleCreateParams.Prebilling;
|
|
797
617
|
/**
|
|
798
618
|
* When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
|
799
619
|
*/
|
|
800
620
|
start_date?: number | 'now';
|
|
801
621
|
}
|
|
802
622
|
export declare namespace SubscriptionScheduleCreateParams {
|
|
803
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
804
623
|
interface BillingMode {
|
|
805
624
|
/**
|
|
806
625
|
* Configure behavior for flexible billing mode.
|
|
@@ -923,10 +742,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
923
742
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
924
743
|
*/
|
|
925
744
|
on_behalf_of?: string;
|
|
926
|
-
/**
|
|
927
|
-
* 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).
|
|
928
|
-
*/
|
|
929
|
-
pause_collection?: Phase.PauseCollection;
|
|
930
745
|
/**
|
|
931
746
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
932
747
|
*/
|
|
@@ -939,28 +754,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
939
754
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
940
755
|
*/
|
|
941
756
|
trial?: boolean;
|
|
942
|
-
/**
|
|
943
|
-
* Specify trial behavior when crossing phase boundaries
|
|
944
|
-
*/
|
|
945
|
-
trial_continuation?: Phase.TrialContinuation;
|
|
946
757
|
/**
|
|
947
758
|
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
948
759
|
*/
|
|
949
760
|
trial_end?: number;
|
|
950
|
-
/**
|
|
951
|
-
* Settings related to subscription trials.
|
|
952
|
-
*/
|
|
953
|
-
trial_settings?: Phase.TrialSettings;
|
|
954
|
-
}
|
|
955
|
-
interface Prebilling {
|
|
956
|
-
/**
|
|
957
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
958
|
-
*/
|
|
959
|
-
iterations: number;
|
|
960
|
-
/**
|
|
961
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
962
|
-
*/
|
|
963
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
964
761
|
}
|
|
965
762
|
namespace BillingMode {
|
|
966
763
|
interface Flexible {
|
|
@@ -1118,10 +915,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1118
915
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1119
916
|
*/
|
|
1120
917
|
discount?: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* Details to determine how long the discount should be applied for.
|
|
1123
|
-
*/
|
|
1124
|
-
discount_end?: Discount.DiscountEnd;
|
|
1125
918
|
/**
|
|
1126
919
|
* ID of the promotion code to create a new discount for.
|
|
1127
920
|
*/
|
|
@@ -1184,20 +977,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1184
977
|
* A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
1185
978
|
*/
|
|
1186
979
|
tax_rates?: Emptyable<Array<string>>;
|
|
1187
|
-
/**
|
|
1188
|
-
* Options that configure the trial on the subscription item.
|
|
1189
|
-
*/
|
|
1190
|
-
trial?: Item.Trial;
|
|
1191
|
-
/**
|
|
1192
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
1193
|
-
*/
|
|
1194
|
-
trial_offer?: string;
|
|
1195
|
-
}
|
|
1196
|
-
interface PauseCollection {
|
|
1197
|
-
/**
|
|
1198
|
-
* The payment collection behavior for this subscription while paused.
|
|
1199
|
-
*/
|
|
1200
|
-
behavior: PauseCollection.Behavior;
|
|
1201
980
|
}
|
|
1202
981
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1203
982
|
interface TransferData {
|
|
@@ -1210,13 +989,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1210
989
|
*/
|
|
1211
990
|
destination: string;
|
|
1212
991
|
}
|
|
1213
|
-
type TrialContinuation = 'continue' | 'none';
|
|
1214
|
-
interface TrialSettings {
|
|
1215
|
-
/**
|
|
1216
|
-
* Defines how the subscription should behave when a trial ends.
|
|
1217
|
-
*/
|
|
1218
|
-
end_behavior?: TrialSettings.EndBehavior;
|
|
1219
|
-
}
|
|
1220
992
|
namespace AddInvoiceItem {
|
|
1221
993
|
interface Discount {
|
|
1222
994
|
/**
|
|
@@ -1227,10 +999,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1227
999
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1228
1000
|
*/
|
|
1229
1001
|
discount?: string;
|
|
1230
|
-
/**
|
|
1231
|
-
* Details to determine how long the discount should be applied for.
|
|
1232
|
-
*/
|
|
1233
|
-
discount_end?: Discount.DiscountEnd;
|
|
1234
1002
|
/**
|
|
1235
1003
|
* ID of the promotion code to create a new discount for.
|
|
1236
1004
|
*/
|
|
@@ -1268,38 +1036,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1268
1036
|
*/
|
|
1269
1037
|
unit_amount_decimal?: Decimal;
|
|
1270
1038
|
}
|
|
1271
|
-
namespace Discount {
|
|
1272
|
-
interface DiscountEnd {
|
|
1273
|
-
/**
|
|
1274
|
-
* Time span for the redeemed discount.
|
|
1275
|
-
*/
|
|
1276
|
-
duration?: DiscountEnd.Duration;
|
|
1277
|
-
/**
|
|
1278
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1279
|
-
*/
|
|
1280
|
-
timestamp?: number;
|
|
1281
|
-
/**
|
|
1282
|
-
* The type of calculation made to determine when the discount ends.
|
|
1283
|
-
*/
|
|
1284
|
-
type: DiscountEnd.Type;
|
|
1285
|
-
}
|
|
1286
|
-
namespace DiscountEnd {
|
|
1287
|
-
interface Duration {
|
|
1288
|
-
/**
|
|
1289
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1290
|
-
*/
|
|
1291
|
-
interval: Duration.Interval;
|
|
1292
|
-
/**
|
|
1293
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1294
|
-
*/
|
|
1295
|
-
interval_count: number;
|
|
1296
|
-
}
|
|
1297
|
-
type Type = 'duration' | 'timestamp';
|
|
1298
|
-
namespace Duration {
|
|
1299
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
1039
|
namespace Period {
|
|
1304
1040
|
interface End {
|
|
1305
1041
|
/**
|
|
@@ -1347,38 +1083,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1347
1083
|
type Type = 'account' | 'self';
|
|
1348
1084
|
}
|
|
1349
1085
|
}
|
|
1350
|
-
namespace Discount {
|
|
1351
|
-
interface DiscountEnd {
|
|
1352
|
-
/**
|
|
1353
|
-
* Time span for the redeemed discount.
|
|
1354
|
-
*/
|
|
1355
|
-
duration?: DiscountEnd.Duration;
|
|
1356
|
-
/**
|
|
1357
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1358
|
-
*/
|
|
1359
|
-
timestamp?: number;
|
|
1360
|
-
/**
|
|
1361
|
-
* The type of calculation made to determine when the discount ends.
|
|
1362
|
-
*/
|
|
1363
|
-
type: DiscountEnd.Type;
|
|
1364
|
-
}
|
|
1365
|
-
namespace DiscountEnd {
|
|
1366
|
-
interface Duration {
|
|
1367
|
-
/**
|
|
1368
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1369
|
-
*/
|
|
1370
|
-
interval: Duration.Interval;
|
|
1371
|
-
/**
|
|
1372
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1373
|
-
*/
|
|
1374
|
-
interval_count: number;
|
|
1375
|
-
}
|
|
1376
|
-
type Type = 'duration' | 'timestamp';
|
|
1377
|
-
namespace Duration {
|
|
1378
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
1086
|
namespace Duration {
|
|
1383
1087
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1384
1088
|
}
|
|
@@ -1413,10 +1117,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1413
1117
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1414
1118
|
*/
|
|
1415
1119
|
discount?: string;
|
|
1416
|
-
/**
|
|
1417
|
-
* Details to determine how long the discount should be applied for.
|
|
1418
|
-
*/
|
|
1419
|
-
discount_end?: Discount.DiscountEnd;
|
|
1420
1120
|
/**
|
|
1421
1121
|
* ID of the promotion code to create a new discount for.
|
|
1422
1122
|
*/
|
|
@@ -1448,48 +1148,6 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1448
1148
|
*/
|
|
1449
1149
|
unit_amount_decimal?: Decimal;
|
|
1450
1150
|
}
|
|
1451
|
-
interface Trial {
|
|
1452
|
-
/**
|
|
1453
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
1454
|
-
*/
|
|
1455
|
-
converts_to?: Array<string>;
|
|
1456
|
-
/**
|
|
1457
|
-
* Determines the type of trial for this item.
|
|
1458
|
-
*/
|
|
1459
|
-
type: Trial.Type;
|
|
1460
|
-
}
|
|
1461
|
-
namespace Discount {
|
|
1462
|
-
interface DiscountEnd {
|
|
1463
|
-
/**
|
|
1464
|
-
* Time span for the redeemed discount.
|
|
1465
|
-
*/
|
|
1466
|
-
duration?: DiscountEnd.Duration;
|
|
1467
|
-
/**
|
|
1468
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1469
|
-
*/
|
|
1470
|
-
timestamp?: number;
|
|
1471
|
-
/**
|
|
1472
|
-
* The type of calculation made to determine when the discount ends.
|
|
1473
|
-
*/
|
|
1474
|
-
type: DiscountEnd.Type;
|
|
1475
|
-
}
|
|
1476
|
-
namespace DiscountEnd {
|
|
1477
|
-
interface Duration {
|
|
1478
|
-
/**
|
|
1479
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1480
|
-
*/
|
|
1481
|
-
interval: Duration.Interval;
|
|
1482
|
-
/**
|
|
1483
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1484
|
-
*/
|
|
1485
|
-
interval_count: number;
|
|
1486
|
-
}
|
|
1487
|
-
type Type = 'duration' | 'timestamp';
|
|
1488
|
-
namespace Duration {
|
|
1489
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
1151
|
namespace PriceData {
|
|
1494
1152
|
interface Recurring {
|
|
1495
1153
|
/**
|
|
@@ -1506,28 +1164,8 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1506
1164
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1507
1165
|
}
|
|
1508
1166
|
}
|
|
1509
|
-
namespace Trial {
|
|
1510
|
-
type Type = 'free' | 'paid';
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
namespace PauseCollection {
|
|
1514
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
1515
|
-
}
|
|
1516
|
-
namespace TrialSettings {
|
|
1517
|
-
interface EndBehavior {
|
|
1518
|
-
/**
|
|
1519
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1520
|
-
*/
|
|
1521
|
-
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
1522
|
-
}
|
|
1523
|
-
namespace EndBehavior {
|
|
1524
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
1525
|
-
}
|
|
1526
1167
|
}
|
|
1527
1168
|
}
|
|
1528
|
-
namespace Prebilling {
|
|
1529
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
1530
|
-
}
|
|
1531
1169
|
}
|
|
1532
1170
|
export interface SubscriptionScheduleRetrieveParams {
|
|
1533
1171
|
/**
|
|
@@ -1536,10 +1174,6 @@ export interface SubscriptionScheduleRetrieveParams {
|
|
|
1536
1174
|
expand?: Array<string>;
|
|
1537
1175
|
}
|
|
1538
1176
|
export interface SubscriptionScheduleUpdateParams {
|
|
1539
|
-
/**
|
|
1540
|
-
* 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.
|
|
1541
|
-
*/
|
|
1542
|
-
billing_behavior?: SubscriptionScheduleUpdateParams.BillingBehavior;
|
|
1543
1177
|
/**
|
|
1544
1178
|
* Object representing the subscription schedule's default settings.
|
|
1545
1179
|
*/
|
|
@@ -1560,17 +1194,12 @@ export interface SubscriptionScheduleUpdateParams {
|
|
|
1560
1194
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
|
|
1561
1195
|
*/
|
|
1562
1196
|
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;
|
|
1563
|
-
/**
|
|
1564
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1565
|
-
*/
|
|
1566
|
-
prebilling?: SubscriptionScheduleUpdateParams.Prebilling;
|
|
1567
1197
|
/**
|
|
1568
1198
|
* If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
|
|
1569
1199
|
*/
|
|
1570
1200
|
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
|
|
1571
1201
|
}
|
|
1572
1202
|
export declare namespace SubscriptionScheduleUpdateParams {
|
|
1573
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
1574
1203
|
interface DefaultSettings {
|
|
1575
1204
|
/**
|
|
1576
1205
|
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
|
|
@@ -1683,10 +1312,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1683
1312
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
1684
1313
|
*/
|
|
1685
1314
|
on_behalf_of?: string;
|
|
1686
|
-
/**
|
|
1687
|
-
* 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).
|
|
1688
|
-
*/
|
|
1689
|
-
pause_collection?: Phase.PauseCollection;
|
|
1690
1315
|
/**
|
|
1691
1316
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
1692
1317
|
*/
|
|
@@ -1703,28 +1328,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1703
1328
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
1704
1329
|
*/
|
|
1705
1330
|
trial?: boolean;
|
|
1706
|
-
/**
|
|
1707
|
-
* Specify trial behavior when crossing phase boundaries
|
|
1708
|
-
*/
|
|
1709
|
-
trial_continuation?: Phase.TrialContinuation;
|
|
1710
1331
|
/**
|
|
1711
1332
|
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
1712
1333
|
*/
|
|
1713
1334
|
trial_end?: number | 'now';
|
|
1714
|
-
/**
|
|
1715
|
-
* Settings related to subscription trials.
|
|
1716
|
-
*/
|
|
1717
|
-
trial_settings?: Phase.TrialSettings;
|
|
1718
|
-
}
|
|
1719
|
-
interface Prebilling {
|
|
1720
|
-
/**
|
|
1721
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
1722
|
-
*/
|
|
1723
|
-
iterations: number;
|
|
1724
|
-
/**
|
|
1725
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1726
|
-
*/
|
|
1727
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1728
1335
|
}
|
|
1729
1336
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1730
1337
|
namespace DefaultSettings {
|
|
@@ -1871,10 +1478,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1871
1478
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1872
1479
|
*/
|
|
1873
1480
|
discount?: string;
|
|
1874
|
-
/**
|
|
1875
|
-
* Details to determine how long the discount should be applied for.
|
|
1876
|
-
*/
|
|
1877
|
-
discount_end?: Discount.DiscountEnd;
|
|
1878
1481
|
/**
|
|
1879
1482
|
* ID of the promotion code to create a new discount for.
|
|
1880
1483
|
*/
|
|
@@ -1937,20 +1540,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1937
1540
|
* A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
1938
1541
|
*/
|
|
1939
1542
|
tax_rates?: Emptyable<Array<string>>;
|
|
1940
|
-
/**
|
|
1941
|
-
* Options that configure the trial on the subscription item.
|
|
1942
|
-
*/
|
|
1943
|
-
trial?: Item.Trial;
|
|
1944
|
-
/**
|
|
1945
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
1946
|
-
*/
|
|
1947
|
-
trial_offer?: string;
|
|
1948
|
-
}
|
|
1949
|
-
interface PauseCollection {
|
|
1950
|
-
/**
|
|
1951
|
-
* The payment collection behavior for this subscription while paused.
|
|
1952
|
-
*/
|
|
1953
|
-
behavior: PauseCollection.Behavior;
|
|
1954
1543
|
}
|
|
1955
1544
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1956
1545
|
interface TransferData {
|
|
@@ -1963,13 +1552,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1963
1552
|
*/
|
|
1964
1553
|
destination: string;
|
|
1965
1554
|
}
|
|
1966
|
-
type TrialContinuation = 'continue' | 'none';
|
|
1967
|
-
interface TrialSettings {
|
|
1968
|
-
/**
|
|
1969
|
-
* Defines how the subscription should behave when a trial ends.
|
|
1970
|
-
*/
|
|
1971
|
-
end_behavior?: TrialSettings.EndBehavior;
|
|
1972
|
-
}
|
|
1973
1555
|
namespace AddInvoiceItem {
|
|
1974
1556
|
interface Discount {
|
|
1975
1557
|
/**
|
|
@@ -1980,10 +1562,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1980
1562
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1981
1563
|
*/
|
|
1982
1564
|
discount?: string;
|
|
1983
|
-
/**
|
|
1984
|
-
* Details to determine how long the discount should be applied for.
|
|
1985
|
-
*/
|
|
1986
|
-
discount_end?: Discount.DiscountEnd;
|
|
1987
1565
|
/**
|
|
1988
1566
|
* ID of the promotion code to create a new discount for.
|
|
1989
1567
|
*/
|
|
@@ -2021,38 +1599,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2021
1599
|
*/
|
|
2022
1600
|
unit_amount_decimal?: Decimal;
|
|
2023
1601
|
}
|
|
2024
|
-
namespace Discount {
|
|
2025
|
-
interface DiscountEnd {
|
|
2026
|
-
/**
|
|
2027
|
-
* Time span for the redeemed discount.
|
|
2028
|
-
*/
|
|
2029
|
-
duration?: DiscountEnd.Duration;
|
|
2030
|
-
/**
|
|
2031
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2032
|
-
*/
|
|
2033
|
-
timestamp?: number;
|
|
2034
|
-
/**
|
|
2035
|
-
* The type of calculation made to determine when the discount ends.
|
|
2036
|
-
*/
|
|
2037
|
-
type: DiscountEnd.Type;
|
|
2038
|
-
}
|
|
2039
|
-
namespace DiscountEnd {
|
|
2040
|
-
interface Duration {
|
|
2041
|
-
/**
|
|
2042
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2043
|
-
*/
|
|
2044
|
-
interval: Duration.Interval;
|
|
2045
|
-
/**
|
|
2046
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2047
|
-
*/
|
|
2048
|
-
interval_count: number;
|
|
2049
|
-
}
|
|
2050
|
-
type Type = 'duration' | 'timestamp';
|
|
2051
|
-
namespace Duration {
|
|
2052
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
1602
|
namespace Period {
|
|
2057
1603
|
interface End {
|
|
2058
1604
|
/**
|
|
@@ -2100,38 +1646,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2100
1646
|
type Type = 'account' | 'self';
|
|
2101
1647
|
}
|
|
2102
1648
|
}
|
|
2103
|
-
namespace Discount {
|
|
2104
|
-
interface DiscountEnd {
|
|
2105
|
-
/**
|
|
2106
|
-
* Time span for the redeemed discount.
|
|
2107
|
-
*/
|
|
2108
|
-
duration?: DiscountEnd.Duration;
|
|
2109
|
-
/**
|
|
2110
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2111
|
-
*/
|
|
2112
|
-
timestamp?: number;
|
|
2113
|
-
/**
|
|
2114
|
-
* The type of calculation made to determine when the discount ends.
|
|
2115
|
-
*/
|
|
2116
|
-
type: DiscountEnd.Type;
|
|
2117
|
-
}
|
|
2118
|
-
namespace DiscountEnd {
|
|
2119
|
-
interface Duration {
|
|
2120
|
-
/**
|
|
2121
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2122
|
-
*/
|
|
2123
|
-
interval: Duration.Interval;
|
|
2124
|
-
/**
|
|
2125
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2126
|
-
*/
|
|
2127
|
-
interval_count: number;
|
|
2128
|
-
}
|
|
2129
|
-
type Type = 'duration' | 'timestamp';
|
|
2130
|
-
namespace Duration {
|
|
2131
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
1649
|
namespace Duration {
|
|
2136
1650
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2137
1651
|
}
|
|
@@ -2166,10 +1680,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2166
1680
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2167
1681
|
*/
|
|
2168
1682
|
discount?: string;
|
|
2169
|
-
/**
|
|
2170
|
-
* Details to determine how long the discount should be applied for.
|
|
2171
|
-
*/
|
|
2172
|
-
discount_end?: Discount.DiscountEnd;
|
|
2173
1683
|
/**
|
|
2174
1684
|
* ID of the promotion code to create a new discount for.
|
|
2175
1685
|
*/
|
|
@@ -2201,48 +1711,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2201
1711
|
*/
|
|
2202
1712
|
unit_amount_decimal?: Decimal;
|
|
2203
1713
|
}
|
|
2204
|
-
interface Trial {
|
|
2205
|
-
/**
|
|
2206
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
2207
|
-
*/
|
|
2208
|
-
converts_to?: Array<string>;
|
|
2209
|
-
/**
|
|
2210
|
-
* Determines the type of trial for this item.
|
|
2211
|
-
*/
|
|
2212
|
-
type: Trial.Type;
|
|
2213
|
-
}
|
|
2214
|
-
namespace Discount {
|
|
2215
|
-
interface DiscountEnd {
|
|
2216
|
-
/**
|
|
2217
|
-
* Time span for the redeemed discount.
|
|
2218
|
-
*/
|
|
2219
|
-
duration?: DiscountEnd.Duration;
|
|
2220
|
-
/**
|
|
2221
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2222
|
-
*/
|
|
2223
|
-
timestamp?: number;
|
|
2224
|
-
/**
|
|
2225
|
-
* The type of calculation made to determine when the discount ends.
|
|
2226
|
-
*/
|
|
2227
|
-
type: DiscountEnd.Type;
|
|
2228
|
-
}
|
|
2229
|
-
namespace DiscountEnd {
|
|
2230
|
-
interface Duration {
|
|
2231
|
-
/**
|
|
2232
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2233
|
-
*/
|
|
2234
|
-
interval: Duration.Interval;
|
|
2235
|
-
/**
|
|
2236
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2237
|
-
*/
|
|
2238
|
-
interval_count: number;
|
|
2239
|
-
}
|
|
2240
|
-
type Type = 'duration' | 'timestamp';
|
|
2241
|
-
namespace Duration {
|
|
2242
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
1714
|
namespace PriceData {
|
|
2247
1715
|
interface Recurring {
|
|
2248
1716
|
/**
|
|
@@ -2259,28 +1727,8 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2259
1727
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2260
1728
|
}
|
|
2261
1729
|
}
|
|
2262
|
-
namespace Trial {
|
|
2263
|
-
type Type = 'free' | 'paid';
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
namespace PauseCollection {
|
|
2267
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
2268
|
-
}
|
|
2269
|
-
namespace TrialSettings {
|
|
2270
|
-
interface EndBehavior {
|
|
2271
|
-
/**
|
|
2272
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2273
|
-
*/
|
|
2274
|
-
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2275
|
-
}
|
|
2276
|
-
namespace EndBehavior {
|
|
2277
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
2278
|
-
}
|
|
2279
1730
|
}
|
|
2280
1731
|
}
|
|
2281
|
-
namespace Prebilling {
|
|
2282
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2283
|
-
}
|
|
2284
1732
|
}
|
|
2285
1733
|
export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
2286
1734
|
/**
|
|
@@ -2316,605 +1764,6 @@ export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
|
2316
1764
|
*/
|
|
2317
1765
|
scheduled?: boolean;
|
|
2318
1766
|
}
|
|
2319
|
-
export interface SubscriptionScheduleAmendParams {
|
|
2320
|
-
/**
|
|
2321
|
-
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
2322
|
-
*/
|
|
2323
|
-
amendments?: Array<SubscriptionScheduleAmendParams.Amendment>;
|
|
2324
|
-
/**
|
|
2325
|
-
* Specifies which fields in the response should be expanded.
|
|
2326
|
-
*/
|
|
2327
|
-
expand?: Array<string>;
|
|
2328
|
-
/**
|
|
2329
|
-
* Provide any time periods to bill in advance.
|
|
2330
|
-
*/
|
|
2331
|
-
prebilling?: Emptyable<Array<SubscriptionScheduleAmendParams.Prebilling>>;
|
|
2332
|
-
/**
|
|
2333
|
-
* In cases where the amendment changes the currently active phase,
|
|
2334
|
-
* specifies if and how to prorate at the time of the request.
|
|
2335
|
-
*/
|
|
2336
|
-
proration_behavior?: SubscriptionScheduleAmendParams.ProrationBehavior;
|
|
2337
|
-
/**
|
|
2338
|
-
* Changes to apply to the subscription schedule.
|
|
2339
|
-
*/
|
|
2340
|
-
schedule_settings?: SubscriptionScheduleAmendParams.ScheduleSettings;
|
|
2341
|
-
}
|
|
2342
|
-
export declare namespace SubscriptionScheduleAmendParams {
|
|
2343
|
-
interface Amendment {
|
|
2344
|
-
/**
|
|
2345
|
-
* Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
|
|
2346
|
-
*/
|
|
2347
|
-
amendment_end?: Amendment.AmendmentEnd;
|
|
2348
|
-
/**
|
|
2349
|
-
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
2350
|
-
*/
|
|
2351
|
-
amendment_start: Amendment.AmendmentStart;
|
|
2352
|
-
/**
|
|
2353
|
-
* For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
2354
|
-
*/
|
|
2355
|
-
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
2356
|
-
/**
|
|
2357
|
-
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
2358
|
-
*/
|
|
2359
|
-
discount_actions?: Array<Amendment.DiscountAction>;
|
|
2360
|
-
/**
|
|
2361
|
-
* Changes to the subscription items during the amendment time span.
|
|
2362
|
-
*/
|
|
2363
|
-
item_actions?: Array<Amendment.ItemAction>;
|
|
2364
|
-
/**
|
|
2365
|
-
* Instructions for how to modify phase metadata
|
|
2366
|
-
*/
|
|
2367
|
-
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
2368
|
-
/**
|
|
2369
|
-
* Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
|
|
2370
|
-
*/
|
|
2371
|
-
proration_behavior?: Amendment.ProrationBehavior;
|
|
2372
|
-
/**
|
|
2373
|
-
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
2374
|
-
*/
|
|
2375
|
-
set_pause_collection?: Amendment.SetPauseCollection;
|
|
2376
|
-
/**
|
|
2377
|
-
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
2378
|
-
*/
|
|
2379
|
-
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
2380
|
-
/**
|
|
2381
|
-
* Settings related to subscription trials.
|
|
2382
|
-
*/
|
|
2383
|
-
trial_settings?: Amendment.TrialSettings;
|
|
2384
|
-
}
|
|
2385
|
-
interface Prebilling {
|
|
2386
|
-
/**
|
|
2387
|
-
* The beginning of the prebilled time period. The default value is `now`.
|
|
2388
|
-
*/
|
|
2389
|
-
bill_from?: Prebilling.BillFrom;
|
|
2390
|
-
/**
|
|
2391
|
-
* The end of the prebilled time period.
|
|
2392
|
-
*/
|
|
2393
|
-
bill_until?: Prebilling.BillUntil;
|
|
2394
|
-
/**
|
|
2395
|
-
* When the prebilling invoice should be created. The default value is `now`.
|
|
2396
|
-
*/
|
|
2397
|
-
invoice_at?: 'now';
|
|
2398
|
-
/**
|
|
2399
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2400
|
-
*/
|
|
2401
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
2402
|
-
}
|
|
2403
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2404
|
-
interface ScheduleSettings {
|
|
2405
|
-
/**
|
|
2406
|
-
* Behavior of the subscription schedule and underlying subscription when it ends.
|
|
2407
|
-
*/
|
|
2408
|
-
end_behavior?: ScheduleSettings.EndBehavior;
|
|
2409
|
-
}
|
|
2410
|
-
namespace Amendment {
|
|
2411
|
-
interface AmendmentEnd {
|
|
2412
|
-
/**
|
|
2413
|
-
* Use the `end` time of a given discount.
|
|
2414
|
-
*/
|
|
2415
|
-
discount_end?: AmendmentEnd.DiscountEnd;
|
|
2416
|
-
/**
|
|
2417
|
-
* Time span for the amendment starting from the `amendment_start`.
|
|
2418
|
-
*/
|
|
2419
|
-
duration?: AmendmentEnd.Duration;
|
|
2420
|
-
/**
|
|
2421
|
-
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
2422
|
-
*/
|
|
2423
|
-
timestamp?: number;
|
|
2424
|
-
/**
|
|
2425
|
-
* Select one of three ways to pass the `amendment_end`.
|
|
2426
|
-
*/
|
|
2427
|
-
type: AmendmentEnd.Type;
|
|
2428
|
-
}
|
|
2429
|
-
interface AmendmentStart {
|
|
2430
|
-
/**
|
|
2431
|
-
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
2432
|
-
*/
|
|
2433
|
-
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
2434
|
-
/**
|
|
2435
|
-
* Use the `end` time of a given discount.
|
|
2436
|
-
*/
|
|
2437
|
-
discount_end?: AmendmentStart.DiscountEnd;
|
|
2438
|
-
/**
|
|
2439
|
-
* A precise Unix timestamp for the amendment to start.
|
|
2440
|
-
*/
|
|
2441
|
-
timestamp?: number;
|
|
2442
|
-
/**
|
|
2443
|
-
* Select one of three ways to pass the `amendment_start`.
|
|
2444
|
-
*/
|
|
2445
|
-
type: AmendmentStart.Type;
|
|
2446
|
-
}
|
|
2447
|
-
type BillingCycleAnchor = 'amendment_start' | 'automatic';
|
|
2448
|
-
interface DiscountAction {
|
|
2449
|
-
/**
|
|
2450
|
-
* Details of the discount to add.
|
|
2451
|
-
*/
|
|
2452
|
-
add?: DiscountAction.Add;
|
|
2453
|
-
/**
|
|
2454
|
-
* Details of the discount to remove.
|
|
2455
|
-
*/
|
|
2456
|
-
remove?: DiscountAction.Remove;
|
|
2457
|
-
/**
|
|
2458
|
-
* Details of the discount to replace the existing discounts with.
|
|
2459
|
-
*/
|
|
2460
|
-
set?: DiscountAction.Set;
|
|
2461
|
-
/**
|
|
2462
|
-
* Determines the type of discount action.
|
|
2463
|
-
*/
|
|
2464
|
-
type: DiscountAction.Type;
|
|
2465
|
-
}
|
|
2466
|
-
interface ItemAction {
|
|
2467
|
-
/**
|
|
2468
|
-
* Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
2469
|
-
*/
|
|
2470
|
-
add?: ItemAction.Add;
|
|
2471
|
-
/**
|
|
2472
|
-
* Details of the subscription item to remove.
|
|
2473
|
-
*/
|
|
2474
|
-
remove?: ItemAction.Remove;
|
|
2475
|
-
/**
|
|
2476
|
-
* Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
|
|
2477
|
-
*/
|
|
2478
|
-
set?: ItemAction.Set;
|
|
2479
|
-
/**
|
|
2480
|
-
* Determines the type of item action.
|
|
2481
|
-
*/
|
|
2482
|
-
type: ItemAction.Type;
|
|
2483
|
-
}
|
|
2484
|
-
interface MetadataAction {
|
|
2485
|
-
/**
|
|
2486
|
-
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
2487
|
-
*/
|
|
2488
|
-
add?: {
|
|
2489
|
-
[key: string]: string;
|
|
2490
|
-
};
|
|
2491
|
-
/**
|
|
2492
|
-
* Keys to remove from schedule phase metadata.
|
|
2493
|
-
*/
|
|
2494
|
-
remove?: Array<string>;
|
|
2495
|
-
/**
|
|
2496
|
-
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
2497
|
-
*/
|
|
2498
|
-
set?: Emptyable<{
|
|
2499
|
-
[key: string]: string;
|
|
2500
|
-
}>;
|
|
2501
|
-
/**
|
|
2502
|
-
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
2503
|
-
*/
|
|
2504
|
-
type: MetadataAction.Type;
|
|
2505
|
-
}
|
|
2506
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2507
|
-
interface SetPauseCollection {
|
|
2508
|
-
/**
|
|
2509
|
-
* Details of the pause_collection behavior to apply to the amendment.
|
|
2510
|
-
*/
|
|
2511
|
-
set?: SetPauseCollection.Set;
|
|
2512
|
-
/**
|
|
2513
|
-
* Determines the type of the pause_collection amendment.
|
|
2514
|
-
*/
|
|
2515
|
-
type: SetPauseCollection.Type;
|
|
2516
|
-
}
|
|
2517
|
-
type SetScheduleEnd = 'amendment_end' | 'amendment_start';
|
|
2518
|
-
interface TrialSettings {
|
|
2519
|
-
/**
|
|
2520
|
-
* Defines how the subscription should behave when a trial ends.
|
|
2521
|
-
*/
|
|
2522
|
-
end_behavior?: TrialSettings.EndBehavior;
|
|
2523
|
-
}
|
|
2524
|
-
namespace AmendmentEnd {
|
|
2525
|
-
interface DiscountEnd {
|
|
2526
|
-
/**
|
|
2527
|
-
* The ID of a specific discount.
|
|
2528
|
-
*/
|
|
2529
|
-
discount: string;
|
|
2530
|
-
}
|
|
2531
|
-
interface Duration {
|
|
2532
|
-
/**
|
|
2533
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2534
|
-
*/
|
|
2535
|
-
interval: Duration.Interval;
|
|
2536
|
-
/**
|
|
2537
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2538
|
-
*/
|
|
2539
|
-
interval_count: number;
|
|
2540
|
-
}
|
|
2541
|
-
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
2542
|
-
namespace Duration {
|
|
2543
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
namespace AmendmentStart {
|
|
2547
|
-
interface AmendmentEnd {
|
|
2548
|
-
/**
|
|
2549
|
-
* The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
|
|
2550
|
-
*/
|
|
2551
|
-
index: number;
|
|
2552
|
-
}
|
|
2553
|
-
interface DiscountEnd {
|
|
2554
|
-
/**
|
|
2555
|
-
* The ID of a specific discount.
|
|
2556
|
-
*/
|
|
2557
|
-
discount: string;
|
|
2558
|
-
}
|
|
2559
|
-
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
2560
|
-
}
|
|
2561
|
-
namespace DiscountAction {
|
|
2562
|
-
interface Add {
|
|
2563
|
-
/**
|
|
2564
|
-
* The coupon code to redeem.
|
|
2565
|
-
*/
|
|
2566
|
-
coupon?: string;
|
|
2567
|
-
/**
|
|
2568
|
-
* An ID of an existing discount for a coupon that was already redeemed.
|
|
2569
|
-
*/
|
|
2570
|
-
discount?: string;
|
|
2571
|
-
/**
|
|
2572
|
-
* Details to determine how long the discount should be applied for.
|
|
2573
|
-
*/
|
|
2574
|
-
discount_end?: Add.DiscountEnd;
|
|
2575
|
-
/**
|
|
2576
|
-
* The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
|
|
2577
|
-
*/
|
|
2578
|
-
index?: number;
|
|
2579
|
-
/**
|
|
2580
|
-
* The promotion code to redeem.
|
|
2581
|
-
*/
|
|
2582
|
-
promotion_code?: string;
|
|
2583
|
-
}
|
|
2584
|
-
interface Remove {
|
|
2585
|
-
/**
|
|
2586
|
-
* The coupon code to remove from the `discounts` array.
|
|
2587
|
-
*/
|
|
2588
|
-
coupon?: string;
|
|
2589
|
-
/**
|
|
2590
|
-
* The ID of a discount to remove from the `discounts` array.
|
|
2591
|
-
*/
|
|
2592
|
-
discount?: string;
|
|
2593
|
-
/**
|
|
2594
|
-
* The ID of a promotion code to remove from the `discounts` array.
|
|
2595
|
-
*/
|
|
2596
|
-
promotion_code?: string;
|
|
2597
|
-
}
|
|
2598
|
-
interface Set {
|
|
2599
|
-
/**
|
|
2600
|
-
* The coupon code to replace the `discounts` array with.
|
|
2601
|
-
*/
|
|
2602
|
-
coupon?: string;
|
|
2603
|
-
/**
|
|
2604
|
-
* An ID of an existing discount to replace the `discounts` array with.
|
|
2605
|
-
*/
|
|
2606
|
-
discount?: string;
|
|
2607
|
-
/**
|
|
2608
|
-
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
2609
|
-
*/
|
|
2610
|
-
promotion_code?: string;
|
|
2611
|
-
}
|
|
2612
|
-
type Type = 'add' | 'remove' | 'set';
|
|
2613
|
-
namespace Add {
|
|
2614
|
-
interface DiscountEnd {
|
|
2615
|
-
/**
|
|
2616
|
-
* The type of calculation made to determine when the discount ends.
|
|
2617
|
-
*/
|
|
2618
|
-
type: 'amendment_end';
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
}
|
|
2622
|
-
namespace ItemAction {
|
|
2623
|
-
interface Add {
|
|
2624
|
-
/**
|
|
2625
|
-
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
2626
|
-
*/
|
|
2627
|
-
discounts?: Array<Add.Discount>;
|
|
2628
|
-
/**
|
|
2629
|
-
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2630
|
-
*/
|
|
2631
|
-
metadata?: MetadataParam;
|
|
2632
|
-
/**
|
|
2633
|
-
* The ID of the price object.
|
|
2634
|
-
*/
|
|
2635
|
-
price: string;
|
|
2636
|
-
/**
|
|
2637
|
-
* Quantity for this item.
|
|
2638
|
-
*/
|
|
2639
|
-
quantity?: number;
|
|
2640
|
-
/**
|
|
2641
|
-
* The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
2642
|
-
*/
|
|
2643
|
-
tax_rates?: Array<string>;
|
|
2644
|
-
/**
|
|
2645
|
-
* Options that configure the trial on the subscription item.
|
|
2646
|
-
*/
|
|
2647
|
-
trial?: Add.Trial;
|
|
2648
|
-
/**
|
|
2649
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
2650
|
-
*/
|
|
2651
|
-
trial_offer?: string;
|
|
2652
|
-
}
|
|
2653
|
-
interface Remove {
|
|
2654
|
-
/**
|
|
2655
|
-
* ID of a price to remove.
|
|
2656
|
-
*/
|
|
2657
|
-
price: string;
|
|
2658
|
-
}
|
|
2659
|
-
interface Set {
|
|
2660
|
-
/**
|
|
2661
|
-
* If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
|
|
2662
|
-
*/
|
|
2663
|
-
discounts?: Array<Set.Discount>;
|
|
2664
|
-
/**
|
|
2665
|
-
* If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
|
|
2666
|
-
*/
|
|
2667
|
-
metadata?: MetadataParam;
|
|
2668
|
-
/**
|
|
2669
|
-
* The ID of the price object.
|
|
2670
|
-
*/
|
|
2671
|
-
price: string;
|
|
2672
|
-
/**
|
|
2673
|
-
* If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
|
|
2674
|
-
*/
|
|
2675
|
-
quantity?: number;
|
|
2676
|
-
/**
|
|
2677
|
-
* If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
|
|
2678
|
-
*/
|
|
2679
|
-
tax_rates?: Array<string>;
|
|
2680
|
-
/**
|
|
2681
|
-
* If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
2682
|
-
*/
|
|
2683
|
-
trial?: Set.Trial;
|
|
2684
|
-
/**
|
|
2685
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
2686
|
-
*/
|
|
2687
|
-
trial_offer?: string;
|
|
2688
|
-
}
|
|
2689
|
-
type Type = 'add' | 'remove' | 'set';
|
|
2690
|
-
namespace Add {
|
|
2691
|
-
interface Discount {
|
|
2692
|
-
/**
|
|
2693
|
-
* ID of the coupon to create a new discount for.
|
|
2694
|
-
*/
|
|
2695
|
-
coupon?: string;
|
|
2696
|
-
/**
|
|
2697
|
-
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2698
|
-
*/
|
|
2699
|
-
discount?: string;
|
|
2700
|
-
/**
|
|
2701
|
-
* Details to determine how long the discount should be applied for.
|
|
2702
|
-
*/
|
|
2703
|
-
discount_end?: Discount.DiscountEnd;
|
|
2704
|
-
/**
|
|
2705
|
-
* ID of the promotion code to create a new discount for.
|
|
2706
|
-
*/
|
|
2707
|
-
promotion_code?: string;
|
|
2708
|
-
}
|
|
2709
|
-
interface Trial {
|
|
2710
|
-
/**
|
|
2711
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
2712
|
-
*/
|
|
2713
|
-
converts_to?: Array<string>;
|
|
2714
|
-
/**
|
|
2715
|
-
* Determines the type of trial for this item.
|
|
2716
|
-
*/
|
|
2717
|
-
type: Trial.Type;
|
|
2718
|
-
}
|
|
2719
|
-
namespace Discount {
|
|
2720
|
-
interface DiscountEnd {
|
|
2721
|
-
/**
|
|
2722
|
-
* Time span for the redeemed discount.
|
|
2723
|
-
*/
|
|
2724
|
-
duration?: DiscountEnd.Duration;
|
|
2725
|
-
/**
|
|
2726
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2727
|
-
*/
|
|
2728
|
-
timestamp?: number;
|
|
2729
|
-
/**
|
|
2730
|
-
* The type of calculation made to determine when the discount ends.
|
|
2731
|
-
*/
|
|
2732
|
-
type: DiscountEnd.Type;
|
|
2733
|
-
}
|
|
2734
|
-
namespace DiscountEnd {
|
|
2735
|
-
interface Duration {
|
|
2736
|
-
/**
|
|
2737
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2738
|
-
*/
|
|
2739
|
-
interval: Duration.Interval;
|
|
2740
|
-
/**
|
|
2741
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2742
|
-
*/
|
|
2743
|
-
interval_count: number;
|
|
2744
|
-
}
|
|
2745
|
-
type Type = 'duration' | 'timestamp';
|
|
2746
|
-
namespace Duration {
|
|
2747
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2748
|
-
}
|
|
2749
|
-
}
|
|
2750
|
-
}
|
|
2751
|
-
namespace Trial {
|
|
2752
|
-
type Type = 'free' | 'paid';
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
namespace Set {
|
|
2756
|
-
interface Discount {
|
|
2757
|
-
/**
|
|
2758
|
-
* ID of the coupon to create a new discount for.
|
|
2759
|
-
*/
|
|
2760
|
-
coupon?: string;
|
|
2761
|
-
/**
|
|
2762
|
-
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2763
|
-
*/
|
|
2764
|
-
discount?: string;
|
|
2765
|
-
/**
|
|
2766
|
-
* Details to determine how long the discount should be applied for.
|
|
2767
|
-
*/
|
|
2768
|
-
discount_end?: Discount.DiscountEnd;
|
|
2769
|
-
/**
|
|
2770
|
-
* ID of the promotion code to create a new discount for.
|
|
2771
|
-
*/
|
|
2772
|
-
promotion_code?: string;
|
|
2773
|
-
}
|
|
2774
|
-
interface Trial {
|
|
2775
|
-
/**
|
|
2776
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
2777
|
-
*/
|
|
2778
|
-
converts_to?: Array<string>;
|
|
2779
|
-
/**
|
|
2780
|
-
* Determines the type of trial for this item.
|
|
2781
|
-
*/
|
|
2782
|
-
type: Trial.Type;
|
|
2783
|
-
}
|
|
2784
|
-
namespace Discount {
|
|
2785
|
-
interface DiscountEnd {
|
|
2786
|
-
/**
|
|
2787
|
-
* Time span for the redeemed discount.
|
|
2788
|
-
*/
|
|
2789
|
-
duration?: DiscountEnd.Duration;
|
|
2790
|
-
/**
|
|
2791
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2792
|
-
*/
|
|
2793
|
-
timestamp?: number;
|
|
2794
|
-
/**
|
|
2795
|
-
* The type of calculation made to determine when the discount ends.
|
|
2796
|
-
*/
|
|
2797
|
-
type: DiscountEnd.Type;
|
|
2798
|
-
}
|
|
2799
|
-
namespace DiscountEnd {
|
|
2800
|
-
interface Duration {
|
|
2801
|
-
/**
|
|
2802
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2803
|
-
*/
|
|
2804
|
-
interval: Duration.Interval;
|
|
2805
|
-
/**
|
|
2806
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2807
|
-
*/
|
|
2808
|
-
interval_count: number;
|
|
2809
|
-
}
|
|
2810
|
-
type Type = 'duration' | 'timestamp';
|
|
2811
|
-
namespace Duration {
|
|
2812
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
namespace Trial {
|
|
2817
|
-
type Type = 'free' | 'paid';
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
}
|
|
2821
|
-
namespace MetadataAction {
|
|
2822
|
-
type Type = 'add' | 'remove' | 'set';
|
|
2823
|
-
}
|
|
2824
|
-
namespace SetPauseCollection {
|
|
2825
|
-
interface Set {
|
|
2826
|
-
/**
|
|
2827
|
-
* The payment collection behavior for this subscription while paused.
|
|
2828
|
-
*/
|
|
2829
|
-
behavior: Set.Behavior;
|
|
2830
|
-
}
|
|
2831
|
-
type Type = 'remove' | 'set';
|
|
2832
|
-
namespace Set {
|
|
2833
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
namespace TrialSettings {
|
|
2837
|
-
interface EndBehavior {
|
|
2838
|
-
/**
|
|
2839
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2840
|
-
*/
|
|
2841
|
-
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2842
|
-
}
|
|
2843
|
-
namespace EndBehavior {
|
|
2844
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
2845
|
-
}
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
namespace Prebilling {
|
|
2849
|
-
interface BillFrom {
|
|
2850
|
-
/**
|
|
2851
|
-
* Start the prebilled period when a specified amendment begins.
|
|
2852
|
-
*/
|
|
2853
|
-
amendment_start?: BillFrom.AmendmentStart;
|
|
2854
|
-
/**
|
|
2855
|
-
* Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2856
|
-
*/
|
|
2857
|
-
timestamp?: number;
|
|
2858
|
-
/**
|
|
2859
|
-
* Select one of several ways to pass the `bill_from` value.
|
|
2860
|
-
*/
|
|
2861
|
-
type: BillFrom.Type;
|
|
2862
|
-
}
|
|
2863
|
-
interface BillUntil {
|
|
2864
|
-
/**
|
|
2865
|
-
* End the prebilled period when a specified amendment ends.
|
|
2866
|
-
*/
|
|
2867
|
-
amendment_end?: BillUntil.AmendmentEnd;
|
|
2868
|
-
/**
|
|
2869
|
-
* Time span for prebilling, starting from `bill_from`.
|
|
2870
|
-
*/
|
|
2871
|
-
duration?: BillUntil.Duration;
|
|
2872
|
-
/**
|
|
2873
|
-
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2874
|
-
*/
|
|
2875
|
-
timestamp?: number;
|
|
2876
|
-
/**
|
|
2877
|
-
* Select one of several ways to pass the `bill_until` value.
|
|
2878
|
-
*/
|
|
2879
|
-
type: BillUntil.Type;
|
|
2880
|
-
}
|
|
2881
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2882
|
-
namespace BillFrom {
|
|
2883
|
-
interface AmendmentStart {
|
|
2884
|
-
/**
|
|
2885
|
-
* The position of the amendment in the `amendments` array with which prebilling should begin. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
2886
|
-
*/
|
|
2887
|
-
index: number;
|
|
2888
|
-
}
|
|
2889
|
-
type Type = 'amendment_start' | 'now' | 'timestamp';
|
|
2890
|
-
}
|
|
2891
|
-
namespace BillUntil {
|
|
2892
|
-
interface AmendmentEnd {
|
|
2893
|
-
/**
|
|
2894
|
-
* The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
2895
|
-
*/
|
|
2896
|
-
index: number;
|
|
2897
|
-
}
|
|
2898
|
-
interface Duration {
|
|
2899
|
-
/**
|
|
2900
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2901
|
-
*/
|
|
2902
|
-
interval: Duration.Interval;
|
|
2903
|
-
/**
|
|
2904
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2905
|
-
*/
|
|
2906
|
-
interval_count: number;
|
|
2907
|
-
}
|
|
2908
|
-
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
|
|
2909
|
-
namespace Duration {
|
|
2910
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
namespace ScheduleSettings {
|
|
2915
|
-
type EndBehavior = 'cancel' | 'release';
|
|
2916
|
-
}
|
|
2917
|
-
}
|
|
2918
1767
|
export interface SubscriptionScheduleCancelParams {
|
|
2919
1768
|
/**
|
|
2920
1769
|
* Specifies which fields in the response should be expanded.
|