Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::LodgingDatum::Total::Discounts
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCaptureParams::PaymentDetails::LodgingDatum::Total::Discounts
- Defined in:
- lib/stripe/params/payment_intent_capture_params.rb
Instance Attribute Summary collapse
-
#corporate_client_code ⇒ Object
Corporate client discount code.
-
#coupon ⇒ Object
Coupon code.
Instance Method Summary collapse
-
#initialize(corporate_client_code: nil, coupon: nil) ⇒ Discounts
constructor
A new instance of Discounts.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(corporate_client_code: nil, coupon: nil) ⇒ Discounts
Returns a new instance of Discounts.
1746 1747 1748 1749 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1746 def initialize(corporate_client_code: nil, coupon: nil) @corporate_client_code = corporate_client_code @coupon = coupon end |
Instance Attribute Details
#corporate_client_code ⇒ Object
Corporate client discount code.
1742 1743 1744 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1742 def corporate_client_code @corporate_client_code end |
#coupon ⇒ Object
Coupon code.
1744 1745 1746 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1744 def coupon @coupon end |