stripe 22.4.0-beta.1 → 22.4.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 +116 -1798
- package/OPENAPI_VERSION +1 -1
- package/README.md +58 -42
- package/VERSION +1 -1
- package/cjs/Error.d.ts +61 -57
- package/cjs/Error.js +13 -128
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +1 -1
- package/cjs/RequestSender.js +4 -9
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/Types.d.ts +72 -15
- package/cjs/Types.js.map +1 -1
- package/cjs/Webhooks.d.ts +2 -2
- package/cjs/apiVersion.d.ts +2 -1
- package/cjs/apiVersion.js +3 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/platform/NodePlatformFunctions.d.ts +3 -2
- package/cjs/platform/NodePlatformFunctions.js +46 -24
- package/cjs/platform/NodePlatformFunctions.js.map +1 -1
- package/cjs/platform/PlatformFunctions.d.ts +1 -1
- package/cjs/platform/PlatformFunctions.js +1 -1
- package/cjs/platform/PlatformFunctions.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +2 -1
- package/cjs/resources/AccountLinks.js.map +1 -1
- package/cjs/resources/AccountSessions.d.ts +32 -262
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +90 -883
- package/cjs/resources/Accounts.js +12 -16
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplicationFees.d.ts +2 -2
- package/cjs/resources/ApplicationFees.js.map +1 -1
- package/cjs/resources/Apps/Secrets.d.ts +6 -6
- package/cjs/resources/Balance.d.ts +0 -67
- package/cjs/resources/BalanceSettings.d.ts +8 -8
- package/cjs/resources/BalanceTransactions.d.ts +3 -3
- package/cjs/resources/BankAccounts.d.ts +4 -4
- package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/cjs/resources/Billing/Alerts.d.ts +3 -3
- package/cjs/resources/Billing/CreditBalanceSummary.d.ts +2 -1
- package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +4 -4
- package/cjs/resources/Billing/CreditGrants.d.ts +3 -3
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventAdjustments.d.ts +2 -1
- package/cjs/resources/Billing/MeterEventAdjustments.js.map +1 -1
- package/cjs/resources/Billing/Meters.d.ts +8 -8
- package/cjs/resources/Billing/index.d.ts +0 -3
- package/cjs/resources/Billing/index.js +0 -2
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/BillingPortal/Configurations.d.ts +22 -22
- package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
- package/cjs/resources/BillingPortal/Sessions.d.ts +7 -6
- package/cjs/resources/BillingPortal/Sessions.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +8 -7
- package/cjs/resources/Cards.d.ts +3 -20
- package/cjs/resources/Charges.d.ts +99 -3106
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +192 -555
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Climate/Orders.d.ts +3 -3
- package/cjs/resources/Climate/Orders.js.map +1 -1
- package/cjs/resources/Climate/Suppliers.d.ts +2 -2
- package/cjs/resources/ConfirmationTokens.d.ts +21 -87
- package/cjs/resources/Coupons.d.ts +3 -56
- package/cjs/resources/Coupons.js +0 -13
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +4 -18
- package/cjs/resources/CreditNotes.d.ts +17 -17
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerBalanceTransactions.d.ts +2 -2
- package/cjs/resources/CustomerCashBalanceTransactions.d.ts +4 -3
- package/cjs/resources/CustomerSessions.d.ts +25 -92
- package/cjs/resources/CustomerSessions.js.map +1 -1
- package/cjs/resources/Customers.d.ts +14 -33
- package/cjs/resources/Customers.js +0 -14
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +16 -41
- package/cjs/resources/Disputes.js +1 -1
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Events.d.ts +55 -535
- 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/Files.d.ts +3 -3
- package/cjs/resources/Files.js.map +1 -1
- package/cjs/resources/FinancialConnections/Accounts.d.ts +19 -84
- package/cjs/resources/FinancialConnections/Accounts.js +0 -8
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +4 -48
- package/cjs/resources/FinancialConnections/Authorizations.js +0 -11
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Sessions.d.ts +48 -122
- package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
- package/cjs/resources/FinancialConnections/Transactions.d.ts +2 -2
- package/cjs/resources/FinancialConnections/index.d.ts +9 -21
- package/cjs/resources/FinancialConnections/index.js +0 -4
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/Forwarding/Requests.d.ts +3 -3
- package/cjs/resources/Forwarding/Requests.js.map +1 -1
- package/cjs/resources/FundingInstructions.d.ts +4 -4
- package/cjs/resources/Identity/VerificationReports.d.ts +17 -17
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +15 -15
- package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +0 -85
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +5 -43
- package/cjs/resources/InvoicePayments.d.ts +3 -3
- package/cjs/resources/Invoices.d.ts +96 -1465
- package/cjs/resources/Invoices.js +0 -41
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +19 -32
- package/cjs/resources/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +17 -31
- package/cjs/resources/Issuing/Cardholders.js.map +1 -1
- package/cjs/resources/Issuing/Cards.d.ts +38 -39
- package/cjs/resources/Issuing/Cards.js.map +1 -1
- package/cjs/resources/Issuing/Disputes.d.ts +22 -35
- package/cjs/resources/Issuing/Disputes.js.map +1 -1
- package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +5 -5
- package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/Issuing/PhysicalBundles.d.ts +8 -8
- package/cjs/resources/Issuing/Tokens.d.ts +11 -11
- package/cjs/resources/Issuing/Transactions.d.ts +5 -27
- package/cjs/resources/Issuing/index.d.ts +22 -47
- package/cjs/resources/Issuing/index.js +0 -6
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +4 -31
- package/cjs/resources/Mandates.d.ts +15 -46
- package/cjs/resources/Mandates.js +0 -8
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/PaymentAttemptRecords.d.ts +30 -112
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
- package/cjs/resources/PaymentIntents.d.ts +6883 -17706
- package/cjs/resources/PaymentIntents.js +0 -27
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +112 -66
- package/cjs/resources/PaymentLinks.js.map +1 -1
- package/cjs/resources/PaymentMethodConfigurations.d.ts +237 -587
- package/cjs/resources/PaymentMethodDomains.d.ts +7 -7
- package/cjs/resources/PaymentMethods.d.ts +36 -197
- package/cjs/resources/PaymentMethods.js +1 -1
- package/cjs/resources/PaymentRecords.d.ts +52 -116
- package/cjs/resources/PaymentRecords.js +8 -0
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Payouts.d.ts +3 -3
- package/cjs/resources/Payouts.js.map +1 -1
- package/cjs/resources/Persons.d.ts +8 -8
- package/cjs/resources/Plans.d.ts +6 -22
- package/cjs/resources/Plans.js.map +1 -1
- package/cjs/resources/Prices.d.ts +6 -58
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Products.d.ts +0 -42
- package/cjs/resources/PromotionCodes.d.ts +2 -14
- package/cjs/resources/PromotionCodes.js +0 -27
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/Quotes.d.ts +212 -2355
- package/cjs/resources/Quotes.js +13 -1181
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +22 -22
- package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +0 -30
- package/cjs/resources/Radar/ValueLists.d.ts +2 -2
- package/cjs/resources/Radar/ValueLists.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +18 -15
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reserve/Holds.d.ts +4 -56
- package/cjs/resources/Reserve/Holds.js +0 -19
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +4 -20
- package/cjs/resources/Reserve/Plans.js +0 -11
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +4 -44
- package/cjs/resources/Reserve/Releases.js +0 -19
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +6 -17
- package/cjs/resources/Reserve/index.js +0 -9
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +7 -32
- package/cjs/resources/SetupIntents.d.ts +144 -456
- package/cjs/resources/SetupIntents.js.map +1 -1
- package/cjs/resources/ShippingRates.d.ts +5 -5
- package/cjs/resources/ShippingRates.js.map +1 -1
- package/cjs/resources/Sources.d.ts +3 -31
- package/cjs/resources/Sources.js.map +1 -1
- package/cjs/resources/SubscriptionItems.d.ts +4 -147
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +147 -1181
- package/cjs/resources/SubscriptionSchedules.js +0 -6
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +76 -641
- package/cjs/resources/Subscriptions.js +0 -145
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Associations.d.ts +2 -1
- package/cjs/resources/Tax/Associations.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -10
- package/cjs/resources/Tax/Calculations.d.ts +20 -24
- package/cjs/resources/Tax/Calculations.js.map +1 -1
- package/cjs/resources/Tax/Registrations.d.ts +169 -271
- package/cjs/resources/Tax/Settings.d.ts +4 -4
- package/cjs/resources/Tax/TransactionLineItems.d.ts +3 -3
- package/cjs/resources/Tax/Transactions.d.ts +12 -12
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +13 -27
- 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/TaxIds.d.ts +8 -8
- package/cjs/resources/TaxRates.d.ts +5 -5
- package/cjs/resources/TaxRates.js.map +1 -1
- package/cjs/resources/Terminal/Configurations.d.ts +4 -31
- package/cjs/resources/Terminal/Readers.d.ts +18 -34
- package/cjs/resources/Terminal/Readers.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +0 -5
- package/cjs/resources/Terminal/index.js +0 -2
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +12 -89
- package/cjs/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
- package/cjs/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
- package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/cjs/resources/TestHelpers/TestClocks.d.ts +2 -2
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -23
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/cjs/resources/TestHelpers/index.d.ts +0 -3
- package/cjs/resources/TestHelpers/index.js +4 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +19 -24
- package/cjs/resources/Tokens.js.map +1 -1
- package/cjs/resources/Topups.d.ts +28 -0
- package/cjs/resources/Topups.js.map +1 -1
- package/cjs/resources/Transfers.d.ts +0 -8
- package/cjs/resources/Treasury/CreditReversals.d.ts +4 -4
- package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
- package/cjs/resources/Treasury/DebitReversals.d.ts +5 -5
- package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +37 -41
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +16 -49
- package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/cjs/resources/Treasury/InboundTransfers.d.ts +6 -6
- package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +13 -21
- package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +10 -54
- package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +9 -31
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +7 -33
- package/cjs/resources/Treasury/TransactionEntries.d.ts +5 -5
- package/cjs/resources/Treasury/Transactions.d.ts +6 -6
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +2 -1
- package/cjs/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
- 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 +4 -4
- package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +5 -5
- package/cjs/resources/V2/Core/AccountLinks.d.ts +15 -14
- package/cjs/resources/V2/Core/AccountLinks.js.map +1 -1
- package/cjs/resources/V2/Core/AccountPersons.d.ts +4 -4
- package/cjs/resources/V2/Core/AccountTokens.d.ts +48 -17
- package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +4 -4
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +7 -7
- package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +191 -1558
- package/cjs/resources/V2/Core/Accounts.js.map +1 -1
- package/cjs/resources/V2/Core/EventDestinations.d.ts +6 -6
- package/cjs/resources/V2/Core/Events.d.ts +10 -1157
- package/cjs/resources/V2/Core/index.d.ts +9 -19
- 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 +4 -4
- package/cjs/resources/WebhookEndpoints.js.map +1 -1
- package/cjs/resources.d.ts +0 -10
- package/cjs/resources.js +10 -146
- package/cjs/resources.js.map +1 -1
- package/cjs/shared.d.ts +5 -0
- package/cjs/stripe.cjs.node.d.ts +150 -6480
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +40 -94
- package/cjs/stripe.core.js +37 -59
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +0 -1
- package/cjs/utils.js +1 -17
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +61 -57
- package/esm/Error.js +12 -112
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +1 -1
- package/esm/RequestSender.js +5 -10
- package/esm/RequestSender.js.map +1 -1
- package/esm/Types.d.ts +72 -15
- package/esm/Types.js.map +1 -1
- package/esm/Webhooks.d.ts +2 -2
- package/esm/apiVersion.d.ts +2 -1
- package/esm/apiVersion.js +2 -1
- package/esm/apiVersion.js.map +1 -1
- package/esm/platform/NodePlatformFunctions.d.ts +3 -2
- package/esm/platform/NodePlatformFunctions.js +46 -24
- package/esm/platform/NodePlatformFunctions.js.map +1 -1
- package/esm/platform/PlatformFunctions.d.ts +1 -1
- package/esm/platform/PlatformFunctions.js +1 -1
- package/esm/platform/PlatformFunctions.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +2 -1
- package/esm/resources/AccountLinks.js.map +1 -1
- package/esm/resources/AccountSessions.d.ts +32 -262
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +90 -883
- package/esm/resources/Accounts.js +12 -16
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplicationFees.d.ts +2 -2
- package/esm/resources/ApplicationFees.js.map +1 -1
- package/esm/resources/Apps/Secrets.d.ts +6 -6
- package/esm/resources/Balance.d.ts +0 -67
- package/esm/resources/BalanceSettings.d.ts +8 -8
- package/esm/resources/BalanceTransactions.d.ts +3 -3
- package/esm/resources/BankAccounts.d.ts +4 -4
- package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/esm/resources/Billing/Alerts.d.ts +3 -3
- package/esm/resources/Billing/CreditBalanceSummary.d.ts +2 -1
- package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +4 -4
- package/esm/resources/Billing/CreditGrants.d.ts +3 -3
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventAdjustments.d.ts +2 -1
- package/esm/resources/Billing/MeterEventAdjustments.js.map +1 -1
- package/esm/resources/Billing/Meters.d.ts +8 -8
- package/esm/resources/Billing/index.d.ts +0 -3
- package/esm/resources/Billing/index.js +0 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/BillingPortal/Configurations.d.ts +22 -22
- package/esm/resources/BillingPortal/Configurations.js.map +1 -1
- package/esm/resources/BillingPortal/Sessions.d.ts +7 -6
- package/esm/resources/BillingPortal/Sessions.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +8 -7
- package/esm/resources/Cards.d.ts +3 -20
- package/esm/resources/Charges.d.ts +99 -3106
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +192 -555
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Climate/Orders.d.ts +3 -3
- package/esm/resources/Climate/Orders.js.map +1 -1
- package/esm/resources/Climate/Suppliers.d.ts +2 -2
- package/esm/resources/ConfirmationTokens.d.ts +21 -87
- package/esm/resources/Coupons.d.ts +3 -56
- package/esm/resources/Coupons.js +0 -13
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +4 -18
- package/esm/resources/CreditNotes.d.ts +17 -17
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerBalanceTransactions.d.ts +2 -2
- package/esm/resources/CustomerCashBalanceTransactions.d.ts +4 -3
- package/esm/resources/CustomerSessions.d.ts +25 -92
- package/esm/resources/CustomerSessions.js.map +1 -1
- package/esm/resources/Customers.d.ts +14 -33
- package/esm/resources/Customers.js +0 -14
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +16 -41
- package/esm/resources/Disputes.js +1 -1
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Events.d.ts +55 -535
- 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/Files.d.ts +3 -3
- package/esm/resources/Files.js.map +1 -1
- package/esm/resources/FinancialConnections/Accounts.d.ts +19 -84
- package/esm/resources/FinancialConnections/Accounts.js +0 -8
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +4 -48
- package/esm/resources/FinancialConnections/Authorizations.js +1 -9
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Sessions.d.ts +48 -122
- package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
- package/esm/resources/FinancialConnections/Transactions.d.ts +2 -2
- package/esm/resources/FinancialConnections/index.d.ts +9 -21
- package/esm/resources/FinancialConnections/index.js +0 -4
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/Forwarding/Requests.d.ts +3 -3
- package/esm/resources/Forwarding/Requests.js.map +1 -1
- package/esm/resources/FundingInstructions.d.ts +4 -4
- package/esm/resources/Identity/VerificationReports.d.ts +17 -17
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +15 -15
- package/esm/resources/Identity/VerificationSessions.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +0 -85
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +5 -43
- package/esm/resources/InvoicePayments.d.ts +3 -3
- package/esm/resources/Invoices.d.ts +96 -1465
- package/esm/resources/Invoices.js +0 -41
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +19 -32
- package/esm/resources/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +17 -31
- package/esm/resources/Issuing/Cardholders.js.map +1 -1
- package/esm/resources/Issuing/Cards.d.ts +38 -39
- package/esm/resources/Issuing/Cards.js.map +1 -1
- package/esm/resources/Issuing/Disputes.d.ts +22 -35
- package/esm/resources/Issuing/Disputes.js.map +1 -1
- package/esm/resources/Issuing/PersonalizationDesigns.d.ts +5 -5
- package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/Issuing/PhysicalBundles.d.ts +8 -8
- package/esm/resources/Issuing/Tokens.d.ts +11 -11
- package/esm/resources/Issuing/Transactions.d.ts +5 -27
- package/esm/resources/Issuing/index.d.ts +22 -47
- package/esm/resources/Issuing/index.js +0 -6
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +4 -31
- package/esm/resources/Mandates.d.ts +15 -46
- package/esm/resources/Mandates.js +0 -8
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/PaymentAttemptRecords.d.ts +30 -112
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
- package/esm/resources/PaymentIntents.d.ts +6883 -17706
- package/esm/resources/PaymentIntents.js +0 -27
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +112 -66
- package/esm/resources/PaymentLinks.js.map +1 -1
- package/esm/resources/PaymentMethodConfigurations.d.ts +237 -587
- package/esm/resources/PaymentMethodDomains.d.ts +7 -7
- package/esm/resources/PaymentMethods.d.ts +36 -197
- package/esm/resources/PaymentMethods.js +1 -1
- package/esm/resources/PaymentRecords.d.ts +52 -116
- package/esm/resources/PaymentRecords.js +8 -0
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Payouts.d.ts +3 -3
- package/esm/resources/Payouts.js.map +1 -1
- package/esm/resources/Persons.d.ts +8 -8
- package/esm/resources/Plans.d.ts +6 -22
- package/esm/resources/Plans.js.map +1 -1
- package/esm/resources/Prices.d.ts +6 -58
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Products.d.ts +0 -42
- package/esm/resources/PromotionCodes.d.ts +2 -14
- package/esm/resources/PromotionCodes.js +0 -27
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/Quotes.d.ts +212 -2355
- package/esm/resources/Quotes.js +13 -1181
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +22 -22
- package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/esm/resources/Radar/ValueListItems.d.ts +0 -30
- package/esm/resources/Radar/ValueLists.d.ts +2 -2
- package/esm/resources/Radar/ValueLists.js.map +1 -1
- package/esm/resources/Refunds.d.ts +18 -15
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reserve/Holds.d.ts +4 -56
- package/esm/resources/Reserve/Holds.js +1 -17
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +4 -20
- package/esm/resources/Reserve/Plans.js +1 -9
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +4 -44
- package/esm/resources/Reserve/Releases.js +1 -17
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +6 -17
- package/esm/resources/Reserve/index.js +0 -9
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +7 -32
- package/esm/resources/SetupIntents.d.ts +144 -456
- package/esm/resources/SetupIntents.js.map +1 -1
- package/esm/resources/ShippingRates.d.ts +5 -5
- package/esm/resources/ShippingRates.js.map +1 -1
- package/esm/resources/Sources.d.ts +3 -31
- package/esm/resources/Sources.js.map +1 -1
- package/esm/resources/SubscriptionItems.d.ts +4 -147
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +147 -1181
- package/esm/resources/SubscriptionSchedules.js +0 -6
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +76 -641
- package/esm/resources/Subscriptions.js +0 -145
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Associations.d.ts +2 -1
- package/esm/resources/Tax/Associations.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +6 -10
- package/esm/resources/Tax/Calculations.d.ts +20 -24
- package/esm/resources/Tax/Calculations.js.map +1 -1
- package/esm/resources/Tax/Registrations.d.ts +169 -271
- package/esm/resources/Tax/Settings.d.ts +4 -4
- package/esm/resources/Tax/TransactionLineItems.d.ts +3 -3
- package/esm/resources/Tax/Transactions.d.ts +12 -12
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +13 -27
- 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/TaxIds.d.ts +8 -8
- package/esm/resources/TaxRates.d.ts +5 -5
- package/esm/resources/TaxRates.js.map +1 -1
- package/esm/resources/Terminal/Configurations.d.ts +4 -31
- package/esm/resources/Terminal/Readers.d.ts +18 -34
- package/esm/resources/Terminal/Readers.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +0 -5
- package/esm/resources/Terminal/index.js +0 -2
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +12 -89
- package/esm/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
- package/esm/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
- package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/esm/resources/TestHelpers/TestClocks.d.ts +2 -2
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -23
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/esm/resources/TestHelpers/index.d.ts +0 -3
- package/esm/resources/TestHelpers/index.js +0 -2
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +19 -24
- package/esm/resources/Tokens.js.map +1 -1
- package/esm/resources/Topups.d.ts +28 -0
- package/esm/resources/Topups.js.map +1 -1
- package/esm/resources/Transfers.d.ts +0 -8
- package/esm/resources/Treasury/CreditReversals.d.ts +4 -4
- package/esm/resources/Treasury/CreditReversals.js.map +1 -1
- package/esm/resources/Treasury/DebitReversals.d.ts +5 -5
- package/esm/resources/Treasury/DebitReversals.js.map +1 -1
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +37 -41
- package/esm/resources/Treasury/FinancialAccounts.d.ts +16 -49
- package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/esm/resources/Treasury/InboundTransfers.d.ts +6 -6
- package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +13 -21
- package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/Treasury/OutboundTransfers.d.ts +10 -54
- package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/ReceivedCredits.d.ts +9 -31
- package/esm/resources/Treasury/ReceivedDebits.d.ts +7 -33
- package/esm/resources/Treasury/TransactionEntries.d.ts +5 -5
- package/esm/resources/Treasury/Transactions.d.ts +6 -6
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +2 -1
- package/esm/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
- 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 +4 -4
- package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +5 -5
- package/esm/resources/V2/Core/AccountLinks.d.ts +15 -14
- package/esm/resources/V2/Core/AccountLinks.js.map +1 -1
- package/esm/resources/V2/Core/AccountPersons.d.ts +4 -4
- package/esm/resources/V2/Core/AccountTokens.d.ts +48 -17
- package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +4 -4
- package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +7 -7
- package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/esm/resources/V2/Core/Accounts.d.ts +191 -1558
- package/esm/resources/V2/Core/Accounts.js.map +1 -1
- package/esm/resources/V2/Core/EventDestinations.d.ts +6 -6
- package/esm/resources/V2/Core/Events.d.ts +10 -1157
- package/esm/resources/V2/Core/index.d.ts +9 -19
- 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 +4 -4
- package/esm/resources/WebhookEndpoints.js.map +1 -1
- package/esm/resources.d.ts +0 -10
- package/esm/resources.js +0 -131
- package/esm/resources.js.map +1 -1
- package/esm/shared.d.ts +5 -0
- package/esm/stripe.core.d.ts +40 -94
- package/esm/stripe.core.js +7 -29
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +41 -95
- package/esm/stripe.esm.node.js +2 -25
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +0 -1
- package/esm/utils.js +0 -15
- package/esm/utils.js.map +1 -1
- package/package.json +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +0 -19
- package/cjs/StripeEventNotificationHandler.js +0 -150
- 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 -194
- 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 -101
- 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 -141
- 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/Institutions.d.ts +0 -99
- 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 -638
- 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 -93
- 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 -83
- 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 -35
- 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 -227
- 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 -125
- package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
- package/cjs/resources/ProductCatalog/index.d.ts +0 -12
- package/cjs/resources/ProductCatalog/index.js +0 -13
- package/cjs/resources/ProductCatalog/index.js.map +0 -1
- package/cjs/resources/QuoteLines.d.ts +0 -507
- package/cjs/resources/QuoteLines.js +0 -4
- package/cjs/resources/QuoteLines.js.map +0 -1
- package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1120
- package/cjs/resources/QuotePreviewInvoices.js +0 -4
- package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -738
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1105
- 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 -306
- 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 -228
- 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 -50
- 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 -71
- 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 -280
- 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 -947
- 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 -236
- 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 -775
- 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 -162
- 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 -360
- 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 -279
- 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 -249
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -63
- 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 -150
- 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 -162
- 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 -119
- 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 -210
- package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/cjs/resources/V2/Iam/index.d.ts +0 -13
- package/cjs/resources/V2/Iam/index.js +0 -13
- package/cjs/resources/V2/Iam/index.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -131
- 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 -240
- 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 -211
- 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 -250
- 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 -208
- 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 -394
- 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 -296
- 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 -336
- 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 -239
- 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 -92
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -157
- 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 -161
- 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 -192
- 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 -92
- 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 -143
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
- package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
- package/cjs/resources/V2/TestHelpers/index.js +0 -13
- package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
- package/esm/StripeEventNotificationHandler.d.ts +0 -19
- package/esm/StripeEventNotificationHandler.js +0 -146
- 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 -194
- 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 -101
- 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 -141
- 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/Institutions.d.ts +0 -99
- 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 -638
- 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 -93
- 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 -83
- 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 -35
- 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 -227
- 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 -125
- package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
- package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
- package/esm/resources/ProductCatalog/index.d.ts +0 -12
- package/esm/resources/ProductCatalog/index.js +0 -9
- package/esm/resources/ProductCatalog/index.js.map +0 -1
- package/esm/resources/QuoteLines.d.ts +0 -507
- package/esm/resources/QuoteLines.js +0 -3
- package/esm/resources/QuoteLines.js.map +0 -1
- package/esm/resources/QuotePreviewInvoices.d.ts +0 -1120
- package/esm/resources/QuotePreviewInvoices.js +0 -3
- package/esm/resources/QuotePreviewInvoices.js.map +0 -1
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -738
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1105
- 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 -306
- 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 -228
- 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 -50
- 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 -71
- 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 -280
- 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 -947
- 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 -236
- 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 -775
- 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 -162
- 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 -360
- 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 -279
- 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 -249
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -59
- 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 -150
- 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 -162
- 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 -119
- 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 -210
- package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
- package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/esm/resources/V2/Iam/index.d.ts +0 -13
- package/esm/resources/V2/Iam/index.js +0 -9
- package/esm/resources/V2/Iam/index.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -131
- 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 -240
- 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 -211
- 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 -250
- 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 -208
- 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 -394
- 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 -296
- 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 -336
- 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 -239
- 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 -92
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -157
- 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 -161
- 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 -192
- 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 -92
- 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 -143
- 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
|
@@ -4,7 +4,6 @@ import { Discount, DeletedDiscount } from './Discounts.js';
|
|
|
4
4
|
import { TaxId, DeletedTaxId } from './TaxIds.js';
|
|
5
5
|
import { Application, DeletedApplication } from './Applications.js';
|
|
6
6
|
import { Customer, DeletedCustomer } from './Customers.js';
|
|
7
|
-
import { Margin } from './Margins.js';
|
|
8
7
|
import { PaymentMethod } from './PaymentMethods.js';
|
|
9
8
|
import { CustomerSource } from './CustomerSources.js';
|
|
10
9
|
import { TaxRate } from './TaxRates.js';
|
|
@@ -16,7 +15,7 @@ import { Subscription } from './Subscriptions.js';
|
|
|
16
15
|
import { ShippingRate } from './ShippingRates.js';
|
|
17
16
|
import * as TestHelpers from './TestHelpers/index.js';
|
|
18
17
|
import * as Billing from './Billing/index.js';
|
|
19
|
-
import { Emptyable, MetadataParam, AddressParam, PaginationParams, RangeQueryParam, Decimal, Address, Metadata } from '../shared.js';
|
|
18
|
+
import { Emptyable, MetadataParam, OtherString, AddressParam, PaginationParams, RangeQueryParam, Decimal, Address, Metadata } from '../shared.js';
|
|
20
19
|
import { RequestOptions, Response, ApiListPromise, ApiList, ApiSearchResultPromise } from '../lib.js';
|
|
21
20
|
export declare class InvoiceResource extends StripeResource {
|
|
22
21
|
/**
|
|
@@ -68,10 +67,6 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
68
67
|
* See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
|
|
69
68
|
*/
|
|
70
69
|
attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
71
|
-
/**
|
|
72
|
-
* Detaches a payment from the invoice, removing it from the list of payments
|
|
73
|
-
*/
|
|
74
|
-
detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
75
70
|
/**
|
|
76
71
|
* Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
|
77
72
|
*/
|
|
@@ -173,10 +168,6 @@ export interface Invoice {
|
|
|
173
168
|
* This is the sum of all the shipping amounts.
|
|
174
169
|
*/
|
|
175
170
|
amount_shipping: number;
|
|
176
|
-
/**
|
|
177
|
-
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
178
|
-
*/
|
|
179
|
-
amounts_due?: Array<Invoice.AmountsDue> | null;
|
|
180
171
|
/**
|
|
181
172
|
* ID of the Connect Application that created the invoice.
|
|
182
173
|
*/
|
|
@@ -266,10 +257,6 @@ export interface Invoice {
|
|
|
266
257
|
* The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
|
|
267
258
|
*/
|
|
268
259
|
customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
|
|
269
|
-
/**
|
|
270
|
-
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
271
|
-
*/
|
|
272
|
-
default_margins?: Array<string | Margin> | null;
|
|
273
260
|
/**
|
|
274
261
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
275
262
|
*/
|
|
@@ -434,10 +421,6 @@ export interface Invoice {
|
|
|
434
421
|
* The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
|
|
435
422
|
*/
|
|
436
423
|
total_excluding_tax: number | null;
|
|
437
|
-
/**
|
|
438
|
-
* The aggregate amounts calculated per margin across all line items.
|
|
439
|
-
*/
|
|
440
|
-
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
|
|
441
424
|
/**
|
|
442
425
|
* Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
|
|
443
426
|
*/
|
|
@@ -466,40 +449,6 @@ export interface DeletedInvoice {
|
|
|
466
449
|
deleted: true;
|
|
467
450
|
}
|
|
468
451
|
export declare namespace Invoice {
|
|
469
|
-
interface AmountsDue {
|
|
470
|
-
/**
|
|
471
|
-
* Incremental amount due for this payment in cents (or local equivalent).
|
|
472
|
-
*/
|
|
473
|
-
amount: number;
|
|
474
|
-
/**
|
|
475
|
-
* The amount in cents (or local equivalent) that was paid for this payment.
|
|
476
|
-
*/
|
|
477
|
-
amount_paid: number;
|
|
478
|
-
/**
|
|
479
|
-
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
|
|
480
|
-
*/
|
|
481
|
-
amount_remaining: number;
|
|
482
|
-
/**
|
|
483
|
-
* Number of days from when invoice is finalized until the payment is due.
|
|
484
|
-
*/
|
|
485
|
-
days_until_due: number | null;
|
|
486
|
-
/**
|
|
487
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
488
|
-
*/
|
|
489
|
-
description: string | null;
|
|
490
|
-
/**
|
|
491
|
-
* Date on which a payment plan's payment is due.
|
|
492
|
-
*/
|
|
493
|
-
due_date: number | null;
|
|
494
|
-
/**
|
|
495
|
-
* Timestamp when the payment was paid.
|
|
496
|
-
*/
|
|
497
|
-
paid_at: number | null;
|
|
498
|
-
/**
|
|
499
|
-
* The status of the payment, one of `open`, `paid`, or `past_due`
|
|
500
|
-
*/
|
|
501
|
-
status: AmountsDue.Status;
|
|
502
|
-
}
|
|
503
452
|
interface AutomaticTax {
|
|
504
453
|
/**
|
|
505
454
|
* If Stripe disabled automatic tax, this enum describes why.
|
|
@@ -523,7 +472,7 @@ export declare namespace Invoice {
|
|
|
523
472
|
status: AutomaticTax.Status | null;
|
|
524
473
|
}
|
|
525
474
|
type BillingReason = 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming';
|
|
526
|
-
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
475
|
+
type CollectionMethod = 'charge_automatically' | 'send_invoice' | OtherString;
|
|
527
476
|
interface ConfirmationSecret {
|
|
528
477
|
/**
|
|
529
478
|
* The client_secret of the payment that Stripe creates for the invoice after finalization.
|
|
@@ -566,7 +515,7 @@ export declare namespace Invoice {
|
|
|
566
515
|
type CustomerTaxExempt = 'exempt' | 'none' | 'reverse';
|
|
567
516
|
interface CustomerTaxId {
|
|
568
517
|
/**
|
|
569
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
518
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
|
|
570
519
|
*/
|
|
571
520
|
type: CustomerTaxId.Type;
|
|
572
521
|
/**
|
|
@@ -778,7 +727,7 @@ export declare namespace Invoice {
|
|
|
778
727
|
*/
|
|
779
728
|
tracking_number?: string | null;
|
|
780
729
|
}
|
|
781
|
-
type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
730
|
+
type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | OtherString;
|
|
782
731
|
interface StatusTransitions {
|
|
783
732
|
/**
|
|
784
733
|
* The time that the invoice draft was finalized.
|
|
@@ -817,16 +766,6 @@ export declare namespace Invoice {
|
|
|
817
766
|
*/
|
|
818
767
|
discount: string | Discount | DeletedDiscount;
|
|
819
768
|
}
|
|
820
|
-
interface TotalMarginAmount {
|
|
821
|
-
/**
|
|
822
|
-
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
823
|
-
*/
|
|
824
|
-
amount: number;
|
|
825
|
-
/**
|
|
826
|
-
* The margin that was applied to get this margin amount.
|
|
827
|
-
*/
|
|
828
|
-
margin: string | Margin;
|
|
829
|
-
}
|
|
830
769
|
interface TotalPretaxCreditAmount {
|
|
831
770
|
/**
|
|
832
771
|
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
@@ -840,10 +779,6 @@ export declare namespace Invoice {
|
|
|
840
779
|
* The discount that was applied to get this pretax credit amount.
|
|
841
780
|
*/
|
|
842
781
|
discount?: string | Discount | DeletedDiscount;
|
|
843
|
-
/**
|
|
844
|
-
* The margin that was applied to get this pretax credit amount.
|
|
845
|
-
*/
|
|
846
|
-
margin?: string | Margin;
|
|
847
782
|
/**
|
|
848
783
|
* Type of the pretax credit amount referenced.
|
|
849
784
|
*/
|
|
@@ -875,11 +810,8 @@ export declare namespace Invoice {
|
|
|
875
810
|
*/
|
|
876
811
|
type: 'tax_rate_details';
|
|
877
812
|
}
|
|
878
|
-
namespace AmountsDue {
|
|
879
|
-
type Status = 'open' | 'paid' | 'past_due';
|
|
880
|
-
}
|
|
881
813
|
namespace AutomaticTax {
|
|
882
|
-
type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error';
|
|
814
|
+
type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error' | OtherString;
|
|
883
815
|
interface Liability {
|
|
884
816
|
/**
|
|
885
817
|
* The connected account being referenced when `type` is `account`.
|
|
@@ -890,19 +822,19 @@ export declare namespace Invoice {
|
|
|
890
822
|
*/
|
|
891
823
|
type: Liability.Type;
|
|
892
824
|
}
|
|
893
|
-
type Status = 'complete' | 'failed' | 'requires_location_inputs';
|
|
825
|
+
type Status = 'complete' | 'failed' | 'requires_location_inputs' | OtherString;
|
|
894
826
|
namespace Liability {
|
|
895
|
-
type Type = 'account' | 'self';
|
|
827
|
+
type Type = 'account' | 'self' | OtherString;
|
|
896
828
|
}
|
|
897
829
|
}
|
|
898
830
|
namespace CustomerTaxId {
|
|
899
|
-
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
|
|
831
|
+
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
|
|
900
832
|
}
|
|
901
833
|
namespace Issuer {
|
|
902
|
-
type Type = 'account' | 'self';
|
|
834
|
+
type Type = 'account' | 'self' | OtherString;
|
|
903
835
|
}
|
|
904
836
|
namespace LastFinalizationError {
|
|
905
|
-
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | '
|
|
837
|
+
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid';
|
|
906
838
|
type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error';
|
|
907
839
|
}
|
|
908
840
|
namespace Parent {
|
|
@@ -918,10 +850,6 @@ export declare namespace Invoice {
|
|
|
918
850
|
* *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
919
851
|
*/
|
|
920
852
|
metadata: Metadata | null;
|
|
921
|
-
/**
|
|
922
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
923
|
-
*/
|
|
924
|
-
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
925
853
|
/**
|
|
926
854
|
* The subscription that generated this invoice
|
|
927
855
|
*/
|
|
@@ -931,22 +859,7 @@ export declare namespace Invoice {
|
|
|
931
859
|
*/
|
|
932
860
|
subscription_proration_date?: number;
|
|
933
861
|
}
|
|
934
|
-
type Type = 'quote_details' | 'subscription_details';
|
|
935
|
-
namespace SubscriptionDetails {
|
|
936
|
-
interface PauseCollection {
|
|
937
|
-
/**
|
|
938
|
-
* The payment collection behavior for this subscription while paused.
|
|
939
|
-
*/
|
|
940
|
-
behavior: PauseCollection.Behavior | null;
|
|
941
|
-
/**
|
|
942
|
-
* The time after which the subscription will resume collecting payments.
|
|
943
|
-
*/
|
|
944
|
-
resumes_at: number | null;
|
|
945
|
-
}
|
|
946
|
-
namespace PauseCollection {
|
|
947
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
948
|
-
}
|
|
949
|
-
}
|
|
862
|
+
type Type = 'quote_details' | 'subscription_details' | OtherString;
|
|
950
863
|
}
|
|
951
864
|
namespace PaymentSettings {
|
|
952
865
|
interface PaymentMethodOptions {
|
|
@@ -958,10 +871,6 @@ export declare namespace Invoice {
|
|
|
958
871
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
959
872
|
*/
|
|
960
873
|
bancontact: PaymentMethodOptions.Bancontact | null;
|
|
961
|
-
/**
|
|
962
|
-
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
963
|
-
*/
|
|
964
|
-
blik?: PaymentMethodOptions.Blik | null;
|
|
965
874
|
/**
|
|
966
875
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
967
876
|
*/
|
|
@@ -970,10 +879,6 @@ export declare namespace Invoice {
|
|
|
970
879
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
971
880
|
*/
|
|
972
881
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
973
|
-
/**
|
|
974
|
-
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
975
|
-
*/
|
|
976
|
-
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
977
882
|
/**
|
|
978
883
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
979
884
|
*/
|
|
@@ -999,7 +904,7 @@ export declare namespace Invoice {
|
|
|
999
904
|
*/
|
|
1000
905
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
1001
906
|
}
|
|
1002
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | '
|
|
907
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | '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' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1003
908
|
namespace PaymentMethodOptions {
|
|
1004
909
|
interface AcssDebit {
|
|
1005
910
|
mandate_options?: AcssDebit.MandateOptions;
|
|
@@ -1014,8 +919,6 @@ export declare namespace Invoice {
|
|
|
1014
919
|
*/
|
|
1015
920
|
preferred_language: Bancontact.PreferredLanguage;
|
|
1016
921
|
}
|
|
1017
|
-
interface Blik {
|
|
1018
|
-
}
|
|
1019
922
|
interface Card {
|
|
1020
923
|
installments?: Card.Installments;
|
|
1021
924
|
/**
|
|
@@ -1030,8 +933,6 @@ export declare namespace Invoice {
|
|
|
1030
933
|
*/
|
|
1031
934
|
funding_type: 'bank_transfer' | null;
|
|
1032
935
|
}
|
|
1033
|
-
interface IdBankTransfer {
|
|
1034
|
-
}
|
|
1035
936
|
interface Konbini {
|
|
1036
937
|
}
|
|
1037
938
|
interface Payto {
|
|
@@ -1066,13 +967,13 @@ export declare namespace Invoice {
|
|
|
1066
967
|
*/
|
|
1067
968
|
transaction_type: MandateOptions.TransactionType | null;
|
|
1068
969
|
}
|
|
1069
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
970
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
1070
971
|
namespace MandateOptions {
|
|
1071
|
-
type TransactionType = 'business' | 'personal';
|
|
972
|
+
type TransactionType = 'business' | 'personal' | OtherString;
|
|
1072
973
|
}
|
|
1073
974
|
}
|
|
1074
975
|
namespace Bancontact {
|
|
1075
|
-
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
976
|
+
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
1076
977
|
}
|
|
1077
978
|
namespace Card {
|
|
1078
979
|
interface Installments {
|
|
@@ -1081,7 +982,7 @@ export declare namespace Invoice {
|
|
|
1081
982
|
*/
|
|
1082
983
|
enabled: boolean | null;
|
|
1083
984
|
}
|
|
1084
|
-
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
985
|
+
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge' | OtherString;
|
|
1085
986
|
}
|
|
1086
987
|
namespace CustomerBalance {
|
|
1087
988
|
interface BankTransfer {
|
|
@@ -1119,12 +1020,12 @@ export declare namespace Invoice {
|
|
|
1119
1020
|
purpose: MandateOptions.Purpose | null;
|
|
1120
1021
|
}
|
|
1121
1022
|
namespace MandateOptions {
|
|
1122
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1123
|
-
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility';
|
|
1023
|
+
type AmountType = 'fixed' | 'maximum' | OtherString;
|
|
1024
|
+
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility' | OtherString;
|
|
1124
1025
|
}
|
|
1125
1026
|
}
|
|
1126
1027
|
namespace Pix {
|
|
1127
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
1028
|
+
type AmountIncludesIof = 'always' | 'never' | OtherString;
|
|
1128
1029
|
}
|
|
1129
1030
|
namespace Upi {
|
|
1130
1031
|
interface MandateOptions {
|
|
@@ -1146,7 +1047,7 @@ export declare namespace Invoice {
|
|
|
1146
1047
|
end_date: number | null;
|
|
1147
1048
|
}
|
|
1148
1049
|
namespace MandateOptions {
|
|
1149
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1050
|
+
type AmountType = 'fixed' | 'maximum' | OtherString;
|
|
1150
1051
|
}
|
|
1151
1052
|
}
|
|
1152
1053
|
namespace UsBankAccount {
|
|
@@ -1161,22 +1062,18 @@ export declare namespace Invoice {
|
|
|
1161
1062
|
*/
|
|
1162
1063
|
prefetch: Array<FinancialConnections.Prefetch> | null;
|
|
1163
1064
|
}
|
|
1164
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
1065
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
1165
1066
|
namespace FinancialConnections {
|
|
1166
1067
|
interface Filters {
|
|
1167
1068
|
/**
|
|
1168
1069
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1169
1070
|
*/
|
|
1170
1071
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1171
|
-
/**
|
|
1172
|
-
* The institution to use to filter for possible accounts to link.
|
|
1173
|
-
*/
|
|
1174
|
-
institution?: string;
|
|
1175
1072
|
}
|
|
1176
|
-
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1177
|
-
type Prefetch = 'balances' | '
|
|
1073
|
+
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1074
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1178
1075
|
namespace Filters {
|
|
1179
|
-
type AccountSubcategory = 'checking' | 'savings';
|
|
1076
|
+
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1180
1077
|
}
|
|
1181
1078
|
}
|
|
1182
1079
|
}
|
|
@@ -1215,7 +1112,7 @@ export declare namespace Invoice {
|
|
|
1215
1112
|
taxable_amount: number | null;
|
|
1216
1113
|
}
|
|
1217
1114
|
namespace Tax {
|
|
1218
|
-
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
|
|
1115
|
+
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
1219
1116
|
}
|
|
1220
1117
|
}
|
|
1221
1118
|
namespace ThresholdReason {
|
|
@@ -1231,7 +1128,7 @@ export declare namespace Invoice {
|
|
|
1231
1128
|
}
|
|
1232
1129
|
}
|
|
1233
1130
|
namespace TotalPretaxCreditAmount {
|
|
1234
|
-
type Type = 'credit_balance_transaction' | 'discount' |
|
|
1131
|
+
type Type = 'credit_balance_transaction' | 'discount' | OtherString;
|
|
1235
1132
|
}
|
|
1236
1133
|
namespace TotalTax {
|
|
1237
1134
|
type TaxBehavior = 'exclusive' | 'inclusive';
|
|
@@ -1239,9 +1136,9 @@ export declare namespace Invoice {
|
|
|
1239
1136
|
/**
|
|
1240
1137
|
* ID of the tax rate
|
|
1241
1138
|
*/
|
|
1242
|
-
tax_rate: string
|
|
1139
|
+
tax_rate: string;
|
|
1243
1140
|
}
|
|
1244
|
-
type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
|
|
1141
|
+
type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
1245
1142
|
}
|
|
1246
1143
|
}
|
|
1247
1144
|
export interface InvoiceCreateParams {
|
|
@@ -1249,10 +1146,6 @@ export interface InvoiceCreateParams {
|
|
|
1249
1146
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1250
1147
|
*/
|
|
1251
1148
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1252
|
-
/**
|
|
1253
|
-
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1254
|
-
*/
|
|
1255
|
-
amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
|
|
1256
1149
|
/**
|
|
1257
1150
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1258
1151
|
*/
|
|
@@ -1293,10 +1186,6 @@ export interface InvoiceCreateParams {
|
|
|
1293
1186
|
* The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
|
1294
1187
|
*/
|
|
1295
1188
|
days_until_due?: number;
|
|
1296
|
-
/**
|
|
1297
|
-
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
1298
|
-
*/
|
|
1299
|
-
default_margins?: Array<string>;
|
|
1300
1189
|
/**
|
|
1301
1190
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
1302
1191
|
*/
|
|
@@ -1387,24 +1276,6 @@ export interface InvoiceCreateParams {
|
|
|
1387
1276
|
transfer_data?: InvoiceCreateParams.TransferData;
|
|
1388
1277
|
}
|
|
1389
1278
|
export declare namespace InvoiceCreateParams {
|
|
1390
|
-
interface AmountsDue {
|
|
1391
|
-
/**
|
|
1392
|
-
* The amount in cents (or local equivalent).
|
|
1393
|
-
*/
|
|
1394
|
-
amount: number;
|
|
1395
|
-
/**
|
|
1396
|
-
* Number of days from when invoice is finalized until the payment is due.
|
|
1397
|
-
*/
|
|
1398
|
-
days_until_due?: number;
|
|
1399
|
-
/**
|
|
1400
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1401
|
-
*/
|
|
1402
|
-
description: string;
|
|
1403
|
-
/**
|
|
1404
|
-
* Date on which a payment plan's payment is due.
|
|
1405
|
-
*/
|
|
1406
|
-
due_date?: number;
|
|
1407
|
-
}
|
|
1408
1279
|
interface AutomaticTax {
|
|
1409
1280
|
/**
|
|
1410
1281
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -1435,10 +1306,6 @@ export declare namespace InvoiceCreateParams {
|
|
|
1435
1306
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1436
1307
|
*/
|
|
1437
1308
|
discount?: string;
|
|
1438
|
-
/**
|
|
1439
|
-
* Details to determine how long the discount should be applied for.
|
|
1440
|
-
*/
|
|
1441
|
-
discount_end?: Discount.DiscountEnd;
|
|
1442
1309
|
/**
|
|
1443
1310
|
* ID of the promotion code to create a new discount for.
|
|
1444
1311
|
*/
|
|
@@ -1478,7 +1345,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1478
1345
|
*/
|
|
1479
1346
|
payment_method_types?: Emptyable<Array<PaymentSettings.PaymentMethodType>>;
|
|
1480
1347
|
}
|
|
1481
|
-
type PendingInvoiceItemsBehavior = 'exclude' | 'include';
|
|
1348
|
+
type PendingInvoiceItemsBehavior = 'exclude' | 'include' | OtherString;
|
|
1482
1349
|
interface Rendering {
|
|
1483
1350
|
/**
|
|
1484
1351
|
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
|
@@ -1543,43 +1410,11 @@ export declare namespace InvoiceCreateParams {
|
|
|
1543
1410
|
type: Liability.Type;
|
|
1544
1411
|
}
|
|
1545
1412
|
namespace Liability {
|
|
1546
|
-
type Type = 'account' | 'self';
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
namespace Discount {
|
|
1550
|
-
interface DiscountEnd {
|
|
1551
|
-
/**
|
|
1552
|
-
* Time span for the redeemed discount.
|
|
1553
|
-
*/
|
|
1554
|
-
duration?: DiscountEnd.Duration;
|
|
1555
|
-
/**
|
|
1556
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1557
|
-
*/
|
|
1558
|
-
timestamp?: number;
|
|
1559
|
-
/**
|
|
1560
|
-
* The type of calculation made to determine when the discount ends.
|
|
1561
|
-
*/
|
|
1562
|
-
type: DiscountEnd.Type;
|
|
1563
|
-
}
|
|
1564
|
-
namespace DiscountEnd {
|
|
1565
|
-
interface Duration {
|
|
1566
|
-
/**
|
|
1567
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1568
|
-
*/
|
|
1569
|
-
interval: Duration.Interval;
|
|
1570
|
-
/**
|
|
1571
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1572
|
-
*/
|
|
1573
|
-
interval_count: number;
|
|
1574
|
-
}
|
|
1575
|
-
type Type = 'duration' | 'timestamp';
|
|
1576
|
-
namespace Duration {
|
|
1577
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1578
|
-
}
|
|
1413
|
+
type Type = 'account' | 'self' | OtherString;
|
|
1579
1414
|
}
|
|
1580
1415
|
}
|
|
1581
1416
|
namespace Issuer {
|
|
1582
|
-
type Type = 'account' | 'self';
|
|
1417
|
+
type Type = 'account' | 'self' | OtherString;
|
|
1583
1418
|
}
|
|
1584
1419
|
namespace PaymentSettings {
|
|
1585
1420
|
interface PaymentMethodOptions {
|
|
@@ -1591,10 +1426,6 @@ export declare namespace InvoiceCreateParams {
|
|
|
1591
1426
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1592
1427
|
*/
|
|
1593
1428
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
1594
|
-
/**
|
|
1595
|
-
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1596
|
-
*/
|
|
1597
|
-
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
1598
1429
|
/**
|
|
1599
1430
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1600
1431
|
*/
|
|
@@ -1603,10 +1434,6 @@ export declare namespace InvoiceCreateParams {
|
|
|
1603
1434
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1604
1435
|
*/
|
|
1605
1436
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1606
|
-
/**
|
|
1607
|
-
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1608
|
-
*/
|
|
1609
|
-
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1610
1437
|
/**
|
|
1611
1438
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1612
1439
|
*/
|
|
@@ -1632,7 +1459,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1632
1459
|
*/
|
|
1633
1460
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1634
1461
|
}
|
|
1635
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | '
|
|
1462
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | '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' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1636
1463
|
namespace PaymentMethodOptions {
|
|
1637
1464
|
interface AcssDebit {
|
|
1638
1465
|
/**
|
|
@@ -1650,8 +1477,6 @@ export declare namespace InvoiceCreateParams {
|
|
|
1650
1477
|
*/
|
|
1651
1478
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
1652
1479
|
}
|
|
1653
|
-
interface Blik {
|
|
1654
|
-
}
|
|
1655
1480
|
interface Card {
|
|
1656
1481
|
/**
|
|
1657
1482
|
* Installment configuration for payments attempted on this invoice.
|
|
@@ -1674,8 +1499,6 @@ export declare namespace InvoiceCreateParams {
|
|
|
1674
1499
|
*/
|
|
1675
1500
|
funding_type?: string;
|
|
1676
1501
|
}
|
|
1677
|
-
interface IdBankTransfer {
|
|
1678
|
-
}
|
|
1679
1502
|
interface Konbini {
|
|
1680
1503
|
}
|
|
1681
1504
|
interface Payto {
|
|
@@ -1719,13 +1542,13 @@ export declare namespace InvoiceCreateParams {
|
|
|
1719
1542
|
*/
|
|
1720
1543
|
transaction_type?: MandateOptions.TransactionType;
|
|
1721
1544
|
}
|
|
1722
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
1545
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
1723
1546
|
namespace MandateOptions {
|
|
1724
|
-
type TransactionType = 'business' | 'personal';
|
|
1547
|
+
type TransactionType = 'business' | 'personal' | OtherString;
|
|
1725
1548
|
}
|
|
1726
1549
|
}
|
|
1727
1550
|
namespace Bancontact {
|
|
1728
|
-
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
1551
|
+
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
1729
1552
|
}
|
|
1730
1553
|
namespace Card {
|
|
1731
1554
|
interface Installments {
|
|
@@ -1739,7 +1562,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1739
1562
|
*/
|
|
1740
1563
|
plan?: Emptyable<Installments.Plan>;
|
|
1741
1564
|
}
|
|
1742
|
-
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1565
|
+
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge' | OtherString;
|
|
1743
1566
|
namespace Installments {
|
|
1744
1567
|
interface Plan {
|
|
1745
1568
|
/**
|
|
@@ -1757,7 +1580,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1757
1580
|
type: Plan.Type;
|
|
1758
1581
|
}
|
|
1759
1582
|
namespace Plan {
|
|
1760
|
-
type Type = 'bonus' | 'fixed_count' | 'revolving';
|
|
1583
|
+
type Type = 'bonus' | 'fixed_count' | 'revolving' | OtherString;
|
|
1761
1584
|
}
|
|
1762
1585
|
}
|
|
1763
1586
|
}
|
|
@@ -1793,11 +1616,11 @@ export declare namespace InvoiceCreateParams {
|
|
|
1793
1616
|
purpose?: MandateOptions.Purpose;
|
|
1794
1617
|
}
|
|
1795
1618
|
namespace MandateOptions {
|
|
1796
|
-
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility';
|
|
1619
|
+
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility' | OtherString;
|
|
1797
1620
|
}
|
|
1798
1621
|
}
|
|
1799
1622
|
namespace Pix {
|
|
1800
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
1623
|
+
type AmountIncludesIof = 'always' | 'never' | OtherString;
|
|
1801
1624
|
}
|
|
1802
1625
|
namespace Upi {
|
|
1803
1626
|
interface MandateOptions {
|
|
@@ -1819,7 +1642,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1819
1642
|
end_date?: number;
|
|
1820
1643
|
}
|
|
1821
1644
|
namespace MandateOptions {
|
|
1822
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1645
|
+
type AmountType = 'fixed' | 'maximum' | OtherString;
|
|
1823
1646
|
}
|
|
1824
1647
|
}
|
|
1825
1648
|
namespace UsBankAccount {
|
|
@@ -1837,22 +1660,18 @@ export declare namespace InvoiceCreateParams {
|
|
|
1837
1660
|
*/
|
|
1838
1661
|
prefetch?: Array<FinancialConnections.Prefetch>;
|
|
1839
1662
|
}
|
|
1840
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
1663
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
1841
1664
|
namespace FinancialConnections {
|
|
1842
1665
|
interface Filters {
|
|
1843
1666
|
/**
|
|
1844
1667
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1845
1668
|
*/
|
|
1846
1669
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1847
|
-
/**
|
|
1848
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1849
|
-
*/
|
|
1850
|
-
institution?: string;
|
|
1851
1670
|
}
|
|
1852
1671
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1853
|
-
type Prefetch = 'balances' | '
|
|
1672
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1854
1673
|
namespace Filters {
|
|
1855
|
-
type AccountSubcategory = 'checking' | 'savings';
|
|
1674
|
+
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1856
1675
|
}
|
|
1857
1676
|
}
|
|
1858
1677
|
}
|
|
@@ -1953,10 +1772,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1953
1772
|
value: number;
|
|
1954
1773
|
}
|
|
1955
1774
|
namespace Maximum {
|
|
1956
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
1775
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week' | OtherString;
|
|
1957
1776
|
}
|
|
1958
1777
|
namespace Minimum {
|
|
1959
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
1778
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week' | OtherString;
|
|
1960
1779
|
}
|
|
1961
1780
|
}
|
|
1962
1781
|
namespace FixedAmount {
|
|
@@ -1988,10 +1807,6 @@ export interface InvoiceUpdateParams {
|
|
|
1988
1807
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1989
1808
|
*/
|
|
1990
1809
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1991
|
-
/**
|
|
1992
|
-
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1993
|
-
*/
|
|
1994
|
-
amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
|
|
1995
1810
|
/**
|
|
1996
1811
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1997
1812
|
*/
|
|
@@ -2020,10 +1835,6 @@ export interface InvoiceUpdateParams {
|
|
|
2020
1835
|
* The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
|
|
2021
1836
|
*/
|
|
2022
1837
|
days_until_due?: number;
|
|
2023
|
-
/**
|
|
2024
|
-
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
2025
|
-
*/
|
|
2026
|
-
default_margins?: Emptyable<Array<string>>;
|
|
2027
1838
|
/**
|
|
2028
1839
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
2029
1840
|
*/
|
|
@@ -2102,24 +1913,6 @@ export interface InvoiceUpdateParams {
|
|
|
2102
1913
|
transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
|
|
2103
1914
|
}
|
|
2104
1915
|
export declare namespace InvoiceUpdateParams {
|
|
2105
|
-
interface AmountsDue {
|
|
2106
|
-
/**
|
|
2107
|
-
* The amount in cents (or local equivalent).
|
|
2108
|
-
*/
|
|
2109
|
-
amount: number;
|
|
2110
|
-
/**
|
|
2111
|
-
* Number of days from when invoice is finalized until the payment is due.
|
|
2112
|
-
*/
|
|
2113
|
-
days_until_due?: number;
|
|
2114
|
-
/**
|
|
2115
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2116
|
-
*/
|
|
2117
|
-
description: string;
|
|
2118
|
-
/**
|
|
2119
|
-
* Date on which a payment plan's payment is due.
|
|
2120
|
-
*/
|
|
2121
|
-
due_date?: number;
|
|
2122
|
-
}
|
|
2123
1916
|
interface AutomaticTax {
|
|
2124
1917
|
/**
|
|
2125
1918
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -2150,10 +1943,6 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2150
1943
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2151
1944
|
*/
|
|
2152
1945
|
discount?: string;
|
|
2153
|
-
/**
|
|
2154
|
-
* Details to determine how long the discount should be applied for.
|
|
2155
|
-
*/
|
|
2156
|
-
discount_end?: Discount.DiscountEnd;
|
|
2157
1946
|
/**
|
|
2158
1947
|
* ID of the promotion code to create a new discount for.
|
|
2159
1948
|
*/
|
|
@@ -2247,43 +2036,11 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2247
2036
|
type: Liability.Type;
|
|
2248
2037
|
}
|
|
2249
2038
|
namespace Liability {
|
|
2250
|
-
type Type = 'account' | 'self';
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
namespace Discount {
|
|
2254
|
-
interface DiscountEnd {
|
|
2255
|
-
/**
|
|
2256
|
-
* Time span for the redeemed discount.
|
|
2257
|
-
*/
|
|
2258
|
-
duration?: DiscountEnd.Duration;
|
|
2259
|
-
/**
|
|
2260
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2261
|
-
*/
|
|
2262
|
-
timestamp?: number;
|
|
2263
|
-
/**
|
|
2264
|
-
* The type of calculation made to determine when the discount ends.
|
|
2265
|
-
*/
|
|
2266
|
-
type: DiscountEnd.Type;
|
|
2267
|
-
}
|
|
2268
|
-
namespace DiscountEnd {
|
|
2269
|
-
interface Duration {
|
|
2270
|
-
/**
|
|
2271
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2272
|
-
*/
|
|
2273
|
-
interval: Duration.Interval;
|
|
2274
|
-
/**
|
|
2275
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2276
|
-
*/
|
|
2277
|
-
interval_count: number;
|
|
2278
|
-
}
|
|
2279
|
-
type Type = 'duration' | 'timestamp';
|
|
2280
|
-
namespace Duration {
|
|
2281
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2282
|
-
}
|
|
2039
|
+
type Type = 'account' | 'self' | OtherString;
|
|
2283
2040
|
}
|
|
2284
2041
|
}
|
|
2285
2042
|
namespace Issuer {
|
|
2286
|
-
type Type = 'account' | 'self';
|
|
2043
|
+
type Type = 'account' | 'self' | OtherString;
|
|
2287
2044
|
}
|
|
2288
2045
|
namespace PaymentSettings {
|
|
2289
2046
|
interface PaymentMethodOptions {
|
|
@@ -2295,10 +2052,6 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2295
2052
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2296
2053
|
*/
|
|
2297
2054
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
2298
|
-
/**
|
|
2299
|
-
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2300
|
-
*/
|
|
2301
|
-
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
2302
2055
|
/**
|
|
2303
2056
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2304
2057
|
*/
|
|
@@ -2307,10 +2060,6 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2307
2060
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2308
2061
|
*/
|
|
2309
2062
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2310
|
-
/**
|
|
2311
|
-
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2312
|
-
*/
|
|
2313
|
-
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2314
2063
|
/**
|
|
2315
2064
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2316
2065
|
*/
|
|
@@ -2336,7 +2085,7 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2336
2085
|
*/
|
|
2337
2086
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2338
2087
|
}
|
|
2339
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | '
|
|
2088
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | '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' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
2340
2089
|
namespace PaymentMethodOptions {
|
|
2341
2090
|
interface AcssDebit {
|
|
2342
2091
|
/**
|
|
@@ -2354,8 +2103,6 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2354
2103
|
*/
|
|
2355
2104
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
2356
2105
|
}
|
|
2357
|
-
interface Blik {
|
|
2358
|
-
}
|
|
2359
2106
|
interface Card {
|
|
2360
2107
|
/**
|
|
2361
2108
|
* Installment configuration for payments attempted on this invoice.
|
|
@@ -2378,8 +2125,6 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2378
2125
|
*/
|
|
2379
2126
|
funding_type?: string;
|
|
2380
2127
|
}
|
|
2381
|
-
interface IdBankTransfer {
|
|
2382
|
-
}
|
|
2383
2128
|
interface Konbini {
|
|
2384
2129
|
}
|
|
2385
2130
|
interface Payto {
|
|
@@ -2423,13 +2168,13 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2423
2168
|
*/
|
|
2424
2169
|
transaction_type?: MandateOptions.TransactionType;
|
|
2425
2170
|
}
|
|
2426
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
2171
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
2427
2172
|
namespace MandateOptions {
|
|
2428
|
-
type TransactionType = 'business' | 'personal';
|
|
2173
|
+
type TransactionType = 'business' | 'personal' | OtherString;
|
|
2429
2174
|
}
|
|
2430
2175
|
}
|
|
2431
2176
|
namespace Bancontact {
|
|
2432
|
-
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
2177
|
+
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
2433
2178
|
}
|
|
2434
2179
|
namespace Card {
|
|
2435
2180
|
interface Installments {
|
|
@@ -2443,7 +2188,7 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2443
2188
|
*/
|
|
2444
2189
|
plan?: Emptyable<Installments.Plan>;
|
|
2445
2190
|
}
|
|
2446
|
-
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2191
|
+
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge' | OtherString;
|
|
2447
2192
|
namespace Installments {
|
|
2448
2193
|
interface Plan {
|
|
2449
2194
|
/**
|
|
@@ -2461,7 +2206,7 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2461
2206
|
type: Plan.Type;
|
|
2462
2207
|
}
|
|
2463
2208
|
namespace Plan {
|
|
2464
|
-
type Type = 'bonus' | 'fixed_count' | 'revolving';
|
|
2209
|
+
type Type = 'bonus' | 'fixed_count' | 'revolving' | OtherString;
|
|
2465
2210
|
}
|
|
2466
2211
|
}
|
|
2467
2212
|
}
|
|
@@ -2497,11 +2242,11 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2497
2242
|
purpose?: MandateOptions.Purpose;
|
|
2498
2243
|
}
|
|
2499
2244
|
namespace MandateOptions {
|
|
2500
|
-
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility';
|
|
2245
|
+
type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility' | OtherString;
|
|
2501
2246
|
}
|
|
2502
2247
|
}
|
|
2503
2248
|
namespace Pix {
|
|
2504
|
-
type AmountIncludesIof = 'always' | 'never';
|
|
2249
|
+
type AmountIncludesIof = 'always' | 'never' | OtherString;
|
|
2505
2250
|
}
|
|
2506
2251
|
namespace Upi {
|
|
2507
2252
|
interface MandateOptions {
|
|
@@ -2523,7 +2268,7 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2523
2268
|
end_date?: number;
|
|
2524
2269
|
}
|
|
2525
2270
|
namespace MandateOptions {
|
|
2526
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2271
|
+
type AmountType = 'fixed' | 'maximum' | OtherString;
|
|
2527
2272
|
}
|
|
2528
2273
|
}
|
|
2529
2274
|
namespace UsBankAccount {
|
|
@@ -2541,22 +2286,18 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2541
2286
|
*/
|
|
2542
2287
|
prefetch?: Array<FinancialConnections.Prefetch>;
|
|
2543
2288
|
}
|
|
2544
|
-
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
2289
|
+
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits' | OtherString;
|
|
2545
2290
|
namespace FinancialConnections {
|
|
2546
2291
|
interface Filters {
|
|
2547
2292
|
/**
|
|
2548
2293
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2549
2294
|
*/
|
|
2550
2295
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2551
|
-
/**
|
|
2552
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
2553
|
-
*/
|
|
2554
|
-
institution?: string;
|
|
2555
2296
|
}
|
|
2556
2297
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
2557
|
-
type Prefetch = 'balances' | '
|
|
2298
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2558
2299
|
namespace Filters {
|
|
2559
|
-
type AccountSubcategory = 'checking' | 'savings';
|
|
2300
|
+
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
2560
2301
|
}
|
|
2561
2302
|
}
|
|
2562
2303
|
}
|
|
@@ -2657,10 +2398,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2657
2398
|
value: number;
|
|
2658
2399
|
}
|
|
2659
2400
|
namespace Maximum {
|
|
2660
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
2401
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week' | OtherString;
|
|
2661
2402
|
}
|
|
2662
2403
|
namespace Minimum {
|
|
2663
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
2404
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week' | OtherString;
|
|
2664
2405
|
}
|
|
2665
2406
|
}
|
|
2666
2407
|
namespace FixedAmount {
|
|
@@ -2714,7 +2455,7 @@ export interface InvoiceListParams extends PaginationParams {
|
|
|
2714
2455
|
}
|
|
2715
2456
|
export declare namespace InvoiceListParams {
|
|
2716
2457
|
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
2717
|
-
type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
2458
|
+
type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | OtherString;
|
|
2718
2459
|
}
|
|
2719
2460
|
export interface InvoiceDeleteParams {
|
|
2720
2461
|
}
|
|
@@ -2756,10 +2497,6 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2756
2497
|
* ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
|
2757
2498
|
*/
|
|
2758
2499
|
invoice_item?: string;
|
|
2759
|
-
/**
|
|
2760
|
-
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
2761
|
-
*/
|
|
2762
|
-
margins?: Emptyable<Array<string>>;
|
|
2763
2500
|
/**
|
|
2764
2501
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2765
2502
|
*/
|
|
@@ -2803,10 +2540,6 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2803
2540
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2804
2541
|
*/
|
|
2805
2542
|
discount?: string;
|
|
2806
|
-
/**
|
|
2807
|
-
* Details to determine how long the discount should be applied for.
|
|
2808
|
-
*/
|
|
2809
|
-
discount_end?: Discount.DiscountEnd;
|
|
2810
2543
|
/**
|
|
2811
2544
|
* ID of the promotion code to create a new discount for.
|
|
2812
2545
|
*/
|
|
@@ -2874,38 +2607,6 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2874
2607
|
*/
|
|
2875
2608
|
taxable_amount: number;
|
|
2876
2609
|
}
|
|
2877
|
-
namespace Discount {
|
|
2878
|
-
interface DiscountEnd {
|
|
2879
|
-
/**
|
|
2880
|
-
* Time span for the redeemed discount.
|
|
2881
|
-
*/
|
|
2882
|
-
duration?: DiscountEnd.Duration;
|
|
2883
|
-
/**
|
|
2884
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2885
|
-
*/
|
|
2886
|
-
timestamp?: number;
|
|
2887
|
-
/**
|
|
2888
|
-
* The type of calculation made to determine when the discount ends.
|
|
2889
|
-
*/
|
|
2890
|
-
type: DiscountEnd.Type;
|
|
2891
|
-
}
|
|
2892
|
-
namespace DiscountEnd {
|
|
2893
|
-
interface Duration {
|
|
2894
|
-
/**
|
|
2895
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2896
|
-
*/
|
|
2897
|
-
interval: Duration.Interval;
|
|
2898
|
-
/**
|
|
2899
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2900
|
-
*/
|
|
2901
|
-
interval_count: number;
|
|
2902
|
-
}
|
|
2903
|
-
type Type = 'duration' | 'timestamp';
|
|
2904
|
-
namespace Duration {
|
|
2905
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
2610
|
namespace PriceData {
|
|
2910
2611
|
interface ProductData {
|
|
2911
2612
|
/**
|
|
@@ -2928,28 +2629,12 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2928
2629
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
2929
2630
|
*/
|
|
2930
2631
|
tax_code?: string;
|
|
2931
|
-
/**
|
|
2932
|
-
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
2933
|
-
*/
|
|
2934
|
-
tax_details?: ProductData.TaxDetails;
|
|
2935
2632
|
/**
|
|
2936
2633
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
2937
2634
|
*/
|
|
2938
2635
|
unit_label?: string;
|
|
2939
2636
|
}
|
|
2940
2637
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
2941
|
-
namespace ProductData {
|
|
2942
|
-
interface TaxDetails {
|
|
2943
|
-
/**
|
|
2944
|
-
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
2945
|
-
*/
|
|
2946
|
-
performance_location?: string;
|
|
2947
|
-
/**
|
|
2948
|
-
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
2949
|
-
*/
|
|
2950
|
-
tax_code?: Emptyable<string>;
|
|
2951
|
-
}
|
|
2952
|
-
}
|
|
2953
2638
|
}
|
|
2954
2639
|
namespace TaxAmount {
|
|
2955
2640
|
interface TaxRateData {
|
|
@@ -2990,19 +2675,15 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2990
2675
|
*/
|
|
2991
2676
|
tax_type?: TaxRateData.TaxType;
|
|
2992
2677
|
}
|
|
2993
|
-
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
|
|
2678
|
+
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
2994
2679
|
namespace TaxRateData {
|
|
2995
|
-
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state';
|
|
2996
|
-
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat';
|
|
2680
|
+
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state' | OtherString;
|
|
2681
|
+
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'mass_transit_parking_tax' | 'parking_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat' | OtherString;
|
|
2997
2682
|
}
|
|
2998
2683
|
}
|
|
2999
2684
|
}
|
|
3000
2685
|
}
|
|
3001
2686
|
export interface InvoiceAttachPaymentParams {
|
|
3002
|
-
/**
|
|
3003
|
-
* The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
|
3004
|
-
*/
|
|
3005
|
-
amount_requested?: number;
|
|
3006
2687
|
/**
|
|
3007
2688
|
* Specifies which fields in the response should be expanded.
|
|
3008
2689
|
*/
|
|
@@ -3015,38 +2696,6 @@ export interface InvoiceAttachPaymentParams {
|
|
|
3015
2696
|
* The ID of the PaymentRecord to attach to the invoice.
|
|
3016
2697
|
*/
|
|
3017
2698
|
payment_record?: string;
|
|
3018
|
-
/**
|
|
3019
|
-
* The PaymentRecord data for attaching an out of band payment to the invoice.
|
|
3020
|
-
*/
|
|
3021
|
-
payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
|
|
3022
|
-
}
|
|
3023
|
-
export declare namespace InvoiceAttachPaymentParams {
|
|
3024
|
-
interface PaymentRecordData {
|
|
3025
|
-
/**
|
|
3026
|
-
* The amount that was paid out of band.
|
|
3027
|
-
*/
|
|
3028
|
-
amount: number;
|
|
3029
|
-
/**
|
|
3030
|
-
* The currency that was paid out of band.
|
|
3031
|
-
*/
|
|
3032
|
-
currency: string;
|
|
3033
|
-
/**
|
|
3034
|
-
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3035
|
-
*/
|
|
3036
|
-
metadata?: Emptyable<MetadataParam>;
|
|
3037
|
-
/**
|
|
3038
|
-
* The type of money movement for this out of band payment record.
|
|
3039
|
-
*/
|
|
3040
|
-
money_movement_type: string;
|
|
3041
|
-
/**
|
|
3042
|
-
* The timestamp when this out of band payment was paid.
|
|
3043
|
-
*/
|
|
3044
|
-
paid_at?: number;
|
|
3045
|
-
/**
|
|
3046
|
-
* The reference for this out of band payment record.
|
|
3047
|
-
*/
|
|
3048
|
-
payment_reference?: string;
|
|
3049
|
-
}
|
|
3050
2699
|
}
|
|
3051
2700
|
export interface InvoiceCreatePreviewParams {
|
|
3052
2701
|
/**
|
|
@@ -3152,10 +2801,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3152
2801
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3153
2802
|
*/
|
|
3154
2803
|
discount?: string;
|
|
3155
|
-
/**
|
|
3156
|
-
* Details to determine how long the discount should be applied for.
|
|
3157
|
-
*/
|
|
3158
|
-
discount_end?: Discount.DiscountEnd;
|
|
3159
2804
|
/**
|
|
3160
2805
|
* ID of the promotion code to create a new discount for.
|
|
3161
2806
|
*/
|
|
@@ -3241,16 +2886,8 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3241
2886
|
*/
|
|
3242
2887
|
type: Issuer.Type;
|
|
3243
2888
|
}
|
|
3244
|
-
type PreviewMode = 'next' | 'recurring';
|
|
2889
|
+
type PreviewMode = 'next' | 'recurring' | OtherString;
|
|
3245
2890
|
interface ScheduleDetails {
|
|
3246
|
-
/**
|
|
3247
|
-
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
3248
|
-
*/
|
|
3249
|
-
amendments?: Array<ScheduleDetails.Amendment>;
|
|
3250
|
-
/**
|
|
3251
|
-
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
3252
|
-
*/
|
|
3253
|
-
billing_behavior?: ScheduleDetails.BillingBehavior;
|
|
3254
2891
|
/**
|
|
3255
2892
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
3256
2893
|
*/
|
|
@@ -3263,10 +2900,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3263
2900
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
3264
2901
|
*/
|
|
3265
2902
|
phases?: Array<ScheduleDetails.Phase>;
|
|
3266
|
-
/**
|
|
3267
|
-
* Provide any time periods to bill in advance.
|
|
3268
|
-
*/
|
|
3269
|
-
prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
|
|
3270
2903
|
/**
|
|
3271
2904
|
* In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
3272
2905
|
*/
|
|
@@ -3306,17 +2939,9 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3306
2939
|
*/
|
|
3307
2940
|
items?: Array<SubscriptionDetails.Item>;
|
|
3308
2941
|
/**
|
|
3309
|
-
*
|
|
3310
|
-
*
|
|
3311
|
-
* To receive a preview invoice, set `invoicing_behavior` to `invoice`. A preview isn't available if the `bill_for` options produce no billable amounts.
|
|
3312
|
-
*
|
|
3313
|
-
* `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
|
|
3314
|
-
*/
|
|
3315
|
-
pause?: SubscriptionDetails.Pause;
|
|
3316
|
-
/**
|
|
3317
|
-
* The pre-billing to apply to the subscription as a preview.
|
|
2942
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3318
2943
|
*/
|
|
3319
|
-
|
|
2944
|
+
metadata?: Emptyable<MetadataParam>;
|
|
3320
2945
|
/**
|
|
3321
2946
|
* 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`.
|
|
3322
2947
|
*/
|
|
@@ -3350,7 +2975,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3350
2975
|
type: Liability.Type;
|
|
3351
2976
|
}
|
|
3352
2977
|
namespace Liability {
|
|
3353
|
-
type Type = 'account' | 'self';
|
|
2978
|
+
type Type = 'account' | 'self' | OtherString;
|
|
3354
2979
|
}
|
|
3355
2980
|
}
|
|
3356
2981
|
namespace CustomerDetails {
|
|
@@ -3377,7 +3002,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3377
3002
|
type TaxExempt = 'exempt' | 'none' | 'reverse';
|
|
3378
3003
|
interface TaxId {
|
|
3379
3004
|
/**
|
|
3380
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
3005
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
3381
3006
|
*/
|
|
3382
3007
|
type: TaxId.Type;
|
|
3383
3008
|
/**
|
|
@@ -3386,39 +3011,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3386
3011
|
value: string;
|
|
3387
3012
|
}
|
|
3388
3013
|
namespace TaxId {
|
|
3389
|
-
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
|
|
3390
|
-
}
|
|
3391
|
-
}
|
|
3392
|
-
namespace Discount {
|
|
3393
|
-
interface DiscountEnd {
|
|
3394
|
-
/**
|
|
3395
|
-
* Time span for the redeemed discount.
|
|
3396
|
-
*/
|
|
3397
|
-
duration?: DiscountEnd.Duration;
|
|
3398
|
-
/**
|
|
3399
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3400
|
-
*/
|
|
3401
|
-
timestamp?: number;
|
|
3402
|
-
/**
|
|
3403
|
-
* The type of calculation made to determine when the discount ends.
|
|
3404
|
-
*/
|
|
3405
|
-
type: DiscountEnd.Type;
|
|
3406
|
-
}
|
|
3407
|
-
namespace DiscountEnd {
|
|
3408
|
-
interface Duration {
|
|
3409
|
-
/**
|
|
3410
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3411
|
-
*/
|
|
3412
|
-
interval: Duration.Interval;
|
|
3413
|
-
/**
|
|
3414
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3415
|
-
*/
|
|
3416
|
-
interval_count: number;
|
|
3417
|
-
}
|
|
3418
|
-
type Type = 'duration' | 'timestamp';
|
|
3419
|
-
namespace Duration {
|
|
3420
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3421
|
-
}
|
|
3014
|
+
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
|
|
3422
3015
|
}
|
|
3423
3016
|
}
|
|
3424
3017
|
namespace InvoiceItem {
|
|
@@ -3431,10 +3024,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3431
3024
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3432
3025
|
*/
|
|
3433
3026
|
discount?: string;
|
|
3434
|
-
/**
|
|
3435
|
-
* Details to determine how long the discount should be applied for.
|
|
3436
|
-
*/
|
|
3437
|
-
discount_end?: Discount.DiscountEnd;
|
|
3438
3027
|
/**
|
|
3439
3028
|
* ID of the promotion code to create a new discount for.
|
|
3440
3029
|
*/
|
|
@@ -3473,96 +3062,21 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3473
3062
|
unit_amount_decimal?: Decimal;
|
|
3474
3063
|
}
|
|
3475
3064
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3476
|
-
namespace Discount {
|
|
3477
|
-
interface DiscountEnd {
|
|
3478
|
-
/**
|
|
3479
|
-
* Time span for the redeemed discount.
|
|
3480
|
-
*/
|
|
3481
|
-
duration?: DiscountEnd.Duration;
|
|
3482
|
-
/**
|
|
3483
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3484
|
-
*/
|
|
3485
|
-
timestamp?: number;
|
|
3486
|
-
/**
|
|
3487
|
-
* The type of calculation made to determine when the discount ends.
|
|
3488
|
-
*/
|
|
3489
|
-
type: DiscountEnd.Type;
|
|
3490
|
-
}
|
|
3491
|
-
namespace DiscountEnd {
|
|
3492
|
-
interface Duration {
|
|
3493
|
-
/**
|
|
3494
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3495
|
-
*/
|
|
3496
|
-
interval: Duration.Interval;
|
|
3497
|
-
/**
|
|
3498
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3499
|
-
*/
|
|
3500
|
-
interval_count: number;
|
|
3501
|
-
}
|
|
3502
|
-
type Type = 'duration' | 'timestamp';
|
|
3503
|
-
namespace Duration {
|
|
3504
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3505
|
-
}
|
|
3506
|
-
}
|
|
3507
|
-
}
|
|
3508
3065
|
namespace PriceData {
|
|
3509
3066
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3510
3067
|
}
|
|
3511
3068
|
}
|
|
3512
3069
|
namespace Issuer {
|
|
3513
|
-
type Type = 'account' | 'self';
|
|
3070
|
+
type Type = 'account' | 'self' | OtherString;
|
|
3514
3071
|
}
|
|
3515
3072
|
namespace ScheduleDetails {
|
|
3516
|
-
interface
|
|
3517
|
-
/**
|
|
3518
|
-
* Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
|
|
3519
|
-
*/
|
|
3520
|
-
amendment_end?: Amendment.AmendmentEnd;
|
|
3073
|
+
interface BillingMode {
|
|
3521
3074
|
/**
|
|
3522
|
-
*
|
|
3075
|
+
* Configure behavior for flexible billing mode.
|
|
3523
3076
|
*/
|
|
3524
|
-
|
|
3077
|
+
flexible?: BillingMode.Flexible;
|
|
3525
3078
|
/**
|
|
3526
|
-
*
|
|
3527
|
-
*/
|
|
3528
|
-
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
3529
|
-
/**
|
|
3530
|
-
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
3531
|
-
*/
|
|
3532
|
-
discount_actions?: Array<Amendment.DiscountAction>;
|
|
3533
|
-
/**
|
|
3534
|
-
* Changes to the subscription items during the amendment time span.
|
|
3535
|
-
*/
|
|
3536
|
-
item_actions?: Array<Amendment.ItemAction>;
|
|
3537
|
-
/**
|
|
3538
|
-
* Instructions for how to modify phase metadata
|
|
3539
|
-
*/
|
|
3540
|
-
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
3541
|
-
/**
|
|
3542
|
-
* Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
|
|
3543
|
-
*/
|
|
3544
|
-
proration_behavior?: Amendment.ProrationBehavior;
|
|
3545
|
-
/**
|
|
3546
|
-
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
3547
|
-
*/
|
|
3548
|
-
set_pause_collection?: Amendment.SetPauseCollection;
|
|
3549
|
-
/**
|
|
3550
|
-
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
3551
|
-
*/
|
|
3552
|
-
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
3553
|
-
/**
|
|
3554
|
-
* Settings related to subscription trials.
|
|
3555
|
-
*/
|
|
3556
|
-
trial_settings?: Amendment.TrialSettings;
|
|
3557
|
-
}
|
|
3558
|
-
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
3559
|
-
interface BillingMode {
|
|
3560
|
-
/**
|
|
3561
|
-
* Configure behavior for flexible billing mode.
|
|
3562
|
-
*/
|
|
3563
|
-
flexible?: BillingMode.Flexible;
|
|
3564
|
-
/**
|
|
3565
|
-
* Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
|
|
3079
|
+
* Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
|
|
3566
3080
|
*/
|
|
3567
3081
|
type: BillingMode.Type;
|
|
3568
3082
|
}
|
|
@@ -3636,16 +3150,12 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3636
3150
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
3637
3151
|
*/
|
|
3638
3152
|
on_behalf_of?: string;
|
|
3639
|
-
/**
|
|
3640
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
3641
|
-
*/
|
|
3642
|
-
pause_collection?: Phase.PauseCollection;
|
|
3643
3153
|
/**
|
|
3644
3154
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
3645
3155
|
*/
|
|
3646
3156
|
proration_behavior?: Phase.ProrationBehavior;
|
|
3647
3157
|
/**
|
|
3648
|
-
* The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
3158
|
+
* The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase. Prefer to specify `now` over an explicit timestamp when appropriate to avoid unexpected behavior due to request delays or clock skew resulting in the phase being slightly backdated or postdated.
|
|
3649
3159
|
*/
|
|
3650
3160
|
start_date?: number | 'now';
|
|
3651
3161
|
/**
|
|
@@ -3657,467 +3167,11 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3657
3167
|
*/
|
|
3658
3168
|
trial?: boolean;
|
|
3659
3169
|
/**
|
|
3660
|
-
*
|
|
3661
|
-
*/
|
|
3662
|
-
trial_continuation?: Phase.TrialContinuation;
|
|
3663
|
-
/**
|
|
3664
|
-
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
3170
|
+
* Sets the phase to trialing from the start date to this date. Must be within the phase. When previewing an update, if combined with `trial=true`, it must match the phase end date.
|
|
3665
3171
|
*/
|
|
3666
3172
|
trial_end?: number | 'now';
|
|
3667
|
-
/**
|
|
3668
|
-
* Settings related to subscription trials.
|
|
3669
|
-
*/
|
|
3670
|
-
trial_settings?: Phase.TrialSettings;
|
|
3671
|
-
}
|
|
3672
|
-
interface Prebilling {
|
|
3673
|
-
/**
|
|
3674
|
-
* The end of the prebilled time period.
|
|
3675
|
-
*/
|
|
3676
|
-
bill_until?: Prebilling.BillUntil;
|
|
3677
|
-
/**
|
|
3678
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
3679
|
-
*/
|
|
3680
|
-
iterations?: number;
|
|
3681
|
-
}
|
|
3682
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3683
|
-
namespace Amendment {
|
|
3684
|
-
interface AmendmentEnd {
|
|
3685
|
-
/**
|
|
3686
|
-
* Use the `end` time of a given discount.
|
|
3687
|
-
*/
|
|
3688
|
-
discount_end?: AmendmentEnd.DiscountEnd;
|
|
3689
|
-
/**
|
|
3690
|
-
* Time span for the amendment starting from the `amendment_start`.
|
|
3691
|
-
*/
|
|
3692
|
-
duration?: AmendmentEnd.Duration;
|
|
3693
|
-
/**
|
|
3694
|
-
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
3695
|
-
*/
|
|
3696
|
-
timestamp?: number;
|
|
3697
|
-
/**
|
|
3698
|
-
* Select one of three ways to pass the `amendment_end`.
|
|
3699
|
-
*/
|
|
3700
|
-
type: AmendmentEnd.Type;
|
|
3701
|
-
}
|
|
3702
|
-
interface AmendmentStart {
|
|
3703
|
-
/**
|
|
3704
|
-
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
3705
|
-
*/
|
|
3706
|
-
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
3707
|
-
/**
|
|
3708
|
-
* Use the `end` time of a given discount.
|
|
3709
|
-
*/
|
|
3710
|
-
discount_end?: AmendmentStart.DiscountEnd;
|
|
3711
|
-
/**
|
|
3712
|
-
* A precise Unix timestamp for the amendment to start.
|
|
3713
|
-
*/
|
|
3714
|
-
timestamp?: number;
|
|
3715
|
-
/**
|
|
3716
|
-
* Select one of three ways to pass the `amendment_start`.
|
|
3717
|
-
*/
|
|
3718
|
-
type: AmendmentStart.Type;
|
|
3719
|
-
}
|
|
3720
|
-
type BillingCycleAnchor = 'amendment_start' | 'automatic';
|
|
3721
|
-
interface DiscountAction {
|
|
3722
|
-
/**
|
|
3723
|
-
* Details of the discount to add.
|
|
3724
|
-
*/
|
|
3725
|
-
add?: DiscountAction.Add;
|
|
3726
|
-
/**
|
|
3727
|
-
* Details of the discount to remove.
|
|
3728
|
-
*/
|
|
3729
|
-
remove?: DiscountAction.Remove;
|
|
3730
|
-
/**
|
|
3731
|
-
* Details of the discount to replace the existing discounts with.
|
|
3732
|
-
*/
|
|
3733
|
-
set?: DiscountAction.Set;
|
|
3734
|
-
/**
|
|
3735
|
-
* Determines the type of discount action.
|
|
3736
|
-
*/
|
|
3737
|
-
type: DiscountAction.Type;
|
|
3738
|
-
}
|
|
3739
|
-
interface ItemAction {
|
|
3740
|
-
/**
|
|
3741
|
-
* Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
3742
|
-
*/
|
|
3743
|
-
add?: ItemAction.Add;
|
|
3744
|
-
/**
|
|
3745
|
-
* Details of the subscription item to remove.
|
|
3746
|
-
*/
|
|
3747
|
-
remove?: ItemAction.Remove;
|
|
3748
|
-
/**
|
|
3749
|
-
* Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
|
|
3750
|
-
*/
|
|
3751
|
-
set?: ItemAction.Set;
|
|
3752
|
-
/**
|
|
3753
|
-
* Determines the type of item action.
|
|
3754
|
-
*/
|
|
3755
|
-
type: ItemAction.Type;
|
|
3756
|
-
}
|
|
3757
|
-
interface MetadataAction {
|
|
3758
|
-
/**
|
|
3759
|
-
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
3760
|
-
*/
|
|
3761
|
-
add?: {
|
|
3762
|
-
[key: string]: string;
|
|
3763
|
-
};
|
|
3764
|
-
/**
|
|
3765
|
-
* Keys to remove from schedule phase metadata.
|
|
3766
|
-
*/
|
|
3767
|
-
remove?: Array<string>;
|
|
3768
|
-
/**
|
|
3769
|
-
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
3770
|
-
*/
|
|
3771
|
-
set?: Emptyable<{
|
|
3772
|
-
[key: string]: string;
|
|
3773
|
-
}>;
|
|
3774
|
-
/**
|
|
3775
|
-
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
3776
|
-
*/
|
|
3777
|
-
type: MetadataAction.Type;
|
|
3778
|
-
}
|
|
3779
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3780
|
-
interface SetPauseCollection {
|
|
3781
|
-
/**
|
|
3782
|
-
* Details of the pause_collection behavior to apply to the amendment.
|
|
3783
|
-
*/
|
|
3784
|
-
set?: SetPauseCollection.Set;
|
|
3785
|
-
/**
|
|
3786
|
-
* Determines the type of the pause_collection amendment.
|
|
3787
|
-
*/
|
|
3788
|
-
type: SetPauseCollection.Type;
|
|
3789
|
-
}
|
|
3790
|
-
type SetScheduleEnd = 'amendment_end' | 'amendment_start';
|
|
3791
|
-
interface TrialSettings {
|
|
3792
|
-
/**
|
|
3793
|
-
* Defines how the subscription should behave when a trial ends.
|
|
3794
|
-
*/
|
|
3795
|
-
end_behavior?: TrialSettings.EndBehavior;
|
|
3796
|
-
}
|
|
3797
|
-
namespace AmendmentEnd {
|
|
3798
|
-
interface DiscountEnd {
|
|
3799
|
-
/**
|
|
3800
|
-
* The ID of a specific discount.
|
|
3801
|
-
*/
|
|
3802
|
-
discount: string;
|
|
3803
|
-
}
|
|
3804
|
-
interface Duration {
|
|
3805
|
-
/**
|
|
3806
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3807
|
-
*/
|
|
3808
|
-
interval: Duration.Interval;
|
|
3809
|
-
/**
|
|
3810
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3811
|
-
*/
|
|
3812
|
-
interval_count: number;
|
|
3813
|
-
}
|
|
3814
|
-
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
3815
|
-
namespace Duration {
|
|
3816
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3817
|
-
}
|
|
3818
|
-
}
|
|
3819
|
-
namespace AmendmentStart {
|
|
3820
|
-
interface AmendmentEnd {
|
|
3821
|
-
/**
|
|
3822
|
-
* The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
|
|
3823
|
-
*/
|
|
3824
|
-
index: number;
|
|
3825
|
-
}
|
|
3826
|
-
interface DiscountEnd {
|
|
3827
|
-
/**
|
|
3828
|
-
* The ID of a specific discount.
|
|
3829
|
-
*/
|
|
3830
|
-
discount: string;
|
|
3831
|
-
}
|
|
3832
|
-
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
3833
|
-
}
|
|
3834
|
-
namespace DiscountAction {
|
|
3835
|
-
interface Add {
|
|
3836
|
-
/**
|
|
3837
|
-
* The coupon code to redeem.
|
|
3838
|
-
*/
|
|
3839
|
-
coupon?: string;
|
|
3840
|
-
/**
|
|
3841
|
-
* An ID of an existing discount for a coupon that was already redeemed.
|
|
3842
|
-
*/
|
|
3843
|
-
discount?: string;
|
|
3844
|
-
/**
|
|
3845
|
-
* Details to determine how long the discount should be applied for.
|
|
3846
|
-
*/
|
|
3847
|
-
discount_end?: Add.DiscountEnd;
|
|
3848
|
-
/**
|
|
3849
|
-
* The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
|
|
3850
|
-
*/
|
|
3851
|
-
index?: number;
|
|
3852
|
-
/**
|
|
3853
|
-
* The promotion code to redeem.
|
|
3854
|
-
*/
|
|
3855
|
-
promotion_code?: string;
|
|
3856
|
-
}
|
|
3857
|
-
interface Remove {
|
|
3858
|
-
/**
|
|
3859
|
-
* The coupon code to remove from the `discounts` array.
|
|
3860
|
-
*/
|
|
3861
|
-
coupon?: string;
|
|
3862
|
-
/**
|
|
3863
|
-
* The ID of a discount to remove from the `discounts` array.
|
|
3864
|
-
*/
|
|
3865
|
-
discount?: string;
|
|
3866
|
-
/**
|
|
3867
|
-
* The ID of a promotion code to remove from the `discounts` array.
|
|
3868
|
-
*/
|
|
3869
|
-
promotion_code?: string;
|
|
3870
|
-
}
|
|
3871
|
-
interface Set {
|
|
3872
|
-
/**
|
|
3873
|
-
* The coupon code to replace the `discounts` array with.
|
|
3874
|
-
*/
|
|
3875
|
-
coupon?: string;
|
|
3876
|
-
/**
|
|
3877
|
-
* An ID of an existing discount to replace the `discounts` array with.
|
|
3878
|
-
*/
|
|
3879
|
-
discount?: string;
|
|
3880
|
-
/**
|
|
3881
|
-
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
3882
|
-
*/
|
|
3883
|
-
promotion_code?: string;
|
|
3884
|
-
}
|
|
3885
|
-
type Type = 'add' | 'remove' | 'set';
|
|
3886
|
-
namespace Add {
|
|
3887
|
-
interface DiscountEnd {
|
|
3888
|
-
/**
|
|
3889
|
-
* The type of calculation made to determine when the discount ends.
|
|
3890
|
-
*/
|
|
3891
|
-
type: 'amendment_end';
|
|
3892
|
-
}
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
namespace ItemAction {
|
|
3896
|
-
interface Add {
|
|
3897
|
-
/**
|
|
3898
|
-
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
3899
|
-
*/
|
|
3900
|
-
discounts?: Array<Add.Discount>;
|
|
3901
|
-
/**
|
|
3902
|
-
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3903
|
-
*/
|
|
3904
|
-
metadata?: MetadataParam;
|
|
3905
|
-
/**
|
|
3906
|
-
* The ID of the price object.
|
|
3907
|
-
*/
|
|
3908
|
-
price: string;
|
|
3909
|
-
/**
|
|
3910
|
-
* Quantity for this item.
|
|
3911
|
-
*/
|
|
3912
|
-
quantity?: number;
|
|
3913
|
-
/**
|
|
3914
|
-
* The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
3915
|
-
*/
|
|
3916
|
-
tax_rates?: Array<string>;
|
|
3917
|
-
/**
|
|
3918
|
-
* Options that configure the trial on the subscription item.
|
|
3919
|
-
*/
|
|
3920
|
-
trial?: Add.Trial;
|
|
3921
|
-
/**
|
|
3922
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
3923
|
-
*/
|
|
3924
|
-
trial_offer?: string;
|
|
3925
|
-
}
|
|
3926
|
-
interface Remove {
|
|
3927
|
-
/**
|
|
3928
|
-
* ID of a price to remove.
|
|
3929
|
-
*/
|
|
3930
|
-
price: string;
|
|
3931
|
-
}
|
|
3932
|
-
interface Set {
|
|
3933
|
-
/**
|
|
3934
|
-
* If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
|
|
3935
|
-
*/
|
|
3936
|
-
discounts?: Array<Set.Discount>;
|
|
3937
|
-
/**
|
|
3938
|
-
* If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
|
|
3939
|
-
*/
|
|
3940
|
-
metadata?: MetadataParam;
|
|
3941
|
-
/**
|
|
3942
|
-
* The ID of the price object.
|
|
3943
|
-
*/
|
|
3944
|
-
price: string;
|
|
3945
|
-
/**
|
|
3946
|
-
* If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
|
|
3947
|
-
*/
|
|
3948
|
-
quantity?: number;
|
|
3949
|
-
/**
|
|
3950
|
-
* If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
|
|
3951
|
-
*/
|
|
3952
|
-
tax_rates?: Array<string>;
|
|
3953
|
-
/**
|
|
3954
|
-
* If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
3955
|
-
*/
|
|
3956
|
-
trial?: Set.Trial;
|
|
3957
|
-
/**
|
|
3958
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
3959
|
-
*/
|
|
3960
|
-
trial_offer?: string;
|
|
3961
|
-
}
|
|
3962
|
-
type Type = 'add' | 'remove' | 'set';
|
|
3963
|
-
namespace Add {
|
|
3964
|
-
interface Discount {
|
|
3965
|
-
/**
|
|
3966
|
-
* ID of the coupon to create a new discount for.
|
|
3967
|
-
*/
|
|
3968
|
-
coupon?: string;
|
|
3969
|
-
/**
|
|
3970
|
-
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3971
|
-
*/
|
|
3972
|
-
discount?: string;
|
|
3973
|
-
/**
|
|
3974
|
-
* Details to determine how long the discount should be applied for.
|
|
3975
|
-
*/
|
|
3976
|
-
discount_end?: Discount.DiscountEnd;
|
|
3977
|
-
/**
|
|
3978
|
-
* ID of the promotion code to create a new discount for.
|
|
3979
|
-
*/
|
|
3980
|
-
promotion_code?: string;
|
|
3981
|
-
}
|
|
3982
|
-
interface Trial {
|
|
3983
|
-
/**
|
|
3984
|
-
* 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.
|
|
3985
|
-
*/
|
|
3986
|
-
converts_to?: Array<string>;
|
|
3987
|
-
/**
|
|
3988
|
-
* Determines the type of trial for this item.
|
|
3989
|
-
*/
|
|
3990
|
-
type: Trial.Type;
|
|
3991
|
-
}
|
|
3992
|
-
namespace Discount {
|
|
3993
|
-
interface DiscountEnd {
|
|
3994
|
-
/**
|
|
3995
|
-
* Time span for the redeemed discount.
|
|
3996
|
-
*/
|
|
3997
|
-
duration?: DiscountEnd.Duration;
|
|
3998
|
-
/**
|
|
3999
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4000
|
-
*/
|
|
4001
|
-
timestamp?: number;
|
|
4002
|
-
/**
|
|
4003
|
-
* The type of calculation made to determine when the discount ends.
|
|
4004
|
-
*/
|
|
4005
|
-
type: DiscountEnd.Type;
|
|
4006
|
-
}
|
|
4007
|
-
namespace DiscountEnd {
|
|
4008
|
-
interface Duration {
|
|
4009
|
-
/**
|
|
4010
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4011
|
-
*/
|
|
4012
|
-
interval: Duration.Interval;
|
|
4013
|
-
/**
|
|
4014
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4015
|
-
*/
|
|
4016
|
-
interval_count: number;
|
|
4017
|
-
}
|
|
4018
|
-
type Type = 'duration' | 'timestamp';
|
|
4019
|
-
namespace Duration {
|
|
4020
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4021
|
-
}
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
namespace Trial {
|
|
4025
|
-
type Type = 'free' | 'paid';
|
|
4026
|
-
}
|
|
4027
|
-
}
|
|
4028
|
-
namespace Set {
|
|
4029
|
-
interface Discount {
|
|
4030
|
-
/**
|
|
4031
|
-
* ID of the coupon to create a new discount for.
|
|
4032
|
-
*/
|
|
4033
|
-
coupon?: string;
|
|
4034
|
-
/**
|
|
4035
|
-
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4036
|
-
*/
|
|
4037
|
-
discount?: string;
|
|
4038
|
-
/**
|
|
4039
|
-
* Details to determine how long the discount should be applied for.
|
|
4040
|
-
*/
|
|
4041
|
-
discount_end?: Discount.DiscountEnd;
|
|
4042
|
-
/**
|
|
4043
|
-
* ID of the promotion code to create a new discount for.
|
|
4044
|
-
*/
|
|
4045
|
-
promotion_code?: string;
|
|
4046
|
-
}
|
|
4047
|
-
interface Trial {
|
|
4048
|
-
/**
|
|
4049
|
-
* 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.
|
|
4050
|
-
*/
|
|
4051
|
-
converts_to?: Array<string>;
|
|
4052
|
-
/**
|
|
4053
|
-
* Determines the type of trial for this item.
|
|
4054
|
-
*/
|
|
4055
|
-
type: Trial.Type;
|
|
4056
|
-
}
|
|
4057
|
-
namespace Discount {
|
|
4058
|
-
interface DiscountEnd {
|
|
4059
|
-
/**
|
|
4060
|
-
* Time span for the redeemed discount.
|
|
4061
|
-
*/
|
|
4062
|
-
duration?: DiscountEnd.Duration;
|
|
4063
|
-
/**
|
|
4064
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4065
|
-
*/
|
|
4066
|
-
timestamp?: number;
|
|
4067
|
-
/**
|
|
4068
|
-
* The type of calculation made to determine when the discount ends.
|
|
4069
|
-
*/
|
|
4070
|
-
type: DiscountEnd.Type;
|
|
4071
|
-
}
|
|
4072
|
-
namespace DiscountEnd {
|
|
4073
|
-
interface Duration {
|
|
4074
|
-
/**
|
|
4075
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4076
|
-
*/
|
|
4077
|
-
interval: Duration.Interval;
|
|
4078
|
-
/**
|
|
4079
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4080
|
-
*/
|
|
4081
|
-
interval_count: number;
|
|
4082
|
-
}
|
|
4083
|
-
type Type = 'duration' | 'timestamp';
|
|
4084
|
-
namespace Duration {
|
|
4085
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
namespace Trial {
|
|
4090
|
-
type Type = 'free' | 'paid';
|
|
4091
|
-
}
|
|
4092
|
-
}
|
|
4093
|
-
}
|
|
4094
|
-
namespace MetadataAction {
|
|
4095
|
-
type Type = 'add' | 'remove' | 'set';
|
|
4096
|
-
}
|
|
4097
|
-
namespace SetPauseCollection {
|
|
4098
|
-
interface Set {
|
|
4099
|
-
/**
|
|
4100
|
-
* The payment collection behavior for this subscription while paused.
|
|
4101
|
-
*/
|
|
4102
|
-
behavior: Set.Behavior;
|
|
4103
|
-
}
|
|
4104
|
-
type Type = 'remove' | 'set';
|
|
4105
|
-
namespace Set {
|
|
4106
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
4107
|
-
}
|
|
4108
|
-
}
|
|
4109
|
-
namespace TrialSettings {
|
|
4110
|
-
interface EndBehavior {
|
|
4111
|
-
/**
|
|
4112
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4113
|
-
*/
|
|
4114
|
-
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4115
|
-
}
|
|
4116
|
-
namespace EndBehavior {
|
|
4117
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
3173
|
}
|
|
3174
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
4121
3175
|
namespace BillingMode {
|
|
4122
3176
|
interface Flexible {
|
|
4123
3177
|
/**
|
|
@@ -4125,7 +3179,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4125
3179
|
*/
|
|
4126
3180
|
proration_discounts?: Flexible.ProrationDiscounts;
|
|
4127
3181
|
}
|
|
4128
|
-
type Type = 'classic' | 'flexible';
|
|
3182
|
+
type Type = 'classic' | 'flexible' | OtherString;
|
|
4129
3183
|
namespace Flexible {
|
|
4130
3184
|
type ProrationDiscounts = 'included' | 'itemized';
|
|
4131
3185
|
}
|
|
@@ -4196,10 +3250,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4196
3250
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4197
3251
|
*/
|
|
4198
3252
|
discount?: string;
|
|
4199
|
-
/**
|
|
4200
|
-
* Details to determine how long the discount should be applied for.
|
|
4201
|
-
*/
|
|
4202
|
-
discount_end?: Discount.DiscountEnd;
|
|
4203
3253
|
/**
|
|
4204
3254
|
* ID of the promotion code to create a new discount for.
|
|
4205
3255
|
*/
|
|
@@ -4262,22 +3312,8 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4262
3312
|
* 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.
|
|
4263
3313
|
*/
|
|
4264
3314
|
tax_rates?: Emptyable<Array<string>>;
|
|
4265
|
-
/**
|
|
4266
|
-
* Options that configure the trial on the subscription item.
|
|
4267
|
-
*/
|
|
4268
|
-
trial?: Item.Trial;
|
|
4269
|
-
/**
|
|
4270
|
-
* The ID of the trial offer to apply to the configuration item.
|
|
4271
|
-
*/
|
|
4272
|
-
trial_offer?: string;
|
|
4273
|
-
}
|
|
4274
|
-
interface PauseCollection {
|
|
4275
|
-
/**
|
|
4276
|
-
* The payment collection behavior for this subscription while paused.
|
|
4277
|
-
*/
|
|
4278
|
-
behavior: PauseCollection.Behavior;
|
|
4279
3315
|
}
|
|
4280
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3316
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
4281
3317
|
interface TransferData {
|
|
4282
3318
|
/**
|
|
4283
3319
|
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
@@ -4288,13 +3324,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4288
3324
|
*/
|
|
4289
3325
|
destination: string;
|
|
4290
3326
|
}
|
|
4291
|
-
type TrialContinuation = 'continue' | 'none';
|
|
4292
|
-
interface TrialSettings {
|
|
4293
|
-
/**
|
|
4294
|
-
* Defines how the subscription should behave when a trial ends.
|
|
4295
|
-
*/
|
|
4296
|
-
end_behavior?: TrialSettings.EndBehavior;
|
|
4297
|
-
}
|
|
4298
3327
|
namespace AddInvoiceItem {
|
|
4299
3328
|
interface Discount {
|
|
4300
3329
|
/**
|
|
@@ -4305,10 +3334,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4305
3334
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4306
3335
|
*/
|
|
4307
3336
|
discount?: string;
|
|
4308
|
-
/**
|
|
4309
|
-
* Details to determine how long the discount should be applied for.
|
|
4310
|
-
*/
|
|
4311
|
-
discount_end?: Discount.DiscountEnd;
|
|
4312
3337
|
/**
|
|
4313
3338
|
* ID of the promotion code to create a new discount for.
|
|
4314
3339
|
*/
|
|
@@ -4346,38 +3371,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4346
3371
|
*/
|
|
4347
3372
|
unit_amount_decimal?: Decimal;
|
|
4348
3373
|
}
|
|
4349
|
-
namespace Discount {
|
|
4350
|
-
interface DiscountEnd {
|
|
4351
|
-
/**
|
|
4352
|
-
* Time span for the redeemed discount.
|
|
4353
|
-
*/
|
|
4354
|
-
duration?: DiscountEnd.Duration;
|
|
4355
|
-
/**
|
|
4356
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4357
|
-
*/
|
|
4358
|
-
timestamp?: number;
|
|
4359
|
-
/**
|
|
4360
|
-
* The type of calculation made to determine when the discount ends.
|
|
4361
|
-
*/
|
|
4362
|
-
type: DiscountEnd.Type;
|
|
4363
|
-
}
|
|
4364
|
-
namespace DiscountEnd {
|
|
4365
|
-
interface Duration {
|
|
4366
|
-
/**
|
|
4367
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4368
|
-
*/
|
|
4369
|
-
interval: Duration.Interval;
|
|
4370
|
-
/**
|
|
4371
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4372
|
-
*/
|
|
4373
|
-
interval_count: number;
|
|
4374
|
-
}
|
|
4375
|
-
type Type = 'duration' | 'timestamp';
|
|
4376
|
-
namespace Duration {
|
|
4377
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4378
|
-
}
|
|
4379
|
-
}
|
|
4380
|
-
}
|
|
4381
3374
|
namespace Period {
|
|
4382
3375
|
interface End {
|
|
4383
3376
|
/**
|
|
@@ -4400,10 +3393,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4400
3393
|
type: Start.Type;
|
|
4401
3394
|
}
|
|
4402
3395
|
namespace End {
|
|
4403
|
-
type Type = 'min_item_period_end' | 'phase_end' | 'timestamp';
|
|
3396
|
+
type Type = 'min_item_period_end' | 'phase_end' | 'timestamp' | OtherString;
|
|
4404
3397
|
}
|
|
4405
3398
|
namespace Start {
|
|
4406
|
-
type Type = 'max_item_period_start' | 'phase_start' | 'timestamp';
|
|
3399
|
+
type Type = 'max_item_period_start' | 'phase_start' | 'timestamp' | OtherString;
|
|
4407
3400
|
}
|
|
4408
3401
|
}
|
|
4409
3402
|
namespace PriceData {
|
|
@@ -4422,39 +3415,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4422
3415
|
type: Liability.Type;
|
|
4423
3416
|
}
|
|
4424
3417
|
namespace Liability {
|
|
4425
|
-
type Type = 'account' | 'self';
|
|
4426
|
-
}
|
|
4427
|
-
}
|
|
4428
|
-
namespace Discount {
|
|
4429
|
-
interface DiscountEnd {
|
|
4430
|
-
/**
|
|
4431
|
-
* Time span for the redeemed discount.
|
|
4432
|
-
*/
|
|
4433
|
-
duration?: DiscountEnd.Duration;
|
|
4434
|
-
/**
|
|
4435
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4436
|
-
*/
|
|
4437
|
-
timestamp?: number;
|
|
4438
|
-
/**
|
|
4439
|
-
* The type of calculation made to determine when the discount ends.
|
|
4440
|
-
*/
|
|
4441
|
-
type: DiscountEnd.Type;
|
|
4442
|
-
}
|
|
4443
|
-
namespace DiscountEnd {
|
|
4444
|
-
interface Duration {
|
|
4445
|
-
/**
|
|
4446
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4447
|
-
*/
|
|
4448
|
-
interval: Duration.Interval;
|
|
4449
|
-
/**
|
|
4450
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4451
|
-
*/
|
|
4452
|
-
interval_count: number;
|
|
4453
|
-
}
|
|
4454
|
-
type Type = 'duration' | 'timestamp';
|
|
4455
|
-
namespace Duration {
|
|
4456
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4457
|
-
}
|
|
3418
|
+
type Type = 'account' | 'self' | OtherString;
|
|
4458
3419
|
}
|
|
4459
3420
|
}
|
|
4460
3421
|
namespace Duration {
|
|
@@ -4472,7 +3433,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4472
3433
|
type: Issuer.Type;
|
|
4473
3434
|
}
|
|
4474
3435
|
namespace Issuer {
|
|
4475
|
-
type Type = 'account' | 'self';
|
|
3436
|
+
type Type = 'account' | 'self' | OtherString;
|
|
4476
3437
|
}
|
|
4477
3438
|
}
|
|
4478
3439
|
namespace Item {
|
|
@@ -4491,10 +3452,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4491
3452
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4492
3453
|
*/
|
|
4493
3454
|
discount?: string;
|
|
4494
|
-
/**
|
|
4495
|
-
* Details to determine how long the discount should be applied for.
|
|
4496
|
-
*/
|
|
4497
|
-
discount_end?: Discount.DiscountEnd;
|
|
4498
3455
|
/**
|
|
4499
3456
|
* ID of the promotion code to create a new discount for.
|
|
4500
3457
|
*/
|
|
@@ -4526,48 +3483,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4526
3483
|
*/
|
|
4527
3484
|
unit_amount_decimal?: Decimal;
|
|
4528
3485
|
}
|
|
4529
|
-
interface Trial {
|
|
4530
|
-
/**
|
|
4531
|
-
* 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.
|
|
4532
|
-
*/
|
|
4533
|
-
converts_to?: Array<string>;
|
|
4534
|
-
/**
|
|
4535
|
-
* Determines the type of trial for this item.
|
|
4536
|
-
*/
|
|
4537
|
-
type: Trial.Type;
|
|
4538
|
-
}
|
|
4539
|
-
namespace Discount {
|
|
4540
|
-
interface DiscountEnd {
|
|
4541
|
-
/**
|
|
4542
|
-
* Time span for the redeemed discount.
|
|
4543
|
-
*/
|
|
4544
|
-
duration?: DiscountEnd.Duration;
|
|
4545
|
-
/**
|
|
4546
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4547
|
-
*/
|
|
4548
|
-
timestamp?: number;
|
|
4549
|
-
/**
|
|
4550
|
-
* The type of calculation made to determine when the discount ends.
|
|
4551
|
-
*/
|
|
4552
|
-
type: DiscountEnd.Type;
|
|
4553
|
-
}
|
|
4554
|
-
namespace DiscountEnd {
|
|
4555
|
-
interface Duration {
|
|
4556
|
-
/**
|
|
4557
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4558
|
-
*/
|
|
4559
|
-
interval: Duration.Interval;
|
|
4560
|
-
/**
|
|
4561
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4562
|
-
*/
|
|
4563
|
-
interval_count: number;
|
|
4564
|
-
}
|
|
4565
|
-
type Type = 'duration' | 'timestamp';
|
|
4566
|
-
namespace Duration {
|
|
4567
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4568
|
-
}
|
|
4569
|
-
}
|
|
4570
|
-
}
|
|
4571
3486
|
namespace PriceData {
|
|
4572
3487
|
interface Recurring {
|
|
4573
3488
|
/**
|
|
@@ -4584,65 +3499,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4584
3499
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4585
3500
|
}
|
|
4586
3501
|
}
|
|
4587
|
-
namespace Trial {
|
|
4588
|
-
type Type = 'free' | 'paid';
|
|
4589
|
-
}
|
|
4590
|
-
}
|
|
4591
|
-
namespace PauseCollection {
|
|
4592
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
4593
|
-
}
|
|
4594
|
-
namespace TrialSettings {
|
|
4595
|
-
interface EndBehavior {
|
|
4596
|
-
/**
|
|
4597
|
-
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4598
|
-
*/
|
|
4599
|
-
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4600
|
-
}
|
|
4601
|
-
namespace EndBehavior {
|
|
4602
|
-
type ProrateUpFront = 'defer' | 'include';
|
|
4603
|
-
}
|
|
4604
|
-
}
|
|
4605
|
-
}
|
|
4606
|
-
namespace Prebilling {
|
|
4607
|
-
interface BillUntil {
|
|
4608
|
-
/**
|
|
4609
|
-
* End the prebilled period when a specified amendment ends.
|
|
4610
|
-
*/
|
|
4611
|
-
amendment_end?: BillUntil.AmendmentEnd;
|
|
4612
|
-
/**
|
|
4613
|
-
* Time span for prebilling, starting from `bill_from`.
|
|
4614
|
-
*/
|
|
4615
|
-
duration?: BillUntil.Duration;
|
|
4616
|
-
/**
|
|
4617
|
-
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
4618
|
-
*/
|
|
4619
|
-
timestamp?: number;
|
|
4620
|
-
/**
|
|
4621
|
-
* Select one of several ways to pass the `bill_until` value.
|
|
4622
|
-
*/
|
|
4623
|
-
type: BillUntil.Type;
|
|
4624
|
-
}
|
|
4625
|
-
namespace BillUntil {
|
|
4626
|
-
interface AmendmentEnd {
|
|
4627
|
-
/**
|
|
4628
|
-
* The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
4629
|
-
*/
|
|
4630
|
-
index: number;
|
|
4631
|
-
}
|
|
4632
|
-
interface Duration {
|
|
4633
|
-
/**
|
|
4634
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4635
|
-
*/
|
|
4636
|
-
interval: Duration.Interval;
|
|
4637
|
-
/**
|
|
4638
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4639
|
-
*/
|
|
4640
|
-
interval_count: number;
|
|
4641
|
-
}
|
|
4642
|
-
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
|
|
4643
|
-
namespace Duration {
|
|
4644
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4645
|
-
}
|
|
4646
3502
|
}
|
|
4647
3503
|
}
|
|
4648
3504
|
}
|
|
@@ -4672,7 +3528,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4672
3528
|
*/
|
|
4673
3529
|
key?: string;
|
|
4674
3530
|
}
|
|
4675
|
-
type CancelAt = 'max_billed_until' | 'max_period_end' | 'min_period_end';
|
|
3531
|
+
type CancelAt = 'max_billed_until' | 'max_period_end' | 'min_period_end' | OtherString;
|
|
4676
3532
|
interface Item {
|
|
4677
3533
|
/**
|
|
4678
3534
|
* 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.
|
|
@@ -4682,10 +3538,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4682
3538
|
* 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.
|
|
4683
3539
|
*/
|
|
4684
3540
|
clear_usage?: boolean;
|
|
4685
|
-
/**
|
|
4686
|
-
* The trial offer to apply to this subscription item.
|
|
4687
|
-
*/
|
|
4688
|
-
current_trial?: Item.CurrentTrial;
|
|
4689
3541
|
/**
|
|
4690
3542
|
* A flag that, if set to `true`, will delete the specified item.
|
|
4691
3543
|
*/
|
|
@@ -4723,27 +3575,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4723
3575
|
*/
|
|
4724
3576
|
tax_rates?: Emptyable<Array<string>>;
|
|
4725
3577
|
}
|
|
4726
|
-
|
|
4727
|
-
/**
|
|
4728
|
-
* Controls what to bill for when pausing the subscription.
|
|
4729
|
-
*/
|
|
4730
|
-
bill_for?: Pause.BillFor;
|
|
4731
|
-
/**
|
|
4732
|
-
* Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`.
|
|
4733
|
-
*/
|
|
4734
|
-
invoicing_behavior?: Pause.InvoicingBehavior;
|
|
4735
|
-
/**
|
|
4736
|
-
* The type of pause to apply. Defaults to `subscription`.
|
|
4737
|
-
*/
|
|
4738
|
-
type?: 'subscription';
|
|
4739
|
-
}
|
|
4740
|
-
interface Prebilling {
|
|
4741
|
-
/**
|
|
4742
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
4743
|
-
*/
|
|
4744
|
-
iterations: number;
|
|
4745
|
-
}
|
|
4746
|
-
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3578
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
4747
3579
|
namespace BillingMode {
|
|
4748
3580
|
interface Flexible {
|
|
4749
3581
|
/**
|
|
@@ -4751,7 +3583,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4751
3583
|
*/
|
|
4752
3584
|
proration_discounts?: Flexible.ProrationDiscounts;
|
|
4753
3585
|
}
|
|
4754
|
-
type Type = 'classic' | 'flexible';
|
|
3586
|
+
type Type = 'classic' | 'flexible' | OtherString;
|
|
4755
3587
|
namespace Flexible {
|
|
4756
3588
|
type ProrationDiscounts = 'included' | 'itemized';
|
|
4757
3589
|
}
|
|
@@ -4792,7 +3624,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4792
3624
|
*/
|
|
4793
3625
|
interval_count?: number;
|
|
4794
3626
|
}
|
|
4795
|
-
type Type = 'duration' | 'timestamp';
|
|
3627
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4796
3628
|
namespace Duration {
|
|
4797
3629
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4798
3630
|
}
|
|
@@ -4805,16 +3637,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4805
3637
|
*/
|
|
4806
3638
|
usage_gte: number;
|
|
4807
3639
|
}
|
|
4808
|
-
interface CurrentTrial {
|
|
4809
|
-
/**
|
|
4810
|
-
* 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`.
|
|
4811
|
-
*/
|
|
4812
|
-
trial_end?: number;
|
|
4813
|
-
/**
|
|
4814
|
-
* The ID of the trial offer to apply to the subscription item.
|
|
4815
|
-
*/
|
|
4816
|
-
trial_offer: string;
|
|
4817
|
-
}
|
|
4818
3640
|
interface Discount {
|
|
4819
3641
|
/**
|
|
4820
3642
|
* ID of the coupon to create a new discount for.
|
|
@@ -4824,10 +3646,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4824
3646
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4825
3647
|
*/
|
|
4826
3648
|
discount?: string;
|
|
4827
|
-
/**
|
|
4828
|
-
* Details to determine how long the discount should be applied for.
|
|
4829
|
-
*/
|
|
4830
|
-
discount_end?: Discount.DiscountEnd;
|
|
4831
3649
|
/**
|
|
4832
3650
|
* ID of the promotion code to create a new discount for.
|
|
4833
3651
|
*/
|
|
@@ -4859,38 +3677,6 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4859
3677
|
*/
|
|
4860
3678
|
unit_amount_decimal?: Decimal;
|
|
4861
3679
|
}
|
|
4862
|
-
namespace Discount {
|
|
4863
|
-
interface DiscountEnd {
|
|
4864
|
-
/**
|
|
4865
|
-
* Time span for the redeemed discount.
|
|
4866
|
-
*/
|
|
4867
|
-
duration?: DiscountEnd.Duration;
|
|
4868
|
-
/**
|
|
4869
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4870
|
-
*/
|
|
4871
|
-
timestamp?: number;
|
|
4872
|
-
/**
|
|
4873
|
-
* The type of calculation made to determine when the discount ends.
|
|
4874
|
-
*/
|
|
4875
|
-
type: DiscountEnd.Type;
|
|
4876
|
-
}
|
|
4877
|
-
namespace DiscountEnd {
|
|
4878
|
-
interface Duration {
|
|
4879
|
-
/**
|
|
4880
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4881
|
-
*/
|
|
4882
|
-
interval: Duration.Interval;
|
|
4883
|
-
/**
|
|
4884
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4885
|
-
*/
|
|
4886
|
-
interval_count: number;
|
|
4887
|
-
}
|
|
4888
|
-
type Type = 'duration' | 'timestamp';
|
|
4889
|
-
namespace Duration {
|
|
4890
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4891
|
-
}
|
|
4892
|
-
}
|
|
4893
|
-
}
|
|
4894
3680
|
namespace PriceData {
|
|
4895
3681
|
interface Recurring {
|
|
4896
3682
|
/**
|
|
@@ -4908,51 +3694,8 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4908
3694
|
}
|
|
4909
3695
|
}
|
|
4910
3696
|
}
|
|
4911
|
-
namespace Pause {
|
|
4912
|
-
interface BillFor {
|
|
4913
|
-
/**
|
|
4914
|
-
* Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`.
|
|
4915
|
-
*/
|
|
4916
|
-
outstanding_usage_through?: BillFor.OutstandingUsageThrough;
|
|
4917
|
-
/**
|
|
4918
|
-
* Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`.
|
|
4919
|
-
*/
|
|
4920
|
-
unused_time_from?: BillFor.UnusedTimeFrom;
|
|
4921
|
-
}
|
|
4922
|
-
type InvoicingBehavior = 'invoice' | 'pending_invoice_item';
|
|
4923
|
-
namespace BillFor {
|
|
4924
|
-
interface OutstandingUsageThrough {
|
|
4925
|
-
/**
|
|
4926
|
-
* When to bill metered usage in the current period.
|
|
4927
|
-
*/
|
|
4928
|
-
type: OutstandingUsageThrough.Type;
|
|
4929
|
-
}
|
|
4930
|
-
interface UnusedTimeFrom {
|
|
4931
|
-
/**
|
|
4932
|
-
* When to credit for unused time.
|
|
4933
|
-
*/
|
|
4934
|
-
type: UnusedTimeFrom.Type;
|
|
4935
|
-
}
|
|
4936
|
-
namespace OutstandingUsageThrough {
|
|
4937
|
-
type Type = 'none' | 'now';
|
|
4938
|
-
}
|
|
4939
|
-
namespace UnusedTimeFrom {
|
|
4940
|
-
type Type = 'item_current_period_start' | 'none' | 'now';
|
|
4941
|
-
}
|
|
4942
|
-
}
|
|
4943
|
-
}
|
|
4944
3697
|
}
|
|
4945
3698
|
}
|
|
4946
|
-
export interface InvoiceDetachPaymentParams {
|
|
4947
|
-
/**
|
|
4948
|
-
* Specifies which fields in the response should be expanded.
|
|
4949
|
-
*/
|
|
4950
|
-
expand?: Array<string>;
|
|
4951
|
-
/**
|
|
4952
|
-
* The ID of the PaymentIntent to detach from the invoice.
|
|
4953
|
-
*/
|
|
4954
|
-
payment_intent?: string;
|
|
4955
|
-
}
|
|
4956
3699
|
export interface InvoiceFinalizeInvoiceParams {
|
|
4957
3700
|
/**
|
|
4958
3701
|
* Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
|
|
@@ -5035,7 +3778,7 @@ export declare namespace InvoiceRemoveLinesParams {
|
|
|
5035
3778
|
id: string;
|
|
5036
3779
|
}
|
|
5037
3780
|
namespace Line {
|
|
5038
|
-
type Behavior = 'delete' | 'unassign';
|
|
3781
|
+
type Behavior = 'delete' | 'unassign' | OtherString;
|
|
5039
3782
|
}
|
|
5040
3783
|
}
|
|
5041
3784
|
export interface InvoiceSearchParams {
|
|
@@ -5100,10 +3843,6 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
5100
3843
|
* ID of an existing line item on the invoice.
|
|
5101
3844
|
*/
|
|
5102
3845
|
id: string;
|
|
5103
|
-
/**
|
|
5104
|
-
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
5105
|
-
*/
|
|
5106
|
-
margins?: Emptyable<Array<string>>;
|
|
5107
3846
|
/**
|
|
5108
3847
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
5109
3848
|
*/
|
|
@@ -5147,10 +3886,6 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
5147
3886
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
5148
3887
|
*/
|
|
5149
3888
|
discount?: string;
|
|
5150
|
-
/**
|
|
5151
|
-
* Details to determine how long the discount should be applied for.
|
|
5152
|
-
*/
|
|
5153
|
-
discount_end?: Discount.DiscountEnd;
|
|
5154
3889
|
/**
|
|
5155
3890
|
* ID of the promotion code to create a new discount for.
|
|
5156
3891
|
*/
|
|
@@ -5218,38 +3953,6 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
5218
3953
|
*/
|
|
5219
3954
|
taxable_amount: number;
|
|
5220
3955
|
}
|
|
5221
|
-
namespace Discount {
|
|
5222
|
-
interface DiscountEnd {
|
|
5223
|
-
/**
|
|
5224
|
-
* Time span for the redeemed discount.
|
|
5225
|
-
*/
|
|
5226
|
-
duration?: DiscountEnd.Duration;
|
|
5227
|
-
/**
|
|
5228
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5229
|
-
*/
|
|
5230
|
-
timestamp?: number;
|
|
5231
|
-
/**
|
|
5232
|
-
* The type of calculation made to determine when the discount ends.
|
|
5233
|
-
*/
|
|
5234
|
-
type: DiscountEnd.Type;
|
|
5235
|
-
}
|
|
5236
|
-
namespace DiscountEnd {
|
|
5237
|
-
interface Duration {
|
|
5238
|
-
/**
|
|
5239
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5240
|
-
*/
|
|
5241
|
-
interval: Duration.Interval;
|
|
5242
|
-
/**
|
|
5243
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5244
|
-
*/
|
|
5245
|
-
interval_count: number;
|
|
5246
|
-
}
|
|
5247
|
-
type Type = 'duration' | 'timestamp';
|
|
5248
|
-
namespace Duration {
|
|
5249
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5250
|
-
}
|
|
5251
|
-
}
|
|
5252
|
-
}
|
|
5253
3956
|
namespace PriceData {
|
|
5254
3957
|
interface ProductData {
|
|
5255
3958
|
/**
|
|
@@ -5272,28 +3975,12 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
5272
3975
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
5273
3976
|
*/
|
|
5274
3977
|
tax_code?: string;
|
|
5275
|
-
/**
|
|
5276
|
-
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
5277
|
-
*/
|
|
5278
|
-
tax_details?: ProductData.TaxDetails;
|
|
5279
3978
|
/**
|
|
5280
3979
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
5281
3980
|
*/
|
|
5282
3981
|
unit_label?: string;
|
|
5283
3982
|
}
|
|
5284
3983
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
5285
|
-
namespace ProductData {
|
|
5286
|
-
interface TaxDetails {
|
|
5287
|
-
/**
|
|
5288
|
-
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
5289
|
-
*/
|
|
5290
|
-
performance_location?: string;
|
|
5291
|
-
/**
|
|
5292
|
-
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
5293
|
-
*/
|
|
5294
|
-
tax_code?: Emptyable<string>;
|
|
5295
|
-
}
|
|
5296
|
-
}
|
|
5297
3984
|
}
|
|
5298
3985
|
namespace TaxAmount {
|
|
5299
3986
|
interface TaxRateData {
|
|
@@ -5334,10 +4021,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
5334
4021
|
*/
|
|
5335
4022
|
tax_type?: TaxRateData.TaxType;
|
|
5336
4023
|
}
|
|
5337
|
-
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
|
|
4024
|
+
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
5338
4025
|
namespace TaxRateData {
|
|
5339
|
-
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state';
|
|
5340
|
-
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat';
|
|
4026
|
+
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state' | OtherString;
|
|
4027
|
+
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'mass_transit_parking_tax' | 'parking_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat' | OtherString;
|
|
5341
4028
|
}
|
|
5342
4029
|
}
|
|
5343
4030
|
}
|
|
@@ -5363,10 +4050,6 @@ export interface InvoiceUpdateLineItemParams {
|
|
|
5363
4050
|
* Specifies which fields in the response should be expanded.
|
|
5364
4051
|
*/
|
|
5365
4052
|
expand?: Array<string>;
|
|
5366
|
-
/**
|
|
5367
|
-
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
5368
|
-
*/
|
|
5369
|
-
margins?: Emptyable<Array<string>>;
|
|
5370
4053
|
/**
|
|
5371
4054
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](https://docs.stripe.com/api/invoices/line_item) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
5372
4055
|
*/
|
|
@@ -5410,10 +4093,6 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
5410
4093
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
5411
4094
|
*/
|
|
5412
4095
|
discount?: string;
|
|
5413
|
-
/**
|
|
5414
|
-
* Details to determine how long the discount should be applied for.
|
|
5415
|
-
*/
|
|
5416
|
-
discount_end?: Discount.DiscountEnd;
|
|
5417
4096
|
/**
|
|
5418
4097
|
* ID of the promotion code to create a new discount for.
|
|
5419
4098
|
*/
|
|
@@ -5481,38 +4160,6 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
5481
4160
|
*/
|
|
5482
4161
|
taxable_amount: number;
|
|
5483
4162
|
}
|
|
5484
|
-
namespace Discount {
|
|
5485
|
-
interface DiscountEnd {
|
|
5486
|
-
/**
|
|
5487
|
-
* Time span for the redeemed discount.
|
|
5488
|
-
*/
|
|
5489
|
-
duration?: DiscountEnd.Duration;
|
|
5490
|
-
/**
|
|
5491
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5492
|
-
*/
|
|
5493
|
-
timestamp?: number;
|
|
5494
|
-
/**
|
|
5495
|
-
* The type of calculation made to determine when the discount ends.
|
|
5496
|
-
*/
|
|
5497
|
-
type: DiscountEnd.Type;
|
|
5498
|
-
}
|
|
5499
|
-
namespace DiscountEnd {
|
|
5500
|
-
interface Duration {
|
|
5501
|
-
/**
|
|
5502
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5503
|
-
*/
|
|
5504
|
-
interval: Duration.Interval;
|
|
5505
|
-
/**
|
|
5506
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5507
|
-
*/
|
|
5508
|
-
interval_count: number;
|
|
5509
|
-
}
|
|
5510
|
-
type Type = 'duration' | 'timestamp';
|
|
5511
|
-
namespace Duration {
|
|
5512
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5513
|
-
}
|
|
5514
|
-
}
|
|
5515
|
-
}
|
|
5516
4163
|
namespace PriceData {
|
|
5517
4164
|
interface ProductData {
|
|
5518
4165
|
/**
|
|
@@ -5535,28 +4182,12 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
5535
4182
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
5536
4183
|
*/
|
|
5537
4184
|
tax_code?: string;
|
|
5538
|
-
/**
|
|
5539
|
-
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
5540
|
-
*/
|
|
5541
|
-
tax_details?: ProductData.TaxDetails;
|
|
5542
4185
|
/**
|
|
5543
4186
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
5544
4187
|
*/
|
|
5545
4188
|
unit_label?: string;
|
|
5546
4189
|
}
|
|
5547
4190
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
5548
|
-
namespace ProductData {
|
|
5549
|
-
interface TaxDetails {
|
|
5550
|
-
/**
|
|
5551
|
-
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
5552
|
-
*/
|
|
5553
|
-
performance_location?: string;
|
|
5554
|
-
/**
|
|
5555
|
-
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
5556
|
-
*/
|
|
5557
|
-
tax_code?: Emptyable<string>;
|
|
5558
|
-
}
|
|
5559
|
-
}
|
|
5560
4191
|
}
|
|
5561
4192
|
namespace TaxAmount {
|
|
5562
4193
|
interface TaxRateData {
|
|
@@ -5597,10 +4228,10 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
5597
4228
|
*/
|
|
5598
4229
|
tax_type?: TaxRateData.TaxType;
|
|
5599
4230
|
}
|
|
5600
|
-
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
|
|
4231
|
+
type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
5601
4232
|
namespace TaxRateData {
|
|
5602
|
-
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state';
|
|
5603
|
-
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat';
|
|
4233
|
+
type JurisdictionLevel = 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state' | OtherString;
|
|
4234
|
+
type TaxType = 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'mass_transit_parking_tax' | 'parking_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat' | OtherString;
|
|
5604
4235
|
}
|
|
5605
4236
|
}
|
|
5606
4237
|
}
|