stripe 20.1.2 → 20.2.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 +1988 -14
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +123 -1
- package/cjs/RequestSender.js +1 -9
- 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/ProductCatalog/TrialOffers.js +12 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/Radar/AccountEvaluations.js +20 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +12 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +8 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Tax/Locations.js +18 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +16 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.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/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/Iam/ApiKeys.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +21 -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/Payments/SettlementAllocationIntents/Splits.js +20 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +33 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/Tax/ManualRules.js +23 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +166 -4
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +107 -0
- package/esm/RequestSender.js +1 -9
- 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/ProductCatalog/TrialOffers.js +9 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/Radar/AccountEvaluations.js +17 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +9 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +8 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Tax/Locations.js +15 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +13 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.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/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/Iam/ApiKeys.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +18 -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/Payments/SettlementAllocationIntents/Splits.js +17 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +30 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/Tax/ManualRules.js +20 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +156 -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 +63 -0
- package/types/AccountSessionsResource.d.ts +285 -0
- package/types/Accounts.d.ts +225 -1
- package/types/AccountsResource.d.ts +698 -12
- 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 +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +32 -1
- 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/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 +109 -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/Charges.d.ts +166 -0
- package/types/ChargesResource.d.ts +3855 -75
- package/types/Checkout/Sessions.d.ts +337 -2
- package/types/Checkout/SessionsResource.d.ts +450 -2
- package/types/ConfirmationTokens.d.ts +117 -0
- package/types/Coupons.d.ts +35 -0
- package/types/CouponsResource.d.ts +23 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CustomerSessions.d.ts +41 -0
- package/types/CustomerSessionsResource.d.ts +41 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +465 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +703 -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 +91 -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 +34 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -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/InvoiceItems.d.ts +123 -3
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +169 -6
- package/types/Invoices.d.ts +216 -4
- package/types/InvoicesResource.d.ts +1955 -136
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/Cards.d.ts +10 -0
- package/types/Issuing/CardsResource.d.ts +33 -0
- 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 +45 -1
- package/types/Mandates.d.ts +69 -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 +117 -0
- package/types/PaymentIntents.d.ts +728 -4
- package/types/PaymentIntentsResource.d.ts +19194 -6486
- package/types/PaymentLinks.d.ts +5 -0
- package/types/PaymentLinksResource.d.ts +29 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +122 -0
- package/types/PaymentMethodsResource.d.ts +130 -0
- package/types/PaymentRecords.d.ts +117 -0
- package/types/Persons.d.ts +30 -0
- package/types/Plans.d.ts +5 -0
- package/types/PlansResource.d.ts +19 -0
- package/types/Prices.d.ts +27 -0
- package/types/PricesResource.d.ts +41 -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/ProductCatalog/TrialOffers.d.ts +77 -0
- package/types/ProductCatalog/TrialOffersResource.d.ts +80 -0
- package/types/ProductsResource.d.ts +34 -0
- package/types/QuoteLines.d.ts +651 -0
- package/types/QuotePreviewInvoices.d.ts +1839 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +1034 -0
- package/types/Quotes.d.ts +871 -1
- package/types/QuotesResource.d.ts +3245 -297
- 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 +42 -1
- package/types/SetupIntents.d.ts +159 -2
- package/types/SetupIntentsResource.d.ts +719 -3
- package/types/SharedPayment/GrantedTokens.d.ts +102 -0
- package/types/SharedPayment/GrantedTokensResource.d.ts +29 -0
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +39 -0
- package/types/SubscriptionItemsResource.d.ts +143 -0
- package/types/SubscriptionSchedules.d.ts +324 -0
- package/types/SubscriptionSchedulesResource.d.ts +1521 -65
- package/types/Subscriptions.d.ts +279 -1
- package/types/SubscriptionsResource.d.ts +807 -2
- package/types/Tax/CalculationLineItems.d.ts +14 -1
- package/types/Tax/Calculations.d.ts +17 -1
- package/types/Tax/CalculationsResource.d.ts +5 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Tax/Locations.d.ts +34 -0
- package/types/Tax/LocationsResource.d.ts +117 -0
- package/types/Tax/Registrations.d.ts +81 -1
- package/types/Tax/RegistrationsResource.d.ts +9 -1
- package/types/Tax/Transactions.d.ts +9 -1
- package/types/TaxCodes.d.ts +18 -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 +103 -0
- package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +91 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +68 -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 +564 -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 +674 -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 +298 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +394 -0
- package/types/V2/Core/AccountLinks.d.ts +10 -2
- package/types/V2/Core/AccountLinksResource.d.ts +11 -2
- package/types/V2/Core/AccountTokensResource.d.ts +259 -0
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +2 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +5 -0
- package/types/V2/Core/Accounts.d.ts +2437 -50
- package/types/V2/Core/AccountsResource.d.ts +2538 -368
- 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 +5438 -9
- package/types/V2/Core/Events.d.ts +61 -0
- package/types/V2/Core/EventsResource.d.ts +11 -1
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +181 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +142 -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 +46 -0
- package/types/V2/Iam/ApiKeys.d.ts +154 -0
- package/types/V2/Iam/ApiKeysResource.d.ts +215 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +122 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/CurrencyConversions.d.ts +98 -0
- package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +141 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +216 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +179 -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 +250 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +156 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +230 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +134 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +450 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +292 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +332 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +225 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +227 -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 +115 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +356 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +248 -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 +200 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +227 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +249 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +306 -0
- package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +111 -0
- package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +126 -0
- package/types/V2/Payments/SettlementAllocationIntents.d.ts +122 -0
- package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +168 -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/Tax/ManualRules.d.ts +142 -0
- package/types/V2/Tax/ManualRulesResource.d.ts +292 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +85 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +77 -2
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +260 -0
- package/types/lib.d.ts +10 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
interface ProfileCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the customer object.
|
|
10
|
+
*/
|
|
11
|
+
customer: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the payment method object.
|
|
15
|
+
*/
|
|
16
|
+
default_payment_method?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A customer-facing name for the billing profile.
|
|
20
|
+
* Maximum length of 250 characters.
|
|
21
|
+
*/
|
|
22
|
+
display_name?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer.
|
|
26
|
+
* Maximum length of 200 characters.
|
|
27
|
+
*/
|
|
28
|
+
lookup_key?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
32
|
+
*/
|
|
33
|
+
metadata?: Stripe.MetadataParam;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
namespace Billing {
|
|
38
|
+
interface ProfileRetrieveParams {}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
namespace Billing {
|
|
42
|
+
interface ProfileUpdateParams {
|
|
43
|
+
/**
|
|
44
|
+
* The ID of the payment method object.
|
|
45
|
+
*/
|
|
46
|
+
default_payment_method?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A customer-facing name for the billing profile.
|
|
50
|
+
* Maximum length of 250 characters.
|
|
51
|
+
* To remove the display_name from the object, set it to null in the request.
|
|
52
|
+
*/
|
|
53
|
+
display_name?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer.
|
|
57
|
+
* Maximum length of 200 characters.
|
|
58
|
+
* To remove the lookup_key from the object, set it to null in the request.
|
|
59
|
+
*/
|
|
60
|
+
lookup_key?: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
64
|
+
*/
|
|
65
|
+
metadata?: Stripe.MetadataParam;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
namespace Billing {
|
|
70
|
+
interface ProfileListParams {
|
|
71
|
+
/**
|
|
72
|
+
* Filter billing profiles by lookup keys. Mutually exclusive
|
|
73
|
+
* with `customer` and `default_payment_method`.
|
|
74
|
+
* You can specify up to 10 lookup_keys.
|
|
75
|
+
*/
|
|
76
|
+
lookup_keys: Array<string>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Filter billing profiles by a customer. Mutually exclusive
|
|
80
|
+
* with `lookup_keys` and `default_payment_method`.
|
|
81
|
+
*/
|
|
82
|
+
customer?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Filter billing profiles by a default payment method. Mutually exclusive
|
|
86
|
+
* with `customer` and `lookup_keys`.
|
|
87
|
+
*/
|
|
88
|
+
default_payment_method?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Optionally set the maximum number of results per page. Defaults to 10.
|
|
92
|
+
*/
|
|
93
|
+
limit?: number;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Filter billing profiles by status. Can be combined
|
|
97
|
+
* with all other filters. If not provided, all billing profiles will be returned.
|
|
98
|
+
*/
|
|
99
|
+
status?: ProfileListParams.Status;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
namespace ProfileListParams {
|
|
103
|
+
type Status = 'active' | 'inactive';
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
namespace Billing {
|
|
108
|
+
class ProfilesResource {
|
|
109
|
+
/**
|
|
110
|
+
* Create a BillingProfile object.
|
|
111
|
+
*/
|
|
112
|
+
create(
|
|
113
|
+
params: ProfileCreateParams,
|
|
114
|
+
options?: RequestOptions
|
|
115
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.Profile>>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Retrieve a BillingProfile object.
|
|
119
|
+
*/
|
|
120
|
+
retrieve(
|
|
121
|
+
id: string,
|
|
122
|
+
params?: ProfileRetrieveParams,
|
|
123
|
+
options?: RequestOptions
|
|
124
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.Profile>>;
|
|
125
|
+
retrieve(
|
|
126
|
+
id: string,
|
|
127
|
+
options?: RequestOptions
|
|
128
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.Profile>>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Update a BillingProfile object.
|
|
132
|
+
*/
|
|
133
|
+
update(
|
|
134
|
+
id: string,
|
|
135
|
+
params?: ProfileUpdateParams,
|
|
136
|
+
options?: RequestOptions
|
|
137
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.Profile>>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* List Billing Profiles.
|
|
141
|
+
*/
|
|
142
|
+
list(
|
|
143
|
+
params: ProfileListParams,
|
|
144
|
+
options?: RequestOptions
|
|
145
|
+
): ApiListPromise<Stripe.V2.Billing.Profile>;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
/**
|
|
8
|
+
* The RateCardRate object.
|
|
9
|
+
*/
|
|
10
|
+
interface RateCardRate {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
+
*/
|
|
19
|
+
object: 'v2.billing.rate_card_rate';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp of when the object was created.
|
|
23
|
+
*/
|
|
24
|
+
created: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The custom pricing unit that this rate binds to.
|
|
28
|
+
*/
|
|
29
|
+
custom_pricing_unit_amount?: RateCardRate.CustomPricingUnitAmount;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
33
|
+
*/
|
|
34
|
+
livemode: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
38
|
+
*/
|
|
39
|
+
metadata?: Stripe.Metadata;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A Metered Item represents a billable item whose pricing is based on usage, measured by a meter. You can use rate cards
|
|
43
|
+
* to specify the pricing and create subscriptions to these items.
|
|
44
|
+
*/
|
|
45
|
+
metered_item: Stripe.V2.Billing.MeteredItem;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the Rate Card it belongs to.
|
|
49
|
+
*/
|
|
50
|
+
rate_card: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the Rate Card Version it was created on.
|
|
54
|
+
*/
|
|
55
|
+
rate_card_version: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Defines whether the tiering price should be graduated or volume-based. In volume-based tiering, the maximum
|
|
59
|
+
* quantity within a period determines the per-unit price. In graduated tiering, the pricing changes as the quantity
|
|
60
|
+
* grows into new tiers. Can only be set if `tiers` is set.
|
|
61
|
+
*/
|
|
62
|
+
tiering_mode?: RateCardRate.TieringMode;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Each element represents a pricing tier. Cannot be set if `unit_amount` is provided.
|
|
66
|
+
*/
|
|
67
|
+
tiers: Array<RateCardRate.Tier>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Apply a transformation to the reported usage or set quantity before computing the amount billed.
|
|
71
|
+
*/
|
|
72
|
+
transform_quantity?: RateCardRate.TransformQuantity;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal
|
|
76
|
+
* places. Cannot be set if `tiers` is provided.
|
|
77
|
+
*/
|
|
78
|
+
unit_amount?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
namespace RateCardRate {
|
|
82
|
+
interface CustomPricingUnitAmount {
|
|
83
|
+
/**
|
|
84
|
+
* The Custom Pricing Unit object.
|
|
85
|
+
*/
|
|
86
|
+
custom_pricing_unit_details?: Stripe.V2.Billing.CustomPricingUnit;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The id of the custom pricing unit.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The unit value for the custom pricing unit, as a string.
|
|
95
|
+
*/
|
|
96
|
+
value: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface Tier {
|
|
100
|
+
/**
|
|
101
|
+
* Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
|
|
102
|
+
*/
|
|
103
|
+
flat_amount?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at
|
|
107
|
+
* most 12 decimal places.
|
|
108
|
+
*/
|
|
109
|
+
unit_amount?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Up to and including this quantity will be contained in the tier. Only one of `up_to_decimal` and `up_to_inf` may
|
|
113
|
+
* be set.
|
|
114
|
+
*/
|
|
115
|
+
up_to_decimal?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
|
119
|
+
*/
|
|
120
|
+
up_to_inf?: 'inf';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type TieringMode = 'graduated' | 'volume';
|
|
124
|
+
|
|
125
|
+
interface TransformQuantity {
|
|
126
|
+
/**
|
|
127
|
+
* Divide usage by this number.
|
|
128
|
+
*/
|
|
129
|
+
divide_by: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* After division, round the result up or down.
|
|
133
|
+
*/
|
|
134
|
+
round: TransformQuantity.Round;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
namespace TransformQuantity {
|
|
138
|
+
type Round = 'down' | 'up';
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
/**
|
|
8
|
+
* The RateCardSubscription object.
|
|
9
|
+
*/
|
|
10
|
+
interface RateCardSubscription {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
+
*/
|
|
19
|
+
object: 'v2.billing.rate_card_subscription';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the Billing Cadence.
|
|
23
|
+
*/
|
|
24
|
+
billing_cadence: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The payment status of a Rate Card Subscription.
|
|
28
|
+
*/
|
|
29
|
+
collection_status?: RateCardSubscription.CollectionStatus;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The collection status transitions of the Rate Card Subscription.
|
|
33
|
+
*/
|
|
34
|
+
collection_status_transitions?: RateCardSubscription.CollectionStatusTransitions;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Timestamp of when the object was created.
|
|
38
|
+
*/
|
|
39
|
+
created: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
43
|
+
*/
|
|
44
|
+
livemode: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
48
|
+
*/
|
|
49
|
+
metadata?: Stripe.Metadata;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The ID of the Rate Card.
|
|
53
|
+
*/
|
|
54
|
+
rate_card: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the Rate Card Version.
|
|
58
|
+
*/
|
|
59
|
+
rate_card_version: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The servicing status of a Rate Card Subscription.
|
|
63
|
+
*/
|
|
64
|
+
servicing_status?: RateCardSubscription.ServicingStatus;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The servicing status transitions of the Rate Card Subscription.
|
|
68
|
+
*/
|
|
69
|
+
servicing_status_transitions?: RateCardSubscription.ServicingStatusTransitions;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the Test Clock, if any.
|
|
73
|
+
*/
|
|
74
|
+
test_clock?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
namespace RateCardSubscription {
|
|
78
|
+
type CollectionStatus =
|
|
79
|
+
| 'awaiting_customer_action'
|
|
80
|
+
| 'current'
|
|
81
|
+
| 'past_due'
|
|
82
|
+
| 'paused'
|
|
83
|
+
| 'unpaid';
|
|
84
|
+
|
|
85
|
+
interface CollectionStatusTransitions {
|
|
86
|
+
/**
|
|
87
|
+
* When the collection status transitioned to awaiting customer action.
|
|
88
|
+
*/
|
|
89
|
+
awaiting_customer_action_at?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* When the collection status transitioned to current.
|
|
93
|
+
*/
|
|
94
|
+
current_at?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* When the collection status transitioned to past due.
|
|
98
|
+
*/
|
|
99
|
+
past_due_at?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* When the collection status transitioned to paused.
|
|
103
|
+
*/
|
|
104
|
+
paused_at?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* When the collection status transitioned to unpaid.
|
|
108
|
+
*/
|
|
109
|
+
unpaid_at?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type ServicingStatus = 'active' | 'canceled' | 'paused' | 'pending';
|
|
113
|
+
|
|
114
|
+
interface ServicingStatusTransitions {
|
|
115
|
+
/**
|
|
116
|
+
* When the servicing status transitioned to activated.
|
|
117
|
+
*/
|
|
118
|
+
activated_at?: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* When the servicing status transitioned to canceled.
|
|
122
|
+
*/
|
|
123
|
+
canceled_at?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* When the servicing status transitioned to paused.
|
|
127
|
+
*/
|
|
128
|
+
paused_at?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* When the servicing is scheduled to transition to activate.
|
|
132
|
+
*/
|
|
133
|
+
will_activate_at?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* When the servicing is scheduled to cancel.
|
|
137
|
+
*/
|
|
138
|
+
will_cancel_at?: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
interface RateCardSubscriptionCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the Billing Cadence.
|
|
10
|
+
*/
|
|
11
|
+
billing_cadence: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the Rate Card.
|
|
15
|
+
*/
|
|
16
|
+
rate_card: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
20
|
+
*/
|
|
21
|
+
metadata?: Stripe.MetadataParam;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the Rate Card Version. If not specified, defaults to the "live_version" of the Rate Card at the time of creation.
|
|
25
|
+
*/
|
|
26
|
+
rate_card_version?: string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
namespace Billing {
|
|
31
|
+
interface RateCardSubscriptionRetrieveParams {}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
namespace Billing {
|
|
35
|
+
interface RateCardSubscriptionUpdateParams {
|
|
36
|
+
/**
|
|
37
|
+
* Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
38
|
+
*/
|
|
39
|
+
metadata?: Stripe.MetadataParam;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
namespace Billing {
|
|
44
|
+
interface RateCardSubscriptionListParams {
|
|
45
|
+
/**
|
|
46
|
+
* Optionally filter by a BillingCadence. Mutually exclusive with `payers`, `rate_card`, and `rate_card_version`.
|
|
47
|
+
*/
|
|
48
|
+
billing_cadence?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The page size limit, if not provided the default is 20.
|
|
52
|
+
*/
|
|
53
|
+
limit?: number;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Optionally filter by the payer associated with Billing Cadences which the Rate Card Subscriptions are subscribed to.
|
|
57
|
+
* Mutually exclusive with `billing_cadence`, `rate_card`, and `rate_card_version`.
|
|
58
|
+
*/
|
|
59
|
+
payer?: RateCardSubscriptionListParams.Payer;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Optionally filter by a RateCard. Mutually exclusive with `billing_cadence`, `payers`, and `rate_card_version`.
|
|
63
|
+
*/
|
|
64
|
+
rate_card?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Optionally filter by a RateCard version. Mutually exclusive with `billing_cadence`, `payers`, and `rate_card`.
|
|
68
|
+
*/
|
|
69
|
+
rate_card_version?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Optionally filter by servicing status.
|
|
73
|
+
*/
|
|
74
|
+
servicing_status?: RateCardSubscriptionListParams.ServicingStatus;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
namespace RateCardSubscriptionListParams {
|
|
78
|
+
interface Payer {
|
|
79
|
+
/**
|
|
80
|
+
* The ID of the Customer object. If provided, only the Rate Card Subscriptions that are subscribed on the Billing Cadences with the specified payer will be returned.
|
|
81
|
+
*/
|
|
82
|
+
customer?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* A string identifying the type of the payer. Currently the only supported value is `customer`.
|
|
86
|
+
*/
|
|
87
|
+
type: 'customer';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type ServicingStatus = 'active' | 'canceled' | 'paused' | 'pending';
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
namespace Billing {
|
|
95
|
+
interface RateCardSubscriptionCancelParams {}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
namespace Billing {
|
|
99
|
+
class RateCardSubscriptionsResource {
|
|
100
|
+
/**
|
|
101
|
+
* Create a Rate Card Subscription to bill a Rate Card on a specified Billing Cadence.
|
|
102
|
+
*/
|
|
103
|
+
create(
|
|
104
|
+
params: RateCardSubscriptionCreateParams,
|
|
105
|
+
options?: RequestOptions
|
|
106
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Retrieve a Rate Card Subscription by ID.
|
|
110
|
+
*/
|
|
111
|
+
retrieve(
|
|
112
|
+
id: string,
|
|
113
|
+
params?: RateCardSubscriptionRetrieveParams,
|
|
114
|
+
options?: RequestOptions
|
|
115
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
116
|
+
retrieve(
|
|
117
|
+
id: string,
|
|
118
|
+
options?: RequestOptions
|
|
119
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Update fields on an existing, active Rate Card Subscription.
|
|
123
|
+
*/
|
|
124
|
+
update(
|
|
125
|
+
id: string,
|
|
126
|
+
params?: RateCardSubscriptionUpdateParams,
|
|
127
|
+
options?: RequestOptions
|
|
128
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* List all Rate Card Subscription objects.
|
|
132
|
+
*/
|
|
133
|
+
list(
|
|
134
|
+
params?: RateCardSubscriptionListParams,
|
|
135
|
+
options?: RequestOptions
|
|
136
|
+
): ApiListPromise<Stripe.V2.Billing.RateCardSubscription>;
|
|
137
|
+
list(
|
|
138
|
+
options?: RequestOptions
|
|
139
|
+
): ApiListPromise<Stripe.V2.Billing.RateCardSubscription>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Cancel an existing, active Rate Card Subscription.
|
|
143
|
+
*/
|
|
144
|
+
cancel(
|
|
145
|
+
id: string,
|
|
146
|
+
params?: RateCardSubscriptionCancelParams,
|
|
147
|
+
options?: RequestOptions
|
|
148
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
149
|
+
cancel(
|
|
150
|
+
id: string,
|
|
151
|
+
options?: RequestOptions
|
|
152
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.RateCardSubscription>>;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
/**
|
|
8
|
+
* The RateCardVersion object.
|
|
9
|
+
*/
|
|
10
|
+
interface RateCardVersion {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
+
*/
|
|
19
|
+
object: 'v2.billing.rate_card_version';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp of when the object was created.
|
|
23
|
+
*/
|
|
24
|
+
created: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
28
|
+
*/
|
|
29
|
+
livemode: boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the Rate Card that this version belongs to.
|
|
33
|
+
*/
|
|
34
|
+
rate_card_id: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|