Skip to content

Commit 921c0c9

Browse files
Update generated code for v2155 and
1 parent ac95d46 commit 921c0c9

File tree

47 files changed

+7915
-167
lines changed

Some content is hidden

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

47 files changed

+7915
-167
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c250368ba89214c80bc8de3e4fc5d2094c5502cc
1+
8989becedb2153519066ec2233cbf5880b938188

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2153
1+
v2155

lib/stripe/object_types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def self.object_names_to_classes
8080
FinancialConnections::Session.object_name => FinancialConnections::Session,
8181
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
8282
Forwarding::Request.object_name => Forwarding::Request,
83+
FrMealVouchersOnboarding.object_name => FrMealVouchersOnboarding,
8384
FundingInstructions.object_name => FundingInstructions,
8485
FxQuote.object_name => FxQuote,
8586
Identity::BlocklistEntry.object_name => Identity::BlocklistEntry,

lib/stripe/params.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@
211211
require "stripe/params/forwarding/request_create_params"
212212
require "stripe/params/forwarding/request_list_params"
213213
require "stripe/params/forwarding/request_retrieve_params"
214+
require "stripe/params/fr_meal_vouchers_onboarding_create_params"
215+
require "stripe/params/fr_meal_vouchers_onboarding_list_params"
216+
require "stripe/params/fr_meal_vouchers_onboarding_retrieve_params"
217+
require "stripe/params/fr_meal_vouchers_onboarding_update_params"
214218
require "stripe/params/fx_quote_create_params"
215219
require "stripe/params/fx_quote_list_params"
216220
require "stripe/params/fx_quote_retrieve_params"

lib/stripe/params/coupon_create_params.rb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ def initialize(configuration: nil, id: nil)
3232
@id = id
3333
end
3434
end
35+
36+
class ServicePeriod < ::Stripe::RequestParams
37+
# Specifies coupon frequency. Either `day`, `week`, `month` or `year`.
38+
attr_accessor :interval
39+
# The number of intervals for which the coupon will be applied.
40+
attr_accessor :interval_count
41+
42+
def initialize(interval: nil, interval_count: nil)
43+
@interval = interval
44+
@interval_count = interval_count
45+
end
46+
end
3547
# A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
3648
attr_accessor :amount_off
3749
# A hash containing directions for what this Coupon will apply discounts to.
@@ -60,6 +72,8 @@ def initialize(configuration: nil, id: nil)
6072
attr_accessor :redeem_by
6173
# Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
6274
attr_accessor :script
75+
# A hash specifying the service period for the coupon.
76+
attr_accessor :service_period
6377

6478
def initialize(
6579
amount_off: nil,
@@ -75,7 +89,8 @@ def initialize(
7589
name: nil,
7690
percent_off: nil,
7791
redeem_by: nil,
78-
script: nil
92+
script: nil,
93+
service_period: nil
7994
)
8095
@amount_off = amount_off
8196
@applies_to = applies_to
@@ -91,6 +106,7 @@ def initialize(
91106
@percent_off = percent_off
92107
@redeem_by = redeem_by
93108
@script = script
109+
@service_period = service_period
94110
end
95111
end
96112
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
class FrMealVouchersOnboardingCreateParams < ::Stripe::RequestParams
6+
# Specifies which fields in the response should be expanded.
7+
attr_accessor :expand
8+
# 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`. This cannot be changed after creation of this object.
9+
attr_accessor :metadata
10+
# Name of the restaurant. This cannot be changed after creation of this object.
11+
attr_accessor :name
12+
# Postal code of the restaurant.
13+
attr_accessor :postal_code
14+
# SIRET number associated with the restaurant. This cannot be changed after creation of this object.
15+
attr_accessor :siret
16+
17+
def initialize(expand: nil, metadata: nil, name: nil, postal_code: nil, siret: nil)
18+
@expand = expand
19+
@metadata = metadata
20+
@name = name
21+
@postal_code = postal_code
22+
@siret = siret
23+
end
24+
end
25+
end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
class FrMealVouchersOnboardingListParams < ::Stripe::RequestParams
6+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
7+
attr_accessor :ending_before
8+
# Specifies which fields in the response should be expanded.
9+
attr_accessor :expand
10+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
11+
attr_accessor :limit
12+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
13+
attr_accessor :starting_after
14+
15+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
16+
@ending_before = ending_before
17+
@expand = expand
18+
@limit = limit
19+
@starting_after = starting_after
20+
end
21+
end
22+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
class FrMealVouchersOnboardingRetrieveParams < ::Stripe::RequestParams
6+
# Specifies which fields in the response should be expanded.
7+
attr_accessor :expand
8+
9+
def initialize(expand: nil)
10+
@expand = expand
11+
end
12+
end
13+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
class FrMealVouchersOnboardingUpdateParams < ::Stripe::RequestParams
6+
# Specifies which fields in the response should be expanded.
7+
attr_accessor :expand
8+
# Corrected Postal code of the restaurant.
9+
attr_accessor :postal_code
10+
11+
def initialize(expand: nil, postal_code: nil)
12+
@expand = expand
13+
@postal_code = postal_code
14+
end
15+
end
16+
end

0 commit comments

Comments
 (0)