tencentcloud-sdk-nodejs-billing 4.0.612 → 4.0.614
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/CHANGELOG.md +489 -0
- package/SERVICE_CHANGELOG.md +619 -50
- package/package.json +1 -1
- package/products.md +23 -23
- package/src/services/billing/v20180709/billing_client.ts +19 -5
- package/src/services/billing/v20180709/billing_models.ts +320 -77
- package/tencentcloud/services/billing/v20180709/billing_client.d.ts +5 -1
- package/tencentcloud/services/billing/v20180709/billing_client.js +6 -0
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +274 -71
|
@@ -102,6 +102,23 @@ export interface VoucherInfos {
|
|
|
102
102
|
*/
|
|
103
103
|
ExcludedProducts: Array<ExcludedProducts>;
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* DescribeBillSummary返回参数结构体
|
|
107
|
+
*/
|
|
108
|
+
export interface DescribeBillSummaryResponse {
|
|
109
|
+
/**
|
|
110
|
+
* 数据是否准备好,0准备中,1已就绪。(Ready=0,为当前UIN首次进行初始化出账,预计需要5~10分钟出账,请于10分钟后重试即可)
|
|
111
|
+
*/
|
|
112
|
+
Ready?: number;
|
|
113
|
+
/**
|
|
114
|
+
* 账单多维度汇总消费详情
|
|
115
|
+
*/
|
|
116
|
+
SummaryDetail?: Array<SummaryDetail>;
|
|
117
|
+
/**
|
|
118
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
119
|
+
*/
|
|
120
|
+
RequestId?: string;
|
|
121
|
+
}
|
|
105
122
|
/**
|
|
106
123
|
* DescribeCostSummaryByProduct请求参数结构体
|
|
107
124
|
*/
|
|
@@ -115,11 +132,11 @@ export interface DescribeCostSummaryByProductRequest {
|
|
|
115
132
|
*/
|
|
116
133
|
EndTime: string;
|
|
117
134
|
/**
|
|
118
|
-
*
|
|
135
|
+
* 每次获取数据量,最大值为100
|
|
119
136
|
*/
|
|
120
137
|
Limit: number;
|
|
121
138
|
/**
|
|
122
|
-
*
|
|
139
|
+
* 偏移量,默认从0开始
|
|
123
140
|
*/
|
|
124
141
|
Offset: number;
|
|
125
142
|
/**
|
|
@@ -132,13 +149,37 @@ export interface DescribeCostSummaryByProductRequest {
|
|
|
132
149
|
NeedRecordNum?: number;
|
|
133
150
|
}
|
|
134
151
|
/**
|
|
135
|
-
*
|
|
152
|
+
* cos产品用量明细返回数据结构
|
|
136
153
|
*/
|
|
137
|
-
export interface
|
|
154
|
+
export interface CosDetailSets {
|
|
138
155
|
/**
|
|
139
|
-
*
|
|
156
|
+
* 存储桶名称
|
|
140
157
|
*/
|
|
141
|
-
|
|
158
|
+
BucketName: string;
|
|
159
|
+
/**
|
|
160
|
+
* 用量开始时间
|
|
161
|
+
*/
|
|
162
|
+
DosageBeginTime: string;
|
|
163
|
+
/**
|
|
164
|
+
* 用量结束时间
|
|
165
|
+
*/
|
|
166
|
+
DosageEndTime: string;
|
|
167
|
+
/**
|
|
168
|
+
* 子产品名称
|
|
169
|
+
*/
|
|
170
|
+
SubProductCodeName: string;
|
|
171
|
+
/**
|
|
172
|
+
* 计费项名称
|
|
173
|
+
*/
|
|
174
|
+
BillingItemCodeName: string;
|
|
175
|
+
/**
|
|
176
|
+
* 用量
|
|
177
|
+
*/
|
|
178
|
+
DosageValue: string;
|
|
179
|
+
/**
|
|
180
|
+
* 单位
|
|
181
|
+
*/
|
|
182
|
+
Unit: string;
|
|
142
183
|
}
|
|
143
184
|
/**
|
|
144
185
|
* DescribeCostSummaryByProject返回参数结构体
|
|
@@ -313,6 +354,26 @@ export interface ConsumptionBusinessSummaryDataItem {
|
|
|
313
354
|
* 费用趋势
|
|
314
355
|
*/
|
|
315
356
|
Trend: ConsumptionSummaryTrend;
|
|
357
|
+
/**
|
|
358
|
+
* 现金
|
|
359
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
360
|
+
*/
|
|
361
|
+
CashPayAmount?: string;
|
|
362
|
+
/**
|
|
363
|
+
* 赠送金
|
|
364
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
365
|
+
*/
|
|
366
|
+
IncentivePayAmount?: string;
|
|
367
|
+
/**
|
|
368
|
+
* 代金券
|
|
369
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
370
|
+
*/
|
|
371
|
+
VoucherPayAmount?: string;
|
|
372
|
+
/**
|
|
373
|
+
* 分成金
|
|
374
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
375
|
+
*/
|
|
376
|
+
TransferPayAmount?: string;
|
|
316
377
|
}
|
|
317
378
|
/**
|
|
318
379
|
* 由时间和值组成的数据结构
|
|
@@ -882,6 +943,51 @@ export interface ConsumptionResourceSummaryDataItem {
|
|
|
882
943
|
* 消耗类型
|
|
883
944
|
*/
|
|
884
945
|
ConsumptionTypeName: string;
|
|
946
|
+
/**
|
|
947
|
+
* 折前价
|
|
948
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
949
|
+
*/
|
|
950
|
+
RealCost?: string;
|
|
951
|
+
/**
|
|
952
|
+
* 费用起始时间
|
|
953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
954
|
+
*/
|
|
955
|
+
FeeBeginTime?: string;
|
|
956
|
+
/**
|
|
957
|
+
* 费用结束时间
|
|
958
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
959
|
+
*/
|
|
960
|
+
FeeEndTime?: string;
|
|
961
|
+
/**
|
|
962
|
+
* 天数
|
|
963
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
964
|
+
*/
|
|
965
|
+
DayDiff?: string;
|
|
966
|
+
/**
|
|
967
|
+
* 每日消耗
|
|
968
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
969
|
+
*/
|
|
970
|
+
DailyTotalCost?: string;
|
|
971
|
+
/**
|
|
972
|
+
* 订单号
|
|
973
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
974
|
+
*/
|
|
975
|
+
OrderId?: string;
|
|
976
|
+
/**
|
|
977
|
+
* 代金券
|
|
978
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
979
|
+
*/
|
|
980
|
+
VoucherPayAmount?: string;
|
|
981
|
+
/**
|
|
982
|
+
* 赠送金
|
|
983
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
984
|
+
*/
|
|
985
|
+
IncentivePayAmount?: string;
|
|
986
|
+
/**
|
|
987
|
+
* 分成金
|
|
988
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
989
|
+
*/
|
|
990
|
+
TransferPayAmount?: string;
|
|
885
991
|
}
|
|
886
992
|
/**
|
|
887
993
|
* DescribeAccountBalance请求参数结构体
|
|
@@ -976,6 +1082,19 @@ export interface DescribeBillDetailRequest {
|
|
|
976
1082
|
*/
|
|
977
1083
|
Context?: string;
|
|
978
1084
|
}
|
|
1085
|
+
/**
|
|
1086
|
+
* 商品详细信息
|
|
1087
|
+
*/
|
|
1088
|
+
export interface ProductInfo {
|
|
1089
|
+
/**
|
|
1090
|
+
* 商品详情名称标识
|
|
1091
|
+
*/
|
|
1092
|
+
Name: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* 商品详情
|
|
1095
|
+
*/
|
|
1096
|
+
Value: string;
|
|
1097
|
+
}
|
|
979
1098
|
/**
|
|
980
1099
|
* 消耗按项目汇总详情
|
|
981
1100
|
*/
|
|
@@ -1000,6 +1119,26 @@ export interface ConsumptionProjectSummaryDataItem {
|
|
|
1000
1119
|
* 产品消耗详情
|
|
1001
1120
|
*/
|
|
1002
1121
|
Business: Array<ConsumptionBusinessSummaryDataItem>;
|
|
1122
|
+
/**
|
|
1123
|
+
* 现金
|
|
1124
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1125
|
+
*/
|
|
1126
|
+
CashPayAmount?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* 赠送金
|
|
1129
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1130
|
+
*/
|
|
1131
|
+
IncentivePayAmount?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* 代金券
|
|
1134
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1135
|
+
*/
|
|
1136
|
+
VoucherPayAmount?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* 分成金
|
|
1139
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1140
|
+
*/
|
|
1141
|
+
TransferPayAmount?: string;
|
|
1003
1142
|
}
|
|
1004
1143
|
/**
|
|
1005
1144
|
* 按地域汇总消费详情
|
|
@@ -1075,17 +1214,28 @@ export interface DescribeCostSummaryByProductResponse {
|
|
|
1075
1214
|
RequestId?: string;
|
|
1076
1215
|
}
|
|
1077
1216
|
/**
|
|
1078
|
-
*
|
|
1217
|
+
* DescribeBillSummaryByTag返回参数结构体
|
|
1079
1218
|
*/
|
|
1080
|
-
export interface
|
|
1219
|
+
export interface DescribeBillSummaryByTagResponse {
|
|
1081
1220
|
/**
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1221
|
+
* 数据是否准备好,0未准备好,1准备好
|
|
1222
|
+
Ready=0,为当前UIN首次进行初始化出账,预计需要5~10分钟,请于10分钟后重试
|
|
1223
|
+
*/
|
|
1224
|
+
Ready?: number;
|
|
1085
1225
|
/**
|
|
1086
|
-
|
|
1226
|
+
* 各标签值花费分布详情
|
|
1227
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1228
|
+
*/
|
|
1229
|
+
SummaryOverview?: Array<TagSummaryOverviewItem>;
|
|
1230
|
+
/**
|
|
1231
|
+
* 总数
|
|
1232
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1233
|
+
*/
|
|
1234
|
+
SummaryTotal?: SummaryTotal;
|
|
1235
|
+
/**
|
|
1236
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1087
1237
|
*/
|
|
1088
|
-
|
|
1238
|
+
RequestId?: string;
|
|
1089
1239
|
}
|
|
1090
1240
|
/**
|
|
1091
1241
|
* DescribeDosageDetailByDate返回参数结构体
|
|
@@ -1247,11 +1397,11 @@ export interface DescribeCostSummaryByRegionRequest {
|
|
|
1247
1397
|
*/
|
|
1248
1398
|
EndTime: string;
|
|
1249
1399
|
/**
|
|
1250
|
-
*
|
|
1400
|
+
* 每次获取数据量,最大值为100
|
|
1251
1401
|
*/
|
|
1252
1402
|
Limit: number;
|
|
1253
1403
|
/**
|
|
1254
|
-
*
|
|
1404
|
+
* 偏移量,默认从0开始
|
|
1255
1405
|
*/
|
|
1256
1406
|
Offset: number;
|
|
1257
1407
|
/**
|
|
@@ -1494,11 +1644,11 @@ export interface DescribeCostSummaryByProjectRequest {
|
|
|
1494
1644
|
*/
|
|
1495
1645
|
EndTime: string;
|
|
1496
1646
|
/**
|
|
1497
|
-
*
|
|
1647
|
+
* 每次获取数据量,最大值为100
|
|
1498
1648
|
*/
|
|
1499
1649
|
Limit: number;
|
|
1500
1650
|
/**
|
|
1501
|
-
*
|
|
1651
|
+
* 偏移量,默认从0开始
|
|
1502
1652
|
*/
|
|
1503
1653
|
Offset: number;
|
|
1504
1654
|
/**
|
|
@@ -1510,6 +1660,66 @@ export interface DescribeCostSummaryByProjectRequest {
|
|
|
1510
1660
|
*/
|
|
1511
1661
|
NeedRecordNum?: number;
|
|
1512
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* 账单多维度汇总消费详情
|
|
1665
|
+
*/
|
|
1666
|
+
export interface SummaryDetail {
|
|
1667
|
+
/**
|
|
1668
|
+
* 账单维度编码
|
|
1669
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1670
|
+
*/
|
|
1671
|
+
GroupKey?: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* 账单维度值
|
|
1674
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1675
|
+
*/
|
|
1676
|
+
GroupValue?: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
|
|
1679
|
+
*/
|
|
1680
|
+
TotalCost?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* 优惠后总价
|
|
1683
|
+
*/
|
|
1684
|
+
RealTotalCost?: string;
|
|
1685
|
+
/**
|
|
1686
|
+
* 现金账户支出:通过现金账户支付的金额
|
|
1687
|
+
*/
|
|
1688
|
+
CashPayAmount?: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* 赠送账户支出:使用赠送金支付的金额
|
|
1691
|
+
*/
|
|
1692
|
+
IncentivePayAmount?: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* 优惠券支出:使用各类优惠券(如代金券、现金券等)支付的金额
|
|
1695
|
+
*/
|
|
1696
|
+
VoucherPayAmount?: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* 分成金账户支出:通过分成金账户支付的金额
|
|
1699
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1700
|
+
*/
|
|
1701
|
+
TransferPayAmount?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* 产品汇总信息
|
|
1704
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1705
|
+
*/
|
|
1706
|
+
Business?: Array<BusinessSummaryInfo>;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* 购买商品信息
|
|
1710
|
+
*/
|
|
1711
|
+
export interface UsageDetails {
|
|
1712
|
+
/**
|
|
1713
|
+
* 商品名
|
|
1714
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1715
|
+
*/
|
|
1716
|
+
ProductName: string;
|
|
1717
|
+
/**
|
|
1718
|
+
* 商品细节
|
|
1719
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1720
|
+
*/
|
|
1721
|
+
SubProductName: string;
|
|
1722
|
+
}
|
|
1513
1723
|
/**
|
|
1514
1724
|
* 使用记录
|
|
1515
1725
|
*/
|
|
@@ -1567,19 +1777,21 @@ export interface DescribeDosageCosDetailByDateResponse {
|
|
|
1567
1777
|
RequestId?: string;
|
|
1568
1778
|
}
|
|
1569
1779
|
/**
|
|
1570
|
-
*
|
|
1780
|
+
* DescribeBillSummary请求参数结构体
|
|
1571
1781
|
*/
|
|
1572
|
-
export interface
|
|
1782
|
+
export interface DescribeBillSummaryRequest {
|
|
1573
1783
|
/**
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
ProductName: string;
|
|
1784
|
+
* 账单月份,格式为2023-04
|
|
1785
|
+
*/
|
|
1786
|
+
Month: string;
|
|
1578
1787
|
/**
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1788
|
+
* 账单维度类型,枚举值如下:business、project、region、payMode、tag
|
|
1789
|
+
*/
|
|
1790
|
+
GroupType: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* 标签键,GroupType=tag获取标签维度账单时传
|
|
1793
|
+
*/
|
|
1794
|
+
TagKey?: Array<string>;
|
|
1583
1795
|
}
|
|
1584
1796
|
/**
|
|
1585
1797
|
* DescribeBillResourceSummary返回参数结构体
|
|
@@ -2102,28 +2314,43 @@ export interface BillDetail {
|
|
|
2102
2314
|
PriceInfo?: Array<string>;
|
|
2103
2315
|
}
|
|
2104
2316
|
/**
|
|
2105
|
-
*
|
|
2317
|
+
* 产品汇总信息
|
|
2106
2318
|
*/
|
|
2107
|
-
export interface
|
|
2319
|
+
export interface BusinessSummaryInfo {
|
|
2108
2320
|
/**
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
Ready?: number;
|
|
2321
|
+
* 产品编码
|
|
2322
|
+
*/
|
|
2323
|
+
BusinessCode?: string;
|
|
2113
2324
|
/**
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
SummaryOverview?: Array<TagSummaryOverviewItem>;
|
|
2325
|
+
* 产品名称:用户所采购的各类云产品,例如:云服务器 CVM
|
|
2326
|
+
*/
|
|
2327
|
+
BusinessCodeName?: string;
|
|
2118
2328
|
/**
|
|
2119
|
-
*
|
|
2329
|
+
* 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
|
|
2120
2330
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2121
2331
|
*/
|
|
2122
|
-
|
|
2332
|
+
TotalCost?: string;
|
|
2123
2333
|
/**
|
|
2124
|
-
*
|
|
2334
|
+
* 优惠后总价
|
|
2125
2335
|
*/
|
|
2126
|
-
|
|
2336
|
+
RealTotalCost?: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* 现金账户支出:通过现金账户支付的金额
|
|
2339
|
+
*/
|
|
2340
|
+
CashPayAmount?: string;
|
|
2341
|
+
/**
|
|
2342
|
+
* 赠送账户支出:使用赠送金支付的金额
|
|
2343
|
+
*/
|
|
2344
|
+
IncentivePayAmount?: string;
|
|
2345
|
+
/**
|
|
2346
|
+
* 优惠券支出:使用各类优惠券(如代金券、现金券等)支付的金额
|
|
2347
|
+
*/
|
|
2348
|
+
VoucherPayAmount?: string;
|
|
2349
|
+
/**
|
|
2350
|
+
* 分成金账户支出:通过分成金账户支付的金额
|
|
2351
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2352
|
+
*/
|
|
2353
|
+
TransferPayAmount?: string;
|
|
2127
2354
|
}
|
|
2128
2355
|
/**
|
|
2129
2356
|
* 按标签汇总消费详情
|
|
@@ -2470,37 +2697,13 @@ export interface ConditionProject {
|
|
|
2470
2697
|
ProjectName: string;
|
|
2471
2698
|
}
|
|
2472
2699
|
/**
|
|
2473
|
-
*
|
|
2700
|
+
* 消耗汇总详情
|
|
2474
2701
|
*/
|
|
2475
|
-
export interface
|
|
2476
|
-
/**
|
|
2477
|
-
* 存储桶名称
|
|
2478
|
-
*/
|
|
2479
|
-
BucketName: string;
|
|
2480
|
-
/**
|
|
2481
|
-
* 用量开始时间
|
|
2482
|
-
*/
|
|
2483
|
-
DosageBeginTime: string;
|
|
2484
|
-
/**
|
|
2485
|
-
* 用量结束时间
|
|
2486
|
-
*/
|
|
2487
|
-
DosageEndTime: string;
|
|
2488
|
-
/**
|
|
2489
|
-
* 子产品名称
|
|
2490
|
-
*/
|
|
2491
|
-
SubProductCodeName: string;
|
|
2492
|
-
/**
|
|
2493
|
-
* 计费项名称
|
|
2494
|
-
*/
|
|
2495
|
-
BillingItemCodeName: string;
|
|
2496
|
-
/**
|
|
2497
|
-
* 用量
|
|
2498
|
-
*/
|
|
2499
|
-
DosageValue: string;
|
|
2702
|
+
export interface ConsumptionSummaryTotal {
|
|
2500
2703
|
/**
|
|
2501
|
-
*
|
|
2704
|
+
* 折后总价
|
|
2502
2705
|
*/
|
|
2503
|
-
|
|
2706
|
+
RealTotalCost: string;
|
|
2504
2707
|
}
|
|
2505
2708
|
/**
|
|
2506
2709
|
* DescribeBillSummaryByProject请求参数结构体
|
|
@@ -2564,11 +2767,11 @@ export interface DescribeCostSummaryByResourceRequest {
|
|
|
2564
2767
|
*/
|
|
2565
2768
|
EndTime: string;
|
|
2566
2769
|
/**
|
|
2567
|
-
*
|
|
2770
|
+
* 每次获取数据量,最大值为100
|
|
2568
2771
|
*/
|
|
2569
2772
|
Limit: number;
|
|
2570
2773
|
/**
|
|
2571
|
-
*
|
|
2774
|
+
* 偏移量,默认从0开始
|
|
2572
2775
|
*/
|
|
2573
2776
|
Offset: number;
|
|
2574
2777
|
/**
|