tencentcloud-sdk-nodejs-billing 4.0.1054 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/billing/index.js +4 -0
- package/es/services/billing/v20180709/billing_client.js +135 -0
- package/es/services/billing/v20180709/billing_models.js +0 -0
- package/es/services/billing/v20180709/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +16 -5
- package/tencentcloud/services/billing/v20180709/billing_client.js +2 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +0 -7
- package/tencentcloud/services/billing/v20180709/index.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/billing/index.ts +0 -5
- package/src/services/billing/v20180709/billing_client.ts +0 -648
- package/src/services/billing/v20180709/billing_models.ts +0 -7319
- package/src/services/billing/v20180709/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
52
52
|
|
|
53
53
|
## 通过源码包安装
|
|
54
54
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
1. clone 代码到本地:
|
|
56
|
+
```
|
|
57
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
58
|
+
# 或者
|
|
59
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
60
|
+
```
|
|
61
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
62
|
+
```
|
|
63
|
+
npm install && npm run build
|
|
64
|
+
```
|
|
65
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
66
|
+
```
|
|
67
|
+
npm pack
|
|
68
|
+
```
|
|
69
|
+
4. 安装包到你的项目里:
|
|
70
|
+
```
|
|
71
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
72
|
+
```
|
|
59
73
|
|
|
60
74
|
# 示例
|
|
61
75
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("billing.tencentcloudapi.com", "2018-07-09", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeBillDetailForOrganization(req, cb) {
|
|
7
|
+
return this.request("DescribeBillDetailForOrganization", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DescribeCostSummaryByResource(req, cb) {
|
|
10
|
+
return this.request("DescribeCostSummaryByResource", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async DescribeBillList(req, cb) {
|
|
13
|
+
return this.request("DescribeBillList", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DescribeSavingPlanCoverage(req, cb) {
|
|
16
|
+
return this.request("DescribeSavingPlanCoverage", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeAllocationSummaryByResource(req, cb) {
|
|
19
|
+
return this.request("DescribeAllocationSummaryByResource", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeBillResourceSummary(req, cb) {
|
|
22
|
+
return this.request("DescribeBillResourceSummary", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async DescribeAllocationSummaryByBusiness(req, cb) {
|
|
25
|
+
return this.request("DescribeAllocationSummaryByBusiness", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DescribeAllocateConditions(req, cb) {
|
|
28
|
+
return this.request("DescribeAllocateConditions", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DescribeAllocationOverview(req, cb) {
|
|
31
|
+
return this.request("DescribeAllocationOverview", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeDosageDetailList(req, cb) {
|
|
34
|
+
return this.request("DescribeDosageDetailList", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async CreateAllocationTag(req, cb) {
|
|
37
|
+
return this.request("CreateAllocationTag", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async DescribeVoucherInfo(req, cb) {
|
|
40
|
+
return this.request("DescribeVoucherInfo", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeCostSummaryByProject(req, cb) {
|
|
43
|
+
return this.request("DescribeCostSummaryByProject", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeCostExplorerSummary(req, cb) {
|
|
46
|
+
return this.request("DescribeCostExplorerSummary", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async DescribeBillResourceSummaryForOrganization(req, cb) {
|
|
49
|
+
return this.request("DescribeBillResourceSummaryForOrganization", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async DescribeBillDetail(req, cb) {
|
|
52
|
+
return this.request("DescribeBillDetail", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async DescribeBillSummary(req, cb) {
|
|
55
|
+
return this.request("DescribeBillSummary", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeBillSummaryByPayMode(req, cb) {
|
|
58
|
+
return this.request("DescribeBillSummaryByPayMode", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async DescribeCostSummaryByRegion(req, cb) {
|
|
61
|
+
return this.request("DescribeCostSummaryByRegion", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DescribeAllocationTrendByMonth(req, cb) {
|
|
64
|
+
return this.request("DescribeAllocationTrendByMonth", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async DescribeBillDownloadUrl(req, cb) {
|
|
67
|
+
return this.request("DescribeBillDownloadUrl", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async DescribeDosageCosDetailByDate(req, cb) {
|
|
70
|
+
return this.request("DescribeDosageCosDetailByDate", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async DescribeAllocationBillConditions(req, cb) {
|
|
73
|
+
return this.request("DescribeAllocationBillConditions", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async DescribeAccountBalance(req, cb) {
|
|
76
|
+
return this.request("DescribeAccountBalance", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DescribeDosageDetailByDate(req, cb) {
|
|
79
|
+
return this.request("DescribeDosageDetailByDate", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DescribeBillAdjustInfo(req, cb) {
|
|
82
|
+
return this.request("DescribeBillAdjustInfo", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async DescribeAllocationBillDetail(req, cb) {
|
|
85
|
+
return this.request("DescribeAllocationBillDetail", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeBillSummaryByRegion(req, cb) {
|
|
88
|
+
return this.request("DescribeBillSummaryByRegion", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async DescribeBillSummaryByProject(req, cb) {
|
|
91
|
+
return this.request("DescribeBillSummaryByProject", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async DescribeAllocationMonthOverview(req, cb) {
|
|
94
|
+
return this.request("DescribeAllocationMonthOverview", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async DescribeBillSummaryByTag(req, cb) {
|
|
97
|
+
return this.request("DescribeBillSummaryByTag", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DescribeBillSummaryForOrganization(req, cb) {
|
|
100
|
+
return this.request("DescribeBillSummaryForOrganization", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async DescribeGatherResource(req, cb) {
|
|
103
|
+
return this.request("DescribeGatherResource", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DescribeSavingPlanResourceInfo(req, cb) {
|
|
106
|
+
return this.request("DescribeSavingPlanResourceInfo", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async DescribeTagList(req, cb) {
|
|
109
|
+
return this.request("DescribeTagList", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async DescribeVoucherUsageDetails(req, cb) {
|
|
112
|
+
return this.request("DescribeVoucherUsageDetails", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async PayDeals(req, cb) {
|
|
115
|
+
return this.request("PayDeals", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async DescribeCostSummaryByProduct(req, cb) {
|
|
118
|
+
return this.request("DescribeCostSummaryByProduct", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async DeleteAllocationTag(req, cb) {
|
|
121
|
+
return this.request("DeleteAllocationTag", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async DescribeDealsByCond(req, cb) {
|
|
124
|
+
return this.request("DescribeDealsByCond", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async DescribeAllocationSummaryByItem(req, cb) {
|
|
127
|
+
return this.request("DescribeAllocationSummaryByItem", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async DescribeBillSummaryByProduct(req, cb) {
|
|
130
|
+
return this.request("DescribeBillSummaryByProduct", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async DescribeCostDetail(req, cb) {
|
|
133
|
+
return this.request("DescribeCostDetail", req, cb);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { billing } from "./billing";
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-billing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
5
|
+
"main": "./tencentcloud/index.js",
|
|
6
|
+
"module": "./es/index.js",
|
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "mocha -t 10000",
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
|
+
"clean": "rimraf tencentcloud es"
|
|
10
15
|
},
|
|
11
16
|
"engines": {
|
|
12
17
|
"node": ">=10"
|
|
13
18
|
},
|
|
19
|
+
"files": [
|
|
20
|
+
"tencentcloud",
|
|
21
|
+
"es"
|
|
22
|
+
],
|
|
14
23
|
"keywords": [
|
|
15
24
|
"tencentcloudapi",
|
|
16
25
|
"tencentcloud",
|
|
@@ -43,10 +52,12 @@
|
|
|
43
52
|
"@typescript-eslint/parser": "^2.34.0",
|
|
44
53
|
"babel-eslint": "^10.0.2",
|
|
45
54
|
"chai": "^4.2.0",
|
|
55
|
+
"concurrently": "^6.5.1",
|
|
46
56
|
"eslint": "^6.8.0",
|
|
47
57
|
"eslint-plugin-react": "^7.17.0",
|
|
48
|
-
"mocha": "^8.
|
|
58
|
+
"mocha": "^8.4.0",
|
|
49
59
|
"prettier": "^2.3.0",
|
|
60
|
+
"rimraf": "^5.0.10",
|
|
50
61
|
"ts-node": "^8.10.2",
|
|
51
62
|
"typescript": "^3.9.7"
|
|
52
63
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* billing client
|
|
24
25
|
* @class
|
|
@@ -386,7 +386,6 @@ export interface DescribeBillDetailForOrganizationResponse {
|
|
|
386
386
|
Total?: number;
|
|
387
387
|
/**
|
|
388
388
|
* 本次请求的上下文信息,可用于下一次请求的请求参数中,加快查询速度
|
|
389
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
390
389
|
*/
|
|
391
390
|
Context?: string;
|
|
392
391
|
/**
|
|
@@ -522,22 +521,18 @@ export interface ConsumptionRegionSummaryDataItem {
|
|
|
522
521
|
Business?: Array<ConsumptionBusinessSummaryDataItem>;
|
|
523
522
|
/**
|
|
524
523
|
* 现金
|
|
525
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
526
524
|
*/
|
|
527
525
|
CashPayAmount?: string;
|
|
528
526
|
/**
|
|
529
527
|
* 代金券
|
|
530
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
531
528
|
*/
|
|
532
529
|
VoucherPayAmount?: string;
|
|
533
530
|
/**
|
|
534
531
|
* 赠送金
|
|
535
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
536
532
|
*/
|
|
537
533
|
IncentivePayAmount?: string;
|
|
538
534
|
/**
|
|
539
535
|
* 分成金
|
|
540
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
541
536
|
*/
|
|
542
537
|
TransferPayAmount?: string;
|
|
543
538
|
}
|
|
@@ -6253,12 +6248,10 @@ export interface DescribeDosageDetailListRequest {
|
|
|
6253
6248
|
export interface BillComponent {
|
|
6254
6249
|
/**
|
|
6255
6250
|
* 组件类型编码
|
|
6256
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6257
6251
|
*/
|
|
6258
6252
|
ComponentCode: string;
|
|
6259
6253
|
/**
|
|
6260
6254
|
* 组件类型:用户购买的产品或服务对应的组件大类
|
|
6261
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6262
6255
|
*/
|
|
6263
6256
|
ComponentCodeName: string;
|
|
6264
6257
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20180709 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./billing_models"));
|
|
5
6
|
const billing_client_1 = require("./billing_client");
|
|
6
7
|
exports.v20180709 = {
|
|
7
8
|
Client: billing_client_1.Client,
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|