Class: Stripe::Terminal::ReaderPresentPaymentMethodParams

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



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

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.



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

def amount_tip
  @amount_tip
end

#cardObject

Simulated data for the card payment method.



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

def card
  @card
end

#card_presentObject

Simulated data for the card_present payment method.



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

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



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

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



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

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



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

def type
  @type
end