Skip to content

Commit c6359ba

Browse files
Update generated code for v1566
1 parent 71e4e60 commit c6359ba

11 files changed

+88
-31
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1565
1+
v1566

test/resources/generated_examples_test.spec.js

+2-3
Large diffs are not rendered by default.

types/ConfirmationTokens.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,11 @@ declare module 'stripe' {
13131313
interface Multibanco {}
13141314

13151315
interface NaverPay {
1316+
/**
1317+
* Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
1318+
*/
1319+
buyer_id?: string | null;
1320+
13161321
/**
13171322
* Whether to fund this transaction with Naver Pay points or a card.
13181323
*/

types/Coupons.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ declare module 'stripe' {
113113
amount_off: number;
114114
}
115115

116-
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
116+
type Duration = 'forever' | 'once';
117117
}
118118

119119
/**

types/CouponsResource.d.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ declare module 'stripe' {
3030
*/
3131
duration?: CouponCreateParams.Duration;
3232

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-
3833
/**
3934
* Specifies which fields in the response should be expanded.
4035
*/
@@ -86,7 +81,7 @@ declare module 'stripe' {
8681
amount_off: number;
8782
}
8883

89-
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
84+
type Duration = 'forever' | 'once';
9085
}
9186

9287
interface CouponRetrieveParams {

types/CustomersResource.d.ts

-20
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ declare module 'stripe' {
1818
*/
1919
cash_balance?: CustomerCreateParams.CashBalance;
2020

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-
2621
/**
2722
* An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
2823
*/
@@ -75,11 +70,6 @@ declare module 'stripe' {
7570
*/
7671
preferred_locales?: Array<string>;
7772

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-
8373
/**
8474
* The customer's shipping information. Appears on invoices emailed to this customer.
8575
*/
@@ -361,11 +351,6 @@ declare module 'stripe' {
361351
*/
362352
cash_balance?: CustomerUpdateParams.CashBalance;
363353

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-
369354
/**
370355
* 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.
371356
*
@@ -425,11 +410,6 @@ declare module 'stripe' {
425410
*/
426411
preferred_locales?: Array<string>;
427412

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-
433413
/**
434414
* The customer's shipping information. Appears on invoices emailed to this customer.
435415
*/

types/Mandates.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ declare module 'stripe' {
106106

107107
link?: PaymentMethodDetails.Link;
108108

109+
naver_pay?: PaymentMethodDetails.NaverPay;
110+
109111
paypal?: PaymentMethodDetails.Paypal;
110112

111113
payto?: PaymentMethodDetails.Payto;
@@ -205,6 +207,8 @@ declare module 'stripe' {
205207

206208
interface Link {}
207209

210+
interface NaverPay {}
211+
208212
interface Paypal {
209213
/**
210214
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.

types/PaymentIntents.d.ts

+15
Original file line numberDiff line numberDiff line change
@@ -2703,6 +2703,21 @@ declare module 'stripe' {
27032703
* Controls when the funds will be captured from the customer's account.
27042704
*/
27052705
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).
2715+
*/
2716+
setup_future_usage?: NaverPay.SetupFutureUsage;
2717+
}
2718+
2719+
namespace NaverPay {
2720+
type SetupFutureUsage = 'none' | 'off_session';
27062721
}
27072722

27082723
interface Oxxo {

types/PaymentIntentsResource.d.ts

+45
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,21 @@ declare module 'stripe' {
31503150
* 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.
31513151
*/
31523152
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).
3162+
*/
3163+
setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
3164+
}
3165+
3166+
namespace NaverPay {
3167+
type SetupFutureUsage = 'none' | 'off_session';
31533168
}
31543169

31553170
interface Oxxo {
@@ -6963,6 +6978,21 @@ declare module 'stripe' {
69636978
* 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.
69646979
*/
69656980
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).
6990+
*/
6991+
setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
6992+
}
6993+
6994+
namespace NaverPay {
6995+
type SetupFutureUsage = 'none' | 'off_session';
69666996
}
69676997

69686998
interface Oxxo {
@@ -11531,6 +11561,21 @@ declare module 'stripe' {
1153111561
* 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.
1153211562
*/
1153311563
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).
11573+
*/
11574+
setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
11575+
}
11576+
11577+
namespace NaverPay {
11578+
type SetupFutureUsage = 'none' | 'off_session';
1153411579
}
1153511580

1153611581
interface Oxxo {

types/PaymentMethods.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,11 @@ declare module 'stripe' {
12151215
interface Multibanco {}
12161216

12171217
interface NaverPay {
1218+
/**
1219+
* Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
1220+
*/
1221+
buyer_id?: string | null;
1222+
12181223
/**
12191224
* Whether to fund this transaction with Naver Pay points or a card.
12201225
*/

types/SetupAttempts.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ declare module 'stripe' {
120120

121121
link?: PaymentMethodDetails.Link;
122122

123+
naver_pay?: PaymentMethodDetails.NaverPay;
124+
123125
paypal?: PaymentMethodDetails.Paypal;
124126

125127
payto?: PaymentMethodDetails.Payto;
@@ -504,6 +506,13 @@ declare module 'stripe' {
504506

505507
interface Link {}
506508

509+
interface NaverPay {
510+
/**
511+
* Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
512+
*/
513+
buyer_id?: string;
514+
}
515+
507516
interface Paypal {}
508517

509518
interface Payto {}

0 commit comments

Comments
 (0)