Class: ShellDataReportingApIs::EIDDownloadReq

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_data_reporting_ap_is/models/eid_download_req.rb

Overview

EIDDownloadReq Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(col_co_code = nil, eid_list = nil, account_group_country = nil, account_group_id_list = nil) ⇒ EIDDownloadReq

Returns a new instance of EIDDownloadReq.



57
58
59
60
61
62
63
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 57

def initialize(col_co_code = nil, eid_list = nil,
                = nil,  = nil)
  @col_co_code = col_co_code
  @eid_list = eid_list
  @account_group_country = 
  @account_group_id_list = 
end

Instance Attribute Details

#account_group_countryInteger

ColCo code associated with the Account Group IDs of the given EID/EDI files. Mandatory

Returns:

  • (Integer)


26
27
28
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 26

def 
  @account_group_country
end

#account_group_id_listArray[String]

ColCo code associated with the Account Group IDs of the given EID/EDI files. Mandatory

Returns:

  • (Array[String])


32
33
34
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 32

def 
  @account_group_id_list
end

#col_co_codeInteger

Collecting Company Code of the selected payer. Mandatory

Returns:

  • (Integer)


15
16
17
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 15

def col_co_code
  @col_co_code
end

#eid_listArray[String]

Collecting Company Code of the selected payer. Mandatory

Returns:

  • (Array[String])


20
21
22
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 20

def eid_list
  @eid_list
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 66

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : nil
  eid_list = hash.key?('EIDList') ? hash['EIDList'] : nil
   =
    hash.key?('AccountGroupCountry') ? hash['AccountGroupCountry'] : nil
   =
    hash.key?('AccountGroupIdList') ? hash['AccountGroupIdList'] : nil

  # Create object from extracted values.
  EIDDownloadReq.new(col_co_code,
                     eid_list,
                     ,
                     )
end

.namesObject

A mapping from model property names to API property names.



35
36
37
38
39
40
41
42
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 35

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['col_co_code'] = 'ColCoCode'
  @_hash['eid_list'] = 'EIDList'
  @_hash['account_group_country'] = 'AccountGroupCountry'
  @_hash['account_group_id_list'] = 'AccountGroupIdList'
  @_hash
end

.nullablesObject

An array for nullable fields



50
51
52
53
54
55
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 50

def self.nullables
  %w[
    col_co_code
    account_group_country
  ]
end

.optionalsObject

An array for optional fields



45
46
47
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 45

def self.optionals
  []
end