stripe 23.1.0 → 23.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1914 -4850
- package/README.md +42 -58
- package/VERSION +1 -1
- package/cjs/Error.d.ts +6 -0
- package/cjs/Error.js +17 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +54 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Types.d.ts +4 -2
- package/cjs/Types.js.map +1 -1
- package/cjs/apiVersion.d.ts +2 -2
- package/cjs/apiVersion.js +2 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +1 -1
- package/cjs/resources/AccountNotices.d.ts +140 -0
- package/cjs/resources/AccountNotices.js +29 -0
- package/cjs/resources/AccountNotices.js.map +1 -0
- package/cjs/resources/AccountSessions.d.ts +226 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +625 -3
- package/cjs/resources/Accounts.js +14 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/Balance.d.ts +67 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
- package/cjs/resources/Billing/Analytics/index.js +13 -0
- package/cjs/resources/Billing/Analytics/index.js.map +1 -0
- package/cjs/resources/Billing/index.d.ts +3 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +17 -0
- package/cjs/resources/Charges.d.ts +3077 -70
- package/cjs/resources/Checkout/Sessions.d.ts +351 -4
- package/cjs/resources/ConfirmationTokens.d.ts +67 -1
- package/cjs/resources/Coupons.d.ts +53 -0
- package/cjs/resources/Coupons.js +13 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +1 -1
- package/cjs/resources/CustomerSessions.d.ts +68 -0
- package/cjs/resources/Customers.d.ts +20 -1
- package/cjs/resources/Customers.js +14 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +14 -0
- package/cjs/resources/Events.d.ts +614 -3
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/cjs/resources/FinancialConnections/index.d.ts +21 -9
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +216 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/InvoiceItems.d.ts +85 -0
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +40 -2
- package/cjs/resources/Invoices.d.ts +1257 -10
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
- package/cjs/resources/Issuing/Cards.d.ts +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +13 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +83 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +47 -22
- package/cjs/resources/Issuing/index.js +6 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +36 -2
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4696 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
- package/cjs/resources/PaymentIntents.d.ts +13832 -2816
- package/cjs/resources/PaymentIntents.js +27 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +3 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +181 -3
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentPlans.d.ts +427 -0
- package/cjs/resources/PaymentPlans.js +35 -0
- package/cjs/resources/PaymentPlans.js.map +1 -0
- package/cjs/resources/PaymentRecords.d.ts +82 -0
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Prices.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +27 -0
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/QuoteLines.d.ts +507 -0
- package/cjs/resources/QuoteLines.js +4 -0
- package/cjs/resources/QuoteLines.js.map +1 -0
- package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +2266 -57
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/cjs/resources/Radar/BillingEvaluations.js +15 -0
- package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
- package/cjs/resources/Radar/index.d.ts +21 -16
- package/cjs/resources/Radar/index.js +2 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +11 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +41 -1
- package/cjs/resources/Reserve/Plans.js +19 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +18 -6
- package/cjs/resources/Reserve/index.js +9 -0
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +394 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +114 -0
- package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
- package/cjs/resources/SubscriptionSchedules.js +6 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +388 -6
- package/cjs/resources/Subscriptions.js +42 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Forms.d.ts +228 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +25 -2
- package/cjs/resources/Tax/index.d.ts +24 -17
- package/cjs/resources/Tax/index.js +2 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/cjs/resources/TestHelpers/index.d.ts +3 -0
- package/cjs/resources/TestHelpers/index.js +6 -4
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +15 -0
- package/cjs/resources/Transfers.d.ts +8 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
- package/cjs/resources/V2/Billing/Cadences.js +198 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +45 -6
- package/cjs/resources/V2/Billing/index.js +8 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/cjs/resources/V2/Core/BatchJobs.js +252 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +1009 -5
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +24 -9
- package/cjs/resources/V2/Core/index.js +4 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/cjs/resources/V2/Data/QueryRuns.js +51 -0
- package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/cjs/resources/V2/Data/ReportRuns.js +53 -0
- package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reports.d.ts +140 -0
- package/cjs/resources/V2/Data/Reports.js +25 -0
- package/cjs/resources/V2/Data/Reports.js.map +1 -0
- package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
- package/cjs/resources/V2/Data/Schemas.js +23 -0
- package/cjs/resources/V2/Data/Schemas.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +34 -0
- package/cjs/resources/V2/Data/index.js +21 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/EventMisc.d.ts +0 -0
- package/cjs/resources/V2/EventMisc.js +2 -0
- package/cjs/resources/V2/EventMisc.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +13 -0
- package/cjs/resources/V2/Iam/index.js +13 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/cjs/resources/V2/MoneyManagement/index.js +6 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
- package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +26 -0
- package/cjs/resources/V2/Signals/index.js +17 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +18 -0
- package/cjs/resources/V2/index.js +16 -4
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +10 -0
- package/cjs/resources.js +126 -8
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +6674 -138
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +60 -26
- package/cjs/stripe.core.js +55 -36
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +6 -0
- package/esm/Error.js +14 -0
- package/esm/Error.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +54 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Types.d.ts +4 -2
- package/esm/Types.js.map +1 -1
- package/esm/apiVersion.d.ts +2 -2
- package/esm/apiVersion.js +2 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +1 -1
- package/esm/resources/AccountNotices.d.ts +140 -0
- package/esm/resources/AccountNotices.js +25 -0
- package/esm/resources/AccountNotices.js.map +1 -0
- package/esm/resources/AccountSessions.d.ts +226 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +625 -3
- package/esm/resources/Accounts.js +14 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/Balance.d.ts +67 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/esm/resources/Billing/Analytics/index.d.ts +15 -0
- package/esm/resources/Billing/Analytics/index.js +9 -0
- package/esm/resources/Billing/Analytics/index.js.map +1 -0
- package/esm/resources/Billing/index.d.ts +3 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +17 -0
- package/esm/resources/Charges.d.ts +3077 -70
- package/esm/resources/Checkout/Sessions.d.ts +351 -4
- package/esm/resources/ConfirmationTokens.d.ts +67 -1
- package/esm/resources/Coupons.d.ts +53 -0
- package/esm/resources/Coupons.js +13 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +1 -1
- package/esm/resources/CustomerSessions.d.ts +68 -0
- package/esm/resources/Customers.d.ts +20 -1
- package/esm/resources/Customers.js +14 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +14 -0
- package/esm/resources/Events.d.ts +614 -3
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/esm/resources/FinancialConnections/Authorizations.js +9 -1
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/esm/resources/FinancialConnections/index.d.ts +21 -9
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +216 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/InvoiceItems.d.ts +85 -0
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +40 -2
- package/esm/resources/Invoices.d.ts +1257 -10
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +13 -0
- package/esm/resources/Issuing/Cardholders.d.ts +19 -1
- package/esm/resources/Issuing/Cards.d.ts +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +13 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +83 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +47 -22
- package/esm/resources/Issuing/index.js +6 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +36 -2
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orders.d.ts +4696 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
- package/esm/resources/PaymentIntents.d.ts +13832 -2816
- package/esm/resources/PaymentIntents.js +27 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +3 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +181 -3
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentPlans.d.ts +427 -0
- package/esm/resources/PaymentPlans.js +31 -0
- package/esm/resources/PaymentPlans.js.map +1 -0
- package/esm/resources/PaymentRecords.d.ts +82 -0
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Prices.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +27 -0
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/QuoteLines.d.ts +507 -0
- package/esm/resources/QuoteLines.js +3 -0
- package/esm/resources/QuoteLines.js.map +1 -0
- package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +2266 -57
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/esm/resources/Radar/BillingEvaluations.js +11 -0
- package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/esm/resources/Radar/ValueListItems.d.ts +31 -1
- package/esm/resources/Radar/index.d.ts +21 -16
- package/esm/resources/Radar/index.js +2 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +11 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +41 -1
- package/esm/resources/Reserve/Plans.js +17 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +18 -6
- package/esm/resources/Reserve/index.js +9 -0
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +394 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +114 -0
- package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
- package/esm/resources/SubscriptionSchedules.js +6 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +388 -6
- package/esm/resources/Subscriptions.js +42 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Forms.d.ts +228 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +25 -2
- package/esm/resources/Tax/index.d.ts +24 -17
- package/esm/resources/Tax/index.js +2 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/esm/resources/TestHelpers/index.d.ts +3 -0
- package/esm/resources/TestHelpers/index.js +2 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +15 -0
- package/esm/resources/Transfers.d.ts +8 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
- package/esm/resources/V2/Billing/Cadences.js +194 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +45 -6
- package/esm/resources/V2/Billing/index.js +8 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/esm/resources/V2/Core/BatchJobs.js +248 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +1009 -5
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +24 -9
- package/esm/resources/V2/Core/index.js +4 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/esm/resources/V2/Data/QueryRuns.js +47 -0
- package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/esm/resources/V2/Data/ReportRuns.js +49 -0
- package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/Reports.d.ts +140 -0
- package/esm/resources/V2/Data/Reports.js +21 -0
- package/esm/resources/V2/Data/Reports.js.map +1 -0
- package/esm/resources/V2/Data/Schemas.d.ts +161 -0
- package/esm/resources/V2/Data/Schemas.js +19 -0
- package/esm/resources/V2/Data/Schemas.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +34 -0
- package/esm/resources/V2/Data/index.js +17 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/EventMisc.d.ts +0 -0
- package/esm/resources/V2/EventMisc.js +2 -0
- package/esm/resources/V2/EventMisc.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +13 -0
- package/esm/resources/V2/Iam/index.js +9 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/esm/resources/V2/MoneyManagement/index.js +6 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/esm/resources/V2/Signals/AccountActivities.js +23 -0
- package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/esm/resources/V2/Signals/AccountSignals.js +62 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +26 -0
- package/esm/resources/V2/Signals/index.js +13 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +18 -0
- package/esm/resources/V2/index.js +12 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +10 -0
- package/esm/resources.js +112 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +60 -26
- package/esm/stripe.core.js +21 -2
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +60 -26
- package/esm/stripe.esm.node.js +21 -2
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../StripeResource.js';
|
|
3
|
+
export class FxQuoteResource extends StripeResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of active FX quotes. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
|
|
6
|
+
*/
|
|
7
|
+
list(params, options) {
|
|
8
|
+
return this._makeRequest('GET', '/v1/fx_quotes', params, options, {
|
|
9
|
+
methodType: 'list',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates an FX Quote object
|
|
14
|
+
*/
|
|
15
|
+
create(params, options) {
|
|
16
|
+
return this._makeRequest('POST', '/v1/fx_quotes', params, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve an FX Quote object
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id, params, options) {
|
|
22
|
+
return this._makeRequest('GET', `/v1/fx_quotes/${encodeURIComponent(id)}`, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=FxQuotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FxQuotes.js","sourceRoot":"","sources":["../../src/resources/FxQuotes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAIpD,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;OAEG;IACH,IAAI,CACF,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE;YAChE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IAC5E,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACzC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
|
@@ -2,6 +2,7 @@ import { StripeResource } from '../StripeResource.js';
|
|
|
2
2
|
import { Discount, DeletedDiscount } from './Discounts.js';
|
|
3
3
|
import { Customer, DeletedCustomer } from './Customers.js';
|
|
4
4
|
import { Invoice } from './Invoices.js';
|
|
5
|
+
import { Margin } from './Margins.js';
|
|
5
6
|
import { TaxRate } from './TaxRates.js';
|
|
6
7
|
import { Price } from './Prices.js';
|
|
7
8
|
import * as TestHelpers from './TestHelpers/index.js';
|
|
@@ -90,6 +91,10 @@ export interface InvoiceItem {
|
|
|
90
91
|
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
91
92
|
*/
|
|
92
93
|
livemode: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* The margins which apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
96
|
+
*/
|
|
97
|
+
margins?: Array<string | Margin> | null;
|
|
93
98
|
/**
|
|
94
99
|
* 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.
|
|
95
100
|
*/
|
|
@@ -293,6 +298,10 @@ export interface InvoiceItemCreateParams {
|
|
|
293
298
|
* The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
|
|
294
299
|
*/
|
|
295
300
|
invoice?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
303
|
+
*/
|
|
304
|
+
margins?: Array<string>;
|
|
296
305
|
/**
|
|
297
306
|
* 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`.
|
|
298
307
|
*/
|
|
@@ -348,6 +357,10 @@ export declare namespace InvoiceItemCreateParams {
|
|
|
348
357
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
349
358
|
*/
|
|
350
359
|
discount?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Details to determine how long the discount should be applied for.
|
|
362
|
+
*/
|
|
363
|
+
discount_end?: Discount.DiscountEnd;
|
|
351
364
|
/**
|
|
352
365
|
* ID of the promotion code to create a new discount for.
|
|
353
366
|
*/
|
|
@@ -392,6 +405,38 @@ export declare namespace InvoiceItemCreateParams {
|
|
|
392
405
|
price?: string;
|
|
393
406
|
}
|
|
394
407
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
408
|
+
namespace Discount {
|
|
409
|
+
interface DiscountEnd {
|
|
410
|
+
/**
|
|
411
|
+
* Time span for the redeemed discount.
|
|
412
|
+
*/
|
|
413
|
+
duration?: DiscountEnd.Duration;
|
|
414
|
+
/**
|
|
415
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
416
|
+
*/
|
|
417
|
+
timestamp?: number;
|
|
418
|
+
/**
|
|
419
|
+
* The type of calculation made to determine when the discount ends.
|
|
420
|
+
*/
|
|
421
|
+
type: DiscountEnd.Type;
|
|
422
|
+
}
|
|
423
|
+
namespace DiscountEnd {
|
|
424
|
+
interface Duration {
|
|
425
|
+
/**
|
|
426
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
427
|
+
*/
|
|
428
|
+
interval: Duration.Interval;
|
|
429
|
+
/**
|
|
430
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
431
|
+
*/
|
|
432
|
+
interval_count: number;
|
|
433
|
+
}
|
|
434
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
435
|
+
namespace Duration {
|
|
436
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
395
440
|
namespace PriceData {
|
|
396
441
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
397
442
|
}
|
|
@@ -427,6 +472,10 @@ export interface InvoiceItemUpdateParams {
|
|
|
427
472
|
* Pass an empty string to remove previously-defined invoicing rules. Setting invoicing rules is not supported.
|
|
428
473
|
*/
|
|
429
474
|
invoicing_rules?: '';
|
|
475
|
+
/**
|
|
476
|
+
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
477
|
+
*/
|
|
478
|
+
margins?: Emptyable<Array<string>>;
|
|
430
479
|
/**
|
|
431
480
|
* 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`.
|
|
432
481
|
*/
|
|
@@ -478,6 +527,10 @@ export declare namespace InvoiceItemUpdateParams {
|
|
|
478
527
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
479
528
|
*/
|
|
480
529
|
discount?: string;
|
|
530
|
+
/**
|
|
531
|
+
* Details to determine how long the discount should be applied for.
|
|
532
|
+
*/
|
|
533
|
+
discount_end?: Discount.DiscountEnd;
|
|
481
534
|
/**
|
|
482
535
|
* ID of the promotion code to create a new discount for.
|
|
483
536
|
*/
|
|
@@ -522,6 +575,38 @@ export declare namespace InvoiceItemUpdateParams {
|
|
|
522
575
|
price?: string;
|
|
523
576
|
}
|
|
524
577
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
578
|
+
namespace Discount {
|
|
579
|
+
interface DiscountEnd {
|
|
580
|
+
/**
|
|
581
|
+
* Time span for the redeemed discount.
|
|
582
|
+
*/
|
|
583
|
+
duration?: DiscountEnd.Duration;
|
|
584
|
+
/**
|
|
585
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
586
|
+
*/
|
|
587
|
+
timestamp?: number;
|
|
588
|
+
/**
|
|
589
|
+
* The type of calculation made to determine when the discount ends.
|
|
590
|
+
*/
|
|
591
|
+
type: DiscountEnd.Type;
|
|
592
|
+
}
|
|
593
|
+
namespace DiscountEnd {
|
|
594
|
+
interface Duration {
|
|
595
|
+
/**
|
|
596
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
597
|
+
*/
|
|
598
|
+
interval: Duration.Interval;
|
|
599
|
+
/**
|
|
600
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
601
|
+
*/
|
|
602
|
+
interval_count: number;
|
|
603
|
+
}
|
|
604
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
605
|
+
namespace Duration {
|
|
606
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
525
610
|
namespace PriceData {
|
|
526
611
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
527
612
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceItems.js","sourceRoot":"","sources":["../../src/resources/InvoiceItems.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"InvoiceItems.js","sourceRoot":"","sources":["../../src/resources/InvoiceItems.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Discount, DeletedDiscount } from './Discounts.js';
|
|
2
|
+
import { Margin } from './Margins.js';
|
|
2
3
|
import { Subscription } from './Subscriptions.js';
|
|
3
4
|
import { Price } from './Prices.js';
|
|
5
|
+
import { TaxRate } from './TaxRates.js';
|
|
4
6
|
import * as Billing from './Billing/index.js';
|
|
5
7
|
import { Metadata, Decimal, OtherString } from '../shared.js';
|
|
6
8
|
export interface InvoiceLineItem {
|
|
@@ -44,6 +46,14 @@ export interface InvoiceLineItem {
|
|
|
44
46
|
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
45
47
|
*/
|
|
46
48
|
livemode: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The amount of margin calculated per margin for this line item.
|
|
51
|
+
*/
|
|
52
|
+
margin_amounts?: Array<InvoiceLineItem.MarginAmount> | null;
|
|
53
|
+
/**
|
|
54
|
+
* The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.
|
|
55
|
+
*/
|
|
56
|
+
margins?: Array<string | Margin> | null;
|
|
47
57
|
/**
|
|
48
58
|
* 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. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
|
|
49
59
|
*/
|
|
@@ -74,6 +84,10 @@ export interface InvoiceLineItem {
|
|
|
74
84
|
* The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.
|
|
75
85
|
*/
|
|
76
86
|
subtotal: number;
|
|
87
|
+
/**
|
|
88
|
+
* The tax calculation identifiers of the line item.
|
|
89
|
+
*/
|
|
90
|
+
tax_calculation_reference?: InvoiceLineItem.TaxCalculationReference | null;
|
|
77
91
|
/**
|
|
78
92
|
* The tax information of the line item.
|
|
79
93
|
*/
|
|
@@ -90,6 +104,16 @@ export declare namespace InvoiceLineItem {
|
|
|
90
104
|
*/
|
|
91
105
|
discount: string | Discount | DeletedDiscount;
|
|
92
106
|
}
|
|
107
|
+
interface MarginAmount {
|
|
108
|
+
/**
|
|
109
|
+
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
110
|
+
*/
|
|
111
|
+
amount: number;
|
|
112
|
+
/**
|
|
113
|
+
* The margin that was applied to get this margin amount.
|
|
114
|
+
*/
|
|
115
|
+
margin: string | Margin;
|
|
116
|
+
}
|
|
93
117
|
interface Parent {
|
|
94
118
|
/**
|
|
95
119
|
* Details about the invoice item that generated this line item
|
|
@@ -127,6 +151,10 @@ export declare namespace InvoiceLineItem {
|
|
|
127
151
|
* The discount that was applied to get this pretax credit amount.
|
|
128
152
|
*/
|
|
129
153
|
discount?: string | Discount | DeletedDiscount;
|
|
154
|
+
/**
|
|
155
|
+
* The margin that was applied to get this pretax credit amount.
|
|
156
|
+
*/
|
|
157
|
+
margin?: string | Margin;
|
|
130
158
|
/**
|
|
131
159
|
* Type of the pretax credit amount referenced.
|
|
132
160
|
*/
|
|
@@ -143,6 +171,16 @@ export declare namespace InvoiceLineItem {
|
|
|
143
171
|
*/
|
|
144
172
|
unit_amount_decimal: Decimal | null;
|
|
145
173
|
}
|
|
174
|
+
interface TaxCalculationReference {
|
|
175
|
+
/**
|
|
176
|
+
* The calculation identifier for tax calculation response.
|
|
177
|
+
*/
|
|
178
|
+
calculation_id: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* The calculation identifier for tax calculation response line item.
|
|
181
|
+
*/
|
|
182
|
+
calculation_item_id: string | null;
|
|
183
|
+
}
|
|
146
184
|
interface Tax {
|
|
147
185
|
/**
|
|
148
186
|
* The amount of the tax, in cents (or local equivalent).
|
|
@@ -253,7 +291,7 @@ export declare namespace InvoiceLineItem {
|
|
|
253
291
|
}
|
|
254
292
|
}
|
|
255
293
|
namespace PretaxCreditAmount {
|
|
256
|
-
type Type = 'credit_balance_transaction' | 'discount' | OtherString;
|
|
294
|
+
type Type = 'credit_balance_transaction' | 'discount' | 'margin' | OtherString;
|
|
257
295
|
}
|
|
258
296
|
namespace Pricing {
|
|
259
297
|
interface PriceDetails {
|
|
@@ -273,7 +311,7 @@ export declare namespace InvoiceLineItem {
|
|
|
273
311
|
/**
|
|
274
312
|
* ID of the tax rate
|
|
275
313
|
*/
|
|
276
|
-
tax_rate: string;
|
|
314
|
+
tax_rate: string | TaxRate;
|
|
277
315
|
}
|
|
278
316
|
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;
|
|
279
317
|
}
|