class Beaver::LegalEntityResp

LegalEntityResp Model.

Attributes

additional_representatives[RW]

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

address[RW]

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

api_version[RW]

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

controller[RW]

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

country[RW]

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

create_time[RW]

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

custom_data[RW]

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

description[RW]

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

entity_country_info[RW]

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

entity_name[RW]

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

id[RW]

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

owner[RW]

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

path[RW]

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

phone[RW]

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

primary_url[RW]

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

reference_id[RW]

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

resource[RW]

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

terms_of_service[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  create_time = hash['create_time']
  id = hash['id']
  owner = OwnerApplications.from_hash(hash['owner']) if hash['owner']
  path = hash['path']
  resource = hash['resource']
  api_version = hash['api_version']
  if hash['additional_representatives']
    additional_representatives = AdditionalRepresentativesResp.from_hash(hash['additional_representatives'])
  end
  address = AddressLegalEntitiesNullable.from_hash(hash['address']) if
    hash['address']
  controller = ControllerResp.from_hash(hash['controller']) if
    hash['controller']
  country = hash['country']
  custom_data = hash['custom_data']
  description = hash['description']
  if hash['entity_country_info']
    entity_country_info = EntityCountryInfo.from_hash(hash['entity_country_info'])
  end
  entity_name = hash['entity_name']
  phone = PhoneLegalEntitiesNullable.from_hash(hash['phone']) if
    hash['phone']
  primary_url = hash['primary_url']
  terms_of_service = TermsOfService.from_hash(hash['terms_of_service']) if
    hash['terms_of_service']
  reference_id = hash['reference_id']

  # Create object from extracted values.
  LegalEntityResp.new(create_time,
                      id,
                      owner,
                      path,
                      resource,
                      api_version,
                      additional_representatives,
                      address,
                      controller,
                      country,
                      custom_data,
                      description,
                      entity_country_info,
                      entity_name,
                      phone,
                      primary_url,
                      terms_of_service,
                      reference_id)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/legal_entity_resp.rb, line 82
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['additional_representatives'] = 'additional_representatives'
  @_hash['address'] = 'address'
  @_hash['controller'] = 'controller'
  @_hash['country'] = 'country'
  @_hash['create_time'] = 'create_time'
  @_hash['custom_data'] = 'custom_data'
  @_hash['description'] = 'description'
  @_hash['entity_country_info'] = 'entity_country_info'
  @_hash['entity_name'] = 'entity_name'
  @_hash['id'] = 'id'
  @_hash['owner'] = 'owner'
  @_hash['path'] = 'path'
  @_hash['phone'] = 'phone'
  @_hash['primary_url'] = 'primary_url'
  @_hash['resource'] = 'resource'
  @_hash['terms_of_service'] = 'terms_of_service'
  @_hash['api_version'] = 'api_version'
  @_hash['reference_id'] = 'reference_id'
  @_hash
end
new(create_time = nil, id = nil, owner = nil, path = nil, resource = nil, api_version = nil, additional_representatives = nil, address = nil, controller = nil, country = nil, custom_data = nil, description = nil, entity_country_info = nil, entity_name = nil, phone = nil, primary_url = nil, terms_of_service = nil, reference_id = nil) click to toggle source
# File lib/beaver/models/legal_entity_resp.rb, line 105
def initialize(create_time = nil,
               id = nil,
               owner = nil,
               path = nil,
               resource = nil,
               api_version = nil,
               additional_representatives = nil,
               address = nil,
               controller = nil,
               country = nil,
               custom_data = nil,
               description = nil,
               entity_country_info = nil,
               entity_name = nil,
               phone = nil,
               primary_url = nil,
               terms_of_service = nil,
               reference_id = nil)
  @additional_representatives = additional_representatives
  @address = address
  @controller = controller
  @country = country
  @create_time = create_time
  @custom_data = custom_data
  @description = description
  @entity_country_info = entity_country_info
  @entity_name = entity_name
  @id = id
  @owner = owner
  @path = path
  @phone = phone
  @primary_url = primary_url
  @resource = resource
  @terms_of_service = terms_of_service
  @api_version = api_version
  @reference_id = reference_id
end