Class: Stripe::PaymentMethodCreateParams::GiftCard

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_method_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(gift_card: nil) ⇒ GiftCard

Returns a new instance of GiftCard.



195
196
197
# File 'lib/stripe/params/payment_method_create_params.rb', line 195

def initialize(gift_card: nil)
  @gift_card = gift_card
end

Instance Attribute Details

#gift_cardObject

The gift card ID to redeem



193
194
195
# File 'lib/stripe/params/payment_method_create_params.rb', line 193

def gift_card
  @gift_card
end