Class: ShellDataReportingApIs::EIDDownloadReq
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellDataReportingApIs::EIDDownloadReq
- Defined in:
- lib/shell_data_reporting_ap_is/models/eid_download_req.rb
Overview
EIDDownloadReq Model.
Instance Attribute Summary collapse
-
#account_group_country ⇒ Integer
ColCo code associated with the Account Group IDs of the given EID/EDI files.
-
#account_group_id_list ⇒ Array[String]
ColCo code associated with the Account Group IDs of the given EID/EDI files.
-
#col_co_code ⇒ Integer
Collecting Company Code of the selected payer.
-
#eid_list ⇒ Array[String]
Collecting Company Code of the selected payer.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(col_co_code = nil, eid_list = nil, account_group_country = nil, account_group_id_list = nil) ⇒ EIDDownloadReq
constructor
A new instance of EIDDownloadReq.
Methods inherited from BaseModel
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, account_group_country = nil, account_group_id_list = nil) @col_co_code = col_co_code @eid_list = eid_list @account_group_country = account_group_country @account_group_id_list = account_group_id_list end |
Instance Attribute Details
#account_group_country ⇒ Integer
ColCo code associated with the Account Group IDs of the given EID/EDI files. Mandatory
26 27 28 |
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 26 def account_group_country @account_group_country end |
#account_group_id_list ⇒ Array[String]
ColCo code associated with the Account Group IDs of the given EID/EDI files. Mandatory
32 33 34 |
# File 'lib/shell_data_reporting_ap_is/models/eid_download_req.rb', line 32 def account_group_id_list @account_group_id_list end |
#col_co_code ⇒ Integer
Collecting Company Code of the selected payer. Mandatory
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_list ⇒ Array[String]
Collecting Company Code of the selected payer. Mandatory
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 account_group_country = hash.key?('AccountGroupCountry') ? hash['AccountGroupCountry'] : nil account_group_id_list = hash.key?('AccountGroupIdList') ? hash['AccountGroupIdList'] : nil # Create object from extracted values. EIDDownloadReq.new(col_co_code, eid_list, account_group_country, account_group_id_list) end |
.names ⇒ Object
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 |
.nullables ⇒ Object
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 |
.optionals ⇒ Object
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 |