tencentcloud-sdk-trp 1.0.328
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/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-trp.rb +11 -0
- data/lib/v20210515/client.rb +708 -0
- data/lib/v20210515/models.rb +2023 -0
- metadata +66 -0
@@ -0,0 +1,2023 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Trp
|
19
|
+
module V20210515
|
20
|
+
# 上链数据
|
21
|
+
class ChainData < TencentCloud::Common::AbstractModel
|
22
|
+
# @param BlockHash: 区块hash
|
23
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
+
# @type BlockHash: String
|
25
|
+
# @param BlockHeight: 区块高度
|
26
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
+
# @type BlockHeight: String
|
28
|
+
# @param BlockTime: 区块时间
|
29
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
# @type BlockTime: String
|
31
|
+
|
32
|
+
attr_accessor :BlockHash, :BlockHeight, :BlockTime
|
33
|
+
|
34
|
+
def initialize(blockhash=nil, blockheight=nil, blocktime=nil)
|
35
|
+
@BlockHash = blockhash
|
36
|
+
@BlockHeight = blockheight
|
37
|
+
@BlockTime = blocktime
|
38
|
+
end
|
39
|
+
|
40
|
+
def deserialize(params)
|
41
|
+
@BlockHash = params['BlockHash']
|
42
|
+
@BlockHeight = params['BlockHeight']
|
43
|
+
@BlockTime = params['BlockTime']
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# 批次
|
48
|
+
class CodeBatch < TencentCloud::Common::AbstractModel
|
49
|
+
# @param BatchId: 批次号
|
50
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
|
+
# @type BatchId: String
|
52
|
+
# @param CorpId: 企业ID
|
53
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
|
+
# @type CorpId: Integer
|
55
|
+
# @param BatchCode: 码
|
56
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
|
+
# @type BatchCode: String
|
58
|
+
# @param CodeCnt: 码数量
|
59
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
60
|
+
# @type CodeCnt: Integer
|
61
|
+
# @param MerchantId: 所属商户ID
|
62
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
63
|
+
# @type MerchantId: String
|
64
|
+
# @param ProductId: 产品ID
|
65
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
66
|
+
# @type ProductId: String
|
67
|
+
# @param BatchType: 批次类型
|
68
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
69
|
+
# @type BatchType: Integer
|
70
|
+
# @param Remark: 备注
|
71
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
72
|
+
# @type Remark: String
|
73
|
+
# @param MpTpl: 微信模板
|
74
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
75
|
+
# @type MpTpl: String
|
76
|
+
# @param Status: 状态
|
77
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
78
|
+
# @type Status: Integer
|
79
|
+
# @param CreateTime: 创建时间
|
80
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
81
|
+
# @type CreateTime: String
|
82
|
+
# @param UpdateTime: 修改时间
|
83
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
84
|
+
# @type UpdateTime: String
|
85
|
+
# @param MerchantName: 所属商户名称
|
86
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
87
|
+
# @type MerchantName: String
|
88
|
+
# @param ProductName: 产品名称
|
89
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
90
|
+
# @type ProductName: String
|
91
|
+
# @param Ext: 0
|
92
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
93
|
+
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
|
94
|
+
# @param TplName: 模板名称
|
95
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
96
|
+
# @type TplName: String
|
97
|
+
|
98
|
+
attr_accessor :BatchId, :CorpId, :BatchCode, :CodeCnt, :MerchantId, :ProductId, :BatchType, :Remark, :MpTpl, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName, :Ext, :TplName
|
99
|
+
|
100
|
+
def initialize(batchid=nil, corpid=nil, batchcode=nil, codecnt=nil, merchantid=nil, productid=nil, batchtype=nil, remark=nil, mptpl=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, ext=nil, tplname=nil)
|
101
|
+
@BatchId = batchid
|
102
|
+
@CorpId = corpid
|
103
|
+
@BatchCode = batchcode
|
104
|
+
@CodeCnt = codecnt
|
105
|
+
@MerchantId = merchantid
|
106
|
+
@ProductId = productid
|
107
|
+
@BatchType = batchtype
|
108
|
+
@Remark = remark
|
109
|
+
@MpTpl = mptpl
|
110
|
+
@Status = status
|
111
|
+
@CreateTime = createtime
|
112
|
+
@UpdateTime = updatetime
|
113
|
+
@MerchantName = merchantname
|
114
|
+
@ProductName = productname
|
115
|
+
@Ext = ext
|
116
|
+
@TplName = tplname
|
117
|
+
end
|
118
|
+
|
119
|
+
def deserialize(params)
|
120
|
+
@BatchId = params['BatchId']
|
121
|
+
@CorpId = params['CorpId']
|
122
|
+
@BatchCode = params['BatchCode']
|
123
|
+
@CodeCnt = params['CodeCnt']
|
124
|
+
@MerchantId = params['MerchantId']
|
125
|
+
@ProductId = params['ProductId']
|
126
|
+
@BatchType = params['BatchType']
|
127
|
+
@Remark = params['Remark']
|
128
|
+
@MpTpl = params['MpTpl']
|
129
|
+
@Status = params['Status']
|
130
|
+
@CreateTime = params['CreateTime']
|
131
|
+
@UpdateTime = params['UpdateTime']
|
132
|
+
@MerchantName = params['MerchantName']
|
133
|
+
@ProductName = params['ProductName']
|
134
|
+
unless params['Ext'].nil?
|
135
|
+
@Ext = Ext.new
|
136
|
+
@Ext.deserialize(params['Ext'])
|
137
|
+
end
|
138
|
+
@TplName = params['TplName']
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# 码类型
|
143
|
+
class CodeItem < TencentCloud::Common::AbstractModel
|
144
|
+
# @param Code: 无
|
145
|
+
# @type Code: String
|
146
|
+
|
147
|
+
attr_accessor :Code
|
148
|
+
|
149
|
+
def initialize(code=nil)
|
150
|
+
@Code = code
|
151
|
+
end
|
152
|
+
|
153
|
+
def deserialize(params)
|
154
|
+
@Code = params['Code']
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# CreateCodeBatch请求参数结构体
|
159
|
+
class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
|
160
|
+
# @param CorpId: 企业ID
|
161
|
+
# @type CorpId: Integer
|
162
|
+
# @param MerchantId: 商户ID
|
163
|
+
# @type MerchantId: String
|
164
|
+
# @param ProductId: 产品ID
|
165
|
+
# @type ProductId: String
|
166
|
+
# @param BatchType: 批次类型 0:溯源 1:营销
|
167
|
+
# @type BatchType: Integer
|
168
|
+
# @param BatchId: 批次ID,系统自动生成
|
169
|
+
# @type BatchId: String
|
170
|
+
# @param Remark: 备注
|
171
|
+
# @type Remark: String
|
172
|
+
|
173
|
+
attr_accessor :CorpId, :MerchantId, :ProductId, :BatchType, :BatchId, :Remark
|
174
|
+
|
175
|
+
def initialize(corpid=nil, merchantid=nil, productid=nil, batchtype=nil, batchid=nil, remark=nil)
|
176
|
+
@CorpId = corpid
|
177
|
+
@MerchantId = merchantid
|
178
|
+
@ProductId = productid
|
179
|
+
@BatchType = batchtype
|
180
|
+
@BatchId = batchid
|
181
|
+
@Remark = remark
|
182
|
+
end
|
183
|
+
|
184
|
+
def deserialize(params)
|
185
|
+
@CorpId = params['CorpId']
|
186
|
+
@MerchantId = params['MerchantId']
|
187
|
+
@ProductId = params['ProductId']
|
188
|
+
@BatchType = params['BatchType']
|
189
|
+
@BatchId = params['BatchId']
|
190
|
+
@Remark = params['Remark']
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# CreateCodeBatch返回参数结构体
|
195
|
+
class CreateCodeBatchResponse < TencentCloud::Common::AbstractModel
|
196
|
+
# @param BatchId: 批次ID
|
197
|
+
# @type BatchId: String
|
198
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
199
|
+
# @type RequestId: String
|
200
|
+
|
201
|
+
attr_accessor :BatchId, :RequestId
|
202
|
+
|
203
|
+
def initialize(batchid=nil, requestid=nil)
|
204
|
+
@BatchId = batchid
|
205
|
+
@RequestId = requestid
|
206
|
+
end
|
207
|
+
|
208
|
+
def deserialize(params)
|
209
|
+
@BatchId = params['BatchId']
|
210
|
+
@RequestId = params['RequestId']
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# CreateCodePack请求参数结构体
|
215
|
+
class CreateCodePackRequest < TencentCloud::Common::AbstractModel
|
216
|
+
# @param MerchantId: 商户ID
|
217
|
+
# @type MerchantId: String
|
218
|
+
# @param CodeLength: 码长度
|
219
|
+
# @type CodeLength: Integer
|
220
|
+
# @param CodeType: 码类型 alphabet 字母, number 数字, mixin 混合
|
221
|
+
# @type CodeType: String
|
222
|
+
# @param Amount: 生码数量 普通码包时必填
|
223
|
+
# @type Amount: Integer
|
224
|
+
# @param CorpId: 企业ID
|
225
|
+
# @type CorpId: Integer
|
226
|
+
# @param PackType: 码包类型 0: 普通码包 1: 层级码包
|
227
|
+
# @type PackType: Integer
|
228
|
+
# @param PackLevel: 码包层级
|
229
|
+
# @type PackLevel: Integer
|
230
|
+
# @param PackSpec: 码包规格
|
231
|
+
# @type PackSpec: Array
|
232
|
+
|
233
|
+
attr_accessor :MerchantId, :CodeLength, :CodeType, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec
|
234
|
+
|
235
|
+
def initialize(merchantid=nil, codelength=nil, codetype=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil)
|
236
|
+
@MerchantId = merchantid
|
237
|
+
@CodeLength = codelength
|
238
|
+
@CodeType = codetype
|
239
|
+
@Amount = amount
|
240
|
+
@CorpId = corpid
|
241
|
+
@PackType = packtype
|
242
|
+
@PackLevel = packlevel
|
243
|
+
@PackSpec = packspec
|
244
|
+
end
|
245
|
+
|
246
|
+
def deserialize(params)
|
247
|
+
@MerchantId = params['MerchantId']
|
248
|
+
@CodeLength = params['CodeLength']
|
249
|
+
@CodeType = params['CodeType']
|
250
|
+
@Amount = params['Amount']
|
251
|
+
@CorpId = params['CorpId']
|
252
|
+
@PackType = params['PackType']
|
253
|
+
@PackLevel = params['PackLevel']
|
254
|
+
unless params['PackSpec'].nil?
|
255
|
+
@PackSpec = []
|
256
|
+
params['PackSpec'].each do |i|
|
257
|
+
packspec_tmp = PackSpec.new
|
258
|
+
packspec_tmp.deserialize(i)
|
259
|
+
@PackSpec << packspec_tmp
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# CreateCodePack返回参数结构体
|
266
|
+
class CreateCodePackResponse < TencentCloud::Common::AbstractModel
|
267
|
+
# @param PackId: 码包ID
|
268
|
+
# @type PackId: String
|
269
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
270
|
+
# @type RequestId: String
|
271
|
+
|
272
|
+
attr_accessor :PackId, :RequestId
|
273
|
+
|
274
|
+
def initialize(packid=nil, requestid=nil)
|
275
|
+
@PackId = packid
|
276
|
+
@RequestId = requestid
|
277
|
+
end
|
278
|
+
|
279
|
+
def deserialize(params)
|
280
|
+
@PackId = params['PackId']
|
281
|
+
@RequestId = params['RequestId']
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# CreateMerchant请求参数结构体
|
286
|
+
class CreateMerchantRequest < TencentCloud::Common::AbstractModel
|
287
|
+
# @param Name: 商户名称
|
288
|
+
# @type Name: String
|
289
|
+
# @param Remark: 备注
|
290
|
+
# @type Remark: String
|
291
|
+
# @param CorpId: 企业ID
|
292
|
+
# @type CorpId: Integer
|
293
|
+
|
294
|
+
attr_accessor :Name, :Remark, :CorpId
|
295
|
+
|
296
|
+
def initialize(name=nil, remark=nil, corpid=nil)
|
297
|
+
@Name = name
|
298
|
+
@Remark = remark
|
299
|
+
@CorpId = corpid
|
300
|
+
end
|
301
|
+
|
302
|
+
def deserialize(params)
|
303
|
+
@Name = params['Name']
|
304
|
+
@Remark = params['Remark']
|
305
|
+
@CorpId = params['CorpId']
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# CreateMerchant返回参数结构体
|
310
|
+
class CreateMerchantResponse < TencentCloud::Common::AbstractModel
|
311
|
+
# @param MerchantId: 商户标识码
|
312
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
313
|
+
# @type MerchantId: String
|
314
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
315
|
+
# @type RequestId: String
|
316
|
+
|
317
|
+
attr_accessor :MerchantId, :RequestId
|
318
|
+
|
319
|
+
def initialize(merchantid=nil, requestid=nil)
|
320
|
+
@MerchantId = merchantid
|
321
|
+
@RequestId = requestid
|
322
|
+
end
|
323
|
+
|
324
|
+
def deserialize(params)
|
325
|
+
@MerchantId = params['MerchantId']
|
326
|
+
@RequestId = params['RequestId']
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# CreateProduct请求参数结构体
|
331
|
+
class CreateProductRequest < TencentCloud::Common::AbstractModel
|
332
|
+
# @param Name: 商品名称
|
333
|
+
# @type Name: String
|
334
|
+
# @param MerchantId: 商户ID
|
335
|
+
# @type MerchantId: String
|
336
|
+
# @param Remark: 备注
|
337
|
+
# @type Remark: String
|
338
|
+
# @param MerchantName: 商户名称
|
339
|
+
# @type MerchantName: String
|
340
|
+
# @param Specification: 商品规格
|
341
|
+
# @type Specification: String
|
342
|
+
# @param Logo: 商品图片
|
343
|
+
# @type Logo: Array
|
344
|
+
# @param CorpId: 企业ID
|
345
|
+
# @type CorpId: Integer
|
346
|
+
# @param Ext: 预留字段
|
347
|
+
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
|
348
|
+
|
349
|
+
attr_accessor :Name, :MerchantId, :Remark, :MerchantName, :Specification, :Logo, :CorpId, :Ext
|
350
|
+
|
351
|
+
def initialize(name=nil, merchantid=nil, remark=nil, merchantname=nil, specification=nil, logo=nil, corpid=nil, ext=nil)
|
352
|
+
@Name = name
|
353
|
+
@MerchantId = merchantid
|
354
|
+
@Remark = remark
|
355
|
+
@MerchantName = merchantname
|
356
|
+
@Specification = specification
|
357
|
+
@Logo = logo
|
358
|
+
@CorpId = corpid
|
359
|
+
@Ext = ext
|
360
|
+
end
|
361
|
+
|
362
|
+
def deserialize(params)
|
363
|
+
@Name = params['Name']
|
364
|
+
@MerchantId = params['MerchantId']
|
365
|
+
@Remark = params['Remark']
|
366
|
+
@MerchantName = params['MerchantName']
|
367
|
+
@Specification = params['Specification']
|
368
|
+
@Logo = params['Logo']
|
369
|
+
@CorpId = params['CorpId']
|
370
|
+
unless params['Ext'].nil?
|
371
|
+
@Ext = Ext.new
|
372
|
+
@Ext.deserialize(params['Ext'])
|
373
|
+
end
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
# CreateProduct返回参数结构体
|
378
|
+
class CreateProductResponse < TencentCloud::Common::AbstractModel
|
379
|
+
# @param ProductId: 商品ID
|
380
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
381
|
+
# @type ProductId: String
|
382
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
383
|
+
# @type RequestId: String
|
384
|
+
|
385
|
+
attr_accessor :ProductId, :RequestId
|
386
|
+
|
387
|
+
def initialize(productid=nil, requestid=nil)
|
388
|
+
@ProductId = productid
|
389
|
+
@RequestId = requestid
|
390
|
+
end
|
391
|
+
|
392
|
+
def deserialize(params)
|
393
|
+
@ProductId = params['ProductId']
|
394
|
+
@RequestId = params['RequestId']
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
# CreateTraceChain请求参数结构体
|
399
|
+
class CreateTraceChainRequest < TencentCloud::Common::AbstractModel
|
400
|
+
# @param CorpId: 企业ID
|
401
|
+
# @type CorpId: Integer
|
402
|
+
# @param TraceId: 溯源ID
|
403
|
+
# @type TraceId: String
|
404
|
+
|
405
|
+
attr_accessor :CorpId, :TraceId
|
406
|
+
|
407
|
+
def initialize(corpid=nil, traceid=nil)
|
408
|
+
@CorpId = corpid
|
409
|
+
@TraceId = traceid
|
410
|
+
end
|
411
|
+
|
412
|
+
def deserialize(params)
|
413
|
+
@CorpId = params['CorpId']
|
414
|
+
@TraceId = params['TraceId']
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# CreateTraceChain返回参数结构体
|
419
|
+
class CreateTraceChainResponse < TencentCloud::Common::AbstractModel
|
420
|
+
# @param TraceId: 溯源ID
|
421
|
+
# @type TraceId: String
|
422
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
423
|
+
# @type RequestId: String
|
424
|
+
|
425
|
+
attr_accessor :TraceId, :RequestId
|
426
|
+
|
427
|
+
def initialize(traceid=nil, requestid=nil)
|
428
|
+
@TraceId = traceid
|
429
|
+
@RequestId = requestid
|
430
|
+
end
|
431
|
+
|
432
|
+
def deserialize(params)
|
433
|
+
@TraceId = params['TraceId']
|
434
|
+
@RequestId = params['RequestId']
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
# CreateTraceCodes请求参数结构体
|
439
|
+
class CreateTraceCodesRequest < TencentCloud::Common::AbstractModel
|
440
|
+
# @param BatchId: 批次ID
|
441
|
+
# @type BatchId: String
|
442
|
+
# @param CorpId: 企业ID
|
443
|
+
# @type CorpId: Integer
|
444
|
+
# @param Codes: 码
|
445
|
+
# @type Codes: Array
|
446
|
+
|
447
|
+
attr_accessor :BatchId, :CorpId, :Codes
|
448
|
+
|
449
|
+
def initialize(batchid=nil, corpid=nil, codes=nil)
|
450
|
+
@BatchId = batchid
|
451
|
+
@CorpId = corpid
|
452
|
+
@Codes = codes
|
453
|
+
end
|
454
|
+
|
455
|
+
def deserialize(params)
|
456
|
+
@BatchId = params['BatchId']
|
457
|
+
@CorpId = params['CorpId']
|
458
|
+
unless params['Codes'].nil?
|
459
|
+
@Codes = []
|
460
|
+
params['Codes'].each do |i|
|
461
|
+
codeitem_tmp = CodeItem.new
|
462
|
+
codeitem_tmp.deserialize(i)
|
463
|
+
@Codes << codeitem_tmp
|
464
|
+
end
|
465
|
+
end
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# CreateTraceCodes返回参数结构体
|
470
|
+
class CreateTraceCodesResponse < TencentCloud::Common::AbstractModel
|
471
|
+
# @param BatchId: 批次ID
|
472
|
+
# @type BatchId: String
|
473
|
+
# @param ActiveCnt: 导入成功码数量
|
474
|
+
# @type ActiveCnt: Integer
|
475
|
+
# @param CodeCnt: 批次码数量
|
476
|
+
# @type CodeCnt: Integer
|
477
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
478
|
+
# @type RequestId: String
|
479
|
+
|
480
|
+
attr_accessor :BatchId, :ActiveCnt, :CodeCnt, :RequestId
|
481
|
+
|
482
|
+
def initialize(batchid=nil, activecnt=nil, codecnt=nil, requestid=nil)
|
483
|
+
@BatchId = batchid
|
484
|
+
@ActiveCnt = activecnt
|
485
|
+
@CodeCnt = codecnt
|
486
|
+
@RequestId = requestid
|
487
|
+
end
|
488
|
+
|
489
|
+
def deserialize(params)
|
490
|
+
@BatchId = params['BatchId']
|
491
|
+
@ActiveCnt = params['ActiveCnt']
|
492
|
+
@CodeCnt = params['CodeCnt']
|
493
|
+
@RequestId = params['RequestId']
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
# CreateTraceData请求参数结构体
|
498
|
+
class CreateTraceDataRequest < TencentCloud::Common::AbstractModel
|
499
|
+
# @param CorpId: 企业ID
|
500
|
+
# @type CorpId: Integer
|
501
|
+
# @param BatchId: 批次ID
|
502
|
+
# @type BatchId: String
|
503
|
+
# @param TaskId: 任务ID
|
504
|
+
# @type TaskId: String
|
505
|
+
# @param Phase: 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
|
506
|
+
# @type Phase: Integer
|
507
|
+
# @param PhaseName: 溯源阶段名称
|
508
|
+
# @type PhaseName: String
|
509
|
+
# @param ChainStatus: [无效] 上链状态
|
510
|
+
# @type ChainStatus: Integer
|
511
|
+
# @param Type: [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
|
512
|
+
# @type Type: Integer
|
513
|
+
# @param TraceId: [无效] 溯源ID
|
514
|
+
# @type TraceId: String
|
515
|
+
# @param TraceItems: 溯源信息
|
516
|
+
# @type TraceItems: Array
|
517
|
+
|
518
|
+
attr_accessor :CorpId, :BatchId, :TaskId, :Phase, :PhaseName, :ChainStatus, :Type, :TraceId, :TraceItems
|
519
|
+
|
520
|
+
def initialize(corpid=nil, batchid=nil, taskid=nil, phase=nil, phasename=nil, chainstatus=nil, type=nil, traceid=nil, traceitems=nil)
|
521
|
+
@CorpId = corpid
|
522
|
+
@BatchId = batchid
|
523
|
+
@TaskId = taskid
|
524
|
+
@Phase = phase
|
525
|
+
@PhaseName = phasename
|
526
|
+
@ChainStatus = chainstatus
|
527
|
+
@Type = type
|
528
|
+
@TraceId = traceid
|
529
|
+
@TraceItems = traceitems
|
530
|
+
end
|
531
|
+
|
532
|
+
def deserialize(params)
|
533
|
+
@CorpId = params['CorpId']
|
534
|
+
@BatchId = params['BatchId']
|
535
|
+
@TaskId = params['TaskId']
|
536
|
+
@Phase = params['Phase']
|
537
|
+
@PhaseName = params['PhaseName']
|
538
|
+
@ChainStatus = params['ChainStatus']
|
539
|
+
@Type = params['Type']
|
540
|
+
@TraceId = params['TraceId']
|
541
|
+
unless params['TraceItems'].nil?
|
542
|
+
@TraceItems = []
|
543
|
+
params['TraceItems'].each do |i|
|
544
|
+
traceitem_tmp = TraceItem.new
|
545
|
+
traceitem_tmp.deserialize(i)
|
546
|
+
@TraceItems << traceitem_tmp
|
547
|
+
end
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
# CreateTraceData返回参数结构体
|
553
|
+
class CreateTraceDataResponse < TencentCloud::Common::AbstractModel
|
554
|
+
# @param TraceId: 溯源ID
|
555
|
+
# @type TraceId: String
|
556
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
557
|
+
# @type RequestId: String
|
558
|
+
|
559
|
+
attr_accessor :TraceId, :RequestId
|
560
|
+
|
561
|
+
def initialize(traceid=nil, requestid=nil)
|
562
|
+
@TraceId = traceid
|
563
|
+
@RequestId = requestid
|
564
|
+
end
|
565
|
+
|
566
|
+
def deserialize(params)
|
567
|
+
@TraceId = params['TraceId']
|
568
|
+
@RequestId = params['RequestId']
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# DeleteCodeBatch请求参数结构体
|
573
|
+
class DeleteCodeBatchRequest < TencentCloud::Common::AbstractModel
|
574
|
+
# @param CorpId: 企业ID
|
575
|
+
# @type CorpId: Integer
|
576
|
+
# @param BatchId: 批次ID
|
577
|
+
# @type BatchId: String
|
578
|
+
|
579
|
+
attr_accessor :CorpId, :BatchId
|
580
|
+
|
581
|
+
def initialize(corpid=nil, batchid=nil)
|
582
|
+
@CorpId = corpid
|
583
|
+
@BatchId = batchid
|
584
|
+
end
|
585
|
+
|
586
|
+
def deserialize(params)
|
587
|
+
@CorpId = params['CorpId']
|
588
|
+
@BatchId = params['BatchId']
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
# DeleteCodeBatch返回参数结构体
|
593
|
+
class DeleteCodeBatchResponse < TencentCloud::Common::AbstractModel
|
594
|
+
# @param BatchId: 批次ID
|
595
|
+
# @type BatchId: String
|
596
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
597
|
+
# @type RequestId: String
|
598
|
+
|
599
|
+
attr_accessor :BatchId, :RequestId
|
600
|
+
|
601
|
+
def initialize(batchid=nil, requestid=nil)
|
602
|
+
@BatchId = batchid
|
603
|
+
@RequestId = requestid
|
604
|
+
end
|
605
|
+
|
606
|
+
def deserialize(params)
|
607
|
+
@BatchId = params['BatchId']
|
608
|
+
@RequestId = params['RequestId']
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
# DeleteMerchant请求参数结构体
|
613
|
+
class DeleteMerchantRequest < TencentCloud::Common::AbstractModel
|
614
|
+
# @param MerchantId: 商户标识码
|
615
|
+
# @type MerchantId: String
|
616
|
+
# @param CorpId: 企业ID
|
617
|
+
# @type CorpId: Integer
|
618
|
+
|
619
|
+
attr_accessor :MerchantId, :CorpId
|
620
|
+
|
621
|
+
def initialize(merchantid=nil, corpid=nil)
|
622
|
+
@MerchantId = merchantid
|
623
|
+
@CorpId = corpid
|
624
|
+
end
|
625
|
+
|
626
|
+
def deserialize(params)
|
627
|
+
@MerchantId = params['MerchantId']
|
628
|
+
@CorpId = params['CorpId']
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
# DeleteMerchant返回参数结构体
|
633
|
+
class DeleteMerchantResponse < TencentCloud::Common::AbstractModel
|
634
|
+
# @param MerchantId: 商户标识码
|
635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
636
|
+
# @type MerchantId: String
|
637
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
638
|
+
# @type RequestId: String
|
639
|
+
|
640
|
+
attr_accessor :MerchantId, :RequestId
|
641
|
+
|
642
|
+
def initialize(merchantid=nil, requestid=nil)
|
643
|
+
@MerchantId = merchantid
|
644
|
+
@RequestId = requestid
|
645
|
+
end
|
646
|
+
|
647
|
+
def deserialize(params)
|
648
|
+
@MerchantId = params['MerchantId']
|
649
|
+
@RequestId = params['RequestId']
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
653
|
+
# DeleteProduct请求参数结构体
|
654
|
+
class DeleteProductRequest < TencentCloud::Common::AbstractModel
|
655
|
+
# @param ProductId: 商品ID
|
656
|
+
# @type ProductId: String
|
657
|
+
# @param CorpId: 企业ID
|
658
|
+
# @type CorpId: Integer
|
659
|
+
|
660
|
+
attr_accessor :ProductId, :CorpId
|
661
|
+
|
662
|
+
def initialize(productid=nil, corpid=nil)
|
663
|
+
@ProductId = productid
|
664
|
+
@CorpId = corpid
|
665
|
+
end
|
666
|
+
|
667
|
+
def deserialize(params)
|
668
|
+
@ProductId = params['ProductId']
|
669
|
+
@CorpId = params['CorpId']
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
# DeleteProduct返回参数结构体
|
674
|
+
class DeleteProductResponse < TencentCloud::Common::AbstractModel
|
675
|
+
# @param ProductId: 商品ID
|
676
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
677
|
+
# @type ProductId: String
|
678
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
679
|
+
# @type RequestId: String
|
680
|
+
|
681
|
+
attr_accessor :ProductId, :RequestId
|
682
|
+
|
683
|
+
def initialize(productid=nil, requestid=nil)
|
684
|
+
@ProductId = productid
|
685
|
+
@RequestId = requestid
|
686
|
+
end
|
687
|
+
|
688
|
+
def deserialize(params)
|
689
|
+
@ProductId = params['ProductId']
|
690
|
+
@RequestId = params['RequestId']
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# DeleteTraceData请求参数结构体
|
695
|
+
class DeleteTraceDataRequest < TencentCloud::Common::AbstractModel
|
696
|
+
# @param TraceId: 溯源ID
|
697
|
+
# @type TraceId: String
|
698
|
+
# @param CorpId: 企业ID
|
699
|
+
# @type CorpId: Integer
|
700
|
+
|
701
|
+
attr_accessor :TraceId, :CorpId
|
702
|
+
|
703
|
+
def initialize(traceid=nil, corpid=nil)
|
704
|
+
@TraceId = traceid
|
705
|
+
@CorpId = corpid
|
706
|
+
end
|
707
|
+
|
708
|
+
def deserialize(params)
|
709
|
+
@TraceId = params['TraceId']
|
710
|
+
@CorpId = params['CorpId']
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
714
|
+
# DeleteTraceData返回参数结构体
|
715
|
+
class DeleteTraceDataResponse < TencentCloud::Common::AbstractModel
|
716
|
+
# @param TraceId: 溯源id
|
717
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
718
|
+
# @type TraceId: String
|
719
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
720
|
+
# @type RequestId: String
|
721
|
+
|
722
|
+
attr_accessor :TraceId, :RequestId
|
723
|
+
|
724
|
+
def initialize(traceid=nil, requestid=nil)
|
725
|
+
@TraceId = traceid
|
726
|
+
@RequestId = requestid
|
727
|
+
end
|
728
|
+
|
729
|
+
def deserialize(params)
|
730
|
+
@TraceId = params['TraceId']
|
731
|
+
@RequestId = params['RequestId']
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
# DescribeCodeBatchById请求参数结构体
|
736
|
+
class DescribeCodeBatchByIdRequest < TencentCloud::Common::AbstractModel
|
737
|
+
# @param CorpId: 企业ID
|
738
|
+
# @type CorpId: Integer
|
739
|
+
# @param BatchId: 批次ID
|
740
|
+
# @type BatchId: String
|
741
|
+
|
742
|
+
attr_accessor :CorpId, :BatchId
|
743
|
+
|
744
|
+
def initialize(corpid=nil, batchid=nil)
|
745
|
+
@CorpId = corpid
|
746
|
+
@BatchId = batchid
|
747
|
+
end
|
748
|
+
|
749
|
+
def deserialize(params)
|
750
|
+
@CorpId = params['CorpId']
|
751
|
+
@BatchId = params['BatchId']
|
752
|
+
end
|
753
|
+
end
|
754
|
+
|
755
|
+
# DescribeCodeBatchById返回参数结构体
|
756
|
+
class DescribeCodeBatchByIdResponse < TencentCloud::Common::AbstractModel
|
757
|
+
# @param CodeBatch: 批次
|
758
|
+
# @type CodeBatch: :class:`Tencentcloud::Trp.v20210515.models.CodeBatch`
|
759
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
760
|
+
# @type RequestId: String
|
761
|
+
|
762
|
+
attr_accessor :CodeBatch, :RequestId
|
763
|
+
|
764
|
+
def initialize(codebatch=nil, requestid=nil)
|
765
|
+
@CodeBatch = codebatch
|
766
|
+
@RequestId = requestid
|
767
|
+
end
|
768
|
+
|
769
|
+
def deserialize(params)
|
770
|
+
unless params['CodeBatch'].nil?
|
771
|
+
@CodeBatch = CodeBatch.new
|
772
|
+
@CodeBatch.deserialize(params['CodeBatch'])
|
773
|
+
end
|
774
|
+
@RequestId = params['RequestId']
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
# DescribeCodeBatchs请求参数结构体
|
779
|
+
class DescribeCodeBatchsRequest < TencentCloud::Common::AbstractModel
|
780
|
+
# @param MerchantId: 查询商户ID
|
781
|
+
# @type MerchantId: String
|
782
|
+
# @param ProductId: 查询商品ID
|
783
|
+
# @type ProductId: String
|
784
|
+
# @param Keyword: 查询关键字
|
785
|
+
# @type Keyword: String
|
786
|
+
# @param PageSize: 条数
|
787
|
+
# @type PageSize: Integer
|
788
|
+
# @param PageNumber: 页数
|
789
|
+
# @type PageNumber: Integer
|
790
|
+
# @param BatchType: 批次类型 0:溯源 1:营销
|
791
|
+
# @type BatchType: String
|
792
|
+
# @param CorpId: 企业ID
|
793
|
+
# @type CorpId: Integer
|
794
|
+
|
795
|
+
attr_accessor :MerchantId, :ProductId, :Keyword, :PageSize, :PageNumber, :BatchType, :CorpId
|
796
|
+
|
797
|
+
def initialize(merchantid=nil, productid=nil, keyword=nil, pagesize=nil, pagenumber=nil, batchtype=nil, corpid=nil)
|
798
|
+
@MerchantId = merchantid
|
799
|
+
@ProductId = productid
|
800
|
+
@Keyword = keyword
|
801
|
+
@PageSize = pagesize
|
802
|
+
@PageNumber = pagenumber
|
803
|
+
@BatchType = batchtype
|
804
|
+
@CorpId = corpid
|
805
|
+
end
|
806
|
+
|
807
|
+
def deserialize(params)
|
808
|
+
@MerchantId = params['MerchantId']
|
809
|
+
@ProductId = params['ProductId']
|
810
|
+
@Keyword = params['Keyword']
|
811
|
+
@PageSize = params['PageSize']
|
812
|
+
@PageNumber = params['PageNumber']
|
813
|
+
@BatchType = params['BatchType']
|
814
|
+
@CorpId = params['CorpId']
|
815
|
+
end
|
816
|
+
end
|
817
|
+
|
818
|
+
# DescribeCodeBatchs返回参数结构体
|
819
|
+
class DescribeCodeBatchsResponse < TencentCloud::Common::AbstractModel
|
820
|
+
# @param CodeBatchs: 批次列表
|
821
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
822
|
+
# @type CodeBatchs: Array
|
823
|
+
# @param TotalCount: 总条数
|
824
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
825
|
+
# @type TotalCount: Integer
|
826
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
827
|
+
# @type RequestId: String
|
828
|
+
|
829
|
+
attr_accessor :CodeBatchs, :TotalCount, :RequestId
|
830
|
+
|
831
|
+
def initialize(codebatchs=nil, totalcount=nil, requestid=nil)
|
832
|
+
@CodeBatchs = codebatchs
|
833
|
+
@TotalCount = totalcount
|
834
|
+
@RequestId = requestid
|
835
|
+
end
|
836
|
+
|
837
|
+
def deserialize(params)
|
838
|
+
unless params['CodeBatchs'].nil?
|
839
|
+
@CodeBatchs = []
|
840
|
+
params['CodeBatchs'].each do |i|
|
841
|
+
codebatch_tmp = CodeBatch.new
|
842
|
+
codebatch_tmp.deserialize(i)
|
843
|
+
@CodeBatchs << codebatch_tmp
|
844
|
+
end
|
845
|
+
end
|
846
|
+
@TotalCount = params['TotalCount']
|
847
|
+
@RequestId = params['RequestId']
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
851
|
+
# DescribeCodePacks请求参数结构体
|
852
|
+
class DescribeCodePacksRequest < TencentCloud::Common::AbstractModel
|
853
|
+
# @param PageSize: 每页数量
|
854
|
+
# @type PageSize: Integer
|
855
|
+
# @param PageNumber: 页数
|
856
|
+
# @type PageNumber: Integer
|
857
|
+
# @param Keyword: 查询关键字
|
858
|
+
# @type Keyword: String
|
859
|
+
# @param CorpId: 企业ID
|
860
|
+
# @type CorpId: Integer
|
861
|
+
|
862
|
+
attr_accessor :PageSize, :PageNumber, :Keyword, :CorpId
|
863
|
+
|
864
|
+
def initialize(pagesize=nil, pagenumber=nil, keyword=nil, corpid=nil)
|
865
|
+
@PageSize = pagesize
|
866
|
+
@PageNumber = pagenumber
|
867
|
+
@Keyword = keyword
|
868
|
+
@CorpId = corpid
|
869
|
+
end
|
870
|
+
|
871
|
+
def deserialize(params)
|
872
|
+
@PageSize = params['PageSize']
|
873
|
+
@PageNumber = params['PageNumber']
|
874
|
+
@Keyword = params['Keyword']
|
875
|
+
@CorpId = params['CorpId']
|
876
|
+
end
|
877
|
+
end
|
878
|
+
|
879
|
+
# DescribeCodePacks返回参数结构体
|
880
|
+
class DescribeCodePacksResponse < TencentCloud::Common::AbstractModel
|
881
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
882
|
+
# @type RequestId: String
|
883
|
+
|
884
|
+
attr_accessor :RequestId
|
885
|
+
|
886
|
+
def initialize(requestid=nil)
|
887
|
+
@RequestId = requestid
|
888
|
+
end
|
889
|
+
|
890
|
+
def deserialize(params)
|
891
|
+
@RequestId = params['RequestId']
|
892
|
+
end
|
893
|
+
end
|
894
|
+
|
895
|
+
# DescribeCodesByPack请求参数结构体
|
896
|
+
class DescribeCodesByPackRequest < TencentCloud::Common::AbstractModel
|
897
|
+
# @param PackId: 码包ID
|
898
|
+
# @type PackId: String
|
899
|
+
# @param CorpId: 企业ID
|
900
|
+
# @type CorpId: Integer
|
901
|
+
|
902
|
+
attr_accessor :PackId, :CorpId
|
903
|
+
|
904
|
+
def initialize(packid=nil, corpid=nil)
|
905
|
+
@PackId = packid
|
906
|
+
@CorpId = corpid
|
907
|
+
end
|
908
|
+
|
909
|
+
def deserialize(params)
|
910
|
+
@PackId = params['PackId']
|
911
|
+
@CorpId = params['CorpId']
|
912
|
+
end
|
913
|
+
end
|
914
|
+
|
915
|
+
# DescribeCodesByPack返回参数结构体
|
916
|
+
class DescribeCodesByPackResponse < TencentCloud::Common::AbstractModel
|
917
|
+
# @param Codes: 码列表
|
918
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
919
|
+
# @type Codes: Array
|
920
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
921
|
+
# @type RequestId: String
|
922
|
+
|
923
|
+
attr_accessor :Codes, :RequestId
|
924
|
+
|
925
|
+
def initialize(codes=nil, requestid=nil)
|
926
|
+
@Codes = codes
|
927
|
+
@RequestId = requestid
|
928
|
+
end
|
929
|
+
|
930
|
+
def deserialize(params)
|
931
|
+
unless params['Codes'].nil?
|
932
|
+
@Codes = []
|
933
|
+
params['Codes'].each do |i|
|
934
|
+
codeitem_tmp = CodeItem.new
|
935
|
+
codeitem_tmp.deserialize(i)
|
936
|
+
@Codes << codeitem_tmp
|
937
|
+
end
|
938
|
+
end
|
939
|
+
@RequestId = params['RequestId']
|
940
|
+
end
|
941
|
+
end
|
942
|
+
|
943
|
+
# DescribeMerchantById请求参数结构体
|
944
|
+
class DescribeMerchantByIdRequest < TencentCloud::Common::AbstractModel
|
945
|
+
# @param MerchantId: 商户标识码
|
946
|
+
# @type MerchantId: String
|
947
|
+
# @param CorpId: 企业ID
|
948
|
+
# @type CorpId: Integer
|
949
|
+
|
950
|
+
attr_accessor :MerchantId, :CorpId
|
951
|
+
|
952
|
+
def initialize(merchantid=nil, corpid=nil)
|
953
|
+
@MerchantId = merchantid
|
954
|
+
@CorpId = corpid
|
955
|
+
end
|
956
|
+
|
957
|
+
def deserialize(params)
|
958
|
+
@MerchantId = params['MerchantId']
|
959
|
+
@CorpId = params['CorpId']
|
960
|
+
end
|
961
|
+
end
|
962
|
+
|
963
|
+
# DescribeMerchantById返回参数结构体
|
964
|
+
class DescribeMerchantByIdResponse < TencentCloud::Common::AbstractModel
|
965
|
+
# @param Merchant: 商户信息
|
966
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
967
|
+
# @type Merchant: :class:`Tencentcloud::Trp.v20210515.models.Merchant`
|
968
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
969
|
+
# @type RequestId: String
|
970
|
+
|
971
|
+
attr_accessor :Merchant, :RequestId
|
972
|
+
|
973
|
+
def initialize(merchant=nil, requestid=nil)
|
974
|
+
@Merchant = merchant
|
975
|
+
@RequestId = requestid
|
976
|
+
end
|
977
|
+
|
978
|
+
def deserialize(params)
|
979
|
+
unless params['Merchant'].nil?
|
980
|
+
@Merchant = Merchant.new
|
981
|
+
@Merchant.deserialize(params['Merchant'])
|
982
|
+
end
|
983
|
+
@RequestId = params['RequestId']
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
987
|
+
# DescribeMerchants请求参数结构体
|
988
|
+
class DescribeMerchantsRequest < TencentCloud::Common::AbstractModel
|
989
|
+
# @param Name: 搜索商户名称
|
990
|
+
# @type Name: String
|
991
|
+
# @param PageSize: 条数
|
992
|
+
# @type PageSize: Integer
|
993
|
+
# @param PageNumber: 页数
|
994
|
+
# @type PageNumber: Integer
|
995
|
+
# @param CorpId: 企业ID
|
996
|
+
# @type CorpId: Integer
|
997
|
+
|
998
|
+
attr_accessor :Name, :PageSize, :PageNumber, :CorpId
|
999
|
+
|
1000
|
+
def initialize(name=nil, pagesize=nil, pagenumber=nil, corpid=nil)
|
1001
|
+
@Name = name
|
1002
|
+
@PageSize = pagesize
|
1003
|
+
@PageNumber = pagenumber
|
1004
|
+
@CorpId = corpid
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def deserialize(params)
|
1008
|
+
@Name = params['Name']
|
1009
|
+
@PageSize = params['PageSize']
|
1010
|
+
@PageNumber = params['PageNumber']
|
1011
|
+
@CorpId = params['CorpId']
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# DescribeMerchants返回参数结构体
|
1016
|
+
class DescribeMerchantsResponse < TencentCloud::Common::AbstractModel
|
1017
|
+
# @param Merchants: 商户列表
|
1018
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1019
|
+
# @type Merchants: Array
|
1020
|
+
# @param TotalCount: 总数
|
1021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1022
|
+
# @type TotalCount: Integer
|
1023
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1024
|
+
# @type RequestId: String
|
1025
|
+
|
1026
|
+
attr_accessor :Merchants, :TotalCount, :RequestId
|
1027
|
+
|
1028
|
+
def initialize(merchants=nil, totalcount=nil, requestid=nil)
|
1029
|
+
@Merchants = merchants
|
1030
|
+
@TotalCount = totalcount
|
1031
|
+
@RequestId = requestid
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
def deserialize(params)
|
1035
|
+
unless params['Merchants'].nil?
|
1036
|
+
@Merchants = []
|
1037
|
+
params['Merchants'].each do |i|
|
1038
|
+
merchant_tmp = Merchant.new
|
1039
|
+
merchant_tmp.deserialize(i)
|
1040
|
+
@Merchants << merchant_tmp
|
1041
|
+
end
|
1042
|
+
end
|
1043
|
+
@TotalCount = params['TotalCount']
|
1044
|
+
@RequestId = params['RequestId']
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# DescribeProductById请求参数结构体
|
1049
|
+
class DescribeProductByIdRequest < TencentCloud::Common::AbstractModel
|
1050
|
+
# @param ProductId: 商品ID
|
1051
|
+
# @type ProductId: String
|
1052
|
+
# @param CorpId: 企业ID
|
1053
|
+
# @type CorpId: Integer
|
1054
|
+
|
1055
|
+
attr_accessor :ProductId, :CorpId
|
1056
|
+
|
1057
|
+
def initialize(productid=nil, corpid=nil)
|
1058
|
+
@ProductId = productid
|
1059
|
+
@CorpId = corpid
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
def deserialize(params)
|
1063
|
+
@ProductId = params['ProductId']
|
1064
|
+
@CorpId = params['CorpId']
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
# DescribeProductById返回参数结构体
|
1069
|
+
class DescribeProductByIdResponse < TencentCloud::Common::AbstractModel
|
1070
|
+
# @param Product: 商品信息
|
1071
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1072
|
+
# @type Product: :class:`Tencentcloud::Trp.v20210515.models.Product`
|
1073
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1074
|
+
# @type RequestId: String
|
1075
|
+
|
1076
|
+
attr_accessor :Product, :RequestId
|
1077
|
+
|
1078
|
+
def initialize(product=nil, requestid=nil)
|
1079
|
+
@Product = product
|
1080
|
+
@RequestId = requestid
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
def deserialize(params)
|
1084
|
+
unless params['Product'].nil?
|
1085
|
+
@Product = Product.new
|
1086
|
+
@Product.deserialize(params['Product'])
|
1087
|
+
end
|
1088
|
+
@RequestId = params['RequestId']
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# DescribeProducts请求参数结构体
|
1093
|
+
class DescribeProductsRequest < TencentCloud::Common::AbstractModel
|
1094
|
+
# @param Name: 商品名称
|
1095
|
+
# @type Name: String
|
1096
|
+
# @param PageSize: 条数
|
1097
|
+
# @type PageSize: Integer
|
1098
|
+
# @param PageNumber: 页数
|
1099
|
+
# @type PageNumber: Integer
|
1100
|
+
# @param MerchantId: 商品ID
|
1101
|
+
# @type MerchantId: String
|
1102
|
+
# @param CorpId: 企业ID
|
1103
|
+
# @type CorpId: Integer
|
1104
|
+
|
1105
|
+
attr_accessor :Name, :PageSize, :PageNumber, :MerchantId, :CorpId
|
1106
|
+
|
1107
|
+
def initialize(name=nil, pagesize=nil, pagenumber=nil, merchantid=nil, corpid=nil)
|
1108
|
+
@Name = name
|
1109
|
+
@PageSize = pagesize
|
1110
|
+
@PageNumber = pagenumber
|
1111
|
+
@MerchantId = merchantid
|
1112
|
+
@CorpId = corpid
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
def deserialize(params)
|
1116
|
+
@Name = params['Name']
|
1117
|
+
@PageSize = params['PageSize']
|
1118
|
+
@PageNumber = params['PageNumber']
|
1119
|
+
@MerchantId = params['MerchantId']
|
1120
|
+
@CorpId = params['CorpId']
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
# DescribeProducts返回参数结构体
|
1125
|
+
class DescribeProductsResponse < TencentCloud::Common::AbstractModel
|
1126
|
+
# @param Products: 商品列表
|
1127
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1128
|
+
# @type Products: Array
|
1129
|
+
# @param TotalCount: 总数
|
1130
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1131
|
+
# @type TotalCount: Integer
|
1132
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1133
|
+
# @type RequestId: String
|
1134
|
+
|
1135
|
+
attr_accessor :Products, :TotalCount, :RequestId
|
1136
|
+
|
1137
|
+
def initialize(products=nil, totalcount=nil, requestid=nil)
|
1138
|
+
@Products = products
|
1139
|
+
@TotalCount = totalcount
|
1140
|
+
@RequestId = requestid
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def deserialize(params)
|
1144
|
+
unless params['Products'].nil?
|
1145
|
+
@Products = []
|
1146
|
+
params['Products'].each do |i|
|
1147
|
+
product_tmp = Product.new
|
1148
|
+
product_tmp.deserialize(i)
|
1149
|
+
@Products << product_tmp
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
@TotalCount = params['TotalCount']
|
1153
|
+
@RequestId = params['RequestId']
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# DescribeTraceCodeById请求参数结构体
|
1158
|
+
class DescribeTraceCodeByIdRequest < TencentCloud::Common::AbstractModel
|
1159
|
+
# @param CorpId: 企业ID
|
1160
|
+
# @type CorpId: Integer
|
1161
|
+
# @param Code: 二维码
|
1162
|
+
# @type Code: String
|
1163
|
+
|
1164
|
+
attr_accessor :CorpId, :Code
|
1165
|
+
|
1166
|
+
def initialize(corpid=nil, code=nil)
|
1167
|
+
@CorpId = corpid
|
1168
|
+
@Code = code
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
def deserialize(params)
|
1172
|
+
@CorpId = params['CorpId']
|
1173
|
+
@Code = params['Code']
|
1174
|
+
end
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# DescribeTraceCodeById返回参数结构体
|
1178
|
+
class DescribeTraceCodeByIdResponse < TencentCloud::Common::AbstractModel
|
1179
|
+
# @param TraceCode: 无
|
1180
|
+
# @type TraceCode: :class:`Tencentcloud::Trp.v20210515.models.TraceCode`
|
1181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1182
|
+
# @type RequestId: String
|
1183
|
+
|
1184
|
+
attr_accessor :TraceCode, :RequestId
|
1185
|
+
|
1186
|
+
def initialize(tracecode=nil, requestid=nil)
|
1187
|
+
@TraceCode = tracecode
|
1188
|
+
@RequestId = requestid
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
def deserialize(params)
|
1192
|
+
unless params['TraceCode'].nil?
|
1193
|
+
@TraceCode = TraceCode.new
|
1194
|
+
@TraceCode.deserialize(params['TraceCode'])
|
1195
|
+
end
|
1196
|
+
@RequestId = params['RequestId']
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# DescribeTraceCodes请求参数结构体
|
1201
|
+
class DescribeTraceCodesRequest < TencentCloud::Common::AbstractModel
|
1202
|
+
# @param Keyword: 搜索关键字 码标识,或者批次ID
|
1203
|
+
# @type Keyword: String
|
1204
|
+
# @param PageNumber: 条数
|
1205
|
+
# @type PageNumber: Integer
|
1206
|
+
# @param PageSize: 页码
|
1207
|
+
# @type PageSize: Integer
|
1208
|
+
# @param BatchId: 批次ID,弃用
|
1209
|
+
# @type BatchId: String
|
1210
|
+
# @param CorpId: 企业ID
|
1211
|
+
# @type CorpId: Integer
|
1212
|
+
|
1213
|
+
attr_accessor :Keyword, :PageNumber, :PageSize, :BatchId, :CorpId
|
1214
|
+
|
1215
|
+
def initialize(keyword=nil, pagenumber=nil, pagesize=nil, batchid=nil, corpid=nil)
|
1216
|
+
@Keyword = keyword
|
1217
|
+
@PageNumber = pagenumber
|
1218
|
+
@PageSize = pagesize
|
1219
|
+
@BatchId = batchid
|
1220
|
+
@CorpId = corpid
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
def deserialize(params)
|
1224
|
+
@Keyword = params['Keyword']
|
1225
|
+
@PageNumber = params['PageNumber']
|
1226
|
+
@PageSize = params['PageSize']
|
1227
|
+
@BatchId = params['BatchId']
|
1228
|
+
@CorpId = params['CorpId']
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# DescribeTraceCodes返回参数结构体
|
1233
|
+
class DescribeTraceCodesResponse < TencentCloud::Common::AbstractModel
|
1234
|
+
# @param TraceCodes: 标识列表
|
1235
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1236
|
+
# @type TraceCodes: Array
|
1237
|
+
# @param TotalCount: 条数
|
1238
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1239
|
+
# @type TotalCount: Integer
|
1240
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1241
|
+
# @type RequestId: String
|
1242
|
+
|
1243
|
+
attr_accessor :TraceCodes, :TotalCount, :RequestId
|
1244
|
+
|
1245
|
+
def initialize(tracecodes=nil, totalcount=nil, requestid=nil)
|
1246
|
+
@TraceCodes = tracecodes
|
1247
|
+
@TotalCount = totalcount
|
1248
|
+
@RequestId = requestid
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
def deserialize(params)
|
1252
|
+
unless params['TraceCodes'].nil?
|
1253
|
+
@TraceCodes = []
|
1254
|
+
params['TraceCodes'].each do |i|
|
1255
|
+
tracecode_tmp = TraceCode.new
|
1256
|
+
tracecode_tmp.deserialize(i)
|
1257
|
+
@TraceCodes << tracecode_tmp
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
@TotalCount = params['TotalCount']
|
1261
|
+
@RequestId = params['RequestId']
|
1262
|
+
end
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# DescribeTraceDataList请求参数结构体
|
1266
|
+
class DescribeTraceDataListRequest < TencentCloud::Common::AbstractModel
|
1267
|
+
# @param CorpId: 企业ID
|
1268
|
+
# @type CorpId: Integer
|
1269
|
+
# @param BatchId: 批次ID
|
1270
|
+
# @type BatchId: String
|
1271
|
+
# @param TaskId: 任务ID 用于外部溯源
|
1272
|
+
# @type TaskId: String
|
1273
|
+
# @param PageNumber: 页数
|
1274
|
+
# @type PageNumber: Integer
|
1275
|
+
# @param Code: 二维码
|
1276
|
+
# @type Code: String
|
1277
|
+
# @param Phase: 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
|
1278
|
+
# @type Phase: Integer
|
1279
|
+
# @param PageSize: 数量
|
1280
|
+
# @type PageSize: Integer
|
1281
|
+
|
1282
|
+
attr_accessor :CorpId, :BatchId, :TaskId, :PageNumber, :Code, :Phase, :PageSize
|
1283
|
+
|
1284
|
+
def initialize(corpid=nil, batchid=nil, taskid=nil, pagenumber=nil, code=nil, phase=nil, pagesize=nil)
|
1285
|
+
@CorpId = corpid
|
1286
|
+
@BatchId = batchid
|
1287
|
+
@TaskId = taskid
|
1288
|
+
@PageNumber = pagenumber
|
1289
|
+
@Code = code
|
1290
|
+
@Phase = phase
|
1291
|
+
@PageSize = pagesize
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
def deserialize(params)
|
1295
|
+
@CorpId = params['CorpId']
|
1296
|
+
@BatchId = params['BatchId']
|
1297
|
+
@TaskId = params['TaskId']
|
1298
|
+
@PageNumber = params['PageNumber']
|
1299
|
+
@Code = params['Code']
|
1300
|
+
@Phase = params['Phase']
|
1301
|
+
@PageSize = params['PageSize']
|
1302
|
+
end
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# DescribeTraceDataList返回参数结构体
|
1306
|
+
class DescribeTraceDataListResponse < TencentCloud::Common::AbstractModel
|
1307
|
+
# @param TotalCount: 数量
|
1308
|
+
# @type TotalCount: Integer
|
1309
|
+
# @param TraceDataList: 无
|
1310
|
+
# @type TraceDataList: Array
|
1311
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1312
|
+
# @type RequestId: String
|
1313
|
+
|
1314
|
+
attr_accessor :TotalCount, :TraceDataList, :RequestId
|
1315
|
+
|
1316
|
+
def initialize(totalcount=nil, tracedatalist=nil, requestid=nil)
|
1317
|
+
@TotalCount = totalcount
|
1318
|
+
@TraceDataList = tracedatalist
|
1319
|
+
@RequestId = requestid
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
def deserialize(params)
|
1323
|
+
@TotalCount = params['TotalCount']
|
1324
|
+
unless params['TraceDataList'].nil?
|
1325
|
+
@TraceDataList = []
|
1326
|
+
params['TraceDataList'].each do |i|
|
1327
|
+
tracedata_tmp = TraceData.new
|
1328
|
+
tracedata_tmp.deserialize(i)
|
1329
|
+
@TraceDataList << tracedata_tmp
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
@RequestId = params['RequestId']
|
1333
|
+
end
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# 预留字段
|
1337
|
+
class Ext < TencentCloud::Common::AbstractModel
|
1338
|
+
|
1339
|
+
|
1340
|
+
def initialize()
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
def deserialize(params)
|
1344
|
+
end
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
# 商户信息
|
1348
|
+
class Merchant < TencentCloud::Common::AbstractModel
|
1349
|
+
# @param MerchantId: 商户标识码
|
1350
|
+
# @type MerchantId: String
|
1351
|
+
# @param CorpId: 企业id
|
1352
|
+
# @type CorpId: Integer
|
1353
|
+
# @param Name: 商户名称
|
1354
|
+
# @type Name: String
|
1355
|
+
# @param Remark: 备注
|
1356
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1357
|
+
# @type Remark: String
|
1358
|
+
# @param CreateTime: 创建时间
|
1359
|
+
# @type CreateTime: String
|
1360
|
+
# @param UpdateTime: 更新时间
|
1361
|
+
# @type UpdateTime: String
|
1362
|
+
# @param CodeRule: 商户码规则
|
1363
|
+
# @type CodeRule: String
|
1364
|
+
|
1365
|
+
attr_accessor :MerchantId, :CorpId, :Name, :Remark, :CreateTime, :UpdateTime, :CodeRule
|
1366
|
+
|
1367
|
+
def initialize(merchantid=nil, corpid=nil, name=nil, remark=nil, createtime=nil, updatetime=nil, coderule=nil)
|
1368
|
+
@MerchantId = merchantid
|
1369
|
+
@CorpId = corpid
|
1370
|
+
@Name = name
|
1371
|
+
@Remark = remark
|
1372
|
+
@CreateTime = createtime
|
1373
|
+
@UpdateTime = updatetime
|
1374
|
+
@CodeRule = coderule
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
def deserialize(params)
|
1378
|
+
@MerchantId = params['MerchantId']
|
1379
|
+
@CorpId = params['CorpId']
|
1380
|
+
@Name = params['Name']
|
1381
|
+
@Remark = params['Remark']
|
1382
|
+
@CreateTime = params['CreateTime']
|
1383
|
+
@UpdateTime = params['UpdateTime']
|
1384
|
+
@CodeRule = params['CodeRule']
|
1385
|
+
end
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
# ModifyCodeBatch请求参数结构体
|
1389
|
+
class ModifyCodeBatchRequest < TencentCloud::Common::AbstractModel
|
1390
|
+
# @param BatchId: 批次ID
|
1391
|
+
# @type BatchId: String
|
1392
|
+
# @param CorpId: 企业ID
|
1393
|
+
# @type CorpId: Integer
|
1394
|
+
# @param Status: 状态 0: 未激活 1: 已激活 -1: 已冻结
|
1395
|
+
# @type Status: Integer
|
1396
|
+
# @param MpTpl: 模板ID
|
1397
|
+
# @type MpTpl: String
|
1398
|
+
|
1399
|
+
attr_accessor :BatchId, :CorpId, :Status, :MpTpl
|
1400
|
+
|
1401
|
+
def initialize(batchid=nil, corpid=nil, status=nil, mptpl=nil)
|
1402
|
+
@BatchId = batchid
|
1403
|
+
@CorpId = corpid
|
1404
|
+
@Status = status
|
1405
|
+
@MpTpl = mptpl
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
def deserialize(params)
|
1409
|
+
@BatchId = params['BatchId']
|
1410
|
+
@CorpId = params['CorpId']
|
1411
|
+
@Status = params['Status']
|
1412
|
+
@MpTpl = params['MpTpl']
|
1413
|
+
end
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# ModifyCodeBatch返回参数结构体
|
1417
|
+
class ModifyCodeBatchResponse < TencentCloud::Common::AbstractModel
|
1418
|
+
# @param BatchId: 批次ID
|
1419
|
+
# @type BatchId: String
|
1420
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1421
|
+
# @type RequestId: String
|
1422
|
+
|
1423
|
+
attr_accessor :BatchId, :RequestId
|
1424
|
+
|
1425
|
+
def initialize(batchid=nil, requestid=nil)
|
1426
|
+
@BatchId = batchid
|
1427
|
+
@RequestId = requestid
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
def deserialize(params)
|
1431
|
+
@BatchId = params['BatchId']
|
1432
|
+
@RequestId = params['RequestId']
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# ModifyMerchant请求参数结构体
|
1437
|
+
class ModifyMerchantRequest < TencentCloud::Common::AbstractModel
|
1438
|
+
# @param Name: 商户名称
|
1439
|
+
# @type Name: String
|
1440
|
+
# @param MerchantId: 商户标识码
|
1441
|
+
# @type MerchantId: String
|
1442
|
+
# @param Remark: 备注
|
1443
|
+
# @type Remark: String
|
1444
|
+
# @param CorpId: 企业ID
|
1445
|
+
# @type CorpId: Integer
|
1446
|
+
|
1447
|
+
attr_accessor :Name, :MerchantId, :Remark, :CorpId
|
1448
|
+
|
1449
|
+
def initialize(name=nil, merchantid=nil, remark=nil, corpid=nil)
|
1450
|
+
@Name = name
|
1451
|
+
@MerchantId = merchantid
|
1452
|
+
@Remark = remark
|
1453
|
+
@CorpId = corpid
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
def deserialize(params)
|
1457
|
+
@Name = params['Name']
|
1458
|
+
@MerchantId = params['MerchantId']
|
1459
|
+
@Remark = params['Remark']
|
1460
|
+
@CorpId = params['CorpId']
|
1461
|
+
end
|
1462
|
+
end
|
1463
|
+
|
1464
|
+
# ModifyMerchant返回参数结构体
|
1465
|
+
class ModifyMerchantResponse < TencentCloud::Common::AbstractModel
|
1466
|
+
# @param MerchantId: 商户标识码
|
1467
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1468
|
+
# @type MerchantId: String
|
1469
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1470
|
+
# @type RequestId: String
|
1471
|
+
|
1472
|
+
attr_accessor :MerchantId, :RequestId
|
1473
|
+
|
1474
|
+
def initialize(merchantid=nil, requestid=nil)
|
1475
|
+
@MerchantId = merchantid
|
1476
|
+
@RequestId = requestid
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
def deserialize(params)
|
1480
|
+
@MerchantId = params['MerchantId']
|
1481
|
+
@RequestId = params['RequestId']
|
1482
|
+
end
|
1483
|
+
end
|
1484
|
+
|
1485
|
+
# ModifyProduct请求参数结构体
|
1486
|
+
class ModifyProductRequest < TencentCloud::Common::AbstractModel
|
1487
|
+
# @param Name: 商品名称
|
1488
|
+
# @type Name: String
|
1489
|
+
# @param ProductId: 商品ID
|
1490
|
+
# @type ProductId: String
|
1491
|
+
# @param Remark: 备注
|
1492
|
+
# @type Remark: String
|
1493
|
+
# @param Specification: 商品规格
|
1494
|
+
# @type Specification: String
|
1495
|
+
# @param Logo: 商品图片
|
1496
|
+
# @type Logo: Array
|
1497
|
+
# @param CorpId: 企业ID
|
1498
|
+
# @type CorpId: Integer
|
1499
|
+
# @param Ext: 预留字段
|
1500
|
+
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
|
1501
|
+
|
1502
|
+
attr_accessor :Name, :ProductId, :Remark, :Specification, :Logo, :CorpId, :Ext
|
1503
|
+
|
1504
|
+
def initialize(name=nil, productid=nil, remark=nil, specification=nil, logo=nil, corpid=nil, ext=nil)
|
1505
|
+
@Name = name
|
1506
|
+
@ProductId = productid
|
1507
|
+
@Remark = remark
|
1508
|
+
@Specification = specification
|
1509
|
+
@Logo = logo
|
1510
|
+
@CorpId = corpid
|
1511
|
+
@Ext = ext
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
def deserialize(params)
|
1515
|
+
@Name = params['Name']
|
1516
|
+
@ProductId = params['ProductId']
|
1517
|
+
@Remark = params['Remark']
|
1518
|
+
@Specification = params['Specification']
|
1519
|
+
@Logo = params['Logo']
|
1520
|
+
@CorpId = params['CorpId']
|
1521
|
+
unless params['Ext'].nil?
|
1522
|
+
@Ext = Ext.new
|
1523
|
+
@Ext.deserialize(params['Ext'])
|
1524
|
+
end
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# ModifyProduct返回参数结构体
|
1529
|
+
class ModifyProductResponse < TencentCloud::Common::AbstractModel
|
1530
|
+
# @param ProductId: 商品ID
|
1531
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1532
|
+
# @type ProductId: String
|
1533
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1534
|
+
# @type RequestId: String
|
1535
|
+
|
1536
|
+
attr_accessor :ProductId, :RequestId
|
1537
|
+
|
1538
|
+
def initialize(productid=nil, requestid=nil)
|
1539
|
+
@ProductId = productid
|
1540
|
+
@RequestId = requestid
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
def deserialize(params)
|
1544
|
+
@ProductId = params['ProductId']
|
1545
|
+
@RequestId = params['RequestId']
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# ModifyTraceCode请求参数结构体
|
1550
|
+
class ModifyTraceCodeRequest < TencentCloud::Common::AbstractModel
|
1551
|
+
# @param Code: 二维码
|
1552
|
+
# @type Code: String
|
1553
|
+
# @param CorpId: 企业ID
|
1554
|
+
# @type CorpId: Integer
|
1555
|
+
# @param Status: 状态 0: 冻结 1: 激活
|
1556
|
+
# @type Status: Integer
|
1557
|
+
|
1558
|
+
attr_accessor :Code, :CorpId, :Status
|
1559
|
+
|
1560
|
+
def initialize(code=nil, corpid=nil, status=nil)
|
1561
|
+
@Code = code
|
1562
|
+
@CorpId = corpid
|
1563
|
+
@Status = status
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
def deserialize(params)
|
1567
|
+
@Code = params['Code']
|
1568
|
+
@CorpId = params['CorpId']
|
1569
|
+
@Status = params['Status']
|
1570
|
+
end
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# ModifyTraceCode返回参数结构体
|
1574
|
+
class ModifyTraceCodeResponse < TencentCloud::Common::AbstractModel
|
1575
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1576
|
+
# @type RequestId: String
|
1577
|
+
|
1578
|
+
attr_accessor :RequestId
|
1579
|
+
|
1580
|
+
def initialize(requestid=nil)
|
1581
|
+
@RequestId = requestid
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
def deserialize(params)
|
1585
|
+
@RequestId = params['RequestId']
|
1586
|
+
end
|
1587
|
+
end
|
1588
|
+
|
1589
|
+
# ModifyTraceDataRanks请求参数结构体
|
1590
|
+
class ModifyTraceDataRanksRequest < TencentCloud::Common::AbstractModel
|
1591
|
+
# @param CorpId: 企业ID
|
1592
|
+
# @type CorpId: Integer
|
1593
|
+
# @param BatchId: 批次ID
|
1594
|
+
# @type BatchId: String
|
1595
|
+
# @param TaskId: 生产任务ID
|
1596
|
+
# @type TaskId: String
|
1597
|
+
# @param TraceIds: 溯源ID
|
1598
|
+
# @type TraceIds: Array
|
1599
|
+
|
1600
|
+
attr_accessor :CorpId, :BatchId, :TaskId, :TraceIds
|
1601
|
+
|
1602
|
+
def initialize(corpid=nil, batchid=nil, taskid=nil, traceids=nil)
|
1603
|
+
@CorpId = corpid
|
1604
|
+
@BatchId = batchid
|
1605
|
+
@TaskId = taskid
|
1606
|
+
@TraceIds = traceids
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
def deserialize(params)
|
1610
|
+
@CorpId = params['CorpId']
|
1611
|
+
@BatchId = params['BatchId']
|
1612
|
+
@TaskId = params['TaskId']
|
1613
|
+
@TraceIds = params['TraceIds']
|
1614
|
+
end
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
# ModifyTraceDataRanks返回参数结构体
|
1618
|
+
class ModifyTraceDataRanksResponse < TencentCloud::Common::AbstractModel
|
1619
|
+
# @param BatchId: 批次ID
|
1620
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1621
|
+
# @type BatchId: String
|
1622
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1623
|
+
# @type RequestId: String
|
1624
|
+
|
1625
|
+
attr_accessor :BatchId, :RequestId
|
1626
|
+
|
1627
|
+
def initialize(batchid=nil, requestid=nil)
|
1628
|
+
@BatchId = batchid
|
1629
|
+
@RequestId = requestid
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
def deserialize(params)
|
1633
|
+
@BatchId = params['BatchId']
|
1634
|
+
@RequestId = params['RequestId']
|
1635
|
+
end
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
# ModifyTraceData请求参数结构体
|
1639
|
+
class ModifyTraceDataRequest < TencentCloud::Common::AbstractModel
|
1640
|
+
# @param TraceId: 溯源ID
|
1641
|
+
# @type TraceId: String
|
1642
|
+
# @param BatchId: 批次ID
|
1643
|
+
# @type BatchId: String
|
1644
|
+
# @param TaskId: 生产溯源任务ID
|
1645
|
+
# @type TaskId: String
|
1646
|
+
# @param TraceItems: 溯源信息
|
1647
|
+
# @type TraceItems: Array
|
1648
|
+
# @param PhaseName: 溯源阶段名称
|
1649
|
+
# @type PhaseName: String
|
1650
|
+
# @param Type: [无效] 类型
|
1651
|
+
# @type Type: Integer
|
1652
|
+
# @param Code: [无效] 溯源码
|
1653
|
+
# @type Code: String
|
1654
|
+
# @param Rank: [无效] 排序
|
1655
|
+
# @type Rank: Integer
|
1656
|
+
# @param Phase: [无效] 溯源阶段 0:商品 1:通用 2:物流
|
1657
|
+
# @type Phase: Integer
|
1658
|
+
# @param TraceTime: [无效] 溯源时间
|
1659
|
+
# @type TraceTime: String
|
1660
|
+
# @param CreateTime: [无效] 创建时间
|
1661
|
+
# @type CreateTime: String
|
1662
|
+
# @param ChainStatus: [无效] 上链状态
|
1663
|
+
# @type ChainStatus: Integer
|
1664
|
+
# @param ChainTime: [无效] 上链时间
|
1665
|
+
# @type ChainTime: String
|
1666
|
+
# @param ChainData: [无效] 上链数据
|
1667
|
+
# @type ChainData: :class:`Tencentcloud::Trp.v20210515.models.ChainData`
|
1668
|
+
# @param CorpId: 企业ID
|
1669
|
+
# @type CorpId: Integer
|
1670
|
+
# @param Status: [无效] 溯源状态
|
1671
|
+
# @type Status: Integer
|
1672
|
+
|
1673
|
+
attr_accessor :TraceId, :BatchId, :TaskId, :TraceItems, :PhaseName, :Type, :Code, :Rank, :Phase, :TraceTime, :CreateTime, :ChainStatus, :ChainTime, :ChainData, :CorpId, :Status
|
1674
|
+
|
1675
|
+
def initialize(traceid=nil, batchid=nil, taskid=nil, traceitems=nil, phasename=nil, type=nil, code=nil, rank=nil, phase=nil, tracetime=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil, corpid=nil, status=nil)
|
1676
|
+
@TraceId = traceid
|
1677
|
+
@BatchId = batchid
|
1678
|
+
@TaskId = taskid
|
1679
|
+
@TraceItems = traceitems
|
1680
|
+
@PhaseName = phasename
|
1681
|
+
@Type = type
|
1682
|
+
@Code = code
|
1683
|
+
@Rank = rank
|
1684
|
+
@Phase = phase
|
1685
|
+
@TraceTime = tracetime
|
1686
|
+
@CreateTime = createtime
|
1687
|
+
@ChainStatus = chainstatus
|
1688
|
+
@ChainTime = chaintime
|
1689
|
+
@ChainData = chaindata
|
1690
|
+
@CorpId = corpid
|
1691
|
+
@Status = status
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
def deserialize(params)
|
1695
|
+
@TraceId = params['TraceId']
|
1696
|
+
@BatchId = params['BatchId']
|
1697
|
+
@TaskId = params['TaskId']
|
1698
|
+
unless params['TraceItems'].nil?
|
1699
|
+
@TraceItems = []
|
1700
|
+
params['TraceItems'].each do |i|
|
1701
|
+
traceitem_tmp = TraceItem.new
|
1702
|
+
traceitem_tmp.deserialize(i)
|
1703
|
+
@TraceItems << traceitem_tmp
|
1704
|
+
end
|
1705
|
+
end
|
1706
|
+
@PhaseName = params['PhaseName']
|
1707
|
+
@Type = params['Type']
|
1708
|
+
@Code = params['Code']
|
1709
|
+
@Rank = params['Rank']
|
1710
|
+
@Phase = params['Phase']
|
1711
|
+
@TraceTime = params['TraceTime']
|
1712
|
+
@CreateTime = params['CreateTime']
|
1713
|
+
@ChainStatus = params['ChainStatus']
|
1714
|
+
@ChainTime = params['ChainTime']
|
1715
|
+
unless params['ChainData'].nil?
|
1716
|
+
@ChainData = ChainData.new
|
1717
|
+
@ChainData.deserialize(params['ChainData'])
|
1718
|
+
end
|
1719
|
+
@CorpId = params['CorpId']
|
1720
|
+
@Status = params['Status']
|
1721
|
+
end
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
# ModifyTraceData返回参数结构体
|
1725
|
+
class ModifyTraceDataResponse < TencentCloud::Common::AbstractModel
|
1726
|
+
# @param TraceId: 溯源ID
|
1727
|
+
# @type TraceId: String
|
1728
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1729
|
+
# @type RequestId: String
|
1730
|
+
|
1731
|
+
attr_accessor :TraceId, :RequestId
|
1732
|
+
|
1733
|
+
def initialize(traceid=nil, requestid=nil)
|
1734
|
+
@TraceId = traceid
|
1735
|
+
@RequestId = requestid
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
def deserialize(params)
|
1739
|
+
@TraceId = params['TraceId']
|
1740
|
+
@RequestId = params['RequestId']
|
1741
|
+
end
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# 数组
|
1745
|
+
class PackSpec < TencentCloud::Common::AbstractModel
|
1746
|
+
# @param Level: 层级
|
1747
|
+
# @type Level: Integer
|
1748
|
+
# @param Rate: 比例
|
1749
|
+
# @type Rate: Integer
|
1750
|
+
# @param Amount: 数量
|
1751
|
+
# @type Amount: Integer
|
1752
|
+
|
1753
|
+
attr_accessor :Level, :Rate, :Amount
|
1754
|
+
|
1755
|
+
def initialize(level=nil, rate=nil, amount=nil)
|
1756
|
+
@Level = level
|
1757
|
+
@Rate = rate
|
1758
|
+
@Amount = amount
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
def deserialize(params)
|
1762
|
+
@Level = params['Level']
|
1763
|
+
@Rate = params['Rate']
|
1764
|
+
@Amount = params['Amount']
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
# 商品信息
|
1769
|
+
class Product < TencentCloud::Common::AbstractModel
|
1770
|
+
# @param ProductId: 商品id
|
1771
|
+
# @type ProductId: String
|
1772
|
+
# @param CorpId: 企业id
|
1773
|
+
# @type CorpId: Integer
|
1774
|
+
# @param MerchantId: 商户标识码
|
1775
|
+
# @type MerchantId: String
|
1776
|
+
# @param ProductCode: 商品编号
|
1777
|
+
# @type ProductCode: String
|
1778
|
+
# @param Name: 商品名称
|
1779
|
+
# @type Name: String
|
1780
|
+
# @param Specification: 商品规格
|
1781
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1782
|
+
# @type Specification: String
|
1783
|
+
# @param Remark: 备注
|
1784
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1785
|
+
# @type Remark: String
|
1786
|
+
# @param Logo: 商品图片
|
1787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1788
|
+
# @type Logo: Array
|
1789
|
+
# @param CreateTime: 创建时间
|
1790
|
+
# @type CreateTime: String
|
1791
|
+
# @param UpdateTime: 修改时间
|
1792
|
+
# @type UpdateTime: String
|
1793
|
+
# @param Ext: 预留字段
|
1794
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1795
|
+
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
|
1796
|
+
# @param MerchantName: 商户名称
|
1797
|
+
# @type MerchantName: String
|
1798
|
+
|
1799
|
+
attr_accessor :ProductId, :CorpId, :MerchantId, :ProductCode, :Name, :Specification, :Remark, :Logo, :CreateTime, :UpdateTime, :Ext, :MerchantName
|
1800
|
+
|
1801
|
+
def initialize(productid=nil, corpid=nil, merchantid=nil, productcode=nil, name=nil, specification=nil, remark=nil, logo=nil, createtime=nil, updatetime=nil, ext=nil, merchantname=nil)
|
1802
|
+
@ProductId = productid
|
1803
|
+
@CorpId = corpid
|
1804
|
+
@MerchantId = merchantid
|
1805
|
+
@ProductCode = productcode
|
1806
|
+
@Name = name
|
1807
|
+
@Specification = specification
|
1808
|
+
@Remark = remark
|
1809
|
+
@Logo = logo
|
1810
|
+
@CreateTime = createtime
|
1811
|
+
@UpdateTime = updatetime
|
1812
|
+
@Ext = ext
|
1813
|
+
@MerchantName = merchantname
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
def deserialize(params)
|
1817
|
+
@ProductId = params['ProductId']
|
1818
|
+
@CorpId = params['CorpId']
|
1819
|
+
@MerchantId = params['MerchantId']
|
1820
|
+
@ProductCode = params['ProductCode']
|
1821
|
+
@Name = params['Name']
|
1822
|
+
@Specification = params['Specification']
|
1823
|
+
@Remark = params['Remark']
|
1824
|
+
@Logo = params['Logo']
|
1825
|
+
@CreateTime = params['CreateTime']
|
1826
|
+
@UpdateTime = params['UpdateTime']
|
1827
|
+
unless params['Ext'].nil?
|
1828
|
+
@Ext = Ext.new
|
1829
|
+
@Ext.deserialize(params['Ext'])
|
1830
|
+
end
|
1831
|
+
@MerchantName = params['MerchantName']
|
1832
|
+
end
|
1833
|
+
end
|
1834
|
+
|
1835
|
+
# 溯源码
|
1836
|
+
class TraceCode < TencentCloud::Common::AbstractModel
|
1837
|
+
# @param Code: 码
|
1838
|
+
# @type Code: String
|
1839
|
+
# @param CorpId: 企业ID
|
1840
|
+
# @type CorpId: Integer
|
1841
|
+
# @param PackId: 包ID
|
1842
|
+
# @type PackId: String
|
1843
|
+
# @param BatchId: 批次ID
|
1844
|
+
# @type BatchId: String
|
1845
|
+
# @param MerchantId: 所属商户ID
|
1846
|
+
# @type MerchantId: String
|
1847
|
+
# @param ProductId: 产品ID
|
1848
|
+
# @type ProductId: String
|
1849
|
+
# @param Status: 状态
|
1850
|
+
# @type Status: Integer
|
1851
|
+
# @param CreateTime: 创建时间
|
1852
|
+
# @type CreateTime: String
|
1853
|
+
# @param UpdateTime: 修改时间
|
1854
|
+
# @type UpdateTime: String
|
1855
|
+
# @param MerchantName: 商户名称
|
1856
|
+
# @type MerchantName: String
|
1857
|
+
# @param ProductName: 产品名称
|
1858
|
+
# @type ProductName: String
|
1859
|
+
|
1860
|
+
attr_accessor :Code, :CorpId, :PackId, :BatchId, :MerchantId, :ProductId, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName
|
1861
|
+
|
1862
|
+
def initialize(code=nil, corpid=nil, packid=nil, batchid=nil, merchantid=nil, productid=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil)
|
1863
|
+
@Code = code
|
1864
|
+
@CorpId = corpid
|
1865
|
+
@PackId = packid
|
1866
|
+
@BatchId = batchid
|
1867
|
+
@MerchantId = merchantid
|
1868
|
+
@ProductId = productid
|
1869
|
+
@Status = status
|
1870
|
+
@CreateTime = createtime
|
1871
|
+
@UpdateTime = updatetime
|
1872
|
+
@MerchantName = merchantname
|
1873
|
+
@ProductName = productname
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
def deserialize(params)
|
1877
|
+
@Code = params['Code']
|
1878
|
+
@CorpId = params['CorpId']
|
1879
|
+
@PackId = params['PackId']
|
1880
|
+
@BatchId = params['BatchId']
|
1881
|
+
@MerchantId = params['MerchantId']
|
1882
|
+
@ProductId = params['ProductId']
|
1883
|
+
@Status = params['Status']
|
1884
|
+
@CreateTime = params['CreateTime']
|
1885
|
+
@UpdateTime = params['UpdateTime']
|
1886
|
+
@MerchantName = params['MerchantName']
|
1887
|
+
@ProductName = params['ProductName']
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
# 溯源数据
|
1892
|
+
class TraceData < TencentCloud::Common::AbstractModel
|
1893
|
+
# @param TraceId: 溯源ID
|
1894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1895
|
+
# @type TraceId: String
|
1896
|
+
# @param CorpId: 企业ID
|
1897
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1898
|
+
# @type CorpId: Integer
|
1899
|
+
# @param Type: 0
|
1900
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1901
|
+
# @type Type: Integer
|
1902
|
+
# @param Code: 码
|
1903
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1904
|
+
# @type Code: String
|
1905
|
+
# @param Rank: 排序
|
1906
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1907
|
+
# @type Rank: Integer
|
1908
|
+
# @param Phase: 溯源阶段 0:商品 1:通用 2:物流
|
1909
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1910
|
+
# @type Phase: Integer
|
1911
|
+
# @param PhaseName: 环节名称
|
1912
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1913
|
+
# @type PhaseName: String
|
1914
|
+
# @param TraceTime: 时间
|
1915
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1916
|
+
# @type TraceTime: String
|
1917
|
+
# @param TraceItems: 无
|
1918
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1919
|
+
# @type TraceItems: Array
|
1920
|
+
# @param CreateTime: 创建时间
|
1921
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1922
|
+
# @type CreateTime: String
|
1923
|
+
# @param ChainStatus: 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
|
1924
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1925
|
+
# @type ChainStatus: Integer
|
1926
|
+
# @param ChainTime: 上链时间
|
1927
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1928
|
+
# @type ChainTime: String
|
1929
|
+
# @param ChainData: 无
|
1930
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1931
|
+
# @type ChainData: :class:`Tencentcloud::Trp.v20210515.models.ChainData`
|
1932
|
+
|
1933
|
+
attr_accessor :TraceId, :CorpId, :Type, :Code, :Rank, :Phase, :PhaseName, :TraceTime, :TraceItems, :CreateTime, :ChainStatus, :ChainTime, :ChainData
|
1934
|
+
|
1935
|
+
def initialize(traceid=nil, corpid=nil, type=nil, code=nil, rank=nil, phase=nil, phasename=nil, tracetime=nil, traceitems=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil)
|
1936
|
+
@TraceId = traceid
|
1937
|
+
@CorpId = corpid
|
1938
|
+
@Type = type
|
1939
|
+
@Code = code
|
1940
|
+
@Rank = rank
|
1941
|
+
@Phase = phase
|
1942
|
+
@PhaseName = phasename
|
1943
|
+
@TraceTime = tracetime
|
1944
|
+
@TraceItems = traceitems
|
1945
|
+
@CreateTime = createtime
|
1946
|
+
@ChainStatus = chainstatus
|
1947
|
+
@ChainTime = chaintime
|
1948
|
+
@ChainData = chaindata
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
def deserialize(params)
|
1952
|
+
@TraceId = params['TraceId']
|
1953
|
+
@CorpId = params['CorpId']
|
1954
|
+
@Type = params['Type']
|
1955
|
+
@Code = params['Code']
|
1956
|
+
@Rank = params['Rank']
|
1957
|
+
@Phase = params['Phase']
|
1958
|
+
@PhaseName = params['PhaseName']
|
1959
|
+
@TraceTime = params['TraceTime']
|
1960
|
+
unless params['TraceItems'].nil?
|
1961
|
+
@TraceItems = []
|
1962
|
+
params['TraceItems'].each do |i|
|
1963
|
+
traceitem_tmp = TraceItem.new
|
1964
|
+
traceitem_tmp.deserialize(i)
|
1965
|
+
@TraceItems << traceitem_tmp
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
@CreateTime = params['CreateTime']
|
1969
|
+
@ChainStatus = params['ChainStatus']
|
1970
|
+
@ChainTime = params['ChainTime']
|
1971
|
+
unless params['ChainData'].nil?
|
1972
|
+
@ChainData = ChainData.new
|
1973
|
+
@ChainData.deserialize(params['ChainData'])
|
1974
|
+
end
|
1975
|
+
end
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
# 溯源数据
|
1979
|
+
class TraceItem < TencentCloud::Common::AbstractModel
|
1980
|
+
# @param Name: 名称
|
1981
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1982
|
+
# @type Name: String
|
1983
|
+
# @param Value: 单个值
|
1984
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1985
|
+
# @type Value: String
|
1986
|
+
# @param Type: 类型
|
1987
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1988
|
+
# @type Type: String
|
1989
|
+
# @param ReadOnly: 只读
|
1990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1991
|
+
# @type ReadOnly: Boolean
|
1992
|
+
# @param Hidden: 扫码展示
|
1993
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1994
|
+
# @type Hidden: Boolean
|
1995
|
+
# @param Values: 多个值
|
1996
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1997
|
+
# @type Values: Array
|
1998
|
+
|
1999
|
+
attr_accessor :Name, :Value, :Type, :ReadOnly, :Hidden, :Values
|
2000
|
+
|
2001
|
+
def initialize(name=nil, value=nil, type=nil, readonly=nil, hidden=nil, values=nil)
|
2002
|
+
@Name = name
|
2003
|
+
@Value = value
|
2004
|
+
@Type = type
|
2005
|
+
@ReadOnly = readonly
|
2006
|
+
@Hidden = hidden
|
2007
|
+
@Values = values
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
def deserialize(params)
|
2011
|
+
@Name = params['Name']
|
2012
|
+
@Value = params['Value']
|
2013
|
+
@Type = params['Type']
|
2014
|
+
@ReadOnly = params['ReadOnly']
|
2015
|
+
@Hidden = params['Hidden']
|
2016
|
+
@Values = params['Values']
|
2017
|
+
end
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
end
|
2021
|
+
end
|
2022
|
+
end
|
2023
|
+
|