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

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

Defined Under Namespace

Classes: CouponOffer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(coupon_offer: nil, type: nil) ⇒ Retention

Returns a new instance of Retention.



169
170
171
172
# File 'lib/stripe/resources/billing_portal/session.rb', line 169

def initialize(coupon_offer: nil, type: nil)
  @coupon_offer = coupon_offer
  @type = type
end

Instance Attribute Details

#coupon_offerObject

Configuration when ‘retention.type=coupon_offer`.



164
165
166
# File 'lib/stripe/resources/billing_portal/session.rb', line 164

def coupon_offer
  @coupon_offer
end

#typeObject

Type of retention strategy to use with the customer.



167
168
169
# File 'lib/stripe/resources/billing_portal/session.rb', line 167

def type
  @type
end