stripe 17.7.0 → 18.0.0
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 +139 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/InvoicePayments.js +17 -0
- package/cjs/resources/Invoices.js +0 -9
- package/cjs/resources/SubscriptionItems.js +0 -9
- package/cjs/resources.js +4 -2
- package/cjs/stripe.core.js +3 -14
- package/esm/apiVersion.js +1 -1
- package/esm/resources/InvoicePayments.js +14 -0
- package/esm/resources/Invoices.js +0 -9
- package/esm/resources/SubscriptionItems.js +0 -9
- package/esm/resources.js +1 -0
- package/esm/stripe.core.js +3 -14
- package/package.json +1 -1
- package/types/Accounts.d.ts +47 -6
- package/types/AccountsResource.d.ts +110 -3
- package/types/ApplicationFees.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/BankAccounts.d.ts +9 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +2 -2
- package/types/Capabilities.d.ts +8 -0
- package/types/Cards.d.ts +1 -4
- package/types/Charges.d.ts +56 -5
- package/types/ChargesResource.d.ts +1 -1
- package/types/Checkout/Sessions.d.ts +77 -53
- package/types/Checkout/SessionsResource.d.ts +232 -15
- package/types/ConfirmationTokens.d.ts +50 -0
- package/types/CreditNoteLineItems.d.ts +24 -22
- package/types/CreditNotes.d.ts +39 -15
- package/types/CreditNotesResource.d.ts +48 -12
- package/types/CustomerBalanceTransactions.d.ts +8 -1
- package/types/Customers.d.ts +3 -3
- package/types/CustomersResource.d.ts +3 -14
- package/types/EventTypes.d.ts +138 -2
- package/types/Events.d.ts +9 -1
- package/types/Identity/VerificationSessions.d.ts +1 -1
- package/types/Identity/VerificationSessionsResource.d.ts +1 -1
- package/types/InvoiceItems.d.ts +60 -26
- package/types/InvoiceItemsResource.d.ts +26 -22
- package/types/InvoiceLineItems.d.ts +160 -70
- package/types/InvoicePayments.d.ts +99 -0
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +97 -83
- package/types/InvoicesResource.d.ts +239 -2846
- package/types/Issuing/Authorizations.d.ts +2 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Mandates.d.ts +8 -0
- package/types/PaymentIntents.d.ts +59 -8
- package/types/PaymentIntentsResource.d.ts +293 -8
- package/types/PaymentLinks.d.ts +49 -0
- package/types/PaymentLinksResource.d.ts +77 -0
- package/types/PaymentMethodConfigurations.d.ts +108 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
- package/types/PaymentMethodDomainsResource.d.ts +6 -6
- package/types/PaymentMethods.d.ts +50 -0
- package/types/PaymentMethodsResource.d.ts +54 -16
- package/types/Persons.d.ts +17 -9
- package/types/Plans.d.ts +0 -7
- package/types/PlansResource.d.ts +0 -7
- package/types/Prices.d.ts +0 -11
- package/types/PricesResource.d.ts +2 -13
- package/types/QuotesResource.d.ts +2 -2
- package/types/Refunds.d.ts +18 -0
- package/types/Reviews.d.ts +3 -2
- package/types/SetupAttempts.d.ts +15 -0
- package/types/SetupIntents.d.ts +2 -0
- package/types/SetupIntentsResource.d.ts +155 -0
- package/types/SubscriptionItems.d.ts +9 -13
- package/types/SubscriptionItemsResource.d.ts +2 -94
- package/types/SubscriptionSchedules.d.ts +0 -51
- package/types/SubscriptionSchedulesResource.d.ts +4 -110
- package/types/Subscriptions.d.ts +3 -33
- package/types/SubscriptionsResource.d.ts +8 -86
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/TaxRates.d.ts +1 -1
- package/types/Terminal/Configurations.d.ts +86 -3
- package/types/Terminal/ConfigurationsResource.d.ts +192 -2
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
- package/types/TokensResource.d.ts +6 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
- package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
- package/types/V2/Core/EventsResource.d.ts +0 -5
- package/types/V2/EventDestinations.d.ts +1 -1
- package/types/V2/Events.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +21 -3
- package/types/index.d.ts +3 -3
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -6
- package/types/Deprecations.d.ts +0 -215
- package/types/UsageRecordSummaries.d.ts +0 -56
- package/types/UsageRecords.d.ts +0 -45
|
@@ -570,6 +570,7 @@ declare module 'stripe' {
|
|
|
570
570
|
| 'cardholder_verification_required'
|
|
571
571
|
| 'insecure_authorization_method'
|
|
572
572
|
| 'insufficient_funds'
|
|
573
|
+
| 'network_fallback'
|
|
573
574
|
| 'not_allowed'
|
|
574
575
|
| 'pin_blocked'
|
|
575
576
|
| 'spending_controls'
|
|
@@ -581,7 +582,7 @@ declare module 'stripe' {
|
|
|
581
582
|
| 'webhook_timeout';
|
|
582
583
|
}
|
|
583
584
|
|
|
584
|
-
type Status = 'closed' | 'pending' | 'reversed';
|
|
585
|
+
type Status = 'closed' | 'expired' | 'pending' | 'reversed';
|
|
585
586
|
|
|
586
587
|
interface Treasury {
|
|
587
588
|
/**
|
package/types/Mandates.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ declare module 'stripe' {
|
|
|
106
106
|
|
|
107
107
|
link?: PaymentMethodDetails.Link;
|
|
108
108
|
|
|
109
|
+
naver_pay?: PaymentMethodDetails.NaverPay;
|
|
110
|
+
|
|
111
|
+
nz_bank_account?: PaymentMethodDetails.NzBankAccount;
|
|
112
|
+
|
|
109
113
|
paypal?: PaymentMethodDetails.Paypal;
|
|
110
114
|
|
|
111
115
|
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
|
@@ -203,6 +207,10 @@ declare module 'stripe' {
|
|
|
203
207
|
|
|
204
208
|
interface Link {}
|
|
205
209
|
|
|
210
|
+
interface NaverPay {}
|
|
211
|
+
|
|
212
|
+
interface NzBankAccount {}
|
|
213
|
+
|
|
206
214
|
interface Paypal {
|
|
207
215
|
/**
|
|
208
216
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
@@ -49,7 +49,7 @@ declare module 'stripe' {
|
|
|
49
49
|
application: string | Stripe.Application | null;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total
|
|
52
|
+
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
|
53
53
|
*/
|
|
54
54
|
application_fee_amount: number | null;
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@ declare module 'stripe' {
|
|
|
64
64
|
canceled_at: number | null;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, or `
|
|
67
|
+
* Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, `automatic`, or `expired`).
|
|
68
68
|
*/
|
|
69
69
|
cancellation_reason: PaymentIntent.CancellationReason | null;
|
|
70
70
|
|
|
@@ -111,11 +111,6 @@ declare module 'stripe' {
|
|
|
111
111
|
*/
|
|
112
112
|
description: string | null;
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* ID of the invoice that created this PaymentIntent, if it exists.
|
|
116
|
-
*/
|
|
117
|
-
invoice: string | Stripe.Invoice | null;
|
|
118
|
-
|
|
119
114
|
/**
|
|
120
115
|
* The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
|
121
116
|
*/
|
|
@@ -162,10 +157,12 @@ declare module 'stripe' {
|
|
|
162
157
|
payment_method_options: PaymentIntent.PaymentMethodOptions | null;
|
|
163
158
|
|
|
164
159
|
/**
|
|
165
|
-
* The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
|
|
160
|
+
* The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
166
161
|
*/
|
|
167
162
|
payment_method_types: Array<string>;
|
|
168
163
|
|
|
164
|
+
presentment_details?: PaymentIntent.PresentmentDetails;
|
|
165
|
+
|
|
169
166
|
/**
|
|
170
167
|
* If present, this property tells you about the processing state of the payment.
|
|
171
168
|
*/
|
|
@@ -270,6 +267,7 @@ declare module 'stripe' {
|
|
|
270
267
|
| 'abandoned'
|
|
271
268
|
| 'automatic'
|
|
272
269
|
| 'duplicate'
|
|
270
|
+
| 'expired'
|
|
273
271
|
| 'failed_invoice'
|
|
274
272
|
| 'fraudulent'
|
|
275
273
|
| 'requested_by_customer'
|
|
@@ -445,6 +443,7 @@ declare module 'stripe' {
|
|
|
445
443
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
446
444
|
| 'forwarding_api_inactive'
|
|
447
445
|
| 'forwarding_api_invalid_parameter'
|
|
446
|
+
| 'forwarding_api_retryable_upstream_error'
|
|
448
447
|
| 'forwarding_api_upstream_connection_error'
|
|
449
448
|
| 'forwarding_api_upstream_connection_timeout'
|
|
450
449
|
| 'idempotency_key_in_use'
|
|
@@ -541,6 +540,7 @@ declare module 'stripe' {
|
|
|
541
540
|
| 'setup_intent_authentication_failure'
|
|
542
541
|
| 'setup_intent_invalid_parameter'
|
|
543
542
|
| 'setup_intent_mandate_invalid'
|
|
543
|
+
| 'setup_intent_mobile_wallet_unsupported'
|
|
544
544
|
| 'setup_intent_setup_attempt_expired'
|
|
545
545
|
| 'setup_intent_unexpected_state'
|
|
546
546
|
| 'shipping_address_invalid'
|
|
@@ -1400,6 +1400,8 @@ declare module 'stripe' {
|
|
|
1400
1400
|
|
|
1401
1401
|
naver_pay?: PaymentMethodOptions.NaverPay;
|
|
1402
1402
|
|
|
1403
|
+
nz_bank_account?: PaymentMethodOptions.NzBankAccount;
|
|
1404
|
+
|
|
1403
1405
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
1404
1406
|
|
|
1405
1407
|
p24?: PaymentMethodOptions.P24;
|
|
@@ -2263,6 +2265,43 @@ declare module 'stripe' {
|
|
|
2263
2265
|
* Controls when the funds will be captured from the customer's account.
|
|
2264
2266
|
*/
|
|
2265
2267
|
capture_method?: 'manual';
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2271
|
+
*
|
|
2272
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2273
|
+
*
|
|
2274
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2275
|
+
*
|
|
2276
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2277
|
+
*/
|
|
2278
|
+
setup_future_usage?: NaverPay.SetupFutureUsage;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
namespace NaverPay {
|
|
2282
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
interface NzBankAccount {
|
|
2286
|
+
/**
|
|
2287
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2288
|
+
*
|
|
2289
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2290
|
+
*
|
|
2291
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2292
|
+
*
|
|
2293
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2294
|
+
*/
|
|
2295
|
+
setup_future_usage?: NzBankAccount.SetupFutureUsage;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
2299
|
+
*/
|
|
2300
|
+
target_date?: string;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
namespace NzBankAccount {
|
|
2304
|
+
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2266
2305
|
}
|
|
2267
2306
|
|
|
2268
2307
|
interface Oxxo {
|
|
@@ -2636,6 +2675,18 @@ declare module 'stripe' {
|
|
|
2636
2675
|
}
|
|
2637
2676
|
}
|
|
2638
2677
|
|
|
2678
|
+
interface PresentmentDetails {
|
|
2679
|
+
/**
|
|
2680
|
+
* Amount intended to be collected by this payment, denominated in presentment_currency.
|
|
2681
|
+
*/
|
|
2682
|
+
presentment_amount: number;
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* Currency presented to the customer during payment.
|
|
2686
|
+
*/
|
|
2687
|
+
presentment_currency: string;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2639
2690
|
interface Processing {
|
|
2640
2691
|
card?: Processing.Card;
|
|
2641
2692
|
|