Class: Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams::GiftCard
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams::GiftCard
- Defined in:
- lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb
Instance Attribute Summary collapse
-
#brand ⇒ Object
The brand of the gift card.
-
#track_2 ⇒ Object
Simulated track 2 data for the gift card payment method.
Instance Method Summary collapse
-
#initialize(brand: nil, track_2: nil) ⇒ GiftCard
constructor
A new instance of GiftCard.
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
#brand ⇒ Object
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_2 ⇒ Object
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 |