Class: Stripe::ProductService::CreateParams::Provisioning::GiftCard

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/product_service.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.



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_amountObject

Attribute for param field fixed_amount



362
363
364
# File 'lib/stripe/services/product_service.rb', line 362

def fixed_amount
  @fixed_amount
end

#typeObject

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