tencentcloud-sdk-nodejs-intl-en
Version:
1,881 lines (1,587 loc) • 192 kB
JavaScript
/*
* Copyright (c) 2018 Tencent. 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 AbstractModel = require("../../common/abstract_model");
/**
* Detailed summary by billing dimension
* @class
*/
class SummaryDetails extends AbstractModel {
constructor(){
super();
/**
* Product information list.
* @type {Array.<BusinessInfo> || null}
*/
this.Business = null;
/**
* Original price.
* @type {string || null}
*/
this.OriginalCost = null;
/**
* Voucher amount.
* @type {string || null}
*/
this.VoucherPayAmount = null;
/**
* RI deduction.
* @type {string || null}
*/
this.RICost = null;
/**
* <TOTAL_AMOUNT>.
* @type {string || null}
*/
this.TotalCost = null;
/**
* Classification dimension summary key.
* @type {string || null}
*/
this.GroupKey = null;
/**
* Summary value by classification dimension.
* @type {string || null}
*/
this.GroupValue = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Business) {
this.Business = new Array();
for (let z in params.Business) {
let obj = new BusinessInfo();
obj.deserialize(params.Business[z]);
this.Business.push(obj);
}
}
this.OriginalCost = 'OriginalCost' in params ? params.OriginalCost : null;
this.VoucherPayAmount = 'VoucherPayAmount' in params ? params.VoucherPayAmount : null;
this.RICost = 'RICost' in params ? params.RICost : null;
this.TotalCost = 'TotalCost' in params ? params.TotalCost : null;
this.GroupKey = 'GroupKey' in params ? params.GroupKey : null;
this.GroupValue = 'GroupValue' in params ? params.GroupValue : null;
}
}
/**
* DescribeCustomerOwnVoucherUsageDetails response structure.
* @class
*/
class DescribeCustomerOwnVoucherUsageDetailsResponse extends AbstractModel {
constructor(){
super();
/**
* Voucher information details
* @type {Array.<UsageDetail> || null}
*/
this.Data = null;
/**
* Voucher ID.
* @type {number || null}
*/
this.VoucherId = null;
/**
* Total voucher amount
* @type {number || null}
*/
this.TotalAmount = null;
/**
* Voucher balance
* @type {number || null}
*/
this.RemainAmount = null;
/**
* Total number of records
* @type {number || null}
*/
this.TotalRecordsCount = null;
/**
* Voucher Usage Month
* @type {string || null}
*/
this.Month = null;
/**
* Number of records in the current month
* @type {number || null}
*/
this.RecordsCountByMonth = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new UsageDetail();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.VoucherId = 'VoucherId' in params ? params.VoucherId : null;
this.TotalAmount = 'TotalAmount' in params ? params.TotalAmount : null;
this.RemainAmount = 'RemainAmount' in params ? params.RemainAmount : null;
this.TotalRecordsCount = 'TotalRecordsCount' in params ? params.TotalRecordsCount : null;
this.Month = 'Month' in params ? params.Month : null;
this.RecordsCountByMonth = 'RecordsCountByMonth' in params ? params.RecordsCountByMonth : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCustomerVoucherList response structure.
* @class
*/
class DescribeCustomerVoucherListResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of the list.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Voucher information description.
* @type {Array.<DescribeCustomerVoucherItem> || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new DescribeCustomerVoucherItem();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* The credit information of direct customers
* @class
*/
class QueryDirectCustomersCreditData extends AbstractModel {
constructor(){
super();
/**
* User UIN
* @type {number || null}
*/
this.Uin = null;
/**
* Total credit
* @type {number || null}
*/
this.TotalCredit = null;
/**
* Remaining credit
* @type {number || null}
*/
this.RemainingCredit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uin = 'Uin' in params ? params.Uin : null;
this.TotalCredit = 'TotalCredit' in params ? params.TotalCredit : null;
this.RemainingCredit = 'RemainingCredit' in params ? params.RemainingCredit : null;
}
}
/**
* DescribeCustomerOwnVoucherList request structure.
* @class
*/
class DescribeCustomerOwnVoucherListRequest extends AbstractModel {
constructor(){
super();
/**
* Page number, starts from 1.
* @type {number || null}
*/
this.Page = null;
/**
* Number of items per page. value range: 1-100.
* @type {number || null}
*/
this.PageSize = null;
/**
* Voucher status. valid values: Issued, Used, Expired, Invalidated.
* @type {string || null}
*/
this.VoucherStatus = null;
/**
* Payment mode. valid values: AllPayment, Prepaid, Postpaid.
* @type {string || null}
*/
this.PaymentMode = null;
/**
* Applicable product. valid values: AllProducts, SpecifyProducts, SpecifyProductsBlacklist.
* @type {string || null}
*/
this.ProductScope = null;
/**
* Voucher ID.
* @type {number || null}
*/
this.VoucherId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.VoucherStatus = 'VoucherStatus' in params ? params.VoucherStatus : null;
this.PaymentMode = 'PaymentMode' in params ? params.PaymentMode : null;
this.ProductScope = 'ProductScope' in params ? params.ProductScope : null;
this.VoucherId = 'VoucherId' in params ? params.VoucherId : null;
}
}
/**
* GetCountryCodes response structure.
* @class
*/
class GetCountryCodesResponse extends AbstractModel {
constructor(){
super();
/**
* List of country/region codes
* @type {Array.<CountryCodeItem> || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new CountryCodeItem();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Secondary Industry Information
* @class
*/
class TradeTwoNode extends AbstractModel {
constructor(){
super();
/**
* Secondary industry id.
* @type {string || null}
*/
this.Id = null;
/**
* Secondary industry name.
* @type {string || null}
*/
this.Name = null;
/**
* Industry information.
* @type {string || null}
*/
this.TradeInfo = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Name = 'Name' in params ? params.Name : null;
this.TradeInfo = 'TradeInfo' in params ? params.TradeInfo : null;
}
}
/**
* QueryT1IndirectCustomersDetail request structure.
* @class
*/
class QueryT1IndirectCustomersDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Second-level reseller UIN.
* @type {number || null}
*/
this.SubAgentUin = null;
/**
* Pagination parameter: current page number. it starts from 1.
* @type {number || null}
*/
this.Page = null;
/**
* Pagination parameter, indicates the number of entries per page. supports [1, 100] data entries per request.
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SubAgentUin = 'SubAgentUin' in params ? params.SubAgentUin : null;
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* CreateAndSendClientInvitationMail response structure.
* @class
*/
class CreateAndSendClientInvitationMailResponse extends AbstractModel {
constructor(){
super();
/**
* Specifies the invitation link for the customer.
* @type {string || null}
*/
this.InvitationLink = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InvitationLink = 'InvitationLink' in params ? params.InvitationLink : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* QueryPendingClientsV2 request structure.
* @class
*/
class QueryPendingClientsV2Request extends AbstractModel {
constructor(){
super();
/**
* Page number, starting from 1.
* @type {number || null}
*/
this.Page = null;
/**
* Quantity. page size [1-100].
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* Region details in the customer bill data totaled by region
* @class
*/
class RegionSummaryOverviewItem extends AbstractModel {
constructor(){
super();
/**
* Region id.
* @type {string || null}
*/
this.RegionId = null;
/**
* Region name.
* @type {string || null}
*/
this.RegionName = null;
/**
* Actual total consumption, up to 8 decimal places.
* @type {string || null}
*/
this.OriginalCost = null;
/**
* Voucher payment amount, up to 8 decimal places.
* @type {string || null}
*/
this.VoucherPayAmount = null;
/**
* Total consumption, up to 8 decimal places.
* @type {string || null}
*/
this.TotalCost = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RegionId = 'RegionId' in params ? params.RegionId : null;
this.RegionName = 'RegionName' in params ? params.RegionName : null;
this.OriginalCost = 'OriginalCost' in params ? params.OriginalCost : null;
this.VoucherPayAmount = 'VoucherPayAmount' in params ? params.VoucherPayAmount : null;
this.TotalCost = 'TotalCost' in params ? params.TotalCost : null;
}
}
/**
* QuerySubAgentsDetailV2 response structure.
* @class
*/
class QuerySubAgentsDetailV2Response extends AbstractModel {
constructor(){
super();
/**
* Number of second-level resellers.
* @type {number || null}
*/
this.Total = null;
/**
* Second-Level reseller information.
* @type {Array.<QuerySubAgentsDetailV2ResponseData> || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Total = 'Total' in params ? params.Total : null;
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new QuerySubAgentsDetailV2ResponseData();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCustomerBillDownloadUrl request structure.
* @class
*/
class DescribeCustomerBillDownloadUrlRequest extends AbstractModel {
constructor(){
super();
/**
* The month to which the bill belongs, formatted as yyyy-mm; the earliest month available for query is june, 2022. current month's billing data may be inaccurate; please download the current month's bill after it is generated at 1:00 on the 5th of the next month.
* @type {string || null}
*/
this.Month = null;
/**
* Bill type. valid values: [billResource, billDetail, billResourcePack, billDetailPack]. `billResource`: resource bill; `billDetail`: detailed bill; `billResourcePack`: resource bill package; `billDetailPack`: detailed bill package.
* @type {string || null}
*/
this.FileType = null;
/**
* Customer type. valid values: [Customer, Reseller, ResellerCustomer]. `Customer`: direct customer; `Reseller`: secondary reseller; `ResellerCustomer`: reseller's customers
* @type {string || null}
*/
this.CustomerUinType = null;
/**
* Language. valid values: [zh_cn, en]. default is `en` (english).
* @type {string || null}
*/
this.FileLanguage = null;
/**
* Customer uin. when downloading the bill package (FileType is billResourcePack or billDetailPack), CustomerUin is not passed
* @type {number || null}
*/
this.CustomerUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Month = 'Month' in params ? params.Month : null;
this.FileType = 'FileType' in params ? params.FileType : null;
this.CustomerUinType = 'CustomerUinType' in params ? params.CustomerUinType : null;
this.FileLanguage = 'FileLanguage' in params ? params.FileLanguage : null;
this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
}
}
/**
* List of customer UINs
* @class
*/
class DescribeCustomerUinData extends AbstractModel {
constructor(){
super();
/**
* Customer UIN Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CustomerUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
}
}
/**
* Element type of the `GetCountryCodes` API
* @class
*/
class CountryCodeItem extends AbstractModel {
constructor(){
super();
/**
* Country/region name in English
* @type {string || null}
*/
this.EnName = null;
/**
* Country/region name in Chinese
* @type {string || null}
*/
this.Name = null;
/**
* ISO2 standard country/region code
* @type {string || null}
*/
this.IOS2 = null;
/**
* ISO3 standard country/region code
* @type {string || null}
*/
this.IOS3 = null;
/**
* International dialing code
* @type {string || null}
*/
this.Code = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.EnName = 'EnName' in params ? params.EnName : null;
this.Name = 'Name' in params ? params.Name : null;
this.IOS2 = 'IOS2' in params ? params.IOS2 : null;
this.IOS3 = 'IOS3' in params ? params.IOS3 : null;
this.Code = 'Code' in params ? params.Code : null;
}
}
/**
* DescribeBillSummaryByRegion request structure.
* @class
*/
class DescribeBillSummaryByRegionRequest extends AbstractModel {
constructor(){
super();
/**
* Bill month in the format of "yyyy-MM"
* @type {string || null}
*/
this.BillMonth = null;
/**
* Customer UIN
* @type {number || null}
*/
this.CustomerUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BillMonth = 'BillMonth' in params ? params.BillMonth : null;
this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
}
}
/**
* DescribeCustomerOwnCostExplorerFilter response structure.
* @class
*/
class DescribeCustomerOwnCostExplorerFilterResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Filter information</p>
* @type {CostAnalyzeFilterDetail || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new CostAnalyzeFilterDetail();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCustomerBillDetail request structure.
* @class
*/
class DescribeCustomerBillDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Sub-account UIN.
* @type {number || null}
*/
this.CustomerUin = null;
/**
* Inquiry month, in the format of YYYY-MM, such as 2023-01.
* @type {string || null}
*/
this.Month = null;
/**
* Page parameter: number of entries per page. Value range: [1, 200]
* @type {number || null}
*/
this.PageSize = null;
/**
* Page parameter: current page number. The minimum value is 1.
* @type {number || null}
*/
this.Page = null;
/**
* Billing mode. Valid values:
prePay (Monthly subscription)
postPay (Pay-As-You-Go resources)
* @type {string || null}
*/
this.PayMode = null;
/**
* Transaction type. Valid values:
prepay_purchase (Purchase)
prepay_renew (Renewal)
prepay_modify (Upgrade/Downgrade)
prepay_return ( Monthly subscription refund)
postpay_deduct (Pay-as-you-go)
postpay_deduct_h (Hourly settlement)
postpay_deduct_d (Daily settlement)
postpay_deduct_m (Monthly settlement)
offline_deduct (Offline project deduction)
online_deduct (Offline product deduction)
recon_deduct (Adjustment - deduction)
recon_increase (Adjustment - compensation)
ripay_purchase (One-off RI Fee)
postpay_deduct_s (Spot)
ri_hour_pay (Hourly RI fee)
prePurchase (New monthly subscription)
preRenew (Monthly subscription renewal)
preUpgrade (Upgrade/Downgrade)
preDowngrade (Upgrade/Downgrade)
svp_hour_pay (Hourly Savings Plan fee)
recon_guarantee (Minimum spend deduction)
pre_purchase (New monthly subscription)
pre_renew (Monthly subscription renewal)
pre_upgrade (Upgrade/Downgrade)
pre_downgrade (Upgrade/Downgrade)
* @type {string || null}
*/
this.ActionType = null;
/**
* Payment status
0: not distinguished
1: paid
2: unpaid
* @type {string || null}
*/
this.IsConfirmed = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
this.Month = 'Month' in params ? params.Month : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.Page = 'Page' in params ? params.Page : null;
this.PayMode = 'PayMode' in params ? params.PayMode : null;
this.ActionType = 'ActionType' in params ? params.ActionType : null;
this.IsConfirmed = 'IsConfirmed' in params ? params.IsConfirmed : null;
}
}
/**
* QueryPendingSubAgentsV2 request structure.
* @class
*/
class QueryPendingSubAgentsV2Request extends AbstractModel {
constructor(){
super();
/**
* Page number. starts from 1.
* @type {number || null}
*/
this.Page = null;
/**
* Specifies the number of items per page. value range: supports up to 100.
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* QueryCreditAllocationHistory response structure.
* @class
*/
class QueryCreditAllocationHistoryResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of historical records.
* @type {number || null}
*/
this.Total = null;
/**
* Detailed list of historical information.
* @type {Array.<QueryCreditAllocationHistoryData> || null}
*/
this.History = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Total = 'Total' in params ? params.Total : null;
if (params.History) {
this.History = new Array();
for (let z in params.History) {
let obj = new QueryCreditAllocationHistoryData();
obj.deserialize(params.History[z]);
this.History.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateAccount request structure.
* @class
*/
class CreateAccountRequest extends AbstractModel {
constructor(){
super();
/**
* Account type of a new customer.
Valid values: `personal`, `company`.
* @type {string || null}
*/
this.AccountType = null;
/**
* Registered email address, which should be valid and correct.
such as "account@qq.com"
* @type {string || null}
*/
this.Mail = null;
/**
* Account password.
Length limit: 8-20 characters
A password must contain numbers, letters, and symbols (!@#$%^&*()). Space is not allowed.
* @type {string || null}
*/
this.Password = null;
/**
* The confirmed password, which must be the same as that entered in the `Password` field.
* @type {string || null}
*/
this.ConfirmPassword = null;
/**
* Customer's mobile number.
The caller needs to ensure the validity and correctness of the mobile number. A global mobile number within a range of 1-32 digits is allowed.
The system will perform binding limit verification of the mobile number you provide, allowing a maximum of 5 accounts per mobile number.
* @type {string || null}
*/
this.PhoneNum = null;
/**
* Customer's country/region code, which can be obtained via the [GetCountryCodes API](https://www.tencentcloud.com/document/product/1085/51416), such as "852".
Parameter value is not allowed to be 7,380,86.
* @type {string || null}
*/
this.CountryCode = null;
/**
* Customer's ISO2 standard country/region code, which can be obtained via the [GetCountryCodes API](https://www.tencentcloud.com/document/product/1085/51416). It should correspond to the `CountryCode` field, such as `HK`.
* @type {string || null}
*/
this.Area = null;
/**
* VerifyCode. This parameter is required.
Use the [SendVerifyCode API](https://www.tencentcloud.com/document/product/1085/65907) to obtain the verifycode.The SendVerifyCode API sends a 6-digit verifycode to your specified mobile number via SMS. After receiving it, you need to pass it along with other parameters.
* @type {string || null}
*/
this.VerifyCode = null;
/**
* Layer-1 industry id. This is a required item and can be obtained via the [ GetTradeConfigList API](https://www.tencentcloud.com/zh/document/product/1085/68181),
such as "kghy_01".
* @type {string || null}
*/
this.TradeOne = null;
/**
* Layer-2 industry id. This is a required item and can be obtained via the [ GetTradeConfigList API](https://www.tencentcloud.com/zh/document/product/1085/68181),
such as "kghy_0101"
* @type {string || null}
*/
this.TradeTwo = null;
/**
* Extension field, which is left empty by default.
* @type {string || null}
*/
this.Extended = null;
/**
* For individual customers, fill in the name. for corporate customers, fill in the full company name.Constraints:
1. Length: 2~200 characters
2. Customer name cannot be pure numbers
* @type {string || null}
*/
this.CustomerName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AccountType = 'AccountType' in params ? params.AccountType : null;
this.Mail = 'Mail' in params ? params.Mail : null;
this.Password = 'Password' in params ? params.Password : null;
this.ConfirmPassword = 'ConfirmPassword' in params ? params.ConfirmPassword : null;
this.PhoneNum = 'PhoneNum' in params ? params.PhoneNum : null;
this.CountryCode = 'CountryCode' in params ? params.CountryCode : null;
this.Area = 'Area' in params ? params.Area : null;
this.VerifyCode = 'VerifyCode' in params ? params.VerifyCode : null;
this.TradeOne = 'TradeOne' in params ? params.TradeOne : null;
this.TradeTwo = 'TradeTwo' in params ? params.TradeTwo : null;
this.Extended = 'Extended' in params ? params.Extended : null;
this.CustomerName = 'CustomerName' in params ? params.CustomerName : null;
}
}
/**
* DescribeBillSummary request structure.
* @class
*/
class DescribeBillSummaryRequest extends AbstractModel {
constructor(){
super();
/**
* The month to which the bill belongs, formatted as YYYY-MM.
* @type {string || null}
*/
this.Month = null;
/**
* Billing dimension. Optional parameters: product, project, tag
* @type {string || null}
*/
this.GroupType = null;
/**
* Tag value list
* @type {Array.<string> || null}
*/
this.TagKey = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Month = 'Month' in params ? params.Month : null;
this.GroupType = 'GroupType' in params ? params.GroupType : null;
this.TagKey = 'TagKey' in params ? params.TagKey : null;
}
}
/**
* QueryDirectCustomersCredit request structure.
* @class
*/
class QueryDirectCustomersCreditRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* Cost analysis filter input
* @class
*/
class CostAnalyzeFilter extends AbstractModel {
constructor(){
super();
/**
* <p>Contains product code</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.BusinessIn = null;
/**
* <p>Contains sub-product code</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.ProductIn = null;
/**
* <p>Contains region id</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.RegionIn = null;
/**
* <p>Contains transaction type</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.ActionTypeIn = null;
/**
* <p>Includes payment mode</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.PayModeIn = null;
/**
* <p>Include project name</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.ProjectIn = null;
/**
* <p>Contains payer uin</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.PayerUinIn = null;
/**
* <p>Tag key.</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TagKey = null;
/**
* <p>Tag value list</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.TagIn = null;
/**
* <p>Contains availability zones</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.ZoneIn = null;
/**
* <p>Owner uin</p>
* @type {Array.<string> || null}
*/
this.OwnerUinIn = null;
/**
* <p>Component type info</p>
* @type {Array.<string> || null}
*/
this.ComponentIn = null;
/**
* <p>Component name</p>
* @type {Array.<string> || null}
*/
this.ItemIn = null;
/**
* <p>Resource id information</p>
* @type {Array.<string> || null}
*/
this.ResourceIn = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BusinessIn = 'BusinessIn' in params ? params.BusinessIn : null;
this.ProductIn = 'ProductIn' in params ? params.ProductIn : null;
this.RegionIn = 'RegionIn' in params ? params.RegionIn : null;
this.ActionTypeIn = 'ActionTypeIn' in params ? params.ActionTypeIn : null;
this.PayModeIn = 'PayModeIn' in params ? params.PayModeIn : null;
this.ProjectIn = 'ProjectIn' in params ? params.ProjectIn : null;
this.PayerUinIn = 'PayerUinIn' in params ? params.PayerUinIn : null;
this.TagKey = 'TagKey' in params ? params.TagKey : null;
this.TagIn = 'TagIn' in params ? params.TagIn : null;
this.ZoneIn = 'ZoneIn' in params ? params.ZoneIn : null;
this.OwnerUinIn = 'OwnerUinIn' in params ? params.OwnerUinIn : null;
this.ComponentIn = 'ComponentIn' in params ? params.ComponentIn : null;
this.ItemIn = 'ItemIn' in params ? params.ItemIn : null;
this.ResourceIn = 'ResourceIn' in params ? params.ResourceIn : null;
}
}
/**
* Cost analysis dimension data
* @class
*/
class CostAnalyzeDimensionData extends AbstractModel {
constructor(){
super();
/**
* <p>Total number of entries by dimension statistics</p>
* @type {number || null}
*/
this.TotalCount = null;
/**
* <p>Sum value</p>
* @type {string || null}
*/
this.SumCost = null;
/**
* <p>Total amount by date dimension</p>
* @type {Array.<PeriodItemDetail> || null}
*/
this.PeriodItemDetail = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.SumCost = 'SumCost' in params ? params.SumCost : null;
if (params.PeriodItemDetail) {
this.PeriodItemDetail = new Array();
for (let z in params.PeriodItemDetail) {
let obj = new PeriodItemDetail();
obj.deserialize(params.PeriodItemDetail[z]);
this.PeriodItemDetail.push(obj);
}
}
}
}
/**
* Sub-customer credit balance data
* @class
*/
class QueryCustomerBillingQuotaData extends AbstractModel {
constructor(){
super();
/**
* Total credit limit (unit: usd), accurate down to two decimal places.
* @type {number || null}
*/
this.TotalCredit = null;
/**
* Remaining credit limit (unit: usd), accurate down to two decimal places.
* @type {number || null}
*/
this.RemainingCredit = null;
/**
* Remaining total voucher amount (unit: usd), accurate down to two decimal places.
* @type {number || null}
*/
this.RemainingVoucher = null;
/**
* Forced status.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Force = null;
/**
* Prepaid frozen amount.
* @type {number || null}
*/
this.PrepayFrozen = null;
/**
* Postpaid frozen amount.
* @type {number || null}
*/
this.PostpayFrozen = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCredit = 'TotalCredit' in params ? params.TotalCredit : null;
this.RemainingCredit = 'RemainingCredit' in params ? params.RemainingCredit : null;
this.RemainingVoucher = 'RemainingVoucher' in params ? params.RemainingVoucher : null;
this.Force = 'Force' in params ? params.Force : null;
this.PrepayFrozen = 'PrepayFrozen' in params ? params.PrepayFrozen : null;
this.PostpayFrozen = 'PostpayFrozen' in params ? params.PostpayFrozen : null;
}
}
/**
* QueryPartnerCredit request structure.
* @class
*/
class QueryPartnerCreditRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* GetTradeConfigList request structure.
* @class
*/
class GetTradeConfigListRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* DescribeBillSummaryByProduct request structure.
* @class
*/
class DescribeBillSummaryByProductRequest extends AbstractModel {
constructor(){
super();
/**
* Bill month in the format of "yyyy-MM"
* @type {string || null}
*/
this.BillMonth = null;
/**
* Customer UIN
* @type {number || null}
*/
this.CustomerUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BillMonth = 'BillMonth' in params ? params.BillMonth : null;
this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
}
}
/**
* DescribeBillDownloadUrl request structure.
* @class
*/
class DescribeBillDownloadUrlRequest extends AbstractModel {
constructor(){
super();
/**
* The month to which the bill belongs, formatted as YYYY-MM; the earliest month available for query is June, 2022. Current month's billing data may be inaccurate; please download the current month's bill after it is generated at 1:00 on the 5th of the next month.
* @type {string || null}
*/
this.Month = null;
/**
* Type of bill. Valid values: L2 or L3
* @type {string || null}
*/
this.FileType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Month = 'Month' in params ? params.Month : null;
this.FileType = 'FileType' in params ? params.FileType : null;
}
}
/**
* QueryPartnerCredit response structure.
* @class
*/
class QueryPartnerCreditResponse extends AbstractModel {
constructor(){
super();
/**
* Allocated credit
* @type {number || null}
*/
this.AllocatedCredit = null;
/**
* Total credit
* @type {number || null}
*/
this.TotalCredit = null;
/**
* Remaining credit
* @type {number || null}
*/
this.RemainingCredit = null;
/**
* Allocated quota for the client
* @type {number || null}
*/
this.CustomerTotalCredit = null;
/**
* Remaining quota for the client
* @type {number || null}
*/
this.CustomerRemainingCredit = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AllocatedCredit = 'AllocatedCredit' in params ? params.AllocatedCredit : null;
this.TotalCredit = 'TotalCredit' in params ? params.TotalCredit : null;
this.RemainingCredit = 'RemainingCredit' in params ? params.RemainingCredit : null;
this.CustomerTotalCredit = 'CustomerTotalCredit' in params ? params.CustomerTotalCredit : null;
this.CustomerRemainingCredit = 'CustomerRemainingCredit' in params ? params.CustomerRemainingCredit : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* QueryVoucherListByUin response structure.
* @class
*/
class QueryVoucherListByUinResponse extends AbstractModel {
constructor(){
super();
/**
* Customer voucher information
* @type {Array.<QueryVoucherListByUinItem> || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new QueryVoucherListByUinItem();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* QueryVoucherPool request structure.
* @class
*/
class QueryVoucherPoolRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* Voucher information of a single customer
* @class
*/
class QueryVoucherListByUinItem extends AbstractModel {
constructor(){
super();
/**
* Customer UIN
* @type {number || null}
*/
this.ClientUin = null;
/**
* The total number of vouchers
* @type {number || null}
*/
this.TotalCount = null;
/**
* Voucher details
* @type {Array.<QueryVoucherListByUinVoucherItem> || null}
*/
this.Data = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ClientUin = 'ClientUin' in params ? params.ClientUin : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new QueryVoucherListByUinVoucherItem();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
}
}
/**
* Policy product list entity response parameters structure.
* @class
*/
class PolicyProductList extends AbstractModel {
constructor(){
super();
/**
* Policy code.
* @type {string || null}
*/
this.PolicyCode = null;
/**
* The code of the ProductName field in the bill data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ProductCode = null;
/**
* The ProductName field value in the billing data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ProductName = null;
/**
* The code of the SubProduct field in the bill data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.SubProductCode = null;
/**
* The SubProduct field value in the billing data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.SubProductName = null;
/**
* The code of the ComponentType field in the bill data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ComponentTypeCode = null;
/**
* The ComponentType field value in the billing data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ComponentTypeName = null;
/**
* The code of the Component field in the bill data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ComponentCode = null;
/**
* The Component field value in the billing data. If the return value is *, any item at this level is included in the policy product range.
* @type {string || null}
*/
this.ComponentName = null;
/**
* Policy effective time.
* @type {string || null}
*/
this.StartDate = null;
/**
* Policy expiration time.
* @type {string || null}
*/
this.EndDate = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PolicyCode = 'PolicyCode' in params ? params.PolicyCode : null;
this.ProductCode = 'ProductCode' in params ? params.ProductCode : null;
this.ProductName = 'ProductName' in params ? params.ProductName : null;
this.SubProductCode = 'SubProductCode' in params ? params.SubProductCode : null;
this.SubProductName = 'SubProductName' in params ? params.SubProductName : null;
this.ComponentTypeCode = 'ComponentTypeCode' in params ? params.ComponentTypeCode : null;
this.ComponentTypeName = 'ComponentTypeName' in params ? params.ComponentTypeName : null;
this.ComponentCode = 'ComponentCode' in params ? params.ComponentCode : null;
this.ComponentName = 'ComponentName' in params ? params.ComponentName : null;
this.StartDate = 'StartDate' in params ? params.StartDate : null;
this.EndDate = 'EndDate' in params ? params.EndDate : null;
}
}
/**
* QueryCustomerBillingQuota response structure.
* @class
*/
class QueryCustomerBillingQuotaResponse extends AbstractModel {
constructor(){
super();
/**
* Limit data.
* @type {QueryCustomerBillingQuotaData || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new QueryCustomerBillingQ