Class: Stripe::Terminal::ReaderPresentPaymentMethodParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/terminal/reader_present_payment_method_params.rb

Defined Under Namespace

Classes: Card, CardPresent, GiftCard, InteracPresent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(amount_tip: nil, card: nil, card_present: nil, expand: nil, gift_card: nil, interac_present: nil, type: nil) ⇒ ReaderPresentPaymentMethodParams

Returns a new instance of ReaderPresentPaymentMethodParams.



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 69

def initialize(
  amount_tip: nil,
  card: nil,
  card_present: nil,
  expand: nil,
  gift_card: nil,
  interac_present: nil,
  type: nil
)
  @amount_tip = amount_tip
  @card = card
  @card_present = card_present
  @expand = expand
  @gift_card = gift_card
  @interac_present = interac_present
  @type = type
end

Instance Attribute Details

#amount_tipObject

Simulated on-reader tip amount.



55
56
57
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 55

def amount_tip
  @amount_tip
end

#cardObject

Simulated data for the card payment method.



57
58
59
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 57

def card
  @card
end

#card_presentObject

Simulated data for the card_present payment method.



59
60
61
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 59

def card_present
  @card_present
end

#expandObject

Specifies which fields in the response should be expanded.



61
62
63
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 61

def expand
  @expand
end

#gift_cardObject

Simulated data for the gift_card payment method.



63
64
65
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 63

def gift_card
  @gift_card
end

#interac_presentObject

Simulated data for the interac_present payment method.



65
66
67
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 65

def interac_present
  @interac_present
end

#typeObject

Simulated payment type.



67
68
69
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 67

def type
  @type
end