tencentcloud-sdk-nodejs-billing 4.0.715 → 4.0.717
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 +488 -0
- package/SERVICE_CHANGELOG.md +483 -330
- package/package.json +1 -1
- package/products.md +33 -33
- package/src/services/billing/v20180709/billing_client.ts +80 -28
- package/src/services/billing/v20180709/billing_models.ts +460 -120
- package/tencentcloud/services/billing/v20180709/billing_client.d.ts +25 -9
- package/tencentcloud/services/billing/v20180709/billing_client.js +36 -12
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +448 -120
|
@@ -81,6 +81,19 @@ export interface BillTagInfo {
|
|
|
81
81
|
*/
|
|
82
82
|
TagValue: string;
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* 节省计划覆盖率聚合数据
|
|
86
|
+
*/
|
|
87
|
+
export interface SavingPlanCoverageRate {
|
|
88
|
+
/**
|
|
89
|
+
* 聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM
|
|
90
|
+
*/
|
|
91
|
+
DatePoint?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 覆盖率结果,取值[0, 100]
|
|
94
|
+
*/
|
|
95
|
+
Rate?: number;
|
|
96
|
+
}
|
|
84
97
|
/**
|
|
85
98
|
* 收支明细的流水信息
|
|
86
99
|
*/
|
|
@@ -699,6 +712,23 @@ export interface DescribeBillListRequest {
|
|
|
699
712
|
*/
|
|
700
713
|
WithZeroAmount?: number;
|
|
701
714
|
}
|
|
715
|
+
/**
|
|
716
|
+
* DescribeSavingPlanOverview返回参数结构体
|
|
717
|
+
*/
|
|
718
|
+
export interface DescribeSavingPlanOverviewResponse {
|
|
719
|
+
/**
|
|
720
|
+
* 节省计划总览明细数据
|
|
721
|
+
*/
|
|
722
|
+
Overviews?: Array<SavingPlanOverviewDetail>;
|
|
723
|
+
/**
|
|
724
|
+
* 查询命中的节省计划总览明细数据总条数
|
|
725
|
+
*/
|
|
726
|
+
Total?: number;
|
|
727
|
+
/**
|
|
728
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
729
|
+
*/
|
|
730
|
+
RequestId?: string;
|
|
731
|
+
}
|
|
702
732
|
/**
|
|
703
733
|
* 经销账单资源汇总数据对象
|
|
704
734
|
*/
|
|
@@ -951,6 +981,58 @@ export interface ConsumptionSummaryTotal {
|
|
|
951
981
|
*/
|
|
952
982
|
RealTotalCost: string;
|
|
953
983
|
}
|
|
984
|
+
/**
|
|
985
|
+
* 节省计划覆盖率数据
|
|
986
|
+
*/
|
|
987
|
+
export interface SavingPlanCoverageDetail {
|
|
988
|
+
/**
|
|
989
|
+
* 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
|
|
990
|
+
*/
|
|
991
|
+
ResourceId?: string;
|
|
992
|
+
/**
|
|
993
|
+
* 地域ID
|
|
994
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
995
|
+
*/
|
|
996
|
+
RegionId?: number;
|
|
997
|
+
/**
|
|
998
|
+
* 产品编码
|
|
999
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1000
|
+
*/
|
|
1001
|
+
ProductCode?: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* 子产品编码
|
|
1004
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1005
|
+
*/
|
|
1006
|
+
SubProductCode?: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* 费用起始日期,格式yyyy-MM-dd
|
|
1009
|
+
*/
|
|
1010
|
+
StartDate?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* 费用结束日期,格式yyyy-MM-dd,目前与StartDate相等
|
|
1013
|
+
*/
|
|
1014
|
+
EndDate?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* 节省计划覆盖金额(即节省计划支付金额)
|
|
1017
|
+
*/
|
|
1018
|
+
SpCoveredAmount?: number;
|
|
1019
|
+
/**
|
|
1020
|
+
* 节省计划未覆盖金额(即优惠后总价)
|
|
1021
|
+
*/
|
|
1022
|
+
SpUncoveredAmount?: number;
|
|
1023
|
+
/**
|
|
1024
|
+
* 总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)
|
|
1025
|
+
*/
|
|
1026
|
+
TotalRealAmount?: number;
|
|
1027
|
+
/**
|
|
1028
|
+
* 按量计费预期金额(即折前价 * 折扣)
|
|
1029
|
+
*/
|
|
1030
|
+
ExpectedAmount?: number;
|
|
1031
|
+
/**
|
|
1032
|
+
* 覆盖率结果,取值[0, 100]
|
|
1033
|
+
*/
|
|
1034
|
+
SpCoverage?: number;
|
|
1035
|
+
}
|
|
954
1036
|
/**
|
|
955
1037
|
* DescribeCostDetail返回参数结构体
|
|
956
1038
|
*/
|
|
@@ -1304,6 +1386,60 @@ export interface DescribeBillDownloadUrlRequest {
|
|
|
1304
1386
|
*/
|
|
1305
1387
|
ChildUin?: Array<string>;
|
|
1306
1388
|
}
|
|
1389
|
+
/**
|
|
1390
|
+
* CreateSavingPlanOrder返回参数结构体
|
|
1391
|
+
*/
|
|
1392
|
+
export interface CreateSavingPlanOrderResponse {
|
|
1393
|
+
/**
|
|
1394
|
+
* 订单号
|
|
1395
|
+
*/
|
|
1396
|
+
BigDealId?: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1399
|
+
*/
|
|
1400
|
+
RequestId?: string;
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* 节省计划总览明细数据
|
|
1404
|
+
*/
|
|
1405
|
+
export interface SavingPlanOverviewDetail {
|
|
1406
|
+
/**
|
|
1407
|
+
* 节省计划类型
|
|
1408
|
+
*/
|
|
1409
|
+
SpType?: string;
|
|
1410
|
+
/**
|
|
1411
|
+
* 支付类型
|
|
1412
|
+
*/
|
|
1413
|
+
PayType?: number;
|
|
1414
|
+
/**
|
|
1415
|
+
* 支付金额(单位:元)
|
|
1416
|
+
*/
|
|
1417
|
+
PayAmount?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* 开始时间 yyyy-mm-dd HH:mm:ss格式
|
|
1420
|
+
*/
|
|
1421
|
+
StartTime?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* 结束时间 yyyy-mm-dd HH:mm:ss格式
|
|
1424
|
+
*/
|
|
1425
|
+
EndTime?: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* 购买时间 yyyy-mm-dd HH:mm:ss格式
|
|
1428
|
+
*/
|
|
1429
|
+
BuyTime?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* 状态
|
|
1432
|
+
*/
|
|
1433
|
+
Status?: number;
|
|
1434
|
+
/**
|
|
1435
|
+
* 累计节省金额(单位:元)
|
|
1436
|
+
*/
|
|
1437
|
+
SavingAmount?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* 地域
|
|
1440
|
+
*/
|
|
1441
|
+
Region?: Array<string>;
|
|
1442
|
+
}
|
|
1307
1443
|
/**
|
|
1308
1444
|
* DescribeBillSummaryByPayMode请求参数结构体
|
|
1309
1445
|
*/
|
|
@@ -1495,22 +1631,64 @@ export interface BillDetail {
|
|
|
1495
1631
|
FormulaUrl?: string;
|
|
1496
1632
|
}
|
|
1497
1633
|
/**
|
|
1498
|
-
*
|
|
1634
|
+
* CreateSavingPlanOrder请求参数结构体
|
|
1499
1635
|
*/
|
|
1500
|
-
export interface
|
|
1636
|
+
export interface CreateSavingPlanOrderRequest {
|
|
1501
1637
|
/**
|
|
1502
|
-
*
|
|
1638
|
+
* 地域编码
|
|
1503
1639
|
*/
|
|
1504
|
-
|
|
1640
|
+
RegionId: number;
|
|
1505
1641
|
/**
|
|
1506
|
-
*
|
|
1642
|
+
* 区域编码
|
|
1507
1643
|
*/
|
|
1508
|
-
|
|
1644
|
+
ZoneId: number;
|
|
1509
1645
|
/**
|
|
1510
|
-
*
|
|
1646
|
+
* 预付费类型
|
|
1647
|
+
*/
|
|
1648
|
+
PrePayType: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* 时长
|
|
1651
|
+
*/
|
|
1652
|
+
TimeSpan: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* 时长单位
|
|
1655
|
+
*/
|
|
1656
|
+
TimeUnit: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* 商品唯一标识
|
|
1659
|
+
*/
|
|
1660
|
+
CommodityCode: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* 承诺时长内的小额金额(单位:分)
|
|
1663
|
+
*/
|
|
1664
|
+
PromiseUseAmount: number;
|
|
1665
|
+
/**
|
|
1666
|
+
* 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
|
|
1667
|
+
*/
|
|
1668
|
+
SpecifyEffectTime?: string;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* DescribeBillDetail返回参数结构体
|
|
1672
|
+
*/
|
|
1673
|
+
export interface DescribeBillDetailResponse {
|
|
1674
|
+
/**
|
|
1675
|
+
* 详情列表
|
|
1676
|
+
*/
|
|
1677
|
+
DetailSet?: Array<BillDetail>;
|
|
1678
|
+
/**
|
|
1679
|
+
* 总记录数,24小时缓存一次,可能比实际总记录数少
|
|
1511
1680
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1512
1681
|
*/
|
|
1513
|
-
|
|
1682
|
+
Total?: number;
|
|
1683
|
+
/**
|
|
1684
|
+
* 本次请求的上下文信息,可用于下一次请求的请求参数中,加快查询速度
|
|
1685
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1686
|
+
*/
|
|
1687
|
+
Context?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1690
|
+
*/
|
|
1691
|
+
RequestId?: string;
|
|
1514
1692
|
}
|
|
1515
1693
|
/**
|
|
1516
1694
|
* 订单数据对象
|
|
@@ -2118,6 +2296,31 @@ export interface Conditions {
|
|
|
2118
2296
|
*/
|
|
2119
2297
|
Status?: Array<number | bigint>;
|
|
2120
2298
|
}
|
|
2299
|
+
/**
|
|
2300
|
+
* DescribeSavingPlanCoverage请求参数结构体
|
|
2301
|
+
*/
|
|
2302
|
+
export interface DescribeSavingPlanCoverageRequest {
|
|
2303
|
+
/**
|
|
2304
|
+
* 费用起始日期,格式yyyy-MM-dd
|
|
2305
|
+
*/
|
|
2306
|
+
StartDate: string;
|
|
2307
|
+
/**
|
|
2308
|
+
* 费用结束日期,格式yyyy-MM-dd
|
|
2309
|
+
*/
|
|
2310
|
+
EndDate: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推
|
|
2313
|
+
*/
|
|
2314
|
+
Offset: number;
|
|
2315
|
+
/**
|
|
2316
|
+
* 数量,最大值为200
|
|
2317
|
+
*/
|
|
2318
|
+
Limit: number;
|
|
2319
|
+
/**
|
|
2320
|
+
* 取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet
|
|
2321
|
+
*/
|
|
2322
|
+
PeriodType?: number;
|
|
2323
|
+
}
|
|
2121
2324
|
/**
|
|
2122
2325
|
* 按地域汇总消费详情
|
|
2123
2326
|
*/
|
|
@@ -2255,6 +2458,27 @@ export interface DescribeBillSummaryForOrganizationRequest {
|
|
|
2255
2458
|
*/
|
|
2256
2459
|
TagKey?: Array<string>;
|
|
2257
2460
|
}
|
|
2461
|
+
/**
|
|
2462
|
+
* DescribeSavingPlanOverview请求参数结构体
|
|
2463
|
+
*/
|
|
2464
|
+
export interface DescribeSavingPlanOverviewRequest {
|
|
2465
|
+
/**
|
|
2466
|
+
* 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
|
2467
|
+
*/
|
|
2468
|
+
StartDate: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* 结束时间,格式yyyy-MM-dd
|
|
2471
|
+
*/
|
|
2472
|
+
EndDate: string;
|
|
2473
|
+
/**
|
|
2474
|
+
* 分页偏移量
|
|
2475
|
+
*/
|
|
2476
|
+
Offset: number;
|
|
2477
|
+
/**
|
|
2478
|
+
* 每页数量,最大值为200
|
|
2479
|
+
*/
|
|
2480
|
+
Limit: number;
|
|
2481
|
+
}
|
|
2258
2482
|
/**
|
|
2259
2483
|
* 按交易类型汇总消费详情
|
|
2260
2484
|
*/
|
|
@@ -2302,77 +2526,91 @@ export interface ActionSummaryOverviewItem {
|
|
|
2302
2526
|
TotalCost: string;
|
|
2303
2527
|
}
|
|
2304
2528
|
/**
|
|
2305
|
-
*
|
|
2529
|
+
* DescribeBillDetailForOrganization请求参数结构体
|
|
2306
2530
|
*/
|
|
2307
|
-
export interface
|
|
2308
|
-
/**
|
|
2309
|
-
* 一页多少条数据,默认是20条,最大不超过1000
|
|
2310
|
-
*/
|
|
2311
|
-
Limit: number;
|
|
2531
|
+
export interface DescribeBillDetailForOrganizationRequest {
|
|
2312
2532
|
/**
|
|
2313
|
-
*
|
|
2533
|
+
* 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
|
|
2314
2534
|
*/
|
|
2315
2535
|
Offset: number;
|
|
2316
2536
|
/**
|
|
2317
|
-
*
|
|
2318
|
-
*/
|
|
2319
|
-
Status?: string;
|
|
2320
|
-
/**
|
|
2321
|
-
* 代金券id
|
|
2322
|
-
*/
|
|
2323
|
-
VoucherId?: string;
|
|
2324
|
-
/**
|
|
2325
|
-
* 代金券订单id
|
|
2326
|
-
*/
|
|
2327
|
-
CodeId?: string;
|
|
2328
|
-
/**
|
|
2329
|
-
* 商品码
|
|
2537
|
+
* 数量,最大值为100
|
|
2330
2538
|
*/
|
|
2331
|
-
|
|
2539
|
+
Limit: number;
|
|
2332
2540
|
/**
|
|
2333
|
-
*
|
|
2541
|
+
* 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
|
|
2334
2542
|
*/
|
|
2335
|
-
|
|
2543
|
+
PeriodType?: string;
|
|
2336
2544
|
/**
|
|
2337
|
-
*
|
|
2545
|
+
* 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month字段无效。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
|
|
2338
2546
|
*/
|
|
2339
|
-
|
|
2547
|
+
Month?: string;
|
|
2340
2548
|
/**
|
|
2341
|
-
*
|
|
2549
|
+
* 周期开始时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
|
|
2342
2550
|
*/
|
|
2343
|
-
|
|
2551
|
+
BeginTime?: string;
|
|
2344
2552
|
/**
|
|
2345
|
-
*
|
|
2553
|
+
* 周期结束时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
|
|
2346
2554
|
*/
|
|
2347
|
-
|
|
2555
|
+
EndTime?: string;
|
|
2348
2556
|
/**
|
|
2349
|
-
*
|
|
2557
|
+
* 是否需要访问列表的总记录数,用于前端分页
|
|
2558
|
+
1-表示需要, 0-表示不需要
|
|
2350
2559
|
*/
|
|
2351
|
-
|
|
2560
|
+
NeedRecordNum?: number;
|
|
2352
2561
|
/**
|
|
2353
|
-
*
|
|
2562
|
+
* 付费模式 prePay(表示包年包月)/postPay(表示按时按量)
|
|
2354
2563
|
*/
|
|
2355
|
-
|
|
2564
|
+
PayMode?: string;
|
|
2356
2565
|
/**
|
|
2357
|
-
*
|
|
2566
|
+
* 查询指定资源信息
|
|
2358
2567
|
*/
|
|
2359
|
-
|
|
2568
|
+
ResourceId?: string;
|
|
2360
2569
|
/**
|
|
2361
|
-
*
|
|
2570
|
+
* 查询交易类型(请使用交易类型名称入参),入参示例枚举如下:
|
|
2571
|
+
包年包月新购
|
|
2572
|
+
包年包月续费
|
|
2573
|
+
包年包月配置变更
|
|
2574
|
+
包年包月退款
|
|
2575
|
+
按量计费扣费
|
|
2576
|
+
线下项目扣费
|
|
2577
|
+
线下产品扣费
|
|
2578
|
+
调账扣费
|
|
2579
|
+
调账补偿
|
|
2580
|
+
按量计费小时结
|
|
2581
|
+
按量计费日结
|
|
2582
|
+
按量计费月结
|
|
2583
|
+
竞价实例小时结
|
|
2584
|
+
线下项目调账补偿
|
|
2585
|
+
线下产品调账补偿
|
|
2586
|
+
优惠扣费
|
|
2587
|
+
优惠补偿
|
|
2588
|
+
按量计费迁入资源
|
|
2589
|
+
按量计费迁出资源
|
|
2590
|
+
包年包月迁入资源
|
|
2591
|
+
包年包月迁出资源
|
|
2592
|
+
预付费用
|
|
2593
|
+
小时费用
|
|
2594
|
+
预留实例退款
|
|
2595
|
+
按量计费冲正
|
|
2596
|
+
包年包月转按量
|
|
2597
|
+
保底扣款
|
|
2598
|
+
节省计划小时费用
|
|
2362
2599
|
*/
|
|
2363
|
-
|
|
2600
|
+
ActionType?: string;
|
|
2364
2601
|
/**
|
|
2365
|
-
*
|
|
2602
|
+
* 项目ID:资源所属项目ID
|
|
2366
2603
|
*/
|
|
2367
|
-
|
|
2604
|
+
ProjectId?: number;
|
|
2368
2605
|
/**
|
|
2369
|
-
*
|
|
2606
|
+
* 产品名称代码
|
|
2607
|
+
备注:如需获取当月使用过的BusinessCode,请调用API:<a href="https://cloud.tencent.com/document/product/555/35761">获取产品汇总费用分布</a>
|
|
2370
2608
|
*/
|
|
2371
|
-
|
|
2609
|
+
BusinessCode?: string;
|
|
2372
2610
|
/**
|
|
2373
|
-
*
|
|
2611
|
+
* 上一次请求返回的上下文信息,翻页查询Month>=2023-05的月份的数据可加快查询速度,数据量10万级别以上的用户建议使用,查询速度可提升2~10倍
|
|
2374
2612
|
*/
|
|
2375
|
-
|
|
2613
|
+
Context?: string;
|
|
2376
2614
|
}
|
|
2377
2615
|
/**
|
|
2378
2616
|
* DescribeVoucherUsageDetails请求参数结构体
|
|
@@ -2480,27 +2718,22 @@ export interface DescribeBillResourceSummaryRequest {
|
|
|
2480
2718
|
TagValue?: string;
|
|
2481
2719
|
}
|
|
2482
2720
|
/**
|
|
2483
|
-
*
|
|
2721
|
+
* 由域名和使用明细组成的数据结构
|
|
2484
2722
|
*/
|
|
2485
|
-
export interface
|
|
2723
|
+
export interface DetailSet {
|
|
2486
2724
|
/**
|
|
2487
|
-
*
|
|
2725
|
+
* 域名
|
|
2488
2726
|
*/
|
|
2489
|
-
|
|
2727
|
+
Domain: string;
|
|
2490
2728
|
/**
|
|
2491
|
-
*
|
|
2492
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2729
|
+
* 使用数据明细
|
|
2493
2730
|
*/
|
|
2494
|
-
|
|
2731
|
+
DetailPoints: Array<DetailPoint>;
|
|
2495
2732
|
/**
|
|
2496
|
-
*
|
|
2733
|
+
* 实例ID
|
|
2497
2734
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2498
2735
|
*/
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2502
|
-
*/
|
|
2503
|
-
RequestId?: string;
|
|
2736
|
+
InstanceID: string;
|
|
2504
2737
|
}
|
|
2505
2738
|
/**
|
|
2506
2739
|
* 明细账单配置描述结构
|
|
@@ -2937,6 +3170,52 @@ export interface DescribeBillSummaryByProductResponse {
|
|
|
2937
3170
|
*/
|
|
2938
3171
|
RequestId?: string;
|
|
2939
3172
|
}
|
|
3173
|
+
/**
|
|
3174
|
+
* 节省计划使用率数据
|
|
3175
|
+
*/
|
|
3176
|
+
export interface SavingPlanUsageDetail {
|
|
3177
|
+
/**
|
|
3178
|
+
* 节省计划类型
|
|
3179
|
+
*/
|
|
3180
|
+
SpType?: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* 节省计划状态
|
|
3183
|
+
*/
|
|
3184
|
+
Status?: number;
|
|
3185
|
+
/**
|
|
3186
|
+
* 累计抵扣的金额(单位:元)
|
|
3187
|
+
*/
|
|
3188
|
+
DeductAmount?: string;
|
|
3189
|
+
/**
|
|
3190
|
+
* 累计承诺消费金额(单位:元)
|
|
3191
|
+
*/
|
|
3192
|
+
PromiseAmount?: string;
|
|
3193
|
+
/**
|
|
3194
|
+
* 累计净节省金额(单位:元)
|
|
3195
|
+
*/
|
|
3196
|
+
NetSavings?: string;
|
|
3197
|
+
/**
|
|
3198
|
+
* 使用率
|
|
3199
|
+
*/
|
|
3200
|
+
UtilizationRate?: number;
|
|
3201
|
+
/**
|
|
3202
|
+
* 累计流失金额(单位:元)
|
|
3203
|
+
*/
|
|
3204
|
+
LossAmount?: string;
|
|
3205
|
+
/**
|
|
3206
|
+
* 累计按量计费预期金额(单位:元)
|
|
3207
|
+
*/
|
|
3208
|
+
DosageAmount?: string;
|
|
3209
|
+
/**
|
|
3210
|
+
* 累计成本金额(单位:元)
|
|
3211
|
+
*/
|
|
3212
|
+
CostAmount?: string;
|
|
3213
|
+
/**
|
|
3214
|
+
* 地域
|
|
3215
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3216
|
+
*/
|
|
3217
|
+
Region?: Array<string>;
|
|
3218
|
+
}
|
|
2940
3219
|
/**
|
|
2941
3220
|
* DescribeBillSummaryByRegion返回参数结构体
|
|
2942
3221
|
*/
|
|
@@ -3386,6 +3665,23 @@ export interface BusinessSummaryOverviewItem {
|
|
|
3386
3665
|
*/
|
|
3387
3666
|
TotalCost: string;
|
|
3388
3667
|
}
|
|
3668
|
+
/**
|
|
3669
|
+
* DescribeSavingPlanUsage返回参数结构体
|
|
3670
|
+
*/
|
|
3671
|
+
export interface DescribeSavingPlanUsageResponse {
|
|
3672
|
+
/**
|
|
3673
|
+
* 节省计划使用率数据
|
|
3674
|
+
*/
|
|
3675
|
+
Usages?: Array<SavingPlanUsageDetail>;
|
|
3676
|
+
/**
|
|
3677
|
+
* 查询命中的节省计划总览明细数据总条数
|
|
3678
|
+
*/
|
|
3679
|
+
Total?: number;
|
|
3680
|
+
/**
|
|
3681
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3682
|
+
*/
|
|
3683
|
+
RequestId?: string;
|
|
3684
|
+
}
|
|
3389
3685
|
/**
|
|
3390
3686
|
* 使用记录
|
|
3391
3687
|
*/
|
|
@@ -3405,91 +3701,123 @@ export interface UsageRecords {
|
|
|
3405
3701
|
UsageDetails: Array<UsageDetails>;
|
|
3406
3702
|
}
|
|
3407
3703
|
/**
|
|
3408
|
-
*
|
|
3704
|
+
* DescribeSavingPlanCoverage返回参数结构体
|
|
3409
3705
|
*/
|
|
3410
|
-
export interface
|
|
3706
|
+
export interface DescribeSavingPlanCoverageResponse {
|
|
3411
3707
|
/**
|
|
3412
|
-
*
|
|
3708
|
+
* 节省计划覆盖率明细数据
|
|
3413
3709
|
*/
|
|
3414
|
-
|
|
3710
|
+
DetailSet?: Array<SavingPlanCoverageDetail>;
|
|
3415
3711
|
/**
|
|
3416
|
-
*
|
|
3712
|
+
* 节省计划覆盖率聚合数据
|
|
3713
|
+
*/
|
|
3714
|
+
RateSet?: Array<SavingPlanCoverageRate>;
|
|
3715
|
+
/**
|
|
3716
|
+
* 查询命中的节省计划覆盖率明细数据总条数
|
|
3717
|
+
*/
|
|
3718
|
+
TotalCount?: number;
|
|
3719
|
+
/**
|
|
3720
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3721
|
+
*/
|
|
3722
|
+
RequestId?: string;
|
|
3723
|
+
}
|
|
3724
|
+
/**
|
|
3725
|
+
* DescribeVoucherInfo请求参数结构体
|
|
3726
|
+
*/
|
|
3727
|
+
export interface DescribeVoucherInfoRequest {
|
|
3728
|
+
/**
|
|
3729
|
+
* 一页多少条数据,默认是20条,最大不超过1000
|
|
3417
3730
|
*/
|
|
3418
3731
|
Limit: number;
|
|
3419
3732
|
/**
|
|
3420
|
-
*
|
|
3733
|
+
* 第多少页,默认是1
|
|
3421
3734
|
*/
|
|
3422
|
-
|
|
3735
|
+
Offset: number;
|
|
3423
3736
|
/**
|
|
3424
|
-
*
|
|
3737
|
+
* 券状态:待使用:unUsed,已使用: used,已发货:delivered,已作废: cancel,已过期:overdue
|
|
3425
3738
|
*/
|
|
3426
|
-
|
|
3739
|
+
Status?: string;
|
|
3427
3740
|
/**
|
|
3428
|
-
*
|
|
3741
|
+
* 代金券id
|
|
3429
3742
|
*/
|
|
3430
|
-
|
|
3743
|
+
VoucherId?: string;
|
|
3431
3744
|
/**
|
|
3432
|
-
*
|
|
3745
|
+
* 代金券订单id
|
|
3433
3746
|
*/
|
|
3434
|
-
|
|
3747
|
+
CodeId?: string;
|
|
3435
3748
|
/**
|
|
3436
|
-
*
|
|
3437
|
-
1-表示需要, 0-表示不需要
|
|
3749
|
+
* 商品码
|
|
3438
3750
|
*/
|
|
3439
|
-
|
|
3751
|
+
ProductCode?: string;
|
|
3440
3752
|
/**
|
|
3441
|
-
*
|
|
3753
|
+
* 活动id
|
|
3754
|
+
*/
|
|
3755
|
+
ActivityId?: string;
|
|
3756
|
+
/**
|
|
3757
|
+
* 代金券名称
|
|
3758
|
+
*/
|
|
3759
|
+
VoucherName?: string;
|
|
3760
|
+
/**
|
|
3761
|
+
* 发放开始时间,例:2021-01-01
|
|
3762
|
+
*/
|
|
3763
|
+
TimeFrom?: string;
|
|
3764
|
+
/**
|
|
3765
|
+
* 发放结束时间,例:2021-01-01
|
|
3766
|
+
*/
|
|
3767
|
+
TimeTo?: string;
|
|
3768
|
+
/**
|
|
3769
|
+
* 指定排序字段:BeginTime开始时间、EndTime到期时间、CreateTime创建时间
|
|
3770
|
+
*/
|
|
3771
|
+
SortField?: string;
|
|
3772
|
+
/**
|
|
3773
|
+
* 指定升序降序:desc、asc
|
|
3774
|
+
*/
|
|
3775
|
+
SortOrder?: string;
|
|
3776
|
+
/**
|
|
3777
|
+
* 付费模式,postPay后付费/prePay预付费/riPay预留实例/""或者"*"表示全部模式,如果payMode为""或"*",那么productCode与subProductCode必须传空
|
|
3442
3778
|
*/
|
|
3443
3779
|
PayMode?: string;
|
|
3444
3780
|
/**
|
|
3445
|
-
*
|
|
3781
|
+
* 付费场景PayMode=postPay时:spotpay-竞价实例,"settle account"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景
|
|
3446
3782
|
*/
|
|
3447
|
-
|
|
3783
|
+
PayScene?: string;
|
|
3448
3784
|
/**
|
|
3449
|
-
*
|
|
3450
|
-
包年包月新购
|
|
3451
|
-
包年包月续费
|
|
3452
|
-
包年包月配置变更
|
|
3453
|
-
包年包月退款
|
|
3454
|
-
按量计费扣费
|
|
3455
|
-
线下项目扣费
|
|
3456
|
-
线下产品扣费
|
|
3457
|
-
调账扣费
|
|
3458
|
-
调账补偿
|
|
3459
|
-
按量计费小时结
|
|
3460
|
-
按量计费日结
|
|
3461
|
-
按量计费月结
|
|
3462
|
-
竞价实例小时结
|
|
3463
|
-
线下项目调账补偿
|
|
3464
|
-
线下产品调账补偿
|
|
3465
|
-
优惠扣费
|
|
3466
|
-
优惠补偿
|
|
3467
|
-
按量计费迁入资源
|
|
3468
|
-
按量计费迁出资源
|
|
3469
|
-
包年包月迁入资源
|
|
3470
|
-
包年包月迁出资源
|
|
3471
|
-
预付费用
|
|
3472
|
-
小时费用
|
|
3473
|
-
预留实例退款
|
|
3474
|
-
按量计费冲正
|
|
3475
|
-
包年包月转按量
|
|
3476
|
-
保底扣款
|
|
3477
|
-
节省计划小时费用
|
|
3785
|
+
* 操作人,默认就是用户uin
|
|
3478
3786
|
*/
|
|
3479
|
-
|
|
3787
|
+
Operator?: string;
|
|
3480
3788
|
/**
|
|
3481
|
-
*
|
|
3789
|
+
* 代金券主类型 has_price 为有价现金券 no_price 为无价代金券
|
|
3482
3790
|
*/
|
|
3483
|
-
|
|
3791
|
+
VoucherMainType?: string;
|
|
3484
3792
|
/**
|
|
3485
|
-
*
|
|
3486
|
-
备注:如需获取当月使用过的BusinessCode,请调用API:<a href="https://cloud.tencent.com/document/product/555/35761">获取产品汇总费用分布</a>
|
|
3793
|
+
* 代金券副类型 discount 为折扣券 deduct 为抵扣券
|
|
3487
3794
|
*/
|
|
3488
|
-
|
|
3795
|
+
VoucherSubType?: string;
|
|
3796
|
+
}
|
|
3797
|
+
/**
|
|
3798
|
+
* DescribeSavingPlanUsage请求参数结构体
|
|
3799
|
+
*/
|
|
3800
|
+
export interface DescribeSavingPlanUsageRequest {
|
|
3489
3801
|
/**
|
|
3490
|
-
*
|
|
3802
|
+
* 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
|
3491
3803
|
*/
|
|
3492
|
-
|
|
3804
|
+
StartDate: string;
|
|
3805
|
+
/**
|
|
3806
|
+
* 结束时间,格式yyyy-MM-dd
|
|
3807
|
+
*/
|
|
3808
|
+
EndDate: string;
|
|
3809
|
+
/**
|
|
3810
|
+
* 分页偏移量
|
|
3811
|
+
*/
|
|
3812
|
+
Offset: number;
|
|
3813
|
+
/**
|
|
3814
|
+
* 每页数量,最大值为200
|
|
3815
|
+
*/
|
|
3816
|
+
Limit: number;
|
|
3817
|
+
/**
|
|
3818
|
+
* 查询结果数据的时间间隔
|
|
3819
|
+
*/
|
|
3820
|
+
TimeInterval: string;
|
|
3493
3821
|
}
|
|
3494
3822
|
/**
|
|
3495
3823
|
* DescribeDealsByCond请求参数结构体
|