stripe 17.7.0 → 17.8.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 +1077 -109
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -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/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -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/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -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/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/cjs/resources.js +48 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -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/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -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/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -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/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/esm/resources.js +33 -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 +243 -0
- package/types/Accounts.d.ts +205 -1
- package/types/AccountsResource.d.ts +526 -2
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- 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/Charges.d.ts +148 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +304 -6
- package/types/Checkout/SessionsResource.d.ts +440 -5
- package/types/ConfirmationTokens.d.ts +99 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/EventTypes.d.ts +597 -1
- package/types/Events.d.ts +93 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -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/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/Identity/VerificationSessions.d.ts +1 -1
- package/types/Identity/VerificationSessionsResource.d.ts +1 -1
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +28 -1
- package/types/InvoicePayments.d.ts +113 -0
- package/types/Invoices.d.ts +137 -2
- package/types/InvoicesResource.d.ts +4618 -933
- package/types/Issuing/Authorizations.d.ts +1 -0
- 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 +73 -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 +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +32 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1189 -0
- package/types/OrdersResource.d.ts +2981 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +644 -1
- package/types/PaymentIntentsResource.d.ts +8103 -3816
- 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 +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +242 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1658 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +38 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +645 -3
- 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 +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +91 -1
- package/types/SubscriptionsResource.d.ts +369 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxRates.d.ts +1 -1
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +290 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -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/WebhookEndpointsResource.d.ts +70 -0
- package/types/index.d.ts +62 -0
package/types/Prices.d.ts
CHANGED
|
@@ -93,6 +93,11 @@ declare module 'stripe' {
|
|
|
93
93
|
*/
|
|
94
94
|
metadata: Stripe.Metadata;
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Subscriptions using this price will be migrated to use the new referenced price.
|
|
98
|
+
*/
|
|
99
|
+
migrate_to?: Price.MigrateTo | null;
|
|
100
|
+
|
|
96
101
|
/**
|
|
97
102
|
* A brief description of the price, hidden from customers.
|
|
98
103
|
*/
|
|
@@ -239,6 +244,23 @@ declare module 'stripe' {
|
|
|
239
244
|
preset: number | null;
|
|
240
245
|
}
|
|
241
246
|
|
|
247
|
+
interface MigrateTo {
|
|
248
|
+
/**
|
|
249
|
+
* The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
250
|
+
*/
|
|
251
|
+
behavior: 'at_cycle_end';
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
255
|
+
*/
|
|
256
|
+
effective_after: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The id of the price being migrated to
|
|
260
|
+
*/
|
|
261
|
+
price: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
242
264
|
interface Recurring {
|
|
243
265
|
/**
|
|
244
266
|
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
|
|
@@ -372,6 +372,11 @@ declare module 'stripe' {
|
|
|
372
372
|
*/
|
|
373
373
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
374
374
|
|
|
375
|
+
/**
|
|
376
|
+
* If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
377
|
+
*/
|
|
378
|
+
migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
|
|
379
|
+
|
|
375
380
|
/**
|
|
376
381
|
* A brief description of the price, hidden from customers.
|
|
377
382
|
*/
|
|
@@ -469,6 +474,23 @@ declare module 'stripe' {
|
|
|
469
474
|
}
|
|
470
475
|
}
|
|
471
476
|
|
|
477
|
+
interface MigrateTo {
|
|
478
|
+
/**
|
|
479
|
+
* The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
480
|
+
*/
|
|
481
|
+
behavior: 'at_cycle_end';
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* The time after which subscriptions should start using the new price.
|
|
485
|
+
*/
|
|
486
|
+
effective_after?: number;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* The ID of the price object.
|
|
490
|
+
*/
|
|
491
|
+
price: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
472
494
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
473
495
|
}
|
|
474
496
|
|
package/types/Products.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ declare module 'stripe' {
|
|
|
98
98
|
*/
|
|
99
99
|
package_dimensions: Product.PackageDimensions | null;
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Provisioning configuration for this product.
|
|
103
|
+
*/
|
|
104
|
+
provisioning?: Product.Provisioning | null;
|
|
105
|
+
|
|
101
106
|
/**
|
|
102
107
|
* Whether this product is shipped (i.e., physical goods).
|
|
103
108
|
*/
|
|
@@ -164,6 +169,40 @@ declare module 'stripe' {
|
|
|
164
169
|
width: number;
|
|
165
170
|
}
|
|
166
171
|
|
|
172
|
+
interface Provisioning {
|
|
173
|
+
gift_card: Provisioning.GiftCard | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The type of provisioning, only `gift_card` currently supported.
|
|
177
|
+
*/
|
|
178
|
+
type: 'gift_card';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
namespace Provisioning {
|
|
182
|
+
interface GiftCard {
|
|
183
|
+
fixed_amount: GiftCard.FixedAmount | null;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
187
|
+
*/
|
|
188
|
+
type: 'fixed_amount';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
namespace GiftCard {
|
|
192
|
+
interface FixedAmount {
|
|
193
|
+
/**
|
|
194
|
+
* The initial amount with which the provisioned gift card will be created.
|
|
195
|
+
*/
|
|
196
|
+
amount: number;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* 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).
|
|
200
|
+
*/
|
|
201
|
+
currency: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
167
206
|
type Type = 'good' | 'service';
|
|
168
207
|
}
|
|
169
208
|
}
|
|
@@ -53,6 +53,11 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
package_dimensions?: ProductCreateParams.PackageDimensions;
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Provisioning configuration for this product.
|
|
58
|
+
*/
|
|
59
|
+
provisioning?: ProductCreateParams.Provisioning;
|
|
60
|
+
|
|
56
61
|
/**
|
|
57
62
|
* Whether this product is shipped (i.e., physical goods).
|
|
58
63
|
*/
|
|
@@ -283,6 +288,37 @@ declare module 'stripe' {
|
|
|
283
288
|
width: number;
|
|
284
289
|
}
|
|
285
290
|
|
|
291
|
+
interface Provisioning {
|
|
292
|
+
gift_card?: Provisioning.GiftCard;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* The type of provisioning, only `gift_card` currently supported.
|
|
296
|
+
*/
|
|
297
|
+
type: 'gift_card';
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
namespace Provisioning {
|
|
301
|
+
interface GiftCard {
|
|
302
|
+
fixed_amount?: GiftCard.FixedAmount;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
306
|
+
*/
|
|
307
|
+
type: 'fixed_amount';
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
namespace GiftCard {
|
|
311
|
+
interface FixedAmount {
|
|
312
|
+
/**
|
|
313
|
+
* The initial amount with which the provisioned gift card will be created.
|
|
314
|
+
*/
|
|
315
|
+
amount: number;
|
|
316
|
+
|
|
317
|
+
currency: string;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
286
322
|
type Type = 'good' | 'service';
|
|
287
323
|
}
|
|
288
324
|
|