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.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +226 -0
  5. data/Rakefile +10 -0
  6. data/git_push.sh +54 -0
  7. data/lib/tachain-sdk/api/api_declaration_api.rb +396 -0
  8. data/lib/tachain-sdk/api/api_delivery_api.rb +676 -0
  9. data/lib/tachain-sdk/api/api_enum_api.rb +94 -0
  10. data/lib/tachain-sdk/api/api_order_api.rb +846 -0
  11. data/lib/tachain-sdk/api/api_order_workflow_api.rb +170 -0
  12. data/lib/tachain-sdk/api/api_production_api.rb +466 -0
  13. data/lib/tachain-sdk/api_client.rb +397 -0
  14. data/lib/tachain-sdk/api_error.rb +58 -0
  15. data/lib/tachain-sdk/api_model_base.rb +88 -0
  16. data/lib/tachain-sdk/configuration.rb +329 -0
  17. data/lib/tachain-sdk/models/api_declaration_delete_request.rb +341 -0
  18. data/lib/tachain-sdk/models/api_declaration_document_request.rb +209 -0
  19. data/lib/tachain-sdk/models/api_declaration_list_dto.rb +251 -0
  20. data/lib/tachain-sdk/models/api_declaration_submit_request.rb +251 -0
  21. data/lib/tachain-sdk/models/api_declaration_submit_result_dto.rb +197 -0
  22. data/lib/tachain-sdk/models/api_integration_delete_request.rb +209 -0
  23. data/lib/tachain-sdk/models/api_order_confirm_receipt_request.rb +216 -0
  24. data/lib/tachain-sdk/models/api_order_submit_audit_request.rb +243 -0
  25. data/lib/tachain-sdk/models/api_response_api_declaration_list_dto.rb +199 -0
  26. data/lib/tachain-sdk/models/api_response_api_declaration_submit_result_dto.rb +199 -0
  27. data/lib/tachain-sdk/models/api_response_delivery_note_api_dto.rb +199 -0
  28. data/lib/tachain-sdk/models/api_response_order_api_dto.rb +199 -0
  29. data/lib/tachain-sdk/models/api_response_production_api_dto.rb +199 -0
  30. data/lib/tachain-sdk/models/api_response_string.rb +200 -0
  31. data/lib/tachain-sdk/models/attachment_in_api_create_dto.rb +262 -0
  32. data/lib/tachain-sdk/models/attachment_in_api_dto.rb +363 -0
  33. data/lib/tachain-sdk/models/brand_kpi_policy_result.rb +334 -0
  34. data/lib/tachain-sdk/models/brand_order_kpi_snapshot_dto.rb +880 -0
  35. data/lib/tachain-sdk/models/brand_order_supplier_order_snapshot_dto.rb +749 -0
  36. data/lib/tachain-sdk/models/brand_order_uncompleted_declare_snapshot_dto.rb +513 -0
  37. data/lib/tachain-sdk/models/company.rb +780 -0
  38. data/lib/tachain-sdk/models/company_compliance_profile.rb +547 -0
  39. data/lib/tachain-sdk/models/company_utility_declaration.rb +592 -0
  40. data/lib/tachain-sdk/models/customer.rb +569 -0
  41. data/lib/tachain-sdk/models/delivery_note_api_dto.rb +597 -0
  42. data/lib/tachain-sdk/models/delivery_note_detail_api_dto.rb +682 -0
  43. data/lib/tachain-sdk/models/document_type_api_dto.rb +480 -0
  44. data/lib/tachain-sdk/models/factory.rb +545 -0
  45. data/lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb +201 -0
  46. data/lib/tachain-sdk/models/microsoft_asp_net_core_mvc_problem_details.rb +188 -0
  47. data/lib/tachain-sdk/models/model1.rb +157 -0
  48. data/lib/tachain-sdk/models/model3.rb +202 -0
  49. data/lib/tachain-sdk/models/model4.rb +202 -0
  50. data/lib/tachain-sdk/models/order.rb +974 -0
  51. data/lib/tachain-sdk/models/order_api_dto.rb +918 -0
  52. data/lib/tachain-sdk/models/order_line.rb +1184 -0
  53. data/lib/tachain-sdk/models/order_line_api_dto.rb +1277 -0
  54. data/lib/tachain-sdk/models/order_stage_form_api_dto.rb +270 -0
  55. data/lib/tachain-sdk/models/order_stage_form_datum_api_dto.rb +260 -0
  56. data/lib/tachain-sdk/models/order_stage_form_dto.rb +254 -0
  57. data/lib/tachain-sdk/models/paged_response_delivery_note_api_dto.rb +296 -0
  58. data/lib/tachain-sdk/models/paged_response_order_api_dto.rb +296 -0
  59. data/lib/tachain-sdk/models/paged_response_production_api_dto.rb +296 -0
  60. data/lib/tachain-sdk/models/product_bom_grouping_dto.rb +280 -0
  61. data/lib/tachain-sdk/models/production_api_dto.rb +639 -0
  62. data/lib/tachain-sdk/models/production_raw_material_api_dto.rb +481 -0
  63. data/lib/tachain-sdk/models/production_raw_material_dto.rb +548 -0
  64. data/lib/tachain-sdk/models/production_sales_order_api_dto.rb +436 -0
  65. data/lib/tachain-sdk/models/result_api_enum.rb +270 -0
  66. data/lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb +331 -0
  67. data/lib/tachain-sdk/models/result_brand_report_unlinked_order_detail.rb +229 -0
  68. data/lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb +418 -0
  69. data/lib/tachain-sdk/models/result_mapping_order_select.rb +335 -0
  70. data/lib/tachain-sdk/models/result_order_trace_report.rb +721 -0
  71. data/lib/tachain-sdk/models/stage_attachment_api_dto.rb +398 -0
  72. data/lib/tachain-sdk/models/supplier.rb +585 -0
  73. data/lib/tachain-sdk/models/supplier_onboarding_ext.rb +383 -0
  74. data/lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb +456 -0
  75. data/lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb +227 -0
  76. data/lib/tachain-sdk/models/trader.rb +506 -0
  77. data/lib/tachain-sdk/signed_api_client.rb +65 -0
  78. data/lib/tachain-sdk/version.rb +15 -0
  79. data/lib/tachain-sdk.rb +108 -0
  80. data/spec/spec_helper.rb +111 -0
  81. data/tachain-sdk.gemspec +39 -0
  82. metadata +165 -0
@@ -0,0 +1,880 @@
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
+ # 品牌订单KPI快照表
18
+ class BrandOrderKpiSnapshotDto < ApiModelBase
19
+ # 品牌订单KPI快照ID,建议使用Guid字符串
20
+ attr_accessor :id
21
+
22
+ # 快照编号,例如BOKPI-20260702-000001
23
+ attr_accessor :snapshot_no
24
+
25
+ # 快照生成时间,即本次KPI和完成状态封存时间
26
+ attr_accessor :snapshot_at
27
+
28
+ # 定时任务批次号,仅用于排查同一次任务生成的数据
29
+ attr_accessor :snapshot_job_no
30
+
31
+ # 租户ID
32
+ attr_accessor :tenant_id
33
+
34
+ # 环境类型:0正式,1测试
35
+ attr_accessor :environment_type
36
+
37
+ # 触发快照的订单ID
38
+ attr_accessor :order_id
39
+
40
+ # 触发快照的订单明细ID
41
+ attr_accessor :order_line_id
42
+
43
+ # 快照时品牌订单明细status
44
+ attr_accessor :order_line_status
45
+
46
+ # 快照时销售状态
47
+ attr_accessor :so_status
48
+
49
+ # 快照时采购状态
50
+ attr_accessor :po_status
51
+
52
+ # 快照时主订单链条审核状态
53
+ attr_accessor :master_approve_status
54
+
55
+ # 快照时订单明细审核状态
56
+ attr_accessor :approve_status
57
+
58
+ # 快照时买方确认收货状态
59
+ attr_accessor :customer_confirm_status
60
+
61
+ # 快照时主订单链条完成状态:0未完成,1完成
62
+ attr_accessor :order_chain_status
63
+
64
+ # 快照时链条完成状态:0未完成,1完成
65
+ attr_accessor :chain_status
66
+
67
+ # 快照时预计发货日期,影响品牌KPI和供应商KPI判断
68
+ attr_accessor :estimated_time_of_departure
69
+
70
+ # 快照时链条最后更新时间,影响完成时间和KPI判断
71
+ attr_accessor :chain_latest_updated_at
72
+
73
+ # 快照时供应商最新提交审核时间
74
+ attr_accessor :order_line_finish_time
75
+
76
+ # 快照时集成推送最早交货日期
77
+ attr_accessor :push_early_delivery_date
78
+
79
+ # 快照时是否手工调整最早交货日期:0否,1是
80
+ attr_accessor :is_adjust_delivery
81
+
82
+ # 快照时KPI剔除标记:0未剔除,1已剔除
83
+ attr_accessor :kpi_exclude_flag
84
+
85
+ # 快照时KPI剔除原因
86
+ attr_accessor :kpi_exclude_reason
87
+
88
+ # 快照时客户是否分批发货:0按需发货,1分批发货,2无法按需发货实际发货完成
89
+ attr_accessor :ship_in_batches
90
+
91
+ # 快照时客户确认收货最新通过时间
92
+ attr_accessor :customer_confirm_time
93
+
94
+ # 快照时GTS运输开始日期
95
+ attr_accessor :gts_departure_date
96
+
97
+ # 快照时GTS运输到达日期
98
+ attr_accessor :gts_arrival_date
99
+
100
+ # 快照计算结果-品牌KPI:0进行中,1合格,2逾期,3剔除/不计入
101
+ attr_accessor :brand_kpi_status
102
+
103
+ # 快照计算结果-品牌KPI截止时间
104
+ attr_accessor :brand_kpi_deadline
105
+
106
+ # 快照计算结果-品牌KPI逾期天数;未逾期为0,无法计算为空
107
+ attr_accessor :brand_kpi_overdue_days
108
+
109
+ # 快照计算结果-T1供应商KPI:0进行中,1合格,2逾期,3剔除/不计入
110
+ attr_accessor :t1_supplier_kpi_status
111
+
112
+ # 快照计算结果-T1供应商KPI截止时间;多条T1时取最早未满足截止时间
113
+ attr_accessor :t1_supplier_kpi_deadline
114
+
115
+ # 快照计算结果-T1供应商KPI逾期天数;多条T1时取最大逾期天数
116
+ attr_accessor :t1_supplier_kpi_overdue_days
117
+
118
+ # 快照时品牌订单关联链路订单明细总数
119
+ attr_accessor :chain_order_line_total_count
120
+
121
+ # 快照时品牌订单关联链路已完成订单明细数
122
+ attr_accessor :chain_order_line_completed_count
123
+
124
+ # 快照时品牌订单关联链路未完成订单明细数
125
+ attr_accessor :chain_order_line_uncompleted_count
126
+
127
+ # 快照时已完成必要申报文件数
128
+ attr_accessor :required_file_completed_count
129
+
130
+ # 快照时未完成必要申报文件数
131
+ attr_accessor :required_file_uncompleted_count
132
+
133
+ # 快照时链路涉及供应商数量
134
+ attr_accessor :supplier_count
135
+
136
+ # 快照时整条链路T级拼接,例如T1,T2,T3
137
+ attr_accessor :scope_code_chain
138
+
139
+ # 快照时未完成订单明细ID集合,用于详情展示
140
+ attr_accessor :uncompleted_order_line_ids
141
+
142
+ # 快照时影响完成的供应商名称集合,用于详情展示
143
+ attr_accessor :uncompleted_supplier_ids
144
+
145
+ # 快照时parentBrandOrderInfo核心信息JSON,仅用于详情只存ID关系
146
+ attr_accessor :parent_brand_order_info_json
147
+
148
+ # 其他影响完成/KPI计算但不需要建索引的扩展因素JSON
149
+ attr_accessor :completion_factor_json
150
+
151
+ # 创建时间
152
+ attr_accessor :created_at
153
+
154
+ # 更新时间
155
+ attr_accessor :updated_at
156
+
157
+ # -1删除,0正常
158
+ attr_accessor :status
159
+
160
+ # Attribute mapping from ruby-style variable name to JSON key.
161
+ def self.attribute_map
162
+ {
163
+ :'id' => :'id',
164
+ :'snapshot_no' => :'snapshotNo',
165
+ :'snapshot_at' => :'snapshotAt',
166
+ :'snapshot_job_no' => :'snapshotJobNo',
167
+ :'tenant_id' => :'tenantId',
168
+ :'environment_type' => :'environmentType',
169
+ :'order_id' => :'orderId',
170
+ :'order_line_id' => :'orderLineId',
171
+ :'order_line_status' => :'orderLineStatus',
172
+ :'so_status' => :'soStatus',
173
+ :'po_status' => :'poStatus',
174
+ :'master_approve_status' => :'masterApproveStatus',
175
+ :'approve_status' => :'approveStatus',
176
+ :'customer_confirm_status' => :'customerConfirmStatus',
177
+ :'order_chain_status' => :'orderChainStatus',
178
+ :'chain_status' => :'chainStatus',
179
+ :'estimated_time_of_departure' => :'estimatedTimeOfDeparture',
180
+ :'chain_latest_updated_at' => :'chainLatestUpdatedAt',
181
+ :'order_line_finish_time' => :'orderLineFinishTime',
182
+ :'push_early_delivery_date' => :'pushEarlyDeliveryDate',
183
+ :'is_adjust_delivery' => :'isAdjustDelivery',
184
+ :'kpi_exclude_flag' => :'kpiExcludeFlag',
185
+ :'kpi_exclude_reason' => :'kpiExcludeReason',
186
+ :'ship_in_batches' => :'shipInBatches',
187
+ :'customer_confirm_time' => :'customerConfirmTime',
188
+ :'gts_departure_date' => :'gtsDepartureDate',
189
+ :'gts_arrival_date' => :'gtsArrivalDate',
190
+ :'brand_kpi_status' => :'brandKpiStatus',
191
+ :'brand_kpi_deadline' => :'brandKpiDeadline',
192
+ :'brand_kpi_overdue_days' => :'brandKpiOverdueDays',
193
+ :'t1_supplier_kpi_status' => :'t1SupplierKpiStatus',
194
+ :'t1_supplier_kpi_deadline' => :'t1SupplierKpiDeadline',
195
+ :'t1_supplier_kpi_overdue_days' => :'t1SupplierKpiOverdueDays',
196
+ :'chain_order_line_total_count' => :'chainOrderLineTotalCount',
197
+ :'chain_order_line_completed_count' => :'chainOrderLineCompletedCount',
198
+ :'chain_order_line_uncompleted_count' => :'chainOrderLineUncompletedCount',
199
+ :'required_file_completed_count' => :'requiredFileCompletedCount',
200
+ :'required_file_uncompleted_count' => :'requiredFileUncompletedCount',
201
+ :'supplier_count' => :'supplierCount',
202
+ :'scope_code_chain' => :'scopeCodeChain',
203
+ :'uncompleted_order_line_ids' => :'uncompletedOrderLineIds',
204
+ :'uncompleted_supplier_ids' => :'uncompletedSupplierIds',
205
+ :'parent_brand_order_info_json' => :'parentBrandOrderInfoJson',
206
+ :'completion_factor_json' => :'completionFactorJson',
207
+ :'created_at' => :'createdAt',
208
+ :'updated_at' => :'updatedAt',
209
+ :'status' => :'status'
210
+ }
211
+ end
212
+
213
+ # Returns attribute mapping this model knows about
214
+ def self.acceptable_attribute_map
215
+ attribute_map
216
+ end
217
+
218
+ # Returns all the JSON keys this model knows about
219
+ def self.acceptable_attributes
220
+ acceptable_attribute_map.values
221
+ end
222
+
223
+ # Attribute type mapping.
224
+ def self.openapi_types
225
+ {
226
+ :'id' => :'String',
227
+ :'snapshot_no' => :'String',
228
+ :'snapshot_at' => :'Time',
229
+ :'snapshot_job_no' => :'String',
230
+ :'tenant_id' => :'String',
231
+ :'environment_type' => :'Integer',
232
+ :'order_id' => :'String',
233
+ :'order_line_id' => :'String',
234
+ :'order_line_status' => :'Integer',
235
+ :'so_status' => :'Integer',
236
+ :'po_status' => :'Integer',
237
+ :'master_approve_status' => :'Integer',
238
+ :'approve_status' => :'Integer',
239
+ :'customer_confirm_status' => :'Integer',
240
+ :'order_chain_status' => :'Integer',
241
+ :'chain_status' => :'Integer',
242
+ :'estimated_time_of_departure' => :'Time',
243
+ :'chain_latest_updated_at' => :'Time',
244
+ :'order_line_finish_time' => :'Time',
245
+ :'push_early_delivery_date' => :'Time',
246
+ :'is_adjust_delivery' => :'Integer',
247
+ :'kpi_exclude_flag' => :'Integer',
248
+ :'kpi_exclude_reason' => :'String',
249
+ :'ship_in_batches' => :'Integer',
250
+ :'customer_confirm_time' => :'Time',
251
+ :'gts_departure_date' => :'Time',
252
+ :'gts_arrival_date' => :'Time',
253
+ :'brand_kpi_status' => :'Integer',
254
+ :'brand_kpi_deadline' => :'Time',
255
+ :'brand_kpi_overdue_days' => :'Integer',
256
+ :'t1_supplier_kpi_status' => :'Integer',
257
+ :'t1_supplier_kpi_deadline' => :'Time',
258
+ :'t1_supplier_kpi_overdue_days' => :'Integer',
259
+ :'chain_order_line_total_count' => :'Integer',
260
+ :'chain_order_line_completed_count' => :'Integer',
261
+ :'chain_order_line_uncompleted_count' => :'Integer',
262
+ :'required_file_completed_count' => :'Integer',
263
+ :'required_file_uncompleted_count' => :'Integer',
264
+ :'supplier_count' => :'Integer',
265
+ :'scope_code_chain' => :'String',
266
+ :'uncompleted_order_line_ids' => :'String',
267
+ :'uncompleted_supplier_ids' => :'String',
268
+ :'parent_brand_order_info_json' => :'String',
269
+ :'completion_factor_json' => :'String',
270
+ :'created_at' => :'Time',
271
+ :'updated_at' => :'Time',
272
+ :'status' => :'Integer'
273
+ }
274
+ end
275
+
276
+ # List of attributes with nullable: true
277
+ def self.openapi_nullable
278
+ Set.new([
279
+ :'snapshot_job_no',
280
+ :'order_id',
281
+ :'order_line_status',
282
+ :'so_status',
283
+ :'po_status',
284
+ :'master_approve_status',
285
+ :'approve_status',
286
+ :'customer_confirm_status',
287
+ :'order_chain_status',
288
+ :'chain_status',
289
+ :'estimated_time_of_departure',
290
+ :'chain_latest_updated_at',
291
+ :'order_line_finish_time',
292
+ :'push_early_delivery_date',
293
+ :'is_adjust_delivery',
294
+ :'kpi_exclude_flag',
295
+ :'kpi_exclude_reason',
296
+ :'ship_in_batches',
297
+ :'customer_confirm_time',
298
+ :'gts_departure_date',
299
+ :'gts_arrival_date',
300
+ :'brand_kpi_status',
301
+ :'brand_kpi_deadline',
302
+ :'brand_kpi_overdue_days',
303
+ :'t1_supplier_kpi_status',
304
+ :'t1_supplier_kpi_deadline',
305
+ :'t1_supplier_kpi_overdue_days',
306
+ :'scope_code_chain',
307
+ :'uncompleted_order_line_ids',
308
+ :'uncompleted_supplier_ids',
309
+ :'parent_brand_order_info_json',
310
+ :'completion_factor_json',
311
+ :'updated_at',
312
+ ])
313
+ end
314
+
315
+ # Initializes the object
316
+ # @param [Hash] attributes Model attributes in the form of hash
317
+ def initialize(attributes = {})
318
+ if (!attributes.is_a?(Hash))
319
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TachainSdk::BrandOrderKpiSnapshotDto` initialize method"
320
+ end
321
+
322
+ # check to see if the attribute exists and convert string to symbol for hash key
323
+ acceptable_attribute_map = self.class.acceptable_attribute_map
324
+ attributes = attributes.each_with_object({}) { |(k, v), h|
325
+ if (!acceptable_attribute_map.key?(k.to_sym))
326
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TachainSdk::BrandOrderKpiSnapshotDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
327
+ end
328
+ h[k.to_sym] = v
329
+ }
330
+
331
+ if attributes.key?(:'id')
332
+ self.id = attributes[:'id']
333
+ else
334
+ self.id = nil
335
+ end
336
+
337
+ if attributes.key?(:'snapshot_no')
338
+ self.snapshot_no = attributes[:'snapshot_no']
339
+ else
340
+ self.snapshot_no = nil
341
+ end
342
+
343
+ if attributes.key?(:'snapshot_at')
344
+ self.snapshot_at = attributes[:'snapshot_at']
345
+ else
346
+ self.snapshot_at = nil
347
+ end
348
+
349
+ if attributes.key?(:'snapshot_job_no')
350
+ self.snapshot_job_no = attributes[:'snapshot_job_no']
351
+ end
352
+
353
+ if attributes.key?(:'tenant_id')
354
+ self.tenant_id = attributes[:'tenant_id']
355
+ else
356
+ self.tenant_id = nil
357
+ end
358
+
359
+ if attributes.key?(:'environment_type')
360
+ self.environment_type = attributes[:'environment_type']
361
+ else
362
+ self.environment_type = nil
363
+ end
364
+
365
+ if attributes.key?(:'order_id')
366
+ self.order_id = attributes[:'order_id']
367
+ end
368
+
369
+ if attributes.key?(:'order_line_id')
370
+ self.order_line_id = attributes[:'order_line_id']
371
+ else
372
+ self.order_line_id = nil
373
+ end
374
+
375
+ if attributes.key?(:'order_line_status')
376
+ self.order_line_status = attributes[:'order_line_status']
377
+ end
378
+
379
+ if attributes.key?(:'so_status')
380
+ self.so_status = attributes[:'so_status']
381
+ end
382
+
383
+ if attributes.key?(:'po_status')
384
+ self.po_status = attributes[:'po_status']
385
+ end
386
+
387
+ if attributes.key?(:'master_approve_status')
388
+ self.master_approve_status = attributes[:'master_approve_status']
389
+ end
390
+
391
+ if attributes.key?(:'approve_status')
392
+ self.approve_status = attributes[:'approve_status']
393
+ end
394
+
395
+ if attributes.key?(:'customer_confirm_status')
396
+ self.customer_confirm_status = attributes[:'customer_confirm_status']
397
+ end
398
+
399
+ if attributes.key?(:'order_chain_status')
400
+ self.order_chain_status = attributes[:'order_chain_status']
401
+ end
402
+
403
+ if attributes.key?(:'chain_status')
404
+ self.chain_status = attributes[:'chain_status']
405
+ end
406
+
407
+ if attributes.key?(:'estimated_time_of_departure')
408
+ self.estimated_time_of_departure = attributes[:'estimated_time_of_departure']
409
+ end
410
+
411
+ if attributes.key?(:'chain_latest_updated_at')
412
+ self.chain_latest_updated_at = attributes[:'chain_latest_updated_at']
413
+ end
414
+
415
+ if attributes.key?(:'order_line_finish_time')
416
+ self.order_line_finish_time = attributes[:'order_line_finish_time']
417
+ end
418
+
419
+ if attributes.key?(:'push_early_delivery_date')
420
+ self.push_early_delivery_date = attributes[:'push_early_delivery_date']
421
+ end
422
+
423
+ if attributes.key?(:'is_adjust_delivery')
424
+ self.is_adjust_delivery = attributes[:'is_adjust_delivery']
425
+ end
426
+
427
+ if attributes.key?(:'kpi_exclude_flag')
428
+ self.kpi_exclude_flag = attributes[:'kpi_exclude_flag']
429
+ end
430
+
431
+ if attributes.key?(:'kpi_exclude_reason')
432
+ self.kpi_exclude_reason = attributes[:'kpi_exclude_reason']
433
+ end
434
+
435
+ if attributes.key?(:'ship_in_batches')
436
+ self.ship_in_batches = attributes[:'ship_in_batches']
437
+ end
438
+
439
+ if attributes.key?(:'customer_confirm_time')
440
+ self.customer_confirm_time = attributes[:'customer_confirm_time']
441
+ end
442
+
443
+ if attributes.key?(:'gts_departure_date')
444
+ self.gts_departure_date = attributes[:'gts_departure_date']
445
+ end
446
+
447
+ if attributes.key?(:'gts_arrival_date')
448
+ self.gts_arrival_date = attributes[:'gts_arrival_date']
449
+ end
450
+
451
+ if attributes.key?(:'brand_kpi_status')
452
+ self.brand_kpi_status = attributes[:'brand_kpi_status']
453
+ end
454
+
455
+ if attributes.key?(:'brand_kpi_deadline')
456
+ self.brand_kpi_deadline = attributes[:'brand_kpi_deadline']
457
+ end
458
+
459
+ if attributes.key?(:'brand_kpi_overdue_days')
460
+ self.brand_kpi_overdue_days = attributes[:'brand_kpi_overdue_days']
461
+ end
462
+
463
+ if attributes.key?(:'t1_supplier_kpi_status')
464
+ self.t1_supplier_kpi_status = attributes[:'t1_supplier_kpi_status']
465
+ end
466
+
467
+ if attributes.key?(:'t1_supplier_kpi_deadline')
468
+ self.t1_supplier_kpi_deadline = attributes[:'t1_supplier_kpi_deadline']
469
+ end
470
+
471
+ if attributes.key?(:'t1_supplier_kpi_overdue_days')
472
+ self.t1_supplier_kpi_overdue_days = attributes[:'t1_supplier_kpi_overdue_days']
473
+ end
474
+
475
+ if attributes.key?(:'chain_order_line_total_count')
476
+ self.chain_order_line_total_count = attributes[:'chain_order_line_total_count']
477
+ else
478
+ self.chain_order_line_total_count = nil
479
+ end
480
+
481
+ if attributes.key?(:'chain_order_line_completed_count')
482
+ self.chain_order_line_completed_count = attributes[:'chain_order_line_completed_count']
483
+ else
484
+ self.chain_order_line_completed_count = nil
485
+ end
486
+
487
+ if attributes.key?(:'chain_order_line_uncompleted_count')
488
+ self.chain_order_line_uncompleted_count = attributes[:'chain_order_line_uncompleted_count']
489
+ else
490
+ self.chain_order_line_uncompleted_count = nil
491
+ end
492
+
493
+ if attributes.key?(:'required_file_completed_count')
494
+ self.required_file_completed_count = attributes[:'required_file_completed_count']
495
+ else
496
+ self.required_file_completed_count = nil
497
+ end
498
+
499
+ if attributes.key?(:'required_file_uncompleted_count')
500
+ self.required_file_uncompleted_count = attributes[:'required_file_uncompleted_count']
501
+ else
502
+ self.required_file_uncompleted_count = nil
503
+ end
504
+
505
+ if attributes.key?(:'supplier_count')
506
+ self.supplier_count = attributes[:'supplier_count']
507
+ else
508
+ self.supplier_count = nil
509
+ end
510
+
511
+ if attributes.key?(:'scope_code_chain')
512
+ self.scope_code_chain = attributes[:'scope_code_chain']
513
+ end
514
+
515
+ if attributes.key?(:'uncompleted_order_line_ids')
516
+ self.uncompleted_order_line_ids = attributes[:'uncompleted_order_line_ids']
517
+ end
518
+
519
+ if attributes.key?(:'uncompleted_supplier_ids')
520
+ self.uncompleted_supplier_ids = attributes[:'uncompleted_supplier_ids']
521
+ end
522
+
523
+ if attributes.key?(:'parent_brand_order_info_json')
524
+ self.parent_brand_order_info_json = attributes[:'parent_brand_order_info_json']
525
+ end
526
+
527
+ if attributes.key?(:'completion_factor_json')
528
+ self.completion_factor_json = attributes[:'completion_factor_json']
529
+ end
530
+
531
+ if attributes.key?(:'created_at')
532
+ self.created_at = attributes[:'created_at']
533
+ else
534
+ self.created_at = nil
535
+ end
536
+
537
+ if attributes.key?(:'updated_at')
538
+ self.updated_at = attributes[:'updated_at']
539
+ end
540
+
541
+ if attributes.key?(:'status')
542
+ self.status = attributes[:'status']
543
+ else
544
+ self.status = nil
545
+ end
546
+ end
547
+
548
+ # Show invalid properties with the reasons. Usually used together with valid?
549
+ # @return Array for valid properties with the reasons
550
+ def list_invalid_properties
551
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
552
+ invalid_properties = Array.new
553
+ if @id.nil?
554
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
555
+ end
556
+
557
+ if @snapshot_no.nil?
558
+ invalid_properties.push('invalid value for "snapshot_no", snapshot_no cannot be nil.')
559
+ end
560
+
561
+ if @snapshot_at.nil?
562
+ invalid_properties.push('invalid value for "snapshot_at", snapshot_at cannot be nil.')
563
+ end
564
+
565
+ if @tenant_id.nil?
566
+ invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
567
+ end
568
+
569
+ if @environment_type.nil?
570
+ invalid_properties.push('invalid value for "environment_type", environment_type cannot be nil.')
571
+ end
572
+
573
+ if @order_line_id.nil?
574
+ invalid_properties.push('invalid value for "order_line_id", order_line_id cannot be nil.')
575
+ end
576
+
577
+ if @chain_order_line_total_count.nil?
578
+ invalid_properties.push('invalid value for "chain_order_line_total_count", chain_order_line_total_count cannot be nil.')
579
+ end
580
+
581
+ if @chain_order_line_completed_count.nil?
582
+ invalid_properties.push('invalid value for "chain_order_line_completed_count", chain_order_line_completed_count cannot be nil.')
583
+ end
584
+
585
+ if @chain_order_line_uncompleted_count.nil?
586
+ invalid_properties.push('invalid value for "chain_order_line_uncompleted_count", chain_order_line_uncompleted_count cannot be nil.')
587
+ end
588
+
589
+ if @required_file_completed_count.nil?
590
+ invalid_properties.push('invalid value for "required_file_completed_count", required_file_completed_count cannot be nil.')
591
+ end
592
+
593
+ if @required_file_uncompleted_count.nil?
594
+ invalid_properties.push('invalid value for "required_file_uncompleted_count", required_file_uncompleted_count cannot be nil.')
595
+ end
596
+
597
+ if @supplier_count.nil?
598
+ invalid_properties.push('invalid value for "supplier_count", supplier_count cannot be nil.')
599
+ end
600
+
601
+ if @created_at.nil?
602
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
603
+ end
604
+
605
+ if @status.nil?
606
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
607
+ end
608
+
609
+ invalid_properties
610
+ end
611
+
612
+ # Check to see if the all the properties in the model are valid
613
+ # @return true if the model is valid
614
+ def valid?
615
+ warn '[DEPRECATED] the `valid?` method is obsolete'
616
+ return false if @id.nil?
617
+ return false if @snapshot_no.nil?
618
+ return false if @snapshot_at.nil?
619
+ return false if @tenant_id.nil?
620
+ return false if @environment_type.nil?
621
+ return false if @order_line_id.nil?
622
+ return false if @chain_order_line_total_count.nil?
623
+ return false if @chain_order_line_completed_count.nil?
624
+ return false if @chain_order_line_uncompleted_count.nil?
625
+ return false if @required_file_completed_count.nil?
626
+ return false if @required_file_uncompleted_count.nil?
627
+ return false if @supplier_count.nil?
628
+ return false if @created_at.nil?
629
+ return false if @status.nil?
630
+ true
631
+ end
632
+
633
+ # Custom attribute writer method with validation
634
+ # @param [Object] id Value to be assigned
635
+ def id=(id)
636
+ if id.nil?
637
+ fail ArgumentError, 'id cannot be nil'
638
+ end
639
+
640
+ @id = id
641
+ end
642
+
643
+ # Custom attribute writer method with validation
644
+ # @param [Object] snapshot_no Value to be assigned
645
+ def snapshot_no=(snapshot_no)
646
+ if snapshot_no.nil?
647
+ fail ArgumentError, 'snapshot_no cannot be nil'
648
+ end
649
+
650
+ @snapshot_no = snapshot_no
651
+ end
652
+
653
+ # Custom attribute writer method with validation
654
+ # @param [Object] snapshot_at Value to be assigned
655
+ def snapshot_at=(snapshot_at)
656
+ if snapshot_at.nil?
657
+ fail ArgumentError, 'snapshot_at cannot be nil'
658
+ end
659
+
660
+ @snapshot_at = snapshot_at
661
+ end
662
+
663
+ # Custom attribute writer method with validation
664
+ # @param [Object] tenant_id Value to be assigned
665
+ def tenant_id=(tenant_id)
666
+ if tenant_id.nil?
667
+ fail ArgumentError, 'tenant_id cannot be nil'
668
+ end
669
+
670
+ @tenant_id = tenant_id
671
+ end
672
+
673
+ # Custom attribute writer method with validation
674
+ # @param [Object] environment_type Value to be assigned
675
+ def environment_type=(environment_type)
676
+ if environment_type.nil?
677
+ fail ArgumentError, 'environment_type cannot be nil'
678
+ end
679
+
680
+ @environment_type = environment_type
681
+ end
682
+
683
+ # Custom attribute writer method with validation
684
+ # @param [Object] order_line_id Value to be assigned
685
+ def order_line_id=(order_line_id)
686
+ if order_line_id.nil?
687
+ fail ArgumentError, 'order_line_id cannot be nil'
688
+ end
689
+
690
+ @order_line_id = order_line_id
691
+ end
692
+
693
+ # Custom attribute writer method with validation
694
+ # @param [Object] chain_order_line_total_count Value to be assigned
695
+ def chain_order_line_total_count=(chain_order_line_total_count)
696
+ if chain_order_line_total_count.nil?
697
+ fail ArgumentError, 'chain_order_line_total_count cannot be nil'
698
+ end
699
+
700
+ @chain_order_line_total_count = chain_order_line_total_count
701
+ end
702
+
703
+ # Custom attribute writer method with validation
704
+ # @param [Object] chain_order_line_completed_count Value to be assigned
705
+ def chain_order_line_completed_count=(chain_order_line_completed_count)
706
+ if chain_order_line_completed_count.nil?
707
+ fail ArgumentError, 'chain_order_line_completed_count cannot be nil'
708
+ end
709
+
710
+ @chain_order_line_completed_count = chain_order_line_completed_count
711
+ end
712
+
713
+ # Custom attribute writer method with validation
714
+ # @param [Object] chain_order_line_uncompleted_count Value to be assigned
715
+ def chain_order_line_uncompleted_count=(chain_order_line_uncompleted_count)
716
+ if chain_order_line_uncompleted_count.nil?
717
+ fail ArgumentError, 'chain_order_line_uncompleted_count cannot be nil'
718
+ end
719
+
720
+ @chain_order_line_uncompleted_count = chain_order_line_uncompleted_count
721
+ end
722
+
723
+ # Custom attribute writer method with validation
724
+ # @param [Object] required_file_completed_count Value to be assigned
725
+ def required_file_completed_count=(required_file_completed_count)
726
+ if required_file_completed_count.nil?
727
+ fail ArgumentError, 'required_file_completed_count cannot be nil'
728
+ end
729
+
730
+ @required_file_completed_count = required_file_completed_count
731
+ end
732
+
733
+ # Custom attribute writer method with validation
734
+ # @param [Object] required_file_uncompleted_count Value to be assigned
735
+ def required_file_uncompleted_count=(required_file_uncompleted_count)
736
+ if required_file_uncompleted_count.nil?
737
+ fail ArgumentError, 'required_file_uncompleted_count cannot be nil'
738
+ end
739
+
740
+ @required_file_uncompleted_count = required_file_uncompleted_count
741
+ end
742
+
743
+ # Custom attribute writer method with validation
744
+ # @param [Object] supplier_count Value to be assigned
745
+ def supplier_count=(supplier_count)
746
+ if supplier_count.nil?
747
+ fail ArgumentError, 'supplier_count cannot be nil'
748
+ end
749
+
750
+ @supplier_count = supplier_count
751
+ end
752
+
753
+ # Custom attribute writer method with validation
754
+ # @param [Object] created_at Value to be assigned
755
+ def created_at=(created_at)
756
+ if created_at.nil?
757
+ fail ArgumentError, 'created_at cannot be nil'
758
+ end
759
+
760
+ @created_at = created_at
761
+ end
762
+
763
+ # Custom attribute writer method with validation
764
+ # @param [Object] status Value to be assigned
765
+ def status=(status)
766
+ if status.nil?
767
+ fail ArgumentError, 'status cannot be nil'
768
+ end
769
+
770
+ @status = status
771
+ end
772
+
773
+ # Checks equality by comparing each attribute.
774
+ # @param [Object] Object to be compared
775
+ def ==(o)
776
+ return true if self.equal?(o)
777
+ self.class == o.class &&
778
+ id == o.id &&
779
+ snapshot_no == o.snapshot_no &&
780
+ snapshot_at == o.snapshot_at &&
781
+ snapshot_job_no == o.snapshot_job_no &&
782
+ tenant_id == o.tenant_id &&
783
+ environment_type == o.environment_type &&
784
+ order_id == o.order_id &&
785
+ order_line_id == o.order_line_id &&
786
+ order_line_status == o.order_line_status &&
787
+ so_status == o.so_status &&
788
+ po_status == o.po_status &&
789
+ master_approve_status == o.master_approve_status &&
790
+ approve_status == o.approve_status &&
791
+ customer_confirm_status == o.customer_confirm_status &&
792
+ order_chain_status == o.order_chain_status &&
793
+ chain_status == o.chain_status &&
794
+ estimated_time_of_departure == o.estimated_time_of_departure &&
795
+ chain_latest_updated_at == o.chain_latest_updated_at &&
796
+ order_line_finish_time == o.order_line_finish_time &&
797
+ push_early_delivery_date == o.push_early_delivery_date &&
798
+ is_adjust_delivery == o.is_adjust_delivery &&
799
+ kpi_exclude_flag == o.kpi_exclude_flag &&
800
+ kpi_exclude_reason == o.kpi_exclude_reason &&
801
+ ship_in_batches == o.ship_in_batches &&
802
+ customer_confirm_time == o.customer_confirm_time &&
803
+ gts_departure_date == o.gts_departure_date &&
804
+ gts_arrival_date == o.gts_arrival_date &&
805
+ brand_kpi_status == o.brand_kpi_status &&
806
+ brand_kpi_deadline == o.brand_kpi_deadline &&
807
+ brand_kpi_overdue_days == o.brand_kpi_overdue_days &&
808
+ t1_supplier_kpi_status == o.t1_supplier_kpi_status &&
809
+ t1_supplier_kpi_deadline == o.t1_supplier_kpi_deadline &&
810
+ t1_supplier_kpi_overdue_days == o.t1_supplier_kpi_overdue_days &&
811
+ chain_order_line_total_count == o.chain_order_line_total_count &&
812
+ chain_order_line_completed_count == o.chain_order_line_completed_count &&
813
+ chain_order_line_uncompleted_count == o.chain_order_line_uncompleted_count &&
814
+ required_file_completed_count == o.required_file_completed_count &&
815
+ required_file_uncompleted_count == o.required_file_uncompleted_count &&
816
+ supplier_count == o.supplier_count &&
817
+ scope_code_chain == o.scope_code_chain &&
818
+ uncompleted_order_line_ids == o.uncompleted_order_line_ids &&
819
+ uncompleted_supplier_ids == o.uncompleted_supplier_ids &&
820
+ parent_brand_order_info_json == o.parent_brand_order_info_json &&
821
+ completion_factor_json == o.completion_factor_json &&
822
+ created_at == o.created_at &&
823
+ updated_at == o.updated_at &&
824
+ status == o.status
825
+ end
826
+
827
+ # @see the `==` method
828
+ # @param [Object] Object to be compared
829
+ def eql?(o)
830
+ self == o
831
+ end
832
+
833
+ # Calculates hash code according to all attributes.
834
+ # @return [Integer] Hash code
835
+ def hash
836
+ [id, snapshot_no, snapshot_at, snapshot_job_no, tenant_id, environment_type, order_id, order_line_id, order_line_status, so_status, po_status, master_approve_status, approve_status, customer_confirm_status, order_chain_status, chain_status, estimated_time_of_departure, chain_latest_updated_at, order_line_finish_time, push_early_delivery_date, is_adjust_delivery, kpi_exclude_flag, kpi_exclude_reason, ship_in_batches, customer_confirm_time, gts_departure_date, gts_arrival_date, brand_kpi_status, brand_kpi_deadline, brand_kpi_overdue_days, t1_supplier_kpi_status, t1_supplier_kpi_deadline, t1_supplier_kpi_overdue_days, chain_order_line_total_count, chain_order_line_completed_count, chain_order_line_uncompleted_count, required_file_completed_count, required_file_uncompleted_count, supplier_count, scope_code_chain, uncompleted_order_line_ids, uncompleted_supplier_ids, parent_brand_order_info_json, completion_factor_json, created_at, updated_at, status].hash
837
+ end
838
+
839
+ # Builds the object from hash
840
+ # @param [Hash] attributes Model attributes in the form of hash
841
+ # @return [Object] Returns the model itself
842
+ def self.build_from_hash(attributes)
843
+ return nil unless attributes.is_a?(Hash)
844
+ attributes = attributes.transform_keys(&:to_sym)
845
+ transformed_hash = {}
846
+ openapi_types.each_pair do |key, type|
847
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
848
+ transformed_hash["#{key}"] = nil
849
+ elsif type =~ /\AArray<(.*)>/i
850
+ # check to ensure the input is an array given that the attribute
851
+ # is documented as an array but the input is not
852
+ if attributes[attribute_map[key]].is_a?(Array)
853
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
854
+ end
855
+ elsif !attributes[attribute_map[key]].nil?
856
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
857
+ end
858
+ end
859
+ new(transformed_hash)
860
+ end
861
+
862
+ # Returns the object in the form of hash
863
+ # @return [Hash] Returns the object in the form of hash
864
+ def to_hash
865
+ hash = {}
866
+ self.class.attribute_map.each_pair do |attr, param|
867
+ value = self.send(attr)
868
+ if value.nil?
869
+ is_nullable = self.class.openapi_nullable.include?(attr)
870
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
871
+ end
872
+
873
+ hash[param] = _to_hash(value)
874
+ end
875
+ hash
876
+ end
877
+
878
+ end
879
+
880
+ end