Class: Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Discount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing_portal/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(coupon: nil, promotion_code: nil) ⇒ Discount

Returns a new instance of Discount.



185
186
187
188
# File 'lib/stripe/resources/billing_portal/session.rb', line 185

def initialize(coupon: nil, promotion_code: nil)
  @coupon = coupon
  @promotion_code = promotion_code
end

Instance Attribute Details

#couponObject

The ID of the coupon to apply to this subscription update.



181
182
183
# File 'lib/stripe/resources/billing_portal/session.rb', line 181

def coupon
  @coupon
end

#promotion_codeObject

The ID of a promotion code to apply to this subscription update.



183
184
185
# File 'lib/stripe/resources/billing_portal/session.rb', line 183

def promotion_code
  @promotion_code
end