Class: Stripe::Checkout::SessionCreateParams::Discount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/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



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

#couponObject

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_codeObject

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