Class: Stripe::TestHelpers::Terminal::ReaderService::PresentPaymentMethodParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/test_helpers/terminal/reader_service.rb

Defined Under Namespace

Classes: CardPresent, InteracPresent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @interac_present = interac_present
  @type = type
end

Instance Attribute Details

#amount_tipObject

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_presentObject

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

#expandObject

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
  @expand
end

#interac_presentObject

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

#typeObject

Simulated payment type.



35
36
37
# File 'lib/stripe/services/test_helpers/terminal/reader_service.rb', line 35

def type
  @type
end