stripe 20.0.0 → 20.1.0-alpha.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 +1790 -12
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceTransfers.js +9 -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/Issuing/Programs.js +22 -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/Radar/AccountEvaluations.js +20 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +16 -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/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +152 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +100 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceTransfers.js +6 -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/Issuing/Programs.js +19 -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/Radar/AccountEvaluations.js +17 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +13 -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/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +138 -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 +232 -1
- package/types/AccountsResource.d.ts +674 -0
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BalanceTransfers.d.ts +122 -0
- package/types/BalanceTransfersResource.d.ts +87 -0
- 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 +190 -0
- package/types/ChargesResource.d.ts +3855 -75
- 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 +35 -0
- package/types/CouponsResource.d.ts +23 -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 +384 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +599 -0
- package/types/Discounts.d.ts +20 -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 +96 -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 +127 -2
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +171 -3
- package/types/Invoices.d.ts +216 -4
- package/types/InvoicesResource.d.ts +1743 -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/Programs.d.ts +42 -0
- package/types/Issuing/ProgramsResource.d.ts +96 -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 +5505 -0
- package/types/PaymentAttemptRecords.d.ts +141 -0
- package/types/PaymentIntents.d.ts +779 -3
- package/types/PaymentIntentsResource.d.ts +19573 -6528
- 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 +199 -2
- package/types/PaymentRecords.d.ts +141 -0
- package/types/Persons.d.ts +30 -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 +1784 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +1108 -0
- package/types/Quotes.d.ts +982 -1
- package/types/QuotesResource.d.ts +3226 -293
- package/types/Radar/AccountEvaluations.d.ts +88 -0
- package/types/Radar/AccountEvaluationsResource.d.ts +148 -0
- 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 +403 -0
- package/types/SubscriptionSchedulesResource.d.ts +1437 -0
- package/types/Subscriptions.d.ts +370 -1
- package/types/SubscriptionsResource.d.ts +757 -8
- 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/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +130 -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/TokensResource.d.ts +44 -0
- package/types/Transfers.d.ts +9 -0
- package/types/TransfersResource.d.ts +7 -0
- package/types/TransitBalances.d.ts +40 -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 +735 -0
- package/types/V2/Billing/CadencesResource.d.ts +516 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +318 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +341 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +683 -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/MeterEvents.d.ts +1 -2
- 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 +8680 -10
- package/types/V2/Core/Events.d.ts +14 -0
- package/types/V2/Core/EventsResource.d.ts +17 -2
- 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 +212 -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/Reporting/ReportRuns.d.ts +154 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +75 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +76 -0
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +233 -0
- package/types/lib.d.ts +10 -0
|
@@ -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,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
/**
|
|
7
|
+
* Returns data collected by Terminal readers. This data is only stored for 24 hours.
|
|
8
|
+
*/
|
|
9
|
+
interface ReaderCollectedData {
|
|
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: 'terminal.reader_collected_data';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
|
+
*/
|
|
28
|
+
livemode: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The magstripe data collected by the reader.
|
|
32
|
+
*/
|
|
33
|
+
magstripe: ReaderCollectedData.Magstripe | null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The type of data collected by the reader.
|
|
37
|
+
*/
|
|
38
|
+
type: 'magstripe';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
namespace ReaderCollectedData {
|
|
42
|
+
interface Magstripe {
|
|
43
|
+
/**
|
|
44
|
+
* The raw magstripe data collected by the reader.
|
|
45
|
+
*/
|
|
46
|
+
data: string | null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
interface ReaderCollectedDataRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ReaderCollectedDataResource {
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve data collected using Reader hardware.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(
|
|
18
|
+
id: string,
|
|
19
|
+
params?: ReaderCollectedDataRetrieveParams,
|
|
20
|
+
options?: RequestOptions
|
|
21
|
+
): Promise<Stripe.Response<Stripe.Terminal.ReaderCollectedData>>;
|
|
22
|
+
retrieve(
|
|
23
|
+
id: string,
|
|
24
|
+
options?: RequestOptions
|
|
25
|
+
): Promise<Stripe.Response<Stripe.Terminal.ReaderCollectedData>>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -366,6 +366,11 @@ declare module 'stripe' {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
interface CollectPaymentMethod {
|
|
369
|
+
/**
|
|
370
|
+
* Account the payment intent belongs to.
|
|
371
|
+
*/
|
|
372
|
+
account?: string;
|
|
373
|
+
|
|
369
374
|
/**
|
|
370
375
|
* Represents a per-transaction override of a reader configuration
|
|
371
376
|
*/
|
|
@@ -415,6 +420,11 @@ declare module 'stripe' {
|
|
|
415
420
|
}
|
|
416
421
|
|
|
417
422
|
interface ConfirmPaymentIntent {
|
|
423
|
+
/**
|
|
424
|
+
* Account the payment intent belongs to.
|
|
425
|
+
*/
|
|
426
|
+
account?: string;
|
|
427
|
+
|
|
418
428
|
/**
|
|
419
429
|
* Represents a per-transaction override of a reader configuration
|
|
420
430
|
*/
|
|
@@ -436,6 +446,11 @@ declare module 'stripe' {
|
|
|
436
446
|
}
|
|
437
447
|
|
|
438
448
|
interface ProcessPaymentIntent {
|
|
449
|
+
/**
|
|
450
|
+
* Account the payment intent belongs to.
|
|
451
|
+
*/
|
|
452
|
+
account?: string;
|
|
453
|
+
|
|
439
454
|
/**
|
|
440
455
|
* Most recent PaymentIntent processed by the reader.
|
|
441
456
|
*/
|
|
@@ -507,6 +522,11 @@ declare module 'stripe' {
|
|
|
507
522
|
}
|
|
508
523
|
|
|
509
524
|
interface RefundPayment {
|
|
525
|
+
/**
|
|
526
|
+
* Account the payment intent belongs to.
|
|
527
|
+
*/
|
|
528
|
+
account?: string;
|
|
529
|
+
|
|
510
530
|
/**
|
|
511
531
|
* The amount being refunded.
|
|
512
532
|
*/
|