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

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, promotion_code: nil) ⇒ Discount

Returns a new instance of Discount.



88
89
90
91
# File 'lib/stripe/services/billing_portal/session_service.rb', line 88

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.



84
85
86
# File 'lib/stripe/services/billing_portal/session_service.rb', line 84

def coupon
  @coupon
end

#promotion_codeObject

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



86
87
88
# File 'lib/stripe/services/billing_portal/session_service.rb', line 86

def promotion_code
  @promotion_code
end