Class TrpClient
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractClient
-
- com.tencentcloudapi.trp.v20210515.TrpClient
-
public class TrpClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
-
-
Constructor Summary
Constructors Constructor Description TrpClient(Credential credential, String region)TrpClient(Credential credential, String region, ClientProfile profile)
-
Method Summary
-
Methods inherited from class com.tencentcloudapi.common.AbstractClient
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
-
-
-
-
Constructor Detail
-
TrpClient
public TrpClient(Credential credential, String region)
-
TrpClient
public TrpClient(Credential credential, String region, ClientProfile profile)
-
-
Method Detail
-
AuthorizedTransfer
public AuthorizedTransferResponse AuthorizedTransfer(AuthorizedTransferRequest req) throws TencentCloudSDKException
接收客户侧的用户已授权的号码。- Parameters:
req- AuthorizedTransferRequest- Returns:
- AuthorizedTransferResponse
- Throws:
TencentCloudSDKException
-
CreateCodeBatch
public CreateCodeBatchResponse CreateCodeBatch(CreateCodeBatchRequest req) throws TencentCloudSDKException
新增批次- Parameters:
req- CreateCodeBatchRequest- Returns:
- CreateCodeBatchResponse
- Throws:
TencentCloudSDKException
-
CreateCodePack
public CreateCodePackResponse CreateCodePack(CreateCodePackRequest req) throws TencentCloudSDKException
生成普通码包- Parameters:
req- CreateCodePackRequest- Returns:
- CreateCodePackResponse
- Throws:
TencentCloudSDKException
-
CreateCorporationOrder
public CreateCorporationOrderResponse CreateCorporationOrder(CreateCorporationOrderRequest req) throws TencentCloudSDKException
以订单方式新建企业信息/配额信息- Parameters:
req- CreateCorporationOrderRequest- Returns:
- CreateCorporationOrderResponse
- Throws:
TencentCloudSDKException
-
CreateCustomPack
public CreateCustomPackResponse CreateCustomPack(CreateCustomPackRequest req) throws TencentCloudSDKException
生成自定义码包- Parameters:
req- CreateCustomPackRequest- Returns:
- CreateCustomPackResponse
- Throws:
TencentCloudSDKException
-
CreateCustomRule
public CreateCustomRuleResponse CreateCustomRule(CreateCustomRuleRequest req) throws TencentCloudSDKException
新建自定义码规则- Parameters:
req- CreateCustomRuleRequest- Returns:
- CreateCustomRuleResponse
- Throws:
TencentCloudSDKException
-
CreateMerchant
public CreateMerchantResponse CreateMerchant(CreateMerchantRequest req) throws TencentCloudSDKException
新建商户- Parameters:
req- CreateMerchantRequest- Returns:
- CreateMerchantResponse
- Throws:
TencentCloudSDKException
-
CreateProduct
public CreateProductResponse CreateProduct(CreateProductRequest req) throws TencentCloudSDKException
新建商品- Parameters:
req- CreateProductRequest- Returns:
- CreateProductResponse
- Throws:
TencentCloudSDKException
-
CreateTraceChain
public CreateTraceChainResponse CreateTraceChain(CreateTraceChainRequest req) throws TencentCloudSDKException
上链溯源信息- Parameters:
req- CreateTraceChainRequest- Returns:
- CreateTraceChainResponse
- Throws:
TencentCloudSDKException
-
CreateTraceCodes
public CreateTraceCodesResponse CreateTraceCodes(CreateTraceCodesRequest req) throws TencentCloudSDKException
批量绑定指定批次并激活二维码,只支持平台发的码,且只会激活没有使用过的码- Parameters:
req- CreateTraceCodesRequest- Returns:
- CreateTraceCodesResponse
- Throws:
TencentCloudSDKException
-
CreateTraceCodesAsync
public CreateTraceCodesAsyncResponse CreateTraceCodesAsync(CreateTraceCodesAsyncRequest req) throws TencentCloudSDKException
异步导入激活码包,如果是第三方码包,需要域名跟配置的匹配- Parameters:
req- CreateTraceCodesAsyncRequest- Returns:
- CreateTraceCodesAsyncResponse
- Throws:
TencentCloudSDKException
-
CreateTraceData
public CreateTraceDataResponse CreateTraceData(CreateTraceDataRequest req) throws TencentCloudSDKException
新增溯源信息- Parameters:
req- CreateTraceDataRequest- Returns:
- CreateTraceDataResponse
- Throws:
TencentCloudSDKException
-
DeleteCodeBatch
public DeleteCodeBatchResponse DeleteCodeBatch(DeleteCodeBatchRequest req) throws TencentCloudSDKException
删除批次- Parameters:
req- DeleteCodeBatchRequest- Returns:
- DeleteCodeBatchResponse
- Throws:
TencentCloudSDKException
-
DeleteMerchant
public DeleteMerchantResponse DeleteMerchant(DeleteMerchantRequest req) throws TencentCloudSDKException
删除商户- Parameters:
req- DeleteMerchantRequest- Returns:
- DeleteMerchantResponse
- Throws:
TencentCloudSDKException
-
DeleteProduct
public DeleteProductResponse DeleteProduct(DeleteProductRequest req) throws TencentCloudSDKException
删除商品,如果商品被使用,则不可删除- Parameters:
req- DeleteProductRequest- Returns:
- DeleteProductResponse
- Throws:
TencentCloudSDKException
-
DeleteTraceData
public DeleteTraceDataResponse DeleteTraceData(DeleteTraceDataRequest req) throws TencentCloudSDKException
删除溯源信息,如果已经上链则不可删除- Parameters:
req- DeleteTraceDataRequest- Returns:
- DeleteTraceDataResponse
- Throws:
TencentCloudSDKException
-
DescribeAgentCorps
public DescribeAgentCorpsResponse DescribeAgentCorps(DescribeAgentCorpsRequest req) throws TencentCloudSDKException
查询渠道企业列表- Parameters:
req- DescribeAgentCorpsRequest- Returns:
- DescribeAgentCorpsResponse
- Throws:
TencentCloudSDKException
-
DescribeCodeBatchById
public DescribeCodeBatchByIdResponse DescribeCodeBatchById(DescribeCodeBatchByIdRequest req) throws TencentCloudSDKException
查询批次信息- Parameters:
req- DescribeCodeBatchByIdRequest- Returns:
- DescribeCodeBatchByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeCodeBatchs
public DescribeCodeBatchsResponse DescribeCodeBatchs(DescribeCodeBatchsRequest req) throws TencentCloudSDKException
查询批次列表- Parameters:
req- DescribeCodeBatchsRequest- Returns:
- DescribeCodeBatchsResponse
- Throws:
TencentCloudSDKException
-
DescribeCodePackStatus
public DescribeCodePackStatusResponse DescribeCodePackStatus(DescribeCodePackStatusRequest req) throws TencentCloudSDKException
查询码包状态- Parameters:
req- DescribeCodePackStatusRequest- Returns:
- DescribeCodePackStatusResponse
- Throws:
TencentCloudSDKException
-
DescribeCodePackUrl
public DescribeCodePackUrlResponse DescribeCodePackUrl(DescribeCodePackUrlRequest req) throws TencentCloudSDKException
查询码包地址- Parameters:
req- DescribeCodePackUrlRequest- Returns:
- DescribeCodePackUrlResponse
- Throws:
TencentCloudSDKException
-
DescribeCodePacks
public DescribeCodePacksResponse DescribeCodePacks(DescribeCodePacksRequest req) throws TencentCloudSDKException
查询码包列表- Parameters:
req- DescribeCodePacksRequest- Returns:
- DescribeCodePacksResponse
- Throws:
TencentCloudSDKException
-
DescribeCodesByPack
public DescribeCodesByPackResponse DescribeCodesByPack(DescribeCodesByPackRequest req) throws TencentCloudSDKException
查询码包的二维码列表,上限 3 万- Parameters:
req- DescribeCodesByPackRequest- Returns:
- DescribeCodesByPackResponse
- Throws:
TencentCloudSDKException
-
DescribeCorpQuotas
public DescribeCorpQuotasResponse DescribeCorpQuotas(DescribeCorpQuotasRequest req) throws TencentCloudSDKException
查询渠道商下属企业额度使用情况- Parameters:
req- DescribeCorpQuotasRequest- Returns:
- DescribeCorpQuotasResponse
- Throws:
TencentCloudSDKException
-
DescribeCustomRuleById
public DescribeCustomRuleByIdResponse DescribeCustomRuleById(DescribeCustomRuleByIdRequest req) throws TencentCloudSDKException
查自定义码规则- Parameters:
req- DescribeCustomRuleByIdRequest- Returns:
- DescribeCustomRuleByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeCustomRules
public DescribeCustomRulesResponse DescribeCustomRules(DescribeCustomRulesRequest req) throws TencentCloudSDKException
查自定义码规则列表- Parameters:
req- DescribeCustomRulesRequest- Returns:
- DescribeCustomRulesResponse
- Throws:
TencentCloudSDKException
-
DescribeJobFileUrl
public DescribeJobFileUrlResponse DescribeJobFileUrl(DescribeJobFileUrlRequest req) throws TencentCloudSDKException
获取异步任务的输出地址- Parameters:
req- DescribeJobFileUrlRequest- Returns:
- DescribeJobFileUrlResponse
- Throws:
TencentCloudSDKException
-
DescribeMerchantById
public DescribeMerchantByIdResponse DescribeMerchantById(DescribeMerchantByIdRequest req) throws TencentCloudSDKException
查询商户信息- Parameters:
req- DescribeMerchantByIdRequest- Returns:
- DescribeMerchantByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeMerchants
public DescribeMerchantsResponse DescribeMerchants(DescribeMerchantsRequest req) throws TencentCloudSDKException
查询商户列表- Parameters:
req- DescribeMerchantsRequest- Returns:
- DescribeMerchantsResponse
- Throws:
TencentCloudSDKException
-
DescribeProductById
public DescribeProductByIdResponse DescribeProductById(DescribeProductByIdRequest req) throws TencentCloudSDKException
查询商品信息- Parameters:
req- DescribeProductByIdRequest- Returns:
- DescribeProductByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeProducts
public DescribeProductsResponse DescribeProducts(DescribeProductsRequest req) throws TencentCloudSDKException
查询商品列表- Parameters:
req- DescribeProductsRequest- Returns:
- DescribeProductsResponse
- Throws:
TencentCloudSDKException
-
DescribeRawScanLogs
public DescribeRawScanLogsResponse DescribeRawScanLogs(DescribeRawScanLogsRequest req) throws TencentCloudSDKException
支持增量查询扫码日志,通常提供给数据同步使用,调用时需要指定从哪一行开始查询数据- Parameters:
req- DescribeRawScanLogsRequest- Returns:
- DescribeRawScanLogsResponse
- Throws:
TencentCloudSDKException
-
DescribeScanLogs
public DescribeScanLogsResponse DescribeScanLogs(DescribeScanLogsRequest req) throws TencentCloudSDKException
查询扫码日志明细- Parameters:
req- DescribeScanLogsRequest- Returns:
- DescribeScanLogsResponse
- Throws:
TencentCloudSDKException
-
DescribeScanStats
public DescribeScanStatsResponse DescribeScanStats(DescribeScanStatsRequest req) throws TencentCloudSDKException
查询扫码的统计信息列表,支持按照商户ID,产品ID,批次ID,安心码筛选,筛选条件至少有一个 没有被扫过的不会返回- Parameters:
req- DescribeScanStatsRequest- Returns:
- DescribeScanStatsResponse
- Throws:
TencentCloudSDKException
-
DescribeTmpToken
public DescribeTmpTokenResponse DescribeTmpToken(DescribeTmpTokenRequest req) throws TencentCloudSDKException
查询临时Token,主要用于上传接口- Parameters:
req- DescribeTmpTokenRequest- Returns:
- DescribeTmpTokenResponse
- Throws:
TencentCloudSDKException
-
DescribeTraceCodeById
public DescribeTraceCodeByIdResponse DescribeTraceCodeById(DescribeTraceCodeByIdRequest req) throws TencentCloudSDKException
查询二维码信息- Parameters:
req- DescribeTraceCodeByIdRequest- Returns:
- DescribeTraceCodeByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeTraceCodes
public DescribeTraceCodesResponse DescribeTraceCodes(DescribeTraceCodesRequest req) throws TencentCloudSDKException
查询二维码列表- Parameters:
req- DescribeTraceCodesRequest- Returns:
- DescribeTraceCodesResponse
- Throws:
TencentCloudSDKException
-
DescribeTraceDataById
public DescribeTraceDataByIdResponse DescribeTraceDataById(DescribeTraceDataByIdRequest req) throws TencentCloudSDKException
查询溯源ID查溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的- Parameters:
req- DescribeTraceDataByIdRequest- Returns:
- DescribeTraceDataByIdResponse
- Throws:
TencentCloudSDKException
-
DescribeTraceDataList
public DescribeTraceDataListResponse DescribeTraceDataList(DescribeTraceDataListRequest req) throws TencentCloudSDKException
查询溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的- Parameters:
req- DescribeTraceDataListRequest- Returns:
- DescribeTraceDataListResponse
- Throws:
TencentCloudSDKException
-
EffectFeedback
public EffectFeedbackResponse EffectFeedback(EffectFeedbackRequest req) throws TencentCloudSDKException
接收客户反馈的各环节数据- Parameters:
req- EffectFeedbackRequest- Returns:
- EffectFeedbackResponse
- Throws:
TencentCloudSDKException
-
ModifyCodeBatch
public ModifyCodeBatchResponse ModifyCodeBatch(ModifyCodeBatchRequest req) throws TencentCloudSDKException
修改批次- Parameters:
req- ModifyCodeBatchRequest- Returns:
- ModifyCodeBatchResponse
- Throws:
TencentCloudSDKException
-
ModifyCustomRule
public ModifyCustomRuleResponse ModifyCustomRule(ModifyCustomRuleRequest req) throws TencentCloudSDKException
修改自定义码规则- Parameters:
req- ModifyCustomRuleRequest- Returns:
- ModifyCustomRuleResponse
- Throws:
TencentCloudSDKException
-
ModifyCustomRuleStatus
public ModifyCustomRuleStatusResponse ModifyCustomRuleStatus(ModifyCustomRuleStatusRequest req) throws TencentCloudSDKException
更新自定义码规则状态- Parameters:
req- ModifyCustomRuleStatusRequest- Returns:
- ModifyCustomRuleStatusResponse
- Throws:
TencentCloudSDKException
-
ModifyMerchant
public ModifyMerchantResponse ModifyMerchant(ModifyMerchantRequest req) throws TencentCloudSDKException
编辑商户- Parameters:
req- ModifyMerchantRequest- Returns:
- ModifyMerchantResponse
- Throws:
TencentCloudSDKException
-
ModifyProduct
public ModifyProductResponse ModifyProduct(ModifyProductRequest req) throws TencentCloudSDKException
编辑商品- Parameters:
req- ModifyProductRequest- Returns:
- ModifyProductResponse
- Throws:
TencentCloudSDKException
-
ModifyTraceCode
public ModifyTraceCodeResponse ModifyTraceCode(ModifyTraceCodeRequest req) throws TencentCloudSDKException
冻结或者激活二维码,所属的批次的冻结状态优先级大于单个二维码的状态,即如果批次是冻结的,那么该批次下二维码的状态都是冻结的- Parameters:
req- ModifyTraceCodeRequest- Returns:
- ModifyTraceCodeResponse
- Throws:
TencentCloudSDKException
-
ModifyTraceCodeUnlink
public ModifyTraceCodeUnlinkResponse ModifyTraceCodeUnlink(ModifyTraceCodeUnlinkRequest req) throws TencentCloudSDKException
解绑溯源码和批次的关系,让溯源码重置为未关联的状态,以便关联其他批次 注意:溯源码必须属于指定的批次才会解绑- Parameters:
req- ModifyTraceCodeUnlinkRequest- Returns:
- ModifyTraceCodeUnlinkResponse
- Throws:
TencentCloudSDKException
-
ModifyTraceData
public ModifyTraceDataResponse ModifyTraceData(ModifyTraceDataRequest req) throws TencentCloudSDKException
修改溯源信息- Parameters:
req- ModifyTraceDataRequest- Returns:
- ModifyTraceDataResponse
- Throws:
TencentCloudSDKException
-
ModifyTraceDataRanks
public ModifyTraceDataRanksResponse ModifyTraceDataRanks(ModifyTraceDataRanksRequest req) throws TencentCloudSDKException
修改溯源信息的排序- Parameters:
req- ModifyTraceDataRanksRequest- Returns:
- ModifyTraceDataRanksResponse
- Throws:
TencentCloudSDKException
-
ReportBatchCallbackStatus
public ReportBatchCallbackStatusResponse ReportBatchCallbackStatus(ReportBatchCallbackStatusRequest req) throws TencentCloudSDKException
接收离线筛选包回执,用于效果统计和分析。- Parameters:
req- ReportBatchCallbackStatusRequest- Returns:
- ReportBatchCallbackStatusResponse
- Throws:
TencentCloudSDKException
-
-