Class: Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams::GiftCard

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/terminal/reader_present_payment_method_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(brand: nil, track_2: nil) ⇒ GiftCard

Returns a new instance of GiftCard.



41
42
43
44
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 41

def initialize(brand: nil, track_2: nil)
  @brand = brand
  @track_2 = track_2
end

Instance Attribute Details

#brandObject

The brand of the gift card.



37
38
39
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 37

def brand
  @brand
end

#track_2Object

Simulated track 2 data for the gift card payment method.



39
40
41
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 39

def track_2
  @track_2
end