Class: Stripe::BillingPortal::SessionService::CreateParams::FlowData::SubscriptionUpdateConfirm::Discount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::SessionService::CreateParams::FlowData::SubscriptionUpdateConfirm::Discount
- Defined in:
- lib/stripe/services/billing_portal/session_service.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
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
#coupon ⇒ Object
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_code ⇒ Object
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 |