stripe 19.1.0 → 19.2.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 +1538 -18
- 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/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/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/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +13 -0
- package/cjs/resources/PaymentRecords.js +33 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +21 -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 +28 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +140 -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/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/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/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +13 -0
- package/esm/resources/PaymentRecords.js +30 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +18 -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 +25 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +125 -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 +212 -1
- package/types/AccountsResource.d.ts +544 -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 +689 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -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 +43 -2
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- 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 +5 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +171 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +427 -2
- package/types/Checkout/SessionsResource.d.ts +684 -2
- package/types/ConfirmationTokens.d.ts +125 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +31 -0
- package/types/CreditNotesResource.d.ts +83 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +5 -0
- package/types/CustomerSessionsResource.d.ts +6 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +664 -0
- package/types/Events.d.ts +97 -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/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +114 -2
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +158 -3
- package/types/InvoicePayments.d.ts +5 -0
- package/types/InvoicePaymentsResource.d.ts +10 -1
- package/types/Invoices.d.ts +204 -4
- package/types/InvoicesResource.d.ts +1652 -22
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -0
- package/types/Mandates.d.ts +135 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +2360 -0
- package/types/PaymentAttemptRecordsResource.d.ts +52 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +825 -3
- package/types/PaymentIntentsResource.d.ts +11753 -5914
- package/types/PaymentLinks.d.ts +7 -0
- package/types/PaymentLinksResource.d.ts +14 -0
- package/types/PaymentMethodConfigurations.d.ts +216 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
- package/types/PaymentMethods.d.ts +130 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2353 -0
- package/types/PaymentRecordsResource.d.ts +559 -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 +1770 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2588 -243
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +51 -1
- package/types/SetupIntents.d.ts +210 -2
- package/types/SetupIntentsResource.d.ts +938 -4
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1233 -5
- package/types/Subscriptions.d.ts +263 -1
- package/types/SubscriptionsResource.d.ts +747 -8
- package/types/Tax/Associations.d.ts +82 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Transfers.d.ts +5 -0
- package/types/TransfersResource.d.ts +5 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +731 -0
- package/types/V2/Billing/CadencesResource.d.ts +516 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +118 -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 +5978 -0
- package/types/V2/Core/AccountsResource.d.ts +5023 -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 +8452 -10
- package/types/V2/Core/Events.d.ts +12 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -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 +147 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +126 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +283 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +247 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +330 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +256 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +213 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +201 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +302 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +181 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +48 -0
- package/types/WebhookEndpointsResource.d.ts +78 -0
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +218 -0
- package/types/lib.d.ts +10 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
namespace PricingPlans {
|
|
8
|
+
interface ComponentCreateParams {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the PricingPlanComponent.
|
|
11
|
+
*/
|
|
12
|
+
type: ComponentCreateParams.Type;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Details if this component is a License Fee.
|
|
16
|
+
*/
|
|
17
|
+
license_fee?: ComponentCreateParams.LicenseFee;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An identifier that can be used to find this component.
|
|
21
|
+
*/
|
|
22
|
+
lookup_key?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
metadata?: Stripe.MetadataParam;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Details if this component is a Rate Card.
|
|
31
|
+
*/
|
|
32
|
+
rate_card?: ComponentCreateParams.RateCard;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Details if this component is a Service Action.
|
|
36
|
+
*/
|
|
37
|
+
service_action?: ComponentCreateParams.ServiceAction;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
namespace ComponentCreateParams {
|
|
41
|
+
interface LicenseFee {
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the License Fee.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The version of the LicenseFee. Defaults to 'latest', if not specified.
|
|
49
|
+
*/
|
|
50
|
+
version?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface RateCard {
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the Rate Card.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The version of the RateCard. Defaults to 'latest', if not specified.
|
|
61
|
+
*/
|
|
62
|
+
version?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface ServiceAction {
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the service action.
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type Type = 'license_fee' | 'rate_card' | 'service_action';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
namespace Billing {
|
|
78
|
+
namespace PricingPlans {
|
|
79
|
+
interface ComponentRetrieveParams {}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
namespace Billing {
|
|
84
|
+
namespace PricingPlans {
|
|
85
|
+
interface ComponentUpdateParams {
|
|
86
|
+
/**
|
|
87
|
+
* An identifier that can be used to find this component. Maximum length of 200 characters.
|
|
88
|
+
*/
|
|
89
|
+
lookup_key?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Set of key-value pairs that you can attach to an object.
|
|
93
|
+
*/
|
|
94
|
+
metadata?: Stripe.MetadataParam;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
namespace Billing {
|
|
100
|
+
namespace PricingPlans {
|
|
101
|
+
interface ComponentListParams {
|
|
102
|
+
/**
|
|
103
|
+
* Optionally set the maximum number of results per page. Defaults to 20.
|
|
104
|
+
*/
|
|
105
|
+
limit?: number;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Filter by lookup keys. Mutually exclusive with `pricing_plan_version`.
|
|
109
|
+
* You can specify up to 10 lookup keys.
|
|
110
|
+
*/
|
|
111
|
+
lookup_keys?: Array<string>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the Pricing Plan Version to list components for. Will use the latest version if not provided.
|
|
115
|
+
* Mutually exclusive with `lookup_keys`.
|
|
116
|
+
*/
|
|
117
|
+
pricing_plan_version?: string;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
namespace Billing {
|
|
123
|
+
namespace PricingPlans {
|
|
124
|
+
interface ComponentDeleteParams {}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
namespace Billing {
|
|
129
|
+
namespace PricingPlans {
|
|
130
|
+
class ComponentsResource {
|
|
131
|
+
/**
|
|
132
|
+
* Create a Pricing Plan Component object.
|
|
133
|
+
*/
|
|
134
|
+
create(
|
|
135
|
+
id: string,
|
|
136
|
+
params: ComponentCreateParams,
|
|
137
|
+
options?: RequestOptions
|
|
138
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanComponent>>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Retrieve a Pricing Plan Component object.
|
|
142
|
+
*/
|
|
143
|
+
retrieve(
|
|
144
|
+
pricingPlanId: string,
|
|
145
|
+
id: string,
|
|
146
|
+
params?: ComponentRetrieveParams,
|
|
147
|
+
options?: RequestOptions
|
|
148
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanComponent>>;
|
|
149
|
+
retrieve(
|
|
150
|
+
pricingPlanId: string,
|
|
151
|
+
id: string,
|
|
152
|
+
options?: RequestOptions
|
|
153
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanComponent>>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Update a Pricing Plan Component object.
|
|
157
|
+
*/
|
|
158
|
+
update(
|
|
159
|
+
pricingPlanId: string,
|
|
160
|
+
id: string,
|
|
161
|
+
params?: ComponentUpdateParams,
|
|
162
|
+
options?: RequestOptions
|
|
163
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanComponent>>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* List all Pricing Plan Component objects for a Pricing Plan.
|
|
167
|
+
*/
|
|
168
|
+
list(
|
|
169
|
+
id: string,
|
|
170
|
+
params?: ComponentListParams,
|
|
171
|
+
options?: RequestOptions
|
|
172
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlanComponent>;
|
|
173
|
+
list(
|
|
174
|
+
id: string,
|
|
175
|
+
options?: RequestOptions
|
|
176
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlanComponent>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Remove a Pricing Plan Component from the latest version of a Pricing Plan.
|
|
180
|
+
*/
|
|
181
|
+
del(
|
|
182
|
+
pricingPlanId: string,
|
|
183
|
+
id: string,
|
|
184
|
+
params?: ComponentDeleteParams,
|
|
185
|
+
options?: RequestOptions
|
|
186
|
+
): Promise<Stripe.Response<Stripe.V2.DeletedObject>>;
|
|
187
|
+
del(
|
|
188
|
+
pricingPlanId: string,
|
|
189
|
+
id: string,
|
|
190
|
+
options?: RequestOptions
|
|
191
|
+
): Promise<Stripe.Response<Stripe.V2.DeletedObject>>;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
namespace PricingPlans {
|
|
8
|
+
interface VersionRetrieveParams {}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
namespace Billing {
|
|
13
|
+
namespace PricingPlans {
|
|
14
|
+
interface VersionListParams {
|
|
15
|
+
/**
|
|
16
|
+
* Optionally set the maximum number of results per page. Defaults to 20.
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
namespace Billing {
|
|
24
|
+
namespace PricingPlans {
|
|
25
|
+
class VersionsResource {
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve a specific Pricing Plan Version of a Pricing Plan.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(
|
|
30
|
+
pricingPlanId: string,
|
|
31
|
+
id: string,
|
|
32
|
+
params?: VersionRetrieveParams,
|
|
33
|
+
options?: RequestOptions
|
|
34
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanVersion>>;
|
|
35
|
+
retrieve(
|
|
36
|
+
pricingPlanId: string,
|
|
37
|
+
id: string,
|
|
38
|
+
options?: RequestOptions
|
|
39
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlanVersion>>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* List all Pricing Plan Versions of a Pricing Plan.
|
|
43
|
+
*/
|
|
44
|
+
list(
|
|
45
|
+
id: string,
|
|
46
|
+
params?: VersionListParams,
|
|
47
|
+
options?: RequestOptions
|
|
48
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlanVersion>;
|
|
49
|
+
list(
|
|
50
|
+
id: string,
|
|
51
|
+
options?: RequestOptions
|
|
52
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlanVersion>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
/**
|
|
8
|
+
* The PricingPlan object.
|
|
9
|
+
*/
|
|
10
|
+
interface PricingPlan {
|
|
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.pricing_plan';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Whether the PricingPlan is active.
|
|
23
|
+
*/
|
|
24
|
+
active: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Time at which the object was created.
|
|
28
|
+
*/
|
|
29
|
+
created: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The currency of the PricingPlan.
|
|
33
|
+
*/
|
|
34
|
+
currency: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A description for pricing plan subscription.
|
|
38
|
+
* Maximum length of 500 characters.
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Display name of the PricingPlan.
|
|
44
|
+
*/
|
|
45
|
+
display_name: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the latest version of the PricingPlan.
|
|
49
|
+
*/
|
|
50
|
+
latest_version: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the live version of the PricingPlan.
|
|
54
|
+
*/
|
|
55
|
+
live_version?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
59
|
+
*/
|
|
60
|
+
livemode: boolean;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
|
|
64
|
+
*/
|
|
65
|
+
lookup_key?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 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.
|
|
69
|
+
*/
|
|
70
|
+
metadata?: Stripe.Metadata;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
|
|
74
|
+
*/
|
|
75
|
+
tax_behavior: PricingPlan.TaxBehavior;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
namespace PricingPlan {
|
|
79
|
+
type TaxBehavior = 'exclusive' | 'inclusive';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
interface PricingPlanCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The currency of the PricingPlan.
|
|
10
|
+
*/
|
|
11
|
+
currency: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Display name of the PricingPlan. Maximum 250 characters.
|
|
15
|
+
*/
|
|
16
|
+
display_name: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
|
|
20
|
+
*/
|
|
21
|
+
tax_behavior: PricingPlanCreateParams.TaxBehavior;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Description of pricing plan subscription.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
|
|
30
|
+
*/
|
|
31
|
+
lookup_key?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
*/
|
|
36
|
+
metadata?: Stripe.MetadataParam;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
namespace PricingPlanCreateParams {
|
|
40
|
+
type TaxBehavior = 'exclusive' | 'inclusive';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
namespace Billing {
|
|
45
|
+
interface PricingPlanRetrieveParams {}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace Billing {
|
|
49
|
+
interface PricingPlanUpdateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Whether the PricingPlan is active.
|
|
52
|
+
*/
|
|
53
|
+
active?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Description of pricing plan subscription.
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Display name of the PricingPlan. Maximum 250 characters.
|
|
62
|
+
*/
|
|
63
|
+
display_name?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The ID of the live version of the PricingPlan.
|
|
67
|
+
*/
|
|
68
|
+
live_version?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
|
|
72
|
+
*/
|
|
73
|
+
lookup_key?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Set of key-value pairs that you can attach to an object.
|
|
77
|
+
*/
|
|
78
|
+
metadata?: Stripe.MetadataParam;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
namespace Billing {
|
|
83
|
+
interface PricingPlanListParams {
|
|
84
|
+
/**
|
|
85
|
+
* Filter for active/inactive PricingPlans. Mutually exclusive with `lookup_keys`.
|
|
86
|
+
*/
|
|
87
|
+
active?: boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Optionally set the maximum number of results per page. Defaults to 20.
|
|
91
|
+
*/
|
|
92
|
+
limit?: number;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Filter by lookup keys. Mutually exclusive with `active`.
|
|
96
|
+
* You can specify up to 10 lookup keys.
|
|
97
|
+
*/
|
|
98
|
+
lookup_keys?: Array<string>;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
namespace Billing {
|
|
103
|
+
class PricingPlansResource {
|
|
104
|
+
components: Stripe.V2.Billing.PricingPlans.ComponentsResource;
|
|
105
|
+
versions: Stripe.V2.Billing.PricingPlans.VersionsResource;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Create a Pricing Plan object.
|
|
109
|
+
*/
|
|
110
|
+
create(
|
|
111
|
+
params: PricingPlanCreateParams,
|
|
112
|
+
options?: RequestOptions
|
|
113
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlan>>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Retrieve a Pricing Plan object.
|
|
117
|
+
*/
|
|
118
|
+
retrieve(
|
|
119
|
+
id: string,
|
|
120
|
+
params?: PricingPlanRetrieveParams,
|
|
121
|
+
options?: RequestOptions
|
|
122
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlan>>;
|
|
123
|
+
retrieve(
|
|
124
|
+
id: string,
|
|
125
|
+
options?: RequestOptions
|
|
126
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlan>>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Update a Pricing Plan object.
|
|
130
|
+
*/
|
|
131
|
+
update(
|
|
132
|
+
id: string,
|
|
133
|
+
params?: PricingPlanUpdateParams,
|
|
134
|
+
options?: RequestOptions
|
|
135
|
+
): Promise<Stripe.Response<Stripe.V2.Billing.PricingPlan>>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* List all Pricing Plan objects.
|
|
139
|
+
*/
|
|
140
|
+
list(
|
|
141
|
+
params?: PricingPlanListParams,
|
|
142
|
+
options?: RequestOptions
|
|
143
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlan>;
|
|
144
|
+
list(
|
|
145
|
+
options?: RequestOptions
|
|
146
|
+
): ApiListPromise<Stripe.V2.Billing.PricingPlan>;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Billing {
|
|
7
|
+
/**
|
|
8
|
+
* The Profile object.
|
|
9
|
+
*/
|
|
10
|
+
interface Profile {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the billing profile 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.profile';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp of when the object was created.
|
|
23
|
+
*/
|
|
24
|
+
created: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the customer object.
|
|
28
|
+
*/
|
|
29
|
+
customer?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the payment method object.
|
|
33
|
+
*/
|
|
34
|
+
default_payment_method?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A customer-facing name for the billing profile.
|
|
38
|
+
* Maximum length of 250 characters.
|
|
39
|
+
*/
|
|
40
|
+
display_name?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
+
*/
|
|
45
|
+
livemode: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* An internal key you can use to search for a particular billing profile.
|
|
49
|
+
* Maximum length of 200 characters.
|
|
50
|
+
*/
|
|
51
|
+
lookup_key?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 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.
|
|
55
|
+
*/
|
|
56
|
+
metadata?: Stripe.Metadata;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The current status of the billing profile.
|
|
60
|
+
*/
|
|
61
|
+
status: Profile.Status;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
namespace Profile {
|
|
65
|
+
type Status = 'active' | 'inactive';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -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
|
+
}
|