You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: types/CouponsResource.d.ts
+1-6
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,6 @@ declare module 'stripe' {
30
30
*/
31
31
duration?: CouponCreateParams.Duration;
32
32
33
-
/**
34
-
* Required only if `duration` is `repeating`, in which case it must be a positive integer that specifies the number of months the discount will be in effect.
35
-
*/
36
-
duration_in_months?: number;
37
-
38
33
/**
39
34
* Specifies which fields in the response should be expanded.
Copy file name to clipboardexpand all lines: types/CustomersResource.d.ts
-20
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,6 @@ declare module 'stripe' {
18
18
*/
19
19
cash_balance?: CustomerCreateParams.CashBalance;
20
20
21
-
/**
22
-
* If you provide a coupon code, the customer will have a discount applied on all recurring charges. Charges you create through the API will not have the discount.
23
-
*/
24
-
coupon?: string;
25
-
26
21
/**
27
22
* An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
28
23
*/
@@ -75,11 +70,6 @@ declare module 'stripe' {
75
70
*/
76
71
preferred_locales?: Array<string>;
77
72
78
-
/**
79
-
* The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
80
-
*/
81
-
promotion_code?: string;
82
-
83
73
/**
84
74
* The customer's shipping information. Appears on invoices emailed to this customer.
85
75
*/
@@ -361,11 +351,6 @@ declare module 'stripe' {
361
351
*/
362
352
cash_balance?: CustomerUpdateParams.CashBalance;
363
353
364
-
/**
365
-
* If you provide a coupon code, the customer will have a discount applied on all recurring charges. Charges you create through the API will not have the discount.
366
-
*/
367
-
coupon?: string;
368
-
369
354
/**
370
355
* If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
371
356
*
@@ -425,11 +410,6 @@ declare module 'stripe' {
425
410
*/
426
411
preferred_locales?: Array<string>;
427
412
428
-
/**
429
-
* The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
430
-
*/
431
-
promotion_code?: string;
432
-
433
413
/**
434
414
* The customer's shipping information. Appears on invoices emailed to this customer.
Copy file name to clipboardexpand all lines: types/PaymentIntents.d.ts
+15
Original file line number
Diff line number
Diff line change
@@ -2703,6 +2703,21 @@ declare module 'stripe' {
2703
2703
* Controls when the funds will be captured from the customer's account.
2704
2704
*/
2705
2705
capture_method?: 'manual';
2706
+
2707
+
/**
2708
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
2709
+
*
2710
+
* 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.
2711
+
*
2712
+
* 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.
2713
+
*
2714
+
* 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).
Copy file name to clipboardexpand all lines: types/PaymentIntentsResource.d.ts
+45
Original file line number
Diff line number
Diff line change
@@ -3150,6 +3150,21 @@ declare module 'stripe' {
3150
3150
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3151
3151
*/
3152
3152
capture_method?: Stripe.Emptyable<'manual'>;
3153
+
3154
+
/**
3155
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
3156
+
*
3157
+
* 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.
3158
+
*
3159
+
* 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.
3160
+
*
3161
+
* 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).
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
6964
6979
*/
6965
6980
capture_method?: Stripe.Emptyable<'manual'>;
6981
+
6982
+
/**
6983
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
6984
+
*
6985
+
* 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.
6986
+
*
6987
+
* 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.
6988
+
*
6989
+
* 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).
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
11532
11562
*/
11533
11563
capture_method?: Stripe.Emptyable<'manual'>;
11564
+
11565
+
/**
11566
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
11567
+
*
11568
+
* 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.
11569
+
*
11570
+
* 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.
11571
+
*
11572
+
* 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).
0 commit comments