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.



701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'lib/stripe/resources/terminal/reader.rb', line 701

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.



691
692
693
# File 'lib/stripe/resources/terminal/reader.rb', line 691

def amount_tip
  @amount_tip
end

#card_presentObject

Simulated data for the card_present payment method.



693
694
695
# File 'lib/stripe/resources/terminal/reader.rb', line 693

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



695
696
697
# File 'lib/stripe/resources/terminal/reader.rb', line 695

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



697
698
699
# File 'lib/stripe/resources/terminal/reader.rb', line 697

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



699
700
701
# File 'lib/stripe/resources/terminal/reader.rb', line 699

def type
  @type
end