Class: Stripe::ProductService::CreateParams::Provisioning::GiftCard
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductService::CreateParams::Provisioning::GiftCard
- Defined in:
- lib/stripe/services/product_service.rb
Defined Under Namespace
Classes: FixedAmount
Instance Attribute Summary collapse
-
#fixed_amount ⇒ Object
Attribute for param field fixed_amount.
-
#type ⇒ Object
The specific type of gift_card provisioning, only ‘fixed_amount` currently supported.
Instance Method Summary collapse
-
#initialize(fixed_amount: nil, type: nil) ⇒ GiftCard
constructor
A new instance of GiftCard.
Methods inherited from RequestParams
Constructor Details
#initialize(fixed_amount: nil, type: nil) ⇒ GiftCard
Returns a new instance of GiftCard.
366 367 368 369 |
# File 'lib/stripe/services/product_service.rb', line 366 def initialize(fixed_amount: nil, type: nil) @fixed_amount = fixed_amount @type = type end |
Instance Attribute Details
#fixed_amount ⇒ Object
Attribute for param field fixed_amount
362 363 364 |
# File 'lib/stripe/services/product_service.rb', line 362 def fixed_amount @fixed_amount end |
#type ⇒ Object
The specific type of gift_card provisioning, only ‘fixed_amount` currently supported.
364 365 366 |
# File 'lib/stripe/services/product_service.rb', line 364 def type @type end |