Class: Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::GiftCard

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



148
149
150
# File 'lib/stripe/params/test_helpers/confirmation_token_create_params.rb', line 148

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

Instance Attribute Details

#gift_cardObject

The gift card ID to redeem



146
147
148
# File 'lib/stripe/params/test_helpers/confirmation_token_create_params.rb', line 146

def gift_card
  @gift_card
end