class Beaver::AdditionalRepresentativeReq

AdditionalRepresentativeReq Model.

Attributes

address[RW]

TODO: Write general description for this method @return [AddressLegalEntitiesNullable]

date_of_birth[RW]

TODO: Write general description for this method @return [DateOfBirth]

email[RW]

TODO: Write general description for this method @return [String]

email_is_verified[RW]

TODO: Write general description for this method @return [Boolean]

is_auxiliary_controller[RW]

TODO: Write general description for this method @return [Boolean]

is_beneficial_owner[RW]

TODO: Write general description for this method @return [Boolean]

job_title[RW]

TODO: Write general description for this method @return [String]

name[RW]

TODO: Write general description for this method @return [HumanNameFullNullable]

personal_country_info[RW]

TODO: Write general description for this method @return [PersonalCountryInfo]

phone[RW]

TODO: Write general description for this method @return [PhoneLegalEntitiesNullable]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  is_auxiliary_controller = hash['is_auxiliary_controller']
  is_beneficial_owner = hash['is_beneficial_owner']
  address = AddressLegalEntitiesNullable.from_hash(hash['address']) if
    hash['address']
  date_of_birth = DateOfBirth.from_hash(hash['date_of_birth']) if
    hash['date_of_birth']
  email = hash['email']
  email_is_verified = hash['email_is_verified']
  name = HumanNameFullNullable.from_hash(hash['name']) if hash['name']
  if hash['personal_country_info']
    personal_country_info = PersonalCountryInfo.from_hash(hash['personal_country_info'])
  end
  phone = PhoneLegalEntitiesNullable.from_hash(hash['phone']) if
    hash['phone']
  job_title = hash['job_title']

  # Create object from extracted values.
  AdditionalRepresentativeReq.new(is_auxiliary_controller,
                                  is_beneficial_owner,
                                  address,
                                  date_of_birth,
                                  email,
                                  email_is_verified,
                                  name,
                                  personal_country_info,
                                  phone,
                                  job_title)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/additional_representative_req.rb, line 50
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['is_auxiliary_controller'] = 'is_auxiliary_controller'
  @_hash['is_beneficial_owner'] = 'is_beneficial_owner'
  @_hash['address'] = 'address'
  @_hash['date_of_birth'] = 'date_of_birth'
  @_hash['email'] = 'email'
  @_hash['email_is_verified'] = 'email_is_verified'
  @_hash['name'] = 'name'
  @_hash['personal_country_info'] = 'personal_country_info'
  @_hash['phone'] = 'phone'
  @_hash['job_title'] = 'job_title'
  @_hash
end
new(is_auxiliary_controller = nil, is_beneficial_owner = nil, address = nil, date_of_birth = nil, email = nil, email_is_verified = nil, name = nil, personal_country_info = nil, phone = nil, job_title = nil) click to toggle source
# File lib/beaver/models/additional_representative_req.rb, line 65
def initialize(is_auxiliary_controller = nil,
               is_beneficial_owner = nil,
               address = nil,
               date_of_birth = nil,
               email = nil,
               email_is_verified = nil,
               name = nil,
               personal_country_info = nil,
               phone = nil,
               job_title = nil)
  @is_auxiliary_controller = is_auxiliary_controller
  @is_beneficial_owner = is_beneficial_owner
  @address = address
  @date_of_birth = date_of_birth
  @email = email
  @email_is_verified = email_is_verified
  @name = name
  @personal_country_info = personal_country_info
  @phone = phone
  @job_title = job_title
end