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.



412
413
414
415
# File 'lib/stripe/resources/product.rb', line 412

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



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

def fixed_amount
  @fixed_amount
end

#typeObject

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



410
411
412
# File 'lib/stripe/resources/product.rb', line 410

def type
  @type
end