Class: Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionUpdateConfirm::Discount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionUpdateConfirm::Discount
- Defined in:
- lib/stripe/params/billing_portal/session_create_params.rb
Instance Attribute Summary collapse
-
#coupon ⇒ Object
The ID of the coupon to apply to this subscription update.
-
#promotion_code ⇒ Object
The ID of a promotion code to apply to this subscription update.
Instance Method Summary collapse
-
#initialize(coupon: nil, promotion_code: nil) ⇒ Discount
constructor
A new instance of Discount.
Methods inherited from RequestParams
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
#coupon ⇒ Object
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_code ⇒ Object
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 |