Skip to content

Commit e7d6743

Browse files
Update generated code for v2408 and 871c3a5fe73531f5b73a53721d7eb4aac41c4530
1 parent 658a714 commit e7d6743

66 files changed

Lines changed: 3366 additions & 455 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1e95a9c21695d1f28bf9bf64ed7c83a05749b1e8
1+
871c3a5fe73531f5b73a53721d7eb4aac41c4530

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2396
1+
v2408

lib/stripe/object_types.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def self.object_names_to_classes
3636
Billing::CreditBalanceSummary.object_name => Billing::CreditBalanceSummary,
3737
Billing::CreditBalanceTransaction.object_name => Billing::CreditBalanceTransaction,
3838
Billing::CreditGrant.object_name => Billing::CreditGrant,
39-
Billing::FeedbackOptions.object_name => Billing::FeedbackOptions,
39+
Billing::FeedbackOption.object_name => Billing::FeedbackOption,
4040
Billing::Meter.object_name => Billing::Meter,
4141
Billing::MeterEvent.object_name => Billing::MeterEvent,
4242
Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,

lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def initialize(client_device_metadata_details: nil)
145145
attr_accessor :return_url
146146
# Risk details/signals associated with the requested session
147147
attr_accessor :risk_details
148+
# A SharedPaymentIssuedToken (`spt_...`) previously issued to this buyer. Mutually exclusive with `payment_method` and `payment_method_data`.
149+
attr_accessor :shared_payment_issued_token
148150
# Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
149151
attr_accessor :use_stripe_sdk
150152

@@ -156,6 +158,7 @@ def initialize(
156158
payment_method: nil,
157159
return_url: nil,
158160
risk_details: nil,
161+
shared_payment_issued_token: nil,
159162
use_stripe_sdk: nil
160163
)
161164
@affiliate_attribution = affiliate_attribution
@@ -165,6 +168,7 @@ def initialize(
165168
@payment_method = payment_method
166169
@return_url = return_url
167170
@risk_details = risk_details
171+
@shared_payment_issued_token = shared_payment_issued_token
168172
@use_stripe_sdk = use_stripe_sdk
169173
end
170174
end

lib/stripe/params/invoice_create_params.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ def initialize(account: nil, type: nil)
123123
end
124124
end
125125

126+
class ManagedPayments < ::Stripe::RequestParams
127+
# Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution.
128+
attr_accessor :enabled
129+
130+
def initialize(enabled: nil)
131+
@enabled = enabled
132+
end
133+
end
134+
126135
class PaymentSettings < ::Stripe::RequestParams
127136
class PaymentMethodOptions < ::Stripe::RequestParams
128137
class AcssDebit < ::Stripe::RequestParams
@@ -659,6 +668,8 @@ def initialize(amount: nil, destination: nil)
659668
attr_accessor :from_invoice
660669
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
661670
attr_accessor :issuer
671+
# Settings for Managed Payments for this invoice.
672+
attr_accessor :managed_payments
662673
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
663674
attr_accessor :metadata
664675
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
@@ -707,6 +718,7 @@ def initialize(
707718
footer: nil,
708719
from_invoice: nil,
709720
issuer: nil,
721+
managed_payments: nil,
710722
metadata: nil,
711723
number: nil,
712724
on_behalf_of: nil,
@@ -743,6 +755,7 @@ def initialize(
743755
@footer = footer
744756
@from_invoice = from_invoice
745757
@issuer = issuer
758+
@managed_payments = managed_payments
746759
@metadata = metadata
747760
@number = number
748761
@on_behalf_of = on_behalf_of

lib/stripe/params/invoice_item_create_params.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: ni
4646
end
4747
end
4848

49+
class ManagedPayments < ::Stripe::RequestParams
50+
# Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution.
51+
attr_accessor :enabled
52+
53+
def initialize(enabled: nil)
54+
@enabled = enabled
55+
end
56+
end
57+
4958
class Period < ::Stripe::RequestParams
5059
# The end of the period, which must be greater than or equal to the start. This value is inclusive.
5160
attr_accessor :end
@@ -115,6 +124,8 @@ def initialize(price: nil)
115124
attr_accessor :expand
116125
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
117126
attr_accessor :invoice
127+
# Settings for Managed Payments for this invoice item.
128+
attr_accessor :managed_payments
118129
# The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
119130
attr_accessor :margins
120131
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -150,6 +161,7 @@ def initialize(
150161
discounts: nil,
151162
expand: nil,
152163
invoice: nil,
164+
managed_payments: nil,
153165
margins: nil,
154166
metadata: nil,
155167
period: nil,
@@ -172,6 +184,7 @@ def initialize(
172184
@discounts = discounts
173185
@expand = expand
174186
@invoice = invoice
187+
@managed_payments = managed_payments
175188
@margins = margins
176189
@metadata = metadata
177190
@period = period

lib/stripe/params/price_create_params.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,25 @@ def initialize(
323323

324324
def self.field_encodings
325325
@field_encodings = {
326+
currency_options: {
327+
kind: :array,
328+
element: {
329+
kind: :object,
330+
fields: {
331+
tiers: {
332+
kind: :array,
333+
element: {
334+
kind: :object,
335+
fields: {
336+
flat_amount_decimal: :decimal_string,
337+
unit_amount_decimal: :decimal_string,
338+
},
339+
},
340+
},
341+
unit_amount_decimal: :decimal_string,
342+
},
343+
},
344+
},
326345
tiers: {
327346
kind: :array,
328347
element: {

lib/stripe/params/product_create_params.rb

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,28 @@ def initialize(
165165
end
166166

167167
def self.field_encodings
168-
@field_encodings = { unit_amount_decimal: :decimal_string }
168+
@field_encodings = {
169+
currency_options: {
170+
kind: :array,
171+
element: {
172+
kind: :object,
173+
fields: {
174+
tiers: {
175+
kind: :array,
176+
element: {
177+
kind: :object,
178+
fields: {
179+
flat_amount_decimal: :decimal_string,
180+
unit_amount_decimal: :decimal_string,
181+
},
182+
},
183+
},
184+
unit_amount_decimal: :decimal_string,
185+
},
186+
},
187+
},
188+
unit_amount_decimal: :decimal_string,
189+
}
169190
end
170191
end
171192

@@ -316,7 +337,31 @@ def initialize(
316337

317338
def self.field_encodings
318339
@field_encodings = {
319-
default_price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
340+
default_price_data: {
341+
kind: :object,
342+
fields: {
343+
currency_options: {
344+
kind: :array,
345+
element: {
346+
kind: :object,
347+
fields: {
348+
tiers: {
349+
kind: :array,
350+
element: {
351+
kind: :object,
352+
fields: {
353+
flat_amount_decimal: :decimal_string,
354+
unit_amount_decimal: :decimal_string,
355+
},
356+
},
357+
},
358+
unit_amount_decimal: :decimal_string,
359+
},
360+
},
361+
},
362+
unit_amount_decimal: :decimal_string,
363+
},
364+
},
320365
}
321366
end
322367
end

lib/stripe/params/tax/calculation_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def initialize(amount: nil, shipping_rate: nil, tax_behavior: nil, tax_code: nil
219219
attr_accessor :customer_details
220220
# Specifies which fields in the response should be expanded.
221221
attr_accessor :expand
222-
# A list of items the customer is purchasing.
222+
# A list of items the customer is purchasing. You can pass up to 100 line items, or 1,000 if your account has an increased limit.
223223
attr_accessor :line_items
224224
# Details about the address from which the goods are being shipped.
225225
attr_accessor :ship_from_details

lib/stripe/params/v2/billing/contract_create_params.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ def initialize(timestamp: nil, type: nil)
396396
attr_accessor :ends_at
397397
# A user-provided lookup key to reference this pricing override.
398398
attr_accessor :lookup_key
399+
# Set of key-value pairs.
400+
attr_accessor :metadata
399401
# Parameters for a multiply_pricing override. Required if `type` is `multiply_pricing`.
400402
attr_accessor :multiply_pricing
401403
# The priority of this override relative to others. The highest priority is 0 and the lowest is 100.
@@ -408,13 +410,15 @@ def initialize(timestamp: nil, type: nil)
408410
def initialize(
409411
ends_at: nil,
410412
lookup_key: nil,
413+
metadata: nil,
411414
multiply_pricing: nil,
412415
priority: nil,
413416
starts_at: nil,
414417
type: nil
415418
)
416419
@ends_at = ends_at
417420
@lookup_key = lookup_key
421+
@metadata = metadata
418422
@multiply_pricing = multiply_pricing
419423
@priority = priority
420424
@starts_at = starts_at

0 commit comments

Comments
 (0)