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

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



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

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

Instance Attribute Details

#brandObject

The brand of the gift card.



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

def brand
  @brand
end

#track_2Object

Simulated track 2 data for the gift card payment method.



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

def track_2
  @track_2
end