stripe 16.5.0 → 16.6.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 +8 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Billing/AlertTriggereds.d.ts +42 -0
- package/types/Billing/Alerts.d.ts +80 -0
- package/types/Charges.d.ts +1 -6
- package/types/Checkout/Sessions.d.ts +61 -1
- package/types/Checkout/SessionsResource.d.ts +63 -1
- package/types/EventTypes.d.ts +17 -0
- package/types/Events.d.ts +1 -0
- package/types/FinancialConnections/Accounts.d.ts +2 -2
- package/types/Invoices.d.ts +1 -0
- package/types/PaymentIntents.d.ts +78 -1
- package/types/PaymentIntentsResource.d.ts +338 -110
- package/types/SetupAttempts.d.ts +1 -0
- package/types/SetupIntents.d.ts +2 -1
- package/types/SetupIntentsResource.d.ts +1 -1
- package/types/SubscriptionItemsResource.d.ts +1 -1
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/WebhookEndpointsResource.d.ts +2 -0
- package/types/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.6.0 - 2024-08-01
|
|
4
|
+
* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code
|
|
5
|
+
* Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
|
|
6
|
+
* Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
|
7
|
+
* ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week.
|
|
8
|
+
* Add support for new value `billing.alert.triggered` on enum `Event.type`
|
|
9
|
+
* Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
10
|
+
|
|
3
11
|
## 16.5.0 - 2024-07-25
|
|
4
12
|
* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code
|
|
5
13
|
* Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.6.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '16.6.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '16.6.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Billing {
|
|
6
|
+
/**
|
|
7
|
+
* The AlertTriggered object.
|
|
8
|
+
*/
|
|
9
|
+
interface AlertTriggered {
|
|
10
|
+
/**
|
|
11
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
12
|
+
*/
|
|
13
|
+
object: 'billing.alert_triggered';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
|
|
17
|
+
*/
|
|
18
|
+
alert: Stripe.Billing.Alert;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ID of customer for which the alert triggered
|
|
27
|
+
*/
|
|
28
|
+
customer: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
32
|
+
*/
|
|
33
|
+
livemode: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The value triggering the alert
|
|
37
|
+
*/
|
|
38
|
+
value: number;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Billing {
|
|
6
|
+
/**
|
|
7
|
+
* A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
|
|
8
|
+
*/
|
|
9
|
+
interface Alert {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'billing.alert';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Defines the type of the alert.
|
|
22
|
+
*/
|
|
23
|
+
alert_type: 'usage_threshold';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Limits the scope of the alert to a specific [customer](https://stripe.com/docs/api/customers).
|
|
27
|
+
*/
|
|
28
|
+
filter: Alert.Filter | null;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
32
|
+
*/
|
|
33
|
+
livemode: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Status of the alert. This can be active, inactive or archived.
|
|
37
|
+
*/
|
|
38
|
+
status: Alert.Status | null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Title of the alert.
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://stripe.com/docs/api/billing/meter).
|
|
47
|
+
*/
|
|
48
|
+
usage_threshold_config: Alert.UsageThresholdConfig | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
namespace Alert {
|
|
52
|
+
interface Filter {
|
|
53
|
+
/**
|
|
54
|
+
* Limit the scope of the alert to this customer ID
|
|
55
|
+
*/
|
|
56
|
+
customer: string | Stripe.Customer | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type Status = 'active' | 'archived' | 'inactive';
|
|
60
|
+
|
|
61
|
+
interface UsageThresholdConfig {
|
|
62
|
+
/**
|
|
63
|
+
* The value at which this alert will trigger.
|
|
64
|
+
*/
|
|
65
|
+
gte: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The [Billing Meter](https://stripe.com/api/billing/meter) ID whose usage is monitored.
|
|
69
|
+
*/
|
|
70
|
+
meter: string | Stripe.Billing.Meter;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Defines how the alert will behave.
|
|
74
|
+
*/
|
|
75
|
+
recurrence: 'one_time';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/types/Charges.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare module 'stripe' {
|
|
|
62
62
|
billing_details: Charge.BillingDetails;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
|
|
65
|
+
* The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This only works for card payments.
|
|
66
66
|
*/
|
|
67
67
|
calculated_statement_descriptor: string | null;
|
|
68
68
|
|
|
@@ -703,11 +703,6 @@ declare module 'stripe' {
|
|
|
703
703
|
*/
|
|
704
704
|
amount_authorized: number | null;
|
|
705
705
|
|
|
706
|
-
/**
|
|
707
|
-
* Authorization code on the charge.
|
|
708
|
-
*/
|
|
709
|
-
authorization_code?: string | null;
|
|
710
|
-
|
|
711
706
|
/**
|
|
712
707
|
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
713
708
|
*/
|
|
@@ -95,7 +95,7 @@ declare module 'stripe' {
|
|
|
95
95
|
currency: string | null;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
* Currency conversion details for
|
|
98
|
+
* Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions
|
|
99
99
|
*/
|
|
100
100
|
currency_conversion: Session.CurrencyConversion | null;
|
|
101
101
|
|
|
@@ -973,6 +973,8 @@ declare module 'stripe' {
|
|
|
973
973
|
*
|
|
974
974
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
975
975
|
*
|
|
976
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
977
|
+
*
|
|
976
978
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
977
979
|
*/
|
|
978
980
|
setup_future_usage?: AcssDebit.SetupFutureUsage;
|
|
@@ -1032,6 +1034,8 @@ declare module 'stripe' {
|
|
|
1032
1034
|
*
|
|
1033
1035
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1034
1036
|
*
|
|
1037
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1038
|
+
*
|
|
1035
1039
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1036
1040
|
*/
|
|
1037
1041
|
setup_future_usage?: 'none';
|
|
@@ -1043,6 +1047,8 @@ declare module 'stripe' {
|
|
|
1043
1047
|
*
|
|
1044
1048
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1045
1049
|
*
|
|
1050
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1051
|
+
*
|
|
1046
1052
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1047
1053
|
*/
|
|
1048
1054
|
setup_future_usage?: 'none';
|
|
@@ -1054,6 +1060,8 @@ declare module 'stripe' {
|
|
|
1054
1060
|
*
|
|
1055
1061
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1056
1062
|
*
|
|
1063
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1064
|
+
*
|
|
1057
1065
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1058
1066
|
*/
|
|
1059
1067
|
setup_future_usage?: 'none';
|
|
@@ -1065,6 +1073,8 @@ declare module 'stripe' {
|
|
|
1065
1073
|
*
|
|
1066
1074
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1067
1075
|
*
|
|
1076
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1077
|
+
*
|
|
1068
1078
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1069
1079
|
*/
|
|
1070
1080
|
setup_future_usage?: AmazonPay.SetupFutureUsage;
|
|
@@ -1080,6 +1090,8 @@ declare module 'stripe' {
|
|
|
1080
1090
|
*
|
|
1081
1091
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1082
1092
|
*
|
|
1093
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1094
|
+
*
|
|
1083
1095
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1084
1096
|
*/
|
|
1085
1097
|
setup_future_usage?: 'none';
|
|
@@ -1091,6 +1103,8 @@ declare module 'stripe' {
|
|
|
1091
1103
|
*
|
|
1092
1104
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1093
1105
|
*
|
|
1106
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1107
|
+
*
|
|
1094
1108
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1095
1109
|
*/
|
|
1096
1110
|
setup_future_usage?: BacsDebit.SetupFutureUsage;
|
|
@@ -1106,6 +1120,8 @@ declare module 'stripe' {
|
|
|
1106
1120
|
*
|
|
1107
1121
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1108
1122
|
*
|
|
1123
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1124
|
+
*
|
|
1109
1125
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1110
1126
|
*/
|
|
1111
1127
|
setup_future_usage?: 'none';
|
|
@@ -1122,6 +1138,8 @@ declare module 'stripe' {
|
|
|
1122
1138
|
*
|
|
1123
1139
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1124
1140
|
*
|
|
1141
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1142
|
+
*
|
|
1125
1143
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1126
1144
|
*/
|
|
1127
1145
|
setup_future_usage?: Boleto.SetupFutureUsage;
|
|
@@ -1144,6 +1162,8 @@ declare module 'stripe' {
|
|
|
1144
1162
|
*
|
|
1145
1163
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1146
1164
|
*
|
|
1165
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1166
|
+
*
|
|
1147
1167
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1148
1168
|
*/
|
|
1149
1169
|
setup_future_usage?: Card.SetupFutureUsage;
|
|
@@ -1178,6 +1198,8 @@ declare module 'stripe' {
|
|
|
1178
1198
|
*
|
|
1179
1199
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1180
1200
|
*
|
|
1201
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1202
|
+
*
|
|
1181
1203
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1182
1204
|
*/
|
|
1183
1205
|
setup_future_usage?: 'none';
|
|
@@ -1196,6 +1218,8 @@ declare module 'stripe' {
|
|
|
1196
1218
|
*
|
|
1197
1219
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1198
1220
|
*
|
|
1221
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1222
|
+
*
|
|
1199
1223
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1200
1224
|
*/
|
|
1201
1225
|
setup_future_usage?: 'none';
|
|
@@ -1256,6 +1280,8 @@ declare module 'stripe' {
|
|
|
1256
1280
|
*
|
|
1257
1281
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1258
1282
|
*
|
|
1283
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1284
|
+
*
|
|
1259
1285
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1260
1286
|
*/
|
|
1261
1287
|
setup_future_usage?: 'none';
|
|
@@ -1267,6 +1293,8 @@ declare module 'stripe' {
|
|
|
1267
1293
|
*
|
|
1268
1294
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1269
1295
|
*
|
|
1296
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1297
|
+
*
|
|
1270
1298
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1271
1299
|
*/
|
|
1272
1300
|
setup_future_usage?: 'none';
|
|
@@ -1278,6 +1306,8 @@ declare module 'stripe' {
|
|
|
1278
1306
|
*
|
|
1279
1307
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1280
1308
|
*
|
|
1309
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1310
|
+
*
|
|
1281
1311
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1282
1312
|
*/
|
|
1283
1313
|
setup_future_usage?: 'none';
|
|
@@ -1289,6 +1319,8 @@ declare module 'stripe' {
|
|
|
1289
1319
|
*
|
|
1290
1320
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1291
1321
|
*
|
|
1322
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1323
|
+
*
|
|
1292
1324
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1293
1325
|
*/
|
|
1294
1326
|
setup_future_usage?: 'none';
|
|
@@ -1300,6 +1332,8 @@ declare module 'stripe' {
|
|
|
1300
1332
|
*
|
|
1301
1333
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1302
1334
|
*
|
|
1335
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1336
|
+
*
|
|
1303
1337
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1304
1338
|
*/
|
|
1305
1339
|
setup_future_usage?: 'none';
|
|
@@ -1311,6 +1345,8 @@ declare module 'stripe' {
|
|
|
1311
1345
|
*
|
|
1312
1346
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1313
1347
|
*
|
|
1348
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1349
|
+
*
|
|
1314
1350
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1315
1351
|
*/
|
|
1316
1352
|
setup_future_usage?: Klarna.SetupFutureUsage;
|
|
@@ -1331,6 +1367,8 @@ declare module 'stripe' {
|
|
|
1331
1367
|
*
|
|
1332
1368
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1333
1369
|
*
|
|
1370
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1371
|
+
*
|
|
1334
1372
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1335
1373
|
*/
|
|
1336
1374
|
setup_future_usage?: 'none';
|
|
@@ -1342,6 +1380,8 @@ declare module 'stripe' {
|
|
|
1342
1380
|
*
|
|
1343
1381
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1344
1382
|
*
|
|
1383
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1384
|
+
*
|
|
1345
1385
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1346
1386
|
*/
|
|
1347
1387
|
setup_future_usage?: Link.SetupFutureUsage;
|
|
@@ -1357,6 +1397,8 @@ declare module 'stripe' {
|
|
|
1357
1397
|
*
|
|
1358
1398
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1359
1399
|
*
|
|
1400
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1401
|
+
*
|
|
1360
1402
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1361
1403
|
*/
|
|
1362
1404
|
setup_future_usage?: 'none';
|
|
@@ -1368,6 +1410,8 @@ declare module 'stripe' {
|
|
|
1368
1410
|
*
|
|
1369
1411
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1370
1412
|
*
|
|
1413
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1414
|
+
*
|
|
1371
1415
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1372
1416
|
*/
|
|
1373
1417
|
setup_future_usage?: 'none';
|
|
@@ -1384,6 +1428,8 @@ declare module 'stripe' {
|
|
|
1384
1428
|
*
|
|
1385
1429
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1386
1430
|
*
|
|
1431
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1432
|
+
*
|
|
1387
1433
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1388
1434
|
*/
|
|
1389
1435
|
setup_future_usage?: 'none';
|
|
@@ -1395,6 +1441,8 @@ declare module 'stripe' {
|
|
|
1395
1441
|
*
|
|
1396
1442
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1397
1443
|
*
|
|
1444
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1445
|
+
*
|
|
1398
1446
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1399
1447
|
*/
|
|
1400
1448
|
setup_future_usage?: 'none';
|
|
@@ -1406,6 +1454,8 @@ declare module 'stripe' {
|
|
|
1406
1454
|
*
|
|
1407
1455
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1408
1456
|
*
|
|
1457
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1458
|
+
*
|
|
1409
1459
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1410
1460
|
*/
|
|
1411
1461
|
setup_future_usage?: 'none';
|
|
@@ -1432,6 +1482,8 @@ declare module 'stripe' {
|
|
|
1432
1482
|
*
|
|
1433
1483
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1434
1484
|
*
|
|
1485
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1486
|
+
*
|
|
1435
1487
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1436
1488
|
*/
|
|
1437
1489
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
@@ -1454,6 +1506,8 @@ declare module 'stripe' {
|
|
|
1454
1506
|
*
|
|
1455
1507
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1456
1508
|
*
|
|
1509
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1510
|
+
*
|
|
1457
1511
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1458
1512
|
*/
|
|
1459
1513
|
setup_future_usage?: RevolutPay.SetupFutureUsage;
|
|
@@ -1469,6 +1523,8 @@ declare module 'stripe' {
|
|
|
1469
1523
|
*
|
|
1470
1524
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1471
1525
|
*
|
|
1526
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1527
|
+
*
|
|
1472
1528
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1473
1529
|
*/
|
|
1474
1530
|
setup_future_usage?: SepaDebit.SetupFutureUsage;
|
|
@@ -1484,6 +1540,8 @@ declare module 'stripe' {
|
|
|
1484
1540
|
*
|
|
1485
1541
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1486
1542
|
*
|
|
1543
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1544
|
+
*
|
|
1487
1545
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1488
1546
|
*/
|
|
1489
1547
|
setup_future_usage?: 'none';
|
|
@@ -1504,6 +1562,8 @@ declare module 'stripe' {
|
|
|
1504
1562
|
*
|
|
1505
1563
|
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1506
1564
|
*
|
|
1565
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
1566
|
+
*
|
|
1507
1567
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1508
1568
|
*/
|
|
1509
1569
|
setup_future_usage?: UsBankAccount.SetupFutureUsage;
|