Class: Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionCancel::Retention::CouponOffer

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/billing_portal/session_create_params.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.



46
47
48
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 46

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

Instance Attribute Details

#couponObject

The ID of the coupon to be offered.



44
45
46
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 44

def coupon
  @coupon
end