stripe 20.1.0 → 20.2.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 +1544 -47
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/StripeEventNotificationHandler.js +118 -0
- 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/PaymentIntents.js +8 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/Reserve/Holds.js +14 -0
- package/cjs/resources/Reserve/Plans.js +9 -0
- package/cjs/resources/Reserve/Releases.js +17 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/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/Profiles.js +19 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +98 -4
- package/cjs/stripe.core.js +5 -1
- package/esm/Error.js +100 -0
- package/esm/StripeEventNotificationHandler.js +114 -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/PaymentIntents.js +8 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/Reserve/Holds.js +11 -0
- package/esm/resources/Reserve/Plans.js +6 -0
- package/esm/resources/Reserve/Releases.js +14 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/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/Profiles.js +16 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +89 -0
- package/esm/stripe.core.js +5 -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 +225 -1
- package/types/AccountsResource.d.ts +562 -0
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- 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/Capabilities.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +109 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +5 -0
- package/types/Charges.d.ts +152 -0
- package/types/ChargesResource.d.ts +3855 -75
- package/types/Checkout/Sessions.d.ts +279 -2
- package/types/Checkout/SessionsResource.d.ts +362 -2
- package/types/ConfirmationTokens.d.ts +103 -0
- package/types/Coupons.d.ts +35 -0
- package/types/CouponsResource.d.ts +23 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CustomerSessions.d.ts +41 -0
- package/types/CustomerSessionsResource.d.ts +41 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +630 -0
- package/types/Events.d.ts +96 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +34 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/FxQuotes.d.ts +155 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/Invoices.d.ts +198 -4
- package/types/InvoicesResource.d.ts +1606 -3
- 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 +45 -1
- package/types/Mandates.d.ts +69 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +5505 -0
- package/types/PaymentAttemptRecords.d.ts +117 -0
- package/types/PaymentIntents.d.ts +683 -3
- package/types/PaymentIntentsResource.d.ts +19095 -6508
- package/types/PaymentLinks.d.ts +5 -0
- package/types/PaymentLinksResource.d.ts +10 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +108 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/PaymentRecords.d.ts +117 -0
- package/types/Persons.d.ts +2 -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/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1821 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +589 -1
- package/types/QuotesResource.d.ts +2567 -237
- package/types/Refunds.d.ts +14 -0
- package/types/Reserve/Holds.d.ts +104 -0
- package/types/Reserve/HoldsResource.d.ts +76 -0
- package/types/Reserve/Plans.d.ts +103 -0
- package/types/Reserve/PlansResource.d.ts +29 -0
- package/types/Reserve/Releases.d.ts +105 -0
- package/types/Reserve/ReleasesResource.d.ts +60 -0
- package/types/SetupAttempts.d.ts +42 -1
- package/types/SetupIntents.d.ts +138 -2
- package/types/SetupIntentsResource.d.ts +629 -3
- 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 +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1230 -12
- package/types/Subscriptions.d.ts +257 -1
- package/types/SubscriptionsResource.d.ts +726 -2
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +103 -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 +690 -0
- package/types/V2/Billing/CadencesResource.d.ts +487 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +318 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +341 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +683 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Core/AccountLinks.d.ts +10 -2
- package/types/V2/Core/AccountLinksResource.d.ts +10 -2
- package/types/V2/Core/AccountTokensResource.d.ts +12 -0
- package/types/V2/Core/Accounts.d.ts +999 -84
- package/types/V2/Core/AccountsResource.d.ts +523 -2
- package/types/V2/Core/EventTypes.d.ts +1564 -9
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +121 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
- package/types/V2/EventMisc.d.ts +37 -0
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +46 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +122 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +186 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +175 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +109 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +250 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +156 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +127 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +318 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +254 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +298 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +291 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +220 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +165 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +115 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +323 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +188 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +200 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +227 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +80 -0
- package/types/WebhookEndpointsResource.d.ts +76 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +160 -0
- package/types/lib.d.ts +10 -0
- package/types/test/typescriptTest.ts +27 -0
package/types/Subscriptions.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ declare module 'stripe' {
|
|
|
34
34
|
|
|
35
35
|
automatic_tax: Subscription.AutomaticTax;
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
39
|
+
*/
|
|
40
|
+
billing_cadence?: string;
|
|
41
|
+
|
|
37
42
|
/**
|
|
38
43
|
* The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
|
|
39
44
|
*/
|
|
@@ -49,6 +54,11 @@ declare module 'stripe' {
|
|
|
49
54
|
*/
|
|
50
55
|
billing_mode: Subscription.BillingMode;
|
|
51
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Billing schedules for this subscription.
|
|
59
|
+
*/
|
|
60
|
+
billing_schedules?: Array<Subscription.BillingSchedule>;
|
|
61
|
+
|
|
52
62
|
/**
|
|
53
63
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
54
64
|
*/
|
|
@@ -141,6 +151,11 @@ declare module 'stripe' {
|
|
|
141
151
|
*/
|
|
142
152
|
items: ApiList<Stripe.SubscriptionItem>;
|
|
143
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Details of the most recent price migration that failed for the subscription.
|
|
156
|
+
*/
|
|
157
|
+
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
|
|
158
|
+
|
|
144
159
|
/**
|
|
145
160
|
* The most recent invoice this subscription has generated.
|
|
146
161
|
*/
|
|
@@ -191,6 +206,11 @@ declare module 'stripe' {
|
|
|
191
206
|
*/
|
|
192
207
|
pending_update: Subscription.PendingUpdate | null;
|
|
193
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Time period and invoice for a Subscription billed in advance.
|
|
211
|
+
*/
|
|
212
|
+
prebilling?: Subscription.Prebilling | null;
|
|
213
|
+
|
|
194
214
|
/**
|
|
195
215
|
* The schedule attached to the subscription
|
|
196
216
|
*/
|
|
@@ -337,6 +357,79 @@ declare module 'stripe' {
|
|
|
337
357
|
type Type = 'classic' | 'flexible';
|
|
338
358
|
}
|
|
339
359
|
|
|
360
|
+
interface BillingSchedule {
|
|
361
|
+
/**
|
|
362
|
+
* Specifies which subscription items the billing schedule applies to.
|
|
363
|
+
*/
|
|
364
|
+
applies_to: Array<BillingSchedule.AppliesTo> | null;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Specifies the end of billing period.
|
|
368
|
+
*/
|
|
369
|
+
bill_until: BillingSchedule.BillUntil;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Unique identifier for the billing schedule.
|
|
373
|
+
*/
|
|
374
|
+
key: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
namespace BillingSchedule {
|
|
378
|
+
interface AppliesTo {
|
|
379
|
+
/**
|
|
380
|
+
* The billing schedule will apply to the subscription item with the given price ID.
|
|
381
|
+
*/
|
|
382
|
+
price: string | Stripe.Price | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Controls which subscription items the billing schedule applies to.
|
|
386
|
+
*/
|
|
387
|
+
type: 'price';
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
interface BillUntil {
|
|
391
|
+
/**
|
|
392
|
+
* The timestamp the billing schedule will apply until.
|
|
393
|
+
*/
|
|
394
|
+
computed_timestamp: number;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Specifies the billing period.
|
|
398
|
+
*/
|
|
399
|
+
duration: BillUntil.Duration | null;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* If specified, the billing schedule will apply until the specified timestamp.
|
|
403
|
+
*/
|
|
404
|
+
timestamp: number | null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
408
|
+
*/
|
|
409
|
+
type: BillUntil.Type;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
namespace BillUntil {
|
|
413
|
+
interface Duration {
|
|
414
|
+
/**
|
|
415
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
416
|
+
*/
|
|
417
|
+
interval: Duration.Interval;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The multiplier applied to the interval.
|
|
421
|
+
*/
|
|
422
|
+
interval_count: number | null;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
namespace Duration {
|
|
426
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
type Type = 'duration' | 'timestamp';
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
340
433
|
interface BillingThresholds {
|
|
341
434
|
/**
|
|
342
435
|
* Monetary threshold that triggers the subscription to create an invoice
|
|
@@ -414,6 +507,37 @@ declare module 'stripe' {
|
|
|
414
507
|
}
|
|
415
508
|
}
|
|
416
509
|
|
|
510
|
+
interface LastPriceMigrationError {
|
|
511
|
+
/**
|
|
512
|
+
* The time at which the price migration encountered an error.
|
|
513
|
+
*/
|
|
514
|
+
errored_at: number;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* The involved price pairs in each failed transition.
|
|
518
|
+
*/
|
|
519
|
+
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* The type of error encountered by the price migration.
|
|
523
|
+
*/
|
|
524
|
+
type: 'price_uniqueness_violation';
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
namespace LastPriceMigrationError {
|
|
528
|
+
interface FailedTransition {
|
|
529
|
+
/**
|
|
530
|
+
* The original price to be migrated.
|
|
531
|
+
*/
|
|
532
|
+
source_price: string;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* The intended resulting price of the migration.
|
|
536
|
+
*/
|
|
537
|
+
target_price: string;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
417
541
|
interface PauseCollection {
|
|
418
542
|
/**
|
|
419
543
|
* The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
@@ -469,6 +593,11 @@ declare module 'stripe' {
|
|
|
469
593
|
*/
|
|
470
594
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
471
595
|
|
|
596
|
+
/**
|
|
597
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
598
|
+
*/
|
|
599
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
600
|
+
|
|
472
601
|
/**
|
|
473
602
|
* This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
474
603
|
*/
|
|
@@ -479,11 +608,21 @@ declare module 'stripe' {
|
|
|
479
608
|
*/
|
|
480
609
|
payto?: PaymentMethodOptions.Payto | null;
|
|
481
610
|
|
|
611
|
+
/**
|
|
612
|
+
* This sub-hash contains details about the Pix payment method options to pass to invoices created by the subscription.
|
|
613
|
+
*/
|
|
614
|
+
pix?: PaymentMethodOptions.Pix | null;
|
|
615
|
+
|
|
482
616
|
/**
|
|
483
617
|
* This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
|
|
484
618
|
*/
|
|
485
619
|
sepa_debit: PaymentMethodOptions.SepaDebit | null;
|
|
486
620
|
|
|
621
|
+
/**
|
|
622
|
+
* This sub-hash contains details about the UPI payment method options to pass to invoices created by the subscription.
|
|
623
|
+
*/
|
|
624
|
+
upi?: PaymentMethodOptions.Upi | null;
|
|
625
|
+
|
|
487
626
|
/**
|
|
488
627
|
* This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
|
|
489
628
|
*/
|
|
@@ -613,6 +752,8 @@ declare module 'stripe' {
|
|
|
613
752
|
}
|
|
614
753
|
}
|
|
615
754
|
|
|
755
|
+
interface IdBankTransfer {}
|
|
756
|
+
|
|
616
757
|
interface Konbini {}
|
|
617
758
|
|
|
618
759
|
interface Payto {
|
|
@@ -655,8 +796,79 @@ declare module 'stripe' {
|
|
|
655
796
|
}
|
|
656
797
|
}
|
|
657
798
|
|
|
799
|
+
interface Pix {
|
|
800
|
+
mandate_options?: Pix.MandateOptions;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
namespace Pix {
|
|
804
|
+
interface MandateOptions {
|
|
805
|
+
/**
|
|
806
|
+
* Amount to be charged for future payments.
|
|
807
|
+
*/
|
|
808
|
+
amount: number | null;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Determines if the amount includes the IOF tax.
|
|
812
|
+
*/
|
|
813
|
+
amount_includes_iof: MandateOptions.AmountIncludesIof | null;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
817
|
+
*/
|
|
818
|
+
end_date: string | null;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Schedule at which the future payments will be charged.
|
|
822
|
+
*/
|
|
823
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
namespace MandateOptions {
|
|
827
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
828
|
+
|
|
829
|
+
type PaymentSchedule =
|
|
830
|
+
| 'halfyearly'
|
|
831
|
+
| 'monthly'
|
|
832
|
+
| 'quarterly'
|
|
833
|
+
| 'weekly'
|
|
834
|
+
| 'yearly';
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
658
838
|
interface SepaDebit {}
|
|
659
839
|
|
|
840
|
+
interface Upi {
|
|
841
|
+
mandate_options?: Upi.MandateOptions;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
namespace Upi {
|
|
845
|
+
interface MandateOptions {
|
|
846
|
+
/**
|
|
847
|
+
* Amount to be charged for future payments.
|
|
848
|
+
*/
|
|
849
|
+
amount: number | null;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* 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.
|
|
853
|
+
*/
|
|
854
|
+
amount_type: MandateOptions.AmountType | null;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
858
|
+
*/
|
|
859
|
+
description: string | null;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* 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.
|
|
863
|
+
*/
|
|
864
|
+
end_date: number | null;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
namespace MandateOptions {
|
|
868
|
+
type AmountType = 'fixed' | 'maximum';
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
660
872
|
interface UsBankAccount {
|
|
661
873
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
662
874
|
|
|
@@ -687,6 +899,11 @@ declare module 'stripe' {
|
|
|
687
899
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
688
900
|
*/
|
|
689
901
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* The institution to use to filter for possible accounts to link.
|
|
905
|
+
*/
|
|
906
|
+
institution?: string;
|
|
690
907
|
}
|
|
691
908
|
|
|
692
909
|
namespace Filters {
|
|
@@ -699,7 +916,11 @@ declare module 'stripe' {
|
|
|
699
916
|
| 'payment_method'
|
|
700
917
|
| 'transactions';
|
|
701
918
|
|
|
702
|
-
type Prefetch =
|
|
919
|
+
type Prefetch =
|
|
920
|
+
| 'balances'
|
|
921
|
+
| 'inferred_balances'
|
|
922
|
+
| 'ownership'
|
|
923
|
+
| 'transactions';
|
|
703
924
|
}
|
|
704
925
|
|
|
705
926
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -725,6 +946,7 @@ declare module 'stripe' {
|
|
|
725
946
|
| 'fpx'
|
|
726
947
|
| 'giropay'
|
|
727
948
|
| 'grabpay'
|
|
949
|
+
| 'id_bank_transfer'
|
|
728
950
|
| 'ideal'
|
|
729
951
|
| 'jp_credit_transfer'
|
|
730
952
|
| 'kakao_pay'
|
|
@@ -740,12 +962,15 @@ declare module 'stripe' {
|
|
|
740
962
|
| 'paynow'
|
|
741
963
|
| 'paypal'
|
|
742
964
|
| 'payto'
|
|
965
|
+
| 'pix'
|
|
743
966
|
| 'promptpay'
|
|
744
967
|
| 'revolut_pay'
|
|
745
968
|
| 'sepa_credit_transfer'
|
|
746
969
|
| 'sepa_debit'
|
|
747
970
|
| 'sofort'
|
|
971
|
+
| 'stripe_balance'
|
|
748
972
|
| 'swish'
|
|
973
|
+
| 'upi'
|
|
749
974
|
| 'us_bank_account'
|
|
750
975
|
| 'wechat_pay';
|
|
751
976
|
|
|
@@ -779,6 +1004,11 @@ declare module 'stripe' {
|
|
|
779
1004
|
*/
|
|
780
1005
|
expires_at: number;
|
|
781
1006
|
|
|
1007
|
+
/**
|
|
1008
|
+
* The number of iterations of prebilling to apply.
|
|
1009
|
+
*/
|
|
1010
|
+
prebilling_iterations?: number | null;
|
|
1011
|
+
|
|
782
1012
|
/**
|
|
783
1013
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
784
1014
|
*/
|
|
@@ -795,6 +1025,32 @@ declare module 'stripe' {
|
|
|
795
1025
|
trial_from_plan: boolean | null;
|
|
796
1026
|
}
|
|
797
1027
|
|
|
1028
|
+
interface Prebilling {
|
|
1029
|
+
/**
|
|
1030
|
+
* ID of the prebilling invoice.
|
|
1031
|
+
*/
|
|
1032
|
+
invoice: string | Stripe.Invoice;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* The end of the last period for which the invoice pre-bills.
|
|
1036
|
+
*/
|
|
1037
|
+
period_end: number;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* The start of the first period for which the invoice pre-bills.
|
|
1041
|
+
*/
|
|
1042
|
+
period_start: number;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
1046
|
+
*/
|
|
1047
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
namespace Prebilling {
|
|
1051
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
1052
|
+
}
|
|
1053
|
+
|
|
798
1054
|
type Status =
|
|
799
1055
|
| 'active'
|
|
800
1056
|
| 'canceled'
|