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.



2387
2388
2389
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2387

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

Instance Attribute Details

#gift_cardObject

The gift card ID to redeem



2385
2386
2387
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2385

def gift_card
  @gift_card
end