tachain-sdk 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +148 -60
- data/lib/tachain-sdk/api/api_declaration_api.rb +155 -84
- data/lib/tachain-sdk/api/api_declaration_upload_api.rb +103 -0
- data/lib/tachain-sdk/api/api_delivery_api.rb +218 -138
- data/lib/tachain-sdk/api/api_enum_api.rb +2 -2
- data/lib/tachain-sdk/api/api_material_api.rb +414 -0
- data/lib/tachain-sdk/api/api_order_api.rb +185 -167
- data/lib/tachain-sdk/api/api_order_workflow_api.rb +227 -24
- data/lib/tachain-sdk/api/api_process_route_api.rb +414 -0
- data/lib/tachain-sdk/api/api_product_api.rb +414 -0
- data/lib/tachain-sdk/api/api_production_api.rb +141 -136
- data/lib/tachain-sdk/api/api_reference_api.rb +192 -0
- data/lib/tachain-sdk/models/{product_bom_grouping_dto.rb → api_bom_line_request.rb} +82 -107
- data/lib/tachain-sdk/models/api_bom_line_response.rb +205 -0
- data/lib/tachain-sdk/models/api_catalog_delete_request.rb +191 -0
- data/lib/tachain-sdk/models/{stage_attachment_api_dto.rb → api_declaration_attachment_response.rb} +16 -108
- data/lib/tachain-sdk/models/api_declaration_delete_request.rb +127 -17
- data/lib/tachain-sdk/models/api_declaration_document_request.rb +5 -27
- data/lib/tachain-sdk/models/api_declaration_file_request.rb +172 -0
- data/lib/tachain-sdk/models/api_declaration_form_request.rb +177 -0
- data/lib/tachain-sdk/models/{order_stage_form_datum_api_dto.rb → api_declaration_form_response.rb} +16 -49
- data/lib/tachain-sdk/models/api_declaration_list_response.rb +185 -0
- data/lib/tachain-sdk/models/api_declaration_submit_request.rb +171 -20
- data/lib/tachain-sdk/models/{api_declaration_submit_result_dto.rb → api_declaration_submit_response.rb} +10 -42
- data/lib/tachain-sdk/models/api_delivery_create_request.rb +292 -0
- data/lib/tachain-sdk/models/{result_brand_report_unlinked_order_detail.rb → api_delivery_delete_request.rb} +84 -60
- data/lib/tachain-sdk/models/api_delivery_detail_create_request.rb +353 -0
- data/lib/tachain-sdk/models/{delivery_note_detail_api_dto.rb → api_delivery_detail_response.rb} +23 -82
- data/lib/tachain-sdk/models/api_delivery_detail_update_request.rb +358 -0
- data/lib/tachain-sdk/models/{delivery_note_api_dto.rb → api_delivery_response.rb} +22 -192
- data/lib/tachain-sdk/models/api_delivery_update_request.rb +287 -0
- data/lib/tachain-sdk/models/{order_stage_form_dto.rb → api_document_form_response.rb} +16 -65
- data/lib/tachain-sdk/models/{document_type_api_dto.rb → api_document_type_response.rb} +30 -125
- data/lib/tachain-sdk/models/api_enum_value_response.rb +193 -0
- data/lib/tachain-sdk/models/{api_response_string.rb → api_error_response.rb} +22 -34
- data/lib/tachain-sdk/models/api_fiber_composition_request.rb +193 -0
- data/lib/tachain-sdk/models/api_fiber_composition_response.rb +160 -0
- data/lib/tachain-sdk/models/{attachment_in_api_dto.rb → api_file_response.rb} +23 -115
- data/lib/tachain-sdk/models/api_file_upload_response.rb +150 -0
- data/lib/tachain-sdk/models/api_mapping_response.rb +182 -0
- data/lib/tachain-sdk/models/api_material_create_request.rb +556 -0
- data/lib/tachain-sdk/models/api_material_response.rb +349 -0
- data/lib/tachain-sdk/models/api_material_update_request.rb +582 -0
- data/lib/tachain-sdk/models/{result_mapping_order_select.rb → api_order_accept_request.rb} +105 -70
- data/lib/tachain-sdk/models/api_order_confirm_receipt_request.rb +106 -29
- data/lib/tachain-sdk/models/api_order_create_request.rb +379 -0
- data/lib/tachain-sdk/models/api_order_declaration_verification_request.rb +293 -0
- data/lib/tachain-sdk/models/api_order_declaration_verification_response.rb +203 -0
- data/lib/tachain-sdk/models/api_order_delete_line_request.rb +315 -0
- data/lib/tachain-sdk/models/api_order_delete_request.rb +315 -0
- data/lib/tachain-sdk/models/api_order_line_create_request.rb +445 -0
- data/lib/tachain-sdk/models/{order_line_api_dto.rb → api_order_line_response.rb} +39 -330
- data/lib/tachain-sdk/models/api_order_line_update_request.rb +416 -0
- data/lib/tachain-sdk/models/api_order_receipt_pending_line_response.rb +171 -0
- data/lib/tachain-sdk/models/{microsoft_asp_net_core_mvc_problem_details.rb → api_order_receipt_pending_response.rb} +28 -45
- data/lib/tachain-sdk/models/api_order_receipt_result.rb +185 -0
- data/lib/tachain-sdk/models/{order_api_dto.rb → api_order_response.rb} +35 -291
- data/lib/tachain-sdk/models/api_order_submit_audit_request.rb +102 -42
- data/lib/tachain-sdk/models/api_order_submit_audit_response.rb +196 -0
- data/lib/tachain-sdk/models/api_order_update_request.rb +408 -0
- data/lib/tachain-sdk/models/api_page_result1_api_delivery_response.rb +220 -0
- data/lib/tachain-sdk/models/api_page_result1_api_material_response.rb +220 -0
- data/lib/tachain-sdk/models/api_page_result1_api_order_response.rb +220 -0
- data/lib/tachain-sdk/models/api_page_result1_api_process_route_response.rb +220 -0
- data/lib/tachain-sdk/models/{api_response_api_declaration_list_dto.rb → api_page_result1_api_product_response.rb} +48 -27
- data/lib/tachain-sdk/models/api_page_result1_api_production_response.rb +220 -0
- data/lib/tachain-sdk/models/{result_api_enum.rb → api_process_route_create_request.rb} +88 -62
- data/lib/tachain-sdk/models/api_process_route_response.rb +237 -0
- data/lib/tachain-sdk/models/{paged_response_delivery_note_api_dto.rb → api_process_route_update_request.rb} +102 -91
- data/lib/tachain-sdk/models/api_process_step_request.rb +201 -0
- data/lib/tachain-sdk/models/api_process_step_response.rb +171 -0
- data/lib/tachain-sdk/models/api_product_create_request.rb +595 -0
- data/lib/tachain-sdk/models/api_product_response.rb +373 -0
- data/lib/tachain-sdk/models/api_product_update_request.rb +621 -0
- data/lib/tachain-sdk/models/api_production_create_request.rb +381 -0
- data/lib/tachain-sdk/models/{api_integration_delete_request.rb → api_production_delete_request.rb} +22 -11
- data/lib/tachain-sdk/models/api_production_raw_material_create_request.rb +320 -0
- data/lib/tachain-sdk/models/{production_raw_material_api_dto.rb → api_production_raw_material_response.rb} +18 -118
- data/lib/tachain-sdk/models/api_production_raw_material_update_request.rb +325 -0
- data/lib/tachain-sdk/models/{production_api_dto.rb → api_production_response.rb} +23 -156
- data/lib/tachain-sdk/models/api_production_sales_order_create_request.rb +309 -0
- data/lib/tachain-sdk/models/{production_sales_order_api_dto.rb → api_production_sales_order_response.rb} +17 -94
- data/lib/tachain-sdk/models/api_production_sales_order_update_request.rb +314 -0
- data/lib/tachain-sdk/models/api_production_update_request.rb +392 -0
- data/lib/tachain-sdk/models/api_receipt_pending_item_response.rb +207 -0
- data/lib/tachain-sdk/models/api_reference_page_response1_api_enum_value_response.rb +162 -0
- data/lib/tachain-sdk/models/api_reference_page_response1_api_mapping_response.rb +162 -0
- data/lib/tachain-sdk/models/{api_response_production_api_dto.rb → api_result1_api_declaration_list_response.rb} +20 -33
- data/lib/tachain-sdk/models/api_result1_api_declaration_submit_response.rb +186 -0
- data/lib/tachain-sdk/models/{api_response_delivery_note_api_dto.rb → api_result1_api_delivery_response.rb} +20 -33
- data/lib/tachain-sdk/models/api_result1_api_file_upload_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_material_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_order_declaration_verification_response.rb +186 -0
- data/lib/tachain-sdk/models/{api_response_api_declaration_submit_result_dto.rb → api_result1_api_order_receipt_pending_response.rb} +20 -33
- data/lib/tachain-sdk/models/api_result1_api_order_receipt_result.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_order_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_order_submit_audit_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_process_route_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_product_response.rb +186 -0
- data/lib/tachain-sdk/models/api_result1_api_production_response.rb +186 -0
- data/lib/tachain-sdk/models/{api_response_order_api_dto.rb → api_result1_string.rb} +22 -33
- data/lib/tachain-sdk/models/{attachment_in_api_create_dto.rb → api_verification_file_response.rb} +106 -84
- data/lib/tachain-sdk/models/api_verification_response.rb +218 -0
- data/lib/tachain-sdk/models/delete_v1_declaration_delete200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_declaration_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_declaration_required_documents200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_delivery_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb +73 -171
- data/lib/tachain-sdk/models/get_v1_material_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_order_po_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_order_receipt_pending200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_process_route_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_product_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_production_list_paging200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_reference_enum_values200_response.rb +103 -0
- data/lib/tachain-sdk/models/get_v1_reference_mappings200_response.rb +103 -0
- data/lib/tachain-sdk/models/model1.rb +47 -14
- data/lib/tachain-sdk/models/model2.rb +190 -0
- data/lib/tachain-sdk/models/model3.rb +17 -33
- data/lib/tachain-sdk/models/model4.rb +17 -33
- data/lib/tachain-sdk/models/post_v1_declaration_submit200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_declaration_upload_file200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_material_create200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_order_create200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_order_declaration_verification200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_order_submit_audit200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_process_route_create200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_product_create200_response.rb +103 -0
- data/lib/tachain-sdk/models/post_v1_production_create200_response.rb +103 -0
- data/lib/tachain-sdk/models/put_v1_delivery_confirm_receipt200_response.rb +103 -0
- data/lib/tachain-sdk/models/put_v1_delivery_return_receipt200_response.rb +103 -0
- data/lib/tachain-sdk/models/put_v1_order_confirm_receipt200_response.rb +103 -0
- data/lib/tachain-sdk/version.rb +1 -1
- data/lib/tachain-sdk.rb +116 -51
- metadata +118 -53
- data/lib/tachain-sdk/models/api_declaration_list_dto.rb +0 -251
- data/lib/tachain-sdk/models/brand_kpi_policy_result.rb +0 -334
- data/lib/tachain-sdk/models/brand_order_kpi_snapshot_dto.rb +0 -880
- data/lib/tachain-sdk/models/brand_order_supplier_order_snapshot_dto.rb +0 -749
- data/lib/tachain-sdk/models/brand_order_uncompleted_declare_snapshot_dto.rb +0 -513
- data/lib/tachain-sdk/models/company.rb +0 -780
- data/lib/tachain-sdk/models/company_compliance_profile.rb +0 -547
- data/lib/tachain-sdk/models/company_utility_declaration.rb +0 -592
- data/lib/tachain-sdk/models/customer.rb +0 -569
- data/lib/tachain-sdk/models/factory.rb +0 -545
- data/lib/tachain-sdk/models/order.rb +0 -974
- data/lib/tachain-sdk/models/order_line.rb +0 -1184
- data/lib/tachain-sdk/models/order_stage_form_api_dto.rb +0 -270
- data/lib/tachain-sdk/models/paged_response_order_api_dto.rb +0 -296
- data/lib/tachain-sdk/models/paged_response_production_api_dto.rb +0 -296
- data/lib/tachain-sdk/models/production_raw_material_dto.rb +0 -548
- data/lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb +0 -331
- data/lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb +0 -418
- data/lib/tachain-sdk/models/result_order_trace_report.rb +0 -721
- data/lib/tachain-sdk/models/supplier.rb +0 -585
- data/lib/tachain-sdk/models/supplier_onboarding_ext.rb +0 -383
- data/lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb +0 -456
- data/lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb +0 -227
- data/lib/tachain-sdk/models/trader.rb +0 -506
data/lib/tachain-sdk.rb
CHANGED
|
@@ -18,74 +18,139 @@ require 'tachain-sdk/version'
|
|
|
18
18
|
require 'tachain-sdk/configuration'
|
|
19
19
|
|
|
20
20
|
# Models
|
|
21
|
+
require 'tachain-sdk/models/api_bom_line_request'
|
|
22
|
+
require 'tachain-sdk/models/api_bom_line_response'
|
|
23
|
+
require 'tachain-sdk/models/api_catalog_delete_request'
|
|
24
|
+
require 'tachain-sdk/models/api_declaration_attachment_response'
|
|
21
25
|
require 'tachain-sdk/models/api_declaration_delete_request'
|
|
22
26
|
require 'tachain-sdk/models/api_declaration_document_request'
|
|
23
|
-
require 'tachain-sdk/models/
|
|
27
|
+
require 'tachain-sdk/models/api_declaration_file_request'
|
|
28
|
+
require 'tachain-sdk/models/api_declaration_form_request'
|
|
29
|
+
require 'tachain-sdk/models/api_declaration_form_response'
|
|
30
|
+
require 'tachain-sdk/models/api_declaration_list_response'
|
|
24
31
|
require 'tachain-sdk/models/api_declaration_submit_request'
|
|
25
|
-
require 'tachain-sdk/models/
|
|
26
|
-
require 'tachain-sdk/models/
|
|
32
|
+
require 'tachain-sdk/models/api_declaration_submit_response'
|
|
33
|
+
require 'tachain-sdk/models/api_delivery_create_request'
|
|
34
|
+
require 'tachain-sdk/models/api_delivery_delete_request'
|
|
35
|
+
require 'tachain-sdk/models/api_delivery_detail_create_request'
|
|
36
|
+
require 'tachain-sdk/models/api_delivery_detail_response'
|
|
37
|
+
require 'tachain-sdk/models/api_delivery_detail_update_request'
|
|
38
|
+
require 'tachain-sdk/models/api_delivery_response'
|
|
39
|
+
require 'tachain-sdk/models/api_delivery_update_request'
|
|
40
|
+
require 'tachain-sdk/models/api_document_form_response'
|
|
41
|
+
require 'tachain-sdk/models/api_document_type_response'
|
|
42
|
+
require 'tachain-sdk/models/api_enum_value_response'
|
|
43
|
+
require 'tachain-sdk/models/api_error_response'
|
|
44
|
+
require 'tachain-sdk/models/api_fiber_composition_request'
|
|
45
|
+
require 'tachain-sdk/models/api_fiber_composition_response'
|
|
46
|
+
require 'tachain-sdk/models/api_file_response'
|
|
47
|
+
require 'tachain-sdk/models/api_file_upload_response'
|
|
48
|
+
require 'tachain-sdk/models/api_mapping_response'
|
|
49
|
+
require 'tachain-sdk/models/api_material_create_request'
|
|
50
|
+
require 'tachain-sdk/models/api_material_response'
|
|
51
|
+
require 'tachain-sdk/models/api_material_update_request'
|
|
52
|
+
require 'tachain-sdk/models/api_order_accept_request'
|
|
27
53
|
require 'tachain-sdk/models/api_order_confirm_receipt_request'
|
|
54
|
+
require 'tachain-sdk/models/api_order_create_request'
|
|
55
|
+
require 'tachain-sdk/models/api_order_declaration_verification_request'
|
|
56
|
+
require 'tachain-sdk/models/api_order_declaration_verification_response'
|
|
57
|
+
require 'tachain-sdk/models/api_order_delete_line_request'
|
|
58
|
+
require 'tachain-sdk/models/api_order_delete_request'
|
|
59
|
+
require 'tachain-sdk/models/api_order_line_create_request'
|
|
60
|
+
require 'tachain-sdk/models/api_order_line_response'
|
|
61
|
+
require 'tachain-sdk/models/api_order_line_update_request'
|
|
62
|
+
require 'tachain-sdk/models/api_order_receipt_pending_line_response'
|
|
63
|
+
require 'tachain-sdk/models/api_order_receipt_pending_response'
|
|
64
|
+
require 'tachain-sdk/models/api_order_receipt_result'
|
|
65
|
+
require 'tachain-sdk/models/api_order_response'
|
|
28
66
|
require 'tachain-sdk/models/api_order_submit_audit_request'
|
|
29
|
-
require 'tachain-sdk/models/
|
|
30
|
-
require 'tachain-sdk/models/
|
|
31
|
-
require 'tachain-sdk/models/
|
|
32
|
-
require 'tachain-sdk/models/
|
|
33
|
-
require 'tachain-sdk/models/
|
|
34
|
-
require 'tachain-sdk/models/
|
|
35
|
-
require 'tachain-sdk/models/
|
|
36
|
-
require 'tachain-sdk/models/
|
|
37
|
-
require 'tachain-sdk/models/
|
|
38
|
-
require 'tachain-sdk/models/
|
|
39
|
-
require 'tachain-sdk/models/
|
|
40
|
-
require 'tachain-sdk/models/
|
|
41
|
-
require 'tachain-sdk/models/
|
|
42
|
-
require 'tachain-sdk/models/
|
|
43
|
-
require 'tachain-sdk/models/
|
|
44
|
-
require 'tachain-sdk/models/
|
|
45
|
-
require 'tachain-sdk/models/
|
|
46
|
-
require 'tachain-sdk/models/
|
|
47
|
-
require 'tachain-sdk/models/
|
|
48
|
-
require 'tachain-sdk/models/
|
|
67
|
+
require 'tachain-sdk/models/api_order_submit_audit_response'
|
|
68
|
+
require 'tachain-sdk/models/api_order_update_request'
|
|
69
|
+
require 'tachain-sdk/models/api_page_result1_api_delivery_response'
|
|
70
|
+
require 'tachain-sdk/models/api_page_result1_api_material_response'
|
|
71
|
+
require 'tachain-sdk/models/api_page_result1_api_order_response'
|
|
72
|
+
require 'tachain-sdk/models/api_page_result1_api_process_route_response'
|
|
73
|
+
require 'tachain-sdk/models/api_page_result1_api_product_response'
|
|
74
|
+
require 'tachain-sdk/models/api_page_result1_api_production_response'
|
|
75
|
+
require 'tachain-sdk/models/api_process_route_create_request'
|
|
76
|
+
require 'tachain-sdk/models/api_process_route_response'
|
|
77
|
+
require 'tachain-sdk/models/api_process_route_update_request'
|
|
78
|
+
require 'tachain-sdk/models/api_process_step_request'
|
|
79
|
+
require 'tachain-sdk/models/api_process_step_response'
|
|
80
|
+
require 'tachain-sdk/models/api_product_create_request'
|
|
81
|
+
require 'tachain-sdk/models/api_product_response'
|
|
82
|
+
require 'tachain-sdk/models/api_product_update_request'
|
|
83
|
+
require 'tachain-sdk/models/api_production_create_request'
|
|
84
|
+
require 'tachain-sdk/models/api_production_delete_request'
|
|
85
|
+
require 'tachain-sdk/models/api_production_raw_material_create_request'
|
|
86
|
+
require 'tachain-sdk/models/api_production_raw_material_response'
|
|
87
|
+
require 'tachain-sdk/models/api_production_raw_material_update_request'
|
|
88
|
+
require 'tachain-sdk/models/api_production_response'
|
|
89
|
+
require 'tachain-sdk/models/api_production_sales_order_create_request'
|
|
90
|
+
require 'tachain-sdk/models/api_production_sales_order_response'
|
|
91
|
+
require 'tachain-sdk/models/api_production_sales_order_update_request'
|
|
92
|
+
require 'tachain-sdk/models/api_production_update_request'
|
|
93
|
+
require 'tachain-sdk/models/api_receipt_pending_item_response'
|
|
94
|
+
require 'tachain-sdk/models/api_reference_page_response1_api_enum_value_response'
|
|
95
|
+
require 'tachain-sdk/models/api_reference_page_response1_api_mapping_response'
|
|
96
|
+
require 'tachain-sdk/models/api_result1_api_declaration_list_response'
|
|
97
|
+
require 'tachain-sdk/models/api_result1_api_declaration_submit_response'
|
|
98
|
+
require 'tachain-sdk/models/api_result1_api_delivery_response'
|
|
99
|
+
require 'tachain-sdk/models/api_result1_api_file_upload_response'
|
|
100
|
+
require 'tachain-sdk/models/api_result1_api_material_response'
|
|
101
|
+
require 'tachain-sdk/models/api_result1_api_order_declaration_verification_response'
|
|
102
|
+
require 'tachain-sdk/models/api_result1_api_order_receipt_pending_response'
|
|
103
|
+
require 'tachain-sdk/models/api_result1_api_order_receipt_result'
|
|
104
|
+
require 'tachain-sdk/models/api_result1_api_order_response'
|
|
105
|
+
require 'tachain-sdk/models/api_result1_api_order_submit_audit_response'
|
|
106
|
+
require 'tachain-sdk/models/api_result1_api_process_route_response'
|
|
107
|
+
require 'tachain-sdk/models/api_result1_api_product_response'
|
|
108
|
+
require 'tachain-sdk/models/api_result1_api_production_response'
|
|
109
|
+
require 'tachain-sdk/models/api_result1_string'
|
|
110
|
+
require 'tachain-sdk/models/api_verification_file_response'
|
|
111
|
+
require 'tachain-sdk/models/api_verification_response'
|
|
112
|
+
require 'tachain-sdk/models/delete_v1_declaration_delete200_response'
|
|
113
|
+
require 'tachain-sdk/models/get_v1_declaration_list_paging200_response'
|
|
114
|
+
require 'tachain-sdk/models/get_v1_declaration_required_documents200_response'
|
|
115
|
+
require 'tachain-sdk/models/get_v1_delivery_list_paging200_response'
|
|
49
116
|
require 'tachain-sdk/models/get_v1_enum_get_list200_response'
|
|
50
|
-
require 'tachain-sdk/models/
|
|
117
|
+
require 'tachain-sdk/models/get_v1_material_list_paging200_response'
|
|
118
|
+
require 'tachain-sdk/models/get_v1_order_po_list_paging200_response'
|
|
119
|
+
require 'tachain-sdk/models/get_v1_order_receipt_pending200_response'
|
|
120
|
+
require 'tachain-sdk/models/get_v1_process_route_list_paging200_response'
|
|
121
|
+
require 'tachain-sdk/models/get_v1_product_list_paging200_response'
|
|
122
|
+
require 'tachain-sdk/models/get_v1_production_list_paging200_response'
|
|
123
|
+
require 'tachain-sdk/models/get_v1_reference_enum_values200_response'
|
|
124
|
+
require 'tachain-sdk/models/get_v1_reference_mappings200_response'
|
|
51
125
|
require 'tachain-sdk/models/model1'
|
|
126
|
+
require 'tachain-sdk/models/model2'
|
|
52
127
|
require 'tachain-sdk/models/model3'
|
|
53
128
|
require 'tachain-sdk/models/model4'
|
|
54
|
-
require 'tachain-sdk/models/
|
|
55
|
-
require 'tachain-sdk/models/
|
|
56
|
-
require 'tachain-sdk/models/
|
|
57
|
-
require 'tachain-sdk/models/
|
|
58
|
-
require 'tachain-sdk/models/
|
|
59
|
-
require 'tachain-sdk/models/
|
|
60
|
-
require 'tachain-sdk/models/
|
|
61
|
-
require 'tachain-sdk/models/
|
|
62
|
-
require 'tachain-sdk/models/
|
|
63
|
-
require 'tachain-sdk/models/
|
|
64
|
-
require 'tachain-sdk/models/
|
|
65
|
-
require 'tachain-sdk/models/
|
|
66
|
-
require 'tachain-sdk/models/production_raw_material_api_dto'
|
|
67
|
-
require 'tachain-sdk/models/production_raw_material_dto'
|
|
68
|
-
require 'tachain-sdk/models/production_sales_order_api_dto'
|
|
69
|
-
require 'tachain-sdk/models/result_api_enum'
|
|
70
|
-
require 'tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail'
|
|
71
|
-
require 'tachain-sdk/models/result_brand_report_unlinked_order_detail'
|
|
72
|
-
require 'tachain-sdk/models/result_kpi_archived_data_change_detail'
|
|
73
|
-
require 'tachain-sdk/models/result_mapping_order_select'
|
|
74
|
-
require 'tachain-sdk/models/result_order_trace_report'
|
|
75
|
-
require 'tachain-sdk/models/stage_attachment_api_dto'
|
|
76
|
-
require 'tachain-sdk/models/supplier'
|
|
77
|
-
require 'tachain-sdk/models/supplier_onboarding_ext'
|
|
78
|
-
require 'tachain-sdk/models/template_dto_business_risk_warn_info_dto'
|
|
79
|
-
require 'tachain-sdk/models/template_dto_multi_so_line_complete_status'
|
|
80
|
-
require 'tachain-sdk/models/trader'
|
|
129
|
+
require 'tachain-sdk/models/post_v1_declaration_submit200_response'
|
|
130
|
+
require 'tachain-sdk/models/post_v1_declaration_upload_file200_response'
|
|
131
|
+
require 'tachain-sdk/models/post_v1_material_create200_response'
|
|
132
|
+
require 'tachain-sdk/models/post_v1_order_create200_response'
|
|
133
|
+
require 'tachain-sdk/models/post_v1_order_declaration_verification200_response'
|
|
134
|
+
require 'tachain-sdk/models/post_v1_order_submit_audit200_response'
|
|
135
|
+
require 'tachain-sdk/models/post_v1_process_route_create200_response'
|
|
136
|
+
require 'tachain-sdk/models/post_v1_product_create200_response'
|
|
137
|
+
require 'tachain-sdk/models/post_v1_production_create200_response'
|
|
138
|
+
require 'tachain-sdk/models/put_v1_delivery_confirm_receipt200_response'
|
|
139
|
+
require 'tachain-sdk/models/put_v1_delivery_return_receipt200_response'
|
|
140
|
+
require 'tachain-sdk/models/put_v1_order_confirm_receipt200_response'
|
|
81
141
|
|
|
82
142
|
# APIs
|
|
83
143
|
require 'tachain-sdk/api/api_declaration_api'
|
|
144
|
+
require 'tachain-sdk/api/api_declaration_upload_api'
|
|
84
145
|
require 'tachain-sdk/api/api_delivery_api'
|
|
85
146
|
require 'tachain-sdk/api/api_enum_api'
|
|
147
|
+
require 'tachain-sdk/api/api_material_api'
|
|
86
148
|
require 'tachain-sdk/api/api_order_api'
|
|
87
149
|
require 'tachain-sdk/api/api_order_workflow_api'
|
|
150
|
+
require 'tachain-sdk/api/api_process_route_api'
|
|
151
|
+
require 'tachain-sdk/api/api_product_api'
|
|
88
152
|
require 'tachain-sdk/api/api_production_api'
|
|
153
|
+
require 'tachain-sdk/api/api_reference_api'
|
|
89
154
|
|
|
90
155
|
module TachainSdk
|
|
91
156
|
class << self
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tachain-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tactic Chain contributors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -65,75 +65,140 @@ files:
|
|
|
65
65
|
- git_push.sh
|
|
66
66
|
- lib/tachain-sdk.rb
|
|
67
67
|
- lib/tachain-sdk/api/api_declaration_api.rb
|
|
68
|
+
- lib/tachain-sdk/api/api_declaration_upload_api.rb
|
|
68
69
|
- lib/tachain-sdk/api/api_delivery_api.rb
|
|
69
70
|
- lib/tachain-sdk/api/api_enum_api.rb
|
|
71
|
+
- lib/tachain-sdk/api/api_material_api.rb
|
|
70
72
|
- lib/tachain-sdk/api/api_order_api.rb
|
|
71
73
|
- lib/tachain-sdk/api/api_order_workflow_api.rb
|
|
74
|
+
- lib/tachain-sdk/api/api_process_route_api.rb
|
|
75
|
+
- lib/tachain-sdk/api/api_product_api.rb
|
|
72
76
|
- lib/tachain-sdk/api/api_production_api.rb
|
|
77
|
+
- lib/tachain-sdk/api/api_reference_api.rb
|
|
73
78
|
- lib/tachain-sdk/api_client.rb
|
|
74
79
|
- lib/tachain-sdk/api_error.rb
|
|
75
80
|
- lib/tachain-sdk/api_model_base.rb
|
|
76
81
|
- lib/tachain-sdk/configuration.rb
|
|
82
|
+
- lib/tachain-sdk/models/api_bom_line_request.rb
|
|
83
|
+
- lib/tachain-sdk/models/api_bom_line_response.rb
|
|
84
|
+
- lib/tachain-sdk/models/api_catalog_delete_request.rb
|
|
85
|
+
- lib/tachain-sdk/models/api_declaration_attachment_response.rb
|
|
77
86
|
- lib/tachain-sdk/models/api_declaration_delete_request.rb
|
|
78
87
|
- lib/tachain-sdk/models/api_declaration_document_request.rb
|
|
79
|
-
- lib/tachain-sdk/models/
|
|
88
|
+
- lib/tachain-sdk/models/api_declaration_file_request.rb
|
|
89
|
+
- lib/tachain-sdk/models/api_declaration_form_request.rb
|
|
90
|
+
- lib/tachain-sdk/models/api_declaration_form_response.rb
|
|
91
|
+
- lib/tachain-sdk/models/api_declaration_list_response.rb
|
|
80
92
|
- lib/tachain-sdk/models/api_declaration_submit_request.rb
|
|
81
|
-
- lib/tachain-sdk/models/
|
|
82
|
-
- lib/tachain-sdk/models/
|
|
93
|
+
- lib/tachain-sdk/models/api_declaration_submit_response.rb
|
|
94
|
+
- lib/tachain-sdk/models/api_delivery_create_request.rb
|
|
95
|
+
- lib/tachain-sdk/models/api_delivery_delete_request.rb
|
|
96
|
+
- lib/tachain-sdk/models/api_delivery_detail_create_request.rb
|
|
97
|
+
- lib/tachain-sdk/models/api_delivery_detail_response.rb
|
|
98
|
+
- lib/tachain-sdk/models/api_delivery_detail_update_request.rb
|
|
99
|
+
- lib/tachain-sdk/models/api_delivery_response.rb
|
|
100
|
+
- lib/tachain-sdk/models/api_delivery_update_request.rb
|
|
101
|
+
- lib/tachain-sdk/models/api_document_form_response.rb
|
|
102
|
+
- lib/tachain-sdk/models/api_document_type_response.rb
|
|
103
|
+
- lib/tachain-sdk/models/api_enum_value_response.rb
|
|
104
|
+
- lib/tachain-sdk/models/api_error_response.rb
|
|
105
|
+
- lib/tachain-sdk/models/api_fiber_composition_request.rb
|
|
106
|
+
- lib/tachain-sdk/models/api_fiber_composition_response.rb
|
|
107
|
+
- lib/tachain-sdk/models/api_file_response.rb
|
|
108
|
+
- lib/tachain-sdk/models/api_file_upload_response.rb
|
|
109
|
+
- lib/tachain-sdk/models/api_mapping_response.rb
|
|
110
|
+
- lib/tachain-sdk/models/api_material_create_request.rb
|
|
111
|
+
- lib/tachain-sdk/models/api_material_response.rb
|
|
112
|
+
- lib/tachain-sdk/models/api_material_update_request.rb
|
|
113
|
+
- lib/tachain-sdk/models/api_order_accept_request.rb
|
|
83
114
|
- lib/tachain-sdk/models/api_order_confirm_receipt_request.rb
|
|
115
|
+
- lib/tachain-sdk/models/api_order_create_request.rb
|
|
116
|
+
- lib/tachain-sdk/models/api_order_declaration_verification_request.rb
|
|
117
|
+
- lib/tachain-sdk/models/api_order_declaration_verification_response.rb
|
|
118
|
+
- lib/tachain-sdk/models/api_order_delete_line_request.rb
|
|
119
|
+
- lib/tachain-sdk/models/api_order_delete_request.rb
|
|
120
|
+
- lib/tachain-sdk/models/api_order_line_create_request.rb
|
|
121
|
+
- lib/tachain-sdk/models/api_order_line_response.rb
|
|
122
|
+
- lib/tachain-sdk/models/api_order_line_update_request.rb
|
|
123
|
+
- lib/tachain-sdk/models/api_order_receipt_pending_line_response.rb
|
|
124
|
+
- lib/tachain-sdk/models/api_order_receipt_pending_response.rb
|
|
125
|
+
- lib/tachain-sdk/models/api_order_receipt_result.rb
|
|
126
|
+
- lib/tachain-sdk/models/api_order_response.rb
|
|
84
127
|
- lib/tachain-sdk/models/api_order_submit_audit_request.rb
|
|
85
|
-
- lib/tachain-sdk/models/
|
|
86
|
-
- lib/tachain-sdk/models/
|
|
87
|
-
- lib/tachain-sdk/models/
|
|
88
|
-
- lib/tachain-sdk/models/
|
|
89
|
-
- lib/tachain-sdk/models/
|
|
90
|
-
- lib/tachain-sdk/models/
|
|
91
|
-
- lib/tachain-sdk/models/
|
|
92
|
-
- lib/tachain-sdk/models/
|
|
93
|
-
- lib/tachain-sdk/models/
|
|
94
|
-
- lib/tachain-sdk/models/
|
|
95
|
-
- lib/tachain-sdk/models/
|
|
96
|
-
- lib/tachain-sdk/models/
|
|
97
|
-
- lib/tachain-sdk/models/
|
|
98
|
-
- lib/tachain-sdk/models/
|
|
99
|
-
- lib/tachain-sdk/models/
|
|
100
|
-
- lib/tachain-sdk/models/
|
|
101
|
-
- lib/tachain-sdk/models/
|
|
102
|
-
- lib/tachain-sdk/models/
|
|
103
|
-
- lib/tachain-sdk/models/
|
|
104
|
-
- lib/tachain-sdk/models/
|
|
128
|
+
- lib/tachain-sdk/models/api_order_submit_audit_response.rb
|
|
129
|
+
- lib/tachain-sdk/models/api_order_update_request.rb
|
|
130
|
+
- lib/tachain-sdk/models/api_page_result1_api_delivery_response.rb
|
|
131
|
+
- lib/tachain-sdk/models/api_page_result1_api_material_response.rb
|
|
132
|
+
- lib/tachain-sdk/models/api_page_result1_api_order_response.rb
|
|
133
|
+
- lib/tachain-sdk/models/api_page_result1_api_process_route_response.rb
|
|
134
|
+
- lib/tachain-sdk/models/api_page_result1_api_product_response.rb
|
|
135
|
+
- lib/tachain-sdk/models/api_page_result1_api_production_response.rb
|
|
136
|
+
- lib/tachain-sdk/models/api_process_route_create_request.rb
|
|
137
|
+
- lib/tachain-sdk/models/api_process_route_response.rb
|
|
138
|
+
- lib/tachain-sdk/models/api_process_route_update_request.rb
|
|
139
|
+
- lib/tachain-sdk/models/api_process_step_request.rb
|
|
140
|
+
- lib/tachain-sdk/models/api_process_step_response.rb
|
|
141
|
+
- lib/tachain-sdk/models/api_product_create_request.rb
|
|
142
|
+
- lib/tachain-sdk/models/api_product_response.rb
|
|
143
|
+
- lib/tachain-sdk/models/api_product_update_request.rb
|
|
144
|
+
- lib/tachain-sdk/models/api_production_create_request.rb
|
|
145
|
+
- lib/tachain-sdk/models/api_production_delete_request.rb
|
|
146
|
+
- lib/tachain-sdk/models/api_production_raw_material_create_request.rb
|
|
147
|
+
- lib/tachain-sdk/models/api_production_raw_material_response.rb
|
|
148
|
+
- lib/tachain-sdk/models/api_production_raw_material_update_request.rb
|
|
149
|
+
- lib/tachain-sdk/models/api_production_response.rb
|
|
150
|
+
- lib/tachain-sdk/models/api_production_sales_order_create_request.rb
|
|
151
|
+
- lib/tachain-sdk/models/api_production_sales_order_response.rb
|
|
152
|
+
- lib/tachain-sdk/models/api_production_sales_order_update_request.rb
|
|
153
|
+
- lib/tachain-sdk/models/api_production_update_request.rb
|
|
154
|
+
- lib/tachain-sdk/models/api_receipt_pending_item_response.rb
|
|
155
|
+
- lib/tachain-sdk/models/api_reference_page_response1_api_enum_value_response.rb
|
|
156
|
+
- lib/tachain-sdk/models/api_reference_page_response1_api_mapping_response.rb
|
|
157
|
+
- lib/tachain-sdk/models/api_result1_api_declaration_list_response.rb
|
|
158
|
+
- lib/tachain-sdk/models/api_result1_api_declaration_submit_response.rb
|
|
159
|
+
- lib/tachain-sdk/models/api_result1_api_delivery_response.rb
|
|
160
|
+
- lib/tachain-sdk/models/api_result1_api_file_upload_response.rb
|
|
161
|
+
- lib/tachain-sdk/models/api_result1_api_material_response.rb
|
|
162
|
+
- lib/tachain-sdk/models/api_result1_api_order_declaration_verification_response.rb
|
|
163
|
+
- lib/tachain-sdk/models/api_result1_api_order_receipt_pending_response.rb
|
|
164
|
+
- lib/tachain-sdk/models/api_result1_api_order_receipt_result.rb
|
|
165
|
+
- lib/tachain-sdk/models/api_result1_api_order_response.rb
|
|
166
|
+
- lib/tachain-sdk/models/api_result1_api_order_submit_audit_response.rb
|
|
167
|
+
- lib/tachain-sdk/models/api_result1_api_process_route_response.rb
|
|
168
|
+
- lib/tachain-sdk/models/api_result1_api_product_response.rb
|
|
169
|
+
- lib/tachain-sdk/models/api_result1_api_production_response.rb
|
|
170
|
+
- lib/tachain-sdk/models/api_result1_string.rb
|
|
171
|
+
- lib/tachain-sdk/models/api_verification_file_response.rb
|
|
172
|
+
- lib/tachain-sdk/models/api_verification_response.rb
|
|
173
|
+
- lib/tachain-sdk/models/delete_v1_declaration_delete200_response.rb
|
|
174
|
+
- lib/tachain-sdk/models/get_v1_declaration_list_paging200_response.rb
|
|
175
|
+
- lib/tachain-sdk/models/get_v1_declaration_required_documents200_response.rb
|
|
176
|
+
- lib/tachain-sdk/models/get_v1_delivery_list_paging200_response.rb
|
|
105
177
|
- lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb
|
|
106
|
-
- lib/tachain-sdk/models/
|
|
178
|
+
- lib/tachain-sdk/models/get_v1_material_list_paging200_response.rb
|
|
179
|
+
- lib/tachain-sdk/models/get_v1_order_po_list_paging200_response.rb
|
|
180
|
+
- lib/tachain-sdk/models/get_v1_order_receipt_pending200_response.rb
|
|
181
|
+
- lib/tachain-sdk/models/get_v1_process_route_list_paging200_response.rb
|
|
182
|
+
- lib/tachain-sdk/models/get_v1_product_list_paging200_response.rb
|
|
183
|
+
- lib/tachain-sdk/models/get_v1_production_list_paging200_response.rb
|
|
184
|
+
- lib/tachain-sdk/models/get_v1_reference_enum_values200_response.rb
|
|
185
|
+
- lib/tachain-sdk/models/get_v1_reference_mappings200_response.rb
|
|
107
186
|
- lib/tachain-sdk/models/model1.rb
|
|
187
|
+
- lib/tachain-sdk/models/model2.rb
|
|
108
188
|
- lib/tachain-sdk/models/model3.rb
|
|
109
189
|
- lib/tachain-sdk/models/model4.rb
|
|
110
|
-
- lib/tachain-sdk/models/
|
|
111
|
-
- lib/tachain-sdk/models/
|
|
112
|
-
- lib/tachain-sdk/models/
|
|
113
|
-
- lib/tachain-sdk/models/
|
|
114
|
-
- lib/tachain-sdk/models/
|
|
115
|
-
- lib/tachain-sdk/models/
|
|
116
|
-
- lib/tachain-sdk/models/
|
|
117
|
-
- lib/tachain-sdk/models/
|
|
118
|
-
- lib/tachain-sdk/models/
|
|
119
|
-
- lib/tachain-sdk/models/
|
|
120
|
-
- lib/tachain-sdk/models/
|
|
121
|
-
- lib/tachain-sdk/models/
|
|
122
|
-
- lib/tachain-sdk/models/production_raw_material_api_dto.rb
|
|
123
|
-
- lib/tachain-sdk/models/production_raw_material_dto.rb
|
|
124
|
-
- lib/tachain-sdk/models/production_sales_order_api_dto.rb
|
|
125
|
-
- lib/tachain-sdk/models/result_api_enum.rb
|
|
126
|
-
- lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb
|
|
127
|
-
- lib/tachain-sdk/models/result_brand_report_unlinked_order_detail.rb
|
|
128
|
-
- lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb
|
|
129
|
-
- lib/tachain-sdk/models/result_mapping_order_select.rb
|
|
130
|
-
- lib/tachain-sdk/models/result_order_trace_report.rb
|
|
131
|
-
- lib/tachain-sdk/models/stage_attachment_api_dto.rb
|
|
132
|
-
- lib/tachain-sdk/models/supplier.rb
|
|
133
|
-
- lib/tachain-sdk/models/supplier_onboarding_ext.rb
|
|
134
|
-
- lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb
|
|
135
|
-
- lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb
|
|
136
|
-
- lib/tachain-sdk/models/trader.rb
|
|
190
|
+
- lib/tachain-sdk/models/post_v1_declaration_submit200_response.rb
|
|
191
|
+
- lib/tachain-sdk/models/post_v1_declaration_upload_file200_response.rb
|
|
192
|
+
- lib/tachain-sdk/models/post_v1_material_create200_response.rb
|
|
193
|
+
- lib/tachain-sdk/models/post_v1_order_create200_response.rb
|
|
194
|
+
- lib/tachain-sdk/models/post_v1_order_declaration_verification200_response.rb
|
|
195
|
+
- lib/tachain-sdk/models/post_v1_order_submit_audit200_response.rb
|
|
196
|
+
- lib/tachain-sdk/models/post_v1_process_route_create200_response.rb
|
|
197
|
+
- lib/tachain-sdk/models/post_v1_product_create200_response.rb
|
|
198
|
+
- lib/tachain-sdk/models/post_v1_production_create200_response.rb
|
|
199
|
+
- lib/tachain-sdk/models/put_v1_delivery_confirm_receipt200_response.rb
|
|
200
|
+
- lib/tachain-sdk/models/put_v1_delivery_return_receipt200_response.rb
|
|
201
|
+
- lib/tachain-sdk/models/put_v1_order_confirm_receipt200_response.rb
|
|
137
202
|
- lib/tachain-sdk/signed_api_client.rb
|
|
138
203
|
- lib/tachain-sdk/version.rb
|
|
139
204
|
- spec/spec_helper.rb
|
|
@@ -1,251 +0,0 @@
|
|
|
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
|
-
# 申报资料查询结果。
|
|
18
|
-
class ApiDeclarationListDto < ApiModelBase
|
|
19
|
-
# 附件申报记录总数。
|
|
20
|
-
attr_accessor :attachment_total_count
|
|
21
|
-
|
|
22
|
-
# 表单申报记录总数。
|
|
23
|
-
attr_accessor :form_total_count
|
|
24
|
-
|
|
25
|
-
# 当前页附件申报记录。
|
|
26
|
-
attr_accessor :attachments
|
|
27
|
-
|
|
28
|
-
# 当前页表单申报记录。
|
|
29
|
-
attr_accessor :forms
|
|
30
|
-
|
|
31
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
-
def self.attribute_map
|
|
33
|
-
{
|
|
34
|
-
:'attachment_total_count' => :'attachmentTotalCount',
|
|
35
|
-
:'form_total_count' => :'formTotalCount',
|
|
36
|
-
:'attachments' => :'attachments',
|
|
37
|
-
:'forms' => :'forms'
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns attribute mapping this model knows about
|
|
42
|
-
def self.acceptable_attribute_map
|
|
43
|
-
attribute_map
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Returns all the JSON keys this model knows about
|
|
47
|
-
def self.acceptable_attributes
|
|
48
|
-
acceptable_attribute_map.values
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Attribute type mapping.
|
|
52
|
-
def self.openapi_types
|
|
53
|
-
{
|
|
54
|
-
:'attachment_total_count' => :'Integer',
|
|
55
|
-
:'form_total_count' => :'Integer',
|
|
56
|
-
:'attachments' => :'Array<StageAttachmentApiDto>',
|
|
57
|
-
:'forms' => :'Array<OrderStageFormDatumApiDto>'
|
|
58
|
-
}
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# List of attributes with nullable: true
|
|
62
|
-
def self.openapi_nullable
|
|
63
|
-
Set.new([
|
|
64
|
-
])
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
# Initializes the object
|
|
68
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
|
-
def initialize(attributes = {})
|
|
70
|
-
if (!attributes.is_a?(Hash))
|
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TachainSdk::ApiDeclarationListDto` initialize method"
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TachainSdk::ApiDeclarationListDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
|
-
end
|
|
80
|
-
h[k.to_sym] = v
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if attributes.key?(:'attachment_total_count')
|
|
84
|
-
self.attachment_total_count = attributes[:'attachment_total_count']
|
|
85
|
-
else
|
|
86
|
-
self.attachment_total_count = nil
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
if attributes.key?(:'form_total_count')
|
|
90
|
-
self.form_total_count = attributes[:'form_total_count']
|
|
91
|
-
else
|
|
92
|
-
self.form_total_count = nil
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'attachments')
|
|
96
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
|
97
|
-
self.attachments = value
|
|
98
|
-
end
|
|
99
|
-
else
|
|
100
|
-
self.attachments = nil
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'forms')
|
|
104
|
-
if (value = attributes[:'forms']).is_a?(Array)
|
|
105
|
-
self.forms = value
|
|
106
|
-
end
|
|
107
|
-
else
|
|
108
|
-
self.forms = nil
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
|
-
# @return Array for valid properties with the reasons
|
|
114
|
-
def list_invalid_properties
|
|
115
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
116
|
-
invalid_properties = Array.new
|
|
117
|
-
if @attachment_total_count.nil?
|
|
118
|
-
invalid_properties.push('invalid value for "attachment_total_count", attachment_total_count cannot be nil.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if @form_total_count.nil?
|
|
122
|
-
invalid_properties.push('invalid value for "form_total_count", form_total_count cannot be nil.')
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
if @attachments.nil?
|
|
126
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if @forms.nil?
|
|
130
|
-
invalid_properties.push('invalid value for "forms", forms cannot be nil.')
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
invalid_properties
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Check to see if the all the properties in the model are valid
|
|
137
|
-
# @return true if the model is valid
|
|
138
|
-
def valid?
|
|
139
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
140
|
-
return false if @attachment_total_count.nil?
|
|
141
|
-
return false if @form_total_count.nil?
|
|
142
|
-
return false if @attachments.nil?
|
|
143
|
-
return false if @forms.nil?
|
|
144
|
-
true
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param [Object] attachment_total_count Value to be assigned
|
|
149
|
-
def attachment_total_count=(attachment_total_count)
|
|
150
|
-
if attachment_total_count.nil?
|
|
151
|
-
fail ArgumentError, 'attachment_total_count cannot be nil'
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
@attachment_total_count = attachment_total_count
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# Custom attribute writer method with validation
|
|
158
|
-
# @param [Object] form_total_count Value to be assigned
|
|
159
|
-
def form_total_count=(form_total_count)
|
|
160
|
-
if form_total_count.nil?
|
|
161
|
-
fail ArgumentError, 'form_total_count cannot be nil'
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
@form_total_count = form_total_count
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# Custom attribute writer method with validation
|
|
168
|
-
# @param [Object] attachments Value to be assigned
|
|
169
|
-
def attachments=(attachments)
|
|
170
|
-
if attachments.nil?
|
|
171
|
-
fail ArgumentError, 'attachments cannot be nil'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@attachments = attachments
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] forms Value to be assigned
|
|
179
|
-
def forms=(forms)
|
|
180
|
-
if forms.nil?
|
|
181
|
-
fail ArgumentError, 'forms cannot be nil'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
@forms = forms
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# Checks equality by comparing each attribute.
|
|
188
|
-
# @param [Object] Object to be compared
|
|
189
|
-
def ==(o)
|
|
190
|
-
return true if self.equal?(o)
|
|
191
|
-
self.class == o.class &&
|
|
192
|
-
attachment_total_count == o.attachment_total_count &&
|
|
193
|
-
form_total_count == o.form_total_count &&
|
|
194
|
-
attachments == o.attachments &&
|
|
195
|
-
forms == o.forms
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# @see the `==` method
|
|
199
|
-
# @param [Object] Object to be compared
|
|
200
|
-
def eql?(o)
|
|
201
|
-
self == o
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# Calculates hash code according to all attributes.
|
|
205
|
-
# @return [Integer] Hash code
|
|
206
|
-
def hash
|
|
207
|
-
[attachment_total_count, form_total_count, attachments, forms].hash
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
# Builds the object from hash
|
|
211
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
212
|
-
# @return [Object] Returns the model itself
|
|
213
|
-
def self.build_from_hash(attributes)
|
|
214
|
-
return nil unless attributes.is_a?(Hash)
|
|
215
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
216
|
-
transformed_hash = {}
|
|
217
|
-
openapi_types.each_pair do |key, type|
|
|
218
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
219
|
-
transformed_hash["#{key}"] = nil
|
|
220
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
221
|
-
# check to ensure the input is an array given that the attribute
|
|
222
|
-
# is documented as an array but the input is not
|
|
223
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
224
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
225
|
-
end
|
|
226
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
227
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
new(transformed_hash)
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# Returns the object in the form of hash
|
|
234
|
-
# @return [Hash] Returns the object in the form of hash
|
|
235
|
-
def to_hash
|
|
236
|
-
hash = {}
|
|
237
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
238
|
-
value = self.send(attr)
|
|
239
|
-
if value.nil?
|
|
240
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
hash[param] = _to_hash(value)
|
|
245
|
-
end
|
|
246
|
-
hash
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
end
|