Class: Stripe::Terminal::Reader::PresentPaymentMethodParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/terminal/reader.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) ⇒ PresentPaymentMethodParams

Returns a new instance of PresentPaymentMethodParams.



966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
# File 'lib/stripe/resources/terminal/reader.rb', line 966

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.



954
955
956
# File 'lib/stripe/resources/terminal/reader.rb', line 954

def amount_tip
  @amount_tip
end

#cardObject

Simulated data for the card payment method.



956
957
958
# File 'lib/stripe/resources/terminal/reader.rb', line 956

def card
  @card
end

#card_presentObject

Simulated data for the card_present payment method.



958
959
960
# File 'lib/stripe/resources/terminal/reader.rb', line 958

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



960
961
962
# File 'lib/stripe/resources/terminal/reader.rb', line 960

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



962
963
964
# File 'lib/stripe/resources/terminal/reader.rb', line 962

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



964
965
966
# File 'lib/stripe/resources/terminal/reader.rb', line 964

def type
  @type
end