stripe 18.1.0-beta.3 → 18.1.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 +154 -1208
- package/OPENAPI_VERSION +1 -1
- package/README.md +11 -12
- package/VERSION +1 -1
- package/cjs/Error.js +3 -93
- package/cjs/RequestSender.js +5 -9
- package/cjs/StripeResource.js +1 -1
- package/cjs/Webhooks.js +6 -2
- package/cjs/apiVersion.js +1 -1
- package/cjs/net/FetchHttpClient.js +3 -4
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/Invoices.js +0 -4
- package/cjs/resources/PaymentIntents.js +0 -13
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/cjs/resources.js +18 -108
- package/cjs/stripe.core.js +2 -4
- package/cjs/utils.js +33 -4
- package/esm/Error.js +2 -81
- package/esm/RequestSender.js +6 -10
- package/esm/StripeResource.js +1 -1
- package/esm/Webhooks.js +6 -2
- package/esm/apiVersion.js +1 -1
- package/esm/net/FetchHttpClient.js +3 -4
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/Invoices.js +0 -4
- package/esm/resources/PaymentIntents.js +0 -13
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -84
- package/esm/stripe.core.js +2 -4
- package/esm/utils.js +29 -3
- package/package.json +12 -3
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -300
- package/types/Accounts.d.ts +1 -212
- package/types/AccountsResource.d.ts +2 -546
- package/types/Billing/CreditBalanceSummary.d.ts +0 -5
- package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
- package/types/Billing/CreditGrants.d.ts +0 -5
- package/types/Billing/CreditGrantsResource.d.ts +1 -11
- package/types/BillingPortal/Sessions.d.ts +0 -5
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Cards.d.ts +0 -5
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +0 -166
- package/types/ChargesResource.d.ts +0 -1314
- package/types/Checkout/Sessions.d.ts +13 -306
- package/types/Checkout/SessionsResource.d.ts +1 -333
- package/types/ConfirmationTokens.d.ts +0 -120
- package/types/Coupons.d.ts +0 -33
- package/types/CouponsResource.d.ts +0 -21
- package/types/CreditNoteLineItems.d.ts +0 -17
- package/types/CreditNotes.d.ts +0 -9
- package/types/CreditNotesResource.d.ts +0 -5
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +0 -5
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +23 -11
- package/types/Discounts.d.ts +0 -10
- package/types/Errors.d.ts +2 -69
- package/types/EventTypes.d.ts +0 -698
- package/types/Events.d.ts +1 -100
- package/types/FinancialConnections/Accounts.d.ts +1 -31
- package/types/FinancialConnections/AccountsResource.d.ts +3 -40
- package/types/FinancialConnections/Sessions.d.ts +1 -51
- package/types/FinancialConnections/SessionsResource.d.ts +1 -43
- package/types/Identity/VerificationSessions.d.ts +0 -5
- package/types/Identity/VerificationSessionsResource.d.ts +0 -7
- package/types/InvoiceItems.d.ts +0 -10
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +2 -46
- package/types/InvoicePayments.d.ts +0 -5
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +15 -138
- package/types/InvoicesResource.d.ts +15 -1471
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -49
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +2 -728
- package/types/PaymentIntentsResource.d.ts +3955 -8479
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +0 -120
- package/types/PaymentMethodsResource.d.ts +2 -167
- package/types/Payouts.d.ts +0 -5
- package/types/PayoutsResource.d.ts +0 -5
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +0 -10
- package/types/Quotes.d.ts +2 -597
- package/types/QuotesResource.d.ts +224 -2571
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +1 -50
- package/types/SetupIntents.d.ts +2 -121
- package/types/SetupIntentsResource.d.ts +3 -730
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -23
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -205
- package/types/SubscriptionSchedulesResource.d.ts +8 -1236
- package/types/Subscriptions.d.ts +1 -97
- package/types/SubscriptionsResource.d.ts +9 -391
- package/types/Tax/Calculations.d.ts +11 -1
- package/types/Tax/CalculationsResource.d.ts +11 -1
- package/types/Tax/Registrations.d.ts +27 -0
- package/types/Tax/RegistrationsResource.d.ts +36 -0
- package/types/Tax/Transactions.d.ts +11 -1
- package/types/TaxIds.d.ts +11 -11
- package/types/TaxIdsResource.d.ts +11 -11
- package/types/Terminal/Readers.d.ts +0 -300
- package/types/Terminal/ReadersResource.d.ts +0 -220
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +7 -127
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Transfers.d.ts +0 -5
- package/types/TransfersResource.d.ts +0 -5
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundPaymentsResource.d.ts +0 -5
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/EventTypes.d.ts +7 -677
- package/types/WebhookEndpointsResource.d.ts +4 -85
- package/types/index.d.ts +5 -146
- package/types/lib.d.ts +1 -11
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/BalanceSettings.js +0 -10
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/FxQuotes.js +0 -15
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Privacy/RedactionJobs.js +0 -46
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/V2/Core/AccountLinks.js +0 -9
- package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
- package/cjs/resources/V2/Core/Accounts.js +0 -25
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceSettings.js +0 -7
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/FxQuotes.js +0 -12
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Privacy/RedactionJobs.js +0 -43
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/V2/Core/AccountLinks.js +0 -6
- package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
- package/esm/resources/V2/Core/Accounts.js +0 -22
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/BalanceSettings.d.ts +0 -89
- package/types/BalanceSettingsResource.d.ts +0 -108
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/ExternalAccountsResource.d.ts +0 -304
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -153
- package/types/FxQuotesResource.d.ts +0 -130
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -113
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1189
- package/types/OrdersResource.d.ts +0 -2981
- package/types/PaymentAttemptRecords.d.ts +0 -2112
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
- package/types/PaymentRecords.d.ts +0 -2105
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
- package/types/Privacy/RedactionJobs.d.ts +0 -43
- package/types/Privacy/RedactionJobsResource.d.ts +0 -240
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1687
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/V2/Core/AccountLinks.d.ts +0 -101
- package/types/V2/Core/AccountLinksResource.d.ts +0 -90
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
- package/types/V2/Core/Accounts.d.ts +0 -8057
- package/types/V2/Core/AccountsResource.d.ts +0 -10184
- package/types/V2/Core/Persons.d.ts +0 -1857
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface SubscriptionCreateParams {
|
|
6
|
+
/**
|
|
7
|
+
* The identifier of the customer to subscribe.
|
|
8
|
+
*/
|
|
9
|
+
customer: string;
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
|
|
8
13
|
*/
|
|
@@ -53,16 +58,6 @@ declare module 'stripe' {
|
|
|
53
58
|
*/
|
|
54
59
|
currency?: string;
|
|
55
60
|
|
|
56
|
-
/**
|
|
57
|
-
* The identifier of the customer to subscribe.
|
|
58
|
-
*/
|
|
59
|
-
customer?: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The identifier of the account to subscribe.
|
|
63
|
-
*/
|
|
64
|
-
customer_account?: string;
|
|
65
|
-
|
|
66
61
|
/**
|
|
67
62
|
* Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
|
|
68
63
|
*/
|
|
@@ -150,11 +145,6 @@ declare module 'stripe' {
|
|
|
150
145
|
SubscriptionCreateParams.PendingInvoiceItemInterval
|
|
151
146
|
>;
|
|
152
147
|
|
|
153
|
-
/**
|
|
154
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
155
|
-
*/
|
|
156
|
-
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
157
|
-
|
|
158
148
|
/**
|
|
159
149
|
* Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
|
160
150
|
*/
|
|
@@ -226,56 +216,12 @@ declare module 'stripe' {
|
|
|
226
216
|
*/
|
|
227
217
|
discount?: string;
|
|
228
218
|
|
|
229
|
-
/**
|
|
230
|
-
* Details to determine how long the discount should be applied for.
|
|
231
|
-
*/
|
|
232
|
-
discount_end?: Discount.DiscountEnd;
|
|
233
|
-
|
|
234
219
|
/**
|
|
235
220
|
* ID of the promotion code to create a new discount for.
|
|
236
221
|
*/
|
|
237
222
|
promotion_code?: string;
|
|
238
223
|
}
|
|
239
224
|
|
|
240
|
-
namespace Discount {
|
|
241
|
-
interface DiscountEnd {
|
|
242
|
-
/**
|
|
243
|
-
* Time span for the redeemed discount.
|
|
244
|
-
*/
|
|
245
|
-
duration?: DiscountEnd.Duration;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
249
|
-
*/
|
|
250
|
-
timestamp?: number;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* The type of calculation made to determine when the discount ends.
|
|
254
|
-
*/
|
|
255
|
-
type: DiscountEnd.Type;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
namespace DiscountEnd {
|
|
259
|
-
interface Duration {
|
|
260
|
-
/**
|
|
261
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
262
|
-
*/
|
|
263
|
-
interval: Duration.Interval;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
267
|
-
*/
|
|
268
|
-
interval_count: number;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
namespace Duration {
|
|
272
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
type Type = 'duration' | 'timestamp';
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
225
|
interface PriceData {
|
|
280
226
|
/**
|
|
281
227
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -378,56 +324,12 @@ declare module 'stripe' {
|
|
|
378
324
|
*/
|
|
379
325
|
discount?: string;
|
|
380
326
|
|
|
381
|
-
/**
|
|
382
|
-
* Details to determine how long the discount should be applied for.
|
|
383
|
-
*/
|
|
384
|
-
discount_end?: Discount.DiscountEnd;
|
|
385
|
-
|
|
386
327
|
/**
|
|
387
328
|
* ID of the promotion code to create a new discount for.
|
|
388
329
|
*/
|
|
389
330
|
promotion_code?: string;
|
|
390
331
|
}
|
|
391
332
|
|
|
392
|
-
namespace Discount {
|
|
393
|
-
interface DiscountEnd {
|
|
394
|
-
/**
|
|
395
|
-
* Time span for the redeemed discount.
|
|
396
|
-
*/
|
|
397
|
-
duration?: DiscountEnd.Duration;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
401
|
-
*/
|
|
402
|
-
timestamp?: number;
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* The type of calculation made to determine when the discount ends.
|
|
406
|
-
*/
|
|
407
|
-
type: DiscountEnd.Type;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
namespace DiscountEnd {
|
|
411
|
-
interface Duration {
|
|
412
|
-
/**
|
|
413
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
414
|
-
*/
|
|
415
|
-
interval: Duration.Interval;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
419
|
-
*/
|
|
420
|
-
interval_count: number;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
namespace Duration {
|
|
424
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
type Type = 'duration' | 'timestamp';
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
333
|
interface InvoiceSettings {
|
|
432
334
|
/**
|
|
433
335
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -493,11 +395,6 @@ declare module 'stripe' {
|
|
|
493
395
|
* A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
494
396
|
*/
|
|
495
397
|
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Define options to configure the trial on the subscription item.
|
|
499
|
-
*/
|
|
500
|
-
trial?: Item.Trial;
|
|
501
398
|
}
|
|
502
399
|
|
|
503
400
|
namespace Item {
|
|
@@ -512,56 +409,12 @@ declare module 'stripe' {
|
|
|
512
409
|
*/
|
|
513
410
|
discount?: string;
|
|
514
411
|
|
|
515
|
-
/**
|
|
516
|
-
* Details to determine how long the discount should be applied for.
|
|
517
|
-
*/
|
|
518
|
-
discount_end?: Discount.DiscountEnd;
|
|
519
|
-
|
|
520
412
|
/**
|
|
521
413
|
* ID of the promotion code to create a new discount for.
|
|
522
414
|
*/
|
|
523
415
|
promotion_code?: string;
|
|
524
416
|
}
|
|
525
417
|
|
|
526
|
-
namespace Discount {
|
|
527
|
-
interface DiscountEnd {
|
|
528
|
-
/**
|
|
529
|
-
* Time span for the redeemed discount.
|
|
530
|
-
*/
|
|
531
|
-
duration?: DiscountEnd.Duration;
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
535
|
-
*/
|
|
536
|
-
timestamp?: number;
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* The type of calculation made to determine when the discount ends.
|
|
540
|
-
*/
|
|
541
|
-
type: DiscountEnd.Type;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
namespace DiscountEnd {
|
|
545
|
-
interface Duration {
|
|
546
|
-
/**
|
|
547
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
548
|
-
*/
|
|
549
|
-
interval: Duration.Interval;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
553
|
-
*/
|
|
554
|
-
interval_count: number;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
namespace Duration {
|
|
558
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
type Type = 'duration' | 'timestamp';
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
418
|
interface PriceData {
|
|
566
419
|
/**
|
|
567
420
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -613,22 +466,6 @@ declare module 'stripe' {
|
|
|
613
466
|
|
|
614
467
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
615
468
|
}
|
|
616
|
-
|
|
617
|
-
interface Trial {
|
|
618
|
-
/**
|
|
619
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
620
|
-
*/
|
|
621
|
-
converts_to?: Array<string>;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Determines the type of trial for this item.
|
|
625
|
-
*/
|
|
626
|
-
type: Trial.Type;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
namespace Trial {
|
|
630
|
-
type Type = 'free' | 'paid';
|
|
631
|
-
}
|
|
632
469
|
}
|
|
633
470
|
|
|
634
471
|
type PaymentBehavior =
|
|
@@ -680,13 +517,6 @@ declare module 'stripe' {
|
|
|
680
517
|
PaymentMethodOptions.CustomerBalance
|
|
681
518
|
>;
|
|
682
519
|
|
|
683
|
-
/**
|
|
684
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
685
|
-
*/
|
|
686
|
-
id_bank_transfer?: Stripe.Emptyable<
|
|
687
|
-
PaymentMethodOptions.IdBankTransfer
|
|
688
|
-
>;
|
|
689
|
-
|
|
690
520
|
/**
|
|
691
521
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
692
522
|
*/
|
|
@@ -836,8 +666,6 @@ declare module 'stripe' {
|
|
|
836
666
|
}
|
|
837
667
|
}
|
|
838
668
|
|
|
839
|
-
interface IdBankTransfer {}
|
|
840
|
-
|
|
841
669
|
interface Konbini {}
|
|
842
670
|
|
|
843
671
|
interface SepaDebit {}
|
|
@@ -878,11 +706,6 @@ declare module 'stripe' {
|
|
|
878
706
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
879
707
|
*/
|
|
880
708
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
884
|
-
*/
|
|
885
|
-
institution?: string;
|
|
886
709
|
}
|
|
887
710
|
|
|
888
711
|
namespace Filters {
|
|
@@ -895,11 +718,7 @@ declare module 'stripe' {
|
|
|
895
718
|
| 'payment_method'
|
|
896
719
|
| 'transactions';
|
|
897
720
|
|
|
898
|
-
type Prefetch =
|
|
899
|
-
| 'balances'
|
|
900
|
-
| 'inferred_balances'
|
|
901
|
-
| 'ownership'
|
|
902
|
-
| 'transactions';
|
|
721
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
903
722
|
}
|
|
904
723
|
|
|
905
724
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -918,13 +737,11 @@ declare module 'stripe' {
|
|
|
918
737
|
| 'boleto'
|
|
919
738
|
| 'card'
|
|
920
739
|
| 'cashapp'
|
|
921
|
-
| 'custom'
|
|
922
740
|
| 'customer_balance'
|
|
923
741
|
| 'eps'
|
|
924
742
|
| 'fpx'
|
|
925
743
|
| 'giropay'
|
|
926
744
|
| 'grabpay'
|
|
927
|
-
| 'id_bank_transfer'
|
|
928
745
|
| 'ideal'
|
|
929
746
|
| 'jp_credit_transfer'
|
|
930
747
|
| 'kakao_pay'
|
|
@@ -944,7 +761,6 @@ declare module 'stripe' {
|
|
|
944
761
|
| 'sepa_credit_transfer'
|
|
945
762
|
| 'sepa_debit'
|
|
946
763
|
| 'sofort'
|
|
947
|
-
| 'stripe_balance'
|
|
948
764
|
| 'swish'
|
|
949
765
|
| 'us_bank_account'
|
|
950
766
|
| 'wechat_pay';
|
|
@@ -968,22 +784,6 @@ declare module 'stripe' {
|
|
|
968
784
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
969
785
|
}
|
|
970
786
|
|
|
971
|
-
interface Prebilling {
|
|
972
|
-
/**
|
|
973
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
974
|
-
*/
|
|
975
|
-
iterations: number;
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
979
|
-
*/
|
|
980
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
namespace Prebilling {
|
|
984
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
985
|
-
}
|
|
986
|
-
|
|
987
787
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
988
788
|
|
|
989
789
|
interface TransferData {
|
|
@@ -1157,11 +957,6 @@ declare module 'stripe' {
|
|
|
1157
957
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1158
958
|
>;
|
|
1159
959
|
|
|
1160
|
-
/**
|
|
1161
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1162
|
-
*/
|
|
1163
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1164
|
-
|
|
1165
960
|
/**
|
|
1166
961
|
* Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1167
962
|
*/
|
|
@@ -1233,56 +1028,12 @@ declare module 'stripe' {
|
|
|
1233
1028
|
*/
|
|
1234
1029
|
discount?: string;
|
|
1235
1030
|
|
|
1236
|
-
/**
|
|
1237
|
-
* Details to determine how long the discount should be applied for.
|
|
1238
|
-
*/
|
|
1239
|
-
discount_end?: Discount.DiscountEnd;
|
|
1240
|
-
|
|
1241
1031
|
/**
|
|
1242
1032
|
* ID of the promotion code to create a new discount for.
|
|
1243
1033
|
*/
|
|
1244
1034
|
promotion_code?: string;
|
|
1245
1035
|
}
|
|
1246
1036
|
|
|
1247
|
-
namespace Discount {
|
|
1248
|
-
interface DiscountEnd {
|
|
1249
|
-
/**
|
|
1250
|
-
* Time span for the redeemed discount.
|
|
1251
|
-
*/
|
|
1252
|
-
duration?: DiscountEnd.Duration;
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1256
|
-
*/
|
|
1257
|
-
timestamp?: number;
|
|
1258
|
-
|
|
1259
|
-
/**
|
|
1260
|
-
* The type of calculation made to determine when the discount ends.
|
|
1261
|
-
*/
|
|
1262
|
-
type: DiscountEnd.Type;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
namespace DiscountEnd {
|
|
1266
|
-
interface Duration {
|
|
1267
|
-
/**
|
|
1268
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1269
|
-
*/
|
|
1270
|
-
interval: Duration.Interval;
|
|
1271
|
-
|
|
1272
|
-
/**
|
|
1273
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1274
|
-
*/
|
|
1275
|
-
interval_count: number;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
namespace Duration {
|
|
1279
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
type Type = 'duration' | 'timestamp';
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
1037
|
interface PriceData {
|
|
1287
1038
|
/**
|
|
1288
1039
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -1384,56 +1135,12 @@ declare module 'stripe' {
|
|
|
1384
1135
|
*/
|
|
1385
1136
|
discount?: string;
|
|
1386
1137
|
|
|
1387
|
-
/**
|
|
1388
|
-
* Details to determine how long the discount should be applied for.
|
|
1389
|
-
*/
|
|
1390
|
-
discount_end?: Discount.DiscountEnd;
|
|
1391
|
-
|
|
1392
1138
|
/**
|
|
1393
1139
|
* ID of the promotion code to create a new discount for.
|
|
1394
1140
|
*/
|
|
1395
1141
|
promotion_code?: string;
|
|
1396
1142
|
}
|
|
1397
1143
|
|
|
1398
|
-
namespace Discount {
|
|
1399
|
-
interface DiscountEnd {
|
|
1400
|
-
/**
|
|
1401
|
-
* Time span for the redeemed discount.
|
|
1402
|
-
*/
|
|
1403
|
-
duration?: DiscountEnd.Duration;
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1407
|
-
*/
|
|
1408
|
-
timestamp?: number;
|
|
1409
|
-
|
|
1410
|
-
/**
|
|
1411
|
-
* The type of calculation made to determine when the discount ends.
|
|
1412
|
-
*/
|
|
1413
|
-
type: DiscountEnd.Type;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
namespace DiscountEnd {
|
|
1417
|
-
interface Duration {
|
|
1418
|
-
/**
|
|
1419
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1420
|
-
*/
|
|
1421
|
-
interval: Duration.Interval;
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1425
|
-
*/
|
|
1426
|
-
interval_count: number;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
namespace Duration {
|
|
1430
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
type Type = 'duration' | 'timestamp';
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
1144
|
interface InvoiceSettings {
|
|
1438
1145
|
/**
|
|
1439
1146
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1528,56 +1235,12 @@ declare module 'stripe' {
|
|
|
1528
1235
|
*/
|
|
1529
1236
|
discount?: string;
|
|
1530
1237
|
|
|
1531
|
-
/**
|
|
1532
|
-
* Details to determine how long the discount should be applied for.
|
|
1533
|
-
*/
|
|
1534
|
-
discount_end?: Discount.DiscountEnd;
|
|
1535
|
-
|
|
1536
1238
|
/**
|
|
1537
1239
|
* ID of the promotion code to create a new discount for.
|
|
1538
1240
|
*/
|
|
1539
1241
|
promotion_code?: string;
|
|
1540
1242
|
}
|
|
1541
1243
|
|
|
1542
|
-
namespace Discount {
|
|
1543
|
-
interface DiscountEnd {
|
|
1544
|
-
/**
|
|
1545
|
-
* Time span for the redeemed discount.
|
|
1546
|
-
*/
|
|
1547
|
-
duration?: DiscountEnd.Duration;
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1551
|
-
*/
|
|
1552
|
-
timestamp?: number;
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* The type of calculation made to determine when the discount ends.
|
|
1556
|
-
*/
|
|
1557
|
-
type: DiscountEnd.Type;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
namespace DiscountEnd {
|
|
1561
|
-
interface Duration {
|
|
1562
|
-
/**
|
|
1563
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1564
|
-
*/
|
|
1565
|
-
interval: Duration.Interval;
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1569
|
-
*/
|
|
1570
|
-
interval_count: number;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
namespace Duration {
|
|
1574
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
type Type = 'duration' | 'timestamp';
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
1244
|
interface PriceData {
|
|
1582
1245
|
/**
|
|
1583
1246
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -1696,13 +1359,6 @@ declare module 'stripe' {
|
|
|
1696
1359
|
PaymentMethodOptions.CustomerBalance
|
|
1697
1360
|
>;
|
|
1698
1361
|
|
|
1699
|
-
/**
|
|
1700
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1701
|
-
*/
|
|
1702
|
-
id_bank_transfer?: Stripe.Emptyable<
|
|
1703
|
-
PaymentMethodOptions.IdBankTransfer
|
|
1704
|
-
>;
|
|
1705
|
-
|
|
1706
1362
|
/**
|
|
1707
1363
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1708
1364
|
*/
|
|
@@ -1852,8 +1508,6 @@ declare module 'stripe' {
|
|
|
1852
1508
|
}
|
|
1853
1509
|
}
|
|
1854
1510
|
|
|
1855
|
-
interface IdBankTransfer {}
|
|
1856
|
-
|
|
1857
1511
|
interface Konbini {}
|
|
1858
1512
|
|
|
1859
1513
|
interface SepaDebit {}
|
|
@@ -1894,11 +1548,6 @@ declare module 'stripe' {
|
|
|
1894
1548
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1895
1549
|
*/
|
|
1896
1550
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1897
|
-
|
|
1898
|
-
/**
|
|
1899
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1900
|
-
*/
|
|
1901
|
-
institution?: string;
|
|
1902
1551
|
}
|
|
1903
1552
|
|
|
1904
1553
|
namespace Filters {
|
|
@@ -1911,11 +1560,7 @@ declare module 'stripe' {
|
|
|
1911
1560
|
| 'payment_method'
|
|
1912
1561
|
| 'transactions';
|
|
1913
1562
|
|
|
1914
|
-
type Prefetch =
|
|
1915
|
-
| 'balances'
|
|
1916
|
-
| 'inferred_balances'
|
|
1917
|
-
| 'ownership'
|
|
1918
|
-
| 'transactions';
|
|
1563
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1919
1564
|
}
|
|
1920
1565
|
|
|
1921
1566
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1934,13 +1579,11 @@ declare module 'stripe' {
|
|
|
1934
1579
|
| 'boleto'
|
|
1935
1580
|
| 'card'
|
|
1936
1581
|
| 'cashapp'
|
|
1937
|
-
| 'custom'
|
|
1938
1582
|
| 'customer_balance'
|
|
1939
1583
|
| 'eps'
|
|
1940
1584
|
| 'fpx'
|
|
1941
1585
|
| 'giropay'
|
|
1942
1586
|
| 'grabpay'
|
|
1943
|
-
| 'id_bank_transfer'
|
|
1944
1587
|
| 'ideal'
|
|
1945
1588
|
| 'jp_credit_transfer'
|
|
1946
1589
|
| 'kakao_pay'
|
|
@@ -1960,7 +1603,6 @@ declare module 'stripe' {
|
|
|
1960
1603
|
| 'sepa_credit_transfer'
|
|
1961
1604
|
| 'sepa_debit'
|
|
1962
1605
|
| 'sofort'
|
|
1963
|
-
| 'stripe_balance'
|
|
1964
1606
|
| 'swish'
|
|
1965
1607
|
| 'us_bank_account'
|
|
1966
1608
|
| 'wechat_pay';
|
|
@@ -1984,22 +1626,6 @@ declare module 'stripe' {
|
|
|
1984
1626
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1985
1627
|
}
|
|
1986
1628
|
|
|
1987
|
-
interface Prebilling {
|
|
1988
|
-
/**
|
|
1989
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
1990
|
-
*/
|
|
1991
|
-
iterations: number;
|
|
1992
|
-
|
|
1993
|
-
/**
|
|
1994
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1995
|
-
*/
|
|
1996
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
namespace Prebilling {
|
|
2000
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
1629
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2004
1630
|
|
|
2005
1631
|
interface TransferData {
|
|
@@ -2066,11 +1692,6 @@ declare module 'stripe' {
|
|
|
2066
1692
|
*/
|
|
2067
1693
|
customer?: string;
|
|
2068
1694
|
|
|
2069
|
-
/**
|
|
2070
|
-
* The ID of the account whose subscriptions will be retrieved.
|
|
2071
|
-
*/
|
|
2072
|
-
customer_account?: string;
|
|
2073
|
-
|
|
2074
1695
|
/**
|
|
2075
1696
|
* Specifies which fields in the response should be expanded.
|
|
2076
1697
|
*/
|
|
@@ -2231,10 +1852,7 @@ declare module 'stripe' {
|
|
|
2231
1852
|
* Schedules provide the flexibility to model more complex billing configurations that change over time.
|
|
2232
1853
|
*/
|
|
2233
1854
|
create(
|
|
2234
|
-
params
|
|
2235
|
-
options?: RequestOptions
|
|
2236
|
-
): Promise<Stripe.Response<Stripe.Subscription>>;
|
|
2237
|
-
create(
|
|
1855
|
+
params: SubscriptionCreateParams,
|
|
2238
1856
|
options?: RequestOptions
|
|
2239
1857
|
): Promise<Stripe.Response<Stripe.Subscription>>;
|
|
2240
1858
|
|
|
@@ -2292,7 +1910,7 @@ declare module 'stripe' {
|
|
|
2292
1910
|
/**
|
|
2293
1911
|
* Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata).
|
|
2294
1912
|
*
|
|
2295
|
-
* Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed.
|
|
1913
|
+
* Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
|
2296
1914
|
*
|
|
2297
1915
|
* By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
|
2298
1916
|
*/
|
|
@@ -120,7 +120,7 @@ declare module 'stripe' {
|
|
|
120
120
|
|
|
121
121
|
interface TaxId {
|
|
122
122
|
/**
|
|
123
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
123
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
124
124
|
*/
|
|
125
125
|
type: TaxId.Type;
|
|
126
126
|
|
|
@@ -140,10 +140,15 @@ declare module 'stripe' {
|
|
|
140
140
|
| 'ar_cuit'
|
|
141
141
|
| 'au_abn'
|
|
142
142
|
| 'au_arn'
|
|
143
|
+
| 'aw_tin'
|
|
144
|
+
| 'az_tin'
|
|
143
145
|
| 'ba_tin'
|
|
144
146
|
| 'bb_tin'
|
|
147
|
+
| 'bd_bin'
|
|
148
|
+
| 'bf_ifu'
|
|
145
149
|
| 'bg_uic'
|
|
146
150
|
| 'bh_vat'
|
|
151
|
+
| 'bj_ifu'
|
|
147
152
|
| 'bo_tin'
|
|
148
153
|
| 'br_cnpj'
|
|
149
154
|
| 'br_cpf'
|
|
@@ -159,14 +164,17 @@ declare module 'stripe' {
|
|
|
159
164
|
| 'ch_uid'
|
|
160
165
|
| 'ch_vat'
|
|
161
166
|
| 'cl_tin'
|
|
167
|
+
| 'cm_niu'
|
|
162
168
|
| 'cn_tin'
|
|
163
169
|
| 'co_nit'
|
|
164
170
|
| 'cr_tin'
|
|
171
|
+
| 'cv_nif'
|
|
165
172
|
| 'de_stn'
|
|
166
173
|
| 'do_rcn'
|
|
167
174
|
| 'ec_ruc'
|
|
168
175
|
| 'eg_tin'
|
|
169
176
|
| 'es_cif'
|
|
177
|
+
| 'et_tin'
|
|
170
178
|
| 'eu_oss_vat'
|
|
171
179
|
| 'eu_vat'
|
|
172
180
|
| 'gb_vat'
|
|
@@ -183,9 +191,11 @@ declare module 'stripe' {
|
|
|
183
191
|
| 'jp_rn'
|
|
184
192
|
| 'jp_trn'
|
|
185
193
|
| 'ke_pin'
|
|
194
|
+
| 'kg_tin'
|
|
186
195
|
| 'kh_tin'
|
|
187
196
|
| 'kr_brn'
|
|
188
197
|
| 'kz_bin'
|
|
198
|
+
| 'la_tin'
|
|
189
199
|
| 'li_uid'
|
|
190
200
|
| 'li_vat'
|
|
191
201
|
| 'ma_vat'
|