stripe 19.2.1 → 19.3.0-alpha.2
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 +1686 -15
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +142 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +100 -0
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +17 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +129 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +264 -0
- package/types/Accounts.d.ts +214 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +149 -2
- package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
- package/types/Billing/Analytics/MeterUsageResource.d.ts +694 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +58 -0
- package/types/Billing/CreditBalanceSummary.d.ts +123 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +20 -3
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +76 -1
- package/types/Billing/CreditGrantsResource.d.ts +45 -4
- package/types/Billing/MeterEventSummaries.d.ts +7 -0
- package/types/Billing/Meters.d.ts +5 -0
- package/types/Billing/MetersResource.d.ts +17 -0
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- package/types/Capabilities.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +19 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +185 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +427 -2
- package/types/Checkout/SessionsResource.d.ts +682 -2
- package/types/ConfirmationTokens.d.ts +139 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +5 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +46 -0
- package/types/CustomerSessionsResource.d.ts +47 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +360 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +630 -0
- package/types/Events.d.ts +95 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +36 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/FxQuotes.d.ts +155 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +114 -2
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +158 -3
- package/types/InvoicePayments.d.ts +1 -1
- package/types/Invoices.d.ts +203 -4
- package/types/InvoicesResource.d.ts +1625 -2
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -0
- package/types/Mandates.d.ts +135 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +141 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +7 -13
- package/types/PaymentIntents.d.ts +807 -20
- package/types/PaymentIntentsResource.d.ts +9765 -4959
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +216 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
- package/types/PaymentMethods.d.ts +144 -0
- package/types/PaymentMethodsResource.d.ts +187 -2
- package/types/PaymentRecords.d.ts +141 -0
- package/types/Persons.d.ts +2 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -0
- package/types/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1771 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2588 -243
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +51 -1
- package/types/SetupIntents.d.ts +239 -2
- package/types/SetupIntentsResource.d.ts +1044 -4
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1233 -5
- package/types/Subscriptions.d.ts +262 -1
- package/types/SubscriptionsResource.d.ts +745 -8
- package/types/Tax/Associations.d.ts +82 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Transfers.d.ts +9 -0
- package/types/TransfersResource.d.ts +7 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +731 -0
- package/types/V2/Billing/CadencesResource.d.ts +516 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +274 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
- package/types/V2/Core/AccountLinks.d.ts +168 -0
- package/types/V2/Core/AccountLinksResource.d.ts +152 -0
- package/types/V2/Core/AccountPersons.d.ts +615 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
- package/types/V2/Core/Accounts.d.ts +7478 -0
- package/types/V2/Core/AccountsResource.d.ts +6723 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
- package/types/V2/Core/EventTypes.d.ts +8589 -10
- package/types/V2/Core/Events.d.ts +12 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +116 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +126 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +283 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +247 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +330 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +256 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +213 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +201 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +307 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +186 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +74 -0
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +222 -0
- package/types/lib.d.ts +10 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Tax {
|
|
6
|
+
/**
|
|
7
|
+
* A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
|
|
8
|
+
*/
|
|
9
|
+
interface Association {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'tax.association';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The [Tax Calculation](https://stripe.com/docs/api/tax/calculations/object) that was included in PaymentIntent.
|
|
22
|
+
*/
|
|
23
|
+
calculation: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) that this Tax Association is tracking.
|
|
27
|
+
*/
|
|
28
|
+
payment_intent: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Information about the tax transactions linked to this payment intent
|
|
32
|
+
*/
|
|
33
|
+
tax_transaction_attempts?: Array<
|
|
34
|
+
Association.TaxTransactionAttempt
|
|
35
|
+
> | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
namespace Association {
|
|
39
|
+
interface TaxTransactionAttempt {
|
|
40
|
+
committed?: TaxTransactionAttempt.Committed;
|
|
41
|
+
|
|
42
|
+
errored?: TaxTransactionAttempt.Errored;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The source of the tax transaction attempt. This is either a refund or a payment intent.
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The status of the transaction attempt. This can be `errored` or `committed`.
|
|
51
|
+
*/
|
|
52
|
+
status: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
namespace TaxTransactionAttempt {
|
|
56
|
+
interface Committed {
|
|
57
|
+
/**
|
|
58
|
+
* The [Tax Transaction](https://stripe.com/docs/api/tax/transaction/object)
|
|
59
|
+
*/
|
|
60
|
+
transaction: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface Errored {
|
|
64
|
+
/**
|
|
65
|
+
* Details on why we couldn't commit the tax transaction.
|
|
66
|
+
*/
|
|
67
|
+
reason: Errored.Reason;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
namespace Errored {
|
|
71
|
+
type Reason =
|
|
72
|
+
| 'another_payment_associated_with_calculation'
|
|
73
|
+
| 'calculation_expired'
|
|
74
|
+
| 'currency_mismatch'
|
|
75
|
+
| 'original_transaction_voided'
|
|
76
|
+
| 'unique_reference_violation';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Tax {
|
|
6
|
+
interface AssociationFindParams {
|
|
7
|
+
/**
|
|
8
|
+
* Valid [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) id
|
|
9
|
+
*/
|
|
10
|
+
payment_intent: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Specifies which fields in the response should be expanded.
|
|
14
|
+
*/
|
|
15
|
+
expand?: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class AssociationsResource {
|
|
19
|
+
/**
|
|
20
|
+
* Finds a tax association object by PaymentIntent id.
|
|
21
|
+
*/
|
|
22
|
+
find(
|
|
23
|
+
params: AssociationFindParams,
|
|
24
|
+
options?: RequestOptions
|
|
25
|
+
): Promise<Stripe.Response<Stripe.Tax.Association>>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Tax {
|
|
6
|
+
/**
|
|
7
|
+
* Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes.
|
|
8
|
+
*
|
|
9
|
+
* Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
|
|
10
|
+
*/
|
|
11
|
+
interface Form {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the object.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
19
|
+
*/
|
|
20
|
+
object: 'tax.form';
|
|
21
|
+
|
|
22
|
+
au_serr?: Form.AuSerr;
|
|
23
|
+
|
|
24
|
+
ca_mrdp?: Form.CaMrdp;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The form that corrects this form, if any.
|
|
28
|
+
*/
|
|
29
|
+
corrected_by: string | Stripe.Tax.Form | null;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
33
|
+
*/
|
|
34
|
+
created: number;
|
|
35
|
+
|
|
36
|
+
eu_dac7?: Form.EuDac7;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction's tax authority.
|
|
40
|
+
*/
|
|
41
|
+
filing_statuses: Array<Form.FilingStatus>;
|
|
42
|
+
|
|
43
|
+
gb_mrdp?: Form.GbMrdp;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
47
|
+
*/
|
|
48
|
+
livemode: boolean;
|
|
49
|
+
|
|
50
|
+
nz_mrdp?: Form.NzMrdp;
|
|
51
|
+
|
|
52
|
+
payee: Form.Payee;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.
|
|
56
|
+
*/
|
|
57
|
+
type: Form.Type;
|
|
58
|
+
|
|
59
|
+
us_1099_k?: Form.Us1099K;
|
|
60
|
+
|
|
61
|
+
us_1099_misc?: Form.Us1099Misc;
|
|
62
|
+
|
|
63
|
+
us_1099_nec?: Form.Us1099Nec;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
namespace Form {
|
|
67
|
+
interface AuSerr {
|
|
68
|
+
/**
|
|
69
|
+
* End date of the period represented by the information reported on the tax form.
|
|
70
|
+
*/
|
|
71
|
+
reporting_period_end_date: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Start date of the period represented by the information reported on the tax form.
|
|
75
|
+
*/
|
|
76
|
+
reporting_period_start_date: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface CaMrdp {
|
|
80
|
+
/**
|
|
81
|
+
* End date of the period represented by the information reported on the tax form.
|
|
82
|
+
*/
|
|
83
|
+
reporting_period_end_date: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Start date of the period represented by the information reported on the tax form.
|
|
87
|
+
*/
|
|
88
|
+
reporting_period_start_date: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface EuDac7 {
|
|
92
|
+
/**
|
|
93
|
+
* End date of the period represented by the information reported on the tax form.
|
|
94
|
+
*/
|
|
95
|
+
reporting_period_end_date: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Start date of the period represented by the information reported on the tax form.
|
|
99
|
+
*/
|
|
100
|
+
reporting_period_start_date: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface FilingStatus {
|
|
104
|
+
/**
|
|
105
|
+
* Time when the filing status was updated.
|
|
106
|
+
*/
|
|
107
|
+
effective_at: number;
|
|
108
|
+
|
|
109
|
+
jurisdiction: FilingStatus.Jurisdiction;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The current status of the filed form.
|
|
113
|
+
*/
|
|
114
|
+
value: FilingStatus.Value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
namespace FilingStatus {
|
|
118
|
+
interface Jurisdiction {
|
|
119
|
+
/**
|
|
120
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
121
|
+
*/
|
|
122
|
+
country: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Indicates the level of the jurisdiction where the form was filed.
|
|
126
|
+
*/
|
|
127
|
+
level: Jurisdiction.Level;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* [ISO 3166-2 U.S. state code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix, if any. For example, "NY" for New York, United States. Null for non-U.S. forms.
|
|
131
|
+
*/
|
|
132
|
+
state: string | null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
namespace Jurisdiction {
|
|
136
|
+
type Level = 'country' | 'state';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
type Value = 'accepted' | 'filed' | 'rejected';
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface GbMrdp {
|
|
143
|
+
/**
|
|
144
|
+
* End date of the period represented by the information reported on the tax form.
|
|
145
|
+
*/
|
|
146
|
+
reporting_period_end_date: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Start date of the period represented by the information reported on the tax form.
|
|
150
|
+
*/
|
|
151
|
+
reporting_period_start_date: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface NzMrdp {
|
|
155
|
+
/**
|
|
156
|
+
* End date of the period represented by the information reported on the tax form.
|
|
157
|
+
*/
|
|
158
|
+
reporting_period_end_date: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Start date of the period represented by the information reported on the tax form.
|
|
162
|
+
*/
|
|
163
|
+
reporting_period_start_date: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface Payee {
|
|
167
|
+
/**
|
|
168
|
+
* The ID of the payee's Stripe account.
|
|
169
|
+
*/
|
|
170
|
+
account: string | Stripe.Account | null;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The external reference to this payee.
|
|
174
|
+
*/
|
|
175
|
+
external_reference: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Either `account` or `external_reference`.
|
|
179
|
+
*/
|
|
180
|
+
type: Payee.Type;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
namespace Payee {
|
|
184
|
+
type Type = 'account' | 'external_reference';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
type Type =
|
|
188
|
+
| 'au_serr'
|
|
189
|
+
| 'ca_mrdp'
|
|
190
|
+
| 'eu_dac7'
|
|
191
|
+
| 'gb_mrdp'
|
|
192
|
+
| 'nz_mrdp'
|
|
193
|
+
| 'us_1099_k'
|
|
194
|
+
| 'us_1099_misc'
|
|
195
|
+
| 'us_1099_nec';
|
|
196
|
+
|
|
197
|
+
interface Us1099K {
|
|
198
|
+
/**
|
|
199
|
+
* Year represented by the information reported on the tax form.
|
|
200
|
+
*/
|
|
201
|
+
reporting_year: number;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
interface Us1099Misc {
|
|
205
|
+
/**
|
|
206
|
+
* Year represented by the information reported on the tax form.
|
|
207
|
+
*/
|
|
208
|
+
reporting_year: number;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface Us1099Nec {
|
|
212
|
+
/**
|
|
213
|
+
* Year represented by the information reported on the tax form.
|
|
214
|
+
*/
|
|
215
|
+
reporting_year: number;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Tax {
|
|
6
|
+
interface FormRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface FormListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* The payee whose volume is represented on the tax form.
|
|
16
|
+
*/
|
|
17
|
+
payee: FormListParams.Payee;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies which fields in the response should be expanded.
|
|
21
|
+
*/
|
|
22
|
+
expand?: Array<string>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future tax form types. If your integration expects only one type of tax form in the response, make sure to provide a type value in the request.
|
|
26
|
+
*/
|
|
27
|
+
type?: FormListParams.Type;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
namespace FormListParams {
|
|
31
|
+
interface Payee {
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the Stripe account whose forms will be retrieved.
|
|
34
|
+
*/
|
|
35
|
+
account?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The external reference to the payee whose forms will be retrieved.
|
|
39
|
+
*/
|
|
40
|
+
external_reference?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the payee type. Either `account` or `external_reference`.
|
|
44
|
+
*/
|
|
45
|
+
type?: Payee.Type;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace Payee {
|
|
49
|
+
type Type = 'account' | 'external_reference';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type Type =
|
|
53
|
+
| 'au_serr'
|
|
54
|
+
| 'ca_mrdp'
|
|
55
|
+
| 'eu_dac7'
|
|
56
|
+
| 'gb_mrdp'
|
|
57
|
+
| 'nz_mrdp'
|
|
58
|
+
| 'us_1099_k'
|
|
59
|
+
| 'us_1099_misc'
|
|
60
|
+
| 'us_1099_nec';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface FormPdfParams {
|
|
64
|
+
/**
|
|
65
|
+
* Specifies which fields in the response should be expanded.
|
|
66
|
+
*/
|
|
67
|
+
expand?: Array<string>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class FormsResource {
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
|
|
73
|
+
*/
|
|
74
|
+
retrieve(
|
|
75
|
+
id: string,
|
|
76
|
+
params?: FormRetrieveParams,
|
|
77
|
+
options?: RequestOptions
|
|
78
|
+
): Promise<Stripe.Response<Stripe.Tax.Form>>;
|
|
79
|
+
retrieve(
|
|
80
|
+
id: string,
|
|
81
|
+
options?: RequestOptions
|
|
82
|
+
): Promise<Stripe.Response<Stripe.Tax.Form>>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
|
|
86
|
+
*/
|
|
87
|
+
list(
|
|
88
|
+
params: FormListParams,
|
|
89
|
+
options?: RequestOptions
|
|
90
|
+
): ApiListPromise<Stripe.Tax.Form>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Download the PDF for a tax form.
|
|
94
|
+
*/
|
|
95
|
+
pdf(
|
|
96
|
+
id: string,
|
|
97
|
+
params?: FormPdfParams,
|
|
98
|
+
options?: RequestOptions
|
|
99
|
+
): Promise<StripeStreamResponse>;
|
|
100
|
+
pdf(
|
|
101
|
+
id: string,
|
|
102
|
+
options?: RequestOptions
|
|
103
|
+
): Promise<StripeStreamResponse>;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
package/types/TaxIds.d.ts
CHANGED
|
@@ -54,6 +54,11 @@ declare module 'stripe' {
|
|
|
54
54
|
*/
|
|
55
55
|
customer: string | Stripe.Customer | null;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* ID of the account.
|
|
59
|
+
*/
|
|
60
|
+
customer_account?: string | null;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Always true for a deleted object
|
|
59
64
|
*/
|
|
@@ -102,6 +107,11 @@ declare module 'stripe' {
|
|
|
102
107
|
*/
|
|
103
108
|
customer?: string | Stripe.Customer;
|
|
104
109
|
|
|
110
|
+
/**
|
|
111
|
+
* The account being referenced when `type` is `customer`.
|
|
112
|
+
*/
|
|
113
|
+
customer_account?: string | null;
|
|
114
|
+
|
|
105
115
|
/**
|
|
106
116
|
* Type of owner referenced.
|
|
107
117
|
*/
|
|
@@ -36,6 +36,11 @@ declare module 'stripe' {
|
|
|
36
36
|
*/
|
|
37
37
|
customer?: string;
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* v2 Account the tax ID belongs to. Can be used in place of `customer` when `type=customer`
|
|
41
|
+
*/
|
|
42
|
+
customer_account?: string;
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* Type of owner referenced.
|
|
41
46
|
*/
|
|
@@ -190,6 +195,11 @@ declare module 'stripe' {
|
|
|
190
195
|
*/
|
|
191
196
|
customer?: string;
|
|
192
197
|
|
|
198
|
+
/**
|
|
199
|
+
* v2 Account the tax ID belongs to. Can be used in place of `customer` when `type=customer`
|
|
200
|
+
*/
|
|
201
|
+
customer_account?: string;
|
|
202
|
+
|
|
193
203
|
/**
|
|
194
204
|
* Type of owner referenced.
|
|
195
205
|
*/
|
|
@@ -44,6 +44,8 @@ declare module 'stripe' {
|
|
|
44
44
|
|
|
45
45
|
offline?: Configuration.Offline;
|
|
46
46
|
|
|
47
|
+
reader_security?: Configuration.ReaderSecurity;
|
|
48
|
+
|
|
47
49
|
reboot_window?: Configuration.RebootWindow;
|
|
48
50
|
|
|
49
51
|
stripe_s700?: Configuration.StripeS700;
|
|
@@ -77,6 +79,13 @@ declare module 'stripe' {
|
|
|
77
79
|
enabled: boolean | null;
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
interface ReaderSecurity {
|
|
83
|
+
/**
|
|
84
|
+
* Passcode used to access a reader's admin menu.
|
|
85
|
+
*/
|
|
86
|
+
admin_menu_passcode: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
interface RebootWindow {
|
|
81
90
|
/**
|
|
82
91
|
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
@@ -29,6 +29,13 @@ declare module 'stripe' {
|
|
|
29
29
|
*/
|
|
30
30
|
offline?: Stripe.Emptyable<ConfigurationCreateParams.Offline>;
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Configurations for reader security settings.
|
|
34
|
+
*/
|
|
35
|
+
reader_security?: Stripe.Emptyable<
|
|
36
|
+
ConfigurationCreateParams.ReaderSecurity
|
|
37
|
+
>;
|
|
38
|
+
|
|
32
39
|
/**
|
|
33
40
|
* Reboot time settings for readers that support customized reboot time configuration.
|
|
34
41
|
*/
|
|
@@ -77,6 +84,13 @@ declare module 'stripe' {
|
|
|
77
84
|
enabled: boolean;
|
|
78
85
|
}
|
|
79
86
|
|
|
87
|
+
interface ReaderSecurity {
|
|
88
|
+
/**
|
|
89
|
+
* Passcode used to access a reader's admin menu.
|
|
90
|
+
*/
|
|
91
|
+
admin_menu_passcode?: Stripe.Emptyable<string>;
|
|
92
|
+
}
|
|
93
|
+
|
|
80
94
|
interface RebootWindow {
|
|
81
95
|
/**
|
|
82
96
|
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
@@ -719,6 +733,13 @@ declare module 'stripe' {
|
|
|
719
733
|
*/
|
|
720
734
|
offline?: Stripe.Emptyable<ConfigurationUpdateParams.Offline>;
|
|
721
735
|
|
|
736
|
+
/**
|
|
737
|
+
* Configurations for reader security settings.
|
|
738
|
+
*/
|
|
739
|
+
reader_security?: Stripe.Emptyable<
|
|
740
|
+
ConfigurationUpdateParams.ReaderSecurity
|
|
741
|
+
>;
|
|
742
|
+
|
|
722
743
|
/**
|
|
723
744
|
* Reboot time settings for readers that support customized reboot time configuration.
|
|
724
745
|
*/
|
|
@@ -771,6 +792,13 @@ declare module 'stripe' {
|
|
|
771
792
|
enabled: boolean;
|
|
772
793
|
}
|
|
773
794
|
|
|
795
|
+
interface ReaderSecurity {
|
|
796
|
+
/**
|
|
797
|
+
* Passcode used to access a reader's admin menu.
|
|
798
|
+
*/
|
|
799
|
+
admin_menu_passcode?: Stripe.Emptyable<string>;
|
|
800
|
+
}
|
|
801
|
+
|
|
774
802
|
interface RebootWindow {
|
|
775
803
|
/**
|
|
776
804
|
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
/**
|
|
7
|
+
* Returns redirect links used for onboarding onto Tap to Pay on iPhone.
|
|
8
|
+
*/
|
|
9
|
+
interface OnboardingLink {
|
|
10
|
+
object: 'terminal.onboarding_link';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Link type options associated with the current onboarding link object.
|
|
14
|
+
*/
|
|
15
|
+
link_options: OnboardingLink.LinkOptions;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The type of link being generated.
|
|
19
|
+
*/
|
|
20
|
+
link_type: 'apple_terms_and_conditions';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Stripe account ID to generate the link for.
|
|
24
|
+
*/
|
|
25
|
+
on_behalf_of: string | null;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The link passed back to the user for their onboarding.
|
|
29
|
+
*/
|
|
30
|
+
redirect_url: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
namespace OnboardingLink {
|
|
34
|
+
interface LinkOptions {
|
|
35
|
+
/**
|
|
36
|
+
* The options associated with the Apple Terms and Conditions link type.
|
|
37
|
+
*/
|
|
38
|
+
apple_terms_and_conditions: LinkOptions.AppleTermsAndConditions | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
namespace LinkOptions {
|
|
42
|
+
interface AppleTermsAndConditions {
|
|
43
|
+
/**
|
|
44
|
+
* Whether the link should also support users relinking their Apple account.
|
|
45
|
+
*/
|
|
46
|
+
allow_relinking: boolean | null;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The business name of the merchant accepting Apple's Terms and Conditions.
|
|
50
|
+
*/
|
|
51
|
+
merchant_display_name: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
interface OnboardingLinkCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specific fields needed to generate the desired link type.
|
|
9
|
+
*/
|
|
10
|
+
link_options: OnboardingLinkCreateParams.LinkOptions;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The type of link being generated.
|
|
14
|
+
*/
|
|
15
|
+
link_type: 'apple_terms_and_conditions';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies which fields in the response should be expanded.
|
|
19
|
+
*/
|
|
20
|
+
expand?: Array<string>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Stripe account ID to generate the link for.
|
|
24
|
+
*/
|
|
25
|
+
on_behalf_of?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
namespace OnboardingLinkCreateParams {
|
|
29
|
+
interface LinkOptions {
|
|
30
|
+
/**
|
|
31
|
+
* The options associated with the Apple Terms and Conditions link type.
|
|
32
|
+
*/
|
|
33
|
+
apple_terms_and_conditions?: LinkOptions.AppleTermsAndConditions;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
namespace LinkOptions {
|
|
37
|
+
interface AppleTermsAndConditions {
|
|
38
|
+
/**
|
|
39
|
+
* Whether the link should also support users relinking their Apple account.
|
|
40
|
+
*/
|
|
41
|
+
allow_relinking?: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The business name of the merchant accepting Apple's Terms and Conditions.
|
|
45
|
+
*/
|
|
46
|
+
merchant_display_name: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class OnboardingLinksResource {
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
|
|
54
|
+
*/
|
|
55
|
+
create(
|
|
56
|
+
params: OnboardingLinkCreateParams,
|
|
57
|
+
options?: RequestOptions
|
|
58
|
+
): Promise<Stripe.Response<Stripe.Terminal.OnboardingLink>>;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|