Class: Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionUpdateConfirm::Discount

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



87
88
89
90
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 87

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.



83
84
85
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 83

def coupon
  @coupon
end

#promotion_codeObject

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



85
86
87
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 85

def promotion_code
  @promotion_code
end