Skip to content

Commit 4c68322

Browse files
Merge upstream and update generated code for v1566
2 parents 89aa0f9 + 72c36f9 commit 4c68322

23 files changed

+201
-109
lines changed

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ group :development do
3434
gem "pry"
3535
gem "pry-byebug"
3636
end
37+
38+
platforms :jruby do
39+
gem "rbi", "0.2.4" # jruby does not support rbs, a new dependency in 0.3.0
40+
end
3741
end

OPENAPI_VERSION

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

lib/stripe/resources/confirmation_token.rb

+2
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ class Mobilepay < Stripe::StripeObject; end
555555
class Multibanco < Stripe::StripeObject; end
556556

557557
class NaverPay < Stripe::StripeObject
558+
# Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
559+
attr_reader :buyer_id
558560
# Whether to fund this transaction with Naver Pay points or a card.
559561
attr_reader :funding
560562
end

lib/stripe/resources/coupon.rb

-4
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ def initialize(amount_off: nil)
130130
attr_accessor :currency_options
131131
# Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
132132
attr_accessor :duration
133-
# 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.
134-
attr_accessor :duration_in_months
135133
# Specifies which fields in the response should be expanded.
136134
attr_accessor :expand
137135
# Unique string of your choice that will be used to identify this coupon when applying it to a customer. If you don't want to specify a particular code, you can leave the ID blank and we'll generate a random code for you.
@@ -153,7 +151,6 @@ def initialize(
153151
currency: nil,
154152
currency_options: nil,
155153
duration: nil,
156-
duration_in_months: nil,
157154
expand: nil,
158155
id: nil,
159156
max_redemptions: nil,
@@ -167,7 +164,6 @@ def initialize(
167164
@currency = currency
168165
@currency_options = currency_options
169166
@duration = duration
170-
@duration_in_months = duration_in_months
171167
@expand = expand
172168
@id = id
173169
@max_redemptions = max_redemptions

lib/stripe/resources/customer.rb

-16
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ def initialize(ip_address: nil, validate_location: nil)
275275
attr_accessor :balance
276276
# Balance information and default balance settings for this customer.
277277
attr_accessor :cash_balance
278-
# 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.
279-
attr_accessor :coupon
280278
# 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.
281279
#
282280
# Provide the ID of a payment source already attached to this customer to make it this customer's default payment source.
@@ -303,8 +301,6 @@ def initialize(ip_address: nil, validate_location: nil)
303301
attr_accessor :phone
304302
# Customer's preferred languages, ordered by preference.
305303
attr_accessor :preferred_locales
306-
# 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.
307-
attr_accessor :promotion_code
308304
# The customer's shipping information. Appears on invoices emailed to this customer.
309305
attr_accessor :shipping
310306
# Attribute for param field source
@@ -320,7 +316,6 @@ def initialize(
320316
address: nil,
321317
balance: nil,
322318
cash_balance: nil,
323-
coupon: nil,
324319
default_source: nil,
325320
description: nil,
326321
email: nil,
@@ -332,7 +327,6 @@ def initialize(
332327
next_invoice_sequence: nil,
333328
phone: nil,
334329
preferred_locales: nil,
335-
promotion_code: nil,
336330
shipping: nil,
337331
source: nil,
338332
tax: nil,
@@ -342,7 +336,6 @@ def initialize(
342336
@address = address
343337
@balance = balance
344338
@cash_balance = cash_balance
345-
@coupon = coupon
346339
@default_source = default_source
347340
@description = description
348341
@email = email
@@ -354,7 +347,6 @@ def initialize(
354347
@next_invoice_sequence = next_invoice_sequence
355348
@phone = phone
356349
@preferred_locales = preferred_locales
357-
@promotion_code = promotion_code
358350
@shipping = shipping
359351
@source = source
360352
@tax = tax
@@ -588,8 +580,6 @@ def initialize(type: nil, value: nil)
588580
attr_accessor :balance
589581
# Balance information and default balance settings for this customer.
590582
attr_accessor :cash_balance
591-
# 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.
592-
attr_accessor :coupon
593583
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
594584
attr_accessor :description
595585
# Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*.
@@ -612,8 +602,6 @@ def initialize(type: nil, value: nil)
612602
attr_accessor :phone
613603
# Customer's preferred languages, ordered by preference.
614604
attr_accessor :preferred_locales
615-
# 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.
616-
attr_accessor :promotion_code
617605
# The customer's shipping information. Appears on invoices emailed to this customer.
618606
attr_accessor :shipping
619607
# Attribute for param field source
@@ -633,7 +621,6 @@ def initialize(
633621
address: nil,
634622
balance: nil,
635623
cash_balance: nil,
636-
coupon: nil,
637624
description: nil,
638625
email: nil,
639626
expand: nil,
@@ -645,7 +632,6 @@ def initialize(
645632
payment_method: nil,
646633
phone: nil,
647634
preferred_locales: nil,
648-
promotion_code: nil,
649635
shipping: nil,
650636
source: nil,
651637
tax: nil,
@@ -657,7 +643,6 @@ def initialize(
657643
@address = address
658644
@balance = balance
659645
@cash_balance = cash_balance
660-
@coupon = coupon
661646
@description = description
662647
@email = email
663648
@expand = expand
@@ -669,7 +654,6 @@ def initialize(
669654
@payment_method = payment_method
670655
@phone = phone
671656
@preferred_locales = preferred_locales
672-
@promotion_code = promotion_code
673657
@shipping = shipping
674658
@source = source
675659
@tax = tax

lib/stripe/resources/mandate.rb

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Cashapp < Stripe::StripeObject; end
6565
class KakaoPay < Stripe::StripeObject; end
6666
class KrCard < Stripe::StripeObject; end
6767
class Link < Stripe::StripeObject; end
68+
class NaverPay < Stripe::StripeObject; end
6869

6970
class Paypal < Stripe::StripeObject
7071
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
@@ -126,6 +127,8 @@ class UsBankAccount < Stripe::StripeObject
126127
attr_reader :kr_card
127128
# Attribute for field link
128129
attr_reader :link
130+
# Attribute for field naver_pay
131+
attr_reader :naver_pay
129132
# Attribute for field paypal
130133
attr_reader :paypal
131134
# Attribute for field payto

lib/stripe/resources/payment_intent.rb

+38-3
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,14 @@ class Multibanco < Stripe::StripeObject
13961396
class NaverPay < Stripe::StripeObject
13971397
# Controls when the funds will be captured from the customer's account.
13981398
attr_reader :capture_method
1399+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
1400+
#
1401+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/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](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1402+
#
1403+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1404+
#
1405+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1406+
attr_reader :setup_future_usage
13991407
end
14001408

14011409
class Oxxo < Stripe::StripeObject
@@ -4254,9 +4262,18 @@ class NaverPay < Stripe::RequestParams
42544262
#
42554263
# 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.
42564264
attr_accessor :capture_method
4265+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
4266+
#
4267+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/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](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
4268+
#
4269+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
4270+
#
4271+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
4272+
attr_accessor :setup_future_usage
42574273

4258-
def initialize(capture_method: nil)
4274+
def initialize(capture_method: nil, setup_future_usage: nil)
42594275
@capture_method = capture_method
4276+
@setup_future_usage = setup_future_usage
42604277
end
42614278
end
42624279

@@ -7610,9 +7627,18 @@ class NaverPay < Stripe::RequestParams
76107627
#
76117628
# 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.
76127629
attr_accessor :capture_method
7630+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
7631+
#
7632+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/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](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
7633+
#
7634+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
7635+
#
7636+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
7637+
attr_accessor :setup_future_usage
76137638

7614-
def initialize(capture_method: nil)
7639+
def initialize(capture_method: nil, setup_future_usage: nil)
76157640
@capture_method = capture_method
7641+
@setup_future_usage = setup_future_usage
76167642
end
76177643
end
76187644

@@ -11686,9 +11712,18 @@ class NaverPay < Stripe::RequestParams
1168611712
#
1168711713
# 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.
1168811714
attr_accessor :capture_method
11715+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
11716+
#
11717+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/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](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
11718+
#
11719+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
11720+
#
11721+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
11722+
attr_accessor :setup_future_usage
1168911723

11690-
def initialize(capture_method: nil)
11724+
def initialize(capture_method: nil, setup_future_usage: nil)
1169111725
@capture_method = capture_method
11726+
@setup_future_usage = setup_future_usage
1169211727
end
1169311728
end
1169411729

lib/stripe/resources/payment_method.rb

+2
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ class Mobilepay < Stripe::StripeObject; end
530530
class Multibanco < Stripe::StripeObject; end
531531

532532
class NaverPay < Stripe::StripeObject
533+
# Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
534+
attr_reader :buyer_id
533535
# Whether to fund this transaction with Naver Pay points or a card.
534536
attr_reader :funding
535537
end

lib/stripe/resources/setup_attempt.rb

+8
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ class KakaoPay < Stripe::StripeObject; end
160160
class Klarna < Stripe::StripeObject; end
161161
class KrCard < Stripe::StripeObject; end
162162
class Link < Stripe::StripeObject; end
163+
164+
class NaverPay < Stripe::StripeObject
165+
# Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
166+
attr_reader :buyer_id
167+
end
168+
163169
class Paypal < Stripe::StripeObject; end
164170
class Payto < Stripe::StripeObject; end
165171
class RevolutPay < Stripe::StripeObject; end
@@ -217,6 +223,8 @@ class UsBankAccount < Stripe::StripeObject; end
217223
attr_reader :kr_card
218224
# Attribute for field link
219225
attr_reader :link
226+
# Attribute for field naver_pay
227+
attr_reader :naver_pay
220228
# Attribute for field paypal
221229
attr_reader :paypal
222230
# Attribute for field payto

lib/stripe/services/coupon_service.rb

-4
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ def initialize(amount_off: nil)
107107
attr_accessor :currency_options
108108
# Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
109109
attr_accessor :duration
110-
# 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.
111-
attr_accessor :duration_in_months
112110
# Specifies which fields in the response should be expanded.
113111
attr_accessor :expand
114112
# Unique string of your choice that will be used to identify this coupon when applying it to a customer. If you don't want to specify a particular code, you can leave the ID blank and we'll generate a random code for you.
@@ -130,7 +128,6 @@ def initialize(
130128
currency: nil,
131129
currency_options: nil,
132130
duration: nil,
133-
duration_in_months: nil,
134131
expand: nil,
135132
id: nil,
136133
max_redemptions: nil,
@@ -144,7 +141,6 @@ def initialize(
144141
@currency = currency
145142
@currency_options = currency_options
146143
@duration = duration
147-
@duration_in_months = duration_in_months
148144
@expand = expand
149145
@id = id
150146
@max_redemptions = max_redemptions

0 commit comments

Comments
 (0)