Class: Stripe::PaymentIntentCreateParams::PaymentMethodData::GiftCard

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



2456
2457
2458
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2456

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

Instance Attribute Details

#gift_cardObject

The gift card ID to redeem



2454
2455
2456
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2454

def gift_card
  @gift_card
end