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

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

Defined Under Namespace

Classes: Card, CardPresent, InteracPresent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount_tip: nil, card: nil, card_present: nil, expand: nil, interac_present: nil, type: nil) ⇒ ReaderPresentPaymentMethodParams

Returns a new instance of ReaderPresentPaymentMethodParams.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 56

def initialize(
  amount_tip: nil,
  card: nil,
  card_present: nil,
  expand: nil,
  interac_present: nil,
  type: nil
)
  @amount_tip = amount_tip
  @card = card
  @card_present = card_present
  @expand = expand
  @interac_present = interac_present
  @type = type
end

Instance Attribute Details

#amount_tipObject

Simulated on-reader tip amount.



44
45
46
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 44

def amount_tip
  @amount_tip
end

#cardObject

Simulated data for the card payment method.



46
47
48
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 46

def card
  @card
end

#card_presentObject

Simulated data for the card_present payment method.



48
49
50
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 48

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



50
51
52
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 50

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



52
53
54
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 52

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



54
55
56
# File 'lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb', line 54

def type
  @type
end