tencentcloud-sdk-nodejs-intl-en
Version:
629 lines (572 loc) • 29.1 kB
JavaScript
/*
* Copyright (c) 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.
*/
const models = require("./models");
const AbstractClient = require('../../common/abstract_client')
const SummaryDetails = models.SummaryDetails;
const QueryDirectCustomersCreditData = models.QueryDirectCustomersCreditData;
const DescribeCustomerBillSummaryResponse = models.DescribeCustomerBillSummaryResponse;
const TradeTwoNode = models.TradeTwoNode;
const QueryT1IndirectCustomersDetailRequest = models.QueryT1IndirectCustomersDetailRequest;
const CreateAndSendClientInvitationMailResponse = models.CreateAndSendClientInvitationMailResponse;
const CustomerBillDetailData = models.CustomerBillDetailData;
const RegionSummaryOverviewItem = models.RegionSummaryOverviewItem;
const QuerySubAgentsDetailV2Response = models.QuerySubAgentsDetailV2Response;
const DescribeCustomerBillDownloadUrlRequest = models.DescribeCustomerBillDownloadUrlRequest;
const DescribeCustomerUinData = models.DescribeCustomerUinData;
const CountryCodeItem = models.CountryCodeItem;
const DescribeBillSummaryByRegionRequest = models.DescribeBillSummaryByRegionRequest;
const QueryCreditByUinListResponse = models.QueryCreditByUinListResponse;
const QueryPendingSubAgentsV2Request = models.QueryPendingSubAgentsV2Request;
const QueryCreditAllocationHistoryResponse = models.QueryCreditAllocationHistoryResponse;
const CreateAccountRequest = models.CreateAccountRequest;
const DescribeBillSummaryRequest = models.DescribeBillSummaryRequest;
const QueryDirectCustomersCreditRequest = models.QueryDirectCustomersCreditRequest;
const QueryCustomerBillingQuotaData = models.QueryCustomerBillingQuotaData;
const QueryPartnerCreditRequest = models.QueryPartnerCreditRequest;
const GetTradeConfigListRequest = models.GetTradeConfigListRequest;
const DescribeBillSummaryByProductRequest = models.DescribeBillSummaryByProductRequest;
const ModifyClientRemarkResponse = models.ModifyClientRemarkResponse;
const QueryPartnerCreditResponse = models.QueryPartnerCreditResponse;
const QueryVoucherListByUinResponse = models.QueryVoucherListByUinResponse;
const QueryVoucherPoolRequest = models.QueryVoucherPoolRequest;
const QueryVoucherListByUinItem = models.QueryVoucherListByUinItem;
const PolicyProductList = models.PolicyProductList;
const QueryCustomerBillingQuotaResponse = models.QueryCustomerBillingQuotaResponse;
const DescribeCustomerBillSummaryRequest = models.DescribeCustomerBillSummaryRequest;
const QueryPendingSubAgentsV2ResponseData = models.QueryPendingSubAgentsV2ResponseData;
const ApproveSubAgentApplyResponse = models.ApproveSubAgentApplyResponse;
const QueryInvitationInfoResponse = models.QueryInvitationInfoResponse;
const DescribeBillSummaryByPayModeResponse = models.DescribeBillSummaryByPayModeResponse;
const QueryAccountVerificationStatusResponse = models.QueryAccountVerificationStatusResponse;
const AllocateCustomerCreditRequest = models.AllocateCustomerCreditRequest;
const DescribeBillDownloadUrlRequest = models.DescribeBillDownloadUrlRequest;
const DescribeBillSummaryByPayModeRequest = models.DescribeBillSummaryByPayModeRequest;
const QueryInvitationInfoData = models.QueryInvitationInfoData;
const QuerySubAgentsDetailV2Request = models.QuerySubAgentsDetailV2Request;
const GetCountryCodesResponse = models.GetCountryCodesResponse;
const AllocateCreditPoolRequest = models.AllocateCreditPoolRequest;
const AllocateCustomerCreditResponse = models.AllocateCustomerCreditResponse;
const QueryT1IndirectCustomersDetailResponse = models.QueryT1IndirectCustomersDetailResponse;
const QueryVoucherAmountByUinRequest = models.QueryVoucherAmountByUinRequest;
const GetCountryCodesRequest = models.GetCountryCodesRequest;
const ForceQNResponse = models.ForceQNResponse;
const PayModeSummaryOverviewItem = models.PayModeSummaryOverviewItem;
const QueryPendingCustomersItem = models.QueryPendingCustomersItem;
const QueryDirectCustomersCreditResponse = models.QueryDirectCustomersCreditResponse;
const DescribeBillDownloadUrlResponse = models.DescribeBillDownloadUrlResponse;
const DescribeCustomerUinRequest = models.DescribeCustomerUinRequest;
const TradeOneNode = models.TradeOneNode;
const DescribeRebateDownloadUrlResponse = models.DescribeRebateDownloadUrlResponse;
const QuerySubAgentsDetailV2ResponseData = models.QuerySubAgentsDetailV2ResponseData;
const DescribeBillSummaryResponse = models.DescribeBillSummaryResponse;
const QueryInvitationInfoRequest = models.QueryInvitationInfoRequest;
const QueryCustomersCreditRequest = models.QueryCustomersCreditRequest;
const QueryT1IndirectCustomersDetailResponseData = models.QueryT1IndirectCustomersDetailResponseData;
const DescribeCustomerInfoResponse = models.DescribeCustomerInfoResponse;
const QueryVoucherPoolResponse = models.QueryVoucherPoolResponse;
const QueryAccountVerificationStatusRequest = models.QueryAccountVerificationStatusRequest;
const ActionSummaryOverviewItem = models.ActionSummaryOverviewItem;
const QueryPendingClientsV2Response = models.QueryPendingClientsV2Response;
const AllocateCreditPoolResponse = models.AllocateCreditPoolResponse;
const DescribeBillDetailResponse = models.DescribeBillDetailResponse;
const QueryCreditAllocationHistoryRequest = models.QueryCreditAllocationHistoryRequest;
const DescribeCustomerUinResponse = models.DescribeCustomerUinResponse;
const ApproveClientApplyRequest = models.ApproveClientApplyRequest;
const ApproveSubAgentApplyRequest = models.ApproveSubAgentApplyRequest;
const DescribeCustomerBillDetailRequest = models.DescribeCustomerBillDetailRequest;
const QueryCustomersCreditData = models.QueryCustomersCreditData;
const QueryCustomersCreditResponse = models.QueryCustomersCreditResponse;
const SendVerifyCodeRequest = models.SendVerifyCodeRequest;
const QueryVoucherListByUinRequest = models.QueryVoucherListByUinRequest;
const QueryVoucherAmountByUinResponse = models.QueryVoucherAmountByUinResponse;
const QueryVoucherAmountByUinItem = models.QueryVoucherAmountByUinItem;
const QueryCreditAllocationHistoryData = models.QueryCreditAllocationHistoryData;
const BusinessInfo = models.BusinessInfo;
const DescribeBillSummaryByProductResponse = models.DescribeBillSummaryByProductResponse;
const DescribeCustomerBillDetailResponse = models.DescribeCustomerBillDetailResponse;
const DescribeBillSummaryByRegionResponse = models.DescribeBillSummaryByRegionResponse;
const GetTradeConfigListResponse = models.GetTradeConfigListResponse;
const DescribeCustomerBillDownloadUrlResponse = models.DescribeCustomerBillDownloadUrlResponse;
const DescribeBillDetailRequest = models.DescribeBillDetailRequest;
const QueryCreditByUinListRequest = models.QueryCreditByUinListRequest;
const CreateAccountResponse = models.CreateAccountResponse;
const ApproveClientApplyResponse = models.ApproveClientApplyResponse;
const QueryPendingClientsV2Request = models.QueryPendingClientsV2Request;
const TagInfo = models.TagInfo;
const QueryPolicyProductListByCodeRequest = models.QueryPolicyProductListByCodeRequest;
const BusinessSummaryOverviewItem = models.BusinessSummaryOverviewItem;
const ForceQNRequest = models.ForceQNRequest;
const DescribeCustomerInfoRequest = models.DescribeCustomerInfoRequest;
const QueryPolicyProductListByCodeResponse = models.QueryPolicyProductListByCodeResponse;
const QueryVoucherListByUinVoucherItem = models.QueryVoucherListByUinVoucherItem;
const ModifyClientRemarkRequest = models.ModifyClientRemarkRequest;
const QueryPendingSubAgentsV2Response = models.QueryPendingSubAgentsV2Response;
const BillDetailData = models.BillDetailData;
const QueryCustomerBillingQuotaRequest = models.QueryCustomerBillingQuotaRequest;
const DescribeCustomerInfoData = models.DescribeCustomerInfoData;
const CreateAndSendClientInvitationMailRequest = models.CreateAndSendClientInvitationMailRequest;
const DescribeRebateDownloadUrlRequest = models.DescribeRebateDownloadUrlRequest;
const SendVerifyCodeResponse = models.SendVerifyCodeResponse;
/**
* intlpartnersmgt client
* @class
*/
class IntlpartnersmgtClient extends AbstractClient {
constructor(credential, region, profile) {
super("intlpartnersmgt.intl.tencentcloudapi.com", "2022-09-28", credential, region, profile);
}
/**
* This API is used to query the list of customer UINs.
* @param {DescribeCustomerUinRequest} req
* @param {function(string, DescribeCustomerUinResponse):void} cb
* @public
*/
DescribeCustomerUin(req, cb) {
let resp = new DescribeCustomerUinResponse();
this.request("DescribeCustomerUin", req, resp, cb);
}
/**
* This API is used for a partner to set credit for a customer, such as increasing or lowering the credit and setting it to 0.
1. The credit is valid permanently and will not be zeroed regularly.
2. The customer's service will be suspended when its available credit is set to 0, so caution should be exercised with this operation.
3. To prevent the customer from making new purchases without affecting their use of previously purchased products, the partner can set their available credit to 0 after obtaining the non-stop feature privilege from the channel manager.
4. The set credit is an increment of the current available credit and cannot exceed the remaining allocable credit. Setting the credit to a negative value indicates that it will be repossessed. The available credit can be set to 0 at the minimum.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {AllocateCustomerCreditRequest} req
* @param {function(string, AllocateCustomerCreditResponse):void} cb
* @public
*/
AllocateCustomerCredit(req, cb) {
let resp = new AllocateCustomerCreditResponse();
this.request("AllocateCustomerCredit", req, resp, cb);
}
/**
* Description: This API is used by resellers to query the list of sub-customers pending review. Note: This API is used to apply for the allowlist. If needed, please contact your business representative.
Callable roles: Reseller, Distributer, Second-level reseller
* @param {QueryPendingClientsV2Request} req
* @param {function(string, QueryPendingClientsV2Response):void} cb
* @public
*/
QueryPendingClientsV2(req, cb) {
let resp = new QueryPendingClientsV2Response();
this.request("QueryPendingClientsV2", req, resp, cb);
}
/**
* This API is used to obtain country/region codes.
* @param {GetCountryCodesRequest} req
* @param {function(string, GetCountryCodesResponse):void} cb
* @public
*/
GetCountryCodes(req, cb) {
let resp = new GetCountryCodesResponse();
this.request("GetCountryCodes", req, resp, cb);
}
/**
* This API is used to modify customer remarks.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {ModifyClientRemarkRequest} req
* @param {function(string, ModifyClientRemarkResponse):void} cb
* @public
*/
ModifyClientRemark(req, cb) {
let resp = new ModifyClientRemarkResponse();
this.request("ModifyClientRemark", req, resp, cb);
}
/**
* This API is used for a partner to query its own total credit, available credit, and used credit in USD.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryPartnerCreditRequest} req
* @param {function(string, QueryPartnerCreditResponse):void} cb
* @public
*/
QueryPartnerCredit(req, cb) {
let resp = new QueryPartnerCreditResponse();
this.request("QueryPartnerCredit", req, resp, cb);
}
/**
* This API is used to download the commission bill file by resellers/agents. The file URL is returned.
Resellers/Agents can call this API.
* @param {DescribeRebateDownloadUrlRequest} req
* @param {function(string, DescribeRebateDownloadUrlResponse):void} cb
* @public
*/
DescribeRebateDownloadUrl(req, cb) {
let resp = new DescribeRebateDownloadUrlResponse();
this.request("DescribeRebateDownloadUrl", req, resp, cb);
}
/**
* This API is used to query information of second-level resellers in application.
Invocation Role: Distributor.
* @param {QueryPendingSubAgentsV2Request} req
* @param {function(string, QueryPendingSubAgentsV2Response):void} cb
* @public
*/
QueryPendingSubAgentsV2(req, cb) {
let resp = new QueryPendingSubAgentsV2Response();
this.request("QueryPendingSubAgentsV2", req, resp, cb);
}
/**
* Description: This API is used by resellers to review applications to become sub-customers. Note: This API is used to apply for the allowlist. If needed, please contact your business representative.
Callable roles: Reseller, Distributer, Second-level reseller
* @param {ApproveClientApplyRequest} req
* @param {function(string, ApproveClientApplyResponse):void} cb
* @public
*/
ApproveClientApply(req, cb) {
let resp = new ApproveClientApplyResponse();
this.request("ApproveClientApply", req, resp, cb);
}
/**
* This API is used to query information of second-level resellers.
Invocation Role:Distributor.
* @param {QuerySubAgentsDetailV2Request} req
* @param {function(string, QuerySubAgentsDetailV2Response):void} cb
* @public
*/
QuerySubAgentsDetailV2(req, cb) {
let resp = new QuerySubAgentsDetailV2Response();
this.request("QuerySubAgentsDetailV2", req, resp, cb);
}
/**
* This API is used to query sub-customer information.
Invocation roles: reseller, first-level distributor.
* @param {DescribeCustomerInfoRequest} req
* @param {function(string, DescribeCustomerInfoResponse):void} cb
* @public
*/
DescribeCustomerInfo(req, cb) {
let resp = new DescribeCustomerInfoResponse();
this.request("DescribeCustomerInfo", req, resp, cb);
}
/**
* This API is used to send a verification code for account registration.
Callable roles: Distributor, Second-level reseller, Reseller,End-customer
* @param {SendVerifyCodeRequest} req
* @param {function(string, SendVerifyCodeResponse):void} cb
* @public
*/
SendVerifyCode(req, cb) {
let resp = new SendVerifyCodeResponse();
this.request("SendVerifyCode", req, resp, cb);
}
/**
* This API is used by primary/secondary resellers to query the voucher list based on the customer UIN.
Callable roles: Reseller, Distributor, Second-level reseller
* @param {QueryVoucherListByUinRequest} req
* @param {function(string, QueryVoucherListByUinResponse):void} cb
* @public
*/
QueryVoucherListByUin(req, cb) {
let resp = new QueryVoucherListByUinResponse();
this.request("QueryVoucherListByUin", req, resp, cb);
}
/**
* This API is used to allocate credit pools to second-level resellers by distributors.
Callable roles: Distributor
* @param {AllocateCreditPoolRequest} req
* @param {function(string, AllocateCreditPoolResponse):void} cb
* @public
*/
AllocateCreditPool(req, cb) {
let resp = new AllocateCreditPoolResponse();
this.request("AllocateCreditPool", req, resp, cb);
}
/**
* This API is used to query the indirect sub-customers of a distributor.
Invokable role type: Distributor
* @param {QueryT1IndirectCustomersDetailRequest} req
* @param {function(string, QueryT1IndirectCustomersDetailResponse):void} cb
* @public
*/
QueryT1IndirectCustomersDetail(req, cb) {
let resp = new QueryT1IndirectCustomersDetailResponse();
this.request("QueryT1IndirectCustomersDetail", req, resp, cb);
}
/**
* Description: End-customer queries its own bill details.
Callable role: End-customer.
* @param {DescribeBillDetailRequest} req
* @param {function(string, DescribeBillDetailResponse):void} cb
* @public
*/
DescribeBillDetail(req, cb) {
let resp = new DescribeBillDetailResponse();
this.request("DescribeBillDetail", req, resp, cb);
}
/**
* Description: External API for L1 billing of Sub-customer billing center.
Callable role: End-customer.
* @param {DescribeBillSummaryRequest} req
* @param {function(string, DescribeBillSummaryResponse):void} cb
* @public
*/
DescribeBillSummary(req, cb) {
let resp = new DescribeBillSummaryResponse();
this.request("DescribeBillSummary", req, resp, cb);
}
/**
* This API is used to obtain the total amount of customer bills by payment mode.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {DescribeBillSummaryByPayModeRequest} req
* @param {function(string, DescribeBillSummaryByPayModeResponse):void} cb
* @public
*/
DescribeBillSummaryByPayMode(req, cb) {
let resp = new DescribeBillSummaryByPayModeResponse();
this.request("DescribeBillSummaryByPayMode", req, resp, cb);
}
/**
* This API is used to perform operations. Application for allowlist is required before usage. If needed, contact your business representative to request allowlisting. The specific usage process is as follows;.
This API is used to create an invitation link. You can send the invitation link to your designated email address.
2. Customers need to click the invitation link in the mailbox, fill in and submit relevant information.
3. After customer submission, you can view the application of this sub-customer on the customer management page and review it.
This API is used to handle cases where if the designated mailbox does not receive the invitation link, you can send the invitation link returned by the API to the customer manually.
Invocation roles: resellers, distributors, second-level reseller.
* @param {CreateAndSendClientInvitationMailRequest} req
* @param {function(string, CreateAndSendClientInvitationMailResponse):void} cb
* @public
*/
CreateAndSendClientInvitationMail(req, cb) {
let resp = new CreateAndSendClientInvitationMailResponse();
this.request("CreateAndSendClientInvitationMail", req, resp, cb);
}
/**
* Description: This API is used to download billing files and return billing file URLs for sub-customers.
Callable role: Enb-customer.
* @param {DescribeBillDownloadUrlRequest} req
* @param {function(string, DescribeBillDownloadUrlResponse):void} cb
* @public
*/
DescribeBillDownloadUrl(req, cb) {
let resp = new DescribeBillDownloadUrlResponse();
this.request("DescribeBillDownloadUrl", req, resp, cb);
}
/**
* This API is used to query the credit of users in the list.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryCreditByUinListRequest} req
* @param {function(string, QueryCreditByUinListResponse):void} cb
* @public
*/
QueryCreditByUinList(req, cb) {
let resp = new QueryCreditByUinListResponse();
this.request("QueryCreditByUinList", req, resp, cb);
}
/**
* This API is used to query the credits of direct customers.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryDirectCustomersCreditRequest} req
* @param {function(string, QueryDirectCustomersCreditResponse):void} cb
* @public
*/
QueryDirectCustomersCredit(req, cb) {
let resp = new QueryDirectCustomersCreditResponse();
this.request("QueryDirectCustomersCredit", req, resp, cb);
}
/**
* This API is used to create Tencent Cloud customer accounts for distributor/second-level resellers.After the account is created, it will be automatically bound to the partner account.Note:
1. Create a Tencent Cloud account. The entered email address and mobile phone number need to be verified by the partner for validity.
2. Customers need to add personal information when logging in for the first time.
3. This interface needs to be applied for allowlist usage. Please contact the channel manager to initiate the application process.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {CreateAccountRequest} req
* @param {function(string, CreateAccountResponse):void} cb
* @public
*/
CreateAccount(req, cb) {
let resp = new CreateAccountResponse();
this.request("CreateAccount", req, resp, cb);
}
/**
* Query usage information of invitation link. Once created, the data will only be retained for 60 days, and the system will automatically delete the invitation link after 60 days.
Invokable role types: Distributor, Second-level reseller, Reseller.
* @param {QueryInvitationInfoRequest} req
* @param {function(string, QueryInvitationInfoResponse):void} cb
* @public
*/
QueryInvitationInfo(req, cb) {
let resp = new QueryInvitationInfoResponse();
this.request("QueryInvitationInfo", req, resp, cb);
}
/**
* This API is used to get the URL for downloading the customer bill file by reseller. The download conditions are as follows:
1. Detailed bills (billDetail and billDetailPack) can be downloaded starting from June 2022; resource bills (billResource and billResourcePack) can be downloaded starting from November 2023.
2. Bill packages (billDetailPack and billResourcePack) can only be downloaded after billing.
* @param {DescribeCustomerBillDownloadUrlRequest} req
* @param {function(string, DescribeCustomerBillDownloadUrlResponse):void} cb
* @public
*/
DescribeCustomerBillDownloadUrl(req, cb) {
let resp = new DescribeCustomerBillDownloadUrlResponse();
this.request("DescribeCustomerBillDownloadUrl", req, resp, cb);
}
/**
* This API is used for a partner to the credits and basic information of cutomers.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryCustomersCreditRequest} req
* @param {function(string, QueryCustomersCreditResponse):void} cb
* @public
*/
QueryCustomersCredit(req, cb) {
let resp = new QueryCustomersCreditResponse();
this.request("QueryCustomersCredit", req, resp, cb);
}
/**
* Description: Obtain the summarized value of sub - account bills by region through API.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {DescribeBillSummaryByRegionRequest} req
* @param {function(string, DescribeBillSummaryByRegionResponse):void} cb
* @public
*/
DescribeBillSummaryByRegion(req, cb) {
let resp = new DescribeBillSummaryByRegionResponse();
this.request("DescribeBillSummaryByRegion", req, resp, cb);
}
/**
* This API is used to query the customer bill details by resellers.
Callable roles: Distributor, Second-level reseller, Reseller.
* @param {DescribeCustomerBillDetailRequest} req
* @param {function(string, DescribeCustomerBillDetailResponse):void} cb
* @public
*/
DescribeCustomerBillDetail(req, cb) {
let resp = new DescribeCustomerBillDetailResponse();
this.request("DescribeCustomerBillDetail", req, resp, cb);
}
/**
* This API is used to query the total amount of customer bills.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {DescribeCustomerBillSummaryRequest} req
* @param {function(string, DescribeCustomerBillSummaryResponse):void} cb
* @public
*/
DescribeCustomerBillSummary(req, cb) {
let resp = new DescribeCustomerBillSummaryResponse();
this.request("DescribeCustomerBillSummary", req, resp, cb);
}
/**
* This API is used by primary/secondary resellers to query the voucher quota based on the customer UIN.
Callable roles: Reseller, Distributor, Second-level reseller
* @param {QueryVoucherAmountByUinRequest} req
* @param {function(string, QueryVoucherAmountByUinResponse):void} cb
* @public
*/
QueryVoucherAmountByUin(req, cb) {
let resp = new QueryVoucherAmountByUinResponse();
this.request("QueryVoucherAmountByUin", req, resp, cb);
}
/**
* Forced Service Suspension settings and cancellation can be used only after the reseller is whitelisted.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {ForceQNRequest} req
* @param {function(string, ForceQNResponse):void} cb
* @public
*/
ForceQN(req, cb) {
let resp = new ForceQNResponse();
this.request("ForceQN", req, resp, cb);
}
/**
* This API is used by primary/secondary resellers to query the voucher quota pool.
Callable roles: Distributor, First-level reseller, Second-level reseller
* @param {QueryVoucherPoolRequest} req
* @param {function(string, QueryVoucherPoolResponse):void} cb
* @public
*/
QueryVoucherPool(req, cb) {
let resp = new QueryVoucherPoolResponse();
this.request("QueryVoucherPool", req, resp, cb);
}
/**
* This API is used to query the account verification status.
Callable roles: Distributor, Reseller
* @param {QueryAccountVerificationStatusRequest} req
* @param {function(string, QueryAccountVerificationStatusResponse):void} cb
* @public
*/
QueryAccountVerificationStatus(req, cb) {
let resp = new QueryAccountVerificationStatusResponse();
this.request("QueryAccountVerificationStatus", req, resp, cb);
}
/**
* This API is used to query the product list information within the specified policy range. To call this API, contact your business manager to apply for adding it to the allowlist.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryPolicyProductListByCodeRequest} req
* @param {function(string, QueryPolicyProductListByCodeResponse):void} cb
* @public
*/
QueryPolicyProductListByCode(req, cb) {
let resp = new QueryPolicyProductListByCodeResponse();
this.request("QueryPolicyProductListByCode", req, resp, cb);
}
/**
* This API is used to approve applications for second-level resellers.
Invocation Role: Distributor.
* @param {ApproveSubAgentApplyRequest} req
* @param {function(string, ApproveSubAgentApplyResponse):void} cb
* @public
*/
ApproveSubAgentApply(req, cb) {
let resp = new ApproveSubAgentApplyResponse();
this.request("ApproveSubAgentApply", req, resp, cb);
}
/**
* This API is used to query all the credit allocation records of a single customer.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {QueryCreditAllocationHistoryRequest} req
* @param {function(string, QueryCreditAllocationHistoryResponse):void} cb
* @public
*/
QueryCreditAllocationHistory(req, cb) {
let resp = new QueryCreditAllocationHistoryResponse();
this.request("QueryCreditAllocationHistory", req, resp, cb);
}
/**
* This API is used to query industry information, including layer-1 industry and layer-2 industry.
Callable roles: Distributor, Second-level reseller, Reseller,End-customer
* @param {GetTradeConfigListRequest} req
* @param {function(string, GetTradeConfigListResponse):void} cb
* @public
*/
GetTradeConfigList(req, cb) {
let resp = new GetTradeConfigListResponse();
this.request("GetTradeConfigList", req, resp, cb);
}
/**
* Description: Obtain the summarized value of sub - account bills by product dimension.
Callable roles: Distributor, Second-level reseller, Reseller
* @param {DescribeBillSummaryByProductRequest} req
* @param {function(string, DescribeBillSummaryByProductResponse):void} cb
* @public
*/
DescribeBillSummaryByProduct(req, cb) {
let resp = new DescribeBillSummaryByProductResponse();
this.request("DescribeBillSummaryByProduct", req, resp, cb);
}
/**
* Description: This API is used for a sub-customer to real-time query its own total credit and remaining credit in USD.
Callable roles: Sub-customer
* @param {QueryCustomerBillingQuotaRequest} req
* @param {function(string, QueryCustomerBillingQuotaResponse):void} cb
* @public
*/
QueryCustomerBillingQuota(req, cb) {
let resp = new QueryCustomerBillingQuotaResponse();
this.request("QueryCustomerBillingQuota", req, resp, cb);
}
}
module.exports = IntlpartnersmgtClient;