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

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



818
819
820
821
822
823
824
825
826
827
828
829
830
# File 'lib/stripe/resources/terminal/reader.rb', line 818

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.



804
805
806
# File 'lib/stripe/resources/terminal/reader.rb', line 804

def amount_tip
  @amount_tip
end

#card_presentObject

Simulated data for the card_present payment method.



807
808
809
# File 'lib/stripe/resources/terminal/reader.rb', line 807

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



810
811
812
# File 'lib/stripe/resources/terminal/reader.rb', line 810

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



813
814
815
# File 'lib/stripe/resources/terminal/reader.rb', line 813

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



816
817
818
# File 'lib/stripe/resources/terminal/reader.rb', line 816

def type
  @type
end