stripe 22.2.0-beta.3 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -1730
- package/OPENAPI_VERSION +1 -1
- package/README.md +65 -57
- 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 +1 -0
- package/cjs/RequestSender.js +10 -2
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/Types.d.ts +2 -4
- package/cjs/Types.js.map +1 -1
- package/cjs/apiVersion.d.ts +2 -1
- package/cjs/apiVersion.js +3 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/lib.d.ts +48 -3
- package/cjs/net/FetchHttpClient.js.map +1 -1
- package/cjs/net/HttpClient.js.map +1 -1
- package/cjs/platform/NodePlatformFunctions.d.ts +6 -0
- package/cjs/platform/NodePlatformFunctions.js +17 -0
- package/cjs/platform/NodePlatformFunctions.js.map +1 -1
- package/cjs/platform/PlatformFunctions.d.ts +13 -0
- package/cjs/platform/PlatformFunctions.js +21 -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 +45 -819
- package/cjs/resources/Accounts.js +0 -15
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/Apps/index.d.ts +4 -4
- package/cjs/resources/Balance.d.ts +0 -67
- package/cjs/resources/BalanceSettings.d.ts +86 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/cjs/resources/Billing/index.d.ts +24 -27
- package/cjs/resources/Billing/index.js +0 -2
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/BillingPortal/index.d.ts +5 -5
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Cards.d.ts +0 -4
- package/cjs/resources/Charges.d.ts +92 -3064
- package/cjs/resources/Checkout/Sessions.d.ts +51 -414
- package/cjs/resources/Checkout/index.d.ts +6 -6
- package/cjs/resources/Climate/index.d.ts +9 -9
- package/cjs/resources/ConfirmationTokens.d.ts +7 -67
- package/cjs/resources/Coupons.d.ts +0 -47
- package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
- package/cjs/resources/CreditNotes.d.ts +1 -7
- package/cjs/resources/CreditNotes.js +0 -14
- 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 +0 -15
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Discounts.d.ts +4 -4
- package/cjs/resources/Disputes.d.ts +0 -29
- package/cjs/resources/Entitlements/index.d.ts +6 -6
- package/cjs/resources/Events.d.ts +2 -547
- 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/FinancialConnections/Accounts.d.ts +4 -74
- package/cjs/resources/FinancialConnections/Accounts.js +0 -8
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Sessions.d.ts +7 -155
- package/cjs/resources/FinancialConnections/index.d.ts +13 -28
- package/cjs/resources/FinancialConnections/index.js +0 -4
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/Forwarding/index.d.ts +3 -3
- package/cjs/resources/Identity/index.d.ts +8 -8
- package/cjs/resources/InvoiceItems.d.ts +28 -85
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +2 -40
- package/cjs/resources/Invoices.d.ts +26 -1348
- package/cjs/resources/Invoices.js +0 -70
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +1 -2
- package/cjs/resources/Issuing/Disputes.d.ts +1 -1
- package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/cjs/resources/Issuing/Transactions.d.ts +0 -9
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +35 -60
- package/cjs/resources/Issuing/index.js +0 -6
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +2 -29
- package/cjs/resources/Mandates.d.ts +4 -33
- package/cjs/resources/Mandates.js +0 -8
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/OAuth.d.ts +7 -8
- package/cjs/resources/PaymentAttemptRecords.d.ts +23 -92
- package/cjs/resources/PaymentIntents.d.ts +6510 -17236
- package/cjs/resources/PaymentIntents.js +3 -28
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +88 -20
- package/cjs/resources/PaymentMethodConfigurations.d.ts +93 -299
- package/cjs/resources/PaymentMethods.d.ts +22 -152
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +23 -92
- package/cjs/resources/Payouts.d.ts +1 -1
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Plans.d.ts +0 -16
- package/cjs/resources/Prices.d.ts +0 -52
- package/cjs/resources/Products.d.ts +0 -42
- package/cjs/resources/PromotionCodes.d.ts +0 -12
- package/cjs/resources/PromotionCodes.js +0 -28
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/Quotes.d.ts +160 -2369
- package/cjs/resources/Quotes.js +13 -1181
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +2 -2
- package/cjs/resources/Radar/index.d.ts +12 -12
- package/cjs/resources/Refunds.d.ts +3 -11
- package/cjs/resources/Reporting/index.d.ts +5 -5
- package/cjs/resources/Reserve/Holds.d.ts +1 -53
- package/cjs/resources/Reserve/Holds.js +0 -19
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +0 -16
- package/cjs/resources/Reserve/Plans.js +0 -11
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +1 -41
- 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 +2 -10
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +3 -25
- package/cjs/resources/SetupIntents.d.ts +77 -336
- package/cjs/resources/Sigma/index.d.ts +2 -2
- package/cjs/resources/Sources.d.ts +1 -16
- package/cjs/resources/SubscriptionItems.d.ts +4 -165
- package/cjs/resources/SubscriptionSchedules.d.ts +16 -1174
- package/cjs/resources/SubscriptionSchedules.js +0 -48
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +32 -490
- package/cjs/resources/Subscriptions.js +2 -31
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +2 -6
- package/cjs/resources/Tax/Calculations.d.ts +3 -7
- package/cjs/resources/Tax/Registrations.d.ts +2 -138
- package/cjs/resources/Tax/Transactions.d.ts +2 -2
- package/cjs/resources/Tax/index.d.ts +17 -31
- 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/Terminal/Configurations.d.ts +108 -27
- package/cjs/resources/Terminal/Readers.d.ts +143 -19
- package/cjs/resources/Terminal/Readers.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +25 -30
- package/cjs/resources/Terminal/index.js +0 -2
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
- package/cjs/resources/TestHelpers/TestClocks.d.ts +4 -0
- 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 +5 -8
- package/cjs/resources/TestHelpers/index.js +4 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Transfers.d.ts +0 -8
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +1 -34
- package/cjs/resources/Treasury/OutboundPayments.d.ts +0 -8
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +0 -44
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +0 -22
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +0 -26
- package/cjs/resources/Treasury/index.d.ts +33 -33
- package/cjs/resources/V2/Billing/index.d.ts +6 -45
- 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/Core/AccountLinks.d.ts +4 -4
- package/cjs/resources/V2/Core/AccountTokens.d.ts +32 -14
- package/cjs/resources/V2/Core/AccountTokens.js +5 -1
- package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/cjs/resources/V2/Core/Accounts.d.ts +233 -1171
- package/cjs/resources/V2/Core/Accounts.js +1 -1
- package/cjs/resources/V2/Core/EventDestinations.d.ts +2 -2
- package/cjs/resources/V2/Core/Events.d.ts +8 -1126
- package/cjs/resources/V2/Core/Events.js +2 -1
- package/cjs/resources/V2/Core/Events.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +19 -29
- 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.d.ts +0 -10
- package/cjs/resources.js +10 -146
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +29 -69
- package/cjs/stripe.core.js +44 -61
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +0 -2
- package/cjs/utils.js +1 -16
- 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 +1 -0
- package/esm/RequestSender.js +11 -3
- package/esm/RequestSender.js.map +1 -1
- package/esm/Types.d.ts +2 -4
- package/esm/Types.js.map +1 -1
- package/esm/apiVersion.d.ts +2 -1
- package/esm/apiVersion.js +2 -1
- package/esm/apiVersion.js.map +1 -1
- package/esm/lib.d.ts +48 -3
- package/esm/net/FetchHttpClient.js.map +1 -1
- package/esm/net/HttpClient.js.map +1 -1
- package/esm/platform/NodePlatformFunctions.d.ts +6 -0
- package/esm/platform/NodePlatformFunctions.js +17 -0
- package/esm/platform/NodePlatformFunctions.js.map +1 -1
- package/esm/platform/PlatformFunctions.d.ts +13 -0
- package/esm/platform/PlatformFunctions.js +21 -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 +45 -819
- package/esm/resources/Accounts.js +0 -15
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/Apps/index.d.ts +4 -4
- package/esm/resources/Balance.d.ts +0 -67
- package/esm/resources/BalanceSettings.d.ts +86 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/esm/resources/Billing/index.d.ts +24 -27
- package/esm/resources/Billing/index.js +0 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/BillingPortal/index.d.ts +5 -5
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Cards.d.ts +0 -4
- package/esm/resources/Charges.d.ts +92 -3064
- package/esm/resources/Checkout/Sessions.d.ts +51 -414
- package/esm/resources/Checkout/index.d.ts +6 -6
- package/esm/resources/Climate/index.d.ts +9 -9
- package/esm/resources/ConfirmationTokens.d.ts +7 -67
- package/esm/resources/Coupons.d.ts +0 -47
- package/esm/resources/CreditNoteLineItems.d.ts +1 -15
- package/esm/resources/CreditNotes.d.ts +1 -7
- package/esm/resources/CreditNotes.js +0 -14
- 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 +0 -15
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Discounts.d.ts +4 -4
- package/esm/resources/Disputes.d.ts +0 -29
- package/esm/resources/Entitlements/index.d.ts +6 -6
- package/esm/resources/Events.d.ts +2 -547
- 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/FinancialConnections/Accounts.d.ts +4 -74
- package/esm/resources/FinancialConnections/Accounts.js +0 -8
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Sessions.d.ts +7 -155
- package/esm/resources/FinancialConnections/index.d.ts +13 -28
- package/esm/resources/FinancialConnections/index.js +0 -4
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/Forwarding/index.d.ts +3 -3
- package/esm/resources/Identity/index.d.ts +8 -8
- package/esm/resources/InvoiceItems.d.ts +28 -85
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +2 -40
- package/esm/resources/Invoices.d.ts +26 -1348
- package/esm/resources/Invoices.js +0 -70
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +1 -2
- package/esm/resources/Issuing/Disputes.d.ts +1 -1
- package/esm/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/esm/resources/Issuing/Transactions.d.ts +0 -9
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +35 -60
- package/esm/resources/Issuing/index.js +0 -6
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +2 -29
- package/esm/resources/Mandates.d.ts +4 -33
- package/esm/resources/Mandates.js +0 -8
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/OAuth.d.ts +7 -8
- package/esm/resources/PaymentAttemptRecords.d.ts +23 -92
- package/esm/resources/PaymentIntents.d.ts +6510 -17236
- package/esm/resources/PaymentIntents.js +3 -28
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +88 -20
- package/esm/resources/PaymentMethodConfigurations.d.ts +93 -299
- package/esm/resources/PaymentMethods.d.ts +22 -152
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +23 -92
- package/esm/resources/Payouts.d.ts +1 -1
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Plans.d.ts +0 -16
- package/esm/resources/Prices.d.ts +0 -52
- package/esm/resources/Products.d.ts +0 -42
- package/esm/resources/PromotionCodes.d.ts +0 -12
- package/esm/resources/PromotionCodes.js +0 -28
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/Quotes.d.ts +160 -2369
- package/esm/resources/Quotes.js +13 -1181
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +2 -2
- package/esm/resources/Radar/index.d.ts +12 -12
- package/esm/resources/Refunds.d.ts +3 -11
- package/esm/resources/Reporting/index.d.ts +5 -5
- package/esm/resources/Reserve/Holds.d.ts +1 -53
- package/esm/resources/Reserve/Holds.js +1 -17
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +0 -16
- package/esm/resources/Reserve/Plans.js +1 -9
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +1 -41
- 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 +2 -10
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +3 -25
- package/esm/resources/SetupIntents.d.ts +77 -336
- package/esm/resources/Sigma/index.d.ts +2 -2
- package/esm/resources/Sources.d.ts +1 -16
- package/esm/resources/SubscriptionItems.d.ts +4 -165
- package/esm/resources/SubscriptionSchedules.d.ts +16 -1174
- package/esm/resources/SubscriptionSchedules.js +0 -48
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +32 -490
- package/esm/resources/Subscriptions.js +2 -31
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +2 -6
- package/esm/resources/Tax/Calculations.d.ts +3 -7
- package/esm/resources/Tax/Registrations.d.ts +2 -138
- package/esm/resources/Tax/Transactions.d.ts +2 -2
- package/esm/resources/Tax/index.d.ts +17 -31
- 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/Terminal/Configurations.d.ts +108 -27
- package/esm/resources/Terminal/Readers.d.ts +143 -19
- package/esm/resources/Terminal/Readers.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +25 -30
- package/esm/resources/Terminal/index.js +0 -2
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
- package/esm/resources/TestHelpers/TestClocks.d.ts +4 -0
- 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 +5 -8
- package/esm/resources/TestHelpers/index.js +0 -2
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Transfers.d.ts +0 -8
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
- package/esm/resources/Treasury/FinancialAccounts.d.ts +1 -34
- package/esm/resources/Treasury/OutboundPayments.d.ts +0 -8
- package/esm/resources/Treasury/OutboundTransfers.d.ts +0 -44
- package/esm/resources/Treasury/ReceivedCredits.d.ts +0 -22
- package/esm/resources/Treasury/ReceivedDebits.d.ts +0 -26
- package/esm/resources/Treasury/index.d.ts +33 -33
- package/esm/resources/V2/Billing/index.d.ts +6 -45
- 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/Core/AccountLinks.d.ts +4 -4
- package/esm/resources/V2/Core/AccountTokens.d.ts +32 -14
- package/esm/resources/V2/Core/AccountTokens.js +5 -1
- package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/esm/resources/V2/Core/Accounts.d.ts +233 -1171
- package/esm/resources/V2/Core/Accounts.js +1 -1
- package/esm/resources/V2/Core/EventDestinations.d.ts +2 -2
- package/esm/resources/V2/Core/Events.d.ts +8 -1126
- package/esm/resources/V2/Core/Events.js +2 -1
- package/esm/resources/V2/Core/Events.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +19 -29
- 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.d.ts +0 -10
- package/esm/resources.js +0 -131
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +29 -69
- package/esm/stripe.core.js +15 -32
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +29 -70
- package/esm/stripe.esm.node.js +15 -32
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +0 -2
- package/esm/utils.js +0 -13
- package/esm/utils.js.map +1 -1
- package/package.json +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +0 -22
- package/cjs/StripeEventNotificationHandler.js +0 -147
- 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 -1116
- package/cjs/resources/QuotePreviewInvoices.js +0 -4
- package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
- 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 -204
- package/cjs/resources/V2/Iam/ActivityLogs.js +0 -17
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/cjs/resources/V2/Iam/index.d.ts +0 -12
- 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 -299
- 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 -292
- 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 -22
- package/esm/StripeEventNotificationHandler.js +0 -143
- 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 -1116
- package/esm/resources/QuotePreviewInvoices.js +0 -3
- package/esm/resources/QuotePreviewInvoices.js.map +0 -1
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
- 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 -204
- package/esm/resources/V2/Iam/ActivityLogs.js +0 -13
- package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/esm/resources/V2/Iam/index.d.ts +0 -12
- 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 -299
- 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 -292
- 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
|
@@ -17,7 +17,7 @@ import { Emptyable, MetadataParam, Decimal, PaginationParams, RangeQueryParam, M
|
|
|
17
17
|
import { RequestOptions, Response, ApiListPromise, ApiList, ApiSearchResultPromise } from '../lib.js';
|
|
18
18
|
export declare class SubscriptionResource extends StripeResource {
|
|
19
19
|
/**
|
|
20
|
-
* Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled,
|
|
20
|
+
* Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details.
|
|
21
21
|
*
|
|
22
22
|
* Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
|
23
23
|
*
|
|
@@ -82,17 +82,9 @@ export declare class SubscriptionResource extends StripeResource {
|
|
|
82
82
|
*/
|
|
83
83
|
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
84
84
|
/**
|
|
85
|
-
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If
|
|
85
|
+
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions).
|
|
86
86
|
*/
|
|
87
87
|
resume(id: string, params?: SubscriptionResumeParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
88
|
-
serializeBatchUpdate(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
|
|
89
|
-
apiVersion?: string;
|
|
90
|
-
stripeContext?: string;
|
|
91
|
-
}): string;
|
|
92
|
-
serializeBatchMigrate(subscription: string, params?: Record<string, unknown>, options?: {
|
|
93
|
-
apiVersion?: string;
|
|
94
|
-
stripeContext?: string;
|
|
95
|
-
}): string;
|
|
96
88
|
}
|
|
97
89
|
export interface Subscription {
|
|
98
90
|
/**
|
|
@@ -127,7 +119,7 @@ export interface Subscription {
|
|
|
127
119
|
/**
|
|
128
120
|
* Billing schedules for this subscription.
|
|
129
121
|
*/
|
|
130
|
-
billing_schedules
|
|
122
|
+
billing_schedules: Array<Subscription.BillingSchedule>;
|
|
131
123
|
/**
|
|
132
124
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
133
125
|
*/
|
|
@@ -201,10 +193,6 @@ export interface Subscription {
|
|
|
201
193
|
* List of subscription items, each with an attached price.
|
|
202
194
|
*/
|
|
203
195
|
items: ApiList<SubscriptionItem>;
|
|
204
|
-
/**
|
|
205
|
-
* Details of the most recent price migration that failed for the subscription.
|
|
206
|
-
*/
|
|
207
|
-
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
|
|
208
196
|
/**
|
|
209
197
|
* The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
|
|
210
198
|
*/
|
|
@@ -249,10 +237,6 @@ export interface Subscription {
|
|
|
249
237
|
* If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
250
238
|
*/
|
|
251
239
|
pending_update: Subscription.PendingUpdate | null;
|
|
252
|
-
/**
|
|
253
|
-
* Time period and invoice for a Subscription billed in advance.
|
|
254
|
-
*/
|
|
255
|
-
prebilling?: Subscription.Prebilling | null;
|
|
256
240
|
presentment_details?: Subscription.PresentmentDetails;
|
|
257
241
|
/**
|
|
258
242
|
* The schedule attached to the subscription
|
|
@@ -394,20 +378,6 @@ export declare namespace Subscription {
|
|
|
394
378
|
account_tax_ids: Array<string | TaxId | DeletedTaxId> | null;
|
|
395
379
|
issuer: InvoiceSettings.Issuer;
|
|
396
380
|
}
|
|
397
|
-
interface LastPriceMigrationError {
|
|
398
|
-
/**
|
|
399
|
-
* The time at which the price migration encountered an error.
|
|
400
|
-
*/
|
|
401
|
-
errored_at: number;
|
|
402
|
-
/**
|
|
403
|
-
* The involved price pairs in each failed transition.
|
|
404
|
-
*/
|
|
405
|
-
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
406
|
-
/**
|
|
407
|
-
* The type of error encountered by the price migration.
|
|
408
|
-
*/
|
|
409
|
-
type: 'price_uniqueness_violation';
|
|
410
|
-
}
|
|
411
381
|
interface ManagedPayments {
|
|
412
382
|
/**
|
|
413
383
|
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
|
|
@@ -453,14 +423,22 @@ export declare namespace Subscription {
|
|
|
453
423
|
* If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
|
|
454
424
|
*/
|
|
455
425
|
billing_cycle_anchor: number | null;
|
|
426
|
+
/**
|
|
427
|
+
* The pending subscription-level discount that will be applied when the pending update is applied.
|
|
428
|
+
*/
|
|
429
|
+
discount: Discount | null;
|
|
430
|
+
/**
|
|
431
|
+
* The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount.
|
|
432
|
+
*/
|
|
433
|
+
discounts: Array<string | Discount> | null;
|
|
456
434
|
/**
|
|
457
435
|
* The point after which the changes reflected by this update will be discarded and no longer applied.
|
|
458
436
|
*/
|
|
459
437
|
expires_at: number;
|
|
460
438
|
/**
|
|
461
|
-
*
|
|
439
|
+
* 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.
|
|
462
440
|
*/
|
|
463
|
-
|
|
441
|
+
metadata: Metadata | null;
|
|
464
442
|
/**
|
|
465
443
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
466
444
|
*/
|
|
@@ -474,24 +452,6 @@ export declare namespace Subscription {
|
|
|
474
452
|
*/
|
|
475
453
|
trial_from_plan: boolean | null;
|
|
476
454
|
}
|
|
477
|
-
interface Prebilling {
|
|
478
|
-
/**
|
|
479
|
-
* ID of the prebilling invoice.
|
|
480
|
-
*/
|
|
481
|
-
invoice: string | Invoice;
|
|
482
|
-
/**
|
|
483
|
-
* The end of the last period for which the invoice pre-bills.
|
|
484
|
-
*/
|
|
485
|
-
period_end: number;
|
|
486
|
-
/**
|
|
487
|
-
* The start of the first period for which the invoice pre-bills.
|
|
488
|
-
*/
|
|
489
|
-
period_start: number;
|
|
490
|
-
/**
|
|
491
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
492
|
-
*/
|
|
493
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
494
|
-
}
|
|
495
455
|
interface PresentmentDetails {
|
|
496
456
|
/**
|
|
497
457
|
* Currency used for customer payments.
|
|
@@ -607,18 +567,6 @@ export declare namespace Subscription {
|
|
|
607
567
|
type Type = 'account' | 'self';
|
|
608
568
|
}
|
|
609
569
|
}
|
|
610
|
-
namespace LastPriceMigrationError {
|
|
611
|
-
interface FailedTransition {
|
|
612
|
-
/**
|
|
613
|
-
* The original price to be migrated.
|
|
614
|
-
*/
|
|
615
|
-
source_price: string;
|
|
616
|
-
/**
|
|
617
|
-
* The intended resulting price of the migration.
|
|
618
|
-
*/
|
|
619
|
-
target_price: string;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
570
|
namespace PauseCollection {
|
|
623
571
|
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
624
572
|
}
|
|
@@ -632,10 +580,6 @@ export declare namespace Subscription {
|
|
|
632
580
|
* This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
|
|
633
581
|
*/
|
|
634
582
|
bancontact: PaymentMethodOptions.Bancontact | null;
|
|
635
|
-
/**
|
|
636
|
-
* This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription.
|
|
637
|
-
*/
|
|
638
|
-
blik?: PaymentMethodOptions.Blik | null;
|
|
639
583
|
/**
|
|
640
584
|
* This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
|
|
641
585
|
*/
|
|
@@ -644,10 +588,6 @@ export declare namespace Subscription {
|
|
|
644
588
|
* This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
|
645
589
|
*/
|
|
646
590
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
647
|
-
/**
|
|
648
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
649
|
-
*/
|
|
650
|
-
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
651
591
|
/**
|
|
652
592
|
* This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
653
593
|
*/
|
|
@@ -673,7 +613,7 @@ export declare namespace Subscription {
|
|
|
673
613
|
*/
|
|
674
614
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
675
615
|
}
|
|
676
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | '
|
|
616
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
677
617
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
678
618
|
namespace PaymentMethodOptions {
|
|
679
619
|
interface AcssDebit {
|
|
@@ -689,9 +629,6 @@ export declare namespace Subscription {
|
|
|
689
629
|
*/
|
|
690
630
|
preferred_language: Bancontact.PreferredLanguage;
|
|
691
631
|
}
|
|
692
|
-
interface Blik {
|
|
693
|
-
mandate_options?: Blik.MandateOptions;
|
|
694
|
-
}
|
|
695
632
|
interface Card {
|
|
696
633
|
mandate_options?: Card.MandateOptions;
|
|
697
634
|
/**
|
|
@@ -710,8 +647,6 @@ export declare namespace Subscription {
|
|
|
710
647
|
*/
|
|
711
648
|
funding_type: 'bank_transfer' | null;
|
|
712
649
|
}
|
|
713
|
-
interface IdBankTransfer {
|
|
714
|
-
}
|
|
715
650
|
interface Konbini {
|
|
716
651
|
}
|
|
717
652
|
interface Payto {
|
|
@@ -751,14 +686,6 @@ export declare namespace Subscription {
|
|
|
751
686
|
namespace Bancontact {
|
|
752
687
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
753
688
|
}
|
|
754
|
-
namespace Blik {
|
|
755
|
-
interface MandateOptions {
|
|
756
|
-
/**
|
|
757
|
-
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
758
|
-
*/
|
|
759
|
-
expires_after: number | null;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
689
|
namespace Card {
|
|
763
690
|
interface MandateOptions {
|
|
764
691
|
/**
|
|
@@ -886,13 +813,9 @@ export declare namespace Subscription {
|
|
|
886
813
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
887
814
|
*/
|
|
888
815
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
889
|
-
/**
|
|
890
|
-
* The institution to use to filter for possible accounts to link.
|
|
891
|
-
*/
|
|
892
|
-
institution?: string;
|
|
893
816
|
}
|
|
894
817
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
895
|
-
type Prefetch = 'balances' | '
|
|
818
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
896
819
|
namespace Filters {
|
|
897
820
|
type AccountSubcategory = 'checking' | 'savings';
|
|
898
821
|
}
|
|
@@ -903,22 +826,14 @@ export declare namespace Subscription {
|
|
|
903
826
|
namespace PendingInvoiceItemInterval {
|
|
904
827
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
905
828
|
}
|
|
906
|
-
namespace Prebilling {
|
|
907
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
908
|
-
}
|
|
909
829
|
namespace TrialSettings {
|
|
910
830
|
interface EndBehavior {
|
|
911
|
-
/**
|
|
912
|
-
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`.
|
|
913
|
-
*/
|
|
914
|
-
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor | null;
|
|
915
831
|
/**
|
|
916
832
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
917
833
|
*/
|
|
918
834
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
919
835
|
}
|
|
920
836
|
namespace EndBehavior {
|
|
921
|
-
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
922
837
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
923
838
|
}
|
|
924
839
|
}
|
|
@@ -1033,17 +948,7 @@ export interface SubscriptionCreateParams {
|
|
|
1033
948
|
*/
|
|
1034
949
|
on_behalf_of?: Emptyable<string>;
|
|
1035
950
|
/**
|
|
1036
|
-
*
|
|
1037
|
-
*
|
|
1038
|
-
* Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
|
|
1039
|
-
*
|
|
1040
|
-
* Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state.
|
|
1041
|
-
*
|
|
1042
|
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more.
|
|
1043
|
-
*
|
|
1044
|
-
* `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription.
|
|
1045
|
-
*
|
|
1046
|
-
* Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
|
951
|
+
* Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
|
1047
952
|
*/
|
|
1048
953
|
payment_behavior?: SubscriptionCreateParams.PaymentBehavior;
|
|
1049
954
|
/**
|
|
@@ -1054,10 +959,6 @@ export interface SubscriptionCreateParams {
|
|
|
1054
959
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
1055
960
|
*/
|
|
1056
961
|
pending_invoice_item_interval?: Emptyable<SubscriptionCreateParams.PendingInvoiceItemInterval>;
|
|
1057
|
-
/**
|
|
1058
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1059
|
-
*/
|
|
1060
|
-
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
1061
962
|
/**
|
|
1062
963
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
|
1063
964
|
*/
|
|
@@ -1085,6 +986,10 @@ export interface SubscriptionCreateParams {
|
|
|
1085
986
|
}
|
|
1086
987
|
export declare namespace SubscriptionCreateParams {
|
|
1087
988
|
interface AddInvoiceItem {
|
|
989
|
+
/**
|
|
990
|
+
* Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
991
|
+
*/
|
|
992
|
+
discountable?: boolean;
|
|
1088
993
|
/**
|
|
1089
994
|
* The coupons to redeem into discounts for the item.
|
|
1090
995
|
*/
|
|
@@ -1180,7 +1085,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1180
1085
|
*/
|
|
1181
1086
|
reset_billing_cycle_anchor?: boolean;
|
|
1182
1087
|
}
|
|
1183
|
-
type CancelAt = 'max_period_end' | 'min_period_end';
|
|
1088
|
+
type CancelAt = 'max_billed_until' | 'max_period_end' | 'min_period_end';
|
|
1184
1089
|
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
1185
1090
|
interface Discount {
|
|
1186
1091
|
/**
|
|
@@ -1191,10 +1096,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1191
1096
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1192
1097
|
*/
|
|
1193
1098
|
discount?: string;
|
|
1194
|
-
/**
|
|
1195
|
-
* Details to determine how long the discount should be applied for.
|
|
1196
|
-
*/
|
|
1197
|
-
discount_end?: Discount.DiscountEnd;
|
|
1198
1099
|
/**
|
|
1199
1100
|
* ID of the promotion code to create a new discount for.
|
|
1200
1101
|
*/
|
|
@@ -1215,10 +1116,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1215
1116
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1216
1117
|
*/
|
|
1217
1118
|
billing_thresholds?: Emptyable<Item.BillingThresholds>;
|
|
1218
|
-
/**
|
|
1219
|
-
* The trial offer to apply to this subscription item.
|
|
1220
|
-
*/
|
|
1221
|
-
current_trial?: Item.CurrentTrial;
|
|
1222
1119
|
/**
|
|
1223
1120
|
* The coupons to redeem into discounts for the subscription item.
|
|
1224
1121
|
*/
|
|
@@ -1247,10 +1144,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1247
1144
|
* 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.
|
|
1248
1145
|
*/
|
|
1249
1146
|
tax_rates?: Emptyable<Array<string>>;
|
|
1250
|
-
/**
|
|
1251
|
-
* Define options to configure the trial on the subscription item.
|
|
1252
|
-
*/
|
|
1253
|
-
trial?: Item.Trial;
|
|
1254
1147
|
}
|
|
1255
1148
|
type PaymentBehavior = 'allow_incomplete' | 'default_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete';
|
|
1256
1149
|
interface PaymentSettings {
|
|
@@ -1277,16 +1170,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1277
1170
|
*/
|
|
1278
1171
|
interval_count?: number;
|
|
1279
1172
|
}
|
|
1280
|
-
interface Prebilling {
|
|
1281
|
-
/**
|
|
1282
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
1283
|
-
*/
|
|
1284
|
-
iterations: number;
|
|
1285
|
-
/**
|
|
1286
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1287
|
-
*/
|
|
1288
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1289
|
-
}
|
|
1290
1173
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1291
1174
|
interface TransferData {
|
|
1292
1175
|
/**
|
|
@@ -1314,10 +1197,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1314
1197
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1315
1198
|
*/
|
|
1316
1199
|
discount?: string;
|
|
1317
|
-
/**
|
|
1318
|
-
* Details to determine how long the discount should be applied for.
|
|
1319
|
-
*/
|
|
1320
|
-
discount_end?: Discount.DiscountEnd;
|
|
1321
1200
|
/**
|
|
1322
1201
|
* ID of the promotion code to create a new discount for.
|
|
1323
1202
|
*/
|
|
@@ -1355,38 +1234,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1355
1234
|
*/
|
|
1356
1235
|
unit_amount_decimal?: Decimal;
|
|
1357
1236
|
}
|
|
1358
|
-
namespace Discount {
|
|
1359
|
-
interface DiscountEnd {
|
|
1360
|
-
/**
|
|
1361
|
-
* Time span for the redeemed discount.
|
|
1362
|
-
*/
|
|
1363
|
-
duration?: DiscountEnd.Duration;
|
|
1364
|
-
/**
|
|
1365
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1366
|
-
*/
|
|
1367
|
-
timestamp?: number;
|
|
1368
|
-
/**
|
|
1369
|
-
* The type of calculation made to determine when the discount ends.
|
|
1370
|
-
*/
|
|
1371
|
-
type: DiscountEnd.Type;
|
|
1372
|
-
}
|
|
1373
|
-
namespace DiscountEnd {
|
|
1374
|
-
interface Duration {
|
|
1375
|
-
/**
|
|
1376
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1377
|
-
*/
|
|
1378
|
-
interval: Duration.Interval;
|
|
1379
|
-
/**
|
|
1380
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1381
|
-
*/
|
|
1382
|
-
interval_count: number;
|
|
1383
|
-
}
|
|
1384
|
-
type Type = 'duration' | 'timestamp';
|
|
1385
|
-
namespace Duration {
|
|
1386
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
1237
|
namespace Period {
|
|
1391
1238
|
interface End {
|
|
1392
1239
|
/**
|
|
@@ -1488,38 +1335,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1488
1335
|
}
|
|
1489
1336
|
}
|
|
1490
1337
|
}
|
|
1491
|
-
namespace Discount {
|
|
1492
|
-
interface DiscountEnd {
|
|
1493
|
-
/**
|
|
1494
|
-
* Time span for the redeemed discount.
|
|
1495
|
-
*/
|
|
1496
|
-
duration?: DiscountEnd.Duration;
|
|
1497
|
-
/**
|
|
1498
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1499
|
-
*/
|
|
1500
|
-
timestamp?: number;
|
|
1501
|
-
/**
|
|
1502
|
-
* The type of calculation made to determine when the discount ends.
|
|
1503
|
-
*/
|
|
1504
|
-
type: DiscountEnd.Type;
|
|
1505
|
-
}
|
|
1506
|
-
namespace DiscountEnd {
|
|
1507
|
-
interface Duration {
|
|
1508
|
-
/**
|
|
1509
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1510
|
-
*/
|
|
1511
|
-
interval: Duration.Interval;
|
|
1512
|
-
/**
|
|
1513
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1514
|
-
*/
|
|
1515
|
-
interval_count: number;
|
|
1516
|
-
}
|
|
1517
|
-
type Type = 'duration' | 'timestamp';
|
|
1518
|
-
namespace Duration {
|
|
1519
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
1338
|
namespace InvoiceSettings {
|
|
1524
1339
|
interface Issuer {
|
|
1525
1340
|
/**
|
|
@@ -1542,16 +1357,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1542
1357
|
*/
|
|
1543
1358
|
usage_gte: number;
|
|
1544
1359
|
}
|
|
1545
|
-
interface CurrentTrial {
|
|
1546
|
-
/**
|
|
1547
|
-
* Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
1548
|
-
*/
|
|
1549
|
-
trial_end?: number;
|
|
1550
|
-
/**
|
|
1551
|
-
* The ID of the trial offer to apply to the subscription item.
|
|
1552
|
-
*/
|
|
1553
|
-
trial_offer: string;
|
|
1554
|
-
}
|
|
1555
1360
|
interface Discount {
|
|
1556
1361
|
/**
|
|
1557
1362
|
* ID of the coupon to create a new discount for.
|
|
@@ -1561,10 +1366,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1561
1366
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1562
1367
|
*/
|
|
1563
1368
|
discount?: string;
|
|
1564
|
-
/**
|
|
1565
|
-
* Details to determine how long the discount should be applied for.
|
|
1566
|
-
*/
|
|
1567
|
-
discount_end?: Discount.DiscountEnd;
|
|
1568
1369
|
/**
|
|
1569
1370
|
* ID of the promotion code to create a new discount for.
|
|
1570
1371
|
*/
|
|
@@ -1596,48 +1397,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1596
1397
|
*/
|
|
1597
1398
|
unit_amount_decimal?: Decimal;
|
|
1598
1399
|
}
|
|
1599
|
-
interface Trial {
|
|
1600
|
-
/**
|
|
1601
|
-
* 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.
|
|
1602
|
-
*/
|
|
1603
|
-
converts_to?: Array<string>;
|
|
1604
|
-
/**
|
|
1605
|
-
* Determines the type of trial for this item.
|
|
1606
|
-
*/
|
|
1607
|
-
type: Trial.Type;
|
|
1608
|
-
}
|
|
1609
|
-
namespace Discount {
|
|
1610
|
-
interface DiscountEnd {
|
|
1611
|
-
/**
|
|
1612
|
-
* Time span for the redeemed discount.
|
|
1613
|
-
*/
|
|
1614
|
-
duration?: DiscountEnd.Duration;
|
|
1615
|
-
/**
|
|
1616
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1617
|
-
*/
|
|
1618
|
-
timestamp?: number;
|
|
1619
|
-
/**
|
|
1620
|
-
* The type of calculation made to determine when the discount ends.
|
|
1621
|
-
*/
|
|
1622
|
-
type: DiscountEnd.Type;
|
|
1623
|
-
}
|
|
1624
|
-
namespace DiscountEnd {
|
|
1625
|
-
interface Duration {
|
|
1626
|
-
/**
|
|
1627
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1628
|
-
*/
|
|
1629
|
-
interval: Duration.Interval;
|
|
1630
|
-
/**
|
|
1631
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1632
|
-
*/
|
|
1633
|
-
interval_count: number;
|
|
1634
|
-
}
|
|
1635
|
-
type Type = 'duration' | 'timestamp';
|
|
1636
|
-
namespace Duration {
|
|
1637
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
1400
|
namespace PriceData {
|
|
1642
1401
|
interface Recurring {
|
|
1643
1402
|
/**
|
|
@@ -1654,9 +1413,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1654
1413
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1655
1414
|
}
|
|
1656
1415
|
}
|
|
1657
|
-
namespace Trial {
|
|
1658
|
-
type Type = 'free' | 'paid';
|
|
1659
|
-
}
|
|
1660
1416
|
}
|
|
1661
1417
|
namespace PaymentSettings {
|
|
1662
1418
|
interface PaymentMethodOptions {
|
|
@@ -1668,10 +1424,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1668
1424
|
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1669
1425
|
*/
|
|
1670
1426
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
1671
|
-
/**
|
|
1672
|
-
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1673
|
-
*/
|
|
1674
|
-
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
1675
1427
|
/**
|
|
1676
1428
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1677
1429
|
*/
|
|
@@ -1680,10 +1432,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1680
1432
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1681
1433
|
*/
|
|
1682
1434
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1683
|
-
/**
|
|
1684
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1685
|
-
*/
|
|
1686
|
-
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1687
1435
|
/**
|
|
1688
1436
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1689
1437
|
*/
|
|
@@ -1709,7 +1457,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1709
1457
|
*/
|
|
1710
1458
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1711
1459
|
}
|
|
1712
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | '
|
|
1460
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1713
1461
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
1714
1462
|
namespace PaymentMethodOptions {
|
|
1715
1463
|
interface AcssDebit {
|
|
@@ -1728,12 +1476,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1728
1476
|
*/
|
|
1729
1477
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
1730
1478
|
}
|
|
1731
|
-
interface Blik {
|
|
1732
|
-
/**
|
|
1733
|
-
* Configuration options for setting up a mandate
|
|
1734
|
-
*/
|
|
1735
|
-
mandate_options?: Blik.MandateOptions;
|
|
1736
|
-
}
|
|
1737
1479
|
interface Card {
|
|
1738
1480
|
/**
|
|
1739
1481
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -1758,8 +1500,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1758
1500
|
*/
|
|
1759
1501
|
funding_type?: string;
|
|
1760
1502
|
}
|
|
1761
|
-
interface IdBankTransfer {
|
|
1762
|
-
}
|
|
1763
1503
|
interface Konbini {
|
|
1764
1504
|
}
|
|
1765
1505
|
interface Payto {
|
|
@@ -1811,14 +1551,6 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1811
1551
|
namespace Bancontact {
|
|
1812
1552
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
1813
1553
|
}
|
|
1814
|
-
namespace Blik {
|
|
1815
|
-
interface MandateOptions {
|
|
1816
|
-
/**
|
|
1817
|
-
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
1818
|
-
*/
|
|
1819
|
-
expires_after?: number;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
1554
|
namespace Card {
|
|
1823
1555
|
interface MandateOptions {
|
|
1824
1556
|
/**
|
|
@@ -1944,13 +1676,9 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1944
1676
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1945
1677
|
*/
|
|
1946
1678
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1947
|
-
/**
|
|
1948
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1949
|
-
*/
|
|
1950
|
-
institution?: string;
|
|
1951
1679
|
}
|
|
1952
1680
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1953
|
-
type Prefetch = 'balances' | '
|
|
1681
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1954
1682
|
namespace Filters {
|
|
1955
1683
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1956
1684
|
}
|
|
@@ -1961,22 +1689,14 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1961
1689
|
namespace PendingInvoiceItemInterval {
|
|
1962
1690
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1963
1691
|
}
|
|
1964
|
-
namespace Prebilling {
|
|
1965
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
1966
|
-
}
|
|
1967
1692
|
namespace TrialSettings {
|
|
1968
1693
|
interface EndBehavior {
|
|
1969
|
-
/**
|
|
1970
|
-
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
1971
|
-
*/
|
|
1972
|
-
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
1973
1694
|
/**
|
|
1974
1695
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
1975
1696
|
*/
|
|
1976
1697
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
1977
1698
|
}
|
|
1978
1699
|
namespace EndBehavior {
|
|
1979
|
-
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
1980
1700
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
1981
1701
|
}
|
|
1982
1702
|
}
|
|
@@ -2049,7 +1769,7 @@ export interface SubscriptionUpdateParams {
|
|
|
2049
1769
|
*/
|
|
2050
1770
|
description?: Emptyable<string>;
|
|
2051
1771
|
/**
|
|
2052
|
-
* The coupons to redeem into discounts for the subscription. If not specified or empty,
|
|
1772
|
+
* The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts.
|
|
2053
1773
|
*/
|
|
2054
1774
|
discounts?: Emptyable<Array<SubscriptionUpdateParams.Discount>>;
|
|
2055
1775
|
/**
|
|
@@ -2081,13 +1801,7 @@ export interface SubscriptionUpdateParams {
|
|
|
2081
1801
|
*/
|
|
2082
1802
|
pause_collection?: Emptyable<SubscriptionUpdateParams.PauseCollection>;
|
|
2083
1803
|
/**
|
|
2084
|
-
*
|
|
2085
|
-
*
|
|
2086
|
-
* Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
|
2087
|
-
*
|
|
2088
|
-
* Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).
|
|
2089
|
-
*
|
|
2090
|
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
|
1804
|
+
* Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
|
|
2091
1805
|
*/
|
|
2092
1806
|
payment_behavior?: SubscriptionUpdateParams.PaymentBehavior;
|
|
2093
1807
|
/**
|
|
@@ -2098,10 +1812,6 @@ export interface SubscriptionUpdateParams {
|
|
|
2098
1812
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
2099
1813
|
*/
|
|
2100
1814
|
pending_invoice_item_interval?: Emptyable<SubscriptionUpdateParams.PendingInvoiceItemInterval>;
|
|
2101
|
-
/**
|
|
2102
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
2103
|
-
*/
|
|
2104
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
2105
1815
|
/**
|
|
2106
1816
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
2107
1817
|
*/
|
|
@@ -2129,6 +1839,10 @@ export interface SubscriptionUpdateParams {
|
|
|
2129
1839
|
}
|
|
2130
1840
|
export declare namespace SubscriptionUpdateParams {
|
|
2131
1841
|
interface AddInvoiceItem {
|
|
1842
|
+
/**
|
|
1843
|
+
* Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
1844
|
+
*/
|
|
1845
|
+
discountable?: boolean;
|
|
2132
1846
|
/**
|
|
2133
1847
|
* The coupons to redeem into discounts for the item.
|
|
2134
1848
|
*/
|
|
@@ -2193,7 +1907,7 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2193
1907
|
*/
|
|
2194
1908
|
reset_billing_cycle_anchor?: boolean;
|
|
2195
1909
|
}
|
|
2196
|
-
type CancelAt = 'max_period_end' | 'min_period_end';
|
|
1910
|
+
type CancelAt = 'max_billed_until' | 'max_period_end' | 'min_period_end';
|
|
2197
1911
|
interface CancellationDetails {
|
|
2198
1912
|
/**
|
|
2199
1913
|
* Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
|
|
@@ -2214,10 +1928,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2214
1928
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2215
1929
|
*/
|
|
2216
1930
|
discount?: string;
|
|
2217
|
-
/**
|
|
2218
|
-
* Details to determine how long the discount should be applied for.
|
|
2219
|
-
*/
|
|
2220
|
-
discount_end?: Discount.DiscountEnd;
|
|
2221
1931
|
/**
|
|
2222
1932
|
* ID of the promotion code to create a new discount for.
|
|
2223
1933
|
*/
|
|
@@ -2242,10 +1952,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2242
1952
|
* Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
2243
1953
|
*/
|
|
2244
1954
|
clear_usage?: boolean;
|
|
2245
|
-
/**
|
|
2246
|
-
* The trial offer to apply to this subscription item.
|
|
2247
|
-
*/
|
|
2248
|
-
current_trial?: Item.CurrentTrial;
|
|
2249
1955
|
/**
|
|
2250
1956
|
* A flag that, if set to `true`, will delete the specified item.
|
|
2251
1957
|
*/
|
|
@@ -2318,16 +2024,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2318
2024
|
*/
|
|
2319
2025
|
interval_count?: number;
|
|
2320
2026
|
}
|
|
2321
|
-
interface Prebilling {
|
|
2322
|
-
/**
|
|
2323
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
2324
|
-
*/
|
|
2325
|
-
iterations: number;
|
|
2326
|
-
/**
|
|
2327
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2328
|
-
*/
|
|
2329
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
2330
|
-
}
|
|
2331
2027
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2332
2028
|
interface TransferData {
|
|
2333
2029
|
/**
|
|
@@ -2355,10 +2051,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2355
2051
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2356
2052
|
*/
|
|
2357
2053
|
discount?: string;
|
|
2358
|
-
/**
|
|
2359
|
-
* Details to determine how long the discount should be applied for.
|
|
2360
|
-
*/
|
|
2361
|
-
discount_end?: Discount.DiscountEnd;
|
|
2362
2054
|
/**
|
|
2363
2055
|
* ID of the promotion code to create a new discount for.
|
|
2364
2056
|
*/
|
|
@@ -2396,38 +2088,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2396
2088
|
*/
|
|
2397
2089
|
unit_amount_decimal?: Decimal;
|
|
2398
2090
|
}
|
|
2399
|
-
namespace Discount {
|
|
2400
|
-
interface DiscountEnd {
|
|
2401
|
-
/**
|
|
2402
|
-
* Time span for the redeemed discount.
|
|
2403
|
-
*/
|
|
2404
|
-
duration?: DiscountEnd.Duration;
|
|
2405
|
-
/**
|
|
2406
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2407
|
-
*/
|
|
2408
|
-
timestamp?: number;
|
|
2409
|
-
/**
|
|
2410
|
-
* The type of calculation made to determine when the discount ends.
|
|
2411
|
-
*/
|
|
2412
|
-
type: DiscountEnd.Type;
|
|
2413
|
-
}
|
|
2414
|
-
namespace DiscountEnd {
|
|
2415
|
-
interface Duration {
|
|
2416
|
-
/**
|
|
2417
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2418
|
-
*/
|
|
2419
|
-
interval: Duration.Interval;
|
|
2420
|
-
/**
|
|
2421
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2422
|
-
*/
|
|
2423
|
-
interval_count: number;
|
|
2424
|
-
}
|
|
2425
|
-
type Type = 'duration' | 'timestamp';
|
|
2426
|
-
namespace Duration {
|
|
2427
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
2091
|
namespace Period {
|
|
2432
2092
|
interface End {
|
|
2433
2093
|
/**
|
|
@@ -2520,38 +2180,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2520
2180
|
namespace CancellationDetails {
|
|
2521
2181
|
type Feedback = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
|
2522
2182
|
}
|
|
2523
|
-
namespace Discount {
|
|
2524
|
-
interface DiscountEnd {
|
|
2525
|
-
/**
|
|
2526
|
-
* Time span for the redeemed discount.
|
|
2527
|
-
*/
|
|
2528
|
-
duration?: DiscountEnd.Duration;
|
|
2529
|
-
/**
|
|
2530
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2531
|
-
*/
|
|
2532
|
-
timestamp?: number;
|
|
2533
|
-
/**
|
|
2534
|
-
* The type of calculation made to determine when the discount ends.
|
|
2535
|
-
*/
|
|
2536
|
-
type: DiscountEnd.Type;
|
|
2537
|
-
}
|
|
2538
|
-
namespace DiscountEnd {
|
|
2539
|
-
interface Duration {
|
|
2540
|
-
/**
|
|
2541
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2542
|
-
*/
|
|
2543
|
-
interval: Duration.Interval;
|
|
2544
|
-
/**
|
|
2545
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2546
|
-
*/
|
|
2547
|
-
interval_count: number;
|
|
2548
|
-
}
|
|
2549
|
-
type Type = 'duration' | 'timestamp';
|
|
2550
|
-
namespace Duration {
|
|
2551
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
}
|
|
2555
2183
|
namespace InvoiceSettings {
|
|
2556
2184
|
interface Issuer {
|
|
2557
2185
|
/**
|
|
@@ -2574,16 +2202,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2574
2202
|
*/
|
|
2575
2203
|
usage_gte: number;
|
|
2576
2204
|
}
|
|
2577
|
-
interface CurrentTrial {
|
|
2578
|
-
/**
|
|
2579
|
-
* Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
2580
|
-
*/
|
|
2581
|
-
trial_end?: number;
|
|
2582
|
-
/**
|
|
2583
|
-
* The ID of the trial offer to apply to the subscription item.
|
|
2584
|
-
*/
|
|
2585
|
-
trial_offer: string;
|
|
2586
|
-
}
|
|
2587
2205
|
interface Discount {
|
|
2588
2206
|
/**
|
|
2589
2207
|
* ID of the coupon to create a new discount for.
|
|
@@ -2593,10 +2211,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2593
2211
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2594
2212
|
*/
|
|
2595
2213
|
discount?: string;
|
|
2596
|
-
/**
|
|
2597
|
-
* Details to determine how long the discount should be applied for.
|
|
2598
|
-
*/
|
|
2599
|
-
discount_end?: Discount.DiscountEnd;
|
|
2600
2214
|
/**
|
|
2601
2215
|
* ID of the promotion code to create a new discount for.
|
|
2602
2216
|
*/
|
|
@@ -2628,38 +2242,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2628
2242
|
*/
|
|
2629
2243
|
unit_amount_decimal?: Decimal;
|
|
2630
2244
|
}
|
|
2631
|
-
namespace Discount {
|
|
2632
|
-
interface DiscountEnd {
|
|
2633
|
-
/**
|
|
2634
|
-
* Time span for the redeemed discount.
|
|
2635
|
-
*/
|
|
2636
|
-
duration?: DiscountEnd.Duration;
|
|
2637
|
-
/**
|
|
2638
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2639
|
-
*/
|
|
2640
|
-
timestamp?: number;
|
|
2641
|
-
/**
|
|
2642
|
-
* The type of calculation made to determine when the discount ends.
|
|
2643
|
-
*/
|
|
2644
|
-
type: DiscountEnd.Type;
|
|
2645
|
-
}
|
|
2646
|
-
namespace DiscountEnd {
|
|
2647
|
-
interface Duration {
|
|
2648
|
-
/**
|
|
2649
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2650
|
-
*/
|
|
2651
|
-
interval: Duration.Interval;
|
|
2652
|
-
/**
|
|
2653
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2654
|
-
*/
|
|
2655
|
-
interval_count: number;
|
|
2656
|
-
}
|
|
2657
|
-
type Type = 'duration' | 'timestamp';
|
|
2658
|
-
namespace Duration {
|
|
2659
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
2245
|
namespace PriceData {
|
|
2664
2246
|
interface Recurring {
|
|
2665
2247
|
/**
|
|
@@ -2690,10 +2272,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2690
2272
|
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2691
2273
|
*/
|
|
2692
2274
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
2693
|
-
/**
|
|
2694
|
-
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2695
|
-
*/
|
|
2696
|
-
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
2697
2275
|
/**
|
|
2698
2276
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2699
2277
|
*/
|
|
@@ -2702,10 +2280,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2702
2280
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2703
2281
|
*/
|
|
2704
2282
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2705
|
-
/**
|
|
2706
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2707
|
-
*/
|
|
2708
|
-
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2709
2283
|
/**
|
|
2710
2284
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2711
2285
|
*/
|
|
@@ -2731,7 +2305,7 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2731
2305
|
*/
|
|
2732
2306
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2733
2307
|
}
|
|
2734
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | '
|
|
2308
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2735
2309
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
2736
2310
|
namespace PaymentMethodOptions {
|
|
2737
2311
|
interface AcssDebit {
|
|
@@ -2750,12 +2324,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2750
2324
|
*/
|
|
2751
2325
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
2752
2326
|
}
|
|
2753
|
-
interface Blik {
|
|
2754
|
-
/**
|
|
2755
|
-
* Configuration options for setting up a mandate
|
|
2756
|
-
*/
|
|
2757
|
-
mandate_options?: Blik.MandateOptions;
|
|
2758
|
-
}
|
|
2759
2327
|
interface Card {
|
|
2760
2328
|
/**
|
|
2761
2329
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -2780,8 +2348,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2780
2348
|
*/
|
|
2781
2349
|
funding_type?: string;
|
|
2782
2350
|
}
|
|
2783
|
-
interface IdBankTransfer {
|
|
2784
|
-
}
|
|
2785
2351
|
interface Konbini {
|
|
2786
2352
|
}
|
|
2787
2353
|
interface Payto {
|
|
@@ -2833,14 +2399,6 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2833
2399
|
namespace Bancontact {
|
|
2834
2400
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
2835
2401
|
}
|
|
2836
|
-
namespace Blik {
|
|
2837
|
-
interface MandateOptions {
|
|
2838
|
-
/**
|
|
2839
|
-
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
2840
|
-
*/
|
|
2841
|
-
expires_after?: number;
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
2402
|
namespace Card {
|
|
2845
2403
|
interface MandateOptions {
|
|
2846
2404
|
/**
|
|
@@ -2966,13 +2524,9 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2966
2524
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2967
2525
|
*/
|
|
2968
2526
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2969
|
-
/**
|
|
2970
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
2971
|
-
*/
|
|
2972
|
-
institution?: string;
|
|
2973
2527
|
}
|
|
2974
2528
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
2975
|
-
type Prefetch = 'balances' | '
|
|
2529
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2976
2530
|
namespace Filters {
|
|
2977
2531
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2978
2532
|
}
|
|
@@ -2983,22 +2537,14 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2983
2537
|
namespace PendingInvoiceItemInterval {
|
|
2984
2538
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2985
2539
|
}
|
|
2986
|
-
namespace Prebilling {
|
|
2987
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2988
|
-
}
|
|
2989
2540
|
namespace TrialSettings {
|
|
2990
2541
|
interface EndBehavior {
|
|
2991
|
-
/**
|
|
2992
|
-
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
2993
|
-
*/
|
|
2994
|
-
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
2995
2542
|
/**
|
|
2996
2543
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
2997
2544
|
*/
|
|
2998
2545
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
2999
2546
|
}
|
|
3000
2547
|
namespace EndBehavior {
|
|
3001
|
-
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
3002
2548
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
3003
2549
|
}
|
|
3004
2550
|
}
|
|
@@ -3171,7 +2717,3 @@ export interface SubscriptionSearchParams {
|
|
|
3171
2717
|
*/
|
|
3172
2718
|
page?: string;
|
|
3173
2719
|
}
|
|
3174
|
-
export interface SubscriptionSerializeBatchMigrateParams {
|
|
3175
|
-
}
|
|
3176
|
-
export interface SubscriptionSerializeBatchUpdateParams {
|
|
3177
|
-
}
|