tachain-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +226 -0
- data/Rakefile +10 -0
- data/git_push.sh +54 -0
- data/lib/tachain-sdk/api/api_declaration_api.rb +396 -0
- data/lib/tachain-sdk/api/api_delivery_api.rb +676 -0
- data/lib/tachain-sdk/api/api_enum_api.rb +94 -0
- data/lib/tachain-sdk/api/api_order_api.rb +846 -0
- data/lib/tachain-sdk/api/api_order_workflow_api.rb +170 -0
- data/lib/tachain-sdk/api/api_production_api.rb +466 -0
- data/lib/tachain-sdk/api_client.rb +397 -0
- data/lib/tachain-sdk/api_error.rb +58 -0
- data/lib/tachain-sdk/api_model_base.rb +88 -0
- data/lib/tachain-sdk/configuration.rb +329 -0
- data/lib/tachain-sdk/models/api_declaration_delete_request.rb +341 -0
- data/lib/tachain-sdk/models/api_declaration_document_request.rb +209 -0
- data/lib/tachain-sdk/models/api_declaration_list_dto.rb +251 -0
- data/lib/tachain-sdk/models/api_declaration_submit_request.rb +251 -0
- data/lib/tachain-sdk/models/api_declaration_submit_result_dto.rb +197 -0
- data/lib/tachain-sdk/models/api_integration_delete_request.rb +209 -0
- data/lib/tachain-sdk/models/api_order_confirm_receipt_request.rb +216 -0
- data/lib/tachain-sdk/models/api_order_submit_audit_request.rb +243 -0
- data/lib/tachain-sdk/models/api_response_api_declaration_list_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_api_declaration_submit_result_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_delivery_note_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_order_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_production_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_string.rb +200 -0
- data/lib/tachain-sdk/models/attachment_in_api_create_dto.rb +262 -0
- data/lib/tachain-sdk/models/attachment_in_api_dto.rb +363 -0
- data/lib/tachain-sdk/models/brand_kpi_policy_result.rb +334 -0
- data/lib/tachain-sdk/models/brand_order_kpi_snapshot_dto.rb +880 -0
- data/lib/tachain-sdk/models/brand_order_supplier_order_snapshot_dto.rb +749 -0
- data/lib/tachain-sdk/models/brand_order_uncompleted_declare_snapshot_dto.rb +513 -0
- data/lib/tachain-sdk/models/company.rb +780 -0
- data/lib/tachain-sdk/models/company_compliance_profile.rb +547 -0
- data/lib/tachain-sdk/models/company_utility_declaration.rb +592 -0
- data/lib/tachain-sdk/models/customer.rb +569 -0
- data/lib/tachain-sdk/models/delivery_note_api_dto.rb +597 -0
- data/lib/tachain-sdk/models/delivery_note_detail_api_dto.rb +682 -0
- data/lib/tachain-sdk/models/document_type_api_dto.rb +480 -0
- data/lib/tachain-sdk/models/factory.rb +545 -0
- data/lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb +201 -0
- data/lib/tachain-sdk/models/microsoft_asp_net_core_mvc_problem_details.rb +188 -0
- data/lib/tachain-sdk/models/model1.rb +157 -0
- data/lib/tachain-sdk/models/model3.rb +202 -0
- data/lib/tachain-sdk/models/model4.rb +202 -0
- data/lib/tachain-sdk/models/order.rb +974 -0
- data/lib/tachain-sdk/models/order_api_dto.rb +918 -0
- data/lib/tachain-sdk/models/order_line.rb +1184 -0
- data/lib/tachain-sdk/models/order_line_api_dto.rb +1277 -0
- data/lib/tachain-sdk/models/order_stage_form_api_dto.rb +270 -0
- data/lib/tachain-sdk/models/order_stage_form_datum_api_dto.rb +260 -0
- data/lib/tachain-sdk/models/order_stage_form_dto.rb +254 -0
- data/lib/tachain-sdk/models/paged_response_delivery_note_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/paged_response_order_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/paged_response_production_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/product_bom_grouping_dto.rb +280 -0
- data/lib/tachain-sdk/models/production_api_dto.rb +639 -0
- data/lib/tachain-sdk/models/production_raw_material_api_dto.rb +481 -0
- data/lib/tachain-sdk/models/production_raw_material_dto.rb +548 -0
- data/lib/tachain-sdk/models/production_sales_order_api_dto.rb +436 -0
- data/lib/tachain-sdk/models/result_api_enum.rb +270 -0
- data/lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb +331 -0
- data/lib/tachain-sdk/models/result_brand_report_unlinked_order_detail.rb +229 -0
- data/lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb +418 -0
- data/lib/tachain-sdk/models/result_mapping_order_select.rb +335 -0
- data/lib/tachain-sdk/models/result_order_trace_report.rb +721 -0
- data/lib/tachain-sdk/models/stage_attachment_api_dto.rb +398 -0
- data/lib/tachain-sdk/models/supplier.rb +585 -0
- data/lib/tachain-sdk/models/supplier_onboarding_ext.rb +383 -0
- data/lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb +456 -0
- data/lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb +227 -0
- data/lib/tachain-sdk/models/trader.rb +506 -0
- data/lib/tachain-sdk/signed_api_client.rb +65 -0
- data/lib/tachain-sdk/version.rb +15 -0
- data/lib/tachain-sdk.rb +108 -0
- data/spec/spec_helper.rb +111 -0
- data/tachain-sdk.gemspec +39 -0
- metadata +165 -0
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Tactic Chain Public API
|
|
3
|
+
|
|
4
|
+
#Public integration endpoints. Set your own base URL and credential before calling.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TachainSdk
|
|
17
|
+
# Company compliance extension for DPP economic-operator identity; legal data remains in company.
|
|
18
|
+
class CompanyComplianceProfile < ApiModelBase
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
attr_accessor :tenant_id
|
|
22
|
+
|
|
23
|
+
attr_accessor :company_id
|
|
24
|
+
|
|
25
|
+
attr_accessor :operator_identifier_scheme
|
|
26
|
+
|
|
27
|
+
attr_accessor :operator_identifier_value
|
|
28
|
+
|
|
29
|
+
attr_accessor :operator_identifier_scheme_name
|
|
30
|
+
|
|
31
|
+
attr_accessor :gln
|
|
32
|
+
|
|
33
|
+
attr_accessor :economic_operator_role
|
|
34
|
+
|
|
35
|
+
attr_accessor :economic_operator_roles_json
|
|
36
|
+
|
|
37
|
+
attr_accessor :eu_established
|
|
38
|
+
|
|
39
|
+
attr_accessor :authorised_representative_name
|
|
40
|
+
|
|
41
|
+
attr_accessor :authorised_representative_identifier_scheme
|
|
42
|
+
|
|
43
|
+
attr_accessor :authorised_representative_identifier_value
|
|
44
|
+
|
|
45
|
+
attr_accessor :authorised_representative_identifier_scheme_name
|
|
46
|
+
|
|
47
|
+
attr_accessor :authorised_representative_gln
|
|
48
|
+
|
|
49
|
+
attr_accessor :authorised_representative_registration_number
|
|
50
|
+
|
|
51
|
+
attr_accessor :authorised_representative_address
|
|
52
|
+
|
|
53
|
+
attr_accessor :authorised_representative_email
|
|
54
|
+
|
|
55
|
+
attr_accessor :authorised_representative_phone
|
|
56
|
+
|
|
57
|
+
attr_accessor :postal_code
|
|
58
|
+
|
|
59
|
+
attr_accessor :website
|
|
60
|
+
|
|
61
|
+
attr_accessor :row_version
|
|
62
|
+
|
|
63
|
+
attr_accessor :created_by
|
|
64
|
+
|
|
65
|
+
attr_accessor :created_at
|
|
66
|
+
|
|
67
|
+
attr_accessor :updated_by
|
|
68
|
+
|
|
69
|
+
attr_accessor :updated_at
|
|
70
|
+
|
|
71
|
+
attr_accessor :status
|
|
72
|
+
|
|
73
|
+
attr_accessor :company
|
|
74
|
+
|
|
75
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
76
|
+
def self.attribute_map
|
|
77
|
+
{
|
|
78
|
+
:'id' => :'id',
|
|
79
|
+
:'tenant_id' => :'tenantId',
|
|
80
|
+
:'company_id' => :'companyId',
|
|
81
|
+
:'operator_identifier_scheme' => :'operatorIdentifierScheme',
|
|
82
|
+
:'operator_identifier_value' => :'operatorIdentifierValue',
|
|
83
|
+
:'operator_identifier_scheme_name' => :'operatorIdentifierSchemeName',
|
|
84
|
+
:'gln' => :'gln',
|
|
85
|
+
:'economic_operator_role' => :'economicOperatorRole',
|
|
86
|
+
:'economic_operator_roles_json' => :'economicOperatorRolesJson',
|
|
87
|
+
:'eu_established' => :'euEstablished',
|
|
88
|
+
:'authorised_representative_name' => :'authorisedRepresentativeName',
|
|
89
|
+
:'authorised_representative_identifier_scheme' => :'authorisedRepresentativeIdentifierScheme',
|
|
90
|
+
:'authorised_representative_identifier_value' => :'authorisedRepresentativeIdentifierValue',
|
|
91
|
+
:'authorised_representative_identifier_scheme_name' => :'authorisedRepresentativeIdentifierSchemeName',
|
|
92
|
+
:'authorised_representative_gln' => :'authorisedRepresentativeGln',
|
|
93
|
+
:'authorised_representative_registration_number' => :'authorisedRepresentativeRegistrationNumber',
|
|
94
|
+
:'authorised_representative_address' => :'authorisedRepresentativeAddress',
|
|
95
|
+
:'authorised_representative_email' => :'authorisedRepresentativeEmail',
|
|
96
|
+
:'authorised_representative_phone' => :'authorisedRepresentativePhone',
|
|
97
|
+
:'postal_code' => :'postalCode',
|
|
98
|
+
:'website' => :'website',
|
|
99
|
+
:'row_version' => :'rowVersion',
|
|
100
|
+
:'created_by' => :'createdBy',
|
|
101
|
+
:'created_at' => :'createdAt',
|
|
102
|
+
:'updated_by' => :'updatedBy',
|
|
103
|
+
:'updated_at' => :'updatedAt',
|
|
104
|
+
:'status' => :'status',
|
|
105
|
+
:'company' => :'company'
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Returns attribute mapping this model knows about
|
|
110
|
+
def self.acceptable_attribute_map
|
|
111
|
+
attribute_map
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Returns all the JSON keys this model knows about
|
|
115
|
+
def self.acceptable_attributes
|
|
116
|
+
acceptable_attribute_map.values
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Attribute type mapping.
|
|
120
|
+
def self.openapi_types
|
|
121
|
+
{
|
|
122
|
+
:'id' => :'String',
|
|
123
|
+
:'tenant_id' => :'String',
|
|
124
|
+
:'company_id' => :'String',
|
|
125
|
+
:'operator_identifier_scheme' => :'String',
|
|
126
|
+
:'operator_identifier_value' => :'String',
|
|
127
|
+
:'operator_identifier_scheme_name' => :'String',
|
|
128
|
+
:'gln' => :'String',
|
|
129
|
+
:'economic_operator_role' => :'String',
|
|
130
|
+
:'economic_operator_roles_json' => :'String',
|
|
131
|
+
:'eu_established' => :'Integer',
|
|
132
|
+
:'authorised_representative_name' => :'String',
|
|
133
|
+
:'authorised_representative_identifier_scheme' => :'String',
|
|
134
|
+
:'authorised_representative_identifier_value' => :'String',
|
|
135
|
+
:'authorised_representative_identifier_scheme_name' => :'String',
|
|
136
|
+
:'authorised_representative_gln' => :'String',
|
|
137
|
+
:'authorised_representative_registration_number' => :'String',
|
|
138
|
+
:'authorised_representative_address' => :'String',
|
|
139
|
+
:'authorised_representative_email' => :'String',
|
|
140
|
+
:'authorised_representative_phone' => :'String',
|
|
141
|
+
:'postal_code' => :'String',
|
|
142
|
+
:'website' => :'String',
|
|
143
|
+
:'row_version' => :'Integer',
|
|
144
|
+
:'created_by' => :'String',
|
|
145
|
+
:'created_at' => :'Time',
|
|
146
|
+
:'updated_by' => :'String',
|
|
147
|
+
:'updated_at' => :'Time',
|
|
148
|
+
:'status' => :'Integer',
|
|
149
|
+
:'company' => :'Company'
|
|
150
|
+
}
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# List of attributes with nullable: true
|
|
154
|
+
def self.openapi_nullable
|
|
155
|
+
Set.new([
|
|
156
|
+
:'operator_identifier_scheme',
|
|
157
|
+
:'operator_identifier_value',
|
|
158
|
+
:'operator_identifier_scheme_name',
|
|
159
|
+
:'gln',
|
|
160
|
+
:'economic_operator_role',
|
|
161
|
+
:'economic_operator_roles_json',
|
|
162
|
+
:'eu_established',
|
|
163
|
+
:'authorised_representative_name',
|
|
164
|
+
:'authorised_representative_identifier_scheme',
|
|
165
|
+
:'authorised_representative_identifier_value',
|
|
166
|
+
:'authorised_representative_identifier_scheme_name',
|
|
167
|
+
:'authorised_representative_gln',
|
|
168
|
+
:'authorised_representative_registration_number',
|
|
169
|
+
:'authorised_representative_address',
|
|
170
|
+
:'authorised_representative_email',
|
|
171
|
+
:'authorised_representative_phone',
|
|
172
|
+
:'postal_code',
|
|
173
|
+
:'website',
|
|
174
|
+
:'updated_by',
|
|
175
|
+
:'updated_at',
|
|
176
|
+
])
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Initializes the object
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
def initialize(attributes = {})
|
|
182
|
+
if (!attributes.is_a?(Hash))
|
|
183
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TachainSdk::CompanyComplianceProfile` initialize method"
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
187
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
188
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
189
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
190
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TachainSdk::CompanyComplianceProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
191
|
+
end
|
|
192
|
+
h[k.to_sym] = v
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'id')
|
|
196
|
+
self.id = attributes[:'id']
|
|
197
|
+
else
|
|
198
|
+
self.id = nil
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'tenant_id')
|
|
202
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
203
|
+
else
|
|
204
|
+
self.tenant_id = nil
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'company_id')
|
|
208
|
+
self.company_id = attributes[:'company_id']
|
|
209
|
+
else
|
|
210
|
+
self.company_id = nil
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'operator_identifier_scheme')
|
|
214
|
+
self.operator_identifier_scheme = attributes[:'operator_identifier_scheme']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'operator_identifier_value')
|
|
218
|
+
self.operator_identifier_value = attributes[:'operator_identifier_value']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'operator_identifier_scheme_name')
|
|
222
|
+
self.operator_identifier_scheme_name = attributes[:'operator_identifier_scheme_name']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'gln')
|
|
226
|
+
self.gln = attributes[:'gln']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'economic_operator_role')
|
|
230
|
+
self.economic_operator_role = attributes[:'economic_operator_role']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'economic_operator_roles_json')
|
|
234
|
+
self.economic_operator_roles_json = attributes[:'economic_operator_roles_json']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'eu_established')
|
|
238
|
+
self.eu_established = attributes[:'eu_established']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'authorised_representative_name')
|
|
242
|
+
self.authorised_representative_name = attributes[:'authorised_representative_name']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'authorised_representative_identifier_scheme')
|
|
246
|
+
self.authorised_representative_identifier_scheme = attributes[:'authorised_representative_identifier_scheme']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'authorised_representative_identifier_value')
|
|
250
|
+
self.authorised_representative_identifier_value = attributes[:'authorised_representative_identifier_value']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'authorised_representative_identifier_scheme_name')
|
|
254
|
+
self.authorised_representative_identifier_scheme_name = attributes[:'authorised_representative_identifier_scheme_name']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'authorised_representative_gln')
|
|
258
|
+
self.authorised_representative_gln = attributes[:'authorised_representative_gln']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'authorised_representative_registration_number')
|
|
262
|
+
self.authorised_representative_registration_number = attributes[:'authorised_representative_registration_number']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'authorised_representative_address')
|
|
266
|
+
self.authorised_representative_address = attributes[:'authorised_representative_address']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'authorised_representative_email')
|
|
270
|
+
self.authorised_representative_email = attributes[:'authorised_representative_email']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'authorised_representative_phone')
|
|
274
|
+
self.authorised_representative_phone = attributes[:'authorised_representative_phone']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'postal_code')
|
|
278
|
+
self.postal_code = attributes[:'postal_code']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'website')
|
|
282
|
+
self.website = attributes[:'website']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'row_version')
|
|
286
|
+
self.row_version = attributes[:'row_version']
|
|
287
|
+
else
|
|
288
|
+
self.row_version = nil
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'created_by')
|
|
292
|
+
self.created_by = attributes[:'created_by']
|
|
293
|
+
else
|
|
294
|
+
self.created_by = nil
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'created_at')
|
|
298
|
+
self.created_at = attributes[:'created_at']
|
|
299
|
+
else
|
|
300
|
+
self.created_at = nil
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'updated_by')
|
|
304
|
+
self.updated_by = attributes[:'updated_by']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'updated_at')
|
|
308
|
+
self.updated_at = attributes[:'updated_at']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'status')
|
|
312
|
+
self.status = attributes[:'status']
|
|
313
|
+
else
|
|
314
|
+
self.status = nil
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'company')
|
|
318
|
+
self.company = attributes[:'company']
|
|
319
|
+
else
|
|
320
|
+
self.company = nil
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
325
|
+
# @return Array for valid properties with the reasons
|
|
326
|
+
def list_invalid_properties
|
|
327
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
328
|
+
invalid_properties = Array.new
|
|
329
|
+
if @id.nil?
|
|
330
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if @tenant_id.nil?
|
|
334
|
+
invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if @company_id.nil?
|
|
338
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if @row_version.nil?
|
|
342
|
+
invalid_properties.push('invalid value for "row_version", row_version cannot be nil.')
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if @created_by.nil?
|
|
346
|
+
invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if @created_at.nil?
|
|
350
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if @status.nil?
|
|
354
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if @company.nil?
|
|
358
|
+
invalid_properties.push('invalid value for "company", company cannot be nil.')
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
invalid_properties
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Check to see if the all the properties in the model are valid
|
|
365
|
+
# @return true if the model is valid
|
|
366
|
+
def valid?
|
|
367
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
368
|
+
return false if @id.nil?
|
|
369
|
+
return false if @tenant_id.nil?
|
|
370
|
+
return false if @company_id.nil?
|
|
371
|
+
return false if @row_version.nil?
|
|
372
|
+
return false if @created_by.nil?
|
|
373
|
+
return false if @created_at.nil?
|
|
374
|
+
return false if @status.nil?
|
|
375
|
+
return false if @company.nil?
|
|
376
|
+
true
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Custom attribute writer method with validation
|
|
380
|
+
# @param [Object] id Value to be assigned
|
|
381
|
+
def id=(id)
|
|
382
|
+
if id.nil?
|
|
383
|
+
fail ArgumentError, 'id cannot be nil'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
@id = id
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Custom attribute writer method with validation
|
|
390
|
+
# @param [Object] tenant_id Value to be assigned
|
|
391
|
+
def tenant_id=(tenant_id)
|
|
392
|
+
if tenant_id.nil?
|
|
393
|
+
fail ArgumentError, 'tenant_id cannot be nil'
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
@tenant_id = tenant_id
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Custom attribute writer method with validation
|
|
400
|
+
# @param [Object] company_id Value to be assigned
|
|
401
|
+
def company_id=(company_id)
|
|
402
|
+
if company_id.nil?
|
|
403
|
+
fail ArgumentError, 'company_id cannot be nil'
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
@company_id = company_id
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Custom attribute writer method with validation
|
|
410
|
+
# @param [Object] row_version Value to be assigned
|
|
411
|
+
def row_version=(row_version)
|
|
412
|
+
if row_version.nil?
|
|
413
|
+
fail ArgumentError, 'row_version cannot be nil'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
@row_version = row_version
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Custom attribute writer method with validation
|
|
420
|
+
# @param [Object] created_by Value to be assigned
|
|
421
|
+
def created_by=(created_by)
|
|
422
|
+
if created_by.nil?
|
|
423
|
+
fail ArgumentError, 'created_by cannot be nil'
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
@created_by = created_by
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Custom attribute writer method with validation
|
|
430
|
+
# @param [Object] created_at Value to be assigned
|
|
431
|
+
def created_at=(created_at)
|
|
432
|
+
if created_at.nil?
|
|
433
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
@created_at = created_at
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# Custom attribute writer method with validation
|
|
440
|
+
# @param [Object] status Value to be assigned
|
|
441
|
+
def status=(status)
|
|
442
|
+
if status.nil?
|
|
443
|
+
fail ArgumentError, 'status cannot be nil'
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
@status = status
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# Custom attribute writer method with validation
|
|
450
|
+
# @param [Object] company Value to be assigned
|
|
451
|
+
def company=(company)
|
|
452
|
+
if company.nil?
|
|
453
|
+
fail ArgumentError, 'company cannot be nil'
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
@company = company
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# Checks equality by comparing each attribute.
|
|
460
|
+
# @param [Object] Object to be compared
|
|
461
|
+
def ==(o)
|
|
462
|
+
return true if self.equal?(o)
|
|
463
|
+
self.class == o.class &&
|
|
464
|
+
id == o.id &&
|
|
465
|
+
tenant_id == o.tenant_id &&
|
|
466
|
+
company_id == o.company_id &&
|
|
467
|
+
operator_identifier_scheme == o.operator_identifier_scheme &&
|
|
468
|
+
operator_identifier_value == o.operator_identifier_value &&
|
|
469
|
+
operator_identifier_scheme_name == o.operator_identifier_scheme_name &&
|
|
470
|
+
gln == o.gln &&
|
|
471
|
+
economic_operator_role == o.economic_operator_role &&
|
|
472
|
+
economic_operator_roles_json == o.economic_operator_roles_json &&
|
|
473
|
+
eu_established == o.eu_established &&
|
|
474
|
+
authorised_representative_name == o.authorised_representative_name &&
|
|
475
|
+
authorised_representative_identifier_scheme == o.authorised_representative_identifier_scheme &&
|
|
476
|
+
authorised_representative_identifier_value == o.authorised_representative_identifier_value &&
|
|
477
|
+
authorised_representative_identifier_scheme_name == o.authorised_representative_identifier_scheme_name &&
|
|
478
|
+
authorised_representative_gln == o.authorised_representative_gln &&
|
|
479
|
+
authorised_representative_registration_number == o.authorised_representative_registration_number &&
|
|
480
|
+
authorised_representative_address == o.authorised_representative_address &&
|
|
481
|
+
authorised_representative_email == o.authorised_representative_email &&
|
|
482
|
+
authorised_representative_phone == o.authorised_representative_phone &&
|
|
483
|
+
postal_code == o.postal_code &&
|
|
484
|
+
website == o.website &&
|
|
485
|
+
row_version == o.row_version &&
|
|
486
|
+
created_by == o.created_by &&
|
|
487
|
+
created_at == o.created_at &&
|
|
488
|
+
updated_by == o.updated_by &&
|
|
489
|
+
updated_at == o.updated_at &&
|
|
490
|
+
status == o.status &&
|
|
491
|
+
company == o.company
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# @see the `==` method
|
|
495
|
+
# @param [Object] Object to be compared
|
|
496
|
+
def eql?(o)
|
|
497
|
+
self == o
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# Calculates hash code according to all attributes.
|
|
501
|
+
# @return [Integer] Hash code
|
|
502
|
+
def hash
|
|
503
|
+
[id, tenant_id, company_id, operator_identifier_scheme, operator_identifier_value, operator_identifier_scheme_name, gln, economic_operator_role, economic_operator_roles_json, eu_established, authorised_representative_name, authorised_representative_identifier_scheme, authorised_representative_identifier_value, authorised_representative_identifier_scheme_name, authorised_representative_gln, authorised_representative_registration_number, authorised_representative_address, authorised_representative_email, authorised_representative_phone, postal_code, website, row_version, created_by, created_at, updated_by, updated_at, status, company].hash
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Builds the object from hash
|
|
507
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
508
|
+
# @return [Object] Returns the model itself
|
|
509
|
+
def self.build_from_hash(attributes)
|
|
510
|
+
return nil unless attributes.is_a?(Hash)
|
|
511
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
512
|
+
transformed_hash = {}
|
|
513
|
+
openapi_types.each_pair do |key, type|
|
|
514
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
515
|
+
transformed_hash["#{key}"] = nil
|
|
516
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
517
|
+
# check to ensure the input is an array given that the attribute
|
|
518
|
+
# is documented as an array but the input is not
|
|
519
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
520
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
521
|
+
end
|
|
522
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
523
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
new(transformed_hash)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Returns the object in the form of hash
|
|
530
|
+
# @return [Hash] Returns the object in the form of hash
|
|
531
|
+
def to_hash
|
|
532
|
+
hash = {}
|
|
533
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
534
|
+
value = self.send(attr)
|
|
535
|
+
if value.nil?
|
|
536
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
537
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
hash[param] = _to_hash(value)
|
|
541
|
+
end
|
|
542
|
+
hash
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
end
|