Class: Stripe::TestHelpers::Terminal::ReaderService::PresentPaymentMethodParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Terminal::ReaderService::PresentPaymentMethodParams
- Defined in:
- lib/stripe/services/test_helpers/terminal/reader_service.rb
Defined Under Namespace
Classes: CardPresent, InteracPresent
Instance Attribute Summary collapse
-
#amount_tip ⇒ Object
Simulated on-reader tip amount.
-
#card_present ⇒ Object
Simulated data for the card_present payment method.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#interac_present ⇒ Object
Simulated data for the interac_present payment method.
-
#type ⇒ Object
Simulated payment type.
Instance Method Summary collapse
-
#initialize(amount_tip: nil, card_present: nil, expand: nil, interac_present: nil, type: nil) ⇒ PresentPaymentMethodParams
constructor
A new instance of PresentPaymentMethodParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount_tip: nil, card_present: nil, expand: nil, interac_present: nil, type: nil) ⇒ PresentPaymentMethodParams
Returns a new instance of PresentPaymentMethodParams.
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 37 def initialize( amount_tip: nil, card_present: nil, expand: nil, interac_present: nil, type: nil ) @amount_tip = amount_tip @card_present = card_present @expand = @interac_present = interac_present @type = type end |
Instance Attribute Details
#amount_tip ⇒ Object
Simulated on-reader tip amount.
27 28 29 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 27 def amount_tip @amount_tip end |
#card_present ⇒ Object
Simulated data for the card_present payment method.
29 30 31 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 29 def card_present @card_present end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
31 32 33 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 31 def @expand end |
#interac_present ⇒ Object
Simulated data for the interac_present payment method.
33 34 35 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 33 def interac_present @interac_present end |
#type ⇒ Object
Simulated payment type.
35 36 37 |
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 35 def type @type end |