mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
Update generated code for v2020 and 2025-09-30.preview
This commit is contained in:
parent
749436c82e
commit
dff7dabb73
@ -1 +1 @@
|
||||
v2019
|
||||
v2020
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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) }
|
||||
|
@ -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) }
|
||||
|
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user