Skip to content

Commit e508bd5

Browse files
Merge pull request #1739 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 34b677b + 29ceb52 commit e508bd5

34 files changed

+531
-117
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28b33d4a6cc796fd90ee77d1c5ea63206b25f727
1+
1307ab81356642fb1bf890524815d5cb6997a34d

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2129
1+
v2132

lib/stripe/params/account_create_params.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,9 +1872,9 @@ def initialize(
18721872
end
18731873

18741874
class SelfReportedIncome < ::Stripe::RequestParams
1875-
# Attribute for param field amount
1875+
# The amount in the minor currency unit (for example, cents for USD).
18761876
attr_accessor :amount
1877-
# Attribute for param field currency
1877+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
18781878
attr_accessor :currency
18791879

18801880
def initialize(amount: nil, currency: nil)
@@ -1884,9 +1884,9 @@ def initialize(amount: nil, currency: nil)
18841884
end
18851885

18861886
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1887-
# Attribute for param field amount
1887+
# The amount in the minor currency unit (for example, cents for USD).
18881888
attr_accessor :amount
1889-
# Attribute for param field currency
1889+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
18901890
attr_accessor :currency
18911891

18921892
def initialize(amount: nil, currency: nil)

lib/stripe/params/account_person_create_params.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def initialize(
240240
end
241241

242242
class SelfReportedIncome < ::Stripe::RequestParams
243-
# Attribute for param field amount
243+
# The amount in the minor currency unit (for example, cents for USD).
244244
attr_accessor :amount
245-
# Attribute for param field currency
245+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
246246
attr_accessor :currency
247247

248248
def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ def initialize(amount: nil, currency: nil)
252252
end
253253

254254
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255-
# Attribute for param field amount
255+
# The amount in the minor currency unit (for example, cents for USD).
256256
attr_accessor :amount
257-
# Attribute for param field currency
257+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
258258
attr_accessor :currency
259259

260260
def initialize(amount: nil, currency: nil)

lib/stripe/params/account_person_update_params.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def initialize(
240240
end
241241

242242
class SelfReportedIncome < ::Stripe::RequestParams
243-
# Attribute for param field amount
243+
# The amount in the minor currency unit (for example, cents for USD).
244244
attr_accessor :amount
245-
# Attribute for param field currency
245+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
246246
attr_accessor :currency
247247

248248
def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ def initialize(amount: nil, currency: nil)
252252
end
253253

254254
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255-
# Attribute for param field amount
255+
# The amount in the minor currency unit (for example, cents for USD).
256256
attr_accessor :amount
257-
# Attribute for param field currency
257+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
258258
attr_accessor :currency
259259

260260
def initialize(amount: nil, currency: nil)

lib/stripe/params/account_update_params.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,9 +1791,9 @@ def initialize(
17911791
end
17921792

17931793
class SelfReportedIncome < ::Stripe::RequestParams
1794-
# Attribute for param field amount
1794+
# The amount in the minor currency unit (for example, cents for USD).
17951795
attr_accessor :amount
1796-
# Attribute for param field currency
1796+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
17971797
attr_accessor :currency
17981798

17991799
def initialize(amount: nil, currency: nil)
@@ -1803,9 +1803,9 @@ def initialize(amount: nil, currency: nil)
18031803
end
18041804

18051805
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1806-
# Attribute for param field amount
1806+
# The amount in the minor currency unit (for example, cents for USD).
18071807
attr_accessor :amount
1808-
# Attribute for param field currency
1808+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
18091809
attr_accessor :currency
18101810

18111811
def initialize(amount: nil, currency: nil)

lib/stripe/params/delegated_checkout/requested_session_create_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Address < ::Stripe::RequestParams
1616
attr_accessor :line2
1717
# ZIP or postal code.
1818
attr_accessor :postal_code
19-
# State, county, province, or region.
19+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2020
attr_accessor :state
2121

2222
def initialize(
@@ -77,7 +77,7 @@ class Address < ::Stripe::RequestParams
7777
attr_accessor :line2
7878
# ZIP or postal code.
7979
attr_accessor :postal_code
80-
# State, county, province, or region.
80+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
8181
attr_accessor :state
8282

8383
def initialize(

lib/stripe/params/delegated_checkout/requested_session_update_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Address < ::Stripe::RequestParams
1616
attr_accessor :line2
1717
# ZIP or postal code.
1818
attr_accessor :postal_code
19-
# State, county, province, or region.
19+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2020
attr_accessor :state
2121

2222
def initialize(
@@ -106,7 +106,7 @@ class Address < ::Stripe::RequestParams
106106
attr_accessor :line2
107107
# ZIP or postal code.
108108
attr_accessor :postal_code
109-
# State, county, province, or region.
109+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
110110
attr_accessor :state
111111

112112
def initialize(

lib/stripe/params/token_create_params.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ def initialize(
463463
end
464464

465465
class SelfReportedIncome < ::Stripe::RequestParams
466-
# Attribute for param field amount
466+
# The amount in the minor currency unit (for example, cents for USD).
467467
attr_accessor :amount
468-
# Attribute for param field currency
468+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
469469
attr_accessor :currency
470470

471471
def initialize(amount: nil, currency: nil)
@@ -475,9 +475,9 @@ def initialize(amount: nil, currency: nil)
475475
end
476476

477477
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
478-
# Attribute for param field amount
478+
# The amount in the minor currency unit (for example, cents for USD).
479479
attr_accessor :amount
480-
# Attribute for param field currency
480+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
481481
attr_accessor :currency
482482

483483
def initialize(amount: nil, currency: nil)
@@ -1009,9 +1009,9 @@ def initialize(
10091009
end
10101010

10111011
class SelfReportedIncome < ::Stripe::RequestParams
1012-
# Attribute for param field amount
1012+
# The amount in the minor currency unit (for example, cents for USD).
10131013
attr_accessor :amount
1014-
# Attribute for param field currency
1014+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
10151015
attr_accessor :currency
10161016

10171017
def initialize(amount: nil, currency: nil)
@@ -1021,9 +1021,9 @@ def initialize(amount: nil, currency: nil)
10211021
end
10221022

10231023
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1024-
# Attribute for param field amount
1024+
# The amount in the minor currency unit (for example, cents for USD).
10251025
attr_accessor :amount
1026-
# Attribute for param field currency
1026+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
10271027
attr_accessor :currency
10281028

10291029
def initialize(amount: nil, currency: nil)

lib/stripe/params/v2/core/event_list_params.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
2424
end
2525
# Set of filters to query events within a range of `created` timestamps.
2626
attr_accessor :created
27+
# Additional fields to include in the response.
28+
attr_accessor :include
2729
# The page size.
2830
attr_accessor :limit
2931
# Primary object ID used to retrieve related events.
@@ -33,8 +35,9 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
3335
# An array of up to 20 strings containing specific event names.
3436
attr_accessor :types
3537

36-
def initialize(created: nil, limit: nil, object_id_: nil, types: nil)
38+
def initialize(created: nil, include: nil, limit: nil, object_id_: nil, types: nil)
3739
@created = created
40+
@include = include
3841
@limit = limit
3942
@object_id_ = object_id_
4043
@types = types

0 commit comments

Comments
 (0)