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
|
@@ -23,12 +23,12 @@ module TachainSdk
|
|
|
23
23
|
# 删除前会校验: 1. 生产单必须存在; 2. 生产单必须属于当前集成凭证对应租户和公司; 3. 生产单状态必须允许删除; 4. 领料或库存已被后续使用时,服务层会返回不可删除。
|
|
24
24
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [String] :id
|
|
27
|
-
# @option opts [String] :number
|
|
28
|
-
# @option opts [String] :product_code
|
|
29
|
-
# @option opts [Integer] :type
|
|
30
|
-
# @option opts [
|
|
31
|
-
# @return [
|
|
26
|
+
# @option opts [String] :id 查询返回的单据 ID,可选;优先使用本文业务组合。
|
|
27
|
+
# @option opts [String] :number 生产/发货单号;定位接口精确匹配,列表 number 为筛选。
|
|
28
|
+
# @option opts [String] :product_code 当前公司成品编码、名称或 Product/Material 外部映射值(列表以实际筛选字段为准)。
|
|
29
|
+
# @option opts [Integer] :type 生产类型:0=MTO,1=MTS;修改/删除时可选校验,不是唯一定位必填条件。
|
|
30
|
+
# @option opts [ApiProductionDeleteRequest] :api_production_delete_request
|
|
31
|
+
# @return [DeleteV1DeclarationDelete200Response]
|
|
32
32
|
def delete_v1_production_delete(x_credential_type, opts = {})
|
|
33
33
|
data, _status_code, _headers = delete_v1_production_delete_with_http_info(x_credential_type, opts)
|
|
34
34
|
data
|
|
@@ -38,12 +38,12 @@ module TachainSdk
|
|
|
38
38
|
# 删除前会校验: 1. 生产单必须存在; 2. 生产单必须属于当前集成凭证对应租户和公司; 3. 生产单状态必须允许删除; 4. 领料或库存已被后续使用时,服务层会返回不可删除。
|
|
39
39
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @option opts [String] :id
|
|
42
|
-
# @option opts [String] :number
|
|
43
|
-
# @option opts [String] :product_code
|
|
44
|
-
# @option opts [Integer] :type
|
|
45
|
-
# @option opts [
|
|
46
|
-
# @return [Array<(
|
|
41
|
+
# @option opts [String] :id 查询返回的单据 ID,可选;优先使用本文业务组合。
|
|
42
|
+
# @option opts [String] :number 生产/发货单号;定位接口精确匹配,列表 number 为筛选。
|
|
43
|
+
# @option opts [String] :product_code 当前公司成品编码、名称或 Product/Material 外部映射值(列表以实际筛选字段为准)。
|
|
44
|
+
# @option opts [Integer] :type 生产类型:0=MTO,1=MTS;修改/删除时可选校验,不是唯一定位必填条件。
|
|
45
|
+
# @option opts [ApiProductionDeleteRequest] :api_production_delete_request
|
|
46
|
+
# @return [Array<(DeleteV1DeclarationDelete200Response, Integer, Hash)>] DeleteV1DeclarationDelete200Response data, response status code and response headers
|
|
47
47
|
def delete_v1_production_delete_with_http_info(x_credential_type, opts = {})
|
|
48
48
|
if @api_client.config.debugging
|
|
49
49
|
@api_client.config.logger.debug 'Calling API: ApiProductionApi.delete_v1_production_delete ...'
|
|
@@ -82,10 +82,10 @@ module TachainSdk
|
|
|
82
82
|
form_params = opts[:form_params] || {}
|
|
83
83
|
|
|
84
84
|
# http body (model)
|
|
85
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
85
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'api_production_delete_request'])
|
|
86
86
|
|
|
87
87
|
# return_type
|
|
88
|
-
return_type = opts[:debug_return_type] || '
|
|
88
|
+
return_type = opts[:debug_return_type] || 'DeleteV1DeclarationDelete200Response'
|
|
89
89
|
|
|
90
90
|
# auth_names
|
|
91
91
|
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
@@ -108,110 +108,108 @@ module TachainSdk
|
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
# 查询生产记录单及详细领料信息。
|
|
111
|
-
#
|
|
111
|
+
# 按生产单分页,同一生产单只返回一次。没有可见领料的生产单仍会返回,领料集合为空。 只有提供采购领料筛选条件时才要求匹配有效领料;总数为符合条件的生产单数。
|
|
112
112
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
113
113
|
# @param [Hash] opts the optional parameters
|
|
114
|
-
# @option opts [String] :search_text
|
|
115
|
-
# @option opts [String] :number
|
|
116
|
-
# @option opts [String] :product_code
|
|
117
|
-
# @option opts [String] :product_name
|
|
118
|
-
# @option opts [Time] :production_date_start
|
|
119
|
-
# @option opts [Time] :production_date_end
|
|
120
|
-
# @option opts [String] :batch
|
|
121
|
-
# @option opts [Integer] :type
|
|
122
|
-
# @option opts [Integer] :status
|
|
123
|
-
# @option opts [String] :facility_id
|
|
124
|
-
# @option opts [String] :facility_code
|
|
125
|
-
# @option opts [Integer] :process_route_id
|
|
126
|
-
# @option opts [String] :process_route_code
|
|
127
|
-
# @option opts [String] :created_by
|
|
128
|
-
# @option opts [Time] :created_at_start
|
|
129
|
-
# @option opts [Time] :created_at_end
|
|
130
|
-
# @option opts [String] :sales_order_line_id
|
|
131
|
-
# @option opts [Float] :quantity_produced
|
|
132
|
-
# @option opts [String] :unit
|
|
133
|
-
# @option opts [String] :
|
|
134
|
-
# @option opts [String] :
|
|
135
|
-
# @option opts [String] :
|
|
136
|
-
# @option opts [String] :
|
|
137
|
-
# @option opts [String] :
|
|
138
|
-
# @option opts [String] :
|
|
139
|
-
# @option opts [String] :
|
|
140
|
-
# @option opts [String] :
|
|
141
|
-
# @option opts [String] :
|
|
142
|
-
# @option opts [String] :
|
|
143
|
-
# @option opts [String] :
|
|
144
|
-
# @option opts [String] :
|
|
145
|
-
# @option opts [
|
|
146
|
-
# @option opts [
|
|
147
|
-
# @option opts [
|
|
148
|
-
# @option opts [
|
|
149
|
-
# @option opts [
|
|
150
|
-
# @option opts [
|
|
151
|
-
# @option opts [
|
|
152
|
-
# @option opts [Integer] :
|
|
153
|
-
# @option opts [Integer] :
|
|
154
|
-
# @option opts [String] :
|
|
155
|
-
# @option opts [String] :
|
|
156
|
-
# @option opts [
|
|
157
|
-
# @option opts [
|
|
158
|
-
# @
|
|
159
|
-
# @return [PagedResponseProductionApiDto]
|
|
114
|
+
# @option opts [String] :search_text 关键词搜索,具体匹配范围见本接口说明。
|
|
115
|
+
# @option opts [String] :number 生产/发货单号;定位接口精确匹配,列表 number 为筛选。
|
|
116
|
+
# @option opts [String] :product_code 当前公司成品编码、名称或 Product/Material 外部映射值(列表以实际筛选字段为准)。
|
|
117
|
+
# @option opts [String] :product_name 可选业务筛选条件;与其他条件同时生效。
|
|
118
|
+
# @option opts [Time] :production_date_start 可选业务筛选条件;与其他条件同时生效。
|
|
119
|
+
# @option opts [Time] :production_date_end 可选业务筛选条件;与其他条件同时生效。
|
|
120
|
+
# @option opts [String] :batch 可选业务筛选条件;与其他条件同时生效。
|
|
121
|
+
# @option opts [Integer] :type 生产类型:0=MTO,1=MTS;修改/删除时可选校验,不是唯一定位必填条件。
|
|
122
|
+
# @option opts [Integer] :status 查询状态过滤,不作为写入状态字段开放。
|
|
123
|
+
# @option opts [String] :facility_id 可选业务筛选条件;与其他条件同时生效。
|
|
124
|
+
# @option opts [String] :facility_code 工厂枚举 Code(当地名称)、Name、简称或工厂外部映射。
|
|
125
|
+
# @option opts [Integer] :process_route_id 可选业务筛选条件;与其他条件同时生效。
|
|
126
|
+
# @option opts [String] :process_route_code 工艺路线 Code/Name 或外部映射。
|
|
127
|
+
# @option opts [String] :created_by 可选业务筛选条件;与其他条件同时生效。
|
|
128
|
+
# @option opts [Time] :created_at_start 创建时间下限。
|
|
129
|
+
# @option opts [Time] :created_at_end 创建时间上限。
|
|
130
|
+
# @option opts [String] :sales_order_line_id 查询返回的销售订单明细 ID,可选;写入支持三种流水号或订单业务组合替代。
|
|
131
|
+
# @option opts [Float] :quantity_produced 可选业务筛选条件;与其他条件同时生效。
|
|
132
|
+
# @option opts [String] :unit 单位,支持枚举 Code/Name/ExtCode,服务端解析内部单位。
|
|
133
|
+
# @option opts [String] :unique_no 系统生成的订单明细全局流水号,查询返回后可直接使用;不可自行生成。
|
|
134
|
+
# @option opts [String] :line_number 订单行号。流水号可以替代它;需要按行操作时最终必须唯一匹配。
|
|
135
|
+
# @option opts [String] :product_category 可选业务筛选条件;与其他条件同时生效。
|
|
136
|
+
# @option opts [String] :material_id 可选业务筛选条件;与其他条件同时生效。
|
|
137
|
+
# @option opts [String] :material_code 可选业务筛选条件;与其他条件同时生效。
|
|
138
|
+
# @option opts [String] :material_name 可选业务筛选条件;与其他条件同时生效。
|
|
139
|
+
# @option opts [String] :product_id 可选业务筛选条件;与其他条件同时生效。
|
|
140
|
+
# @option opts [String] :destination_country 可选业务筛选条件;与其他条件同时生效。
|
|
141
|
+
# @option opts [String] :customer_ext_no 买方外部系统的订单明细流水号;重复时补充交易对方/订单条件。
|
|
142
|
+
# @option opts [String] :supplier_ext_no 卖方外部系统的订单明细流水号;重复时补充交易对方/订单条件。
|
|
143
|
+
# @option opts [String] :origin_country 可选业务筛选条件;与其他条件同时生效。
|
|
144
|
+
# @option opts [String] :season 可选业务筛选条件;与其他条件同时生效。
|
|
145
|
+
# @option opts [String] :season_year 可选业务筛选条件;与其他条件同时生效。
|
|
146
|
+
# @option opts [String] :color 可选业务筛选条件;与其他条件同时生效。
|
|
147
|
+
# @option opts [Integer] :so_status 销售状态:6 销售方拒绝变更、7 拒绝接单、8 待销售确认变更、9 待接单、10 待生产、20 待发货、30 已发货、40 待收货、50 已收货、60 已使用、70 已用完。 相关收货确认状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。 相关品牌审核状态:99101 品牌草稿、99102 品牌待审核、99103 重新提交待品牌审核、99111 品牌取消审核、99113 品牌审核作废、99114 品牌驳回、99115 品牌审核拒绝、99120 品牌审核通过。 收货确认和品牌审核状态仅作含义说明,不支持通过本参数筛选。
|
|
148
|
+
# @option opts [Integer] :po_status 采购状态:6 销售方拒绝变更、7 拒绝接单、8 待销售确认变更、9 待接单、10 待生产、20 待发货、30 已发货、40 待收货、50 已收货、60 已使用、70 已用完。 相关收货确认状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。 相关品牌审核状态:99101 品牌草稿、99102 品牌待审核、99103 重新提交待品牌审核、99111 品牌取消审核、99113 品牌审核作废、99114 品牌驳回、99115 品牌审核拒绝、99120 品牌审核通过。 收货确认和品牌审核状态仅作含义说明,不支持通过本参数筛选。
|
|
149
|
+
# @option opts [String] :order_id 订单主 ID,可选;可改用订单号、日期、交易对方或流水号。
|
|
150
|
+
# @option opts [String] :order_number 订单号。定位操作使用精确匹配;列表接口作为筛选条件。
|
|
151
|
+
# @option opts [Time] :order_date 订单日期 yyyy-MM-dd,业务定位按当天范围匹配。
|
|
152
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
153
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 10)
|
|
154
|
+
# @option opts [String] :customer_code 客户业务编码、名称或当前公司启用的 Customer/Company 外部映射值。
|
|
155
|
+
# @option opts [String] :supplier_code 供应商业务编码、名称或当前公司启用的 Supplier/Company 外部映射值。
|
|
156
|
+
# @option opts [String] :customer_name 客户英文名、当地语言名称或简称,精确匹配。
|
|
157
|
+
# @option opts [String] :supplier_name 供应商英文名、当地语言名称或简称,精确匹配。
|
|
158
|
+
# @return [GetV1ProductionListPaging200Response]
|
|
160
159
|
def get_v1_production_list_paging(x_credential_type, opts = {})
|
|
161
160
|
data, _status_code, _headers = get_v1_production_list_paging_with_http_info(x_credential_type, opts)
|
|
162
161
|
data
|
|
163
162
|
end
|
|
164
163
|
|
|
165
164
|
# 查询生产记录单及详细领料信息。
|
|
166
|
-
#
|
|
165
|
+
# 按生产单分页,同一生产单只返回一次。没有可见领料的生产单仍会返回,领料集合为空。 只有提供采购领料筛选条件时才要求匹配有效领料;总数为符合条件的生产单数。
|
|
167
166
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
168
167
|
# @param [Hash] opts the optional parameters
|
|
169
|
-
# @option opts [String] :search_text
|
|
170
|
-
# @option opts [String] :number
|
|
171
|
-
# @option opts [String] :product_code
|
|
172
|
-
# @option opts [String] :product_name
|
|
173
|
-
# @option opts [Time] :production_date_start
|
|
174
|
-
# @option opts [Time] :production_date_end
|
|
175
|
-
# @option opts [String] :batch
|
|
176
|
-
# @option opts [Integer] :type
|
|
177
|
-
# @option opts [Integer] :status
|
|
178
|
-
# @option opts [String] :facility_id
|
|
179
|
-
# @option opts [String] :facility_code
|
|
180
|
-
# @option opts [Integer] :process_route_id
|
|
181
|
-
# @option opts [String] :process_route_code
|
|
182
|
-
# @option opts [String] :created_by
|
|
183
|
-
# @option opts [Time] :created_at_start
|
|
184
|
-
# @option opts [Time] :created_at_end
|
|
185
|
-
# @option opts [String] :sales_order_line_id
|
|
186
|
-
# @option opts [Float] :quantity_produced
|
|
187
|
-
# @option opts [String] :unit
|
|
188
|
-
# @option opts [String] :
|
|
189
|
-
# @option opts [String] :
|
|
190
|
-
# @option opts [String] :
|
|
191
|
-
# @option opts [String] :
|
|
192
|
-
# @option opts [String] :
|
|
193
|
-
# @option opts [String] :
|
|
194
|
-
# @option opts [String] :
|
|
195
|
-
# @option opts [String] :
|
|
196
|
-
# @option opts [String] :
|
|
197
|
-
# @option opts [String] :
|
|
198
|
-
# @option opts [String] :
|
|
199
|
-
# @option opts [String] :
|
|
200
|
-
# @option opts [
|
|
201
|
-
# @option opts [
|
|
202
|
-
# @option opts [
|
|
203
|
-
# @option opts [
|
|
204
|
-
# @option opts [
|
|
205
|
-
# @option opts [
|
|
206
|
-
# @option opts [
|
|
207
|
-
# @option opts [Integer] :
|
|
208
|
-
# @option opts [Integer] :
|
|
209
|
-
# @option opts [String] :
|
|
210
|
-
# @option opts [String] :
|
|
211
|
-
# @option opts [
|
|
212
|
-
# @option opts [
|
|
213
|
-
# @
|
|
214
|
-
# @return [Array<(PagedResponseProductionApiDto, Integer, Hash)>] PagedResponseProductionApiDto data, response status code and response headers
|
|
168
|
+
# @option opts [String] :search_text 关键词搜索,具体匹配范围见本接口说明。
|
|
169
|
+
# @option opts [String] :number 生产/发货单号;定位接口精确匹配,列表 number 为筛选。
|
|
170
|
+
# @option opts [String] :product_code 当前公司成品编码、名称或 Product/Material 外部映射值(列表以实际筛选字段为准)。
|
|
171
|
+
# @option opts [String] :product_name 可选业务筛选条件;与其他条件同时生效。
|
|
172
|
+
# @option opts [Time] :production_date_start 可选业务筛选条件;与其他条件同时生效。
|
|
173
|
+
# @option opts [Time] :production_date_end 可选业务筛选条件;与其他条件同时生效。
|
|
174
|
+
# @option opts [String] :batch 可选业务筛选条件;与其他条件同时生效。
|
|
175
|
+
# @option opts [Integer] :type 生产类型:0=MTO,1=MTS;修改/删除时可选校验,不是唯一定位必填条件。
|
|
176
|
+
# @option opts [Integer] :status 查询状态过滤,不作为写入状态字段开放。
|
|
177
|
+
# @option opts [String] :facility_id 可选业务筛选条件;与其他条件同时生效。
|
|
178
|
+
# @option opts [String] :facility_code 工厂枚举 Code(当地名称)、Name、简称或工厂外部映射。
|
|
179
|
+
# @option opts [Integer] :process_route_id 可选业务筛选条件;与其他条件同时生效。
|
|
180
|
+
# @option opts [String] :process_route_code 工艺路线 Code/Name 或外部映射。
|
|
181
|
+
# @option opts [String] :created_by 可选业务筛选条件;与其他条件同时生效。
|
|
182
|
+
# @option opts [Time] :created_at_start 创建时间下限。
|
|
183
|
+
# @option opts [Time] :created_at_end 创建时间上限。
|
|
184
|
+
# @option opts [String] :sales_order_line_id 查询返回的销售订单明细 ID,可选;写入支持三种流水号或订单业务组合替代。
|
|
185
|
+
# @option opts [Float] :quantity_produced 可选业务筛选条件;与其他条件同时生效。
|
|
186
|
+
# @option opts [String] :unit 单位,支持枚举 Code/Name/ExtCode,服务端解析内部单位。
|
|
187
|
+
# @option opts [String] :unique_no 系统生成的订单明细全局流水号,查询返回后可直接使用;不可自行生成。
|
|
188
|
+
# @option opts [String] :line_number 订单行号。流水号可以替代它;需要按行操作时最终必须唯一匹配。
|
|
189
|
+
# @option opts [String] :product_category 可选业务筛选条件;与其他条件同时生效。
|
|
190
|
+
# @option opts [String] :material_id 可选业务筛选条件;与其他条件同时生效。
|
|
191
|
+
# @option opts [String] :material_code 可选业务筛选条件;与其他条件同时生效。
|
|
192
|
+
# @option opts [String] :material_name 可选业务筛选条件;与其他条件同时生效。
|
|
193
|
+
# @option opts [String] :product_id 可选业务筛选条件;与其他条件同时生效。
|
|
194
|
+
# @option opts [String] :destination_country 可选业务筛选条件;与其他条件同时生效。
|
|
195
|
+
# @option opts [String] :customer_ext_no 买方外部系统的订单明细流水号;重复时补充交易对方/订单条件。
|
|
196
|
+
# @option opts [String] :supplier_ext_no 卖方外部系统的订单明细流水号;重复时补充交易对方/订单条件。
|
|
197
|
+
# @option opts [String] :origin_country 可选业务筛选条件;与其他条件同时生效。
|
|
198
|
+
# @option opts [String] :season 可选业务筛选条件;与其他条件同时生效。
|
|
199
|
+
# @option opts [String] :season_year 可选业务筛选条件;与其他条件同时生效。
|
|
200
|
+
# @option opts [String] :color 可选业务筛选条件;与其他条件同时生效。
|
|
201
|
+
# @option opts [Integer] :so_status 销售状态:6 销售方拒绝变更、7 拒绝接单、8 待销售确认变更、9 待接单、10 待生产、20 待发货、30 已发货、40 待收货、50 已收货、60 已使用、70 已用完。 相关收货确认状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。 相关品牌审核状态:99101 品牌草稿、99102 品牌待审核、99103 重新提交待品牌审核、99111 品牌取消审核、99113 品牌审核作废、99114 品牌驳回、99115 品牌审核拒绝、99120 品牌审核通过。 收货确认和品牌审核状态仅作含义说明,不支持通过本参数筛选。
|
|
202
|
+
# @option opts [Integer] :po_status 采购状态:6 销售方拒绝变更、7 拒绝接单、8 待销售确认变更、9 待接单、10 待生产、20 待发货、30 已发货、40 待收货、50 已收货、60 已使用、70 已用完。 相关收货确认状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。 相关品牌审核状态:99101 品牌草稿、99102 品牌待审核、99103 重新提交待品牌审核、99111 品牌取消审核、99113 品牌审核作废、99114 品牌驳回、99115 品牌审核拒绝、99120 品牌审核通过。 收货确认和品牌审核状态仅作含义说明,不支持通过本参数筛选。
|
|
203
|
+
# @option opts [String] :order_id 订单主 ID,可选;可改用订单号、日期、交易对方或流水号。
|
|
204
|
+
# @option opts [String] :order_number 订单号。定位操作使用精确匹配;列表接口作为筛选条件。
|
|
205
|
+
# @option opts [Time] :order_date 订单日期 yyyy-MM-dd,业务定位按当天范围匹配。
|
|
206
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
207
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 10)
|
|
208
|
+
# @option opts [String] :customer_code 客户业务编码、名称或当前公司启用的 Customer/Company 外部映射值。
|
|
209
|
+
# @option opts [String] :supplier_code 供应商业务编码、名称或当前公司启用的 Supplier/Company 外部映射值。
|
|
210
|
+
# @option opts [String] :customer_name 客户英文名、当地语言名称或简称,精确匹配。
|
|
211
|
+
# @option opts [String] :supplier_name 供应商英文名、当地语言名称或简称,精确匹配。
|
|
212
|
+
# @return [Array<(GetV1ProductionListPaging200Response, Integer, Hash)>] GetV1ProductionListPaging200Response data, response status code and response headers
|
|
215
213
|
def get_v1_production_list_paging_with_http_info(x_credential_type, opts = {})
|
|
216
214
|
if @api_client.config.debugging
|
|
217
215
|
@api_client.config.logger.debug 'Calling API: ApiProductionApi.get_v1_production_list_paging ...'
|
|
@@ -249,7 +247,6 @@ module TachainSdk
|
|
|
249
247
|
query_params[:'salesOrderLineId'] = opts[:'sales_order_line_id'] if !opts[:'sales_order_line_id'].nil?
|
|
250
248
|
query_params[:'quantityProduced'] = opts[:'quantity_produced'] if !opts[:'quantity_produced'].nil?
|
|
251
249
|
query_params[:'unit'] = opts[:'unit'] if !opts[:'unit'].nil?
|
|
252
|
-
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
253
250
|
query_params[:'uniqueNo'] = opts[:'unique_no'] if !opts[:'unique_no'].nil?
|
|
254
251
|
query_params[:'lineNumber'] = opts[:'line_number'] if !opts[:'line_number'].nil?
|
|
255
252
|
query_params[:'productCategory'] = opts[:'product_category'] if !opts[:'product_category'].nil?
|
|
@@ -261,12 +258,8 @@ module TachainSdk
|
|
|
261
258
|
query_params[:'customerExtNo'] = opts[:'customer_ext_no'] if !opts[:'customer_ext_no'].nil?
|
|
262
259
|
query_params[:'supplierExtNo'] = opts[:'supplier_ext_no'] if !opts[:'supplier_ext_no'].nil?
|
|
263
260
|
query_params[:'originCountry'] = opts[:'origin_country'] if !opts[:'origin_country'].nil?
|
|
264
|
-
query_params[:'estimatedTimeOfDepartureStart'] = opts[:'estimated_time_of_departure_start'] if !opts[:'estimated_time_of_departure_start'].nil?
|
|
265
|
-
query_params[:'estimatedTimeOfDepartureEnd'] = opts[:'estimated_time_of_departure_end'] if !opts[:'estimated_time_of_departure_end'].nil?
|
|
266
261
|
query_params[:'season'] = opts[:'season'] if !opts[:'season'].nil?
|
|
267
262
|
query_params[:'seasonYear'] = opts[:'season_year'] if !opts[:'season_year'].nil?
|
|
268
|
-
query_params[:'lastUpdatedAtStart'] = opts[:'last_updated_at_start'] if !opts[:'last_updated_at_start'].nil?
|
|
269
|
-
query_params[:'lastUpdatedAtEnd'] = opts[:'last_updated_at_end'] if !opts[:'last_updated_at_end'].nil?
|
|
270
263
|
query_params[:'color'] = opts[:'color'] if !opts[:'color'].nil?
|
|
271
264
|
query_params[:'soStatus'] = opts[:'so_status'] if !opts[:'so_status'].nil?
|
|
272
265
|
query_params[:'poStatus'] = opts[:'po_status'] if !opts[:'po_status'].nil?
|
|
@@ -275,6 +268,10 @@ module TachainSdk
|
|
|
275
268
|
query_params[:'orderDate'] = opts[:'order_date'] if !opts[:'order_date'].nil?
|
|
276
269
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
277
270
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
271
|
+
query_params[:'customerCode'] = opts[:'customer_code'] if !opts[:'customer_code'].nil?
|
|
272
|
+
query_params[:'supplierCode'] = opts[:'supplier_code'] if !opts[:'supplier_code'].nil?
|
|
273
|
+
query_params[:'customerName'] = opts[:'customer_name'] if !opts[:'customer_name'].nil?
|
|
274
|
+
query_params[:'supplierName'] = opts[:'supplier_name'] if !opts[:'supplier_name'].nil?
|
|
278
275
|
|
|
279
276
|
# header parameters
|
|
280
277
|
header_params = opts[:header_params] || {}
|
|
@@ -289,7 +286,7 @@ module TachainSdk
|
|
|
289
286
|
post_body = opts[:debug_body]
|
|
290
287
|
|
|
291
288
|
# return_type
|
|
292
|
-
return_type = opts[:debug_return_type] || '
|
|
289
|
+
return_type = opts[:debug_return_type] || 'GetV1ProductionListPaging200Response'
|
|
293
290
|
|
|
294
291
|
# auth_names
|
|
295
292
|
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
@@ -312,23 +309,23 @@ module TachainSdk
|
|
|
312
309
|
end
|
|
313
310
|
|
|
314
311
|
# 创建生产记录单。
|
|
315
|
-
# 重要处理: 1. 当前公司、租户、用户、环境由集成凭证决定,外部传入值会被覆盖; 2.
|
|
312
|
+
# 重要处理: 1. 当前公司、租户、用户、环境由集成凭证决定,外部传入值会被覆盖; 2. 直接传入领料与销售订单业务明细,服务端解析关联 ID; 3. 领料明细不能为空,且每条有效领料数量必须大于 0; 4. 保存成功后按生产类型重算生产或入库阶段的申报完成度。
|
|
316
313
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
314
|
+
# @param api_production_create_request [ApiProductionCreateRequest]
|
|
317
315
|
# @param [Hash] opts the optional parameters
|
|
318
|
-
# @
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
data, _status_code, _headers = post_v1_production_create_with_http_info(x_credential_type, opts)
|
|
316
|
+
# @return [PostV1ProductionCreate200Response]
|
|
317
|
+
def post_v1_production_create(x_credential_type, api_production_create_request, opts = {})
|
|
318
|
+
data, _status_code, _headers = post_v1_production_create_with_http_info(x_credential_type, api_production_create_request, opts)
|
|
322
319
|
data
|
|
323
320
|
end
|
|
324
321
|
|
|
325
322
|
# 创建生产记录单。
|
|
326
|
-
# 重要处理: 1. 当前公司、租户、用户、环境由集成凭证决定,外部传入值会被覆盖; 2.
|
|
323
|
+
# 重要处理: 1. 当前公司、租户、用户、环境由集成凭证决定,外部传入值会被覆盖; 2. 直接传入领料与销售订单业务明细,服务端解析关联 ID; 3. 领料明细不能为空,且每条有效领料数量必须大于 0; 4. 保存成功后按生产类型重算生产或入库阶段的申报完成度。
|
|
327
324
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
325
|
+
# @param api_production_create_request [ApiProductionCreateRequest]
|
|
328
326
|
# @param [Hash] opts the optional parameters
|
|
329
|
-
# @
|
|
330
|
-
|
|
331
|
-
def post_v1_production_create_with_http_info(x_credential_type, opts = {})
|
|
327
|
+
# @return [Array<(PostV1ProductionCreate200Response, Integer, Hash)>] PostV1ProductionCreate200Response data, response status code and response headers
|
|
328
|
+
def post_v1_production_create_with_http_info(x_credential_type, api_production_create_request, opts = {})
|
|
332
329
|
if @api_client.config.debugging
|
|
333
330
|
@api_client.config.logger.debug 'Calling API: ApiProductionApi.post_v1_production_create ...'
|
|
334
331
|
end
|
|
@@ -341,6 +338,10 @@ module TachainSdk
|
|
|
341
338
|
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
342
339
|
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
343
340
|
end
|
|
341
|
+
# verify the required parameter 'api_production_create_request' is set
|
|
342
|
+
if @api_client.config.client_side_validation && api_production_create_request.nil?
|
|
343
|
+
fail ArgumentError, "Missing the required parameter 'api_production_create_request' when calling ApiProductionApi.post_v1_production_create"
|
|
344
|
+
end
|
|
344
345
|
# resource path
|
|
345
346
|
local_var_path = '/v1/production/Create'
|
|
346
347
|
|
|
@@ -362,10 +363,10 @@ module TachainSdk
|
|
|
362
363
|
form_params = opts[:form_params] || {}
|
|
363
364
|
|
|
364
365
|
# http body (model)
|
|
365
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
366
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_production_create_request)
|
|
366
367
|
|
|
367
368
|
# return_type
|
|
368
|
-
return_type = opts[:debug_return_type] || '
|
|
369
|
+
return_type = opts[:debug_return_type] || 'PostV1ProductionCreate200Response'
|
|
369
370
|
|
|
370
371
|
# auth_names
|
|
371
372
|
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
@@ -388,23 +389,23 @@ module TachainSdk
|
|
|
388
389
|
end
|
|
389
390
|
|
|
390
391
|
# 修改生产记录单。
|
|
391
|
-
# 修改时仍按完整生产单保存: 有效领料明细会整体参与服务层处理,传入 `
|
|
392
|
+
# 修改时仍按完整生产单保存: 有效领料明细会整体参与服务层处理,传入 `Delete = true` 的明细表示删除已有明细;内部 ID 由订单业务键解析。
|
|
392
393
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
394
|
+
# @param api_production_update_request [ApiProductionUpdateRequest]
|
|
393
395
|
# @param [Hash] opts the optional parameters
|
|
394
|
-
# @
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
data, _status_code, _headers = put_v1_production_update_with_http_info(x_credential_type, opts)
|
|
396
|
+
# @return [PostV1ProductionCreate200Response]
|
|
397
|
+
def put_v1_production_update(x_credential_type, api_production_update_request, opts = {})
|
|
398
|
+
data, _status_code, _headers = put_v1_production_update_with_http_info(x_credential_type, api_production_update_request, opts)
|
|
398
399
|
data
|
|
399
400
|
end
|
|
400
401
|
|
|
401
402
|
# 修改生产记录单。
|
|
402
|
-
# 修改时仍按完整生产单保存: 有效领料明细会整体参与服务层处理,传入 `
|
|
403
|
+
# 修改时仍按完整生产单保存: 有效领料明细会整体参与服务层处理,传入 `Delete = true` 的明细表示删除已有明细;内部 ID 由订单业务键解析。
|
|
403
404
|
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
405
|
+
# @param api_production_update_request [ApiProductionUpdateRequest]
|
|
404
406
|
# @param [Hash] opts the optional parameters
|
|
405
|
-
# @
|
|
406
|
-
|
|
407
|
-
def put_v1_production_update_with_http_info(x_credential_type, opts = {})
|
|
407
|
+
# @return [Array<(PostV1ProductionCreate200Response, Integer, Hash)>] PostV1ProductionCreate200Response data, response status code and response headers
|
|
408
|
+
def put_v1_production_update_with_http_info(x_credential_type, api_production_update_request, opts = {})
|
|
408
409
|
if @api_client.config.debugging
|
|
409
410
|
@api_client.config.logger.debug 'Calling API: ApiProductionApi.put_v1_production_update ...'
|
|
410
411
|
end
|
|
@@ -417,6 +418,10 @@ module TachainSdk
|
|
|
417
418
|
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
418
419
|
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
419
420
|
end
|
|
421
|
+
# verify the required parameter 'api_production_update_request' is set
|
|
422
|
+
if @api_client.config.client_side_validation && api_production_update_request.nil?
|
|
423
|
+
fail ArgumentError, "Missing the required parameter 'api_production_update_request' when calling ApiProductionApi.put_v1_production_update"
|
|
424
|
+
end
|
|
420
425
|
# resource path
|
|
421
426
|
local_var_path = '/v1/production/Update'
|
|
422
427
|
|
|
@@ -438,10 +443,10 @@ module TachainSdk
|
|
|
438
443
|
form_params = opts[:form_params] || {}
|
|
439
444
|
|
|
440
445
|
# http body (model)
|
|
441
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
446
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_production_update_request)
|
|
442
447
|
|
|
443
448
|
# return_type
|
|
444
|
-
return_type = opts[:debug_return_type] || '
|
|
449
|
+
return_type = opts[:debug_return_type] || 'PostV1ProductionCreate200Response'
|
|
445
450
|
|
|
446
451
|
# auth_names
|
|
447
452
|
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
@@ -0,0 +1,192 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module TachainSdk
|
|
16
|
+
class ApiReferenceApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# 查询 enum_value;EnumTypeId 必填,Value 可选精确匹配。
|
|
23
|
+
#
|
|
24
|
+
# @param enum_type_id [String] 枚举业务类型代码,例如 OrderSide、Stage;不是需要猜测的数字主键。
|
|
25
|
+
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :value 枚举业务值,精确匹配。
|
|
28
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
29
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 50)
|
|
30
|
+
# @return [GetV1ReferenceEnumValues200Response]
|
|
31
|
+
def get_v1_reference_enum_values(enum_type_id, x_credential_type, opts = {})
|
|
32
|
+
data, _status_code, _headers = get_v1_reference_enum_values_with_http_info(enum_type_id, x_credential_type, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# 查询 enum_value;EnumTypeId 必填,Value 可选精确匹配。
|
|
37
|
+
#
|
|
38
|
+
# @param enum_type_id [String] 枚举业务类型代码,例如 OrderSide、Stage;不是需要猜测的数字主键。
|
|
39
|
+
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [String] :value 枚举业务值,精确匹配。
|
|
42
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
43
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 50)
|
|
44
|
+
# @return [Array<(GetV1ReferenceEnumValues200Response, Integer, Hash)>] GetV1ReferenceEnumValues200Response data, response status code and response headers
|
|
45
|
+
def get_v1_reference_enum_values_with_http_info(enum_type_id, x_credential_type, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: ApiReferenceApi.get_v1_reference_enum_values ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'enum_type_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && enum_type_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'enum_type_id' when calling ApiReferenceApi.get_v1_reference_enum_values"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'x_credential_type' is set
|
|
54
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiReferenceApi.get_v1_reference_enum_values"
|
|
56
|
+
end
|
|
57
|
+
# verify enum value
|
|
58
|
+
allowable_values = ["Token", "API Key"]
|
|
59
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
60
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
61
|
+
end
|
|
62
|
+
# resource path
|
|
63
|
+
local_var_path = '/v1/reference/EnumValues'
|
|
64
|
+
|
|
65
|
+
# query parameters
|
|
66
|
+
query_params = opts[:query_params] || {}
|
|
67
|
+
query_params[:'enumTypeId'] = enum_type_id
|
|
68
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
|
69
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
70
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
71
|
+
|
|
72
|
+
# header parameters
|
|
73
|
+
header_params = opts[:header_params] || {}
|
|
74
|
+
# HTTP header 'Accept' (if needed)
|
|
75
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
76
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
77
|
+
|
|
78
|
+
# form parameters
|
|
79
|
+
form_params = opts[:form_params] || {}
|
|
80
|
+
|
|
81
|
+
# http body (model)
|
|
82
|
+
post_body = opts[:debug_body]
|
|
83
|
+
|
|
84
|
+
# return_type
|
|
85
|
+
return_type = opts[:debug_return_type] || 'GetV1ReferenceEnumValues200Response'
|
|
86
|
+
|
|
87
|
+
# auth_names
|
|
88
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
89
|
+
|
|
90
|
+
new_options = opts.merge(
|
|
91
|
+
:operation => :"ApiReferenceApi.get_v1_reference_enum_values",
|
|
92
|
+
:header_params => header_params,
|
|
93
|
+
:query_params => query_params,
|
|
94
|
+
:form_params => form_params,
|
|
95
|
+
:body => post_body,
|
|
96
|
+
:auth_names => auth_names,
|
|
97
|
+
:return_type => return_type
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
101
|
+
if @api_client.config.debugging
|
|
102
|
+
@api_client.config.logger.debug "API called: ApiReferenceApi#get_v1_reference_enum_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
103
|
+
end
|
|
104
|
+
return data, status_code, headers
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# 查询 external_mapping;MappedTable 必填,ExternalValue 可选精确匹配。
|
|
108
|
+
#
|
|
109
|
+
# @param mapped_table [String] 映射业务类型,例如 Product、Material、Customer、Supplier、Company、Unit、DocumentType、Stage。
|
|
110
|
+
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @option opts [String] :external_value 调用方外部编码,精确匹配。
|
|
113
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
114
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 50)
|
|
115
|
+
# @return [GetV1ReferenceMappings200Response]
|
|
116
|
+
def get_v1_reference_mappings(mapped_table, x_credential_type, opts = {})
|
|
117
|
+
data, _status_code, _headers = get_v1_reference_mappings_with_http_info(mapped_table, x_credential_type, opts)
|
|
118
|
+
data
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# 查询 external_mapping;MappedTable 必填,ExternalValue 可选精确匹配。
|
|
122
|
+
#
|
|
123
|
+
# @param mapped_table [String] 映射业务类型,例如 Product、Material、Customer、Supplier、Company、Unit、DocumentType、Stage。
|
|
124
|
+
# @param x_credential_type [String] Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @option opts [String] :external_value 调用方外部编码,精确匹配。
|
|
127
|
+
# @option opts [Integer] :page 页码,默认 1;小于等于 0 时调整为 1。 (default to 1)
|
|
128
|
+
# @option opts [Integer] :page_size 每页条数,默认 10(参考数据默认 50);不在 1~100 范围时使用 10。 (default to 50)
|
|
129
|
+
# @return [Array<(GetV1ReferenceMappings200Response, Integer, Hash)>] GetV1ReferenceMappings200Response data, response status code and response headers
|
|
130
|
+
def get_v1_reference_mappings_with_http_info(mapped_table, x_credential_type, opts = {})
|
|
131
|
+
if @api_client.config.debugging
|
|
132
|
+
@api_client.config.logger.debug 'Calling API: ApiReferenceApi.get_v1_reference_mappings ...'
|
|
133
|
+
end
|
|
134
|
+
# verify the required parameter 'mapped_table' is set
|
|
135
|
+
if @api_client.config.client_side_validation && mapped_table.nil?
|
|
136
|
+
fail ArgumentError, "Missing the required parameter 'mapped_table' when calling ApiReferenceApi.get_v1_reference_mappings"
|
|
137
|
+
end
|
|
138
|
+
# verify the required parameter 'x_credential_type' is set
|
|
139
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
140
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiReferenceApi.get_v1_reference_mappings"
|
|
141
|
+
end
|
|
142
|
+
# verify enum value
|
|
143
|
+
allowable_values = ["Token", "API Key"]
|
|
144
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
145
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
146
|
+
end
|
|
147
|
+
# resource path
|
|
148
|
+
local_var_path = '/v1/reference/Mappings'
|
|
149
|
+
|
|
150
|
+
# query parameters
|
|
151
|
+
query_params = opts[:query_params] || {}
|
|
152
|
+
query_params[:'mappedTable'] = mapped_table
|
|
153
|
+
query_params[:'externalValue'] = opts[:'external_value'] if !opts[:'external_value'].nil?
|
|
154
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
155
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
156
|
+
|
|
157
|
+
# header parameters
|
|
158
|
+
header_params = opts[:header_params] || {}
|
|
159
|
+
# HTTP header 'Accept' (if needed)
|
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
161
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
162
|
+
|
|
163
|
+
# form parameters
|
|
164
|
+
form_params = opts[:form_params] || {}
|
|
165
|
+
|
|
166
|
+
# http body (model)
|
|
167
|
+
post_body = opts[:debug_body]
|
|
168
|
+
|
|
169
|
+
# return_type
|
|
170
|
+
return_type = opts[:debug_return_type] || 'GetV1ReferenceMappings200Response'
|
|
171
|
+
|
|
172
|
+
# auth_names
|
|
173
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
174
|
+
|
|
175
|
+
new_options = opts.merge(
|
|
176
|
+
:operation => :"ApiReferenceApi.get_v1_reference_mappings",
|
|
177
|
+
:header_params => header_params,
|
|
178
|
+
:query_params => query_params,
|
|
179
|
+
:form_params => form_params,
|
|
180
|
+
:body => post_body,
|
|
181
|
+
:auth_names => auth_names,
|
|
182
|
+
:return_type => return_type
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
186
|
+
if @api_client.config.debugging
|
|
187
|
+
@api_client.config.logger.debug "API called: ApiReferenceApi#get_v1_reference_mappings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
188
|
+
end
|
|
189
|
+
return data, status_code, headers
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|