tachain-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +226 -0
- data/Rakefile +10 -0
- data/git_push.sh +54 -0
- data/lib/tachain-sdk/api/api_declaration_api.rb +396 -0
- data/lib/tachain-sdk/api/api_delivery_api.rb +676 -0
- data/lib/tachain-sdk/api/api_enum_api.rb +94 -0
- data/lib/tachain-sdk/api/api_order_api.rb +846 -0
- data/lib/tachain-sdk/api/api_order_workflow_api.rb +170 -0
- data/lib/tachain-sdk/api/api_production_api.rb +466 -0
- data/lib/tachain-sdk/api_client.rb +397 -0
- data/lib/tachain-sdk/api_error.rb +58 -0
- data/lib/tachain-sdk/api_model_base.rb +88 -0
- data/lib/tachain-sdk/configuration.rb +329 -0
- data/lib/tachain-sdk/models/api_declaration_delete_request.rb +341 -0
- data/lib/tachain-sdk/models/api_declaration_document_request.rb +209 -0
- data/lib/tachain-sdk/models/api_declaration_list_dto.rb +251 -0
- data/lib/tachain-sdk/models/api_declaration_submit_request.rb +251 -0
- data/lib/tachain-sdk/models/api_declaration_submit_result_dto.rb +197 -0
- data/lib/tachain-sdk/models/api_integration_delete_request.rb +209 -0
- data/lib/tachain-sdk/models/api_order_confirm_receipt_request.rb +216 -0
- data/lib/tachain-sdk/models/api_order_submit_audit_request.rb +243 -0
- data/lib/tachain-sdk/models/api_response_api_declaration_list_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_api_declaration_submit_result_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_delivery_note_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_order_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_production_api_dto.rb +199 -0
- data/lib/tachain-sdk/models/api_response_string.rb +200 -0
- data/lib/tachain-sdk/models/attachment_in_api_create_dto.rb +262 -0
- data/lib/tachain-sdk/models/attachment_in_api_dto.rb +363 -0
- data/lib/tachain-sdk/models/brand_kpi_policy_result.rb +334 -0
- data/lib/tachain-sdk/models/brand_order_kpi_snapshot_dto.rb +880 -0
- data/lib/tachain-sdk/models/brand_order_supplier_order_snapshot_dto.rb +749 -0
- data/lib/tachain-sdk/models/brand_order_uncompleted_declare_snapshot_dto.rb +513 -0
- data/lib/tachain-sdk/models/company.rb +780 -0
- data/lib/tachain-sdk/models/company_compliance_profile.rb +547 -0
- data/lib/tachain-sdk/models/company_utility_declaration.rb +592 -0
- data/lib/tachain-sdk/models/customer.rb +569 -0
- data/lib/tachain-sdk/models/delivery_note_api_dto.rb +597 -0
- data/lib/tachain-sdk/models/delivery_note_detail_api_dto.rb +682 -0
- data/lib/tachain-sdk/models/document_type_api_dto.rb +480 -0
- data/lib/tachain-sdk/models/factory.rb +545 -0
- data/lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb +201 -0
- data/lib/tachain-sdk/models/microsoft_asp_net_core_mvc_problem_details.rb +188 -0
- data/lib/tachain-sdk/models/model1.rb +157 -0
- data/lib/tachain-sdk/models/model3.rb +202 -0
- data/lib/tachain-sdk/models/model4.rb +202 -0
- data/lib/tachain-sdk/models/order.rb +974 -0
- data/lib/tachain-sdk/models/order_api_dto.rb +918 -0
- data/lib/tachain-sdk/models/order_line.rb +1184 -0
- data/lib/tachain-sdk/models/order_line_api_dto.rb +1277 -0
- data/lib/tachain-sdk/models/order_stage_form_api_dto.rb +270 -0
- data/lib/tachain-sdk/models/order_stage_form_datum_api_dto.rb +260 -0
- data/lib/tachain-sdk/models/order_stage_form_dto.rb +254 -0
- data/lib/tachain-sdk/models/paged_response_delivery_note_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/paged_response_order_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/paged_response_production_api_dto.rb +296 -0
- data/lib/tachain-sdk/models/product_bom_grouping_dto.rb +280 -0
- data/lib/tachain-sdk/models/production_api_dto.rb +639 -0
- data/lib/tachain-sdk/models/production_raw_material_api_dto.rb +481 -0
- data/lib/tachain-sdk/models/production_raw_material_dto.rb +548 -0
- data/lib/tachain-sdk/models/production_sales_order_api_dto.rb +436 -0
- data/lib/tachain-sdk/models/result_api_enum.rb +270 -0
- data/lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb +331 -0
- data/lib/tachain-sdk/models/result_brand_report_unlinked_order_detail.rb +229 -0
- data/lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb +418 -0
- data/lib/tachain-sdk/models/result_mapping_order_select.rb +335 -0
- data/lib/tachain-sdk/models/result_order_trace_report.rb +721 -0
- data/lib/tachain-sdk/models/stage_attachment_api_dto.rb +398 -0
- data/lib/tachain-sdk/models/supplier.rb +585 -0
- data/lib/tachain-sdk/models/supplier_onboarding_ext.rb +383 -0
- data/lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb +456 -0
- data/lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb +227 -0
- data/lib/tachain-sdk/models/trader.rb +506 -0
- data/lib/tachain-sdk/signed_api_client.rb +65 -0
- data/lib/tachain-sdk/version.rb +15 -0
- data/lib/tachain-sdk.rb +108 -0
- data/spec/spec_helper.rb +111 -0
- data/tachain-sdk.gemspec +39 -0
- metadata +165 -0
|
@@ -0,0 +1,846 @@
|
|
|
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 ApiOrderApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# 第三方-更新订单状态(通过匹配条件获取订单ID)
|
|
23
|
+
#
|
|
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
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
27
|
+
# @return [ApiResponseString]
|
|
28
|
+
def delete_v1_order_delete(x_credential_type, opts = {})
|
|
29
|
+
data, _status_code, _headers = delete_v1_order_delete_with_http_info(x_credential_type, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# 第三方-更新订单状态(通过匹配条件获取订单ID)
|
|
34
|
+
#
|
|
35
|
+
# @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.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
38
|
+
# @return [Array<(ApiResponseString, Integer, Hash)>] ApiResponseString data, response status code and response headers
|
|
39
|
+
def delete_v1_order_delete_with_http_info(x_credential_type, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.delete_v1_order_delete ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'x_credential_type' is set
|
|
44
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.delete_v1_order_delete"
|
|
46
|
+
end
|
|
47
|
+
# verify enum value
|
|
48
|
+
allowable_values = ["Token", "API Key"]
|
|
49
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
50
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
51
|
+
end
|
|
52
|
+
# resource path
|
|
53
|
+
local_var_path = '/v1/order/Delete'
|
|
54
|
+
|
|
55
|
+
# query parameters
|
|
56
|
+
query_params = opts[:query_params] || {}
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = opts[:header_params] || {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
62
|
+
# HTTP header 'Content-Type'
|
|
63
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
64
|
+
if !content_type.nil?
|
|
65
|
+
header_params['Content-Type'] = content_type
|
|
66
|
+
end
|
|
67
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
68
|
+
|
|
69
|
+
# form parameters
|
|
70
|
+
form_params = opts[:form_params] || {}
|
|
71
|
+
|
|
72
|
+
# http body (model)
|
|
73
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'result_mapping_order_select'])
|
|
74
|
+
|
|
75
|
+
# return_type
|
|
76
|
+
return_type = opts[:debug_return_type] || 'ApiResponseString'
|
|
77
|
+
|
|
78
|
+
# auth_names
|
|
79
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
80
|
+
|
|
81
|
+
new_options = opts.merge(
|
|
82
|
+
:operation => :"ApiOrderApi.delete_v1_order_delete",
|
|
83
|
+
:header_params => header_params,
|
|
84
|
+
:query_params => query_params,
|
|
85
|
+
:form_params => form_params,
|
|
86
|
+
:body => post_body,
|
|
87
|
+
:auth_names => auth_names,
|
|
88
|
+
:return_type => return_type
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#delete_v1_order_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
94
|
+
end
|
|
95
|
+
return data, status_code, headers
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# 第三方-更新订单明细状态(通过匹配条件获取明细ID)
|
|
99
|
+
#
|
|
100
|
+
# @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.
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
103
|
+
# @return [ApiResponseString]
|
|
104
|
+
def delete_v1_order_delete_line(x_credential_type, opts = {})
|
|
105
|
+
data, _status_code, _headers = delete_v1_order_delete_line_with_http_info(x_credential_type, opts)
|
|
106
|
+
data
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# 第三方-更新订单明细状态(通过匹配条件获取明细ID)
|
|
110
|
+
#
|
|
111
|
+
# @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.
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
114
|
+
# @return [Array<(ApiResponseString, Integer, Hash)>] ApiResponseString data, response status code and response headers
|
|
115
|
+
def delete_v1_order_delete_line_with_http_info(x_credential_type, opts = {})
|
|
116
|
+
if @api_client.config.debugging
|
|
117
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.delete_v1_order_delete_line ...'
|
|
118
|
+
end
|
|
119
|
+
# verify the required parameter 'x_credential_type' is set
|
|
120
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
121
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.delete_v1_order_delete_line"
|
|
122
|
+
end
|
|
123
|
+
# verify enum value
|
|
124
|
+
allowable_values = ["Token", "API Key"]
|
|
125
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
126
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
127
|
+
end
|
|
128
|
+
# resource path
|
|
129
|
+
local_var_path = '/v1/order/DeleteLine'
|
|
130
|
+
|
|
131
|
+
# query parameters
|
|
132
|
+
query_params = opts[:query_params] || {}
|
|
133
|
+
|
|
134
|
+
# header parameters
|
|
135
|
+
header_params = opts[:header_params] || {}
|
|
136
|
+
# HTTP header 'Accept' (if needed)
|
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
138
|
+
# HTTP header 'Content-Type'
|
|
139
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
140
|
+
if !content_type.nil?
|
|
141
|
+
header_params['Content-Type'] = content_type
|
|
142
|
+
end
|
|
143
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
144
|
+
|
|
145
|
+
# form parameters
|
|
146
|
+
form_params = opts[:form_params] || {}
|
|
147
|
+
|
|
148
|
+
# http body (model)
|
|
149
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'result_mapping_order_select'])
|
|
150
|
+
|
|
151
|
+
# return_type
|
|
152
|
+
return_type = opts[:debug_return_type] || 'ApiResponseString'
|
|
153
|
+
|
|
154
|
+
# auth_names
|
|
155
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
156
|
+
|
|
157
|
+
new_options = opts.merge(
|
|
158
|
+
:operation => :"ApiOrderApi.delete_v1_order_delete_line",
|
|
159
|
+
:header_params => header_params,
|
|
160
|
+
:query_params => query_params,
|
|
161
|
+
:form_params => form_params,
|
|
162
|
+
:body => post_body,
|
|
163
|
+
:auth_names => auth_names,
|
|
164
|
+
:return_type => return_type
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#delete_v1_order_delete_line\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
170
|
+
end
|
|
171
|
+
return data, status_code, headers
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# 第三方-获取采购订单分页列表(含明细)
|
|
175
|
+
#
|
|
176
|
+
# @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.
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @option opts [String] :search_text 关键词搜索:支持订单号(OrderNumber)、合同号(ContractNo)、发票号(InvoiceNo)、订单明细行号(LineNumber)、原料名称(MaterialName)、产品名称(ProductName)、原料编码(MaterialCode)、产品编码(ProductCode)。去除首尾空白后,使用完整关键词进行包含匹配,任一字段命中即可,并与其他筛选条件共同生效;不传、空字符串或纯空白时不附加关键词条件。
|
|
179
|
+
# @option opts [String] :order_number 订单编号
|
|
180
|
+
# @option opts [Time] :order_date_start 订单日期起始
|
|
181
|
+
# @option opts [Time] :order_date_end 订单日期结束
|
|
182
|
+
# @option opts [Integer] :order_type 订单类型
|
|
183
|
+
# @option opts [String] :customer_id 客户ID
|
|
184
|
+
# @option opts [String] :supplier_id 供应商ID
|
|
185
|
+
# @option opts [String] :facility_id 工厂ID
|
|
186
|
+
# @option opts [String] :brand 品牌
|
|
187
|
+
# @option opts [String] :contract_no 合同号
|
|
188
|
+
# @option opts [String] :customer_tenant_id 客户租户ID
|
|
189
|
+
# @option opts [String] :supplier_tenant_id 供应商租户ID
|
|
190
|
+
# @option opts [String] :created_by 创建人
|
|
191
|
+
# @option opts [String] :division_id 部门ID
|
|
192
|
+
# @option opts [Time] :created_at_start 创建时间起始
|
|
193
|
+
# @option opts [Time] :created_at_end 创建时间结束
|
|
194
|
+
# @option opts [String] :id 订单ID
|
|
195
|
+
# @option opts [String] :unique_no 系统流水号
|
|
196
|
+
# @option opts [String] :order_name
|
|
197
|
+
# @option opts [String] :line_number 行项目序号
|
|
198
|
+
# @option opts [String] :product_category 成品分类
|
|
199
|
+
# @option opts [String] :material_id 原料ID
|
|
200
|
+
# @option opts [String] :material_code 原料编码
|
|
201
|
+
# @option opts [String] :material_name 原料名称
|
|
202
|
+
# @option opts [String] :product_id 成品ID
|
|
203
|
+
# @option opts [String] :product_code 成品编码
|
|
204
|
+
# @option opts [String] :product_name 成品名称
|
|
205
|
+
# @option opts [String] :batch 物料批次号
|
|
206
|
+
# @option opts [String] :destination_country 目的国家
|
|
207
|
+
# @option opts [String] :customer_ext_no 客户外部系统流水号
|
|
208
|
+
# @option opts [String] :supplier_ext_no 供应商外部系统流水号
|
|
209
|
+
# @option opts [String] :origin_country 原产国
|
|
210
|
+
# @option opts [Time] :estimated_time_of_departure_start 预计发货日期-开始
|
|
211
|
+
# @option opts [Time] :estimated_time_of_departure_end 预计发货日期-结束
|
|
212
|
+
# @option opts [String] :season 季度
|
|
213
|
+
# @option opts [String] :season_year 年份
|
|
214
|
+
# @option opts [Time] :last_updated_at_start 最后更新日期-开始
|
|
215
|
+
# @option opts [Time] :last_updated_at_end 最后更新日期-结束
|
|
216
|
+
# @option opts [String] :color 颜色
|
|
217
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
218
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
219
|
+
# @option opts [Array<Integer>] :status 订单采购综合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
220
|
+
# @option opts [Boolean] :order_chain_status 订单链状态
|
|
221
|
+
# @option opts [Boolean] :chain_status
|
|
222
|
+
# @option opts [Array<Integer>] :master_approve_status 主审核状态:101 草稿、102 待审核、103 重新提交待审、111 取消审核、113 审核作废、114 审核驳回、115 审核拒绝、120 审核通过。
|
|
223
|
+
# @option opts [Array<Integer>] :customer_confirm_status 客户确认收货状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。
|
|
224
|
+
# @option opts [Array<Integer>] :mixed_status 采购/销售混合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
225
|
+
# @option opts [Array<Integer>] :risk_level
|
|
226
|
+
# @option opts [String] :sort_by 排序字段
|
|
227
|
+
# @option opts [Integer] :page 页码 (default to 1)
|
|
228
|
+
# @option opts [Integer] :page_size 每页数量 (default to 10)
|
|
229
|
+
# @return [PagedResponseOrderApiDto]
|
|
230
|
+
def get_v1_order_po_list_paging(x_credential_type, opts = {})
|
|
231
|
+
data, _status_code, _headers = get_v1_order_po_list_paging_with_http_info(x_credential_type, opts)
|
|
232
|
+
data
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# 第三方-获取采购订单分页列表(含明细)
|
|
236
|
+
#
|
|
237
|
+
# @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.
|
|
238
|
+
# @param [Hash] opts the optional parameters
|
|
239
|
+
# @option opts [String] :search_text 关键词搜索:支持订单号(OrderNumber)、合同号(ContractNo)、发票号(InvoiceNo)、订单明细行号(LineNumber)、原料名称(MaterialName)、产品名称(ProductName)、原料编码(MaterialCode)、产品编码(ProductCode)。去除首尾空白后,使用完整关键词进行包含匹配,任一字段命中即可,并与其他筛选条件共同生效;不传、空字符串或纯空白时不附加关键词条件。
|
|
240
|
+
# @option opts [String] :order_number 订单编号
|
|
241
|
+
# @option opts [Time] :order_date_start 订单日期起始
|
|
242
|
+
# @option opts [Time] :order_date_end 订单日期结束
|
|
243
|
+
# @option opts [Integer] :order_type 订单类型
|
|
244
|
+
# @option opts [String] :customer_id 客户ID
|
|
245
|
+
# @option opts [String] :supplier_id 供应商ID
|
|
246
|
+
# @option opts [String] :facility_id 工厂ID
|
|
247
|
+
# @option opts [String] :brand 品牌
|
|
248
|
+
# @option opts [String] :contract_no 合同号
|
|
249
|
+
# @option opts [String] :customer_tenant_id 客户租户ID
|
|
250
|
+
# @option opts [String] :supplier_tenant_id 供应商租户ID
|
|
251
|
+
# @option opts [String] :created_by 创建人
|
|
252
|
+
# @option opts [String] :division_id 部门ID
|
|
253
|
+
# @option opts [Time] :created_at_start 创建时间起始
|
|
254
|
+
# @option opts [Time] :created_at_end 创建时间结束
|
|
255
|
+
# @option opts [String] :id 订单ID
|
|
256
|
+
# @option opts [String] :unique_no 系统流水号
|
|
257
|
+
# @option opts [String] :order_name
|
|
258
|
+
# @option opts [String] :line_number 行项目序号
|
|
259
|
+
# @option opts [String] :product_category 成品分类
|
|
260
|
+
# @option opts [String] :material_id 原料ID
|
|
261
|
+
# @option opts [String] :material_code 原料编码
|
|
262
|
+
# @option opts [String] :material_name 原料名称
|
|
263
|
+
# @option opts [String] :product_id 成品ID
|
|
264
|
+
# @option opts [String] :product_code 成品编码
|
|
265
|
+
# @option opts [String] :product_name 成品名称
|
|
266
|
+
# @option opts [String] :batch 物料批次号
|
|
267
|
+
# @option opts [String] :destination_country 目的国家
|
|
268
|
+
# @option opts [String] :customer_ext_no 客户外部系统流水号
|
|
269
|
+
# @option opts [String] :supplier_ext_no 供应商外部系统流水号
|
|
270
|
+
# @option opts [String] :origin_country 原产国
|
|
271
|
+
# @option opts [Time] :estimated_time_of_departure_start 预计发货日期-开始
|
|
272
|
+
# @option opts [Time] :estimated_time_of_departure_end 预计发货日期-结束
|
|
273
|
+
# @option opts [String] :season 季度
|
|
274
|
+
# @option opts [String] :season_year 年份
|
|
275
|
+
# @option opts [Time] :last_updated_at_start 最后更新日期-开始
|
|
276
|
+
# @option opts [Time] :last_updated_at_end 最后更新日期-结束
|
|
277
|
+
# @option opts [String] :color 颜色
|
|
278
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
279
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
280
|
+
# @option opts [Array<Integer>] :status 订单采购综合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
281
|
+
# @option opts [Boolean] :order_chain_status 订单链状态
|
|
282
|
+
# @option opts [Boolean] :chain_status
|
|
283
|
+
# @option opts [Array<Integer>] :master_approve_status 主审核状态:101 草稿、102 待审核、103 重新提交待审、111 取消审核、113 审核作废、114 审核驳回、115 审核拒绝、120 审核通过。
|
|
284
|
+
# @option opts [Array<Integer>] :customer_confirm_status 客户确认收货状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。
|
|
285
|
+
# @option opts [Array<Integer>] :mixed_status 采购/销售混合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
286
|
+
# @option opts [Array<Integer>] :risk_level
|
|
287
|
+
# @option opts [String] :sort_by 排序字段
|
|
288
|
+
# @option opts [Integer] :page 页码 (default to 1)
|
|
289
|
+
# @option opts [Integer] :page_size 每页数量 (default to 10)
|
|
290
|
+
# @return [Array<(PagedResponseOrderApiDto, Integer, Hash)>] PagedResponseOrderApiDto data, response status code and response headers
|
|
291
|
+
def get_v1_order_po_list_paging_with_http_info(x_credential_type, opts = {})
|
|
292
|
+
if @api_client.config.debugging
|
|
293
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.get_v1_order_po_list_paging ...'
|
|
294
|
+
end
|
|
295
|
+
# verify the required parameter 'x_credential_type' is set
|
|
296
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
297
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.get_v1_order_po_list_paging"
|
|
298
|
+
end
|
|
299
|
+
# verify enum value
|
|
300
|
+
allowable_values = ["Token", "API Key"]
|
|
301
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
302
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
303
|
+
end
|
|
304
|
+
# resource path
|
|
305
|
+
local_var_path = '/v1/order/POListPaging'
|
|
306
|
+
|
|
307
|
+
# query parameters
|
|
308
|
+
query_params = opts[:query_params] || {}
|
|
309
|
+
query_params[:'searchText'] = opts[:'search_text'] if !opts[:'search_text'].nil?
|
|
310
|
+
query_params[:'orderNumber'] = opts[:'order_number'] if !opts[:'order_number'].nil?
|
|
311
|
+
query_params[:'orderDateStart'] = opts[:'order_date_start'] if !opts[:'order_date_start'].nil?
|
|
312
|
+
query_params[:'orderDateEnd'] = opts[:'order_date_end'] if !opts[:'order_date_end'].nil?
|
|
313
|
+
query_params[:'orderType'] = opts[:'order_type'] if !opts[:'order_type'].nil?
|
|
314
|
+
query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
|
315
|
+
query_params[:'supplierId'] = opts[:'supplier_id'] if !opts[:'supplier_id'].nil?
|
|
316
|
+
query_params[:'facilityId'] = opts[:'facility_id'] if !opts[:'facility_id'].nil?
|
|
317
|
+
query_params[:'brand'] = opts[:'brand'] if !opts[:'brand'].nil?
|
|
318
|
+
query_params[:'contractNo'] = opts[:'contract_no'] if !opts[:'contract_no'].nil?
|
|
319
|
+
query_params[:'customerTenantId'] = opts[:'customer_tenant_id'] if !opts[:'customer_tenant_id'].nil?
|
|
320
|
+
query_params[:'supplierTenantId'] = opts[:'supplier_tenant_id'] if !opts[:'supplier_tenant_id'].nil?
|
|
321
|
+
query_params[:'createdBy'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
322
|
+
query_params[:'divisionId'] = opts[:'division_id'] if !opts[:'division_id'].nil?
|
|
323
|
+
query_params[:'createdAtStart'] = opts[:'created_at_start'] if !opts[:'created_at_start'].nil?
|
|
324
|
+
query_params[:'createdAtEnd'] = opts[:'created_at_end'] if !opts[:'created_at_end'].nil?
|
|
325
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
|
326
|
+
query_params[:'uniqueNo'] = opts[:'unique_no'] if !opts[:'unique_no'].nil?
|
|
327
|
+
query_params[:'orderName'] = opts[:'order_name'] if !opts[:'order_name'].nil?
|
|
328
|
+
query_params[:'lineNumber'] = opts[:'line_number'] if !opts[:'line_number'].nil?
|
|
329
|
+
query_params[:'productCategory'] = opts[:'product_category'] if !opts[:'product_category'].nil?
|
|
330
|
+
query_params[:'materialId'] = opts[:'material_id'] if !opts[:'material_id'].nil?
|
|
331
|
+
query_params[:'materialCode'] = opts[:'material_code'] if !opts[:'material_code'].nil?
|
|
332
|
+
query_params[:'materialName'] = opts[:'material_name'] if !opts[:'material_name'].nil?
|
|
333
|
+
query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
|
334
|
+
query_params[:'productCode'] = opts[:'product_code'] if !opts[:'product_code'].nil?
|
|
335
|
+
query_params[:'productName'] = opts[:'product_name'] if !opts[:'product_name'].nil?
|
|
336
|
+
query_params[:'batch'] = opts[:'batch'] if !opts[:'batch'].nil?
|
|
337
|
+
query_params[:'destinationCountry'] = opts[:'destination_country'] if !opts[:'destination_country'].nil?
|
|
338
|
+
query_params[:'customerExtNo'] = opts[:'customer_ext_no'] if !opts[:'customer_ext_no'].nil?
|
|
339
|
+
query_params[:'supplierExtNo'] = opts[:'supplier_ext_no'] if !opts[:'supplier_ext_no'].nil?
|
|
340
|
+
query_params[:'originCountry'] = opts[:'origin_country'] if !opts[:'origin_country'].nil?
|
|
341
|
+
query_params[:'estimatedTimeOfDepartureStart'] = opts[:'estimated_time_of_departure_start'] if !opts[:'estimated_time_of_departure_start'].nil?
|
|
342
|
+
query_params[:'estimatedTimeOfDepartureEnd'] = opts[:'estimated_time_of_departure_end'] if !opts[:'estimated_time_of_departure_end'].nil?
|
|
343
|
+
query_params[:'season'] = opts[:'season'] if !opts[:'season'].nil?
|
|
344
|
+
query_params[:'seasonYear'] = opts[:'season_year'] if !opts[:'season_year'].nil?
|
|
345
|
+
query_params[:'lastUpdatedAtStart'] = opts[:'last_updated_at_start'] if !opts[:'last_updated_at_start'].nil?
|
|
346
|
+
query_params[:'lastUpdatedAtEnd'] = opts[:'last_updated_at_end'] if !opts[:'last_updated_at_end'].nil?
|
|
347
|
+
query_params[:'color'] = opts[:'color'] if !opts[:'color'].nil?
|
|
348
|
+
query_params[:'soStatus'] = opts[:'so_status'] if !opts[:'so_status'].nil?
|
|
349
|
+
query_params[:'poStatus'] = opts[:'po_status'] if !opts[:'po_status'].nil?
|
|
350
|
+
query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) if !opts[:'status'].nil?
|
|
351
|
+
query_params[:'orderChainStatus'] = opts[:'order_chain_status'] if !opts[:'order_chain_status'].nil?
|
|
352
|
+
query_params[:'chainStatus'] = opts[:'chain_status'] if !opts[:'chain_status'].nil?
|
|
353
|
+
query_params[:'masterApproveStatus'] = @api_client.build_collection_param(opts[:'master_approve_status'], :multi) if !opts[:'master_approve_status'].nil?
|
|
354
|
+
query_params[:'customerConfirmStatus'] = @api_client.build_collection_param(opts[:'customer_confirm_status'], :multi) if !opts[:'customer_confirm_status'].nil?
|
|
355
|
+
query_params[:'mixedStatus'] = @api_client.build_collection_param(opts[:'mixed_status'], :multi) if !opts[:'mixed_status'].nil?
|
|
356
|
+
query_params[:'riskLevel'] = @api_client.build_collection_param(opts[:'risk_level'], :multi) if !opts[:'risk_level'].nil?
|
|
357
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
358
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
359
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
360
|
+
|
|
361
|
+
# header parameters
|
|
362
|
+
header_params = opts[:header_params] || {}
|
|
363
|
+
# HTTP header 'Accept' (if needed)
|
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
365
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
366
|
+
|
|
367
|
+
# form parameters
|
|
368
|
+
form_params = opts[:form_params] || {}
|
|
369
|
+
|
|
370
|
+
# http body (model)
|
|
371
|
+
post_body = opts[:debug_body]
|
|
372
|
+
|
|
373
|
+
# return_type
|
|
374
|
+
return_type = opts[:debug_return_type] || 'PagedResponseOrderApiDto'
|
|
375
|
+
|
|
376
|
+
# auth_names
|
|
377
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
378
|
+
|
|
379
|
+
new_options = opts.merge(
|
|
380
|
+
:operation => :"ApiOrderApi.get_v1_order_po_list_paging",
|
|
381
|
+
:header_params => header_params,
|
|
382
|
+
:query_params => query_params,
|
|
383
|
+
:form_params => form_params,
|
|
384
|
+
:body => post_body,
|
|
385
|
+
:auth_names => auth_names,
|
|
386
|
+
:return_type => return_type
|
|
387
|
+
)
|
|
388
|
+
|
|
389
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
390
|
+
if @api_client.config.debugging
|
|
391
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#get_v1_order_po_list_paging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
392
|
+
end
|
|
393
|
+
return data, status_code, headers
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# 第三方-获取销售订单分页列表(含明细)
|
|
397
|
+
#
|
|
398
|
+
# @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.
|
|
399
|
+
# @param [Hash] opts the optional parameters
|
|
400
|
+
# @option opts [String] :search_text 关键词搜索:支持订单号(OrderNumber)、合同号(ContractNo)、发票号(InvoiceNo)、订单明细行号(LineNumber)、原料名称(MaterialName)、产品名称(ProductName)、原料编码(MaterialCode)、产品编码(ProductCode)。去除首尾空白后,使用完整关键词进行包含匹配,任一字段命中即可,并与其他筛选条件共同生效;不传、空字符串或纯空白时不附加关键词条件。
|
|
401
|
+
# @option opts [String] :order_number 订单编号
|
|
402
|
+
# @option opts [Time] :order_date_start 订单日期起始
|
|
403
|
+
# @option opts [Time] :order_date_end 订单日期结束
|
|
404
|
+
# @option opts [Integer] :order_type 订单类型
|
|
405
|
+
# @option opts [String] :customer_id 客户ID
|
|
406
|
+
# @option opts [String] :supplier_id 供应商ID
|
|
407
|
+
# @option opts [String] :facility_id 工厂ID
|
|
408
|
+
# @option opts [String] :brand 品牌
|
|
409
|
+
# @option opts [String] :contract_no 合同号
|
|
410
|
+
# @option opts [String] :customer_tenant_id 客户租户ID
|
|
411
|
+
# @option opts [String] :supplier_tenant_id 供应商租户ID
|
|
412
|
+
# @option opts [String] :created_by 创建人
|
|
413
|
+
# @option opts [String] :division_id 部门ID
|
|
414
|
+
# @option opts [Time] :created_at_start 创建时间起始
|
|
415
|
+
# @option opts [Time] :created_at_end 创建时间结束
|
|
416
|
+
# @option opts [String] :id 订单ID
|
|
417
|
+
# @option opts [String] :unique_no 系统流水号
|
|
418
|
+
# @option opts [String] :order_name
|
|
419
|
+
# @option opts [String] :line_number 行项目序号
|
|
420
|
+
# @option opts [String] :product_category 成品分类
|
|
421
|
+
# @option opts [String] :material_id 原料ID
|
|
422
|
+
# @option opts [String] :material_code 原料编码
|
|
423
|
+
# @option opts [String] :material_name 原料名称
|
|
424
|
+
# @option opts [String] :product_id 成品ID
|
|
425
|
+
# @option opts [String] :product_code 成品编码
|
|
426
|
+
# @option opts [String] :product_name 成品名称
|
|
427
|
+
# @option opts [String] :batch 物料批次号
|
|
428
|
+
# @option opts [String] :destination_country 目的国家
|
|
429
|
+
# @option opts [String] :customer_ext_no 客户外部系统流水号
|
|
430
|
+
# @option opts [String] :supplier_ext_no 供应商外部系统流水号
|
|
431
|
+
# @option opts [String] :origin_country 原产国
|
|
432
|
+
# @option opts [Time] :estimated_time_of_departure_start 预计发货日期-开始
|
|
433
|
+
# @option opts [Time] :estimated_time_of_departure_end 预计发货日期-结束
|
|
434
|
+
# @option opts [String] :season 季度
|
|
435
|
+
# @option opts [String] :season_year 年份
|
|
436
|
+
# @option opts [Time] :last_updated_at_start 最后更新日期-开始
|
|
437
|
+
# @option opts [Time] :last_updated_at_end 最后更新日期-结束
|
|
438
|
+
# @option opts [String] :color 颜色
|
|
439
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
440
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
441
|
+
# @option opts [Array<Integer>] :status 订单销售综合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
442
|
+
# @option opts [Boolean] :order_chain_status 订单链状态
|
|
443
|
+
# @option opts [Boolean] :chain_status
|
|
444
|
+
# @option opts [Array<Integer>] :master_approve_status 主审核状态:101 草稿、102 待审核、103 重新提交待审、111 取消审核、113 审核作废、114 审核驳回、115 审核拒绝、120 审核通过。
|
|
445
|
+
# @option opts [Array<Integer>] :customer_confirm_status 客户确认收货状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。
|
|
446
|
+
# @option opts [Array<Integer>] :mixed_status 采购/销售混合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
447
|
+
# @option opts [Array<Integer>] :risk_level
|
|
448
|
+
# @option opts [String] :sort_by 排序字段
|
|
449
|
+
# @option opts [Integer] :page 页码 (default to 1)
|
|
450
|
+
# @option opts [Integer] :page_size 每页数量 (default to 10)
|
|
451
|
+
# @return [PagedResponseOrderApiDto]
|
|
452
|
+
def get_v1_order_so_list_paging(x_credential_type, opts = {})
|
|
453
|
+
data, _status_code, _headers = get_v1_order_so_list_paging_with_http_info(x_credential_type, opts)
|
|
454
|
+
data
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# 第三方-获取销售订单分页列表(含明细)
|
|
458
|
+
#
|
|
459
|
+
# @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.
|
|
460
|
+
# @param [Hash] opts the optional parameters
|
|
461
|
+
# @option opts [String] :search_text 关键词搜索:支持订单号(OrderNumber)、合同号(ContractNo)、发票号(InvoiceNo)、订单明细行号(LineNumber)、原料名称(MaterialName)、产品名称(ProductName)、原料编码(MaterialCode)、产品编码(ProductCode)。去除首尾空白后,使用完整关键词进行包含匹配,任一字段命中即可,并与其他筛选条件共同生效;不传、空字符串或纯空白时不附加关键词条件。
|
|
462
|
+
# @option opts [String] :order_number 订单编号
|
|
463
|
+
# @option opts [Time] :order_date_start 订单日期起始
|
|
464
|
+
# @option opts [Time] :order_date_end 订单日期结束
|
|
465
|
+
# @option opts [Integer] :order_type 订单类型
|
|
466
|
+
# @option opts [String] :customer_id 客户ID
|
|
467
|
+
# @option opts [String] :supplier_id 供应商ID
|
|
468
|
+
# @option opts [String] :facility_id 工厂ID
|
|
469
|
+
# @option opts [String] :brand 品牌
|
|
470
|
+
# @option opts [String] :contract_no 合同号
|
|
471
|
+
# @option opts [String] :customer_tenant_id 客户租户ID
|
|
472
|
+
# @option opts [String] :supplier_tenant_id 供应商租户ID
|
|
473
|
+
# @option opts [String] :created_by 创建人
|
|
474
|
+
# @option opts [String] :division_id 部门ID
|
|
475
|
+
# @option opts [Time] :created_at_start 创建时间起始
|
|
476
|
+
# @option opts [Time] :created_at_end 创建时间结束
|
|
477
|
+
# @option opts [String] :id 订单ID
|
|
478
|
+
# @option opts [String] :unique_no 系统流水号
|
|
479
|
+
# @option opts [String] :order_name
|
|
480
|
+
# @option opts [String] :line_number 行项目序号
|
|
481
|
+
# @option opts [String] :product_category 成品分类
|
|
482
|
+
# @option opts [String] :material_id 原料ID
|
|
483
|
+
# @option opts [String] :material_code 原料编码
|
|
484
|
+
# @option opts [String] :material_name 原料名称
|
|
485
|
+
# @option opts [String] :product_id 成品ID
|
|
486
|
+
# @option opts [String] :product_code 成品编码
|
|
487
|
+
# @option opts [String] :product_name 成品名称
|
|
488
|
+
# @option opts [String] :batch 物料批次号
|
|
489
|
+
# @option opts [String] :destination_country 目的国家
|
|
490
|
+
# @option opts [String] :customer_ext_no 客户外部系统流水号
|
|
491
|
+
# @option opts [String] :supplier_ext_no 供应商外部系统流水号
|
|
492
|
+
# @option opts [String] :origin_country 原产国
|
|
493
|
+
# @option opts [Time] :estimated_time_of_departure_start 预计发货日期-开始
|
|
494
|
+
# @option opts [Time] :estimated_time_of_departure_end 预计发货日期-结束
|
|
495
|
+
# @option opts [String] :season 季度
|
|
496
|
+
# @option opts [String] :season_year 年份
|
|
497
|
+
# @option opts [Time] :last_updated_at_start 最后更新日期-开始
|
|
498
|
+
# @option opts [Time] :last_updated_at_end 最后更新日期-结束
|
|
499
|
+
# @option opts [String] :color 颜色
|
|
500
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
501
|
+
# @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 品牌审核通过。 收货确认和品牌审核状态不通过本参数筛选,请使用 status 或 mixedStatus。
|
|
502
|
+
# @option opts [Array<Integer>] :status 订单销售综合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
503
|
+
# @option opts [Boolean] :order_chain_status 订单链状态
|
|
504
|
+
# @option opts [Boolean] :chain_status
|
|
505
|
+
# @option opts [Array<Integer>] :master_approve_status 主审核状态:101 草稿、102 待审核、103 重新提交待审、111 取消审核、113 审核作废、114 审核驳回、115 审核拒绝、120 审核通过。
|
|
506
|
+
# @option opts [Array<Integer>] :customer_confirm_status 客户确认收货状态:101 待提交(发货)、102 待收货(审核)、103 重新提交收货、111 取消收货审核、113 收货作废、114 收货驳回、115 收货拒绝、120 审核通过。
|
|
507
|
+
# @option opts [Array<Integer>] :mixed_status 采购/销售混合状态,可多选;不传表示不限。 订单状态:-9 不用溯源(禁用)、-1 删除、0 正常;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 品牌审核通过。
|
|
508
|
+
# @option opts [Array<Integer>] :risk_level
|
|
509
|
+
# @option opts [String] :sort_by 排序字段
|
|
510
|
+
# @option opts [Integer] :page 页码 (default to 1)
|
|
511
|
+
# @option opts [Integer] :page_size 每页数量 (default to 10)
|
|
512
|
+
# @return [Array<(PagedResponseOrderApiDto, Integer, Hash)>] PagedResponseOrderApiDto data, response status code and response headers
|
|
513
|
+
def get_v1_order_so_list_paging_with_http_info(x_credential_type, opts = {})
|
|
514
|
+
if @api_client.config.debugging
|
|
515
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.get_v1_order_so_list_paging ...'
|
|
516
|
+
end
|
|
517
|
+
# verify the required parameter 'x_credential_type' is set
|
|
518
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
519
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.get_v1_order_so_list_paging"
|
|
520
|
+
end
|
|
521
|
+
# verify enum value
|
|
522
|
+
allowable_values = ["Token", "API Key"]
|
|
523
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
524
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
525
|
+
end
|
|
526
|
+
# resource path
|
|
527
|
+
local_var_path = '/v1/order/SOListPaging'
|
|
528
|
+
|
|
529
|
+
# query parameters
|
|
530
|
+
query_params = opts[:query_params] || {}
|
|
531
|
+
query_params[:'searchText'] = opts[:'search_text'] if !opts[:'search_text'].nil?
|
|
532
|
+
query_params[:'orderNumber'] = opts[:'order_number'] if !opts[:'order_number'].nil?
|
|
533
|
+
query_params[:'orderDateStart'] = opts[:'order_date_start'] if !opts[:'order_date_start'].nil?
|
|
534
|
+
query_params[:'orderDateEnd'] = opts[:'order_date_end'] if !opts[:'order_date_end'].nil?
|
|
535
|
+
query_params[:'orderType'] = opts[:'order_type'] if !opts[:'order_type'].nil?
|
|
536
|
+
query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
|
537
|
+
query_params[:'supplierId'] = opts[:'supplier_id'] if !opts[:'supplier_id'].nil?
|
|
538
|
+
query_params[:'facilityId'] = opts[:'facility_id'] if !opts[:'facility_id'].nil?
|
|
539
|
+
query_params[:'brand'] = opts[:'brand'] if !opts[:'brand'].nil?
|
|
540
|
+
query_params[:'contractNo'] = opts[:'contract_no'] if !opts[:'contract_no'].nil?
|
|
541
|
+
query_params[:'customerTenantId'] = opts[:'customer_tenant_id'] if !opts[:'customer_tenant_id'].nil?
|
|
542
|
+
query_params[:'supplierTenantId'] = opts[:'supplier_tenant_id'] if !opts[:'supplier_tenant_id'].nil?
|
|
543
|
+
query_params[:'createdBy'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
544
|
+
query_params[:'divisionId'] = opts[:'division_id'] if !opts[:'division_id'].nil?
|
|
545
|
+
query_params[:'createdAtStart'] = opts[:'created_at_start'] if !opts[:'created_at_start'].nil?
|
|
546
|
+
query_params[:'createdAtEnd'] = opts[:'created_at_end'] if !opts[:'created_at_end'].nil?
|
|
547
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
|
548
|
+
query_params[:'uniqueNo'] = opts[:'unique_no'] if !opts[:'unique_no'].nil?
|
|
549
|
+
query_params[:'orderName'] = opts[:'order_name'] if !opts[:'order_name'].nil?
|
|
550
|
+
query_params[:'lineNumber'] = opts[:'line_number'] if !opts[:'line_number'].nil?
|
|
551
|
+
query_params[:'productCategory'] = opts[:'product_category'] if !opts[:'product_category'].nil?
|
|
552
|
+
query_params[:'materialId'] = opts[:'material_id'] if !opts[:'material_id'].nil?
|
|
553
|
+
query_params[:'materialCode'] = opts[:'material_code'] if !opts[:'material_code'].nil?
|
|
554
|
+
query_params[:'materialName'] = opts[:'material_name'] if !opts[:'material_name'].nil?
|
|
555
|
+
query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
|
556
|
+
query_params[:'productCode'] = opts[:'product_code'] if !opts[:'product_code'].nil?
|
|
557
|
+
query_params[:'productName'] = opts[:'product_name'] if !opts[:'product_name'].nil?
|
|
558
|
+
query_params[:'batch'] = opts[:'batch'] if !opts[:'batch'].nil?
|
|
559
|
+
query_params[:'destinationCountry'] = opts[:'destination_country'] if !opts[:'destination_country'].nil?
|
|
560
|
+
query_params[:'customerExtNo'] = opts[:'customer_ext_no'] if !opts[:'customer_ext_no'].nil?
|
|
561
|
+
query_params[:'supplierExtNo'] = opts[:'supplier_ext_no'] if !opts[:'supplier_ext_no'].nil?
|
|
562
|
+
query_params[:'originCountry'] = opts[:'origin_country'] if !opts[:'origin_country'].nil?
|
|
563
|
+
query_params[:'estimatedTimeOfDepartureStart'] = opts[:'estimated_time_of_departure_start'] if !opts[:'estimated_time_of_departure_start'].nil?
|
|
564
|
+
query_params[:'estimatedTimeOfDepartureEnd'] = opts[:'estimated_time_of_departure_end'] if !opts[:'estimated_time_of_departure_end'].nil?
|
|
565
|
+
query_params[:'season'] = opts[:'season'] if !opts[:'season'].nil?
|
|
566
|
+
query_params[:'seasonYear'] = opts[:'season_year'] if !opts[:'season_year'].nil?
|
|
567
|
+
query_params[:'lastUpdatedAtStart'] = opts[:'last_updated_at_start'] if !opts[:'last_updated_at_start'].nil?
|
|
568
|
+
query_params[:'lastUpdatedAtEnd'] = opts[:'last_updated_at_end'] if !opts[:'last_updated_at_end'].nil?
|
|
569
|
+
query_params[:'color'] = opts[:'color'] if !opts[:'color'].nil?
|
|
570
|
+
query_params[:'soStatus'] = opts[:'so_status'] if !opts[:'so_status'].nil?
|
|
571
|
+
query_params[:'poStatus'] = opts[:'po_status'] if !opts[:'po_status'].nil?
|
|
572
|
+
query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) if !opts[:'status'].nil?
|
|
573
|
+
query_params[:'orderChainStatus'] = opts[:'order_chain_status'] if !opts[:'order_chain_status'].nil?
|
|
574
|
+
query_params[:'chainStatus'] = opts[:'chain_status'] if !opts[:'chain_status'].nil?
|
|
575
|
+
query_params[:'masterApproveStatus'] = @api_client.build_collection_param(opts[:'master_approve_status'], :multi) if !opts[:'master_approve_status'].nil?
|
|
576
|
+
query_params[:'customerConfirmStatus'] = @api_client.build_collection_param(opts[:'customer_confirm_status'], :multi) if !opts[:'customer_confirm_status'].nil?
|
|
577
|
+
query_params[:'mixedStatus'] = @api_client.build_collection_param(opts[:'mixed_status'], :multi) if !opts[:'mixed_status'].nil?
|
|
578
|
+
query_params[:'riskLevel'] = @api_client.build_collection_param(opts[:'risk_level'], :multi) if !opts[:'risk_level'].nil?
|
|
579
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
580
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
581
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
582
|
+
|
|
583
|
+
# header parameters
|
|
584
|
+
header_params = opts[:header_params] || {}
|
|
585
|
+
# HTTP header 'Accept' (if needed)
|
|
586
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
587
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
588
|
+
|
|
589
|
+
# form parameters
|
|
590
|
+
form_params = opts[:form_params] || {}
|
|
591
|
+
|
|
592
|
+
# http body (model)
|
|
593
|
+
post_body = opts[:debug_body]
|
|
594
|
+
|
|
595
|
+
# return_type
|
|
596
|
+
return_type = opts[:debug_return_type] || 'PagedResponseOrderApiDto'
|
|
597
|
+
|
|
598
|
+
# auth_names
|
|
599
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
600
|
+
|
|
601
|
+
new_options = opts.merge(
|
|
602
|
+
:operation => :"ApiOrderApi.get_v1_order_so_list_paging",
|
|
603
|
+
:header_params => header_params,
|
|
604
|
+
:query_params => query_params,
|
|
605
|
+
:form_params => form_params,
|
|
606
|
+
:body => post_body,
|
|
607
|
+
:auth_names => auth_names,
|
|
608
|
+
:return_type => return_type
|
|
609
|
+
)
|
|
610
|
+
|
|
611
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
612
|
+
if @api_client.config.debugging
|
|
613
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#get_v1_order_so_list_paging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
614
|
+
end
|
|
615
|
+
return data, status_code, headers
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# 第三方-创建订单(含明细)
|
|
619
|
+
#
|
|
620
|
+
# @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.
|
|
621
|
+
# @param [Hash] opts the optional parameters
|
|
622
|
+
# @option opts [OrderApiDto] :order_api_dto
|
|
623
|
+
# @return [ApiResponseOrderApiDto]
|
|
624
|
+
def post_v1_order_create(x_credential_type, opts = {})
|
|
625
|
+
data, _status_code, _headers = post_v1_order_create_with_http_info(x_credential_type, opts)
|
|
626
|
+
data
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
# 第三方-创建订单(含明细)
|
|
630
|
+
#
|
|
631
|
+
# @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.
|
|
632
|
+
# @param [Hash] opts the optional parameters
|
|
633
|
+
# @option opts [OrderApiDto] :order_api_dto
|
|
634
|
+
# @return [Array<(ApiResponseOrderApiDto, Integer, Hash)>] ApiResponseOrderApiDto data, response status code and response headers
|
|
635
|
+
def post_v1_order_create_with_http_info(x_credential_type, opts = {})
|
|
636
|
+
if @api_client.config.debugging
|
|
637
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.post_v1_order_create ...'
|
|
638
|
+
end
|
|
639
|
+
# verify the required parameter 'x_credential_type' is set
|
|
640
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
641
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.post_v1_order_create"
|
|
642
|
+
end
|
|
643
|
+
# verify enum value
|
|
644
|
+
allowable_values = ["Token", "API Key"]
|
|
645
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
646
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
647
|
+
end
|
|
648
|
+
# resource path
|
|
649
|
+
local_var_path = '/v1/order/Create'
|
|
650
|
+
|
|
651
|
+
# query parameters
|
|
652
|
+
query_params = opts[:query_params] || {}
|
|
653
|
+
|
|
654
|
+
# header parameters
|
|
655
|
+
header_params = opts[:header_params] || {}
|
|
656
|
+
# HTTP header 'Accept' (if needed)
|
|
657
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
658
|
+
# HTTP header 'Content-Type'
|
|
659
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
660
|
+
if !content_type.nil?
|
|
661
|
+
header_params['Content-Type'] = content_type
|
|
662
|
+
end
|
|
663
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
664
|
+
|
|
665
|
+
# form parameters
|
|
666
|
+
form_params = opts[:form_params] || {}
|
|
667
|
+
|
|
668
|
+
# http body (model)
|
|
669
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order_api_dto'])
|
|
670
|
+
|
|
671
|
+
# return_type
|
|
672
|
+
return_type = opts[:debug_return_type] || 'ApiResponseOrderApiDto'
|
|
673
|
+
|
|
674
|
+
# auth_names
|
|
675
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
676
|
+
|
|
677
|
+
new_options = opts.merge(
|
|
678
|
+
:operation => :"ApiOrderApi.post_v1_order_create",
|
|
679
|
+
:header_params => header_params,
|
|
680
|
+
:query_params => query_params,
|
|
681
|
+
:form_params => form_params,
|
|
682
|
+
:body => post_body,
|
|
683
|
+
:auth_names => auth_names,
|
|
684
|
+
:return_type => return_type
|
|
685
|
+
)
|
|
686
|
+
|
|
687
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
688
|
+
if @api_client.config.debugging
|
|
689
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#post_v1_order_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
690
|
+
end
|
|
691
|
+
return data, status_code, headers
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# 第三方-销售订单接单(支持绑定成品/自动创建成品)
|
|
695
|
+
#
|
|
696
|
+
# @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.
|
|
697
|
+
# @param [Hash] opts the optional parameters
|
|
698
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
699
|
+
# @return [ApiResponseString]
|
|
700
|
+
def post_v1_order_so_accept(x_credential_type, opts = {})
|
|
701
|
+
data, _status_code, _headers = post_v1_order_so_accept_with_http_info(x_credential_type, opts)
|
|
702
|
+
data
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
# 第三方-销售订单接单(支持绑定成品/自动创建成品)
|
|
706
|
+
#
|
|
707
|
+
# @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.
|
|
708
|
+
# @param [Hash] opts the optional parameters
|
|
709
|
+
# @option opts [ResultMappingOrderSelect] :result_mapping_order_select
|
|
710
|
+
# @return [Array<(ApiResponseString, Integer, Hash)>] ApiResponseString data, response status code and response headers
|
|
711
|
+
def post_v1_order_so_accept_with_http_info(x_credential_type, opts = {})
|
|
712
|
+
if @api_client.config.debugging
|
|
713
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.post_v1_order_so_accept ...'
|
|
714
|
+
end
|
|
715
|
+
# verify the required parameter 'x_credential_type' is set
|
|
716
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
717
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.post_v1_order_so_accept"
|
|
718
|
+
end
|
|
719
|
+
# verify enum value
|
|
720
|
+
allowable_values = ["Token", "API Key"]
|
|
721
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
722
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
723
|
+
end
|
|
724
|
+
# resource path
|
|
725
|
+
local_var_path = '/v1/order/SoAccept'
|
|
726
|
+
|
|
727
|
+
# query parameters
|
|
728
|
+
query_params = opts[:query_params] || {}
|
|
729
|
+
|
|
730
|
+
# header parameters
|
|
731
|
+
header_params = opts[:header_params] || {}
|
|
732
|
+
# HTTP header 'Accept' (if needed)
|
|
733
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
734
|
+
# HTTP header 'Content-Type'
|
|
735
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
736
|
+
if !content_type.nil?
|
|
737
|
+
header_params['Content-Type'] = content_type
|
|
738
|
+
end
|
|
739
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
740
|
+
|
|
741
|
+
# form parameters
|
|
742
|
+
form_params = opts[:form_params] || {}
|
|
743
|
+
|
|
744
|
+
# http body (model)
|
|
745
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'result_mapping_order_select'])
|
|
746
|
+
|
|
747
|
+
# return_type
|
|
748
|
+
return_type = opts[:debug_return_type] || 'ApiResponseString'
|
|
749
|
+
|
|
750
|
+
# auth_names
|
|
751
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
752
|
+
|
|
753
|
+
new_options = opts.merge(
|
|
754
|
+
:operation => :"ApiOrderApi.post_v1_order_so_accept",
|
|
755
|
+
:header_params => header_params,
|
|
756
|
+
:query_params => query_params,
|
|
757
|
+
:form_params => form_params,
|
|
758
|
+
:body => post_body,
|
|
759
|
+
:auth_names => auth_names,
|
|
760
|
+
:return_type => return_type
|
|
761
|
+
)
|
|
762
|
+
|
|
763
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
764
|
+
if @api_client.config.debugging
|
|
765
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#post_v1_order_so_accept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
766
|
+
end
|
|
767
|
+
return data, status_code, headers
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
# 第三方-更新订单(部分字段)
|
|
771
|
+
#
|
|
772
|
+
# @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.
|
|
773
|
+
# @param [Hash] opts the optional parameters
|
|
774
|
+
# @option opts [OrderApiDto] :order_api_dto
|
|
775
|
+
# @return [ApiResponseString]
|
|
776
|
+
def put_v1_order_update(x_credential_type, opts = {})
|
|
777
|
+
data, _status_code, _headers = put_v1_order_update_with_http_info(x_credential_type, opts)
|
|
778
|
+
data
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# 第三方-更新订单(部分字段)
|
|
782
|
+
#
|
|
783
|
+
# @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.
|
|
784
|
+
# @param [Hash] opts the optional parameters
|
|
785
|
+
# @option opts [OrderApiDto] :order_api_dto
|
|
786
|
+
# @return [Array<(ApiResponseString, Integer, Hash)>] ApiResponseString data, response status code and response headers
|
|
787
|
+
def put_v1_order_update_with_http_info(x_credential_type, opts = {})
|
|
788
|
+
if @api_client.config.debugging
|
|
789
|
+
@api_client.config.logger.debug 'Calling API: ApiOrderApi.put_v1_order_update ...'
|
|
790
|
+
end
|
|
791
|
+
# verify the required parameter 'x_credential_type' is set
|
|
792
|
+
if @api_client.config.client_side_validation && x_credential_type.nil?
|
|
793
|
+
fail ArgumentError, "Missing the required parameter 'x_credential_type' when calling ApiOrderApi.put_v1_order_update"
|
|
794
|
+
end
|
|
795
|
+
# verify enum value
|
|
796
|
+
allowable_values = ["Token", "API Key"]
|
|
797
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(x_credential_type)
|
|
798
|
+
fail ArgumentError, "invalid value for \"x_credential_type\", must be one of #{allowable_values}"
|
|
799
|
+
end
|
|
800
|
+
# resource path
|
|
801
|
+
local_var_path = '/v1/order/Update'
|
|
802
|
+
|
|
803
|
+
# query parameters
|
|
804
|
+
query_params = opts[:query_params] || {}
|
|
805
|
+
|
|
806
|
+
# header parameters
|
|
807
|
+
header_params = opts[:header_params] || {}
|
|
808
|
+
# HTTP header 'Accept' (if needed)
|
|
809
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
810
|
+
# HTTP header 'Content-Type'
|
|
811
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
812
|
+
if !content_type.nil?
|
|
813
|
+
header_params['Content-Type'] = content_type
|
|
814
|
+
end
|
|
815
|
+
header_params[:'X-Credential-Type'] = x_credential_type
|
|
816
|
+
|
|
817
|
+
# form parameters
|
|
818
|
+
form_params = opts[:form_params] || {}
|
|
819
|
+
|
|
820
|
+
# http body (model)
|
|
821
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order_api_dto'])
|
|
822
|
+
|
|
823
|
+
# return_type
|
|
824
|
+
return_type = opts[:debug_return_type] || 'ApiResponseString'
|
|
825
|
+
|
|
826
|
+
# auth_names
|
|
827
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey', 'Signature', 'BearerToken', 'Timestamp']
|
|
828
|
+
|
|
829
|
+
new_options = opts.merge(
|
|
830
|
+
:operation => :"ApiOrderApi.put_v1_order_update",
|
|
831
|
+
:header_params => header_params,
|
|
832
|
+
:query_params => query_params,
|
|
833
|
+
:form_params => form_params,
|
|
834
|
+
:body => post_body,
|
|
835
|
+
:auth_names => auth_names,
|
|
836
|
+
:return_type => return_type
|
|
837
|
+
)
|
|
838
|
+
|
|
839
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
840
|
+
if @api_client.config.debugging
|
|
841
|
+
@api_client.config.logger.debug "API called: ApiOrderApi#put_v1_order_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
842
|
+
end
|
|
843
|
+
return data, status_code, headers
|
|
844
|
+
end
|
|
845
|
+
end
|
|
846
|
+
end
|