class Beaver::TerminalsRequest1

TerminalsRequest1 Model.

Attributes

reference_id[RW]

A reference ID that can be used to identify the terminals resource in WePay's system. Searching capabilities are supported on this field. @return [String]

terminal_configuration[RW]

A reference ID that can be used to identify the terminals resource in WePay's system. Searching capabilities are supported on this field. @return [TerminalConfiguration2]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/terminals_request1.rb, line 34
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  reference_id = hash['reference_id']
  if hash['terminal_configuration']
    terminal_configuration = TerminalConfiguration2.from_hash(hash['terminal_configuration'])
  end

  # Create object from extracted values.
  TerminalsRequest1.new(reference_id,
                        terminal_configuration)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/terminals_request1.rb, line 20
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['reference_id'] = 'reference_id'
  @_hash['terminal_configuration'] = 'terminal_configuration'
  @_hash
end
new(reference_id = nil, terminal_configuration = nil) click to toggle source
# File lib/beaver/models/terminals_request1.rb, line 27
def initialize(reference_id = nil,
               terminal_configuration = nil)
  @reference_id = reference_id
  @terminal_configuration = terminal_configuration
end