# frozen_string_literal: true
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module TencentCloud
module Trp
module V20210515
# 通用属性
# Type 的枚举值
# text:文本类型, longtext:长文本类型, banner:单图片类型, image:多图片类型, video:视频类型, mp:小程序类型
# 具体组合如下
# - Type: "text" 文本类型, 对应值 Value: "文本字符串"
# - Type: "longtext" 长文本类型, 对应值 Value: "长文本字符串, 支持换行\n"
# - Type: "banner" 单图片类型, 对应图片地址 Value: "https://sample.cdn.com/xxx.jpg"
# - Type: "image" 多图片类型, 对应图片地址 Values: ["https://sample.cdn.com/1.jpg", "https://sample.cdn.com/2.jpg"]
# - Type: "video" 视频类型, 对应视频地址 Value: "https://sample.cdn.com/xxx.mp4"
# - Type: "mp" 小程序类型, 对应配置 Values: ["WXAPPID", "WXAPP_PATH", "跳转说明"]
class AttrItem < TencentCloud::Common::AbstractModel
# @param Name: 字段名称
# @type Name: String
# @param Value: 字段值
# @type Value: String
# @param Type: 字段类型
# text:文本类型,
# longtext:长文本类型, banner:单图片类型, image:多图片类型,
# video:视频类型,
# mp:小程序类型
# @type Type: String
# @param ReadOnly: 只读
# @type ReadOnly: Boolean
# @param Hidden: 扫码展示
# @type Hidden: Boolean
# @param Values: 多个值
# @type Values: Array
# @param Key: 类型标识
# @type Key: String
# @param Ext: 扩展字段
# @type Ext: String
attr_accessor :Name, :Value, :Type, :ReadOnly, :Hidden, :Values, :Key, :Ext
def initialize(name=nil, value=nil, type=nil, readonly=nil, hidden=nil, values=nil, key=nil, ext=nil)
@Name = name
@Value = value
@Type = type
@ReadOnly = readonly
@Hidden = hidden
@Values = values
@Key = key
@Ext = ext
end
def deserialize(params)
@Name = params['Name']
@Value = params['Value']
@Type = params['Type']
@ReadOnly = params['ReadOnly']
@Hidden = params['Hidden']
@Values = params['Values']
@Key = params['Key']
@Ext = params['Ext']
end
end
# AuthorizedTransfer请求参数结构体
class AuthorizedTransferRequest < TencentCloud::Common::AbstractModel
# @param BusinessSecurityData: 业务加密入参。
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
attr_accessor :BusinessSecurityData
def initialize(businesssecuritydata=nil)
@BusinessSecurityData = businesssecuritydata
end
def deserialize(params)
unless params['BusinessSecurityData'].nil?
@BusinessSecurityData = InputEncryptData.new
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
end
end
end
# AuthorizedTransfer返回参数结构体
class AuthorizedTransferResponse < TencentCloud::Common::AbstractModel
# @param Data: 业务出参。
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Data, :RequestId
def initialize(data=nil, requestid=nil)
@Data = data
@RequestId = requestid
end
def deserialize(params)
unless params['Data'].nil?
@Data = OutputAuthorizedTransfer.new
@Data.deserialize(params['Data'])
end
@RequestId = params['RequestId']
end
end
# 上链数据
class Chain < TencentCloud::Common::AbstractModel
# @param Code: 码url
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Code: String
# @param Data: 上链数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: Array
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
chainvalue_tmp = ChainValue.new
chainvalue_tmp.deserialize(i)
@Data << chainvalue_tmp
end
end
end
end
# 上链数据
class ChainData < TencentCloud::Common::AbstractModel
# @param BlockHash: 区块hash
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BlockHash: String
# @param BlockHeight: 区块高度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BlockHeight: String
# @param BlockTime: 区块时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BlockTime: String
attr_accessor :BlockHash, :BlockHeight, :BlockTime
def initialize(blockhash=nil, blockheight=nil, blocktime=nil)
@BlockHash = blockhash
@BlockHeight = blockheight
@BlockTime = blocktime
end
def deserialize(params)
@BlockHash = params['BlockHash']
@BlockHeight = params['BlockHeight']
@BlockTime = params['BlockTime']
end
end
# 上链数据 key-value
class ChainValue < TencentCloud::Common::AbstractModel
# @param Label: 标题名字
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Label: String
# @param Type: 类型,文字:"text",图片:"image"
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Type: String
# @param Value: 值,文字类型:"abc",图片类型:""/images/img.png"
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Value: String
attr_accessor :Label, :Type, :Value
def initialize(label=nil, type=nil, value=nil)
@Label = label
@Type = type
@Value = value
end
def deserialize(params)
@Label = params['Label']
@Type = params['Type']
@Value = params['Value']
end
end
# 批次
class CodeBatch < TencentCloud::Common::AbstractModel
# @param BatchId: 批次号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param BatchCode: 批次编码(未使用)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchCode: String
# @param CodeCnt: 码数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeCnt: Integer
# @param MerchantId: 所属商户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param ProductId: 产品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param BatchType: 批次类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchType: Integer
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param MpTpl: 微信模板
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MpTpl: String
# @param Status: 批次状态 0: 未激活 1: 已激活 -1: 已冻结
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: Integer
# @param CreateTime: 创建时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param UpdateTime: 修改时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param MerchantName: 所属商户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param ProductName: 产品名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductName: String
# @param Ext: 未使用
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
# @param TplName: 模板名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TplName: String
# @param Job: 调度任务
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Job: :class:`Tencentcloud::Trp.v20210515.models.Job`
# @param ProductionDate: 生产日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductionDate: String
# @param ValidDate: 有效期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ValidDate: String
# @param Attrs: 扩展属性
# @type Attrs: Array
attr_accessor :BatchId, :CorpId, :BatchCode, :CodeCnt, :MerchantId, :ProductId, :BatchType, :Remark, :MpTpl, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName, :Ext, :TplName, :Job, :ProductionDate, :ValidDate, :Attrs
extend Gem::Deprecate
deprecate :Ext, :none, 2024, 11
deprecate :Ext=, :none, 2024, 11
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, job=nil, productiondate=nil, validdate=nil, attrs=nil)
@BatchId = batchid
@CorpId = corpid
@BatchCode = batchcode
@CodeCnt = codecnt
@MerchantId = merchantid
@ProductId = productid
@BatchType = batchtype
@Remark = remark
@MpTpl = mptpl
@Status = status
@CreateTime = createtime
@UpdateTime = updatetime
@MerchantName = merchantname
@ProductName = productname
@Ext = ext
@TplName = tplname
@Job = job
@ProductionDate = productiondate
@ValidDate = validdate
@Attrs = attrs
end
def deserialize(params)
@BatchId = params['BatchId']
@CorpId = params['CorpId']
@BatchCode = params['BatchCode']
@CodeCnt = params['CodeCnt']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@BatchType = params['BatchType']
@Remark = params['Remark']
@MpTpl = params['MpTpl']
@Status = params['Status']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@MerchantName = params['MerchantName']
@ProductName = params['ProductName']
unless params['Ext'].nil?
@Ext = Ext.new
@Ext.deserialize(params['Ext'])
end
@TplName = params['TplName']
unless params['Job'].nil?
@Job = Job.new
@Job.deserialize(params['Job'])
end
@ProductionDate = params['ProductionDate']
@ValidDate = params['ValidDate']
unless params['Attrs'].nil?
@Attrs = []
params['Attrs'].each do |i|
attritem_tmp = AttrItem.new
attritem_tmp.deserialize(i)
@Attrs << attritem_tmp
end
end
end
end
# 码类型
class CodeItem < TencentCloud::Common::AbstractModel
# @param Code: 无
# @type Code: String
attr_accessor :Code
def initialize(code=nil)
@Code = code
end
def deserialize(params)
@Code = params['Code']
end
end
# 码包类型
class CodePack < TencentCloud::Common::AbstractModel
# @param PackId: 码id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackId: String
# @param CorpId: 企业id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param MerchantId: 商户id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param CreateTime: 创建时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param UpdateTime: 更新时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param Status: 制码状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param Log: 执行日志
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Log: String
# @param CreateUser: 创建人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateUser: String
# @param Amount: 码数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Amount: Integer
# @param CodeLength: 防伪码长度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeLength: Integer
# @param CodeType: 码类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeType: String
# @param Cipher: 是否暗码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Cipher: Integer
# @param TextUrl: [弃用] 文字码地址,通过另一个接口查
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TextUrl: String
# @param PackUrl: [弃用] 二维码地址,通过另一个接口查
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackUrl: String
# @param MerchantName: 商户名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param RuleType: 码规则类型 0: 默认, 1: 自定义
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RuleType: Integer
# @param CustomId: 自定义码规则ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomId: String
# @param PackType: 码包类型 0: 普通码包 1: 层级码包
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackType: Integer
# @param PackLevel: 生码层级
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackLevel: Integer
# @param PackSpec: 层级码配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackSpec: Array
# @param ProductName: 商品名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductName: String
# @param ProductSpecification: 商品规格
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductSpecification: String
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param RelateType: 码关系是否预关联
# 0:否, 1:是
# @type RelateType: Integer
# @param SceneCode: 场景码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SceneCode: Integer
# @param CodeRule: 码规则
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeRule: String
# @param UsedAmount: 已使用码数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UsedAmount: Integer
# @param SerialStart: 开始流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SerialStart: Integer
# @param SerialEnd: 结束流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SerialEnd: Integer
attr_accessor :PackId, :CorpId, :MerchantId, :CreateTime, :UpdateTime, :Status, :Log, :CreateUser, :Amount, :CodeLength, :CodeType, :Cipher, :TextUrl, :PackUrl, :MerchantName, :RuleType, :CustomId, :PackType, :PackLevel, :PackSpec, :ProductName, :ProductSpecification, :ProductId, :RelateType, :SceneCode, :CodeRule, :UsedAmount, :SerialStart, :SerialEnd
def initialize(packid=nil, corpid=nil, merchantid=nil, createtime=nil, updatetime=nil, status=nil, log=nil, createuser=nil, amount=nil, codelength=nil, codetype=nil, cipher=nil, texturl=nil, packurl=nil, merchantname=nil, ruletype=nil, customid=nil, packtype=nil, packlevel=nil, packspec=nil, productname=nil, productspecification=nil, productid=nil, relatetype=nil, scenecode=nil, coderule=nil, usedamount=nil, serialstart=nil, serialend=nil)
@PackId = packid
@CorpId = corpid
@MerchantId = merchantid
@CreateTime = createtime
@UpdateTime = updatetime
@Status = status
@Log = log
@CreateUser = createuser
@Amount = amount
@CodeLength = codelength
@CodeType = codetype
@Cipher = cipher
@TextUrl = texturl
@PackUrl = packurl
@MerchantName = merchantname
@RuleType = ruletype
@CustomId = customid
@PackType = packtype
@PackLevel = packlevel
@PackSpec = packspec
@ProductName = productname
@ProductSpecification = productspecification
@ProductId = productid
@RelateType = relatetype
@SceneCode = scenecode
@CodeRule = coderule
@UsedAmount = usedamount
@SerialStart = serialstart
@SerialEnd = serialend
end
def deserialize(params)
@PackId = params['PackId']
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@Status = params['Status']
@Log = params['Log']
@CreateUser = params['CreateUser']
@Amount = params['Amount']
@CodeLength = params['CodeLength']
@CodeType = params['CodeType']
@Cipher = params['Cipher']
@TextUrl = params['TextUrl']
@PackUrl = params['PackUrl']
@MerchantName = params['MerchantName']
@RuleType = params['RuleType']
@CustomId = params['CustomId']
@PackType = params['PackType']
@PackLevel = params['PackLevel']
unless params['PackSpec'].nil?
@PackSpec = []
params['PackSpec'].each do |i|
packspec_tmp = PackSpec.new
packspec_tmp.deserialize(i)
@PackSpec << packspec_tmp
end
end
@ProductName = params['ProductName']
@ProductSpecification = params['ProductSpecification']
@ProductId = params['ProductId']
@RelateType = params['RelateType']
@SceneCode = params['SceneCode']
@CodeRule = params['CodeRule']
@UsedAmount = params['UsedAmount']
@SerialStart = params['SerialStart']
@SerialEnd = params['SerialEnd']
end
end
# 码段配置
class CodePart < TencentCloud::Common::AbstractModel
# @param Name: 码段名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
# @param Type: 码段类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Type: String
# @param Value: 码段内容
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Value: String
# @param Length: 码段长度
# @type Length: Integer
# @param Ext: 扩展字段
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ext: String
attr_accessor :Name, :Type, :Value, :Length, :Ext
def initialize(name=nil, type=nil, value=nil, length=nil, ext=nil)
@Name = name
@Type = type
@Value = value
@Length = length
@Ext = ext
end
def deserialize(params)
@Name = params['Name']
@Type = params['Type']
@Value = params['Value']
@Length = params['Length']
@Ext = params['Ext']
end
end
# 渠道商的子企业额度使用情况
class CorpQuota < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param CorpName: 企业名称
# @type CorpName: String
# @param Quota: 额度
# @type Quota: :class:`Tencentcloud::Trp.v20210515.models.Quota`
# @param UsageQuota: 额度使用量
# @type UsageQuota: :class:`Tencentcloud::Trp.v20210515.models.UsageQuota`
attr_accessor :CorpId, :CorpName, :Quota, :UsageQuota
def initialize(corpid=nil, corpname=nil, quota=nil, usagequota=nil)
@CorpId = corpid
@CorpName = corpname
@Quota = quota
@UsageQuota = usagequota
end
def deserialize(params)
@CorpId = params['CorpId']
@CorpName = params['CorpName']
unless params['Quota'].nil?
@Quota = Quota.new
@Quota.deserialize(params['Quota'])
end
unless params['UsageQuota'].nil?
@UsageQuota = UsageQuota.new
@UsageQuota.deserialize(params['UsageQuota'])
end
end
end
# CreateChainBatch请求参数结构体
class CreateChainBatchRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param ChainList: 溯源ID
# @type ChainList: Array
attr_accessor :CorpId, :ChainList
def initialize(corpid=nil, chainlist=nil)
@CorpId = corpid
@ChainList = chainlist
end
def deserialize(params)
@CorpId = params['CorpId']
unless params['ChainList'].nil?
@ChainList = []
params['ChainList'].each do |i|
chain_tmp = Chain.new
chain_tmp.deserialize(i)
@ChainList << chain_tmp
end
end
end
end
# CreateChainBatch返回参数结构体
class CreateChainBatchResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# CreateCodeBatch请求参数结构体
class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param ProductId: 产品ID
# @type ProductId: String
# @param BatchType: 批次类型 0:溯源 1:营销
# @type BatchType: Integer
# @param BatchId: 批次ID,留空时系统自动生成
# @type BatchId: String
# @param Remark: 备注
# @type Remark: String
# @param MpTpl: 模板ID,或者活动ID
# @type MpTpl: String
# @param CloneId: 克隆批次ID,同时会复制溯源信息
# @type CloneId: String
# @param BatchCode: 批次编号,业务字段不判断唯一性
# @type BatchCode: String
# @param ValidDate: 有效期
# @type ValidDate: String
# @param ProductionDate: 生产日期
# @type ProductionDate: String
attr_accessor :CorpId, :MerchantId, :ProductId, :BatchType, :BatchId, :Remark, :MpTpl, :CloneId, :BatchCode, :ValidDate, :ProductionDate
def initialize(corpid=nil, merchantid=nil, productid=nil, batchtype=nil, batchid=nil, remark=nil, mptpl=nil, cloneid=nil, batchcode=nil, validdate=nil, productiondate=nil)
@CorpId = corpid
@MerchantId = merchantid
@ProductId = productid
@BatchType = batchtype
@BatchId = batchid
@Remark = remark
@MpTpl = mptpl
@CloneId = cloneid
@BatchCode = batchcode
@ValidDate = validdate
@ProductionDate = productiondate
end
def deserialize(params)
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@BatchType = params['BatchType']
@BatchId = params['BatchId']
@Remark = params['Remark']
@MpTpl = params['MpTpl']
@CloneId = params['CloneId']
@BatchCode = params['BatchCode']
@ValidDate = params['ValidDate']
@ProductionDate = params['ProductionDate']
end
end
# CreateCodeBatch返回参数结构体
class CreateCodeBatchResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :RequestId
def initialize(batchid=nil, requestid=nil)
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# CreateCodePack请求参数结构体
class CreateCodePackRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param CodeLength: 码长度
# @type CodeLength: Integer
# @param CodeType: 码类型 alphabet 字母, number 数字, mixin 混合
# @type CodeType: String
# @param Amount: 生码数量 普通码包时必填
# @type Amount: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param PackType: 码包类型 0: 普通码包 1: 层级码包
# @type PackType: Integer
# @param PackLevel: 码包层级
# @type PackLevel: Integer
# @param PackSpec: 码包规格
# @type PackSpec: Array
# @param BatchId: 批次ID,如果传了生码后会同时绑定批次,并激活码
# @type BatchId: String
# @param SerialType: 是否有流水码 0:无 1:有
# @type SerialType: Integer
# @param ProductId: 关联产品ID
# @type ProductId: String
# @param RelateType: 层级码时是否提前生成关联关系,默认为 1
# @type RelateType: Integer
# @param SceneCode: 场景值
# @type SceneCode: Integer
attr_accessor :MerchantId, :CodeLength, :CodeType, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :BatchId, :SerialType, :ProductId, :RelateType, :SceneCode
def initialize(merchantid=nil, codelength=nil, codetype=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, batchid=nil, serialtype=nil, productid=nil, relatetype=nil, scenecode=nil)
@MerchantId = merchantid
@CodeLength = codelength
@CodeType = codetype
@Amount = amount
@CorpId = corpid
@PackType = packtype
@PackLevel = packlevel
@PackSpec = packspec
@BatchId = batchid
@SerialType = serialtype
@ProductId = productid
@RelateType = relatetype
@SceneCode = scenecode
end
def deserialize(params)
@MerchantId = params['MerchantId']
@CodeLength = params['CodeLength']
@CodeType = params['CodeType']
@Amount = params['Amount']
@CorpId = params['CorpId']
@PackType = params['PackType']
@PackLevel = params['PackLevel']
unless params['PackSpec'].nil?
@PackSpec = []
params['PackSpec'].each do |i|
packspec_tmp = PackSpec.new
packspec_tmp.deserialize(i)
@PackSpec << packspec_tmp
end
end
@BatchId = params['BatchId']
@SerialType = params['SerialType']
@ProductId = params['ProductId']
@RelateType = params['RelateType']
@SceneCode = params['SceneCode']
end
end
# CreateCodePack返回参数结构体
class CreateCodePackResponse < TencentCloud::Common::AbstractModel
# @param PackId: 码包ID
# @type PackId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PackId, :RequestId
def initialize(packid=nil, requestid=nil)
@PackId = packid
@RequestId = requestid
end
def deserialize(params)
@PackId = params['PackId']
@RequestId = params['RequestId']
end
end
# CreateCorporationOrder请求参数结构体
class CreateCorporationOrderRequest < TencentCloud::Common::AbstractModel
# @param CorpName: 企业名称
# @type CorpName: String
# @param Owner: 所有者ID
# @type Owner: String
# @param CodeQuota: 溯源码额度
# @type CodeQuota: Integer
# @param ExpireTime: 额度过期时间
# @type ExpireTime: String
# @param Amount: 金额
# @type Amount: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param ContactPerson: 联系人
# @type ContactPerson: String
# @param ContactNumber: 联系电话
# @type ContactNumber: String
# @param Remark: 备注
# @type Remark: String
attr_accessor :CorpName, :Owner, :CodeQuota, :ExpireTime, :Amount, :CorpId, :ContactPerson, :ContactNumber, :Remark
def initialize(corpname=nil, owner=nil, codequota=nil, expiretime=nil, amount=nil, corpid=nil, contactperson=nil, contactnumber=nil, remark=nil)
@CorpName = corpname
@Owner = owner
@CodeQuota = codequota
@ExpireTime = expiretime
@Amount = amount
@CorpId = corpid
@ContactPerson = contactperson
@ContactNumber = contactnumber
@Remark = remark
end
def deserialize(params)
@CorpName = params['CorpName']
@Owner = params['Owner']
@CodeQuota = params['CodeQuota']
@ExpireTime = params['ExpireTime']
@Amount = params['Amount']
@CorpId = params['CorpId']
@ContactPerson = params['ContactPerson']
@ContactNumber = params['ContactNumber']
@Remark = params['Remark']
end
end
# CreateCorporationOrder返回参数结构体
class CreateCorporationOrderResponse < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CorpId, :RequestId
def initialize(corpid=nil, requestid=nil)
@CorpId = corpid
@RequestId = requestid
end
def deserialize(params)
@CorpId = params['CorpId']
@RequestId = params['RequestId']
end
end
# CreateCustomPack请求参数结构体
class CreateCustomPackRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param Amount: 生码数量, 普通码包时必填
# @type Amount: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param PackType: 码包类型 0: 普通码包 1: 层级码包
# @type PackType: Integer
# @param PackLevel: 码包层级
# @type PackLevel: Integer
# @param PackSpec: 层级码包规则
# @type PackSpec: Array
# @param CustomId: 码规则ID, 和CodeParts二选一必填
# @type CustomId: String
# @param CodeParts: 码段配置,和CustomId二选一必填
# @type CodeParts: Array
# @param BatchId: 批次ID,如果传了生码后会同时绑定批次,并激活码
# @type BatchId: String
# @param SerialType: 是否有流水码 0:无 1:有
# @type SerialType: Integer
# @param ProductId: 产品ID
# @type ProductId: String
# @param RelateType: 是否预生成码关系
# 0: 否, 1:是
# 默认为1,仅对层级码有效
# @type RelateType: Integer
# @param SceneCode: 场景值
# @type SceneCode: Integer
attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId, :CodeParts, :BatchId, :SerialType, :ProductId, :RelateType, :SceneCode
def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil, batchid=nil, serialtype=nil, productid=nil, relatetype=nil, scenecode=nil)
@MerchantId = merchantid
@Amount = amount
@CorpId = corpid
@PackType = packtype
@PackLevel = packlevel
@PackSpec = packspec
@CustomId = customid
@CodeParts = codeparts
@BatchId = batchid
@SerialType = serialtype
@ProductId = productid
@RelateType = relatetype
@SceneCode = scenecode
end
def deserialize(params)
@MerchantId = params['MerchantId']
@Amount = params['Amount']
@CorpId = params['CorpId']
@PackType = params['PackType']
@PackLevel = params['PackLevel']
unless params['PackSpec'].nil?
@PackSpec = []
params['PackSpec'].each do |i|
packspec_tmp = PackSpec.new
packspec_tmp.deserialize(i)
@PackSpec << packspec_tmp
end
end
@CustomId = params['CustomId']
unless params['CodeParts'].nil?
@CodeParts = []
params['CodeParts'].each do |i|
codepart_tmp = CodePart.new
codepart_tmp.deserialize(i)
@CodeParts << codepart_tmp
end
end
@BatchId = params['BatchId']
@SerialType = params['SerialType']
@ProductId = params['ProductId']
@RelateType = params['RelateType']
@SceneCode = params['SceneCode']
end
end
# CreateCustomPack返回参数结构体
class CreateCustomPackResponse < TencentCloud::Common::AbstractModel
# @param PackId: 码包ID
# @type PackId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PackId, :RequestId
def initialize(packid=nil, requestid=nil)
@PackId = packid
@RequestId = requestid
end
def deserialize(params)
@PackId = params['PackId']
@RequestId = params['RequestId']
end
end
# CreateCustomRule请求参数结构体
class CreateCustomRuleRequest < TencentCloud::Common::AbstractModel
# @param Name: 规则名称
# @type Name: String
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param CodeLength: 码长度
# @type CodeLength: Integer
# @param CodeParts: 码段配置
# @type CodeParts: Array
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :Name, :MerchantId, :CodeLength, :CodeParts, :CorpId
def initialize(name=nil, merchantid=nil, codelength=nil, codeparts=nil, corpid=nil)
@Name = name
@MerchantId = merchantid
@CodeLength = codelength
@CodeParts = codeparts
@CorpId = corpid
end
def deserialize(params)
@Name = params['Name']
@MerchantId = params['MerchantId']
@CodeLength = params['CodeLength']
unless params['CodeParts'].nil?
@CodeParts = []
params['CodeParts'].each do |i|
codepart_tmp = CodePart.new
codepart_tmp.deserialize(i)
@CodeParts << codepart_tmp
end
end
@CorpId = params['CorpId']
end
end
# CreateCustomRule返回参数结构体
class CreateCustomRuleResponse < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CustomId, :RequestId
def initialize(customid=nil, requestid=nil)
@CustomId = customid
@RequestId = requestid
end
def deserialize(params)
@CustomId = params['CustomId']
@RequestId = params['RequestId']
end
end
# CreateMerchant请求参数结构体
class CreateMerchantRequest < TencentCloud::Common::AbstractModel
# @param Name: 商户名称
# @type Name: String
# @param Remark: 备注
# @type Remark: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param CodeType: 码包来源 0:自建, 1:第三方
# @type CodeType: Integer
# @param CodeUrl: 码包前缀地址 第三方码包时必填
# @type CodeUrl: String
attr_accessor :Name, :Remark, :CorpId, :CodeType, :CodeUrl
def initialize(name=nil, remark=nil, corpid=nil, codetype=nil, codeurl=nil)
@Name = name
@Remark = remark
@CorpId = corpid
@CodeType = codetype
@CodeUrl = codeurl
end
def deserialize(params)
@Name = params['Name']
@Remark = params['Remark']
@CorpId = params['CorpId']
@CodeType = params['CodeType']
@CodeUrl = params['CodeUrl']
end
end
# CreateMerchant返回参数结构体
class CreateMerchantResponse < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantId, :RequestId
def initialize(merchantid=nil, requestid=nil)
@MerchantId = merchantid
@RequestId = requestid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@RequestId = params['RequestId']
end
end
# CreateProduct请求参数结构体
class CreateProductRequest < TencentCloud::Common::AbstractModel
# @param Name: 商品名称
# @type Name: String
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param Remark: 备注
# @type Remark: String
# @param MerchantName: 商户名称
# @type MerchantName: String
# @param Specification: 商品规格
# @type Specification: String
# @param Logo: 商品图片
# @type Logo: Array
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Ext: 预留字段
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
attr_accessor :Name, :MerchantId, :Remark, :MerchantName, :Specification, :Logo, :CorpId, :Ext
def initialize(name=nil, merchantid=nil, remark=nil, merchantname=nil, specification=nil, logo=nil, corpid=nil, ext=nil)
@Name = name
@MerchantId = merchantid
@Remark = remark
@MerchantName = merchantname
@Specification = specification
@Logo = logo
@CorpId = corpid
@Ext = ext
end
def deserialize(params)
@Name = params['Name']
@MerchantId = params['MerchantId']
@Remark = params['Remark']
@MerchantName = params['MerchantName']
@Specification = params['Specification']
@Logo = params['Logo']
@CorpId = params['CorpId']
unless params['Ext'].nil?
@Ext = Ext.new
@Ext.deserialize(params['Ext'])
end
end
end
# CreateProduct返回参数结构体
class CreateProductResponse < TencentCloud::Common::AbstractModel
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ProductId, :RequestId
def initialize(productid=nil, requestid=nil)
@ProductId = productid
@RequestId = requestid
end
def deserialize(params)
@ProductId = params['ProductId']
@RequestId = params['RequestId']
end
end
# CreateTraceChain请求参数结构体
class CreateTraceChainRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param TraceId: 溯源ID
# @type TraceId: String
attr_accessor :CorpId, :TraceId
def initialize(corpid=nil, traceid=nil)
@CorpId = corpid
@TraceId = traceid
end
def deserialize(params)
@CorpId = params['CorpId']
@TraceId = params['TraceId']
end
end
# CreateTraceChain返回参数结构体
class CreateTraceChainResponse < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceId, :RequestId
def initialize(traceid=nil, requestid=nil)
@TraceId = traceid
@RequestId = requestid
end
def deserialize(params)
@TraceId = params['TraceId']
@RequestId = params['RequestId']
end
end
# CreateTraceCodesAsync请求参数结构体
class CreateTraceCodesAsyncRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
# @param FileKey: 上传文件Key,仅支持 csv 或者 zip 类型
# @type FileKey: String
attr_accessor :CorpId, :BatchId, :FileKey
def initialize(corpid=nil, batchid=nil, filekey=nil)
@CorpId = corpid
@BatchId = batchid
@FileKey = filekey
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
@FileKey = params['FileKey']
end
end
# CreateTraceCodesAsync返回参数结构体
class CreateTraceCodesAsyncResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :RequestId
def initialize(batchid=nil, requestid=nil)
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# CreateTraceCodes请求参数结构体
class CreateTraceCodesRequest < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Codes: 码
# @type Codes: Array
# @param CodeType: 码绑定激活策略,默认 0
# 0: 传什么码就激活什么码
# 1: 层级码 + 层级子码
# @type CodeType: Integer
# @param CheckType: 错误检查类型,默认 0
# 0: 没有新导入码时正常返回
# 1: 没有新导入码时报错,并返回没有导入成功的原因
# @type CheckType: Integer
attr_accessor :BatchId, :CorpId, :Codes, :CodeType, :CheckType
def initialize(batchid=nil, corpid=nil, codes=nil, codetype=nil, checktype=nil)
@BatchId = batchid
@CorpId = corpid
@Codes = codes
@CodeType = codetype
@CheckType = checktype
end
def deserialize(params)
@BatchId = params['BatchId']
@CorpId = params['CorpId']
unless params['Codes'].nil?
@Codes = []
params['Codes'].each do |i|
codeitem_tmp = CodeItem.new
codeitem_tmp.deserialize(i)
@Codes << codeitem_tmp
end
end
@CodeType = params['CodeType']
@CheckType = params['CheckType']
end
end
# CreateTraceCodes返回参数结构体
class CreateTraceCodesResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param ActiveCnt: 导入成功码数量
# @type ActiveCnt: Integer
# @param CodeCnt: 批次码数量
# @type CodeCnt: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :ActiveCnt, :CodeCnt, :RequestId
def initialize(batchid=nil, activecnt=nil, codecnt=nil, requestid=nil)
@BatchId = batchid
@ActiveCnt = activecnt
@CodeCnt = codecnt
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@ActiveCnt = params['ActiveCnt']
@CodeCnt = params['CodeCnt']
@RequestId = params['RequestId']
end
end
# CreateTraceData请求参数结构体
class CreateTraceDataRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
# @param TaskId: 任务ID
# @type TaskId: String
# @param Phase: 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
# @type Phase: Integer
# @param PhaseName: 溯源阶段名称
# @type PhaseName: String
# @param ChainStatus: [无效] 上链状态
# @type ChainStatus: Integer
# @param Type: [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
# @type Type: Integer
# @param TraceId: [无效] 溯源ID
# @type TraceId: String
# @param TraceItems: 溯源信息
# @type TraceItems: Array
# @param Status: 溯源状态 0: 无效, 1: 有效
# @type Status: Integer
# @param PhaseData: 环节数据
# @type PhaseData: :class:`Tencentcloud::Trp.v20210515.models.PhaseData`
attr_accessor :CorpId, :BatchId, :TaskId, :Phase, :PhaseName, :ChainStatus, :Type, :TraceId, :TraceItems, :Status, :PhaseData
def initialize(corpid=nil, batchid=nil, taskid=nil, phase=nil, phasename=nil, chainstatus=nil, type=nil, traceid=nil, traceitems=nil, status=nil, phasedata=nil)
@CorpId = corpid
@BatchId = batchid
@TaskId = taskid
@Phase = phase
@PhaseName = phasename
@ChainStatus = chainstatus
@Type = type
@TraceId = traceid
@TraceItems = traceitems
@Status = status
@PhaseData = phasedata
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
@TaskId = params['TaskId']
@Phase = params['Phase']
@PhaseName = params['PhaseName']
@ChainStatus = params['ChainStatus']
@Type = params['Type']
@TraceId = params['TraceId']
unless params['TraceItems'].nil?
@TraceItems = []
params['TraceItems'].each do |i|
traceitem_tmp = TraceItem.new
traceitem_tmp.deserialize(i)
@TraceItems << traceitem_tmp
end
end
@Status = params['Status']
unless params['PhaseData'].nil?
@PhaseData = PhaseData.new
@PhaseData.deserialize(params['PhaseData'])
end
end
end
# CreateTraceData返回参数结构体
class CreateTraceDataResponse < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceId, :RequestId
def initialize(traceid=nil, requestid=nil)
@TraceId = traceid
@RequestId = requestid
end
def deserialize(params)
@TraceId = params['TraceId']
@RequestId = params['RequestId']
end
end
# 码规则
class CustomRule < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# @type CustomId: String
# @param Name: 码规则名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param MerchantId: 商户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param CodeLength: 码ID长度
# @type CodeLength: Integer
# @param Status: 规则状态
# @type Status: Integer
# @param CodeParts: 码段配置
# @type CodeParts: Array
# @param CreateTime: 创建时间
# @type CreateTime: String
# @param UpdateTime: 更新时间
# @type UpdateTime: String
attr_accessor :CustomId, :Name, :CorpId, :MerchantId, :CodeLength, :Status, :CodeParts, :CreateTime, :UpdateTime
def initialize(customid=nil, name=nil, corpid=nil, merchantid=nil, codelength=nil, status=nil, codeparts=nil, createtime=nil, updatetime=nil)
@CustomId = customid
@Name = name
@CorpId = corpid
@MerchantId = merchantid
@CodeLength = codelength
@Status = status
@CodeParts = codeparts
@CreateTime = createtime
@UpdateTime = updatetime
end
def deserialize(params)
@CustomId = params['CustomId']
@Name = params['Name']
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@CodeLength = params['CodeLength']
@Status = params['Status']
unless params['CodeParts'].nil?
@CodeParts = []
params['CodeParts'].each do |i|
codepart_tmp = CodePart.new
codepart_tmp.deserialize(i)
@CodeParts << codepart_tmp
end
end
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
end
end
# DeleteCodeBatch请求参数结构体
class DeleteCodeBatchRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
attr_accessor :CorpId, :BatchId
def initialize(corpid=nil, batchid=nil)
@CorpId = corpid
@BatchId = batchid
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
end
end
# DeleteCodeBatch返回参数结构体
class DeleteCodeBatchResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :RequestId
def initialize(batchid=nil, requestid=nil)
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# DeleteMerchant请求参数结构体
class DeleteMerchantRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# @type MerchantId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :MerchantId, :CorpId
def initialize(merchantid=nil, corpid=nil)
@MerchantId = merchantid
@CorpId = corpid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@CorpId = params['CorpId']
end
end
# DeleteMerchant返回参数结构体
class DeleteMerchantResponse < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantId, :RequestId
def initialize(merchantid=nil, requestid=nil)
@MerchantId = merchantid
@RequestId = requestid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@RequestId = params['RequestId']
end
end
# DeleteProduct请求参数结构体
class DeleteProductRequest < TencentCloud::Common::AbstractModel
# @param ProductId: 商品ID
# @type ProductId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :ProductId, :CorpId
def initialize(productid=nil, corpid=nil)
@ProductId = productid
@CorpId = corpid
end
def deserialize(params)
@ProductId = params['ProductId']
@CorpId = params['CorpId']
end
end
# DeleteProduct返回参数结构体
class DeleteProductResponse < TencentCloud::Common::AbstractModel
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ProductId, :RequestId
def initialize(productid=nil, requestid=nil)
@ProductId = productid
@RequestId = requestid
end
def deserialize(params)
@ProductId = params['ProductId']
@RequestId = params['RequestId']
end
end
# DeleteTraceData请求参数结构体
class DeleteTraceDataRequest < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :TraceId, :CorpId
def initialize(traceid=nil, corpid=nil)
@TraceId = traceid
@CorpId = corpid
end
def deserialize(params)
@TraceId = params['TraceId']
@CorpId = params['CorpId']
end
end
# DeleteTraceData返回参数结构体
class DeleteTraceDataResponse < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TraceId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceId, :RequestId
def initialize(traceid=nil, requestid=nil)
@TraceId = traceid
@RequestId = requestid
end
def deserialize(params)
@TraceId = params['TraceId']
@RequestId = params['RequestId']
end
end
# DescribeAgentCorps请求参数结构体
class DescribeAgentCorpsRequest < TencentCloud::Common::AbstractModel
# @param PageSize: 每页数量
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param AgentId: 渠道ID
# @type AgentId: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :PageSize, :PageNumber, :AgentId, :CorpId
def initialize(pagesize=nil, pagenumber=nil, agentid=nil, corpid=nil)
@PageSize = pagesize
@PageNumber = pagenumber
@AgentId = agentid
@CorpId = corpid
end
def deserialize(params)
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@AgentId = params['AgentId']
@CorpId = params['CorpId']
end
end
# DescribeAgentCorps返回参数结构体
class DescribeAgentCorpsResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DescribeCodeBatchById请求参数结构体
class DescribeCodeBatchByIdRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
attr_accessor :CorpId, :BatchId
def initialize(corpid=nil, batchid=nil)
@CorpId = corpid
@BatchId = batchid
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
end
end
# DescribeCodeBatchById返回参数结构体
class DescribeCodeBatchByIdResponse < TencentCloud::Common::AbstractModel
# @param CodeBatch: 批次
# @type CodeBatch: :class:`Tencentcloud::Trp.v20210515.models.CodeBatch`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CodeBatch, :RequestId
def initialize(codebatch=nil, requestid=nil)
@CodeBatch = codebatch
@RequestId = requestid
end
def deserialize(params)
unless params['CodeBatch'].nil?
@CodeBatch = CodeBatch.new
@CodeBatch.deserialize(params['CodeBatch'])
end
@RequestId = params['RequestId']
end
end
# DescribeCodeBatches请求参数结构体
class DescribeCodeBatchesRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 查询商户ID
# @type MerchantId: String
# @param ProductId: 查询商品ID
# @type ProductId: String
# @param Keyword: 查询关键字
# @type Keyword: String
# @param PageSize: 条数
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param BatchType: 批次类型 0:溯源 1:营销
# @type BatchType: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Status: 批次状态 0: 未激活 1: 已激活 -1: 已冻结
# @type Status: Integer
attr_accessor :MerchantId, :ProductId, :Keyword, :PageSize, :PageNumber, :BatchType, :CorpId, :Status
def initialize(merchantid=nil, productid=nil, keyword=nil, pagesize=nil, pagenumber=nil, batchtype=nil, corpid=nil, status=nil)
@MerchantId = merchantid
@ProductId = productid
@Keyword = keyword
@PageSize = pagesize
@PageNumber = pagenumber
@BatchType = batchtype
@CorpId = corpid
@Status = status
end
def deserialize(params)
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@Keyword = params['Keyword']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@BatchType = params['BatchType']
@CorpId = params['CorpId']
@Status = params['Status']
end
end
# DescribeCodeBatches返回参数结构体
class DescribeCodeBatchesResponse < TencentCloud::Common::AbstractModel
# @param CodeBatches: 批次列表
# @type CodeBatches: Array
# @param TotalCount: 总条数
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CodeBatches, :TotalCount, :RequestId
def initialize(codebatches=nil, totalcount=nil, requestid=nil)
@CodeBatches = codebatches
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['CodeBatches'].nil?
@CodeBatches = []
params['CodeBatches'].each do |i|
codebatch_tmp = CodeBatch.new
codebatch_tmp.deserialize(i)
@CodeBatches << codebatch_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeCodeBatchs请求参数结构体
class DescribeCodeBatchsRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 查询商户ID
# @type MerchantId: String
# @param ProductId: 查询商品ID
# @type ProductId: String
# @param Keyword: 查询关键字
# @type Keyword: String
# @param PageSize: 条数
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param BatchType: 批次类型 0:溯源 1:营销
# @type BatchType: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Status: 批次状态
# @type Status: Integer
attr_accessor :MerchantId, :ProductId, :Keyword, :PageSize, :PageNumber, :BatchType, :CorpId, :Status
def initialize(merchantid=nil, productid=nil, keyword=nil, pagesize=nil, pagenumber=nil, batchtype=nil, corpid=nil, status=nil)
@MerchantId = merchantid
@ProductId = productid
@Keyword = keyword
@PageSize = pagesize
@PageNumber = pagenumber
@BatchType = batchtype
@CorpId = corpid
@Status = status
end
def deserialize(params)
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@Keyword = params['Keyword']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@BatchType = params['BatchType']
@CorpId = params['CorpId']
@Status = params['Status']
end
end
# DescribeCodeBatchs返回参数结构体
class DescribeCodeBatchsResponse < TencentCloud::Common::AbstractModel
# @param CodeBatchs: 批次列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeBatchs: Array
# @param TotalCount: 总条数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CodeBatchs, :TotalCount, :RequestId
def initialize(codebatchs=nil, totalcount=nil, requestid=nil)
@CodeBatchs = codebatchs
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['CodeBatchs'].nil?
@CodeBatchs = []
params['CodeBatchs'].each do |i|
codebatch_tmp = CodeBatch.new
codebatch_tmp.deserialize(i)
@CodeBatchs << codebatch_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeCodePackStatus请求参数结构体
class DescribeCodePackStatusRequest < TencentCloud::Common::AbstractModel
# @param PackId: 码包ID
# @type PackId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :PackId, :CorpId
def initialize(packid=nil, corpid=nil)
@PackId = packid
@CorpId = corpid
end
def deserialize(params)
@PackId = params['PackId']
@CorpId = params['CorpId']
end
end
# DescribeCodePackStatus返回参数结构体
class DescribeCodePackStatusResponse < TencentCloud::Common::AbstractModel
# @param Status: 码包状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Status, :RequestId
def initialize(status=nil, requestid=nil)
@Status = status
@RequestId = requestid
end
def deserialize(params)
@Status = params['Status']
@RequestId = params['RequestId']
end
end
# DescribeCodePackUrl请求参数结构体
class DescribeCodePackUrlRequest < TencentCloud::Common::AbstractModel
# @param PackId: 码包ID
# @type PackId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :PackId, :CorpId
def initialize(packid=nil, corpid=nil)
@PackId = packid
@CorpId = corpid
end
def deserialize(params)
@PackId = params['PackId']
@CorpId = params['CorpId']
end
end
# DescribeCodePackUrl返回参数结构体
class DescribeCodePackUrlResponse < TencentCloud::Common::AbstractModel
# @param Url: 文字码包地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param ImgUrl: 图片码包地址,可能为空
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ImgUrl: String
# @param FileKey: 文字码包Key,用于上传导入
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FileKey: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Url, :ImgUrl, :FileKey, :RequestId
def initialize(url=nil, imgurl=nil, filekey=nil, requestid=nil)
@Url = url
@ImgUrl = imgurl
@FileKey = filekey
@RequestId = requestid
end
def deserialize(params)
@Url = params['Url']
@ImgUrl = params['ImgUrl']
@FileKey = params['FileKey']
@RequestId = params['RequestId']
end
end
# DescribeCodePacks请求参数结构体
class DescribeCodePacksRequest < TencentCloud::Common::AbstractModel
# @param PageSize: 每页数量
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param Keyword: 查询关键字
# @type Keyword: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param SerialType: 是否有流水码 0:无 1:有
# @type SerialType: Integer
# @param ResType: 资源类型 batch:批次, order_in 入库, order_out: 出入
# @type ResType: String
# @param ResId: 资源ID ResType是 batch 时对应是批次ID, 是 order_in, order_out时,则是订单ID
# @type ResId: String
# @param SceneCode: 应用场景
# @type SceneCode: Integer
# @param Status: 码包状态
# @type Status: String
attr_accessor :PageSize, :PageNumber, :Keyword, :CorpId, :SerialType, :ResType, :ResId, :SceneCode, :Status
def initialize(pagesize=nil, pagenumber=nil, keyword=nil, corpid=nil, serialtype=nil, restype=nil, resid=nil, scenecode=nil, status=nil)
@PageSize = pagesize
@PageNumber = pagenumber
@Keyword = keyword
@CorpId = corpid
@SerialType = serialtype
@ResType = restype
@ResId = resid
@SceneCode = scenecode
@Status = status
end
def deserialize(params)
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@Keyword = params['Keyword']
@CorpId = params['CorpId']
@SerialType = params['SerialType']
@ResType = params['ResType']
@ResId = params['ResId']
@SceneCode = params['SceneCode']
@Status = params['Status']
end
end
# DescribeCodePacks返回参数结构体
class DescribeCodePacksResponse < TencentCloud::Common::AbstractModel
# @param CodePacks: 码列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodePacks: Array
# @param TotalCount: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CodePacks, :TotalCount, :RequestId
def initialize(codepacks=nil, totalcount=nil, requestid=nil)
@CodePacks = codepacks
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['CodePacks'].nil?
@CodePacks = []
params['CodePacks'].each do |i|
codepack_tmp = CodePack.new
codepack_tmp.deserialize(i)
@CodePacks << codepack_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeCodesByPack请求参数结构体
class DescribeCodesByPackRequest < TencentCloud::Common::AbstractModel
# @param PackId: 码包ID
# @type PackId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :PackId, :CorpId
def initialize(packid=nil, corpid=nil)
@PackId = packid
@CorpId = corpid
end
def deserialize(params)
@PackId = params['PackId']
@CorpId = params['CorpId']
end
end
# DescribeCodesByPack返回参数结构体
class DescribeCodesByPackResponse < TencentCloud::Common::AbstractModel
# @param Codes: 码列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Codes: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Codes, :RequestId
def initialize(codes=nil, requestid=nil)
@Codes = codes
@RequestId = requestid
end
def deserialize(params)
unless params['Codes'].nil?
@Codes = []
params['Codes'].each do |i|
codeitem_tmp = CodeItem.new
codeitem_tmp.deserialize(i)
@Codes << codeitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCorpQuotas请求参数结构体
class DescribeCorpQuotasRequest < TencentCloud::Common::AbstractModel
# @param AgentId: 渠道商ID,不要传
# @type AgentId: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param PageSize: 每页数量
# @type PageSize: Integer
# @param Keyword: 搜索企业ID
# @type Keyword: String
attr_accessor :AgentId, :PageNumber, :PageSize, :Keyword
def initialize(agentid=nil, pagenumber=nil, pagesize=nil, keyword=nil)
@AgentId = agentid
@PageNumber = pagenumber
@PageSize = pagesize
@Keyword = keyword
end
def deserialize(params)
@AgentId = params['AgentId']
@PageNumber = params['PageNumber']
@PageSize = params['PageSize']
@Keyword = params['Keyword']
end
end
# DescribeCorpQuotas返回参数结构体
class DescribeCorpQuotasResponse < TencentCloud::Common::AbstractModel
# @param CorpQuotas: 子企业额度使用情况
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpQuotas: Array
# @param Total: 记录总数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Total: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CorpQuotas, :Total, :RequestId
def initialize(corpquotas=nil, total=nil, requestid=nil)
@CorpQuotas = corpquotas
@Total = total
@RequestId = requestid
end
def deserialize(params)
unless params['CorpQuotas'].nil?
@CorpQuotas = []
params['CorpQuotas'].each do |i|
corpquota_tmp = CorpQuota.new
corpquota_tmp.deserialize(i)
@CorpQuotas << corpquota_tmp
end
end
@Total = params['Total']
@RequestId = params['RequestId']
end
end
# DescribeCustomRuleById请求参数结构体
class DescribeCustomRuleByIdRequest < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# @type CustomId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :CustomId, :CorpId
def initialize(customid=nil, corpid=nil)
@CustomId = customid
@CorpId = corpid
end
def deserialize(params)
@CustomId = params['CustomId']
@CorpId = params['CorpId']
end
end
# DescribeCustomRuleById返回参数结构体
class DescribeCustomRuleByIdResponse < TencentCloud::Common::AbstractModel
# @param CustomRule: 码规则信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomRule: :class:`Tencentcloud::Trp.v20210515.models.CustomRule`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CustomRule, :RequestId
def initialize(customrule=nil, requestid=nil)
@CustomRule = customrule
@RequestId = requestid
end
def deserialize(params)
unless params['CustomRule'].nil?
@CustomRule = CustomRule.new
@CustomRule.deserialize(params['CustomRule'])
end
@RequestId = params['RequestId']
end
end
# DescribeCustomRules请求参数结构体
class DescribeCustomRulesRequest < TencentCloud::Common::AbstractModel
# @param Keyword: 搜索关键字
# @type Keyword: String
# @param PageSize: 条数
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
# @type Status: Integer
# @param MerchantId: 商户ID
# @type MerchantId: String
attr_accessor :Keyword, :PageSize, :PageNumber, :CorpId, :Status, :MerchantId
def initialize(keyword=nil, pagesize=nil, pagenumber=nil, corpid=nil, status=nil, merchantid=nil)
@Keyword = keyword
@PageSize = pagesize
@PageNumber = pagenumber
@CorpId = corpid
@Status = status
@MerchantId = merchantid
end
def deserialize(params)
@Keyword = params['Keyword']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@CorpId = params['CorpId']
@Status = params['Status']
@MerchantId = params['MerchantId']
end
end
# DescribeCustomRules返回参数结构体
class DescribeCustomRulesResponse < TencentCloud::Common::AbstractModel
# @param CustomRules: 码规则列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomRules: Array
# @param TotalCount: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CustomRules, :TotalCount, :RequestId
def initialize(customrules=nil, totalcount=nil, requestid=nil)
@CustomRules = customrules
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['CustomRules'].nil?
@CustomRules = []
params['CustomRules'].each do |i|
customrule_tmp = CustomRule.new
customrule_tmp.deserialize(i)
@CustomRules << customrule_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeJobFileUrl请求参数结构体
class DescribeJobFileUrlRequest < TencentCloud::Common::AbstractModel
# @param JobId: 调度ID
# @type JobId: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :JobId, :CorpId
def initialize(jobid=nil, corpid=nil)
@JobId = jobid
@CorpId = corpid
end
def deserialize(params)
@JobId = params['JobId']
@CorpId = params['CorpId']
end
end
# DescribeJobFileUrl返回参数结构体
class DescribeJobFileUrlResponse < TencentCloud::Common::AbstractModel
# @param Url: 码包地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Url, :RequestId
def initialize(url=nil, requestid=nil)
@Url = url
@RequestId = requestid
end
def deserialize(params)
@Url = params['Url']
@RequestId = params['RequestId']
end
end
# DescribeMerchantById请求参数结构体
class DescribeMerchantByIdRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# @type MerchantId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :MerchantId, :CorpId
def initialize(merchantid=nil, corpid=nil)
@MerchantId = merchantid
@CorpId = corpid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@CorpId = params['CorpId']
end
end
# DescribeMerchantById返回参数结构体
class DescribeMerchantByIdResponse < TencentCloud::Common::AbstractModel
# @param Merchant: 商户信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Merchant: :class:`Tencentcloud::Trp.v20210515.models.Merchant`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Merchant, :RequestId
def initialize(merchant=nil, requestid=nil)
@Merchant = merchant
@RequestId = requestid
end
def deserialize(params)
unless params['Merchant'].nil?
@Merchant = Merchant.new
@Merchant.deserialize(params['Merchant'])
end
@RequestId = params['RequestId']
end
end
# DescribeMerchants请求参数结构体
class DescribeMerchantsRequest < TencentCloud::Common::AbstractModel
# @param Name: 搜索商户名称
# @type Name: String
# @param PageSize: 条数
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param CodeType: 码来源类型 0:自建, 1:第三方
# @type CodeType: Integer
attr_accessor :Name, :PageSize, :PageNumber, :CorpId, :CodeType
def initialize(name=nil, pagesize=nil, pagenumber=nil, corpid=nil, codetype=nil)
@Name = name
@PageSize = pagesize
@PageNumber = pagenumber
@CorpId = corpid
@CodeType = codetype
end
def deserialize(params)
@Name = params['Name']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@CorpId = params['CorpId']
@CodeType = params['CodeType']
end
end
# DescribeMerchants返回参数结构体
class DescribeMerchantsResponse < TencentCloud::Common::AbstractModel
# @param Merchants: 商户列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Merchants: Array
# @param TotalCount: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Merchants, :TotalCount, :RequestId
def initialize(merchants=nil, totalcount=nil, requestid=nil)
@Merchants = merchants
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['Merchants'].nil?
@Merchants = []
params['Merchants'].each do |i|
merchant_tmp = Merchant.new
merchant_tmp.deserialize(i)
@Merchants << merchant_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribePlanQRCodeScanRecords请求参数结构体
class DescribePlanQRCodeScanRecordsRequest < TencentCloud::Common::AbstractModel
# @param StartTime: 开始时间
# @type StartTime: String
# @param EndTime: 结束时间
# @type EndTime: String
# @param PageNo: 页码
# @type PageNo: Integer
# @param PageSize: 页大小
# @type PageSize: Integer
attr_accessor :StartTime, :EndTime, :PageNo, :PageSize
def initialize(starttime=nil, endtime=nil, pageno=nil, pagesize=nil)
@StartTime = starttime
@EndTime = endtime
@PageNo = pageno
@PageSize = pagesize
end
def deserialize(params)
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@PageNo = params['PageNo']
@PageSize = params['PageSize']
end
end
# DescribePlanQRCodeScanRecords返回参数结构体
class DescribePlanQRCodeScanRecordsResponse < TencentCloud::Common::AbstractModel
# @param Ret: 返回码
# @type Ret: Integer
# @param Total: 总数
# @type Total: Integer
# @param Data: 数据
# @type Data: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Ret, :Total, :Data, :RequestId
def initialize(ret=nil, total=nil, data=nil, requestid=nil)
@Ret = ret
@Total = total
@Data = data
@RequestId = requestid
end
def deserialize(params)
@Ret = params['Ret']
@Total = params['Total']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
planqrcoderecord_tmp = PlanQRCodeRecord.new
planqrcoderecord_tmp.deserialize(i)
@Data << planqrcoderecord_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribePlanQRCodes请求参数结构体
class DescribePlanQRCodesRequest < TencentCloud::Common::AbstractModel
# @param PlanId: 计划ID
# @type PlanId: Integer
# @param StartTime: 开始时间
# @type StartTime: String
# @param EndTime: 结束时间
# @type EndTime: String
# @param PageNo: 页码
# @type PageNo: Integer
# @param PageSize: 页大小
# @type PageSize: Integer
attr_accessor :PlanId, :StartTime, :EndTime, :PageNo, :PageSize
def initialize(planid=nil, starttime=nil, endtime=nil, pageno=nil, pagesize=nil)
@PlanId = planid
@StartTime = starttime
@EndTime = endtime
@PageNo = pageno
@PageSize = pagesize
end
def deserialize(params)
@PlanId = params['PlanId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@PageNo = params['PageNo']
@PageSize = params['PageSize']
end
end
# DescribePlanQRCodes返回参数结构体
class DescribePlanQRCodesResponse < TencentCloud::Common::AbstractModel
# @param Ret: 返回码
# @type Ret: Integer
# @param Total: 总数
# @type Total: Integer
# @param Data: 数据
# @type Data: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Ret, :Total, :Data, :RequestId
def initialize(ret=nil, total=nil, data=nil, requestid=nil)
@Ret = ret
@Total = total
@Data = data
@RequestId = requestid
end
def deserialize(params)
@Ret = params['Ret']
@Total = params['Total']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
planqrcode_tmp = PlanQRCode.new
planqrcode_tmp.deserialize(i)
@Data << planqrcode_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeProductById请求参数结构体
class DescribeProductByIdRequest < TencentCloud::Common::AbstractModel
# @param ProductId: 商品ID
# @type ProductId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :ProductId, :CorpId
def initialize(productid=nil, corpid=nil)
@ProductId = productid
@CorpId = corpid
end
def deserialize(params)
@ProductId = params['ProductId']
@CorpId = params['CorpId']
end
end
# DescribeProductById返回参数结构体
class DescribeProductByIdResponse < TencentCloud::Common::AbstractModel
# @param Product: 商品信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Product: :class:`Tencentcloud::Trp.v20210515.models.Product`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Product, :RequestId
def initialize(product=nil, requestid=nil)
@Product = product
@RequestId = requestid
end
def deserialize(params)
unless params['Product'].nil?
@Product = Product.new
@Product.deserialize(params['Product'])
end
@RequestId = params['RequestId']
end
end
# DescribeProducts请求参数结构体
class DescribeProductsRequest < TencentCloud::Common::AbstractModel
# @param Name: 商品名称
# @type Name: String
# @param PageSize: 条数
# @type PageSize: Integer
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param MerchantId: 商品ID
# @type MerchantId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param CertState: 认证状态
# @type CertState: Integer
attr_accessor :Name, :PageSize, :PageNumber, :MerchantId, :CorpId, :CertState
def initialize(name=nil, pagesize=nil, pagenumber=nil, merchantid=nil, corpid=nil, certstate=nil)
@Name = name
@PageSize = pagesize
@PageNumber = pagenumber
@MerchantId = merchantid
@CorpId = corpid
@CertState = certstate
end
def deserialize(params)
@Name = params['Name']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@MerchantId = params['MerchantId']
@CorpId = params['CorpId']
@CertState = params['CertState']
end
end
# DescribeProducts返回参数结构体
class DescribeProductsResponse < TencentCloud::Common::AbstractModel
# @param Products: 商品列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Products: Array
# @param TotalCount: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Products, :TotalCount, :RequestId
def initialize(products=nil, totalcount=nil, requestid=nil)
@Products = products
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['Products'].nil?
@Products = []
params['Products'].each do |i|
product_tmp = Product.new
product_tmp.deserialize(i)
@Products << product_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeRawScanLogs请求参数结构体
class DescribeRawScanLogsRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID, 默认为当前企业
# 如果有渠道权限,可以传 0 会查渠道下所有的企业
# @type CorpId: Integer
# @param PageSize: 分页数量,默认为 20,最大为 1000
# @type PageSize: Integer
# @param PageNumber: 当前分页,默认为 1
# @type PageNumber: Integer
# @param AfterLogId: 从哪个日志后查询
# 即: LogId > $AfterLogId
# @type AfterLogId: Integer
# @param StartTime: 开始时间 >= StartTime
# @type StartTime: String
# @param EndTime: 结束时间 < EndTime
# @type EndTime: String
attr_accessor :CorpId, :PageSize, :PageNumber, :AfterLogId, :StartTime, :EndTime
def initialize(corpid=nil, pagesize=nil, pagenumber=nil, afterlogid=nil, starttime=nil, endtime=nil)
@CorpId = corpid
@PageSize = pagesize
@PageNumber = pagenumber
@AfterLogId = afterlogid
@StartTime = starttime
@EndTime = endtime
end
def deserialize(params)
@CorpId = params['CorpId']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@AfterLogId = params['AfterLogId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
end
end
# DescribeRawScanLogs返回参数结构体
class DescribeRawScanLogsResponse < TencentCloud::Common::AbstractModel
# @param ScanLogs: 原始扫码日志
# @type ScanLogs: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ScanLogs, :RequestId
def initialize(scanlogs=nil, requestid=nil)
@ScanLogs = scanlogs
@RequestId = requestid
end
def deserialize(params)
unless params['ScanLogs'].nil?
@ScanLogs = []
params['ScanLogs'].each do |i|
rawscanlog_tmp = RawScanLog.new
rawscanlog_tmp.deserialize(i)
@ScanLogs << rawscanlog_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeScanLogs请求参数结构体
class DescribeScanLogsRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param PageSize: 分页数量
# @type PageSize: Integer
# @param PageNumber: 当前分页
# @type PageNumber: Integer
# @param Code: 安心码
# @type Code: String
# @param Openid: 小程序用户ID
# @type Openid: String
attr_accessor :CorpId, :PageSize, :PageNumber, :Code, :Openid
def initialize(corpid=nil, pagesize=nil, pagenumber=nil, code=nil, openid=nil)
@CorpId = corpid
@PageSize = pagesize
@PageNumber = pagenumber
@Code = code
@Openid = openid
end
def deserialize(params)
@CorpId = params['CorpId']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@Code = params['Code']
@Openid = params['Openid']
end
end
# DescribeScanLogs返回参数结构体
class DescribeScanLogsResponse < TencentCloud::Common::AbstractModel
# @param Products: 【弃用】
# @type Products: Array
# @param TotalCount: 条数
# @type TotalCount: Integer
# @param ScanLogs: 扫描记录
# @type ScanLogs: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
extend Gem::Deprecate
deprecate :Products, :none, 2024, 11
deprecate :Products=, :none, 2024, 11
def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
@Products = products
@TotalCount = totalcount
@ScanLogs = scanlogs
@RequestId = requestid
end
def deserialize(params)
unless params['Products'].nil?
@Products = []
params['Products'].each do |i|
scanlog_tmp = ScanLog.new
scanlog_tmp.deserialize(i)
@Products << scanlog_tmp
end
end
@TotalCount = params['TotalCount']
unless params['ScanLogs'].nil?
@ScanLogs = []
params['ScanLogs'].each do |i|
scanlog_tmp = ScanLog.new
scanlog_tmp.deserialize(i)
@ScanLogs << scanlog_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeScanStats请求参数结构体
class DescribeScanStatsRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param PageSize: 分页数量
# @type PageSize: Integer
# @param PageNumber: 当前分页
# @type PageNumber: Integer
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param ProductId: 产品ID
# @type ProductId: String
# @param BatchId: 批次ID
# @type BatchId: String
# @param Code: 安心码
# @type Code: String
attr_accessor :CorpId, :PageSize, :PageNumber, :MerchantId, :ProductId, :BatchId, :Code
def initialize(corpid=nil, pagesize=nil, pagenumber=nil, merchantid=nil, productid=nil, batchid=nil, code=nil)
@CorpId = corpid
@PageSize = pagesize
@PageNumber = pagenumber
@MerchantId = merchantid
@ProductId = productid
@BatchId = batchid
@Code = code
end
def deserialize(params)
@CorpId = params['CorpId']
@PageSize = params['PageSize']
@PageNumber = params['PageNumber']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@BatchId = params['BatchId']
@Code = params['Code']
end
end
# DescribeScanStats返回参数结构体
class DescribeScanStatsResponse < TencentCloud::Common::AbstractModel
# @param ScanStats: 统计记录
# @type ScanStats: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ScanStats, :RequestId
def initialize(scanstats=nil, requestid=nil)
@ScanStats = scanstats
@RequestId = requestid
end
def deserialize(params)
unless params['ScanStats'].nil?
@ScanStats = []
params['ScanStats'].each do |i|
scanstat_tmp = ScanStat.new
scanstat_tmp.deserialize(i)
@ScanStats << scanstat_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeTmpToken请求参数结构体
class DescribeTmpTokenRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :CorpId
def initialize(corpid=nil)
@CorpId = corpid
end
def deserialize(params)
@CorpId = params['CorpId']
end
end
# DescribeTmpToken返回参数结构体
class DescribeTmpTokenResponse < TencentCloud::Common::AbstractModel
# @param Token: 临时token
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Token: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Token, :RequestId
def initialize(token=nil, requestid=nil)
@Token = token
@RequestId = requestid
end
def deserialize(params)
@Token = params['Token']
@RequestId = params['RequestId']
end
end
# DescribeTraceCodeById请求参数结构体
class DescribeTraceCodeByIdRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Code: 二维码
# @type Code: String
attr_accessor :CorpId, :Code
def initialize(corpid=nil, code=nil)
@CorpId = corpid
@Code = code
end
def deserialize(params)
@CorpId = params['CorpId']
@Code = params['Code']
end
end
# DescribeTraceCodeById返回参数结构体
class DescribeTraceCodeByIdResponse < TencentCloud::Common::AbstractModel
# @param TraceCode: 无
# @type TraceCode: :class:`Tencentcloud::Trp.v20210515.models.TraceCode`
# @param CodePath: 码路径,如level是2,则为 [1级, 2级]
# @type CodePath: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceCode, :CodePath, :RequestId
def initialize(tracecode=nil, codepath=nil, requestid=nil)
@TraceCode = tracecode
@CodePath = codepath
@RequestId = requestid
end
def deserialize(params)
unless params['TraceCode'].nil?
@TraceCode = TraceCode.new
@TraceCode.deserialize(params['TraceCode'])
end
@CodePath = params['CodePath']
@RequestId = params['RequestId']
end
end
# DescribeTraceCodes请求参数结构体
class DescribeTraceCodesRequest < TencentCloud::Common::AbstractModel
# @param Keyword: 搜索关键字 码标识,或者批次ID
# @type Keyword: String
# @param PageNumber: 条数
# @type PageNumber: Integer
# @param PageSize: 页码
# @type PageSize: Integer
# @param BatchId: 批次ID,弃用
# @type BatchId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :Keyword, :PageNumber, :PageSize, :BatchId, :CorpId
def initialize(keyword=nil, pagenumber=nil, pagesize=nil, batchid=nil, corpid=nil)
@Keyword = keyword
@PageNumber = pagenumber
@PageSize = pagesize
@BatchId = batchid
@CorpId = corpid
end
def deserialize(params)
@Keyword = params['Keyword']
@PageNumber = params['PageNumber']
@PageSize = params['PageSize']
@BatchId = params['BatchId']
@CorpId = params['CorpId']
end
end
# DescribeTraceCodes返回参数结构体
class DescribeTraceCodesResponse < TencentCloud::Common::AbstractModel
# @param TraceCodes: 标识列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TraceCodes: Array
# @param TotalCount: 条数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceCodes, :TotalCount, :RequestId
def initialize(tracecodes=nil, totalcount=nil, requestid=nil)
@TraceCodes = tracecodes
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['TraceCodes'].nil?
@TraceCodes = []
params['TraceCodes'].each do |i|
tracecode_tmp = TraceCode.new
tracecode_tmp.deserialize(i)
@TraceCodes << tracecode_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeTraceDataById请求参数结构体
class DescribeTraceDataByIdRequest < TencentCloud::Common::AbstractModel
# @param Id: 溯源ID
# @type Id: String
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :Id, :CorpId
def initialize(id=nil, corpid=nil)
@Id = id
@CorpId = corpid
end
def deserialize(params)
@Id = params['Id']
@CorpId = params['CorpId']
end
end
# DescribeTraceDataById返回参数结构体
class DescribeTraceDataByIdResponse < TencentCloud::Common::AbstractModel
# @param TraceData: 无
# @type TraceData: :class:`Tencentcloud::Trp.v20210515.models.TraceData`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceData, :RequestId
def initialize(tracedata=nil, requestid=nil)
@TraceData = tracedata
@RequestId = requestid
end
def deserialize(params)
unless params['TraceData'].nil?
@TraceData = TraceData.new
@TraceData.deserialize(params['TraceData'])
end
@RequestId = params['RequestId']
end
end
# DescribeTraceDataList请求参数结构体
class DescribeTraceDataListRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
# @param TaskId: 任务ID 用于外部溯源
# @type TaskId: String
# @param PageNumber: 页数
# @type PageNumber: Integer
# @param Code: 溯源码
# @type Code: String
# @param Phase: 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
# @type Phase: Integer
# @param PageSize: 数量
# @type PageSize: Integer
attr_accessor :CorpId, :BatchId, :TaskId, :PageNumber, :Code, :Phase, :PageSize
def initialize(corpid=nil, batchid=nil, taskid=nil, pagenumber=nil, code=nil, phase=nil, pagesize=nil)
@CorpId = corpid
@BatchId = batchid
@TaskId = taskid
@PageNumber = pagenumber
@Code = code
@Phase = phase
@PageSize = pagesize
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
@TaskId = params['TaskId']
@PageNumber = params['PageNumber']
@Code = params['Code']
@Phase = params['Phase']
@PageSize = params['PageSize']
end
end
# DescribeTraceDataList返回参数结构体
class DescribeTraceDataListResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 溯源阶段数量
# @type TotalCount: Integer
# @param TraceDataList: 溯源明细
# @type TraceDataList: Array
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :TraceDataList, :RequestId
def initialize(totalcount=nil, tracedatalist=nil, requestid=nil)
@TotalCount = totalcount
@TraceDataList = tracedatalist
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['TraceDataList'].nil?
@TraceDataList = []
params['TraceDataList'].each do |i|
tracedata_tmp = TraceData.new
tracedata_tmp.deserialize(i)
@TraceDataList << tracedata_tmp
end
end
@RequestId = params['RequestId']
end
end
# EffectFeedback请求参数结构体
class EffectFeedbackRequest < TencentCloud::Common::AbstractModel
# @param BusinessSecurityData: 业务加密入参。
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
attr_accessor :BusinessSecurityData
def initialize(businesssecuritydata=nil)
@BusinessSecurityData = businesssecuritydata
end
def deserialize(params)
unless params['BusinessSecurityData'].nil?
@BusinessSecurityData = InputEncryptData.new
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
end
end
end
# EffectFeedback返回参数结构体
class EffectFeedbackResponse < TencentCloud::Common::AbstractModel
# @param Data: 业务出参。
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Data, :RequestId
def initialize(data=nil, requestid=nil)
@Data = data
@RequestId = requestid
end
def deserialize(params)
unless params['Data'].nil?
@Data = OutputAuthorizedTransfer.new
@Data.deserialize(params['Data'])
end
@RequestId = params['RequestId']
end
end
# 预留字段
class Ext < TencentCloud::Common::AbstractModel
# @param Value: 字符串
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Value: String
attr_accessor :Value
extend Gem::Deprecate
deprecate :Value, :none, 2024, 11
deprecate :Value=, :none, 2024, 11
def initialize(value=nil)
@Value = value
end
def deserialize(params)
@Value = params['Value']
end
end
# 业务加密入参
class InputEncryptData < TencentCloud::Common::AbstractModel
# @param EncryptMethod: 加密方式,0:AES加密;
# @type EncryptMethod: Integer
# @param EncryptMode: 加密算法中的块处理模式,1:CBC模式; 目前只支持CBC模式
# @type EncryptMode: Integer
# @param PaddingType: 填充模式,0:ZeroPadding;1:PKCS5Padding;2:
# PKCS7Padding。
# @type PaddingType: Integer
# @param EncryptData: 加密数据,将AuthorizedData结构体数组(数组最大长度不超过20)序列化成JSON字符串,对得到的字符串加密并填充到该字段。
# @type EncryptData: String
# @param IsAuthorized: 用户是否授权,本接口取值:1,已授权。
# @type IsAuthorized: Integer
attr_accessor :EncryptMethod, :EncryptMode, :PaddingType, :EncryptData, :IsAuthorized
def initialize(encryptmethod=nil, encryptmode=nil, paddingtype=nil, encryptdata=nil, isauthorized=nil)
@EncryptMethod = encryptmethod
@EncryptMode = encryptmode
@PaddingType = paddingtype
@EncryptData = encryptdata
@IsAuthorized = isauthorized
end
def deserialize(params)
@EncryptMethod = params['EncryptMethod']
@EncryptMode = params['EncryptMode']
@PaddingType = params['PaddingType']
@EncryptData = params['EncryptData']
@IsAuthorized = params['IsAuthorized']
end
end
# 通用调度任务
class Job < TencentCloud::Common::AbstractModel
# @param JobId: 调度ID
# @type JobId: Integer
# @param Status: 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
# @type Status: String
# @param ErrorMessage: 任务错误信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrorMessage: String
attr_accessor :JobId, :Status, :ErrorMessage
def initialize(jobid=nil, status=nil, errormessage=nil)
@JobId = jobid
@Status = status
@ErrorMessage = errormessage
end
def deserialize(params)
@JobId = params['JobId']
@Status = params['Status']
@ErrorMessage = params['ErrorMessage']
end
end
# 商户信息
class Merchant < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# @type MerchantId: String
# @param CorpId: 企业id
# @type CorpId: Integer
# @param Name: 商户名称
# @type Name: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param CreateTime: 创建时间
# @type CreateTime: String
# @param UpdateTime: 更新时间
# @type UpdateTime: String
# @param CodeRule: 商户码规则
# @type CodeRule: String
# @param CodeType: 码来源类型 0: 安心平台 1: 第三方码
# @type CodeType: Integer
# @param CodeUrl: 第三方码域名前缀
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeUrl: String
attr_accessor :MerchantId, :CorpId, :Name, :Remark, :CreateTime, :UpdateTime, :CodeRule, :CodeType, :CodeUrl
def initialize(merchantid=nil, corpid=nil, name=nil, remark=nil, createtime=nil, updatetime=nil, coderule=nil, codetype=nil, codeurl=nil)
@MerchantId = merchantid
@CorpId = corpid
@Name = name
@Remark = remark
@CreateTime = createtime
@UpdateTime = updatetime
@CodeRule = coderule
@CodeType = codetype
@CodeUrl = codeurl
end
def deserialize(params)
@MerchantId = params['MerchantId']
@CorpId = params['CorpId']
@Name = params['Name']
@Remark = params['Remark']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@CodeRule = params['CodeRule']
@CodeType = params['CodeType']
@CodeUrl = params['CodeUrl']
end
end
# ModifyCodeBatch请求参数结构体
class ModifyCodeBatchRequest < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Status: 状态 0: 未激活 1: 已激活 -1: 已冻结
# @type Status: Integer
# @param MpTpl: 模板ID,或者活动ID
# @type MpTpl: String
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param ProductId: 商品ID
# @type ProductId: String
# @param Remark: 备注
# @type Remark: String
# @param BatchCode: 批次编码,业务字段不判断唯一性
# @type BatchCode: String
# @param ValidDate: 有效期
# @type ValidDate: String
# @param ProductionDate: 生产日期
# @type ProductionDate: String
attr_accessor :BatchId, :CorpId, :Status, :MpTpl, :MerchantId, :ProductId, :Remark, :BatchCode, :ValidDate, :ProductionDate
def initialize(batchid=nil, corpid=nil, status=nil, mptpl=nil, merchantid=nil, productid=nil, remark=nil, batchcode=nil, validdate=nil, productiondate=nil)
@BatchId = batchid
@CorpId = corpid
@Status = status
@MpTpl = mptpl
@MerchantId = merchantid
@ProductId = productid
@Remark = remark
@BatchCode = batchcode
@ValidDate = validdate
@ProductionDate = productiondate
end
def deserialize(params)
@BatchId = params['BatchId']
@CorpId = params['CorpId']
@Status = params['Status']
@MpTpl = params['MpTpl']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@Remark = params['Remark']
@BatchCode = params['BatchCode']
@ValidDate = params['ValidDate']
@ProductionDate = params['ProductionDate']
end
end
# ModifyCodeBatch返回参数结构体
class ModifyCodeBatchResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :RequestId
def initialize(batchid=nil, requestid=nil)
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# ModifyCustomRule请求参数结构体
class ModifyCustomRuleRequest < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# @type CustomId: String
# @param Name: 规则名称
# @type Name: String
# @param CodeLength: 码长度
# @type CodeLength: Integer
# @param CodeParts: 码段配置
# @type CodeParts: Array
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :CustomId, :Name, :CodeLength, :CodeParts, :CorpId
def initialize(customid=nil, name=nil, codelength=nil, codeparts=nil, corpid=nil)
@CustomId = customid
@Name = name
@CodeLength = codelength
@CodeParts = codeparts
@CorpId = corpid
end
def deserialize(params)
@CustomId = params['CustomId']
@Name = params['Name']
@CodeLength = params['CodeLength']
unless params['CodeParts'].nil?
@CodeParts = []
params['CodeParts'].each do |i|
codepart_tmp = CodePart.new
codepart_tmp.deserialize(i)
@CodeParts << codepart_tmp
end
end
@CorpId = params['CorpId']
end
end
# ModifyCustomRule返回参数结构体
class ModifyCustomRuleResponse < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CustomId, :RequestId
def initialize(customid=nil, requestid=nil)
@CustomId = customid
@RequestId = requestid
end
def deserialize(params)
@CustomId = params['CustomId']
@RequestId = params['RequestId']
end
end
# ModifyCustomRuleStatus请求参数结构体
class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# @type CustomId: String
# @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
# @type Status: Integer
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :CustomId, :Status, :CorpId
def initialize(customid=nil, status=nil, corpid=nil)
@CustomId = customid
@Status = status
@CorpId = corpid
end
def deserialize(params)
@CustomId = params['CustomId']
@Status = params['Status']
@CorpId = params['CorpId']
end
end
# ModifyCustomRuleStatus返回参数结构体
class ModifyCustomRuleStatusResponse < TencentCloud::Common::AbstractModel
# @param CustomId: 码规则ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CustomId, :RequestId
def initialize(customid=nil, requestid=nil)
@CustomId = customid
@RequestId = requestid
end
def deserialize(params)
@CustomId = params['CustomId']
@RequestId = params['RequestId']
end
end
# ModifyMerchant请求参数结构体
class ModifyMerchantRequest < TencentCloud::Common::AbstractModel
# @param Name: 商户名称
# @type Name: String
# @param MerchantId: 商户标识码
# @type MerchantId: String
# @param Remark: 备注
# @type Remark: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param CodeType: 码包来源 0:自建, 1:第三方码包,暂不支持修改
# @type CodeType: Integer
# @param CodeUrl: 码包前缀地址 第三方码包时必填
# @type CodeUrl: String
attr_accessor :Name, :MerchantId, :Remark, :CorpId, :CodeType, :CodeUrl
def initialize(name=nil, merchantid=nil, remark=nil, corpid=nil, codetype=nil, codeurl=nil)
@Name = name
@MerchantId = merchantid
@Remark = remark
@CorpId = corpid
@CodeType = codetype
@CodeUrl = codeurl
end
def deserialize(params)
@Name = params['Name']
@MerchantId = params['MerchantId']
@Remark = params['Remark']
@CorpId = params['CorpId']
@CodeType = params['CodeType']
@CodeUrl = params['CodeUrl']
end
end
# ModifyMerchant返回参数结构体
class ModifyMerchantResponse < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantId, :RequestId
def initialize(merchantid=nil, requestid=nil)
@MerchantId = merchantid
@RequestId = requestid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@RequestId = params['RequestId']
end
end
# ModifyProduct请求参数结构体
class ModifyProductRequest < TencentCloud::Common::AbstractModel
# @param Name: 商品名称
# @type Name: String
# @param ProductId: 商品ID
# @type ProductId: String
# @param Remark: 备注
# @type Remark: String
# @param Specification: 商品规格
# @type Specification: String
# @param Logo: 商品图片
# @type Logo: Array
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Ext: 预留字段
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
attr_accessor :Name, :ProductId, :Remark, :Specification, :Logo, :CorpId, :Ext
def initialize(name=nil, productid=nil, remark=nil, specification=nil, logo=nil, corpid=nil, ext=nil)
@Name = name
@ProductId = productid
@Remark = remark
@Specification = specification
@Logo = logo
@CorpId = corpid
@Ext = ext
end
def deserialize(params)
@Name = params['Name']
@ProductId = params['ProductId']
@Remark = params['Remark']
@Specification = params['Specification']
@Logo = params['Logo']
@CorpId = params['CorpId']
unless params['Ext'].nil?
@Ext = Ext.new
@Ext.deserialize(params['Ext'])
end
end
end
# ModifyProduct返回参数结构体
class ModifyProductResponse < TencentCloud::Common::AbstractModel
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ProductId, :RequestId
def initialize(productid=nil, requestid=nil)
@ProductId = productid
@RequestId = requestid
end
def deserialize(params)
@ProductId = params['ProductId']
@RequestId = params['RequestId']
end
end
# ModifyTraceCode请求参数结构体
class ModifyTraceCodeRequest < TencentCloud::Common::AbstractModel
# @param Code: 二维码
# @type Code: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Status: 状态 0: 冻结 1: 激活
# @type Status: Integer
attr_accessor :Code, :CorpId, :Status
def initialize(code=nil, corpid=nil, status=nil)
@Code = code
@CorpId = corpid
@Status = status
end
def deserialize(params)
@Code = params['Code']
@CorpId = params['CorpId']
@Status = params['Status']
end
end
# ModifyTraceCode返回参数结构体
class ModifyTraceCodeResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# ModifyTraceCodeUnlink请求参数结构体
class ModifyTraceCodeUnlinkRequest < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# @type BatchId: String
# @param Codes: 溯源码列表
# @type Codes: Array
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :BatchId, :Codes, :CorpId
def initialize(batchid=nil, codes=nil, corpid=nil)
@BatchId = batchid
@Codes = codes
@CorpId = corpid
end
def deserialize(params)
@BatchId = params['BatchId']
@Codes = params['Codes']
@CorpId = params['CorpId']
end
end
# ModifyTraceCodeUnlink返回参数结构体
class ModifyTraceCodeUnlinkResponse < TencentCloud::Common::AbstractModel
# @param UnlinkCnt: 成功解绑溯源码的数量
# @type UnlinkCnt: Integer
# @param CodeCnt: 当前批次的码数量
# @type CodeCnt: Integer
# @param BatchId: 批次ID
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :UnlinkCnt, :CodeCnt, :BatchId, :RequestId
def initialize(unlinkcnt=nil, codecnt=nil, batchid=nil, requestid=nil)
@UnlinkCnt = unlinkcnt
@CodeCnt = codecnt
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@UnlinkCnt = params['UnlinkCnt']
@CodeCnt = params['CodeCnt']
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# ModifyTraceDataRanks请求参数结构体
class ModifyTraceDataRanksRequest < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param BatchId: 批次ID
# @type BatchId: String
# @param TaskId: 生产任务ID
# @type TaskId: String
# @param TraceIds: 溯源ID
# @type TraceIds: Array
attr_accessor :CorpId, :BatchId, :TaskId, :TraceIds
def initialize(corpid=nil, batchid=nil, taskid=nil, traceids=nil)
@CorpId = corpid
@BatchId = batchid
@TaskId = taskid
@TraceIds = traceids
end
def deserialize(params)
@CorpId = params['CorpId']
@BatchId = params['BatchId']
@TaskId = params['TaskId']
@TraceIds = params['TraceIds']
end
end
# ModifyTraceDataRanks返回参数结构体
class ModifyTraceDataRanksResponse < TencentCloud::Common::AbstractModel
# @param BatchId: 批次ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BatchId, :RequestId
def initialize(batchid=nil, requestid=nil)
@BatchId = batchid
@RequestId = requestid
end
def deserialize(params)
@BatchId = params['BatchId']
@RequestId = params['RequestId']
end
end
# ModifyTraceData请求参数结构体
class ModifyTraceDataRequest < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param BatchId: 批次ID
# @type BatchId: String
# @param TaskId: 生产溯源任务ID
# @type TaskId: String
# @param TraceItems: 溯源信息
# @type TraceItems: Array
# @param PhaseName: 溯源阶段名称
# @type PhaseName: String
# @param PhaseData: 环节数据
# @type PhaseData: :class:`Tencentcloud::Trp.v20210515.models.PhaseData`
# @param Status: 溯源状态 0: 无效, 1: 有效
# @type Status: Integer
# @param Rank: 排序
# @type Rank: Integer
# @param Type: [无效] 类型
# @type Type: Integer
# @param Code: [无效] 溯源码
# @type Code: String
# @param Phase: [无效] 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
# @type Phase: Integer
# @param TraceTime: [无效] 溯源时间
# @type TraceTime: String
# @param CreateTime: [无效] 创建时间
# @type CreateTime: String
# @param ChainStatus: [无效] 上链状态
# @type ChainStatus: Integer
# @param ChainTime: [无效] 上链时间
# @type ChainTime: String
# @param ChainData: [无效] 上链数据
# @type ChainData: :class:`Tencentcloud::Trp.v20210515.models.ChainData`
# @param CorpId: 企业ID
# @type CorpId: Integer
attr_accessor :TraceId, :BatchId, :TaskId, :TraceItems, :PhaseName, :PhaseData, :Status, :Rank, :Type, :Code, :Phase, :TraceTime, :CreateTime, :ChainStatus, :ChainTime, :ChainData, :CorpId
def initialize(traceid=nil, batchid=nil, taskid=nil, traceitems=nil, phasename=nil, phasedata=nil, status=nil, rank=nil, type=nil, code=nil, phase=nil, tracetime=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil, corpid=nil)
@TraceId = traceid
@BatchId = batchid
@TaskId = taskid
@TraceItems = traceitems
@PhaseName = phasename
@PhaseData = phasedata
@Status = status
@Rank = rank
@Type = type
@Code = code
@Phase = phase
@TraceTime = tracetime
@CreateTime = createtime
@ChainStatus = chainstatus
@ChainTime = chaintime
@ChainData = chaindata
@CorpId = corpid
end
def deserialize(params)
@TraceId = params['TraceId']
@BatchId = params['BatchId']
@TaskId = params['TaskId']
unless params['TraceItems'].nil?
@TraceItems = []
params['TraceItems'].each do |i|
traceitem_tmp = TraceItem.new
traceitem_tmp.deserialize(i)
@TraceItems << traceitem_tmp
end
end
@PhaseName = params['PhaseName']
unless params['PhaseData'].nil?
@PhaseData = PhaseData.new
@PhaseData.deserialize(params['PhaseData'])
end
@Status = params['Status']
@Rank = params['Rank']
@Type = params['Type']
@Code = params['Code']
@Phase = params['Phase']
@TraceTime = params['TraceTime']
@CreateTime = params['CreateTime']
@ChainStatus = params['ChainStatus']
@ChainTime = params['ChainTime']
unless params['ChainData'].nil?
@ChainData = ChainData.new
@ChainData.deserialize(params['ChainData'])
end
@CorpId = params['CorpId']
end
end
# ModifyTraceData返回参数结构体
class ModifyTraceDataResponse < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TraceId, :RequestId
def initialize(traceid=nil, requestid=nil)
@TraceId = traceid
@RequestId = requestid
end
def deserialize(params)
@TraceId = params['TraceId']
@RequestId = params['RequestId']
end
end
# 业务出参
class OutputAuthorizedTransfer < TencentCloud::Common::AbstractModel
# @param Code: 推送状态,0表示成功。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Code: Integer
# @param Message: 错误码。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Message: String
# @param Value: 错误信息描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Value: String
attr_accessor :Code, :Message, :Value
def initialize(code=nil, message=nil, value=nil)
@Code = code
@Message = message
@Value = value
end
def deserialize(params)
@Code = params['Code']
@Message = params['Message']
@Value = params['Value']
end
end
# 层级码配置
class PackSpec < TencentCloud::Common::AbstractModel
# @param Level: 层级
# @type Level: Integer
# @param Rate: 比例
# @type Rate: Integer
# @param Amount: 数量
# @type Amount: Integer
# @param CustomId: 码规则ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomId: String
# @param CodeParts: 码段配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CodeParts: Array
# @param Unit: 包装单位
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Unit: String
# @param SceneCode: 场景值
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SceneCode: Integer
attr_accessor :Level, :Rate, :Amount, :CustomId, :CodeParts, :Unit, :SceneCode
def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil, unit=nil, scenecode=nil)
@Level = level
@Rate = rate
@Amount = amount
@CustomId = customid
@CodeParts = codeparts
@Unit = unit
@SceneCode = scenecode
end
def deserialize(params)
@Level = params['Level']
@Rate = params['Rate']
@Amount = params['Amount']
@CustomId = params['CustomId']
unless params['CodeParts'].nil?
@CodeParts = []
params['CodeParts'].each do |i|
codepart_tmp = CodePart.new
codepart_tmp.deserialize(i)
@CodeParts << codepart_tmp
end
end
@Unit = params['Unit']
@SceneCode = params['SceneCode']
end
end
# 环节数据
class PhaseData < TencentCloud::Common::AbstractModel
# @param HeadEnabled: 启用头
# 注意:此字段可能返回 null,表示取不到有效值。
# @type HeadEnabled: Boolean
# @param HeadTitle: 标题
# 注意:此字段可能返回 null,表示取不到有效值。
# @type HeadTitle: String
# @param Key: 标识符
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Key: String
# @param AppId: 小程序AppId
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppId: String
# @param AppPath: 小程序AppPath
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppPath: String
# @param AppName: 小程序名称AppName
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppName: String
attr_accessor :HeadEnabled, :HeadTitle, :Key, :AppId, :AppPath, :AppName
def initialize(headenabled=nil, headtitle=nil, key=nil, appid=nil, apppath=nil, appname=nil)
@HeadEnabled = headenabled
@HeadTitle = headtitle
@Key = key
@AppId = appid
@AppPath = apppath
@AppName = appname
end
def deserialize(params)
@HeadEnabled = params['HeadEnabled']
@HeadTitle = params['HeadTitle']
@Key = params['Key']
@AppId = params['AppId']
@AppPath = params['AppPath']
@AppName = params['AppName']
end
end
# 安心计划二维码
class PlanQRCode < TencentCloud::Common::AbstractModel
# @param Url: 二维码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param Status: 状态,0:未激活 1:已激活 2:已冻结
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: Integer
attr_accessor :Url, :Status
def initialize(url=nil, status=nil)
@Url = url
@Status = status
end
def deserialize(params)
@Url = params['Url']
@Status = params['Status']
end
end
# 安心计划二维码扫码记录
class PlanQRCodeRecord < TencentCloud::Common::AbstractModel
# @param Url: 二维码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param OpenId: OpenID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenId: String
# @param ScanTime: 扫码时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ScanTime: String
# @param Ip: IP 地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ip: String
# @param Country: 国家
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Country: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
attr_accessor :Url, :OpenId, :ScanTime, :Ip, :Country, :Province, :City
def initialize(url=nil, openid=nil, scantime=nil, ip=nil, country=nil, province=nil, city=nil)
@Url = url
@OpenId = openid
@ScanTime = scantime
@Ip = ip
@Country = country
@Province = province
@City = city
end
def deserialize(params)
@Url = params['Url']
@OpenId = params['OpenId']
@ScanTime = params['ScanTime']
@Ip = params['Ip']
@Country = params['Country']
@Province = params['Province']
@City = params['City']
end
end
# 商品信息
class Product < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户标识码
# @type MerchantId: String
# @param Name: 商品名称
# @type Name: String
# @param ProductId: 商品id
# @type ProductId: String
# @param CorpId: 企业id
# @type CorpId: Integer
# @param ProductCode: 商品编号
# @type ProductCode: String
# @param Specification: 商品规格
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Specification: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param Logo: 商品图片
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Logo: Array
# @param CreateTime: 创建时间
# @type CreateTime: String
# @param UpdateTime: 修改时间
# @type UpdateTime: String
# @param Ext: 预留字段
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ext: :class:`Tencentcloud::Trp.v20210515.models.Ext`
# @param MerchantName: 商户名称
# @type MerchantName: String
# @param CertState: 认证状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CertState: Integer
attr_accessor :MerchantId, :Name, :ProductId, :CorpId, :ProductCode, :Specification, :Remark, :Logo, :CreateTime, :UpdateTime, :Ext, :MerchantName, :CertState
def initialize(merchantid=nil, name=nil, productid=nil, corpid=nil, productcode=nil, specification=nil, remark=nil, logo=nil, createtime=nil, updatetime=nil, ext=nil, merchantname=nil, certstate=nil)
@MerchantId = merchantid
@Name = name
@ProductId = productid
@CorpId = corpid
@ProductCode = productcode
@Specification = specification
@Remark = remark
@Logo = logo
@CreateTime = createtime
@UpdateTime = updatetime
@Ext = ext
@MerchantName = merchantname
@CertState = certstate
end
def deserialize(params)
@MerchantId = params['MerchantId']
@Name = params['Name']
@ProductId = params['ProductId']
@CorpId = params['CorpId']
@ProductCode = params['ProductCode']
@Specification = params['Specification']
@Remark = params['Remark']
@Logo = params['Logo']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
unless params['Ext'].nil?
@Ext = Ext.new
@Ext.deserialize(params['Ext'])
end
@MerchantName = params['MerchantName']
@CertState = params['CertState']
end
end
# 企业配额信息
class Quota < TencentCloud::Common::AbstractModel
# @param StartTime: 服务开始时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartTime: String
# @param EndTime: 服务结束时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndTime: String
# @param QuotaId: 配额ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type QuotaId: Integer
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param Services: 开通服务
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Services: Array
# @param FactoryQuota: 商户配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FactoryQuota: Integer
# @param ItemQuota: 商品配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ItemQuota: Integer
# @param TrackQuota: 溯源码配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TrackQuota: Integer
# @param SaleQuota: 销售码配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SaleQuota: Integer
# @param ChainQuota: 上链配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChainQuota: Integer
# @param RiskQuota: 风控配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RiskQuota: Integer
# @param AigcTextQuota: AI文字数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AigcTextQuota: Integer
# @param AigcImageQuota: AI图片数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AigcImageQuota: Integer
# @param TrackType: 溯源类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TrackType: Integer
# @param Version: 开通版本 lite:轻量版, basic:基础版, standard:标准版
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Version: String
# @param ProductCertify: 是否开启企业认证
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductCertify: Integer
attr_accessor :StartTime, :EndTime, :QuotaId, :CorpId, :Services, :FactoryQuota, :ItemQuota, :TrackQuota, :SaleQuota, :ChainQuota, :RiskQuota, :AigcTextQuota, :AigcImageQuota, :TrackType, :Version, :ProductCertify
def initialize(starttime=nil, endtime=nil, quotaid=nil, corpid=nil, services=nil, factoryquota=nil, itemquota=nil, trackquota=nil, salequota=nil, chainquota=nil, riskquota=nil, aigctextquota=nil, aigcimagequota=nil, tracktype=nil, version=nil, productcertify=nil)
@StartTime = starttime
@EndTime = endtime
@QuotaId = quotaid
@CorpId = corpid
@Services = services
@FactoryQuota = factoryquota
@ItemQuota = itemquota
@TrackQuota = trackquota
@SaleQuota = salequota
@ChainQuota = chainquota
@RiskQuota = riskquota
@AigcTextQuota = aigctextquota
@AigcImageQuota = aigcimagequota
@TrackType = tracktype
@Version = version
@ProductCertify = productcertify
end
def deserialize(params)
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@QuotaId = params['QuotaId']
@CorpId = params['CorpId']
@Services = params['Services']
@FactoryQuota = params['FactoryQuota']
@ItemQuota = params['ItemQuota']
@TrackQuota = params['TrackQuota']
@SaleQuota = params['SaleQuota']
@ChainQuota = params['ChainQuota']
@RiskQuota = params['RiskQuota']
@AigcTextQuota = params['AigcTextQuota']
@AigcImageQuota = params['AigcImageQuota']
@TrackType = params['TrackType']
@Version = params['Version']
@ProductCertify = params['ProductCertify']
end
end
# 原始扫码日志
class RawScanLog < TencentCloud::Common::AbstractModel
# @param LogId: 日志ID
# @type LogId: Integer
# @param Openid: 微信小程序openid
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Openid: String
# @param CreateTime: 扫码时间
# @type CreateTime: String
# @param Code: 溯源码
# @type Code: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param MerchantId: 商户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param BatchId: 批次ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param City: 地市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param District: 区/县
# 注意:此字段可能返回 null,表示取不到有效值。
# @type District: String
attr_accessor :LogId, :Openid, :CreateTime, :Code, :CorpId, :MerchantId, :ProductId, :BatchId, :Province, :City, :District
def initialize(logid=nil, openid=nil, createtime=nil, code=nil, corpid=nil, merchantid=nil, productid=nil, batchid=nil, province=nil, city=nil, district=nil)
@LogId = logid
@Openid = openid
@CreateTime = createtime
@Code = code
@CorpId = corpid
@MerchantId = merchantid
@ProductId = productid
@BatchId = batchid
@Province = province
@City = city
@District = district
end
def deserialize(params)
@LogId = params['LogId']
@Openid = params['Openid']
@CreateTime = params['CreateTime']
@Code = params['Code']
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@BatchId = params['BatchId']
@Province = params['Province']
@City = params['City']
@District = params['District']
end
end
# ReportBatchCallbackStatus请求参数结构体
class ReportBatchCallbackStatusRequest < TencentCloud::Common::AbstractModel
# @param BusinessSecurityData: 业务加密入参。
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
attr_accessor :BusinessSecurityData
def initialize(businesssecuritydata=nil)
@BusinessSecurityData = businesssecuritydata
end
def deserialize(params)
unless params['BusinessSecurityData'].nil?
@BusinessSecurityData = InputEncryptData.new
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
end
end
end
# ReportBatchCallbackStatus返回参数结构体
class ReportBatchCallbackStatusResponse < TencentCloud::Common::AbstractModel
# @param Data: 业务出参。
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Data, :RequestId
def initialize(data=nil, requestid=nil)
@Data = data
@RequestId = requestid
end
def deserialize(params)
unless params['Data'].nil?
@Data = OutputAuthorizedTransfer.new
@Data.deserialize(params['Data'])
end
@RequestId = params['RequestId']
end
end
# 扫码明细
class ScanLog < TencentCloud::Common::AbstractModel
# @param LogId: 行ID
# @type LogId: Integer
# @param Openid: 微信openid
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Openid: String
# @param Nickname: 微信昵称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Nickname: String
# @param CreateTime: 创建时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param Code: 码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Code: String
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param MerchantId: 商户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantId: String
# @param ProductId: 商品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
# @param Ip: ip地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ip: String
# @param Country: 国家
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Country: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param District: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type District: String
# @param Unionid: 微信 unionid
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Unionid: String
# @param First: 首次扫码 0:否, 1:是
# 注意:此字段可能返回 null,表示取不到有效值。
# @type First: Integer
# @param BatchId: 批次ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param Type: 扫码类型 0:无效扫码 1: 小程序扫码 2: 商家扫码
# @type Type: Integer
# @param MerchantName: 商户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param ProductName: 产品名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductName: String
# @param ProductLogo: 产品Logo
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductLogo: String
# @param Status: 风险状态
# 0: 未知, 1:通过, 2:失败/风险, 3:存疑
# @type Status: Integer
# @param Verify: 是否开启验证
# 0:否, 1:是
# @type Verify: Integer
attr_accessor :LogId, :Openid, :Nickname, :CreateTime, :Code, :CorpId, :MerchantId, :ProductId, :Ip, :Country, :Province, :City, :District, :Unionid, :First, :BatchId, :Type, :MerchantName, :ProductName, :ProductLogo, :Status, :Verify
def initialize(logid=nil, openid=nil, nickname=nil, createtime=nil, code=nil, corpid=nil, merchantid=nil, productid=nil, ip=nil, country=nil, province=nil, city=nil, district=nil, unionid=nil, first=nil, batchid=nil, type=nil, merchantname=nil, productname=nil, productlogo=nil, status=nil, verify=nil)
@LogId = logid
@Openid = openid
@Nickname = nickname
@CreateTime = createtime
@Code = code
@CorpId = corpid
@MerchantId = merchantid
@ProductId = productid
@Ip = ip
@Country = country
@Province = province
@City = city
@District = district
@Unionid = unionid
@First = first
@BatchId = batchid
@Type = type
@MerchantName = merchantname
@ProductName = productname
@ProductLogo = productlogo
@Status = status
@Verify = verify
end
def deserialize(params)
@LogId = params['LogId']
@Openid = params['Openid']
@Nickname = params['Nickname']
@CreateTime = params['CreateTime']
@Code = params['Code']
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@Ip = params['Ip']
@Country = params['Country']
@Province = params['Province']
@City = params['City']
@District = params['District']
@Unionid = params['Unionid']
@First = params['First']
@BatchId = params['BatchId']
@Type = params['Type']
@MerchantName = params['MerchantName']
@ProductName = params['ProductName']
@ProductLogo = params['ProductLogo']
@Status = params['Status']
@Verify = params['Verify']
end
end
# 扫码统计
class ScanStat < TencentCloud::Common::AbstractModel
# @param Code: 安心码
# @type Code: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param MerchantId: 商户ID
# @type MerchantId: String
# @param ProductId: 产品ID
# @type ProductId: String
# @param BatchId: 批次ID
# @type BatchId: String
# @param Pv: 扫码次数
# @type Pv: Integer
# @param Uv: 扫码人数
# @type Uv: Integer
# @param CreateTime: 创建时间
# @type CreateTime: String
# @param UpdateTime: 更新时间
# @type UpdateTime: String
# @param MerchantName: 商户名称
# @type MerchantName: String
# @param ProductName: 产品名称
# @type ProductName: String
attr_accessor :Code, :CorpId, :MerchantId, :ProductId, :BatchId, :Pv, :Uv, :CreateTime, :UpdateTime, :MerchantName, :ProductName
def initialize(code=nil, corpid=nil, merchantid=nil, productid=nil, batchid=nil, pv=nil, uv=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil)
@Code = code
@CorpId = corpid
@MerchantId = merchantid
@ProductId = productid
@BatchId = batchid
@Pv = pv
@Uv = uv
@CreateTime = createtime
@UpdateTime = updatetime
@MerchantName = merchantname
@ProductName = productname
end
def deserialize(params)
@Code = params['Code']
@CorpId = params['CorpId']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@BatchId = params['BatchId']
@Pv = params['Pv']
@Uv = params['Uv']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@MerchantName = params['MerchantName']
@ProductName = params['ProductName']
end
end
# 溯源码
class TraceCode < TencentCloud::Common::AbstractModel
# @param Code: 二维码
# @type Code: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param PackId: 码包ID
# @type PackId: String
# @param BatchId: 批次ID
# @type BatchId: String
# @param MerchantId: 所属商户ID
# @type MerchantId: String
# @param ProductId: 产品ID
# @type ProductId: String
# @param Status: 码状态 0: 冻结 1: 激活
# @type Status: Integer
# @param CreateTime: 创建时间
# @type CreateTime: String
# @param UpdateTime: 修改时间
# @type UpdateTime: String
# @param MerchantName: 商户名称
# @type MerchantName: String
# @param ProductName: 产品名称
# @type ProductName: String
# @param AgentId: 渠道商ID
# @type AgentId: Integer
# @param Level: 码层级 0: 最小级, 1: 一级, 2: 二级
# @type Level: Integer
# @param PackSpec: 码层级详情
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PackSpec: Array
# @param SceneCode: 场景码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SceneCode: Integer
# @param SerialCode: 流水码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SerialCode: Integer
attr_accessor :Code, :CorpId, :PackId, :BatchId, :MerchantId, :ProductId, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName, :AgentId, :Level, :PackSpec, :SceneCode, :SerialCode
def initialize(code=nil, corpid=nil, packid=nil, batchid=nil, merchantid=nil, productid=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, agentid=nil, level=nil, packspec=nil, scenecode=nil, serialcode=nil)
@Code = code
@CorpId = corpid
@PackId = packid
@BatchId = batchid
@MerchantId = merchantid
@ProductId = productid
@Status = status
@CreateTime = createtime
@UpdateTime = updatetime
@MerchantName = merchantname
@ProductName = productname
@AgentId = agentid
@Level = level
@PackSpec = packspec
@SceneCode = scenecode
@SerialCode = serialcode
end
def deserialize(params)
@Code = params['Code']
@CorpId = params['CorpId']
@PackId = params['PackId']
@BatchId = params['BatchId']
@MerchantId = params['MerchantId']
@ProductId = params['ProductId']
@Status = params['Status']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@MerchantName = params['MerchantName']
@ProductName = params['ProductName']
@AgentId = params['AgentId']
@Level = params['Level']
unless params['PackSpec'].nil?
@PackSpec = []
params['PackSpec'].each do |i|
packspec_tmp = PackSpec.new
packspec_tmp.deserialize(i)
@PackSpec << packspec_tmp
end
end
@SceneCode = params['SceneCode']
@SerialCode = params['SerialCode']
end
end
# 溯源数据
class TraceData < TencentCloud::Common::AbstractModel
# @param TraceId: 溯源ID
# @type TraceId: String
# @param CorpId: 企业ID
# @type CorpId: Integer
# @param Type: 码类型 0: 批次, 1: 码, 2: 生产任务
# @type Type: Integer
# @param Code: 码值,跟码类型一一对应
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Code: String
# @param Rank: 排序,在Phase相同情况下,值越小排名靠前
# @type Rank: Integer
# @param Phase: 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
# @type Phase: Integer
# @param PhaseName: 溯源环节名称
# @type PhaseName: String
# @param TraceTime: 溯源时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TraceTime: String
# @param CreateTime: 创建时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param ChainStatus: 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChainStatus: Integer
# @param ChainTime: 上链时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChainTime: String
# @param ChainData: 上链数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChainData: :class:`Tencentcloud::Trp.v20210515.models.ChainData`
# @param PhaseData: 溯源阶段配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PhaseData: :class:`Tencentcloud::Trp.v20210515.models.PhaseData`
# @param Status: 溯源阶段状态 0: 无效, 1: 有效
# @type Status: Integer
# @param TraceItems: 无
# @type TraceItems: Array
attr_accessor :TraceId, :CorpId, :Type, :Code, :Rank, :Phase, :PhaseName, :TraceTime, :CreateTime, :ChainStatus, :ChainTime, :ChainData, :PhaseData, :Status, :TraceItems
def initialize(traceid=nil, corpid=nil, type=nil, code=nil, rank=nil, phase=nil, phasename=nil, tracetime=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil, phasedata=nil, status=nil, traceitems=nil)
@TraceId = traceid
@CorpId = corpid
@Type = type
@Code = code
@Rank = rank
@Phase = phase
@PhaseName = phasename
@TraceTime = tracetime
@CreateTime = createtime
@ChainStatus = chainstatus
@ChainTime = chaintime
@ChainData = chaindata
@PhaseData = phasedata
@Status = status
@TraceItems = traceitems
end
def deserialize(params)
@TraceId = params['TraceId']
@CorpId = params['CorpId']
@Type = params['Type']
@Code = params['Code']
@Rank = params['Rank']
@Phase = params['Phase']
@PhaseName = params['PhaseName']
@TraceTime = params['TraceTime']
@CreateTime = params['CreateTime']
@ChainStatus = params['ChainStatus']
@ChainTime = params['ChainTime']
unless params['ChainData'].nil?
@ChainData = ChainData.new
@ChainData.deserialize(params['ChainData'])
end
unless params['PhaseData'].nil?
@PhaseData = PhaseData.new
@PhaseData.deserialize(params['PhaseData'])
end
@Status = params['Status']
unless params['TraceItems'].nil?
@TraceItems = []
params['TraceItems'].each do |i|
traceitem_tmp = TraceItem.new
traceitem_tmp.deserialize(i)
@TraceItems << traceitem_tmp
end
end
end
end
# 溯源数据项 Type 的枚举值
# text:文本类型, longtext:长文本类型, banner:单图片类型, image:多图片类型, video:视频类型, mp:小程序类型
# 具体组合如下
# - Type: "text" 文本类型, 对应值 Value: "文本字符串"
# - Type: "longtext" 长文本类型, 对应值 Value: "长文本字符串, 支持换行\n"
# - Type: "banner" 单图片类型, 对应图片地址 Value: "https://sample.cdn.com/xxx.jpg"
# - Type: "image" 多图片类型, 对应图片地址 Values: ["https://sample.cdn.com/1.jpg", "https://sample.cdn.com/2.jpg"]
# - Type: "video" 视频类型, 对应视频地址 Value: "https://sample.cdn.com/xxx.mp4"
# - Type: "mp" 小程序类型, 对应配置 Values: ["WXAPPID", "WXAPP_PATH", "跳转说明"]
class TraceItem < TencentCloud::Common::AbstractModel
# @param Name: 字段名称
# @type Name: String
# @param Value: 字段值
# @type Value: String
# @param Type: 字段类型
# text:文本类型,
# longtext:长文本类型, banner:单图片类型, image:多图片类型,
# video:视频类型,
# mp:小程序类型
# @type Type: String
# @param Values: 多个值
# @type Values: Array
# @param ReadOnly: 只读
# @type ReadOnly: Boolean
# @param Hidden: 扫码展示
# @type Hidden: Boolean
# @param Key: 类型标识
# @type Key: String
# @param Ext: 扩展字段
# @type Ext: String
# @param Attrs: 额外属性
# @type Attrs: Array
# @param List: 子页面,只读
# @type List: Array
attr_accessor :Name, :Value, :Type, :Values, :ReadOnly, :Hidden, :Key, :Ext, :Attrs, :List
def initialize(name=nil, value=nil, type=nil, values=nil, readonly=nil, hidden=nil, key=nil, ext=nil, attrs=nil, list=nil)
@Name = name
@Value = value
@Type = type
@Values = values
@ReadOnly = readonly
@Hidden = hidden
@Key = key
@Ext = ext
@Attrs = attrs
@List = list
end
def deserialize(params)
@Name = params['Name']
@Value = params['Value']
@Type = params['Type']
@Values = params['Values']
@ReadOnly = params['ReadOnly']
@Hidden = params['Hidden']
@Key = params['Key']
@Ext = params['Ext']
unless params['Attrs'].nil?
@Attrs = []
params['Attrs'].each do |i|
traceitem_tmp = TraceItem.new
traceitem_tmp.deserialize(i)
@Attrs << traceitem_tmp
end
end
unless params['List'].nil?
@List = []
params['List'].each do |i|
tracedata_tmp = TraceData.new
tracedata_tmp.deserialize(i)
@List << tracedata_tmp
end
end
end
end
# 付费信息使用量
class UsageQuota < TencentCloud::Common::AbstractModel
# @param CorpId: 企业ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CorpId: Integer
# @param FactoryCnt: 商户配额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FactoryCnt: Integer
# @param ItemCnt: 商品数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ItemCnt: Integer
# @param TrackCnt: 溯源码量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TrackCnt: Integer
# @param SaleCnt: 营销码额度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SaleCnt: Integer
# @param ChainCnt: 区块链上链次数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChainCnt: Integer
# @param RiskCnt: 风险检测次数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RiskCnt: Integer
# @param UpdateTime: 时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
attr_accessor :CorpId, :FactoryCnt, :ItemCnt, :TrackCnt, :SaleCnt, :ChainCnt, :RiskCnt, :UpdateTime
extend Gem::Deprecate
deprecate :RiskCnt, :none, 2024, 11
deprecate :RiskCnt=, :none, 2024, 11
def initialize(corpid=nil, factorycnt=nil, itemcnt=nil, trackcnt=nil, salecnt=nil, chaincnt=nil, riskcnt=nil, updatetime=nil)
@CorpId = corpid
@FactoryCnt = factorycnt
@ItemCnt = itemcnt
@TrackCnt = trackcnt
@SaleCnt = salecnt
@ChainCnt = chaincnt
@RiskCnt = riskcnt
@UpdateTime = updatetime
end
def deserialize(params)
@CorpId = params['CorpId']
@FactoryCnt = params['FactoryCnt']
@ItemCnt = params['ItemCnt']
@TrackCnt = params['TrackCnt']
@SaleCnt = params['SaleCnt']
@ChainCnt = params['ChainCnt']
@RiskCnt = params['RiskCnt']
@UpdateTime = params['UpdateTime']
end
end
end
end
end