Class: Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionCancel::Retention::CouponOffer

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) ⇒ CouponOffer

Returns a new instance of CouponOffer.



237
238
239
# File 'lib/stripe/resources/billing_portal/session.rb', line 237

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

Instance Attribute Details

#couponObject

The ID of the coupon to be offered.



235
236
237
# File 'lib/stripe/resources/billing_portal/session.rb', line 235

def coupon
  @coupon
end