Update generated code for v2020 and 2025-09-30.preview

This commit is contained in:
Stripe OpenAPI 2025-09-23 18:22:23 +00:00
parent 749436c82e
commit dff7dabb73
6 changed files with 16 additions and 16 deletions

View File

@ -1 +1 @@
v2019
v2020

View File

@ -18,7 +18,7 @@ module Stripe
end
class Promotion < Stripe::StripeObject
# If promotion type is 'coupon', the coupon for this promotion.
# If promotion `type` is `coupon`, the coupon for this promotion.
attr_reader :coupon
# The type of promotion.
attr_reader :type
@ -105,9 +105,9 @@ module Stripe
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
attr_accessor :coupon
# Specifies the type of promotion code.
# Specifies the type of promotion.
attr_accessor :type
def initialize(coupon: nil, type: nil)

View File

@ -69,9 +69,9 @@ module Stripe
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
attr_accessor :coupon
# Specifies the type of promotion code.
# Specifies the type of promotion.
attr_accessor :type
def initialize(coupon: nil, type: nil)

View File

@ -100812,7 +100812,7 @@ module Stripe
# Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal.
class PromotionCode < APIResource
class Promotion < Stripe::StripeObject
# If promotion type is 'coupon', the coupon for this promotion.
# If promotion `type` is `coupon`, the coupon for this promotion.
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
def coupon; end
# The type of promotion.
@ -100977,12 +100977,12 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
sig { returns(T.nilable(String)) }
def coupon; end
sig { params(_coupon: T.nilable(String)).returns(T.nilable(String)) }
def coupon=(_coupon); end
# Specifies the type of promotion code.
# Specifies the type of promotion.
sig { returns(String) }
def type; end
sig { params(_type: String).returns(String) }
@ -225757,12 +225757,12 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
sig { returns(T.nilable(String)) }
def coupon; end
sig { params(_coupon: T.nilable(String)).returns(T.nilable(String)) }
def coupon=(_coupon); end
# Specifies the type of promotion code.
# Specifies the type of promotion.
sig { returns(String) }
def type; end
sig { params(_type: String).returns(String) }

View File

@ -10,7 +10,7 @@ module Stripe
# Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal.
class PromotionCode < APIResource
class Promotion < Stripe::StripeObject
# If promotion type is 'coupon', the coupon for this promotion.
# If promotion `type` is `coupon`, the coupon for this promotion.
sig { returns(T.nilable(T.any(String, Stripe::Coupon))) }
def coupon; end
# The type of promotion.
@ -175,12 +175,12 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
sig { returns(T.nilable(String)) }
def coupon; end
sig { params(_coupon: T.nilable(String)).returns(T.nilable(String)) }
def coupon=(_coupon); end
# Specifies the type of promotion code.
# Specifies the type of promotion.
sig { returns(String) }
def type; end
sig { params(_type: String).returns(String) }

View File

@ -103,12 +103,12 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class Promotion < Stripe::RequestParams
# If the promotion type is 'coupon', the coupon for this promotion code.
# If promotion `type` is `coupon`, the coupon for this promotion code.
sig { returns(T.nilable(String)) }
def coupon; end
sig { params(_coupon: T.nilable(String)).returns(T.nilable(String)) }
def coupon=(_coupon); end
# Specifies the type of promotion code.
# Specifies the type of promotion.
sig { returns(String) }
def type; end
sig { params(_type: String).returns(String) }