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.



725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
# File 'lib/stripe/resources/terminal/reader.rb', line 725

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.



713
714
715
# File 'lib/stripe/resources/terminal/reader.rb', line 713

def amount_tip
  @amount_tip
end

#cardObject

Simulated data for the card payment method.



715
716
717
# File 'lib/stripe/resources/terminal/reader.rb', line 715

def card
  @card
end

#card_presentObject

Simulated data for the card_present payment method.



717
718
719
# File 'lib/stripe/resources/terminal/reader.rb', line 717

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



719
720
721
# File 'lib/stripe/resources/terminal/reader.rb', line 719

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



721
722
723
# File 'lib/stripe/resources/terminal/reader.rb', line 721

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



723
724
725
# File 'lib/stripe/resources/terminal/reader.rb', line 723

def type
  @type
end