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.



713
714
715
716
717
718
719
720
721
722
723
724
725
# File 'lib/stripe/resources/terminal/reader.rb', line 713

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.



703
704
705
# File 'lib/stripe/resources/terminal/reader.rb', line 703

def amount_tip
  @amount_tip
end

#card_presentObject

Simulated data for the card_present payment method.



705
706
707
# File 'lib/stripe/resources/terminal/reader.rb', line 705

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



707
708
709
# File 'lib/stripe/resources/terminal/reader.rb', line 707

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



709
710
711
# File 'lib/stripe/resources/terminal/reader.rb', line 709

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



711
712
713
# File 'lib/stripe/resources/terminal/reader.rb', line 711

def type
  @type
end