Class: Stripe::CouponUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CouponUpdateParams
- Defined in:
- lib/stripe/params/coupon_update_params.rb
Defined Under Namespace
Classes: CurrencyOptions
Instance Attribute Summary collapse
-
#currency_options ⇒ Object
Coupons defined in each available currency option (only supported if the coupon is amount-based).
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#name ⇒ Object
Name of the coupon displayed to customers on, for instance invoices, or receipts.
Instance Method Summary collapse
-
#initialize(currency_options: nil, expand: nil, metadata: nil, name: nil) ⇒ CouponUpdateParams
constructor
A new instance of CouponUpdateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(currency_options: nil, expand: nil, metadata: nil, name: nil) ⇒ CouponUpdateParams
Returns a new instance of CouponUpdateParams.
23 24 25 26 27 28 |
# File 'lib/stripe/params/coupon_update_params.rb', line 23 def initialize(currency_options: nil, expand: nil, metadata: nil, name: nil) @currency_options = @expand = @metadata = @name = name end |
Instance Attribute Details
#currency_options ⇒ Object
Coupons defined in each available currency option (only supported if the coupon is amount-based). Each key must be a three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html) and a [supported currency](stripe.com/docs/currencies).
15 16 17 |
# File 'lib/stripe/params/coupon_update_params.rb', line 15 def @currency_options end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
17 18 19 |
# File 'lib/stripe/params/coupon_update_params.rb', line 17 def @expand end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
19 20 21 |
# File 'lib/stripe/params/coupon_update_params.rb', line 19 def @metadata end |
#name ⇒ Object
Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the ‘id` is shown if `name` is not set.
21 22 23 |
# File 'lib/stripe/params/coupon_update_params.rb', line 21 def name @name end |