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.



406
407
408
409
410
411
412
413
414
415
416
417
418
# File 'lib/stripe/resources/terminal/reader.rb', line 406

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.



396
397
398
# File 'lib/stripe/resources/terminal/reader.rb', line 396

def amount_tip
  @amount_tip
end

#card_presentObject

Simulated data for the card_present payment method.



398
399
400
# File 'lib/stripe/resources/terminal/reader.rb', line 398

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



400
401
402
# File 'lib/stripe/resources/terminal/reader.rb', line 400

def expand
  @expand
end

#interac_presentObject

Simulated data for the interac_present payment method.



402
403
404
# File 'lib/stripe/resources/terminal/reader.rb', line 402

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



404
405
406
# File 'lib/stripe/resources/terminal/reader.rb', line 404

def type
  @type
end