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

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



49
50
51
# File 'lib/stripe/services/billing_portal/session_service.rb', line 49

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

Instance Attribute Details

#couponObject

The ID of the coupon to be offered.



47
48
49
# File 'lib/stripe/services/billing_portal/session_service.rb', line 47

def coupon
  @coupon
end