Class: Stripe::Checkout::SessionCreateParams::Discount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::Discount
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#coupon ⇒ Object
The ID of the coupon to apply to this Session.
-
#promotion_code ⇒ Object
The ID of a promotion code to apply to this Session.
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
334 335 336 337 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 334 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 Session.
330 331 332 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 330 def coupon @coupon end |
#promotion_code ⇒ Object
The ID of a promotion code to apply to this Session.
332 333 334 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 332 def promotion_code @promotion_code end |