UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,007 lines (935 loc) • 45.5 kB
/* * 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 models = require("./models"); const AbstractClient = require('../../common/abstract_client') const CreateAllocationUnitRequest = models.CreateAllocationUnitRequest; const DescribeBillAdjustInfoResponse = models.DescribeBillAdjustInfoResponse; const DescribeCostSummaryByProductRequest = models.DescribeCostSummaryByProductRequest; const DescribeBudgetResponse = models.DescribeBudgetResponse; const DescribeCPQBillingMappingRequest = models.DescribeCPQBillingMappingRequest; const ConsumptionBusinessSummaryDataItem = models.ConsumptionBusinessSummaryDataItem; const ModifyGatherRuleRequest = models.ModifyGatherRuleRequest; const BudgetWarn = models.BudgetWarn; const ModifyAllocationRuleRequest = models.ModifyAllocationRuleRequest; const DeleteAllocationRuleRequest = models.DeleteAllocationRuleRequest; const CreateAllocationRuleResponse = models.CreateAllocationRuleResponse; const BillTagInfo = models.BillTagInfo; const AllocationOverviewTotal = models.AllocationOverviewTotal; const CreateInstanceResponse = models.CreateInstanceResponse; const BudgetExtend = models.BudgetExtend; const ConditionBusiness = models.ConditionBusiness; const AnalyseActionTypeDetail = models.AnalyseActionTypeDetail; const DescribeBudgetRequest = models.DescribeBudgetRequest; const DescribeCostExplorerSummaryRequest = models.DescribeCostExplorerSummaryRequest; const BillBusinessLink = models.BillBusinessLink; const DescribeCostSummaryByProductResponse = models.DescribeCostSummaryByProductResponse; const DescribeAllocationTreeResponse = models.DescribeAllocationTreeResponse; const AllocationMonthOverviewDetail = models.AllocationMonthOverviewDetail; const AllocationTree = models.AllocationTree; const DescribeBillDetailForOrganizationResponse = models.DescribeBillDetailForOrganizationResponse; const BillDetailComponentConfig = models.BillDetailComponentConfig; const DescribeCostSummaryByResourceResponse = models.DescribeCostSummaryByResourceResponse; const DescribeBillSummaryByRegionRequest = models.DescribeBillSummaryByRegionRequest; const CreateBudgetRequest = models.CreateBudgetRequest; const AdjustInfoDetail = models.AdjustInfoDetail; const DescribeAllocateConditionsRequest = models.DescribeAllocateConditionsRequest; const CreateAllocationRuleRequest = models.CreateAllocationRuleRequest; const ConsumptionRegionSummaryDataItem = models.ConsumptionRegionSummaryDataItem; const DeleteBudgetResponse = models.DeleteBudgetResponse; const DescribeBillSummaryRequest = models.DescribeBillSummaryRequest; const DescribeBillResourceSummaryResponse = models.DescribeBillResourceSummaryResponse; const AllocationSummaryByItem = models.AllocationSummaryByItem; const TagSummaryOverviewItem = models.TagSummaryOverviewItem; const DescribeGatherRuleDetailRequest = models.DescribeGatherRuleDetailRequest; const DistributionBillDetail = models.DistributionBillDetail; const DescribeAllocationOverviewResponse = models.DescribeAllocationOverviewResponse; const DescribeDosageCosDetailByDateRequest = models.DescribeDosageCosDetailByDateRequest; const DeleteAllocationTagRequest = models.DeleteAllocationTagRequest; const OrderDto = models.OrderDto; const OperateRsp = models.OperateRsp; const BillDistributionResourceSummary = models.BillDistributionResourceSummary; const WaveThresholdForm = models.WaveThresholdForm; const BusinessSummaryInfo = models.BusinessSummaryInfo; const DescribeAllocationBillDetailRequest = models.DescribeAllocationBillDetailRequest; const DescribeBillSummaryByProductRequest = models.DescribeBillSummaryByProductRequest; const DescribeAllocationTrendByMonthRequest = models.DescribeAllocationTrendByMonthRequest; const AllocationUnit = models.AllocationUnit; const AllocationRationExpression = models.AllocationRationExpression; const DescribeVoucherUsageDetailsResponse = models.DescribeVoucherUsageDetailsResponse; const ResourceSpuSet = models.ResourceSpuSet; const ConsumptionSummaryTotal = models.ConsumptionSummaryTotal; const BudgetConditionsForm = models.BudgetConditionsForm; const DescribeAccountBalanceResponse = models.DescribeAccountBalanceResponse; const DescribeGatherResourceResponse = models.DescribeGatherResourceResponse; const DescribeAllocationSummaryByResourceRequest = models.DescribeAllocationSummaryByResourceRequest; const DescribeCostDetailResponse = models.DescribeCostDetailResponse; const DescribeAllocationMonthOverviewResponse = models.DescribeAllocationMonthOverviewResponse; const DescribeAllocationSummaryByItemResponse = models.DescribeAllocationSummaryByItemResponse; const DataForBudgetOperationLogPage = models.DataForBudgetOperationLogPage; const ModifyBudgetResponse = models.ModifyBudgetResponse; const DescribeGatherResourceRequest = models.DescribeGatherResourceRequest; const DescribeCostSummaryByProjectResponse = models.DescribeCostSummaryByProjectResponse; const AnalyseProjectDetail = models.AnalyseProjectDetail; const DescribeOrgMemberAccountBalanceData = models.DescribeOrgMemberAccountBalanceData; const DescribeBillSummaryByTagResponse = models.DescribeBillSummaryByTagResponse; const ModifyAllocationRuleResponse = models.ModifyAllocationRuleResponse; const SummaryDetail = models.SummaryDetail; const DescribeCPQBillingMappingResponse = models.DescribeCPQBillingMappingResponse; const DescribeAllocationUnitDetailResponse = models.DescribeAllocationUnitDetailResponse; const DescribeAllocationSummaryByBusinessResponse = models.DescribeAllocationSummaryByBusinessResponse; const DescribeAllocationSummaryByItemRequest = models.DescribeAllocationSummaryByItemRequest; const DescribeBillSummaryByTagRequest = models.DescribeBillSummaryByTagRequest; const AnalyseDetail = models.AnalyseDetail; const BillDays = models.BillDays; const RenewInstance = models.RenewInstance; const DescribeAllocationRuleSummaryResponse = models.DescribeAllocationRuleSummaryResponse; const AnalyseAmountDetail = models.AnalyseAmountDetail; const DescribeBillSummaryByProjectRequest = models.DescribeBillSummaryByProjectRequest; const CreateGatherRuleRequest = models.CreateGatherRuleRequest; const DescribeBillResourceSummaryForOrganizationRequest = models.DescribeBillResourceSummaryForOrganizationRequest; const DescribeBudgetRemindRecordListRequest = models.DescribeBudgetRemindRecordListRequest; const DescribeCostSummaryByRegionRequest = models.DescribeCostSummaryByRegionRequest; const SetRenewalRequest = models.SetRenewalRequest; const ConsumptionSummaryTrend = models.ConsumptionSummaryTrend; const DescribeBillDownloadUrlRequest = models.DescribeBillDownloadUrlRequest; const DescribeAllocationOverviewRequest = models.DescribeAllocationOverviewRequest; const DescribeAllocationSummaryByBusinessRequest = models.DescribeAllocationSummaryByBusinessRequest; const CreateBudgetResponse = models.CreateBudgetResponse; const DescribeBillSummaryByPayModeRequest = models.DescribeBillSummaryByPayModeRequest; const DeleteGatherRuleResponse = models.DeleteGatherRuleResponse; const DescribeAllocationBillConditionsRequest = models.DescribeAllocationBillConditionsRequest; const ApplicableProducts = models.ApplicableProducts; const AllocationSummaryByResource = models.AllocationSummaryByResource; const DescribeAllocationRuleDetailRequest = models.DescribeAllocationRuleDetailRequest; const AllocationOverviewNode = models.AllocationOverviewNode; const ConditionPayMode = models.ConditionPayMode; const BillProductLink = models.BillProductLink; const AllocationTreeNode = models.AllocationTreeNode; const GatherRuleSummary = models.GatherRuleSummary; const PayDealsResponse = models.PayDealsResponse; const DescribeCostSummaryByProjectRequest = models.DescribeCostSummaryByProjectRequest; const BillDetailAssociatedOrder = models.BillDetailAssociatedOrder; const BillDetail = models.BillDetail; const DescribeBillDetailResponse = models.DescribeBillDetailResponse; const Deal = models.Deal; const ProjectSummaryOverviewItem = models.ProjectSummaryOverviewItem; const DescribeDealsByCondResponse = models.DescribeDealsByCondResponse; const BillZoneId = models.BillZoneId; const BillRegion = models.BillRegion; const DescribeBillSummaryByProjectResponse = models.DescribeBillSummaryByProjectResponse; const DescribeBillAdjustInfoRequest = models.DescribeBillAdjustInfoRequest; const DeleteAllocationRuleResponse = models.DeleteAllocationRuleResponse; const TagDataInfo = models.TagDataInfo; const DescribeRenewInstancesRequest = models.DescribeRenewInstancesRequest; const PayDealsRequest = models.PayDealsRequest; const SummaryTotal = models.SummaryTotal; const DescribeOrgMemberAccountBalanceRequest = models.DescribeOrgMemberAccountBalanceRequest; const BusinessSummaryTotal = models.BusinessSummaryTotal; const DescribeAllocationBillConditionsResponse = models.DescribeAllocationBillConditionsResponse; const CostComponentSet = models.CostComponentSet; const RenewInstanceResponse = models.RenewInstanceResponse; const AnalyseHeaderDetail = models.AnalyseHeaderDetail; const DescribeAllocationMonthOverviewRequest = models.DescribeAllocationMonthOverviewRequest; const AllocationOverviewDetail = models.AllocationOverviewDetail; const AnalysePayModeDetail = models.AnalysePayModeDetail; const AllocationBillTrendDetail = models.AllocationBillTrendDetail; const DescribeBillSummaryResponse = models.DescribeBillSummaryResponse; const TagsForm = models.TagsForm; const AnalyseOwnerUinDetail = models.AnalyseOwnerUinDetail; const Conditions = models.Conditions; const AnalyseTimeDetail = models.AnalyseTimeDetail; const RefundInstanceRequest = models.RefundInstanceRequest; const BillOwnerUin = models.BillOwnerUin; const AllocationRule = models.AllocationRule; const RegionSummaryOverviewItem = models.RegionSummaryOverviewItem; const ConsumptionProjectSummaryDataItem = models.ConsumptionProjectSummaryDataItem; const AnalyseRegionDetail = models.AnalyseRegionDetail; const ProductInfo = models.ProductInfo; const BudgetInfoDiffEntity = models.BudgetInfoDiffEntity; const DescribeBudgetOperationLogResponse = models.DescribeBudgetOperationLogResponse; const AllocationDetail = models.AllocationDetail; const VoucherInfos = models.VoucherInfos; const DescribeAllocationUnitDetailRequest = models.DescribeAllocationUnitDetailRequest; const DescribeBillSummaryForOrganizationRequest = models.DescribeBillSummaryForOrganizationRequest; const AllocationSummaryByBusiness = models.AllocationSummaryByBusiness; const CreateInstanceRequest = models.CreateInstanceRequest; const AllocationStat = models.AllocationStat; const ModifyBudgetRequest = models.ModifyBudgetRequest; const DescribeOrgMemberAccountBalanceResponse = models.DescribeOrgMemberAccountBalanceResponse; const BillProject = models.BillProject; const ActionSummaryOverviewItem = models.ActionSummaryOverviewItem; const DescribeBillDetailForOrganizationRequest = models.DescribeBillDetailForOrganizationRequest; const DescribeVoucherUsageDetailsRequest = models.DescribeVoucherUsageDetailsRequest; const DescribeBillResourceSummaryRequest = models.DescribeBillResourceSummaryRequest; const DescribeRenewInstancesResponse = models.DescribeRenewInstancesResponse; const BillDetailComponent = models.BillDetailComponent; const ConditionRegion = models.ConditionRegion; const AllocationAverageData = models.AllocationAverageData; const ConsumptionResourceSummaryConditionValue = models.ConsumptionResourceSummaryConditionValue; const DescribeCostSummaryByRegionResponse = models.DescribeCostSummaryByRegionResponse; const DescribeCostDetailRequest = models.DescribeCostDetailRequest; const BudgetSendInfoDto = models.BudgetSendInfoDto; const RenewInstanceRequest = models.RenewInstanceRequest; const DescribeBillSummaryForOrganizationResponse = models.DescribeBillSummaryForOrganizationResponse; const BillOperateUin = models.BillOperateUin; const DescribeTagListRequest = models.DescribeTagListRequest; const DescribeBillResourceSummaryForOrganizationResponse = models.DescribeBillResourceSummaryForOrganizationResponse; const DescribeAllocationTreeRequest = models.DescribeAllocationTreeRequest; const DescribeCostSummaryByResourceRequest = models.DescribeCostSummaryByResourceRequest; const CreateAllocationTagRequest = models.CreateAllocationTagRequest; const ExcludedProducts = models.ExcludedProducts; const PayModeSummaryOverviewItem = models.PayModeSummaryOverviewItem; const BillBusiness = models.BillBusiness; const BudgetRemindRecords = models.BudgetRemindRecords; const DescribeAllocationRuleDetailResponse = models.DescribeAllocationRuleDetailResponse; const SetRenewalResponse = models.SetRenewalResponse; const UsageDetails = models.UsageDetails; const DescribeBillSummaryByPayModeResponse = models.DescribeBillSummaryByPayModeResponse; const BillInstanceType = models.BillInstanceType; const AnalyseBusinessDetail = models.AnalyseBusinessDetail; const AnalyseConditions = models.AnalyseConditions; const DeleteAllocationTagResponse = models.DeleteAllocationTagResponse; const BudgetInfoApiResponse = models.BudgetInfoApiResponse; const CostDetail = models.CostDetail; const DescribeBudgetOperationLogRequest = models.DescribeBudgetOperationLogRequest; const DescribeBillSummaryByProductResponse = models.DescribeBillSummaryByProductResponse; const DescribeAllocationRuleSummaryRequest = models.DescribeAllocationRuleSummaryRequest; const UinTempAmountModel = models.UinTempAmountModel; const CreateAllocationTagResponse = models.CreateAllocationTagResponse; const ModifyAllocationUnitRequest = models.ModifyAllocationUnitRequest; const DescribeBillDownloadUrlResponse = models.DescribeBillDownloadUrlResponse; const ConsumptionResourceSummaryDataItem = models.ConsumptionResourceSummaryDataItem; const ModifyGatherRuleResponse = models.ModifyGatherRuleResponse; const DescribeAccountBalanceRequest = models.DescribeAccountBalanceRequest; const DescribeBillDetailRequest = models.DescribeBillDetailRequest; const AnalyseZoneDetail = models.AnalyseZoneDetail; const DescribeVoucherInfoResponse = models.DescribeVoucherInfoResponse; const AllocationRulesSummary = models.AllocationRulesSummary; const DeleteGatherRuleRequest = models.DeleteGatherRuleRequest; const DataForBudgetInfoPage = models.DataForBudgetInfoPage; const BudgetOperationLogEntity = models.BudgetOperationLogEntity; const DescribeAllocationBillDetailResponse = models.DescribeAllocationBillDetailResponse; const BusinessSummaryOverviewItem = models.BusinessSummaryOverviewItem; const CreateGatherRuleResponse = models.CreateGatherRuleResponse; const BillTag = models.BillTag; const DescribeAllocateConditionsResponse = models.DescribeAllocateConditionsResponse; const DescribeVoucherInfoRequest = models.DescribeVoucherInfoRequest; const UsageRecords = models.UsageRecords; const DescribeBudgetRemindRecordListResponse = models.DescribeBudgetRemindRecordListResponse; const BillComponent = models.BillComponent; const DescribeBillSummaryByRegionResponse = models.DescribeBillSummaryByRegionResponse; const BudgetRemindRecordList = models.BudgetRemindRecordList; const DeleteBudgetRequest = models.DeleteBudgetRequest; const BillActionType = models.BillActionType; const GatherResourceSummary = models.GatherResourceSummary; const DescribeDealsByCondRequest = models.DescribeDealsByCondRequest; const DescribeAllocationSummaryByResourceResponse = models.DescribeAllocationSummaryByResourceResponse; const CreateAllocationUnitResponse = models.CreateAllocationUnitResponse; const DescribeDosageCosDetailByDateResponse = models.DescribeDosageCosDetailByDateResponse; const BillItem = models.BillItem; const DeleteAllocationUnitRequest = models.DeleteAllocationUnitRequest; const RefundInstanceResponse = models.RefundInstanceResponse; const AllocationRuleExpression = models.AllocationRuleExpression; const BillProduct = models.BillProduct; const DeleteAllocationUnitResponse = models.DeleteAllocationUnitResponse; const ConditionProject = models.ConditionProject; const DescribeTagListResponse = models.DescribeTagListResponse; const CosDetailSets = models.CosDetailSets; const BudgetPlan = models.BudgetPlan; const BillPayMode = models.BillPayMode; const DescribeAllocationTrendByMonthResponse = models.DescribeAllocationTrendByMonthResponse; const ModifyAllocationUnitResponse = models.ModifyAllocationUnitResponse; const DescribeGatherRuleDetailResponse = models.DescribeGatherRuleDetailResponse; const AnalyseConditionDetail = models.AnalyseConditionDetail; const BillResourceSummary = models.BillResourceSummary; const AnalyseHeaderTimeDetail = models.AnalyseHeaderTimeDetail; const DescribeCostExplorerSummaryResponse = models.DescribeCostExplorerSummaryResponse; const AllocationRuleOverview = models.AllocationRuleOverview; /** * billing client * @class */ class BillingClient extends AbstractClient { constructor(credential, region, profile) { super("billing.intl.tencentcloudapi.com", "2018-07-09", credential, region, profile); } /** * Notes: 1. This API supports querying annual and monthly subscription instances integrated into the renewal management page, including running and isolated instances (some products unsupported). 2. When using this API, a sub-user should have the QcloudFinanceRenewManageFullAccess permission policy. * @param {DescribeRenewInstancesRequest} req * @param {function(string, DescribeRenewInstancesResponse):void} cb * @public */ DescribeRenewInstances(req, cb) { let resp = new DescribeRenewInstancesResponse(); this.request("DescribeRenewInstances", req, resp, cb); } /** * This API is used to get pay-on-behalf bills of the admin account (bill details). Note: The API request may fail due to network instability or other exceptions. In this case, we recommend you manually retry the request when the API request fails. * @param {DescribeBillDetailForOrganizationRequest} req * @param {function(string, DescribeBillDetailForOrganizationResponse):void} cb * @public */ DescribeBillDetailForOrganization(req, cb) { let resp = new DescribeBillDetailForOrganizationResponse(); this.request("DescribeBillDetailForOrganization", req, resp, cb); } /** * Delete a collection rule. * @param {DeleteGatherRuleRequest} req * @param {function(string, DeleteGatherRuleResponse):void} cb * @public */ DeleteGatherRule(req, cb) { let resp = new DeleteGatherRuleResponse(); this.request("DeleteGatherRule", req, resp, cb); } /** * This API is used to obtain consumption details summarized by resource. * @param {DescribeCostSummaryByResourceRequest} req * @param {function(string, DescribeCostSummaryByResourceResponse):void} cb * @public */ DescribeCostSummaryByResource(req, cb) { let resp = new DescribeCostSummaryByResourceResponse(); this.request("DescribeCostSummaryByResource", req, resp, cb); } /** * This API is used to obtain consumption details summarized by region. * @param {DescribeCostSummaryByRegionRequest} req * @param {function(string, DescribeCostSummaryByRegionResponse):void} cb * @public */ DescribeCostSummaryByRegion(req, cb) { let resp = new DescribeCostSummaryByRegionResponse(); this.request("DescribeCostSummaryByRegion", req, resp, cb); } /** * This API is used to query the details of a cost allocation bill by resource. * @param {DescribeAllocationSummaryByResourceRequest} req * @param {function(string, DescribeAllocationSummaryByResourceResponse):void} cb * @public */ DescribeAllocationSummaryByResource(req, cb) { let resp = new DescribeAllocationSummaryByResourceResponse(); this.request("DescribeAllocationSummaryByResource", req, resp, cb); } /** * This API is used to query all sharing rule overviews. * @param {DescribeAllocationRuleSummaryRequest} req * @param {function(string, DescribeAllocationRuleSummaryResponse):void} cb * @public */ DescribeAllocationRuleSummary(req, cb) { let resp = new DescribeAllocationRuleSummaryResponse(); this.request("DescribeAllocationRuleSummary", req, resp, cb); } /** * This API is used to get the bill summarized by instance. * @param {DescribeBillResourceSummaryRequest} req * @param {function(string, DescribeBillResourceSummaryResponse):void} cb * @public */ DescribeBillResourceSummary(req, cb) { let resp = new DescribeBillResourceSummaryResponse(); this.request("DescribeBillResourceSummary", req, resp, cb); } /** * Delete a cost allocation unit. * @param {DeleteAllocationUnitRequest} req * @param {function(string, DeleteAllocationUnitResponse):void} cb * @public */ DeleteAllocationUnit(req, cb) { let resp = new DeleteAllocationUnitResponse(); this.request("DeleteAllocationUnit", req, resp, cb); } /** * This API is used to query the filter conditions of a resource directory. * @param {DescribeAllocateConditionsRequest} req * @param {function(string, DescribeAllocateConditionsResponse):void} cb * @public */ DescribeAllocateConditions(req, cb) { let resp = new DescribeAllocateConditionsResponse(); this.request("DescribeAllocateConditions", req, resp, cb); } /** * Create budget information * @param {CreateBudgetRequest} req * @param {function(string, CreateBudgetResponse):void} cb * @public */ CreateBudget(req, cb) { let resp = new CreateBudgetResponse(); this.request("CreateBudget", req, resp, cb); } /** * Return budget alert records, including budget period, detection time, notification time, reminder type, and content. * @param {DescribeBudgetRemindRecordListRequest} req * @param {function(string, DescribeBudgetRemindRecordListResponse):void} cb * @public */ DescribeBudgetRemindRecordList(req, cb) { let resp = new DescribeBudgetRemindRecordListResponse(); this.request("DescribeBudgetRemindRecordList", req, resp, cb); } /** * This API is used to query the daily overview of a cost allocation bill. * @param {DescribeAllocationOverviewRequest} req * @param {function(string, DescribeAllocationOverviewResponse):void} cb * @public */ DescribeAllocationOverview(req, cb) { let resp = new DescribeAllocationOverviewResponse(); this.request("DescribeAllocationOverview", req, resp, cb); } /** * This API is used to create allocation units. * @param {CreateAllocationUnitRequest} req * @param {function(string, CreateAllocationUnitResponse):void} cb * @public */ CreateAllocationUnit(req, cb) { let resp = new CreateAllocationUnitResponse(); this.request("CreateAllocationUnit", req, resp, cb); } /** * This API is used to batch set cost allocation tags. * @param {CreateAllocationTagRequest} req * @param {function(string, CreateAllocationTagResponse):void} cb * @public */ CreateAllocationTag(req, cb) { let resp = new CreateAllocationTagResponse(); this.request("CreateAllocationTag", req, resp, cb); } /** * Delete the corresponding budget project based on the budget ID * @param {DeleteBudgetRequest} req * @param {function(string, DeleteBudgetResponse):void} cb * @public */ DeleteBudget(req, cb) { let resp = new DeleteBudgetResponse(); this.request("DeleteBudget", req, resp, cb); } /** * This API is used to query vouchers. * @param {DescribeVoucherInfoRequest} req * @param {function(string, DescribeVoucherInfoResponse):void} cb * @public */ DescribeVoucherInfo(req, cb) { let resp = new DescribeVoucherInfoResponse(); this.request("DescribeVoucherInfo", req, resp, cb); } /** * This API is used to obtain consumption details summarized by project. * @param {DescribeCostSummaryByProjectRequest} req * @param {function(string, DescribeCostSummaryByProjectResponse):void} cb * @public */ DescribeCostSummaryByProject(req, cb) { let resp = new DescribeCostSummaryByProjectResponse(); this.request("DescribeCostSummaryByProject", req, resp, cb); } /** * This API is used to view cost analysis details. * @param {DescribeCostExplorerSummaryRequest} req * @param {function(string, DescribeCostExplorerSummaryResponse):void} cb * @public */ DescribeCostExplorerSummary(req, cb) { let resp = new DescribeCostExplorerSummaryResponse(); this.request("DescribeCostExplorerSummary", req, resp, cb); } /** * This API is used to get pay-on-behalf bills of the admin account (bills by instance). * @param {DescribeBillResourceSummaryForOrganizationRequest} req * @param {function(string, DescribeBillResourceSummaryForOrganizationResponse):void} cb * @public */ DescribeBillResourceSummaryForOrganization(req, cb) { let resp = new DescribeBillResourceSummaryForOrganizationResponse(); this.request("DescribeBillResourceSummaryForOrganization", req, resp, cb); } /** * u200cThis API is used to get bill details. Note: 1. The API request may fail due to network instability or other exceptions. In this case, we recommend you manually retry the request when the API request fails. 2.If the volume of your bill data is high (for example, if over 200 thousand bill entries are generated for a month), bill data query via APIs may be slow. We recommend you enable bill storage so that you can obtain bill files from COS buckets for analysis. For details, see [Saving Bills to COS](https://intl.cloud.tencent.com/document/product/555/61275?from_cn_redirect=1). * @param {DescribeBillDetailRequest} req * @param {function(string, DescribeBillDetailResponse):void} cb * @public */ DescribeBillDetail(req, cb) { let resp = new DescribeBillDetailResponse(); this.request("DescribeBillDetail", req, resp, cb); } /** * Notes: 1. This API supports setting auto-renewal mode and period for annual and monthly subscription instances. 2. Obtain the product code and region code through an instance query API. 3. When using this API, a sub-user must possess the QcloudFinanceRenewManageFullAccess permission policy. * @param {SetRenewalRequest} req * @param {function(string, SetRenewalResponse):void} cb * @public */ SetRenewal(req, cb) { let resp = new SetRenewalResponse(); this.request("SetRenewal", req, resp, cb); } /** * This API is used to get bill details by product, project, region, billing mode, and tag by passing in parameters. * @param {DescribeBillSummaryRequest} req * @param {function(string, DescribeBillSummaryResponse):void} cb * @public */ DescribeBillSummary(req, cb) { let resp = new DescribeBillSummaryResponse(); this.request("DescribeBillSummary", req, resp, cb); } /** * Delete sharing rule interface. * @param {DeleteAllocationRuleRequest} req * @param {function(string, DeleteAllocationRuleResponse):void} cb * @public */ DeleteAllocationRule(req, cb) { let resp = new DeleteAllocationRuleResponse(); this.request("DeleteAllocationRule", req, resp, cb); } /** * This API is used to get the bill summarized by billing mode. * @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 query sharing rule details. * @param {DescribeAllocationRuleDetailRequest} req * @param {function(string, DescribeAllocationRuleDetailResponse):void} cb * @public */ DescribeAllocationRuleDetail(req, cb) { let resp = new DescribeAllocationRuleDetailResponse(); this.request("DescribeAllocationRuleDetail", req, resp, cb); } /** * This API is used to query COS usage details. * @param {DescribeDosageCosDetailByDateRequest} req * @param {function(string, DescribeDosageCosDetailByDateResponse):void} cb * @public */ DescribeDosageCosDetailByDate(req, cb) { let resp = new DescribeDosageCosDetailByDateResponse(); this.request("DescribeDosageCosDetailByDate", req, resp, cb); } /** * This API is used to query voucher usage details. * @param {DescribeVoucherUsageDetailsRequest} req * @param {function(string, DescribeVoucherUsageDetailsResponse):void} cb * @public */ DescribeVoucherUsageDetails(req, cb) { let resp = new DescribeVoucherUsageDetailsResponse(); this.request("DescribeVoucherUsageDetails", req, resp, cb); } /** * Edit a collection rule. * @param {ModifyGatherRuleRequest} req * @param {function(string, ModifyGatherRuleResponse):void} cb * @public */ ModifyGatherRule(req, cb) { let resp = new ModifyGatherRuleResponse(); this.request("ModifyGatherRule", req, resp, cb); } /** * This API is used to query the cost trend of a cost allocation bill. * @param {DescribeAllocationTrendByMonthRequest} req * @param {function(string, DescribeAllocationTrendByMonthResponse):void} cb * @public */ DescribeAllocationTrendByMonth(req, cb) { let resp = new DescribeAllocationTrendByMonthResponse(); this.request("DescribeAllocationTrendByMonth", req, resp, cb); } /** * This API is used to get bill download URLs for L0, L1, L2, and L3 bills and bill packs. * @param {DescribeBillDownloadUrlRequest} req * @param {function(string, DescribeBillDownloadUrlResponse):void} cb * @public */ DescribeBillDownloadUrl(req, cb) { let resp = new DescribeBillDownloadUrlResponse(); this.request("DescribeBillDownloadUrl", req, resp, cb); } /** * Create a collection rule. * @param {CreateGatherRuleRequest} req * @param {function(string, CreateGatherRuleResponse):void} cb * @public */ CreateGatherRule(req, cb) { let resp = new CreateGatherRuleResponse(); this.request("CreateGatherRule", req, resp, cb); } /** * This API is used to query the filter conditions of a cost allocation bill. * @param {DescribeAllocationBillConditionsRequest} req * @param {function(string, DescribeAllocationBillConditionsResponse):void} cb * @public */ DescribeAllocationBillConditions(req, cb) { let resp = new DescribeAllocationBillConditionsResponse(); this.request("DescribeAllocationBillConditions", req, resp, cb); } /** * Refresh budget information * @param {ModifyBudgetRequest} req * @param {function(string, ModifyBudgetResponse):void} cb * @public */ ModifyBudget(req, cb) { let resp = new ModifyBudgetResponse(); this.request("ModifyBudget", req, resp, cb); } /** * This API is used to check the Tencent Cloud account balance. * @param {DescribeAccountBalanceRequest} req * @param {function(string, DescribeAccountBalanceResponse):void} cb * @public */ DescribeAccountBalance(req, cb) { let resp = new DescribeAccountBalanceResponse(); this.request("DescribeAccountBalance", req, resp, cb); } /** * This API is used to query the cost tree. * @param {DescribeAllocationTreeRequest} req * @param {function(string, DescribeAllocationTreeResponse):void} cb * @public */ DescribeAllocationTree(req, cb) { let resp = new DescribeAllocationTreeResponse(); this.request("DescribeAllocationTree", req, resp, cb); } /** * Creating an instance resource will generate an order for the newly purchased instance resource and automatically complete the payment using the balance of the Tencent Cloud account. The account calling this API must be granted the finace:trade permission; otherwise, the payment will fail. Currently, the integrated and supported product for purchase includes: Cloud Firewall. * @param {CreateInstanceRequest} req * @param {function(string, CreateInstanceResponse):void} cb * @public */ CreateInstance(req, cb) { let resp = new CreateInstanceResponse(); this.request("CreateInstance", req, resp, cb); } /** * Query the details of a cost allocation unit. * @param {DescribeAllocationUnitDetailRequest} req * @param {function(string, DescribeAllocationUnitDetailResponse):void} cb * @public */ DescribeAllocationUnitDetail(req, cb) { let resp = new DescribeAllocationUnitDetailResponse(); this.request("DescribeAllocationUnitDetail", req, resp, cb); } /** * This API is used to get cost allocation tags. * @param {DescribeTagListRequest} req * @param {function(string, DescribeTagListResponse):void} cb * @public */ DescribeTagList(req, cb) { let resp = new DescribeTagListResponse(); this.request("DescribeTagList", req, resp, cb); } /** * This API is used to query whether there is a bill adjustment for the current UIN through API. Customers can obtain bill adjustment status faster and proactively. * @param {DescribeBillAdjustInfoRequest} req * @param {function(string, DescribeBillAdjustInfoResponse):void} cb * @public */ DescribeBillAdjustInfo(req, cb) { let resp = new DescribeBillAdjustInfoResponse(); this.request("DescribeBillAdjustInfo", req, resp, cb); } /** * This API is used to query the details of a cost allocation bill. * @param {DescribeAllocationBillDetailRequest} req * @param {function(string, DescribeAllocationBillDetailResponse):void} cb * @public */ DescribeAllocationBillDetail(req, cb) { let resp = new DescribeAllocationBillDetailResponse(); this.request("DescribeAllocationBillDetail", req, resp, cb); } /** * Gets the bill summarized according to region * @param {DescribeBillSummaryByRegionRequest} req * @param {function(string, DescribeBillSummaryByRegionResponse):void} cb * @public */ DescribeBillSummaryByRegion(req, cb) { let resp = new DescribeBillSummaryByRegionResponse(); this.request("DescribeBillSummaryByRegion", req, resp, cb); } /** * Gets the bill summarized according to project * @param {DescribeBillSummaryByProjectRequest} req * @param {function(string, DescribeBillSummaryByProjectResponse):void} cb * @public */ DescribeBillSummaryByProject(req, cb) { let resp = new DescribeBillSummaryByProjectResponse(); this.request("DescribeBillSummaryByProject", req, resp, cb); } /** * This API is used to query the monthly overview of a cost allocation bill. * @param {DescribeAllocationMonthOverviewRequest} req * @param {function(string, DescribeAllocationMonthOverviewResponse):void} cb * @public */ DescribeAllocationMonthOverview(req, cb) { let resp = new DescribeAllocationMonthOverviewResponse(); this.request("DescribeAllocationMonthOverview", req, resp, cb); } /** * Create a sharing rule. * @param {CreateAllocationRuleRequest} req * @param {function(string, CreateAllocationRuleResponse):void} cb * @public */ CreateAllocationRule(req, cb) { let resp = new CreateAllocationRuleResponse(); this.request("CreateAllocationRule", req, resp, cb); } /** * This API is used to get the cost distribution over different tags. * @param {DescribeBillSummaryByTagRequest} req * @param {function(string, DescribeBillSummaryByTagResponse):void} cb * @public */ DescribeBillSummaryByTag(req, cb) { let resp = new DescribeBillSummaryByTagResponse(); this.request("DescribeBillSummaryByTag", req, resp, cb); } /** * This API is used to get bills summarized by product, project, region, billing mode, and tag by passing in parameters. * @param {DescribeBillSummaryForOrganizationRequest} req * @param {function(string, DescribeBillSummaryForOrganizationResponse):void} cb * @public */ DescribeBillSummaryForOrganization(req, cb) { let resp = new DescribeBillSummaryForOrganizationResponse(); this.request("DescribeBillSummaryForOrganization", req, resp, cb); } /** * This API is used to query the details of a cost allocation bill by resource. * @param {DescribeGatherResourceRequest} req * @param {function(string, DescribeGatherResourceResponse):void} cb * @public */ DescribeGatherResource(req, cb) { let resp = new DescribeGatherResourceResponse(); this.request("DescribeGatherResource", req, resp, cb); } /** * Query member available balance in batches * @param {DescribeOrgMemberAccountBalanceRequest} req * @param {function(string, DescribeOrgMemberAccountBalanceResponse):void} cb * @public */ DescribeOrgMemberAccountBalance(req, cb) { let resp = new DescribeOrgMemberAccountBalanceResponse(); this.request("DescribeOrgMemberAccountBalance", req, resp, cb); } /** * Retrieve budget details * @param {DescribeBudgetRequest} req * @param {function(string, DescribeBudgetResponse):void} cb * @public */ DescribeBudget(req, cb) { let resp = new DescribeBudgetResponse(); this.request("DescribeBudget", req, resp, cb); } /** * Renewing an instance: when calling this API to renew a server, ensure that your Tencent Cloud account has sufficient balance; otherwise, the renewal will fail. The account calling this API must be granted the finace:tradepermission; otherwise, the renewal will fail. Currently, the integrated and supported product for renewal includes: Cloud Firewall. * @param {RenewInstanceRequest} req * @param {function(string, RenewInstanceResponse):void} cb * @public */ RenewInstance(req, cb) { let resp = new RenewInstanceResponse(); this.request("RenewInstance", req, resp, cb); } /** * This API is used to modify cost allocation unit information. * @param {ModifyAllocationUnitRequest} req * @param {function(string, ModifyAllocationUnitResponse):void} cb * @public */ ModifyAllocationUnit(req, cb) { let resp = new ModifyAllocationUnitResponse(); this.request("ModifyAllocationUnit", req, resp, cb); } /** * This API is used to query the details of a cost allocation bill by product. * @param {DescribeAllocationSummaryByBusinessRequest} req * @param {function(string, DescribeAllocationSummaryByBusinessResponse):void} cb * @public */ DescribeAllocationSummaryByBusiness(req, cb) { let resp = new DescribeAllocationSummaryByBusinessResponse(); this.request("DescribeAllocationSummaryByBusiness", req, resp, cb); } /** * This API is used to pay for an order. * @param {PayDealsRequest} req * @param {function(string, PayDealsResponse):void} cb * @public */ PayDeals(req, cb) { let resp = new PayDealsResponse(); this.request("PayDeals", req, resp, cb); } /** * Query budget modification records * @param {DescribeBudgetOperationLogRequest} req * @param {function(string, DescribeBudgetOperationLogResponse):void} cb * @public */ DescribeBudgetOperationLog(req, cb) { let resp = new DescribeBudgetOperationLogResponse(); this.request("DescribeBudgetOperationLog", req, resp, cb); } /** * u200cThis API is used to batch cancel cost allocation tags. * @param {DeleteAllocationTagRequest} req * @param {function(string, DeleteAllocationTagResponse):void} cb * @public */ DeleteAllocationTag(req, cb) { let resp = new DeleteAllocationTagResponse(); this.request("DeleteAllocationTag", req, resp, cb); } /** * Querying orders * @param {DescribeDealsByCondRequest} req * @param {function(string, DescribeDealsByCondResponse):void} cb * @public */ DescribeDealsByCond(req, cb) { let resp = new DescribeDealsByCondResponse(); this.request("DescribeDealsByCond", req, resp, cb); } /** * This API is used to query the collection rule details. * @param {DescribeGatherRuleDetailRequest} req * @param {function(string, DescribeGatherRuleDetailResponse):void} cb * @public */ DescribeGatherRuleDetail(req, cb) { let resp = new DescribeGatherRuleDetailResponse(); this.request("DescribeGatherRuleDetail", req, resp, cb); } /** * To unsubscribe from an unneeded instance, only the actual payment amount will be refunded, any used vouchers will not be returned. The refunded amount will be credited to your Tencent Cloud account balance by default.The account calling this API must be granted the finace:RefundInstance permission; otherwise, the refund process will fail. Currently, the integrated and supported product for this operation includes: Cloud Firewall. * @param {RefundInstanceRequest} req * @param {function(string, RefundInstanceResponse):void} cb * @public */ RefundInstance(req, cb) { let resp = new RefundInstanceResponse(); this.request("RefundInstance", req, resp, cb); } /** * Query the four-layer matching relationship between the quoted product name and billing products * @param {DescribeCPQBillingMappingRequest} req * @param {function(string, DescribeCPQBillingMappingResponse):void} cb * @public */ DescribeCPQBillingMapping(req, cb) { let resp = new DescribeCPQBillingMappingResponse(); this.request("DescribeCPQBillingMapping", req, resp, cb); } /** * This API is used to query the details of a cost allocation bill by item. * @param {DescribeAllocationSummaryByItemRequest} req * @param {function(string, DescribeAllocationSummaryByItemResponse):void} cb * @public */ DescribeAllocationSummaryByItem(req, cb) { let resp = new DescribeAllocationSummaryByItemResponse(); this.request("DescribeAllocationSummaryByItem", req, resp, cb); } /** * Gets the bill summarized according to product * @param {DescribeBillSummaryByProductRequest} req * @param {function(string, DescribeBillSummaryByProductResponse):void} cb * @public */ DescribeBillSummaryByProduct(req, cb) { let resp = new DescribeBillSummaryByProductResponse(); this.request("DescribeBillSummaryByProduct", req, resp, cb); } /** * Edit sharing rules. * @param {ModifyAllocationRuleRequest} req * @param {function(string, ModifyAllocationRuleResponse):void} cb * @public */ ModifyAllocationRule(req, cb) { let resp = new ModifyAllocationRuleResponse(); this.request("ModifyAllocationRule", req, resp, cb); } /** * This API is used to obtain consumption details summarized by product. * @param {DescribeCostSummaryByProductRequest} req * @param {function(string, DescribeCostSummaryByProductResponse):void} cb * @public */ DescribeCostSummaryByProduct(req, cb) { let resp = new DescribeCostSummaryByProductResponse(); this.request("DescribeCostSummaryByProduct", req, resp, cb); } /** * This API is used to query consumption details. Notes: For customers with large-scale consumption detail (for example, monthly consumption detail exceeding 1M), there will be a timeout risk when retrieving detailed data via API call. It is recommended to enable the billing data storage function and analyze bill files obtained in a bucket. [Store bills to COS](https://www.tencentcloud.com/document/product/555/61275?from_cn_redirect=1) * @param {DescribeCostDetailRequest} req * @param {function(string, DescribeCostDetailResponse):void} cb * @public */ DescribeCostDetail(req, cb) { let resp = new DescribeCostDetailResponse(); this.request("DescribeCostDetail", req, resp, cb); } } module.exports = BillingClient;