Class: Stripe::Terminal::ReaderCollectInputsParams::Input

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

Defined Under Namespace

Classes: CustomText, Selection, Toggle

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil) ⇒ Input

Returns a new instance of Input.



74
75
76
77
78
79
80
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 74

def initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil)
  @custom_text = custom_text
  @required = required
  @selection = selection
  @toggles = toggles
  @type = type
end

Instance Attribute Details

#custom_textObject

Customize the text which will be displayed while collecting this input



64
65
66
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 64

def custom_text
  @custom_text
end

#requiredObject

Indicate that this input is required, disabling the skip button



66
67
68
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 66

def required
  @required
end

#selectionObject

Options for the ‘selection` input



68
69
70
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 68

def selection
  @selection
end

#togglesObject

List of toggles to be displayed and customization for the toggles



70
71
72
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 70

def toggles
  @toggles
end

#typeObject

The type of input to collect



72
73
74
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 72

def type
  @type
end