stripe 18.5.0 → 18.6.0-beta.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 +1364 -33
- package/README.md +4 -5
- package/VERSION +1 -1
- package/cjs/Error.js +107 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceSettings.js +10 -0
- package/cjs/resources/Billing/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 +29 -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/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/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/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/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +102 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +93 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceSettings.js +7 -0
- package/esm/resources/Billing/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 +26 -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/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/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/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/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +86 -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/BalanceSettings.d.ts +97 -0
- package/types/BalanceSettingsResource.d.ts +119 -0
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/CreditBalanceSummary.d.ts +5 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +5 -0
- package/types/Billing/CreditGrantsResource.d.ts +11 -1
- package/types/Billing/MeterUsage.d.ts +32 -0
- package/types/Billing/MeterUsageResource.d.ts +685 -0
- package/types/Billing/MeterUsageRows.d.ts +49 -0
- 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 +374 -2
- package/types/Checkout/SessionsResource.d.ts +520 -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 +5 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +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 +29 -0
- package/types/Errors.d.ts +79 -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 +10 -0
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/InvoicePayments.d.ts +5 -0
- package/types/InvoicePaymentsResource.d.ts +10 -1
- package/types/Invoices.d.ts +171 -3
- package/types/InvoicesResource.d.ts +1533 -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 +2321 -0
- package/types/PaymentAttemptRecordsResource.d.ts +52 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +836 -3
- package/types/PaymentIntentsResource.d.ts +11610 -5775
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +130 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2314 -0
- package/types/PaymentRecordsResource.d.ts +476 -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 +1736 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +892 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2577 -232
- 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 +21 -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 +135 -1
- package/types/SubscriptionsResource.d.ts +472 -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/Core/AccountLinks.d.ts +168 -0
- package/types/V2/Core/AccountLinksResource.d.ts +152 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3812 -0
- package/types/V2/Core/Accounts.d.ts +8862 -0
- package/types/V2/Core/AccountsResource.d.ts +10704 -0
- package/types/V2/Core/Persons.d.ts +1888 -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/EventTypes.d.ts +961 -1
- 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 +585 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +331 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -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 +168 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +160 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +262 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -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 +179 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +174 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
- package/types/WebhookEndpointsResource.d.ts +78 -0
- package/types/index.d.ts +145 -0
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -3,11 +3,6 @@
|
|
|
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
|
-
|
|
11
6
|
/**
|
|
12
7
|
* 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.
|
|
13
8
|
*/
|
|
@@ -70,6 +65,16 @@ declare module 'stripe' {
|
|
|
70
65
|
*/
|
|
71
66
|
currency?: string;
|
|
72
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The identifier of the customer to subscribe.
|
|
70
|
+
*/
|
|
71
|
+
customer?: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The identifier of the account to subscribe.
|
|
75
|
+
*/
|
|
76
|
+
customer_account?: string;
|
|
77
|
+
|
|
73
78
|
/**
|
|
74
79
|
* 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`.
|
|
75
80
|
*/
|
|
@@ -157,6 +162,11 @@ declare module 'stripe' {
|
|
|
157
162
|
SubscriptionCreateParams.PendingInvoiceItemInterval
|
|
158
163
|
>;
|
|
159
164
|
|
|
165
|
+
/**
|
|
166
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
167
|
+
*/
|
|
168
|
+
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
169
|
+
|
|
160
170
|
/**
|
|
161
171
|
* 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`.
|
|
162
172
|
*/
|
|
@@ -238,12 +248,56 @@ declare module 'stripe' {
|
|
|
238
248
|
*/
|
|
239
249
|
discount?: string;
|
|
240
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Details to determine how long the discount should be applied for.
|
|
253
|
+
*/
|
|
254
|
+
discount_end?: Discount.DiscountEnd;
|
|
255
|
+
|
|
241
256
|
/**
|
|
242
257
|
* ID of the promotion code to create a new discount for.
|
|
243
258
|
*/
|
|
244
259
|
promotion_code?: string;
|
|
245
260
|
}
|
|
246
261
|
|
|
262
|
+
namespace Discount {
|
|
263
|
+
interface DiscountEnd {
|
|
264
|
+
/**
|
|
265
|
+
* Time span for the redeemed discount.
|
|
266
|
+
*/
|
|
267
|
+
duration?: DiscountEnd.Duration;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
271
|
+
*/
|
|
272
|
+
timestamp?: number;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The type of calculation made to determine when the discount ends.
|
|
276
|
+
*/
|
|
277
|
+
type: DiscountEnd.Type;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
namespace DiscountEnd {
|
|
281
|
+
interface Duration {
|
|
282
|
+
/**
|
|
283
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
284
|
+
*/
|
|
285
|
+
interval: Duration.Interval;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
289
|
+
*/
|
|
290
|
+
interval_count: number;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
namespace Duration {
|
|
294
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
type Type = 'duration' | 'timestamp';
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
247
301
|
interface Period {
|
|
248
302
|
/**
|
|
249
303
|
* End of the invoice item period.
|
|
@@ -417,12 +471,56 @@ declare module 'stripe' {
|
|
|
417
471
|
*/
|
|
418
472
|
discount?: string;
|
|
419
473
|
|
|
474
|
+
/**
|
|
475
|
+
* Details to determine how long the discount should be applied for.
|
|
476
|
+
*/
|
|
477
|
+
discount_end?: Discount.DiscountEnd;
|
|
478
|
+
|
|
420
479
|
/**
|
|
421
480
|
* ID of the promotion code to create a new discount for.
|
|
422
481
|
*/
|
|
423
482
|
promotion_code?: string;
|
|
424
483
|
}
|
|
425
484
|
|
|
485
|
+
namespace Discount {
|
|
486
|
+
interface DiscountEnd {
|
|
487
|
+
/**
|
|
488
|
+
* Time span for the redeemed discount.
|
|
489
|
+
*/
|
|
490
|
+
duration?: DiscountEnd.Duration;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
494
|
+
*/
|
|
495
|
+
timestamp?: number;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* The type of calculation made to determine when the discount ends.
|
|
499
|
+
*/
|
|
500
|
+
type: DiscountEnd.Type;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
namespace DiscountEnd {
|
|
504
|
+
interface Duration {
|
|
505
|
+
/**
|
|
506
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
507
|
+
*/
|
|
508
|
+
interval: Duration.Interval;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
512
|
+
*/
|
|
513
|
+
interval_count: number;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
namespace Duration {
|
|
517
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
type Type = 'duration' | 'timestamp';
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
426
524
|
interface InvoiceSettings {
|
|
427
525
|
/**
|
|
428
526
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -493,6 +591,11 @@ declare module 'stripe' {
|
|
|
493
591
|
* 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
592
|
*/
|
|
495
593
|
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Define options to configure the trial on the subscription item.
|
|
597
|
+
*/
|
|
598
|
+
trial?: Item.Trial;
|
|
496
599
|
}
|
|
497
600
|
|
|
498
601
|
namespace Item {
|
|
@@ -514,12 +617,56 @@ declare module 'stripe' {
|
|
|
514
617
|
*/
|
|
515
618
|
discount?: string;
|
|
516
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Details to determine how long the discount should be applied for.
|
|
622
|
+
*/
|
|
623
|
+
discount_end?: Discount.DiscountEnd;
|
|
624
|
+
|
|
517
625
|
/**
|
|
518
626
|
* ID of the promotion code to create a new discount for.
|
|
519
627
|
*/
|
|
520
628
|
promotion_code?: string;
|
|
521
629
|
}
|
|
522
630
|
|
|
631
|
+
namespace Discount {
|
|
632
|
+
interface DiscountEnd {
|
|
633
|
+
/**
|
|
634
|
+
* Time span for the redeemed discount.
|
|
635
|
+
*/
|
|
636
|
+
duration?: DiscountEnd.Duration;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
640
|
+
*/
|
|
641
|
+
timestamp?: number;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* The type of calculation made to determine when the discount ends.
|
|
645
|
+
*/
|
|
646
|
+
type: DiscountEnd.Type;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
namespace DiscountEnd {
|
|
650
|
+
interface Duration {
|
|
651
|
+
/**
|
|
652
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
653
|
+
*/
|
|
654
|
+
interval: Duration.Interval;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
658
|
+
*/
|
|
659
|
+
interval_count: number;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
namespace Duration {
|
|
663
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
type Type = 'duration' | 'timestamp';
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
523
670
|
interface PriceData {
|
|
524
671
|
/**
|
|
525
672
|
* 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).
|
|
@@ -571,6 +718,22 @@ declare module 'stripe' {
|
|
|
571
718
|
|
|
572
719
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
573
720
|
}
|
|
721
|
+
|
|
722
|
+
interface Trial {
|
|
723
|
+
/**
|
|
724
|
+
* 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.
|
|
725
|
+
*/
|
|
726
|
+
converts_to?: Array<string>;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Determines the type of trial for this item.
|
|
730
|
+
*/
|
|
731
|
+
type: Trial.Type;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
namespace Trial {
|
|
735
|
+
type Type = 'free' | 'paid';
|
|
736
|
+
}
|
|
574
737
|
}
|
|
575
738
|
|
|
576
739
|
type PaymentBehavior =
|
|
@@ -622,6 +785,13 @@ declare module 'stripe' {
|
|
|
622
785
|
PaymentMethodOptions.CustomerBalance
|
|
623
786
|
>;
|
|
624
787
|
|
|
788
|
+
/**
|
|
789
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
790
|
+
*/
|
|
791
|
+
id_bank_transfer?: Stripe.Emptyable<
|
|
792
|
+
PaymentMethodOptions.IdBankTransfer
|
|
793
|
+
>;
|
|
794
|
+
|
|
625
795
|
/**
|
|
626
796
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
627
797
|
*/
|
|
@@ -632,6 +802,11 @@ declare module 'stripe' {
|
|
|
632
802
|
*/
|
|
633
803
|
sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
|
|
634
804
|
|
|
805
|
+
/**
|
|
806
|
+
* This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
|
|
807
|
+
*/
|
|
808
|
+
upi?: Stripe.Emptyable<PaymentMethodOptions.Upi>;
|
|
809
|
+
|
|
635
810
|
/**
|
|
636
811
|
* This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
|
|
637
812
|
*/
|
|
@@ -771,10 +946,47 @@ declare module 'stripe' {
|
|
|
771
946
|
}
|
|
772
947
|
}
|
|
773
948
|
|
|
949
|
+
interface IdBankTransfer {}
|
|
950
|
+
|
|
774
951
|
interface Konbini {}
|
|
775
952
|
|
|
776
953
|
interface SepaDebit {}
|
|
777
954
|
|
|
955
|
+
interface Upi {
|
|
956
|
+
/**
|
|
957
|
+
* Configuration options for setting up an eMandate
|
|
958
|
+
*/
|
|
959
|
+
mandate_options?: Upi.MandateOptions;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
namespace Upi {
|
|
963
|
+
interface MandateOptions {
|
|
964
|
+
/**
|
|
965
|
+
* Amount to be charged for future payments.
|
|
966
|
+
*/
|
|
967
|
+
amount?: number;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
971
|
+
*/
|
|
972
|
+
amount_type?: MandateOptions.AmountType;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
976
|
+
*/
|
|
977
|
+
description?: string;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
981
|
+
*/
|
|
982
|
+
end_date?: number;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
namespace MandateOptions {
|
|
986
|
+
type AmountType = 'fixed' | 'maximum';
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
778
990
|
interface UsBankAccount {
|
|
779
991
|
/**
|
|
780
992
|
* Additional fields for Financial Connections Session creation
|
|
@@ -811,6 +1023,11 @@ declare module 'stripe' {
|
|
|
811
1023
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
812
1024
|
*/
|
|
813
1025
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1029
|
+
*/
|
|
1030
|
+
institution?: string;
|
|
814
1031
|
}
|
|
815
1032
|
|
|
816
1033
|
namespace Filters {
|
|
@@ -823,7 +1040,11 @@ declare module 'stripe' {
|
|
|
823
1040
|
| 'payment_method'
|
|
824
1041
|
| 'transactions';
|
|
825
1042
|
|
|
826
|
-
type Prefetch =
|
|
1043
|
+
type Prefetch =
|
|
1044
|
+
| 'balances'
|
|
1045
|
+
| 'inferred_balances'
|
|
1046
|
+
| 'ownership'
|
|
1047
|
+
| 'transactions';
|
|
827
1048
|
}
|
|
828
1049
|
|
|
829
1050
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -843,11 +1064,13 @@ declare module 'stripe' {
|
|
|
843
1064
|
| 'card'
|
|
844
1065
|
| 'cashapp'
|
|
845
1066
|
| 'crypto'
|
|
1067
|
+
| 'custom'
|
|
846
1068
|
| 'customer_balance'
|
|
847
1069
|
| 'eps'
|
|
848
1070
|
| 'fpx'
|
|
849
1071
|
| 'giropay'
|
|
850
1072
|
| 'grabpay'
|
|
1073
|
+
| 'id_bank_transfer'
|
|
851
1074
|
| 'ideal'
|
|
852
1075
|
| 'jp_credit_transfer'
|
|
853
1076
|
| 'kakao_pay'
|
|
@@ -867,7 +1090,9 @@ declare module 'stripe' {
|
|
|
867
1090
|
| 'sepa_credit_transfer'
|
|
868
1091
|
| 'sepa_debit'
|
|
869
1092
|
| 'sofort'
|
|
1093
|
+
| 'stripe_balance'
|
|
870
1094
|
| 'swish'
|
|
1095
|
+
| 'upi'
|
|
871
1096
|
| 'us_bank_account'
|
|
872
1097
|
| 'wechat_pay';
|
|
873
1098
|
|
|
@@ -890,6 +1115,22 @@ declare module 'stripe' {
|
|
|
890
1115
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
891
1116
|
}
|
|
892
1117
|
|
|
1118
|
+
interface Prebilling {
|
|
1119
|
+
/**
|
|
1120
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1121
|
+
*/
|
|
1122
|
+
iterations: number;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1126
|
+
*/
|
|
1127
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
namespace Prebilling {
|
|
1131
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
1132
|
+
}
|
|
1133
|
+
|
|
893
1134
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
894
1135
|
|
|
895
1136
|
interface TransferData {
|
|
@@ -1070,6 +1311,11 @@ declare module 'stripe' {
|
|
|
1070
1311
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1071
1312
|
>;
|
|
1072
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1316
|
+
*/
|
|
1317
|
+
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1318
|
+
|
|
1073
1319
|
/**
|
|
1074
1320
|
* 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`.
|
|
1075
1321
|
*/
|
|
@@ -1151,12 +1397,56 @@ declare module 'stripe' {
|
|
|
1151
1397
|
*/
|
|
1152
1398
|
discount?: string;
|
|
1153
1399
|
|
|
1400
|
+
/**
|
|
1401
|
+
* Details to determine how long the discount should be applied for.
|
|
1402
|
+
*/
|
|
1403
|
+
discount_end?: Discount.DiscountEnd;
|
|
1404
|
+
|
|
1154
1405
|
/**
|
|
1155
1406
|
* ID of the promotion code to create a new discount for.
|
|
1156
1407
|
*/
|
|
1157
1408
|
promotion_code?: string;
|
|
1158
1409
|
}
|
|
1159
1410
|
|
|
1411
|
+
namespace Discount {
|
|
1412
|
+
interface DiscountEnd {
|
|
1413
|
+
/**
|
|
1414
|
+
* Time span for the redeemed discount.
|
|
1415
|
+
*/
|
|
1416
|
+
duration?: DiscountEnd.Duration;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1420
|
+
*/
|
|
1421
|
+
timestamp?: number;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* The type of calculation made to determine when the discount ends.
|
|
1425
|
+
*/
|
|
1426
|
+
type: DiscountEnd.Type;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
namespace DiscountEnd {
|
|
1430
|
+
interface Duration {
|
|
1431
|
+
/**
|
|
1432
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1433
|
+
*/
|
|
1434
|
+
interval: Duration.Interval;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1438
|
+
*/
|
|
1439
|
+
interval_count: number;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
namespace Duration {
|
|
1443
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
type Type = 'duration' | 'timestamp';
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1160
1450
|
interface Period {
|
|
1161
1451
|
/**
|
|
1162
1452
|
* End of the invoice item period.
|
|
@@ -1318,12 +1608,56 @@ declare module 'stripe' {
|
|
|
1318
1608
|
*/
|
|
1319
1609
|
discount?: string;
|
|
1320
1610
|
|
|
1611
|
+
/**
|
|
1612
|
+
* Details to determine how long the discount should be applied for.
|
|
1613
|
+
*/
|
|
1614
|
+
discount_end?: Discount.DiscountEnd;
|
|
1615
|
+
|
|
1321
1616
|
/**
|
|
1322
1617
|
* ID of the promotion code to create a new discount for.
|
|
1323
1618
|
*/
|
|
1324
1619
|
promotion_code?: string;
|
|
1325
1620
|
}
|
|
1326
1621
|
|
|
1622
|
+
namespace Discount {
|
|
1623
|
+
interface DiscountEnd {
|
|
1624
|
+
/**
|
|
1625
|
+
* Time span for the redeemed discount.
|
|
1626
|
+
*/
|
|
1627
|
+
duration?: DiscountEnd.Duration;
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1631
|
+
*/
|
|
1632
|
+
timestamp?: number;
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* The type of calculation made to determine when the discount ends.
|
|
1636
|
+
*/
|
|
1637
|
+
type: DiscountEnd.Type;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
namespace DiscountEnd {
|
|
1641
|
+
interface Duration {
|
|
1642
|
+
/**
|
|
1643
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1644
|
+
*/
|
|
1645
|
+
interval: Duration.Interval;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1649
|
+
*/
|
|
1650
|
+
interval_count: number;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
namespace Duration {
|
|
1654
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
type Type = 'duration' | 'timestamp';
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1327
1661
|
interface InvoiceSettings {
|
|
1328
1662
|
/**
|
|
1329
1663
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1430,12 +1764,56 @@ declare module 'stripe' {
|
|
|
1430
1764
|
*/
|
|
1431
1765
|
discount?: string;
|
|
1432
1766
|
|
|
1767
|
+
/**
|
|
1768
|
+
* Details to determine how long the discount should be applied for.
|
|
1769
|
+
*/
|
|
1770
|
+
discount_end?: Discount.DiscountEnd;
|
|
1771
|
+
|
|
1433
1772
|
/**
|
|
1434
1773
|
* ID of the promotion code to create a new discount for.
|
|
1435
1774
|
*/
|
|
1436
1775
|
promotion_code?: string;
|
|
1437
1776
|
}
|
|
1438
1777
|
|
|
1778
|
+
namespace Discount {
|
|
1779
|
+
interface DiscountEnd {
|
|
1780
|
+
/**
|
|
1781
|
+
* Time span for the redeemed discount.
|
|
1782
|
+
*/
|
|
1783
|
+
duration?: DiscountEnd.Duration;
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1787
|
+
*/
|
|
1788
|
+
timestamp?: number;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* The type of calculation made to determine when the discount ends.
|
|
1792
|
+
*/
|
|
1793
|
+
type: DiscountEnd.Type;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
namespace DiscountEnd {
|
|
1797
|
+
interface Duration {
|
|
1798
|
+
/**
|
|
1799
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1800
|
+
*/
|
|
1801
|
+
interval: Duration.Interval;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1805
|
+
*/
|
|
1806
|
+
interval_count: number;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
namespace Duration {
|
|
1810
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
type Type = 'duration' | 'timestamp';
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1439
1817
|
interface PriceData {
|
|
1440
1818
|
/**
|
|
1441
1819
|
* 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).
|
|
@@ -1554,6 +1932,13 @@ declare module 'stripe' {
|
|
|
1554
1932
|
PaymentMethodOptions.CustomerBalance
|
|
1555
1933
|
>;
|
|
1556
1934
|
|
|
1935
|
+
/**
|
|
1936
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1937
|
+
*/
|
|
1938
|
+
id_bank_transfer?: Stripe.Emptyable<
|
|
1939
|
+
PaymentMethodOptions.IdBankTransfer
|
|
1940
|
+
>;
|
|
1941
|
+
|
|
1557
1942
|
/**
|
|
1558
1943
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1559
1944
|
*/
|
|
@@ -1564,6 +1949,11 @@ declare module 'stripe' {
|
|
|
1564
1949
|
*/
|
|
1565
1950
|
sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
|
|
1566
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
* This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
|
|
1954
|
+
*/
|
|
1955
|
+
upi?: Stripe.Emptyable<PaymentMethodOptions.Upi>;
|
|
1956
|
+
|
|
1567
1957
|
/**
|
|
1568
1958
|
* This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
|
|
1569
1959
|
*/
|
|
@@ -1703,10 +2093,47 @@ declare module 'stripe' {
|
|
|
1703
2093
|
}
|
|
1704
2094
|
}
|
|
1705
2095
|
|
|
2096
|
+
interface IdBankTransfer {}
|
|
2097
|
+
|
|
1706
2098
|
interface Konbini {}
|
|
1707
2099
|
|
|
1708
2100
|
interface SepaDebit {}
|
|
1709
2101
|
|
|
2102
|
+
interface Upi {
|
|
2103
|
+
/**
|
|
2104
|
+
* Configuration options for setting up an eMandate
|
|
2105
|
+
*/
|
|
2106
|
+
mandate_options?: Upi.MandateOptions;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
namespace Upi {
|
|
2110
|
+
interface MandateOptions {
|
|
2111
|
+
/**
|
|
2112
|
+
* Amount to be charged for future payments.
|
|
2113
|
+
*/
|
|
2114
|
+
amount?: number;
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
2118
|
+
*/
|
|
2119
|
+
amount_type?: MandateOptions.AmountType;
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
2123
|
+
*/
|
|
2124
|
+
description?: string;
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
2128
|
+
*/
|
|
2129
|
+
end_date?: number;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
namespace MandateOptions {
|
|
2133
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
|
|
1710
2137
|
interface UsBankAccount {
|
|
1711
2138
|
/**
|
|
1712
2139
|
* Additional fields for Financial Connections Session creation
|
|
@@ -1743,6 +2170,11 @@ declare module 'stripe' {
|
|
|
1743
2170
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1744
2171
|
*/
|
|
1745
2172
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2176
|
+
*/
|
|
2177
|
+
institution?: string;
|
|
1746
2178
|
}
|
|
1747
2179
|
|
|
1748
2180
|
namespace Filters {
|
|
@@ -1755,7 +2187,11 @@ declare module 'stripe' {
|
|
|
1755
2187
|
| 'payment_method'
|
|
1756
2188
|
| 'transactions';
|
|
1757
2189
|
|
|
1758
|
-
type Prefetch =
|
|
2190
|
+
type Prefetch =
|
|
2191
|
+
| 'balances'
|
|
2192
|
+
| 'inferred_balances'
|
|
2193
|
+
| 'ownership'
|
|
2194
|
+
| 'transactions';
|
|
1759
2195
|
}
|
|
1760
2196
|
|
|
1761
2197
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1775,11 +2211,13 @@ declare module 'stripe' {
|
|
|
1775
2211
|
| 'card'
|
|
1776
2212
|
| 'cashapp'
|
|
1777
2213
|
| 'crypto'
|
|
2214
|
+
| 'custom'
|
|
1778
2215
|
| 'customer_balance'
|
|
1779
2216
|
| 'eps'
|
|
1780
2217
|
| 'fpx'
|
|
1781
2218
|
| 'giropay'
|
|
1782
2219
|
| 'grabpay'
|
|
2220
|
+
| 'id_bank_transfer'
|
|
1783
2221
|
| 'ideal'
|
|
1784
2222
|
| 'jp_credit_transfer'
|
|
1785
2223
|
| 'kakao_pay'
|
|
@@ -1799,7 +2237,9 @@ declare module 'stripe' {
|
|
|
1799
2237
|
| 'sepa_credit_transfer'
|
|
1800
2238
|
| 'sepa_debit'
|
|
1801
2239
|
| 'sofort'
|
|
2240
|
+
| 'stripe_balance'
|
|
1802
2241
|
| 'swish'
|
|
2242
|
+
| 'upi'
|
|
1803
2243
|
| 'us_bank_account'
|
|
1804
2244
|
| 'wechat_pay';
|
|
1805
2245
|
|
|
@@ -1822,6 +2262,22 @@ declare module 'stripe' {
|
|
|
1822
2262
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1823
2263
|
}
|
|
1824
2264
|
|
|
2265
|
+
interface Prebilling {
|
|
2266
|
+
/**
|
|
2267
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
2268
|
+
*/
|
|
2269
|
+
iterations: number;
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2273
|
+
*/
|
|
2274
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
namespace Prebilling {
|
|
2278
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
2279
|
+
}
|
|
2280
|
+
|
|
1825
2281
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1826
2282
|
|
|
1827
2283
|
interface TransferData {
|
|
@@ -1888,6 +2344,11 @@ declare module 'stripe' {
|
|
|
1888
2344
|
*/
|
|
1889
2345
|
customer?: string;
|
|
1890
2346
|
|
|
2347
|
+
/**
|
|
2348
|
+
* The ID of the account whose subscriptions will be retrieved.
|
|
2349
|
+
*/
|
|
2350
|
+
customer_account?: string;
|
|
2351
|
+
|
|
1891
2352
|
/**
|
|
1892
2353
|
* Specifies which fields in the response should be expanded.
|
|
1893
2354
|
*/
|
|
@@ -2066,7 +2527,10 @@ declare module 'stripe' {
|
|
|
2066
2527
|
* Schedules provide the flexibility to model more complex billing configurations that change over time.
|
|
2067
2528
|
*/
|
|
2068
2529
|
create(
|
|
2069
|
-
params
|
|
2530
|
+
params?: SubscriptionCreateParams,
|
|
2531
|
+
options?: RequestOptions
|
|
2532
|
+
): Promise<Stripe.Response<Stripe.Subscription>>;
|
|
2533
|
+
create(
|
|
2070
2534
|
options?: RequestOptions
|
|
2071
2535
|
): Promise<Stripe.Response<Stripe.Subscription>>;
|
|
2072
2536
|
|