tencentcloud-sdk-nodejs 4.0.460 → 4.0.461

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +204 -0
  2. package/SERVICE_CHANGELOG.md +279 -106
  3. package/package.json +1 -1
  4. package/products.md +9 -9
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/bma/v20210624/bma_client.ts +14 -2
  7. package/src/services/bma/v20210624/bma_models.ts +112 -42
  8. package/src/services/cynosdb/v20190107/cynosdb_client.ts +67 -16
  9. package/src/services/cynosdb/v20190107/cynosdb_models.ts +570 -202
  10. package/src/services/essbasic/v20210526/essbasic_client.ts +7 -20
  11. package/src/services/essbasic/v20210526/essbasic_models.ts +0 -35
  12. package/src/services/faceid/v20180301/faceid_client.ts +189 -62
  13. package/src/services/faceid/v20180301/faceid_models.ts +2264 -1531
  14. package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
  15. package/src/services/trp/v20210515/trp_client.ts +189 -67
  16. package/src/services/trp/v20210515/trp_models.ts +1152 -682
  17. package/src/services/trtc/v20190722/trtc_client.ts +79 -5
  18. package/src/services/trtc/v20190722/trtc_models.ts +691 -106
  19. package/src/services/wedata/v20210820/wedata_client.ts +116 -40
  20. package/src/services/wedata/v20210820/wedata_models.ts +646 -166
  21. package/tencentcloud/common/sdk_version.d.ts +1 -1
  22. package/tencentcloud/common/sdk_version.js +1 -1
  23. package/tencentcloud/services/bma/v20210624/bma_client.d.ts +5 -1
  24. package/tencentcloud/services/bma/v20210624/bma_client.js +6 -0
  25. package/tencentcloud/services/bma/v20210624/bma_models.d.ts +96 -38
  26. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +19 -3
  27. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +27 -3
  28. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +476 -168
  29. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -8
  30. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -10
  31. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +0 -30
  32. package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +46 -3
  33. package/tencentcloud/services/faceid/v20180301/faceid_client.js +66 -3
  34. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +2142 -1511
  35. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
  36. package/tencentcloud/services/trp/v20210515/trp_client.d.ts +47 -7
  37. package/tencentcloud/services/trp/v20210515/trp_client.js +69 -9
  38. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +999 -598
  39. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +32 -1
  40. package/tencentcloud/services/trtc/v20190722/trtc_client.js +37 -0
  41. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +556 -60
  42. package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +36 -12
  43. package/tencentcloud/services/wedata/v20210820/wedata_client.js +51 -15
  44. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +554 -149
  45. package/test/bma.v20210624.test.js +10 -0
  46. package/test/cynosdb.v20190107.test.js +42 -2
  47. package/test/essbasic.v20210526.test.js +2 -12
  48. package/test/faceid.v20180301.test.js +102 -2
  49. package/test/trp.v20210515.test.js +106 -6
  50. package/test/trtc.v20190722.test.js +30 -0
  51. package/test/wedata.v20210820.test.js +68 -8
@@ -123,68 +123,44 @@ export interface CodeBatch {
123
123
  }
124
124
 
125
125
  /**
126
- * DeleteProduct请求参数结构体
127
- */
128
- export interface DeleteProductRequest {
129
- /**
130
- * 商品ID
131
- */
132
- ProductId: string
133
-
134
- /**
135
- * 企业ID
136
- */
137
- CorpId?: number
138
- }
139
-
140
- /**
141
- * ModifyCodeBatch请求参数结构体
126
+ * DescribeProducts请求参数结构体
142
127
  */
143
- export interface ModifyCodeBatchRequest {
144
- /**
145
- * 批次ID
146
- */
147
- BatchId: string
148
-
149
- /**
150
- * 企业ID
151
- */
152
- CorpId?: number
153
-
128
+ export interface DescribeProductsRequest {
154
129
  /**
155
- * 状态 0: 未激活 1: 已激活 -1: 已冻结
130
+ * 商品名称
156
131
  */
157
- Status?: number
132
+ Name?: string
158
133
 
159
134
  /**
160
- * 模板ID
135
+ * 条数
161
136
  */
162
- MpTpl?: string
137
+ PageSize?: number
163
138
 
164
139
  /**
165
- * 商户ID
140
+ * 页数
166
141
  */
167
- MerchantId?: string
142
+ PageNumber?: number
168
143
 
169
144
  /**
170
145
  * 商品ID
171
146
  */
172
- ProductId?: string
147
+ MerchantId?: string
173
148
 
174
149
  /**
175
- * 备注
150
+ * 企业ID
176
151
  */
177
- Remark?: string
152
+ CorpId?: number
178
153
  }
179
154
 
180
155
  /**
181
- * CreateCodeBatch返回参数结构体
156
+ * ModifyProduct返回参数结构体
182
157
  */
183
- export interface CreateCodeBatchResponse {
158
+ export interface ModifyProductResponse {
184
159
  /**
185
- * 批次ID
186
- */
187
- BatchId: string
160
+ * 商品ID
161
+ 注意:此字段可能返回 null,表示取不到有效值。
162
+ */
163
+ ProductId: string
188
164
 
189
165
  /**
190
166
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -193,125 +169,142 @@ export interface CreateCodeBatchResponse {
193
169
  }
194
170
 
195
171
  /**
196
- * DescribeProductById请求参数结构体
172
+ * ModifyProduct请求参数结构体
197
173
  */
198
- export interface DescribeProductByIdRequest {
174
+ export interface ModifyProductRequest {
175
+ /**
176
+ * 商品名称
177
+ */
178
+ Name: string
179
+
199
180
  /**
200
181
  * 商品ID
201
182
  */
202
183
  ProductId: string
203
184
 
204
185
  /**
205
- * 企业ID
186
+ * 备注
206
187
  */
207
- CorpId?: number
208
- }
188
+ Remark?: string
209
189
 
210
- /**
211
- * ModifyTraceDataRanks请求参数结构体
212
- */
213
- export interface ModifyTraceDataRanksRequest {
214
190
  /**
215
- * 企业ID
191
+ * 商品规格
216
192
  */
217
- CorpId?: number
193
+ Specification?: string
218
194
 
219
195
  /**
220
- * 批次ID
196
+ * 商品图片
221
197
  */
222
- BatchId?: string
198
+ Logo?: Array<string>
223
199
 
224
200
  /**
225
- * 生产任务ID
201
+ * 企业ID
226
202
  */
227
- TaskId?: string
203
+ CorpId?: number
228
204
 
229
205
  /**
230
- * 溯源ID
206
+ * 预留字段
231
207
  */
232
- TraceIds?: Array<string>
208
+ Ext?: Ext
233
209
  }
234
210
 
235
211
  /**
236
- * CreateTraceCodes返回参数结构体
212
+ * ModifyCustomRule请求参数结构体
237
213
  */
238
- export interface CreateTraceCodesResponse {
214
+ export interface ModifyCustomRuleRequest {
239
215
  /**
240
- * 批次ID
216
+ * 码规则ID
241
217
  */
242
- BatchId: string
218
+ CustomId: string
243
219
 
244
220
  /**
245
- * 导入成功码数量
221
+ * 规则名称
246
222
  */
247
- ActiveCnt: number
223
+ Name: string
248
224
 
249
225
  /**
250
- * 批次码数量
226
+ * 码长度
251
227
  */
252
- CodeCnt: number
228
+ CodeLength: number
253
229
 
254
230
  /**
255
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
231
+ * 码段配置
256
232
  */
257
- RequestId?: string
233
+ CodeParts: Array<CodePart>
234
+
235
+ /**
236
+ * 企业ID
237
+ */
238
+ CorpId?: number
258
239
  }
259
240
 
260
241
  /**
261
- * DescribeTraceCodes返回参数结构体
242
+ * 码段配置
262
243
  */
263
- export interface DescribeTraceCodesResponse {
244
+ export interface CodePart {
264
245
  /**
265
- * 标识列表
246
+ * 码段名称
266
247
  注意:此字段可能返回 null,表示取不到有效值。
267
248
  */
268
- TraceCodes: Array<TraceCode>
249
+ Name: string
269
250
 
270
251
  /**
271
- * 条数
252
+ * 码段类型
272
253
  注意:此字段可能返回 null,表示取不到有效值。
273
254
  */
274
- TotalCount: number
255
+ Type: string
275
256
 
276
257
  /**
277
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ * 码段内容
259
+ 注意:此字段可能返回 null,表示取不到有效值。
260
+ */
261
+ Value: string
262
+
263
+ /**
264
+ * 码段长度
278
265
  */
279
- RequestId?: string
266
+ Length: number
267
+
268
+ /**
269
+ * 扩展字段
270
+ 注意:此字段可能返回 null,表示取不到有效值。
271
+ */
272
+ Ext: string
280
273
  }
281
274
 
282
275
  /**
283
- * DeleteTraceData请求参数结构体
276
+ * DeleteCodeBatch请求参数结构体
284
277
  */
285
- export interface DeleteTraceDataRequest {
278
+ export interface DeleteCodeBatchRequest {
286
279
  /**
287
- * 溯源ID
280
+ * 企业ID
288
281
  */
289
- TraceId: string
282
+ CorpId?: number
290
283
 
291
284
  /**
292
- * 企业ID
285
+ * 批次ID
293
286
  */
294
- CorpId?: number
287
+ BatchId?: string
295
288
  }
296
289
 
297
290
  /**
298
- * ModifyMerchant请求参数结构体
291
+ * DescribeMerchants请求参数结构体
299
292
  */
300
- export interface ModifyMerchantRequest {
293
+ export interface DescribeMerchantsRequest {
301
294
  /**
302
- * 商户名称
295
+ * 搜索商户名称
303
296
  */
304
- Name: string
297
+ Name?: string
305
298
 
306
299
  /**
307
- * 商户标识码
300
+ * 条数
308
301
  */
309
- MerchantId: string
302
+ PageSize?: number
310
303
 
311
304
  /**
312
- * 备注
305
+ * 页数
313
306
  */
314
- Remark?: string
307
+ PageNumber?: number
315
308
 
316
309
  /**
317
310
  * 企业ID
@@ -319,25 +312,46 @@ export interface ModifyMerchantRequest {
319
312
  CorpId?: number
320
313
 
321
314
  /**
322
- * 码包来源 0:自建, 1:第三码包,暂不支持修改
315
+ * 码来源类型 0:自建, 1:第三方
323
316
  */
324
317
  CodeType?: number
318
+ }
325
319
 
320
+ /**
321
+ * ModifyTraceCode请求参数结构体
322
+ */
323
+ export interface ModifyTraceCodeRequest {
326
324
  /**
327
- * 码包前缀地址 第三方码包时必填
325
+ * 二维码
328
326
  */
329
- CodeUrl?: string
327
+ Code: string
328
+
329
+ /**
330
+ * 企业ID
331
+ */
332
+ CorpId?: number
333
+
334
+ /**
335
+ * 状态 0: 冻结 1: 激活
336
+ */
337
+ Status?: number
330
338
  }
331
339
 
332
340
  /**
333
- * ModifyProduct返回参数结构体
341
+ * DescribeCustomRules返回参数结构体
334
342
  */
335
- export interface ModifyProductResponse {
343
+ export interface DescribeCustomRulesResponse {
336
344
  /**
337
- * 商品ID
345
+ * 码规则列表
338
346
  注意:此字段可能返回 null,表示取不到有效值。
339
347
  */
340
- ProductId: string
348
+ CustomRules: Array<CustomRule>
349
+
350
+ /**
351
+ * 总数
352
+ 注意:此字段可能返回 null,表示取不到有效值。
353
+ */
354
+ TotalCount: number
341
355
 
342
356
  /**
343
357
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -346,104 +360,133 @@ export interface ModifyProductResponse {
346
360
  }
347
361
 
348
362
  /**
349
- * ModifyTraceData请求参数结构体
363
+ * CreateMerchant请求参数结构体
350
364
  */
351
- export interface ModifyTraceDataRequest {
352
- /**
353
- * 溯源ID
354
- */
355
- TraceId?: string
356
-
365
+ export interface CreateMerchantRequest {
357
366
  /**
358
- * 批次ID
367
+ * 商户名称
359
368
  */
360
- BatchId?: string
369
+ Name: string
361
370
 
362
371
  /**
363
- * 生产溯源任务ID
372
+ * 备注
364
373
  */
365
- TaskId?: string
374
+ Remark?: string
366
375
 
367
376
  /**
368
- * 溯源信息
377
+ * 企业ID
369
378
  */
370
- TraceItems?: Array<TraceItem>
379
+ CorpId?: number
371
380
 
372
381
  /**
373
- * 溯源阶段名称
382
+ * 码包来源 0:自建, 1:第三发
374
383
  */
375
- PhaseName?: string
384
+ CodeType?: number
376
385
 
377
386
  /**
378
- * [无效] 类型
387
+ * 码包前缀地址 第三方码包时必填
379
388
  */
380
- Type?: number
389
+ CodeUrl?: string
390
+ }
381
391
 
392
+ /**
393
+ * DescribeCodeBatchById请求参数结构体
394
+ */
395
+ export interface DescribeCodeBatchByIdRequest {
382
396
  /**
383
- * [无效] 溯源码
397
+ * 企业ID
384
398
  */
385
- Code?: string
399
+ CorpId?: number
386
400
 
387
401
  /**
388
- * [无效] 排序
402
+ * 批次ID
389
403
  */
390
- Rank?: number
404
+ BatchId?: string
405
+ }
391
406
 
407
+ /**
408
+ * DescribeTraceCodeById返回参数结构体
409
+ */
410
+ export interface DescribeTraceCodeByIdResponse {
392
411
  /**
393
- * [无效] 溯源阶段 0:商品 1:通用 2:物流
412
+ *
394
413
  */
395
- Phase?: number
414
+ TraceCode: TraceCode
396
415
 
397
416
  /**
398
- * [无效] 溯源时间
417
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
399
418
  */
400
- TraceTime?: string
419
+ RequestId?: string
420
+ }
401
421
 
422
+ /**
423
+ * 码规则
424
+ */
425
+ export interface CustomRule {
402
426
  /**
403
- * [无效] 创建时间
427
+ * 码规则ID
404
428
  */
405
- CreateTime?: string
429
+ CustomId: string
406
430
 
407
431
  /**
408
- * [无效] 上链状态
409
- */
410
- ChainStatus?: number
432
+ * 码规则名
433
+ 注意:此字段可能返回 null,表示取不到有效值。
434
+ */
435
+ Name: string
411
436
 
412
437
  /**
413
- * [无效] 上链时间
438
+ * 企业ID
439
+ 注意:此字段可能返回 null,表示取不到有效值。
440
+ */
441
+ CorpId: number
442
+
443
+ /**
444
+ * 商户ID
445
+ 注意:此字段可能返回 null,表示取不到有效值。
446
+ */
447
+ MerchantId: string
448
+
449
+ /**
450
+ * 码ID长度
414
451
  */
415
- ChainTime?: string
452
+ CodeLength: number
416
453
 
417
454
  /**
418
- * [无效] 上链数据
455
+ * 规则状态
419
456
  */
420
- ChainData?: ChainData
457
+ Status: number
421
458
 
422
459
  /**
423
- * 企业ID
460
+ * 码段配置
424
461
  */
425
- CorpId?: number
462
+ CodeParts: Array<CodePart>
426
463
 
427
464
  /**
428
- * 溯源状态 0: 无效, 1: 有效
465
+ * 创建时间
429
466
  */
430
- Status?: number
467
+ CreateTime: string
431
468
 
432
469
  /**
433
- * 环节数据
470
+ * 更新时间
434
471
  */
435
- PhaseData?: PhaseData
472
+ UpdateTime: string
436
473
  }
437
474
 
438
475
  /**
439
- * CreateMerchant返回参数结构体
476
+ * DescribeProducts返回参数结构体
440
477
  */
441
- export interface CreateMerchantResponse {
478
+ export interface DescribeProductsResponse {
442
479
  /**
443
- * 商户标识码
480
+ * 商品列表
444
481
  注意:此字段可能返回 null,表示取不到有效值。
445
482
  */
446
- MerchantId: string
483
+ Products: Array<Product>
484
+
485
+ /**
486
+ * 总数
487
+ 注意:此字段可能返回 null,表示取不到有效值。
488
+ */
489
+ TotalCount: number
447
490
 
448
491
  /**
449
492
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -452,29 +495,33 @@ export interface CreateMerchantResponse {
452
495
  }
453
496
 
454
497
  /**
455
- * DescribeMerchantById请求参数结构体
498
+ * CreateCodeBatch返回参数结构体
456
499
  */
457
- export interface DescribeMerchantByIdRequest {
500
+ export interface CreateCodeBatchResponse {
458
501
  /**
459
- * 商户标识码
502
+ * 批次ID
460
503
  */
461
- MerchantId: string
504
+ BatchId: string
462
505
 
463
506
  /**
464
- * 企业ID
507
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
465
508
  */
466
- CorpId?: number
509
+ RequestId?: string
467
510
  }
468
511
 
469
512
  /**
470
- * ModifyTraceDataRanks返回参数结构体
513
+ * DescribeTraceDataList返回参数结构体
471
514
  */
472
- export interface ModifyTraceDataRanksResponse {
515
+ export interface DescribeTraceDataListResponse {
473
516
  /**
474
- * 批次ID
475
- 注意:此字段可能返回 null,表示取不到有效值。
476
- */
477
- BatchId: string
517
+ * 数量
518
+ */
519
+ TotalCount: number
520
+
521
+ /**
522
+ * 无
523
+ */
524
+ TraceDataList: Array<TraceData>
478
525
 
479
526
  /**
480
527
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -483,86 +530,93 @@ export interface ModifyTraceDataRanksResponse {
483
530
  }
484
531
 
485
532
  /**
486
- * 商户信息
533
+ * DescribeTraceCodes请求参数结构体
487
534
  */
488
- export interface Merchant {
535
+ export interface DescribeTraceCodesRequest {
489
536
  /**
490
- * 商户标识码
537
+ * 搜索关键字 码标识,或者批次ID
491
538
  */
492
- MerchantId: string
539
+ Keyword?: string
493
540
 
494
541
  /**
495
- * 企业id
542
+ * 条数
496
543
  */
497
- CorpId: number
544
+ PageNumber?: number
498
545
 
499
546
  /**
500
- * 商户名称
547
+ * 页码
501
548
  */
502
- Name: string
549
+ PageSize?: number
503
550
 
504
551
  /**
505
- * 备注
506
- 注意:此字段可能返回 null,表示取不到有效值。
507
- */
508
- Remark: string
552
+ * 批次ID,弃用
553
+ */
554
+ BatchId?: string
509
555
 
510
556
  /**
511
- * 创建时间
557
+ * 企业ID
512
558
  */
513
- CreateTime: string
559
+ CorpId?: number
560
+ }
514
561
 
562
+ /**
563
+ * CreateTraceCodesAsync请求参数结构体
564
+ */
565
+ export interface CreateTraceCodesAsyncRequest {
515
566
  /**
516
- * 更新时间
567
+ * 企业ID
517
568
  */
518
- UpdateTime: string
569
+ CorpId?: number
519
570
 
520
571
  /**
521
- * 商户码规则
572
+ * 批次ID
522
573
  */
523
- CodeRule: string
574
+ BatchId?: string
524
575
 
525
576
  /**
526
- * 码来源类型 0: 安心平台 1: 第三方码
577
+ * 上传文件Key,仅支持 csv 或者 zip 类型
527
578
  */
528
- CodeType: number
579
+ FileKey?: string
580
+ }
581
+
582
+ /**
583
+ * ModifyTraceData返回参数结构体
584
+ */
585
+ export interface ModifyTraceDataResponse {
586
+ /**
587
+ * 溯源ID
588
+ */
589
+ TraceId: string
529
590
 
530
591
  /**
531
- * 第三方码域名前缀
532
- 注意:此字段可能返回 null,表示取不到有效值。
533
- */
534
- CodeUrl: string
592
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
593
+ */
594
+ RequestId?: string
535
595
  }
536
596
 
537
597
  /**
538
- * CreateTraceCodes请求参数结构体
598
+ * DeleteProduct请求参数结构体
539
599
  */
540
- export interface CreateTraceCodesRequest {
600
+ export interface DeleteProductRequest {
541
601
  /**
542
- * 批次ID
602
+ * 商品ID
543
603
  */
544
- BatchId: string
604
+ ProductId: string
545
605
 
546
606
  /**
547
607
  * 企业ID
548
608
  */
549
609
  CorpId?: number
550
-
551
- /**
552
- * 码
553
- */
554
- Codes?: Array<CodeItem>
555
610
  }
556
611
 
557
612
  /**
558
- * DeleteProduct返回参数结构体
613
+ * CreateTraceChain返回参数结构体
559
614
  */
560
- export interface DeleteProductResponse {
615
+ export interface CreateTraceChainResponse {
561
616
  /**
562
- * 商品ID
563
- 注意:此字段可能返回 null,表示取不到有效值。
564
- */
565
- ProductId: string
617
+ * 溯源ID
618
+ */
619
+ TraceId: string
566
620
 
567
621
  /**
568
622
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -571,38 +625,43 @@ export interface DeleteProductResponse {
571
625
  }
572
626
 
573
627
  /**
574
- * DescribeCodeBatchs请求参数结构体
628
+ * CreateCustomRule请求参数结构体
575
629
  */
576
- export interface DescribeCodeBatchsRequest {
630
+ export interface CreateCustomRuleRequest {
577
631
  /**
578
- * 查询商户ID
632
+ * 规则名称
579
633
  */
580
- MerchantId?: string
634
+ Name: string
581
635
 
582
636
  /**
583
- * 查询商品ID
637
+ * 商户ID
584
638
  */
585
- ProductId?: string
639
+ MerchantId: string
586
640
 
587
641
  /**
588
- * 查询关键字
642
+ * 码长度
589
643
  */
590
- Keyword?: string
644
+ CodeLength: number
591
645
 
592
646
  /**
593
- * 条数
647
+ * 码段配置
594
648
  */
595
- PageSize?: number
649
+ CodeParts: Array<CodePart>
596
650
 
597
651
  /**
598
- * 页数
652
+ * 企业ID
599
653
  */
600
- PageNumber?: number
654
+ CorpId?: number
655
+ }
601
656
 
657
+ /**
658
+ * DescribeCodePackStatus请求参数结构体
659
+ */
660
+ export interface DescribeCodePackStatusRequest {
602
661
  /**
603
- * 批次类型 0:溯源 1:营销
662
+ * 码包ID
604
663
  */
605
- BatchType?: string
664
+ PackId: string
606
665
 
607
666
  /**
608
667
  * 企业ID
@@ -611,78 +670,78 @@ export interface DescribeCodeBatchsRequest {
611
670
  }
612
671
 
613
672
  /**
614
- * DescribeProducts请求参数结构体
673
+ * ModifyTraceData请求参数结构体
615
674
  */
616
- export interface DescribeProductsRequest {
675
+ export interface ModifyTraceDataRequest {
617
676
  /**
618
- * 商品名称
677
+ * 溯源ID
619
678
  */
620
- Name?: string
679
+ TraceId?: string
621
680
 
622
681
  /**
623
- * 条数
682
+ * 批次ID
624
683
  */
625
- PageSize?: number
684
+ BatchId?: string
626
685
 
627
686
  /**
628
- * 页数
687
+ * 生产溯源任务ID
629
688
  */
630
- PageNumber?: number
689
+ TaskId?: string
631
690
 
632
691
  /**
633
- * 商品ID
692
+ * 溯源信息
634
693
  */
635
- MerchantId?: string
694
+ TraceItems?: Array<TraceItem>
636
695
 
637
696
  /**
638
- * 企业ID
697
+ * 溯源阶段名称
639
698
  */
640
- CorpId?: number
641
- }
699
+ PhaseName?: string
642
700
 
643
- /**
644
- * DescribeCodeBatchById返回参数结构体
645
- */
646
- export interface DescribeCodeBatchByIdResponse {
647
701
  /**
648
- * 批次
702
+ * [无效] 类型
649
703
  */
650
- CodeBatch: CodeBatch
704
+ Type?: number
651
705
 
652
706
  /**
653
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
707
+ * [无效] 溯源码
654
708
  */
655
- RequestId?: string
656
- }
709
+ Code?: string
657
710
 
658
- /**
659
- * ModifyProduct请求参数结构体
660
- */
661
- export interface ModifyProductRequest {
662
711
  /**
663
- * 商品名称
712
+ * [无效] 排序
664
713
  */
665
- Name: string
714
+ Rank?: number
666
715
 
667
716
  /**
668
- * 商品ID
717
+ * [无效] 溯源阶段 0:商品 1:通用 2:物流
669
718
  */
670
- ProductId: string
719
+ Phase?: number
671
720
 
672
721
  /**
673
- * 备注
722
+ * [无效] 溯源时间
674
723
  */
675
- Remark?: string
724
+ TraceTime?: string
676
725
 
677
726
  /**
678
- * 商品规格
727
+ * [无效] 创建时间
679
728
  */
680
- Specification?: string
729
+ CreateTime?: string
681
730
 
682
731
  /**
683
- * 商品图片
732
+ * [无效] 上链状态
684
733
  */
685
- Logo?: Array<string>
734
+ ChainStatus?: number
735
+
736
+ /**
737
+ * [无效] 上链时间
738
+ */
739
+ ChainTime?: string
740
+
741
+ /**
742
+ * [无效] 上链数据
743
+ */
744
+ ChainData?: ChainData
686
745
 
687
746
  /**
688
747
  * 企业ID
@@ -690,20 +749,65 @@ export interface ModifyProductRequest {
690
749
  CorpId?: number
691
750
 
692
751
  /**
693
- * 预留字段
752
+ * 溯源状态 0: 无效, 1: 有效
694
753
  */
695
- Ext?: Ext
696
- }
754
+ Status?: number
697
755
 
698
- /**
699
- * DeleteTraceData返回参数结构体
700
- */
701
- export interface DeleteTraceDataResponse {
702
756
  /**
703
- * 溯源id
757
+ * 环节数据
758
+ */
759
+ PhaseData?: PhaseData
760
+ }
761
+
762
+ /**
763
+ * DescribeCodeBatchs请求参数结构体
764
+ */
765
+ export interface DescribeCodeBatchsRequest {
766
+ /**
767
+ * 查询商户ID
768
+ */
769
+ MerchantId?: string
770
+
771
+ /**
772
+ * 查询商品ID
773
+ */
774
+ ProductId?: string
775
+
776
+ /**
777
+ * 查询关键字
778
+ */
779
+ Keyword?: string
780
+
781
+ /**
782
+ * 条数
783
+ */
784
+ PageSize?: number
785
+
786
+ /**
787
+ * 页数
788
+ */
789
+ PageNumber?: number
790
+
791
+ /**
792
+ * 批次类型 0:溯源 1:营销
793
+ */
794
+ BatchType?: string
795
+
796
+ /**
797
+ * 企业ID
798
+ */
799
+ CorpId?: number
800
+ }
801
+
802
+ /**
803
+ * ModifyTraceDataRanks返回参数结构体
804
+ */
805
+ export interface ModifyTraceDataRanksResponse {
806
+ /**
807
+ * 批次ID
704
808
  注意:此字段可能返回 null,表示取不到有效值。
705
809
  */
706
- TraceId: string
810
+ BatchId: string
707
811
 
708
812
  /**
709
813
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -712,28 +816,33 @@ export interface DeleteTraceDataResponse {
712
816
  }
713
817
 
714
818
  /**
715
- * 通用调度任务
819
+ * CreateTraceCodes请求参数结构体
716
820
  */
717
- export interface Job {
821
+ export interface CreateTraceCodesRequest {
718
822
  /**
719
- * 调度ID
823
+ * 批次ID
720
824
  */
721
- JobId: number
825
+ BatchId: string
722
826
 
723
827
  /**
724
- * 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
828
+ * 企业ID
725
829
  */
726
- Status: string
830
+ CorpId?: number
831
+
832
+ /**
833
+ * 码
834
+ */
835
+ Codes?: Array<CodeItem>
727
836
  }
728
837
 
729
838
  /**
730
- * CreateCodePack返回参数结构体
839
+ * DescribeCodeBatchById返回参数结构体
731
840
  */
732
- export interface CreateCodePackResponse {
841
+ export interface DescribeCodeBatchByIdResponse {
733
842
  /**
734
- * 码包ID
843
+ * 批次
735
844
  */
736
- PackId: string
845
+ CodeBatch: CodeBatch
737
846
 
738
847
  /**
739
848
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -742,21 +851,9 @@ export interface CreateCodePackResponse {
742
851
  }
743
852
 
744
853
  /**
745
- * DescribeMerchants返回参数结构体
854
+ * DescribeCodePackStatus返回参数结构体
746
855
  */
747
- export interface DescribeMerchantsResponse {
748
- /**
749
- * 商户列表
750
- 注意:此字段可能返回 null,表示取不到有效值。
751
- */
752
- Merchants: Array<Merchant>
753
-
754
- /**
755
- * 总数
756
- 注意:此字段可能返回 null,表示取不到有效值。
757
- */
758
- TotalCount: number
759
-
856
+ export interface DescribeCodePackStatusResponse {
760
857
  /**
761
858
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
762
859
  */
@@ -764,54 +861,138 @@ export interface DescribeMerchantsResponse {
764
861
  }
765
862
 
766
863
  /**
767
- * DescribeTraceDataList请求参数结构体
864
+ * 通用调度任务
768
865
  */
769
- export interface DescribeTraceDataListRequest {
866
+ export interface Job {
770
867
  /**
771
- * 企业ID
868
+ * 调度ID
772
869
  */
773
- CorpId?: number
870
+ JobId: number
774
871
 
775
872
  /**
776
- * 批次ID
873
+ * 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
777
874
  */
778
- BatchId?: string
875
+ Status: string
876
+ }
779
877
 
878
+ /**
879
+ * 溯源数据
880
+ */
881
+ export interface TraceData {
780
882
  /**
781
- * 任务ID 用于外部溯源
782
- */
783
- TaskId?: string
883
+ * 溯源ID
884
+ 注意:此字段可能返回 null,表示取不到有效值。
885
+ */
886
+ TraceId: string
784
887
 
785
888
  /**
786
- * 页数
787
- */
788
- PageNumber?: number
889
+ * 企业ID
890
+ 注意:此字段可能返回 null,表示取不到有效值。
891
+ */
892
+ CorpId: number
789
893
 
790
894
  /**
791
- * 二维码
895
+ * 0
896
+ 注意:此字段可能返回 null,表示取不到有效值。
897
+ */
898
+ Type: number
899
+
900
+ /**
901
+ * 码
902
+ 注意:此字段可能返回 null,表示取不到有效值。
903
+ */
904
+ Code: string
905
+
906
+ /**
907
+ * 排序
908
+ 注意:此字段可能返回 null,表示取不到有效值。
909
+ */
910
+ Rank: number
911
+
912
+ /**
913
+ * 溯源阶段 0:商品 1:通用 2:物流
914
+ 注意:此字段可能返回 null,表示取不到有效值。
915
+ */
916
+ Phase: number
917
+
918
+ /**
919
+ * 环节名称
920
+ 注意:此字段可能返回 null,表示取不到有效值。
921
+ */
922
+ PhaseName: string
923
+
924
+ /**
925
+ * 时间
926
+ 注意:此字段可能返回 null,表示取不到有效值。
927
+ */
928
+ TraceTime: string
929
+
930
+ /**
931
+ * 无
932
+ 注意:此字段可能返回 null,表示取不到有效值。
933
+ */
934
+ TraceItems: Array<TraceItem>
935
+
936
+ /**
937
+ * 创建时间
938
+ 注意:此字段可能返回 null,表示取不到有效值。
939
+ */
940
+ CreateTime: string
941
+
942
+ /**
943
+ * 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
944
+ 注意:此字段可能返回 null,表示取不到有效值。
945
+ */
946
+ ChainStatus: number
947
+
948
+ /**
949
+ * 上链时间
950
+ 注意:此字段可能返回 null,表示取不到有效值。
951
+ */
952
+ ChainTime: string
953
+
954
+ /**
955
+ * 无
956
+ 注意:此字段可能返回 null,表示取不到有效值。
957
+ */
958
+ ChainData: ChainData
959
+ }
960
+
961
+ /**
962
+ * 层级码配置
963
+ */
964
+ export interface PackSpec {
965
+ /**
966
+ * 层级
792
967
  */
793
- Code?: string
968
+ Level: number
794
969
 
795
970
  /**
796
- * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
971
+ * 比例
797
972
  */
798
- Phase?: number
973
+ Rate: number
799
974
 
800
975
  /**
801
976
  * 数量
802
977
  */
803
- PageSize?: number
978
+ Amount: number
979
+
980
+ /**
981
+ * 码规则ID
982
+ 注意:此字段可能返回 null,表示取不到有效值。
983
+ */
984
+ CustomId?: string
804
985
  }
805
986
 
806
987
  /**
807
- * DescribeMerchantById返回参数结构体
988
+ * ModifyCustomRule返回参数结构体
808
989
  */
809
- export interface DescribeMerchantByIdResponse {
990
+ export interface ModifyCustomRuleResponse {
810
991
  /**
811
- * 商户信息
992
+ * 码规则ID
812
993
  注意:此字段可能返回 null,表示取不到有效值。
813
994
  */
814
- Merchant: Merchant
995
+ CustomId: string
815
996
 
816
997
  /**
817
998
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -836,14 +1017,14 @@ export interface ModifyMerchantResponse {
836
1017
  }
837
1018
 
838
1019
  /**
839
- * DeleteMerchant返回参数结构体
1020
+ * DeleteProduct返回参数结构体
840
1021
  */
841
- export interface DeleteMerchantResponse {
1022
+ export interface DeleteProductResponse {
842
1023
  /**
843
- * 商户标识码
1024
+ * 商品ID
844
1025
  注意:此字段可能返回 null,表示取不到有效值。
845
1026
  */
846
- MerchantId: string
1027
+ ProductId: string
847
1028
 
848
1029
  /**
849
1030
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -868,13 +1049,79 @@ export interface DescribeCodesByPackResponse {
868
1049
  }
869
1050
 
870
1051
  /**
871
- * DeleteCodeBatch返回参数结构体
1052
+ * CreateTraceData请求参数结构体
872
1053
  */
873
- export interface DeleteCodeBatchResponse {
1054
+ export interface CreateTraceDataRequest {
1055
+ /**
1056
+ * 企业ID
1057
+ */
1058
+ CorpId?: number
1059
+
874
1060
  /**
875
1061
  * 批次ID
876
1062
  */
877
- BatchId: string
1063
+ BatchId?: string
1064
+
1065
+ /**
1066
+ * 任务ID
1067
+ */
1068
+ TaskId?: string
1069
+
1070
+ /**
1071
+ * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
1072
+ */
1073
+ Phase?: number
1074
+
1075
+ /**
1076
+ * 溯源阶段名称
1077
+ */
1078
+ PhaseName?: string
1079
+
1080
+ /**
1081
+ * [无效] 上链状态
1082
+ */
1083
+ ChainStatus?: number
1084
+
1085
+ /**
1086
+ * [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
1087
+ */
1088
+ Type?: number
1089
+
1090
+ /**
1091
+ * [无效] 溯源ID
1092
+ */
1093
+ TraceId?: string
1094
+
1095
+ /**
1096
+ * 溯源信息
1097
+ */
1098
+ TraceItems?: Array<TraceItem>
1099
+
1100
+ /**
1101
+ * 溯源状态 0: 无效, 1: 有效
1102
+ */
1103
+ Status?: number
1104
+
1105
+ /**
1106
+ * 环节数据
1107
+ */
1108
+ PhaseData?: PhaseData
1109
+ }
1110
+
1111
+ /**
1112
+ * 预留字段
1113
+ */
1114
+ export type Ext = null
1115
+
1116
+ /**
1117
+ * CreateProduct返回参数结构体
1118
+ */
1119
+ export interface CreateProductResponse {
1120
+ /**
1121
+ * 商品ID
1122
+ 注意:此字段可能返回 null,表示取不到有效值。
1123
+ */
1124
+ ProductId: string
878
1125
 
879
1126
  /**
880
1127
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -883,38 +1130,133 @@ export interface DeleteCodeBatchResponse {
883
1130
  }
884
1131
 
885
1132
  /**
886
- * DescribeTraceDataList返回参数结构体
1133
+ * CreateCustomPack请求参数结构体
887
1134
  */
888
- export interface DescribeTraceDataListResponse {
1135
+ export interface CreateCustomPackRequest {
889
1136
  /**
890
- * 数量
1137
+ * 商户ID
891
1138
  */
892
- TotalCount: number
1139
+ MerchantId: string
893
1140
 
894
1141
  /**
895
- *
1142
+ * 生码数量, 普通码包时必填
896
1143
  */
897
- TraceDataList: Array<TraceData>
1144
+ Amount?: number
898
1145
 
899
1146
  /**
900
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1147
+ * 企业ID
901
1148
  */
902
- RequestId?: string
1149
+ CorpId?: number
1150
+
1151
+ /**
1152
+ * 码包类型 0: 普通码包 1: 层级码包
1153
+ */
1154
+ PackType?: number
1155
+
1156
+ /**
1157
+ * 码包层级
1158
+ */
1159
+ PackLevel?: number
1160
+
1161
+ /**
1162
+ * 层级码包规则 [{ Level, Rate, Amount, CustomId }]
1163
+ */
1164
+ PackSpec?: Array<PackSpec>
1165
+
1166
+ /**
1167
+ * 码规则ID, 普通码包时必填
1168
+ */
1169
+ CustomId?: string
903
1170
  }
904
1171
 
905
1172
  /**
906
- * CreateTraceChain请求参数结构体
1173
+ * CreateCodePack请求参数结构体
907
1174
  */
908
- export interface CreateTraceChainRequest {
1175
+ export interface CreateCodePackRequest {
1176
+ /**
1177
+ * 商户ID
1178
+ */
1179
+ MerchantId: string
1180
+
1181
+ /**
1182
+ * 码长度
1183
+ */
1184
+ CodeLength: number
1185
+
1186
+ /**
1187
+ * 码类型 alphabet 字母, number 数字, mixin 混合
1188
+ */
1189
+ CodeType: string
1190
+
1191
+ /**
1192
+ * 生码数量 普通码包时必填
1193
+ */
1194
+ Amount?: number
1195
+
909
1196
  /**
910
1197
  * 企业ID
911
1198
  */
912
1199
  CorpId?: number
913
1200
 
914
1201
  /**
915
- * 溯源ID
1202
+ * 码包类型 0: 普通码包 1: 层级码包
916
1203
  */
917
- TraceId?: string
1204
+ PackType?: number
1205
+
1206
+ /**
1207
+ * 码包层级
1208
+ */
1209
+ PackLevel?: number
1210
+
1211
+ /**
1212
+ * 码包规格
1213
+ */
1214
+ PackSpec?: Array<PackSpec>
1215
+ }
1216
+
1217
+ /**
1218
+ * CreateCodeBatch请求参数结构体
1219
+ */
1220
+ export interface CreateCodeBatchRequest {
1221
+ /**
1222
+ * 企业ID
1223
+ */
1224
+ CorpId?: number
1225
+
1226
+ /**
1227
+ * 商户ID
1228
+ */
1229
+ MerchantId?: string
1230
+
1231
+ /**
1232
+ * 产品ID
1233
+ */
1234
+ ProductId?: string
1235
+
1236
+ /**
1237
+ * 批次类型 0:溯源 1:营销
1238
+ */
1239
+ BatchType?: number
1240
+
1241
+ /**
1242
+ * 批次ID,系统自动生成
1243
+ */
1244
+ BatchId?: string
1245
+
1246
+ /**
1247
+ * 备注
1248
+ */
1249
+ Remark?: string
1250
+
1251
+ /**
1252
+ * 活动ID
1253
+ */
1254
+ MpTpl?: string
1255
+
1256
+ /**
1257
+ * 克隆批次ID
1258
+ */
1259
+ CloneId?: string
918
1260
  }
919
1261
 
920
1262
  /**
@@ -958,198 +1300,136 @@ export interface TraceItem {
958
1300
  Values: Array<string>
959
1301
 
960
1302
  /**
961
- * 类型标识
962
- 注意:此字段可能返回 null,表示取不到有效值。
963
- */
964
- Key: string
965
-
966
- /**
967
- * 扩展字段
968
- 注意:此字段可能返回 null,表示取不到有效值。
969
- */
970
- Ext: string
971
- }
972
-
973
- /**
974
- * DeleteCodeBatch请求参数结构体
975
- */
976
- export interface DeleteCodeBatchRequest {
977
- /**
978
- * 企业ID
979
- */
980
- CorpId?: number
981
-
982
- /**
983
- * 批次ID
984
- */
985
- BatchId?: string
986
- }
987
-
988
- /**
989
- * 预留字段
990
- */
991
- export type Ext = null
992
-
993
- /**
994
- * DescribeMerchants请求参数结构体
995
- */
996
- export interface DescribeMerchantsRequest {
997
- /**
998
- * 搜索商户名称
999
- */
1000
- Name?: string
1001
-
1002
- /**
1003
- * 条数
1004
- */
1005
- PageSize?: number
1006
-
1007
- /**
1008
- * 页数
1009
- */
1010
- PageNumber?: number
1011
-
1012
- /**
1013
- * 企业ID
1014
- */
1015
- CorpId?: number
1016
-
1017
- /**
1018
- * 码来源类型 0:自建, 1:第三方
1019
- */
1020
- CodeType?: number
1021
- }
1303
+ * 类型标识
1304
+ 注意:此字段可能返回 null,表示取不到有效值。
1305
+ */
1306
+ Key: string
1022
1307
 
1023
- /**
1024
- * 码类型
1025
- */
1026
- export interface CodeItem {
1027
1308
  /**
1028
- *
1029
- */
1030
- Code?: string
1309
+ * 扩展字段
1310
+ 注意:此字段可能返回 null,表示取不到有效值。
1311
+ */
1312
+ Ext: string
1031
1313
  }
1032
1314
 
1033
1315
  /**
1034
- * ModifyTraceCode请求参数结构体
1316
+ * DescribeCustomRuleById请求参数结构体
1035
1317
  */
1036
- export interface ModifyTraceCodeRequest {
1318
+ export interface DescribeCustomRuleByIdRequest {
1037
1319
  /**
1038
- * 二维码
1320
+ * 码规则ID
1039
1321
  */
1040
- Code: string
1322
+ CustomId: string
1041
1323
 
1042
1324
  /**
1043
1325
  * 企业ID
1044
1326
  */
1045
1327
  CorpId?: number
1046
-
1047
- /**
1048
- * 状态 0: 冻结 1: 激活
1049
- */
1050
- Status?: number
1051
1328
  }
1052
1329
 
1053
1330
  /**
1054
- * CreateProduct返回参数结构体
1331
+ * 上链数据
1055
1332
  */
1056
- export interface CreateProductResponse {
1333
+ export interface ChainData {
1057
1334
  /**
1058
- * 商品ID
1335
+ * 区块hash
1059
1336
  注意:此字段可能返回 null,表示取不到有效值。
1060
1337
  */
1061
- ProductId: string
1062
-
1063
- /**
1064
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1065
- */
1066
- RequestId?: string
1067
- }
1338
+ BlockHash: string
1068
1339
 
1069
- /**
1070
- * CreateTraceData返回参数结构体
1071
- */
1072
- export interface CreateTraceDataResponse {
1073
1340
  /**
1074
- * 溯源ID
1075
- */
1076
- TraceId: string
1341
+ * 区块高度
1342
+ 注意:此字段可能返回 null,表示取不到有效值。
1343
+ */
1344
+ BlockHeight: string
1077
1345
 
1078
1346
  /**
1079
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1080
- */
1081
- RequestId?: string
1347
+ * 区块时间
1348
+ 注意:此字段可能返回 null,表示取不到有效值。
1349
+ */
1350
+ BlockTime: string
1082
1351
  }
1083
1352
 
1084
1353
  /**
1085
- * CreateTraceData请求参数结构体
1354
+ * 环节数据
1086
1355
  */
1087
- export interface CreateTraceDataRequest {
1088
- /**
1089
- * 企业ID
1090
- */
1091
- CorpId?: number
1092
-
1356
+ export interface PhaseData {
1093
1357
  /**
1094
- * 批次ID
1358
+ * 启用头
1095
1359
  */
1096
- BatchId?: string
1360
+ HeadEnabled?: boolean
1097
1361
 
1098
1362
  /**
1099
- * 任务ID
1363
+ * 标题
1100
1364
  */
1101
- TaskId?: string
1365
+ HeadTitle?: string
1102
1366
 
1103
1367
  /**
1104
- * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
1368
+ * 标识符
1105
1369
  */
1106
- Phase?: number
1370
+ Key?: string
1107
1371
 
1108
1372
  /**
1109
- * 溯源阶段名称
1373
+ * 小程序AppId
1110
1374
  */
1111
- PhaseName?: string
1375
+ AppId?: string
1112
1376
 
1113
1377
  /**
1114
- * [无效] 上链状态
1378
+ * 小程序AppPath
1115
1379
  */
1116
- ChainStatus?: number
1380
+ AppPath?: string
1117
1381
 
1118
1382
  /**
1119
- * [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
1383
+ * 小程序名称AppName
1120
1384
  */
1121
- Type?: number
1385
+ AppName?: string
1386
+ }
1122
1387
 
1388
+ /**
1389
+ * ModifyCustomRuleStatus返回参数结构体
1390
+ */
1391
+ export interface ModifyCustomRuleStatusResponse {
1123
1392
  /**
1124
- * [无效] 溯源ID
1125
- */
1126
- TraceId?: string
1393
+ * 码规则ID
1394
+ 注意:此字段可能返回 null,表示取不到有效值。
1395
+ */
1396
+ CustomId: string
1127
1397
 
1128
1398
  /**
1129
- * 溯源信息
1399
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1130
1400
  */
1131
- TraceItems?: Array<TraceItem>
1401
+ RequestId?: string
1402
+ }
1132
1403
 
1404
+ /**
1405
+ * CreateCustomPack返回参数结构体
1406
+ */
1407
+ export interface CreateCustomPackResponse {
1133
1408
  /**
1134
- * 溯源状态 0: 无效, 1: 有效
1409
+ * 码包ID
1135
1410
  */
1136
- Status?: number
1411
+ PackId: string
1137
1412
 
1138
1413
  /**
1139
- * 环节数据
1414
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1140
1415
  */
1141
- PhaseData?: PhaseData
1416
+ RequestId?: string
1142
1417
  }
1143
1418
 
1144
1419
  /**
1145
- * CreateMerchant请求参数结构体
1420
+ * ModifyMerchant请求参数结构体
1146
1421
  */
1147
- export interface CreateMerchantRequest {
1422
+ export interface ModifyMerchantRequest {
1148
1423
  /**
1149
1424
  * 商户名称
1150
1425
  */
1151
1426
  Name: string
1152
1427
 
1428
+ /**
1429
+ * 商户标识码
1430
+ */
1431
+ MerchantId: string
1432
+
1153
1433
  /**
1154
1434
  * 备注
1155
1435
  */
@@ -1161,7 +1441,7 @@ export interface CreateMerchantRequest {
1161
1441
  CorpId?: number
1162
1442
 
1163
1443
  /**
1164
- * 码包来源 0:自建, 1:第三发
1444
+ * 码包来源 0:自建, 1:第三码包,暂不支持修改
1165
1445
  */
1166
1446
  CodeType?: number
1167
1447
 
@@ -1172,31 +1452,24 @@ export interface CreateMerchantRequest {
1172
1452
  }
1173
1453
 
1174
1454
  /**
1175
- * DescribeCodeBatchs返回参数结构体
1455
+ * DescribeCodePackUrl请求参数结构体
1176
1456
  */
1177
- export interface DescribeCodeBatchsResponse {
1178
- /**
1179
- * 批次列表
1180
- 注意:此字段可能返回 null,表示取不到有效值。
1181
- */
1182
- CodeBatchs: Array<CodeBatch>
1183
-
1457
+ export interface DescribeCodePackUrlRequest {
1184
1458
  /**
1185
- * 总条数
1186
- 注意:此字段可能返回 null,表示取不到有效值。
1187
- */
1188
- TotalCount: number
1459
+ * 码包ID
1460
+ */
1461
+ PackId: string
1189
1462
 
1190
1463
  /**
1191
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1464
+ * 企业ID
1192
1465
  */
1193
- RequestId?: string
1466
+ CorpId?: number
1194
1467
  }
1195
1468
 
1196
1469
  /**
1197
- * DescribeCodeBatchById请求参数结构体
1470
+ * ModifyTraceDataRanks请求参数结构体
1198
1471
  */
1199
- export interface DescribeCodeBatchByIdRequest {
1472
+ export interface ModifyTraceDataRanksRequest {
1200
1473
  /**
1201
1474
  * 企业ID
1202
1475
  */
@@ -1206,27 +1479,28 @@ export interface DescribeCodeBatchByIdRequest {
1206
1479
  * 批次ID
1207
1480
  */
1208
1481
  BatchId?: string
1209
- }
1210
1482
 
1211
- /**
1212
- * DescribeTraceCodeById返回参数结构体
1213
- */
1214
- export interface DescribeTraceCodeByIdResponse {
1215
1483
  /**
1216
- *
1484
+ * 生产任务ID
1217
1485
  */
1218
- TraceCode: TraceCode
1486
+ TaskId?: string
1219
1487
 
1220
1488
  /**
1221
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1489
+ * 溯源ID
1222
1490
  */
1223
- RequestId?: string
1491
+ TraceIds?: Array<string>
1224
1492
  }
1225
1493
 
1226
1494
  /**
1227
- * DescribeCodePacks返回参数结构体
1495
+ * DeleteTraceData返回参数结构体
1228
1496
  */
1229
- export interface DescribeCodePacksResponse {
1497
+ export interface DeleteTraceDataResponse {
1498
+ /**
1499
+ * 溯源id
1500
+ 注意:此字段可能返回 null,表示取不到有效值。
1501
+ */
1502
+ TraceId: string
1503
+
1230
1504
  /**
1231
1505
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1232
1506
  */
@@ -1234,97 +1508,123 @@ export interface DescribeCodePacksResponse {
1234
1508
  }
1235
1509
 
1236
1510
  /**
1237
- * 溯源数据
1511
+ * ModifyCustomRuleStatus请求参数结构体
1238
1512
  */
1239
- export interface TraceData {
1513
+ export interface ModifyCustomRuleStatusRequest {
1240
1514
  /**
1241
- * 溯源ID
1242
- 注意:此字段可能返回 null,表示取不到有效值。
1243
- */
1244
- TraceId: string
1515
+ * 码规则ID
1516
+ */
1517
+ CustomId: string
1245
1518
 
1246
1519
  /**
1247
- * 企业ID
1248
- 注意:此字段可能返回 null,表示取不到有效值。
1249
- */
1250
- CorpId: number
1520
+ * 码规则状态 0:未生效 1:已生效 -1:已失效
1521
+ */
1522
+ Status: number
1523
+ }
1251
1524
 
1525
+ /**
1526
+ * CreateCodePack返回参数结构体
1527
+ */
1528
+ export interface CreateCodePackResponse {
1252
1529
  /**
1253
- * 0
1254
- 注意:此字段可能返回 null,表示取不到有效值。
1255
- */
1256
- Type: number
1530
+ * 码包ID
1531
+ */
1532
+ PackId: string
1257
1533
 
1258
1534
  /**
1259
- *
1260
- 注意:此字段可能返回 null,表示取不到有效值。
1261
- */
1262
- Code: string
1535
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1536
+ */
1537
+ RequestId?: string
1538
+ }
1263
1539
 
1540
+ /**
1541
+ * DescribeMerchantById返回参数结构体
1542
+ */
1543
+ export interface DescribeMerchantByIdResponse {
1264
1544
  /**
1265
- * 排序
1545
+ * 商户信息
1266
1546
  注意:此字段可能返回 null,表示取不到有效值。
1267
1547
  */
1268
- Rank: number
1548
+ Merchant: Merchant
1269
1549
 
1270
1550
  /**
1271
- * 溯源阶段 0:商品 1:通用 2:物流
1272
- 注意:此字段可能返回 null,表示取不到有效值。
1273
- */
1274
- Phase: number
1551
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1552
+ */
1553
+ RequestId?: string
1554
+ }
1275
1555
 
1556
+ /**
1557
+ * 码类型
1558
+ */
1559
+ export interface CodeItem {
1276
1560
  /**
1277
- * 环节名称
1278
- 注意:此字段可能返回 null,表示取不到有效值。
1279
- */
1280
- PhaseName: string
1561
+ *
1562
+ */
1563
+ Code?: string
1564
+ }
1281
1565
 
1566
+ /**
1567
+ * CreateTraceData返回参数结构体
1568
+ */
1569
+ export interface CreateTraceDataResponse {
1282
1570
  /**
1283
- * 时间
1284
- 注意:此字段可能返回 null,表示取不到有效值。
1285
- */
1286
- TraceTime: string
1571
+ * 溯源ID
1572
+ */
1573
+ TraceId: string
1287
1574
 
1288
1575
  /**
1289
- *
1290
- 注意:此字段可能返回 null,表示取不到有效值。
1291
- */
1292
- TraceItems: Array<TraceItem>
1576
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1577
+ */
1578
+ RequestId?: string
1579
+ }
1293
1580
 
1581
+ /**
1582
+ * DescribeCustomRuleById返回参数结构体
1583
+ */
1584
+ export interface DescribeCustomRuleByIdResponse {
1294
1585
  /**
1295
- * 创建时间
1586
+ * 码规则信息
1296
1587
  注意:此字段可能返回 null,表示取不到有效值。
1297
1588
  */
1298
- CreateTime: string
1589
+ CustomRule: CustomRule
1299
1590
 
1300
1591
  /**
1301
- * 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
1302
- 注意:此字段可能返回 null,表示取不到有效值。
1303
- */
1304
- ChainStatus: number
1592
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1593
+ */
1594
+ RequestId?: string
1595
+ }
1305
1596
 
1597
+ /**
1598
+ * DescribeCodeBatchs返回参数结构体
1599
+ */
1600
+ export interface DescribeCodeBatchsResponse {
1306
1601
  /**
1307
- * 上链时间
1602
+ * 批次列表
1308
1603
  注意:此字段可能返回 null,表示取不到有效值。
1309
1604
  */
1310
- ChainTime: string
1605
+ CodeBatchs: Array<CodeBatch>
1311
1606
 
1312
1607
  /**
1313
- *
1608
+ * 总条数
1314
1609
  注意:此字段可能返回 null,表示取不到有效值。
1315
1610
  */
1316
- ChainData: ChainData
1611
+ TotalCount: number
1612
+
1613
+ /**
1614
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1615
+ */
1616
+ RequestId?: string
1317
1617
  }
1318
1618
 
1319
1619
  /**
1320
- * DescribeProductById返回参数结构体
1620
+ * CreateCustomRule返回参数结构体
1321
1621
  */
1322
- export interface DescribeProductByIdResponse {
1622
+ export interface CreateCustomRuleResponse {
1323
1623
  /**
1324
- * 商品信息
1624
+ * 码规则ID
1325
1625
  注意:此字段可能返回 null,表示取不到有效值。
1326
1626
  */
1327
- Product: Product
1627
+ CustomId: string
1328
1628
 
1329
1629
  /**
1330
1630
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1333,29 +1633,13 @@ export interface DescribeProductByIdResponse {
1333
1633
  }
1334
1634
 
1335
1635
  /**
1336
- * 层级码配置
1636
+ * DescribeCodePacks返回参数结构体
1337
1637
  */
1338
- export interface PackSpec {
1339
- /**
1340
- * 层级
1341
- */
1342
- Level: number
1343
-
1344
- /**
1345
- * 比例
1346
- */
1347
- Rate: number
1348
-
1638
+ export interface DescribeCodePacksResponse {
1349
1639
  /**
1350
- * 数量
1640
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1351
1641
  */
1352
- Amount: number
1353
-
1354
- /**
1355
- * 码规则ID
1356
- 注意:此字段可能返回 null,表示取不到有效值。
1357
- */
1358
- CustomId?: string
1642
+ RequestId?: string
1359
1643
  }
1360
1644
 
1361
1645
  /**
@@ -1374,50 +1658,69 @@ export interface DescribeCodesByPackRequest {
1374
1658
  }
1375
1659
 
1376
1660
  /**
1377
- * DescribeCodePacks请求参数结构体
1661
+ * DescribeJobFileUrl请求参数结构体
1378
1662
  */
1379
- export interface DescribeCodePacksRequest {
1663
+ export interface DescribeJobFileUrlRequest {
1380
1664
  /**
1381
- * 每页数量
1665
+ * 调度ID
1382
1666
  */
1383
- PageSize?: number
1667
+ JobId: number
1384
1668
 
1385
1669
  /**
1386
- * 页数
1670
+ * 企业ID
1387
1671
  */
1388
- PageNumber?: number
1672
+ CorpId?: number
1673
+ }
1389
1674
 
1675
+ /**
1676
+ * CreateTraceCodesAsync返回参数结构体
1677
+ */
1678
+ export interface CreateTraceCodesAsyncResponse {
1390
1679
  /**
1391
- * 查询关键字
1392
- */
1393
- Keyword?: string
1680
+ * 批次ID
1681
+ 注意:此字段可能返回 null,表示取不到有效值。
1682
+ */
1683
+ BatchId: string
1394
1684
 
1395
1685
  /**
1396
- * 企业ID
1686
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1397
1687
  */
1398
- CorpId?: number
1688
+ RequestId?: string
1399
1689
  }
1400
1690
 
1401
1691
  /**
1402
- * DescribeProducts返回参数结构体
1692
+ * DescribeCustomRules请求参数结构体
1403
1693
  */
1404
- export interface DescribeProductsResponse {
1694
+ export interface DescribeCustomRulesRequest {
1405
1695
  /**
1406
- * 商品列表
1407
- 注意:此字段可能返回 null,表示取不到有效值。
1408
- */
1409
- Products: Array<Product>
1696
+ * 搜索关键字
1697
+ */
1698
+ Keyword?: string
1410
1699
 
1411
1700
  /**
1412
- * 总数
1413
- 注意:此字段可能返回 null,表示取不到有效值。
1414
- */
1415
- TotalCount: number
1701
+ * 条数
1702
+ */
1703
+ PageSize?: number
1416
1704
 
1417
1705
  /**
1418
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1706
+ * 页数
1419
1707
  */
1420
- RequestId?: string
1708
+ PageNumber?: number
1709
+
1710
+ /**
1711
+ * 企业ID
1712
+ */
1713
+ CorpId?: number
1714
+
1715
+ /**
1716
+ * 码规则状态 0:未生效 1:已生效 -1:已失效
1717
+ */
1718
+ Status?: number
1719
+
1720
+ /**
1721
+ * 商户ID
1722
+ */
1723
+ MerchantId?: string
1421
1724
  }
1422
1725
 
1423
1726
  /**
@@ -1466,138 +1769,172 @@ export interface CreateProductRequest {
1466
1769
  }
1467
1770
 
1468
1771
  /**
1469
- * CreateTraceChain返回参数结构体
1772
+ * ModifyCodeBatch请求参数结构体
1470
1773
  */
1471
- export interface CreateTraceChainResponse {
1774
+ export interface ModifyCodeBatchRequest {
1472
1775
  /**
1473
- * 溯源ID
1776
+ * 批次ID
1474
1777
  */
1475
- TraceId: string
1778
+ BatchId: string
1476
1779
 
1477
1780
  /**
1478
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1781
+ * 企业ID
1479
1782
  */
1480
- RequestId?: string
1481
- }
1783
+ CorpId?: number
1482
1784
 
1483
- /**
1484
- * DescribeTraceCodeById请求参数结构体
1485
- */
1486
- export interface DescribeTraceCodeByIdRequest {
1487
1785
  /**
1488
- * 企业ID
1786
+ * 状态 0: 未激活 1: 已激活 -1: 已冻结
1489
1787
  */
1490
- CorpId?: number
1788
+ Status?: number
1491
1789
 
1492
1790
  /**
1493
- * 二维码
1791
+ * 模板ID
1494
1792
  */
1495
- Code?: string
1496
- }
1793
+ MpTpl?: string
1497
1794
 
1498
- /**
1499
- * CreateCodePack请求参数结构体
1500
- */
1501
- export interface CreateCodePackRequest {
1502
1795
  /**
1503
1796
  * 商户ID
1504
1797
  */
1505
- MerchantId: string
1798
+ MerchantId?: string
1506
1799
 
1507
1800
  /**
1508
- * 码长度
1801
+ * 商品ID
1509
1802
  */
1510
- CodeLength: number
1803
+ ProductId?: string
1511
1804
 
1512
1805
  /**
1513
- * 码类型 alphabet 字母, number 数字, mixin 混合
1806
+ * 备注
1514
1807
  */
1515
- CodeType: string
1808
+ Remark?: string
1809
+ }
1516
1810
 
1811
+ /**
1812
+ * DescribeProductById请求参数结构体
1813
+ */
1814
+ export interface DescribeProductByIdRequest {
1517
1815
  /**
1518
- * 生码数量 普通码包时必填
1816
+ * 商品ID
1519
1817
  */
1520
- Amount?: number
1818
+ ProductId: string
1521
1819
 
1522
1820
  /**
1523
1821
  * 企业ID
1524
1822
  */
1525
1823
  CorpId?: number
1824
+ }
1526
1825
 
1826
+ /**
1827
+ * DescribeTraceCodes返回参数结构体
1828
+ */
1829
+ export interface DescribeTraceCodesResponse {
1527
1830
  /**
1528
- * 码包类型 0: 普通码包 1: 层级码包
1831
+ * 标识列表
1832
+ 注意:此字段可能返回 null,表示取不到有效值。
1833
+ */
1834
+ TraceCodes: Array<TraceCode>
1835
+
1836
+ /**
1837
+ * 条数
1838
+ 注意:此字段可能返回 null,表示取不到有效值。
1839
+ */
1840
+ TotalCount: number
1841
+
1842
+ /**
1843
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1529
1844
  */
1530
- PackType?: number
1845
+ RequestId?: string
1846
+ }
1531
1847
 
1848
+ /**
1849
+ * CreateTraceCodes返回参数结构体
1850
+ */
1851
+ export interface CreateTraceCodesResponse {
1532
1852
  /**
1533
- * 码包层级
1853
+ * 批次ID
1534
1854
  */
1535
- PackLevel?: number
1855
+ BatchId: string
1536
1856
 
1537
1857
  /**
1538
- * 码包规格
1858
+ * 导入成功码数量
1539
1859
  */
1540
- PackSpec?: Array<PackSpec>
1860
+ ActiveCnt: number
1861
+
1862
+ /**
1863
+ * 批次码数量
1864
+ */
1865
+ CodeCnt: number
1866
+
1867
+ /**
1868
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1869
+ */
1870
+ RequestId?: string
1541
1871
  }
1542
1872
 
1543
1873
  /**
1544
- * CreateCodeBatch请求参数结构体
1874
+ * DeleteTraceData请求参数结构体
1545
1875
  */
1546
- export interface CreateCodeBatchRequest {
1876
+ export interface DeleteTraceDataRequest {
1547
1877
  /**
1548
- * 企业ID
1878
+ * 溯源ID
1549
1879
  */
1550
- CorpId?: number
1880
+ TraceId: string
1551
1881
 
1552
1882
  /**
1553
- * 商户ID
1883
+ * 企业ID
1554
1884
  */
1555
- MerchantId?: string
1885
+ CorpId?: number
1886
+ }
1556
1887
 
1888
+ /**
1889
+ * 商户信息
1890
+ */
1891
+ export interface Merchant {
1557
1892
  /**
1558
- * 产品ID
1893
+ * 商户标识码
1559
1894
  */
1560
- ProductId?: string
1895
+ MerchantId: string
1561
1896
 
1562
1897
  /**
1563
- * 批次类型 0:溯源 1:营销
1898
+ * 企业id
1564
1899
  */
1565
- BatchType?: number
1900
+ CorpId: number
1566
1901
 
1567
1902
  /**
1568
- * 批次ID,系统自动生成
1903
+ * 商户名称
1569
1904
  */
1570
- BatchId?: string
1905
+ Name: string
1571
1906
 
1572
1907
  /**
1573
- * 备注
1574
- */
1575
- Remark?: string
1908
+ * 备注
1909
+ 注意:此字段可能返回 null,表示取不到有效值。
1910
+ */
1911
+ Remark: string
1576
1912
 
1577
1913
  /**
1578
- * 活动ID
1914
+ * 创建时间
1579
1915
  */
1580
- MpTpl?: string
1916
+ CreateTime: string
1581
1917
 
1582
1918
  /**
1583
- * 克隆批次ID
1919
+ * 更新时间
1584
1920
  */
1585
- CloneId?: string
1586
- }
1921
+ UpdateTime: string
1587
1922
 
1588
- /**
1589
- * ModifyCodeBatch返回参数结构体
1590
- */
1591
- export interface ModifyCodeBatchResponse {
1592
1923
  /**
1593
- * 批次ID
1924
+ * 商户码规则
1594
1925
  */
1595
- BatchId: string
1926
+ CodeRule: string
1596
1927
 
1597
1928
  /**
1598
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1929
+ * 码来源类型 0: 安心平台 1: 第三方码
1599
1930
  */
1600
- RequestId?: string
1931
+ CodeType: number
1932
+
1933
+ /**
1934
+ * 第三方码域名前缀
1935
+ 注意:此字段可能返回 null,表示取不到有效值。
1936
+ */
1937
+ CodeUrl: string
1601
1938
  }
1602
1939
 
1603
1940
  /**
@@ -1669,36 +2006,6 @@ export interface Product {
1669
2006
  MerchantName: string
1670
2007
  }
1671
2008
 
1672
- /**
1673
- * DescribeTraceCodes请求参数结构体
1674
- */
1675
- export interface DescribeTraceCodesRequest {
1676
- /**
1677
- * 搜索关键字 码标识,或者批次ID
1678
- */
1679
- Keyword?: string
1680
-
1681
- /**
1682
- * 条数
1683
- */
1684
- PageNumber?: number
1685
-
1686
- /**
1687
- * 页码
1688
- */
1689
- PageSize?: number
1690
-
1691
- /**
1692
- * 批次ID,弃用
1693
- */
1694
- BatchId?: string
1695
-
1696
- /**
1697
- * 企业ID
1698
- */
1699
- CorpId?: number
1700
- }
1701
-
1702
2009
  /**
1703
2010
  * 溯源码
1704
2011
  */
@@ -1760,9 +2067,15 @@ export interface TraceCode {
1760
2067
  }
1761
2068
 
1762
2069
  /**
1763
- * ModifyTraceCode返回参数结构体
2070
+ * CreateMerchant返回参数结构体
1764
2071
  */
1765
- export interface ModifyTraceCodeResponse {
2072
+ export interface CreateMerchantResponse {
2073
+ /**
2074
+ * 商户标识码
2075
+ 注意:此字段可能返回 null,表示取不到有效值。
2076
+ */
2077
+ MerchantId: string
2078
+
1766
2079
  /**
1767
2080
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1768
2081
  */
@@ -1770,61 +2083,192 @@ export interface ModifyTraceCodeResponse {
1770
2083
  }
1771
2084
 
1772
2085
  /**
1773
- * 上链数据
2086
+ * DescribeMerchants返回参数结构体
1774
2087
  */
1775
- export interface ChainData {
2088
+ export interface DescribeMerchantsResponse {
1776
2089
  /**
1777
- * 区块hash
2090
+ * 商户列表
1778
2091
  注意:此字段可能返回 null,表示取不到有效值。
1779
2092
  */
1780
- BlockHash: string
2093
+ Merchants: Array<Merchant>
1781
2094
 
1782
2095
  /**
1783
- * 区块高度
2096
+ * 总数
1784
2097
  注意:此字段可能返回 null,表示取不到有效值。
1785
2098
  */
1786
- BlockHeight: string
2099
+ TotalCount: number
1787
2100
 
1788
2101
  /**
1789
- * 区块时间
2102
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2103
+ */
2104
+ RequestId?: string
2105
+ }
2106
+
2107
+ /**
2108
+ * DescribeTraceDataList请求参数结构体
2109
+ */
2110
+ export interface DescribeTraceDataListRequest {
2111
+ /**
2112
+ * 企业ID
2113
+ */
2114
+ CorpId?: number
2115
+
2116
+ /**
2117
+ * 批次ID
2118
+ */
2119
+ BatchId?: string
2120
+
2121
+ /**
2122
+ * 任务ID 用于外部溯源
2123
+ */
2124
+ TaskId?: string
2125
+
2126
+ /**
2127
+ * 页数
2128
+ */
2129
+ PageNumber?: number
2130
+
2131
+ /**
2132
+ * 二维码
2133
+ */
2134
+ Code?: string
2135
+
2136
+ /**
2137
+ * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
2138
+ */
2139
+ Phase?: number
2140
+
2141
+ /**
2142
+ * 数量
2143
+ */
2144
+ PageSize?: number
2145
+ }
2146
+
2147
+ /**
2148
+ * DeleteMerchant返回参数结构体
2149
+ */
2150
+ export interface DeleteMerchantResponse {
2151
+ /**
2152
+ * 商户标识码
1790
2153
  注意:此字段可能返回 null,表示取不到有效值。
1791
2154
  */
1792
- BlockTime: string
2155
+ MerchantId: string
2156
+
2157
+ /**
2158
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2159
+ */
2160
+ RequestId?: string
1793
2161
  }
1794
2162
 
1795
2163
  /**
1796
- * 环节数据
2164
+ * DeleteCodeBatch返回参数结构体
1797
2165
  */
1798
- export interface PhaseData {
2166
+ export interface DeleteCodeBatchResponse {
1799
2167
  /**
1800
- * 启用头
2168
+ * 批次ID
1801
2169
  */
1802
- HeadEnabled?: boolean
2170
+ BatchId: string
1803
2171
 
1804
2172
  /**
1805
- * 标题
2173
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1806
2174
  */
1807
- HeadTitle?: string
2175
+ RequestId?: string
2176
+ }
1808
2177
 
2178
+ /**
2179
+ * CreateTraceChain请求参数结构体
2180
+ */
2181
+ export interface CreateTraceChainRequest {
1809
2182
  /**
1810
- * 标识符
2183
+ * 企业ID
1811
2184
  */
1812
- Key?: string
2185
+ CorpId?: number
1813
2186
 
1814
2187
  /**
1815
- * 小程序AppId
2188
+ * 溯源ID
1816
2189
  */
1817
- AppId?: string
2190
+ TraceId?: string
2191
+ }
1818
2192
 
2193
+ /**
2194
+ * DescribeMerchantById请求参数结构体
2195
+ */
2196
+ export interface DescribeMerchantByIdRequest {
1819
2197
  /**
1820
- * 小程序AppPath
2198
+ * 商户标识码
1821
2199
  */
1822
- AppPath?: string
2200
+ MerchantId: string
1823
2201
 
1824
2202
  /**
1825
- * 小程序名称AppName
2203
+ * 企业ID
1826
2204
  */
1827
- AppName?: string
2205
+ CorpId?: number
2206
+ }
2207
+
2208
+ /**
2209
+ * DescribeProductById返回参数结构体
2210
+ */
2211
+ export interface DescribeProductByIdResponse {
2212
+ /**
2213
+ * 商品信息
2214
+ 注意:此字段可能返回 null,表示取不到有效值。
2215
+ */
2216
+ Product: Product
2217
+
2218
+ /**
2219
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2220
+ */
2221
+ RequestId?: string
2222
+ }
2223
+
2224
+ /**
2225
+ * DescribeCodePacks请求参数结构体
2226
+ */
2227
+ export interface DescribeCodePacksRequest {
2228
+ /**
2229
+ * 每页数量
2230
+ */
2231
+ PageSize?: number
2232
+
2233
+ /**
2234
+ * 页数
2235
+ */
2236
+ PageNumber?: number
2237
+
2238
+ /**
2239
+ * 查询关键字
2240
+ */
2241
+ Keyword?: string
2242
+
2243
+ /**
2244
+ * 企业ID
2245
+ */
2246
+ CorpId?: number
2247
+ }
2248
+
2249
+ /**
2250
+ * DescribeJobFileUrl返回参数结构体
2251
+ */
2252
+ export interface DescribeJobFileUrlResponse {
2253
+ /**
2254
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2255
+ */
2256
+ RequestId?: string
2257
+ }
2258
+
2259
+ /**
2260
+ * DescribeTraceCodeById请求参数结构体
2261
+ */
2262
+ export interface DescribeTraceCodeByIdRequest {
2263
+ /**
2264
+ * 企业ID
2265
+ */
2266
+ CorpId?: number
2267
+
2268
+ /**
2269
+ * 二维码
2270
+ */
2271
+ Code?: string
1828
2272
  }
1829
2273
 
1830
2274
  /**
@@ -1843,13 +2287,39 @@ export interface DeleteMerchantRequest {
1843
2287
  }
1844
2288
 
1845
2289
  /**
1846
- * ModifyTraceData返回参数结构体
2290
+ * ModifyTraceCode返回参数结构体
1847
2291
  */
1848
- export interface ModifyTraceDataResponse {
2292
+ export interface ModifyTraceCodeResponse {
1849
2293
  /**
1850
- * 溯源ID
2294
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1851
2295
  */
1852
- TraceId: string
2296
+ RequestId?: string
2297
+ }
2298
+
2299
+ /**
2300
+ * DescribeCodePackUrl返回参数结构体
2301
+ */
2302
+ export interface DescribeCodePackUrlResponse {
2303
+ /**
2304
+ * 文字码包地址
2305
+ 注意:此字段可能返回 null,表示取不到有效值。
2306
+ */
2307
+ Url: string
2308
+
2309
+ /**
2310
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2311
+ */
2312
+ RequestId?: string
2313
+ }
2314
+
2315
+ /**
2316
+ * ModifyCodeBatch返回参数结构体
2317
+ */
2318
+ export interface ModifyCodeBatchResponse {
2319
+ /**
2320
+ * 批次ID
2321
+ */
2322
+ BatchId: string
1853
2323
 
1854
2324
  /**
1855
2325
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。