Class: Stripe::Product::CreateParams::Provisioning::GiftCard

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/product.rb

Defined Under Namespace

Classes: FixedAmount

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(fixed_amount: nil, type: nil) ⇒ GiftCard

Returns a new instance of GiftCard.



407
408
409
410
# File 'lib/stripe/resources/product.rb', line 407

def initialize(fixed_amount: nil, type: nil)
  @fixed_amount = fixed_amount
  @type = type
end

Instance Attribute Details

#fixed_amountObject

Attribute for param field fixed_amount



403
404
405
# File 'lib/stripe/resources/product.rb', line 403

def fixed_amount
  @fixed_amount
end

#typeObject

The specific type of gift_card provisioning, only ‘fixed_amount` currently supported.



405
406
407
# File 'lib/stripe/resources/product.rb', line 405

def type
  @type
end