tencentcloud-sdk-nodejs-billing 4.0.303 → 4.0.304

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.
@@ -51,6 +51,57 @@ export interface CostComponentSet {
51
51
  */
52
52
  IncentivePayAmount: string;
53
53
  }
54
+ /**
55
+ * 代金券相关信息
56
+ */
57
+ export interface VoucherInfos {
58
+ /**
59
+ * 代金券拥有者
60
+ */
61
+ OwnerUin: string;
62
+ /**
63
+ * 券状态:待使用:unUsed,已使用: used,已发货:delivered,已作废: cancel,已过期:overdue
64
+ */
65
+ Status: string;
66
+ /**
67
+ * 代金券面额(微分)
68
+ */
69
+ NominalValue: number;
70
+ /**
71
+ * 剩余金额(微分)
72
+ */
73
+ Balance: number;
74
+ /**
75
+ * 代金券id
76
+ */
77
+ VoucherId: string;
78
+ /**
79
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者'*'表示全部模式
80
+ */
81
+ PayMode: string;
82
+ /**
83
+ * 付费场景PayMode=postPay时:spotpay-竞价实例,"settle account"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景
84
+ */
85
+ PayScene: string;
86
+ /**
87
+ * 有效期生效时间
88
+ */
89
+ BeginTime: string;
90
+ /**
91
+ * 有效期截止时间
92
+ */
93
+ EndTime: string;
94
+ /**
95
+ * 适用商品信息
96
+ 注意:此字段可能返回 null,表示取不到有效值。
97
+ */
98
+ ApplicableProducts: ApplicableProducts;
99
+ /**
100
+ * 不适用商品信息
101
+ 注意:此字段可能返回 null,表示取不到有效值。
102
+ */
103
+ ExcludedProducts: Array<ExcludedProducts>;
104
+ }
54
105
  /**
55
106
  * DescribeCostSummaryByProduct请求参数结构体
56
107
  */
@@ -729,46 +780,26 @@ export interface BillTransactionInfo {
729
780
  DeductMode: string;
730
781
  }
731
782
  /**
732
- * 按地域汇总消费详情
783
+ * DescribeVoucherInfo返回参数结构体
733
784
  */
734
- export interface RegionSummaryOverviewItem {
785
+ export interface DescribeVoucherInfoResponse {
735
786
  /**
736
- * 地域ID
737
- 注意:此字段可能返回 null,表示取不到有效值。
738
- */
739
- RegionId: string;
740
- /**
741
- * 地域名称
787
+ * 券总数
742
788
  */
743
- RegionName: string;
789
+ TotalCount: number;
744
790
  /**
745
- * 实际花费
791
+ * 总余额(微分)
746
792
  */
747
- RealTotalCost: string;
748
- /**
749
- * 费用所占百分比,两位小数
750
- */
751
- RealTotalCostRatio: string;
752
- /**
753
- * 现金金额
754
- */
755
- CashPayAmount: string;
756
- /**
757
- * 赠送金金额
758
- */
759
- IncentivePayAmount: string;
760
- /**
761
- * 代金券金额
762
- */
763
- VoucherPayAmount: string;
793
+ TotalBalance: number;
764
794
  /**
765
- * 账单月份,格式2019-08
766
- */
767
- BillMonth: string;
795
+ * 代金券相关信息
796
+ 注意:此字段可能返回 null,表示取不到有效值。
797
+ */
798
+ VoucherInfos: Array<VoucherInfos>;
768
799
  /**
769
- * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
800
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
770
801
  */
771
- TotalCost: string;
802
+ RequestId?: string;
772
803
  }
773
804
  /**
774
805
  * 消耗按资源汇总详情
@@ -945,6 +976,48 @@ export interface ConsumptionProjectSummaryDataItem {
945
976
  */
946
977
  Business: Array<ConsumptionBusinessSummaryDataItem>;
947
978
  }
979
+ /**
980
+ * 按地域汇总消费详情
981
+ */
982
+ export interface RegionSummaryOverviewItem {
983
+ /**
984
+ * 地域ID
985
+ 注意:此字段可能返回 null,表示取不到有效值。
986
+ */
987
+ RegionId: string;
988
+ /**
989
+ * 地域名称
990
+ */
991
+ RegionName: string;
992
+ /**
993
+ * 实际花费
994
+ */
995
+ RealTotalCost: string;
996
+ /**
997
+ * 费用所占百分比,两位小数
998
+ */
999
+ RealTotalCostRatio: string;
1000
+ /**
1001
+ * 现金金额
1002
+ */
1003
+ CashPayAmount: string;
1004
+ /**
1005
+ * 赠送金金额
1006
+ */
1007
+ IncentivePayAmount: string;
1008
+ /**
1009
+ * 代金券金额
1010
+ */
1011
+ VoucherPayAmount: string;
1012
+ /**
1013
+ * 账单月份,格式2019-08
1014
+ */
1015
+ BillMonth: string;
1016
+ /**
1017
+ * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1018
+ */
1019
+ TotalCost: string;
1020
+ }
948
1021
  /**
949
1022
  * DescribeCostSummaryByProduct返回参数结构体
950
1023
  */
@@ -1364,6 +1437,24 @@ export interface DescribeCostSummaryByProjectRequest {
1364
1437
  */
1365
1438
  NeedRecordNum?: number;
1366
1439
  }
1440
+ /**
1441
+ * 使用记录
1442
+ */
1443
+ export interface UsageRecords {
1444
+ /**
1445
+ * 使用金额(微分)
1446
+ */
1447
+ UsedAmount: number;
1448
+ /**
1449
+ * 使用时间
1450
+ */
1451
+ UsedTime: string;
1452
+ /**
1453
+ * 使用记录细节
1454
+ 注意:此字段可能返回 null,表示取不到有效值。
1455
+ */
1456
+ UsageDetails: Array<UsageDetails>;
1457
+ }
1367
1458
  /**
1368
1459
  * 消耗按地域汇总详情
1369
1460
  */
@@ -1402,6 +1493,21 @@ export interface DescribeDosageCosDetailByDateResponse {
1402
1493
  */
1403
1494
  RequestId?: string;
1404
1495
  }
1496
+ /**
1497
+ * 购买商品信息
1498
+ */
1499
+ export interface UsageDetails {
1500
+ /**
1501
+ * 商品名
1502
+ 注意:此字段可能返回 null,表示取不到有效值。
1503
+ */
1504
+ ProductName: string;
1505
+ /**
1506
+ * 商品细节
1507
+ 注意:此字段可能返回 null,表示取不到有效值。
1508
+ */
1509
+ SubProductName: string;
1510
+ }
1405
1511
  /**
1406
1512
  * DescribeBillResourceSummary返回参数结构体
1407
1513
  */
@@ -1461,6 +1567,84 @@ export interface ActionSummaryOverviewItem {
1461
1567
  */
1462
1568
  TotalCost: string;
1463
1569
  }
1570
+ /**
1571
+ * DescribeVoucherInfo请求参数结构体
1572
+ */
1573
+ export interface DescribeVoucherInfoRequest {
1574
+ /**
1575
+ * 一页多少条数据,默认是20条,最大不超过1000
1576
+ */
1577
+ Limit: number;
1578
+ /**
1579
+ * 第多少页,默认是1
1580
+ */
1581
+ Offset: number;
1582
+ /**
1583
+ * 券状态:待使用:unUsed,已使用: used,已发货:delivered,已作废: cancel,已过期:overdue
1584
+ */
1585
+ Status?: string;
1586
+ /**
1587
+ * 代金券id
1588
+ */
1589
+ VoucherId?: string;
1590
+ /**
1591
+ * 代金券订单id
1592
+ */
1593
+ CodeId?: string;
1594
+ /**
1595
+ * 商品码
1596
+ */
1597
+ ProductCode?: string;
1598
+ /**
1599
+ * 活动id
1600
+ */
1601
+ ActivityId?: string;
1602
+ /**
1603
+ * 代金券名称
1604
+ */
1605
+ VoucherName?: string;
1606
+ /**
1607
+ * 发放开始时间
1608
+ */
1609
+ TimeFrom?: string;
1610
+ /**
1611
+ * 发放结束时间
1612
+ */
1613
+ TimeTo?: string;
1614
+ /**
1615
+ * 指定排序字段:BeginTime开始时间、EndTime到期时间、CreateTime创建时间
1616
+ */
1617
+ SortField?: string;
1618
+ /**
1619
+ * 指定升序降序:desc、asc
1620
+ */
1621
+ SortOrder?: string;
1622
+ /**
1623
+ * 付费模式,postPay后付费/prePay预付费/riPay预留实例/""或者"*"表示全部模式,如果payMode为""或"*",那么productCode与subProductCode必须传空
1624
+ */
1625
+ PayMode?: string;
1626
+ /**
1627
+ * 付费场景PayMode=postPay时:spotpay-竞价实例,"settle account"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景
1628
+ */
1629
+ PayScene?: string;
1630
+ /**
1631
+ * 操作人,默认就是用户uin
1632
+ */
1633
+ Operator?: string;
1634
+ }
1635
+ /**
1636
+ * 适用商品信息
1637
+ */
1638
+ export interface ApplicableProducts {
1639
+ /**
1640
+ * 适用商品名称,值为“全产品通用”或商品名称组成的string,以","分割。
1641
+ */
1642
+ GoodsName: string;
1643
+ /**
1644
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者"*"表示全部模式。如GoodsName为多个商品名以","分割组成的string,而PayMode为"*",表示每一件商品的模式都为"*"。
1645
+ */
1646
+ PayMode: string;
1647
+ }
1464
1648
  /**
1465
1649
  * 付费模式过滤条件
1466
1650
  */
@@ -1474,6 +1658,27 @@ export interface ConditionPayMode {
1474
1658
  */
1475
1659
  PayModeName: string;
1476
1660
  }
1661
+ /**
1662
+ * DescribeVoucherUsageDetails请求参数结构体
1663
+ */
1664
+ export interface DescribeVoucherUsageDetailsRequest {
1665
+ /**
1666
+ * 一页多少条数据,默认是20条,最大不超过1000
1667
+ */
1668
+ Limit: number;
1669
+ /**
1670
+ * 第多少页,默认是1
1671
+ */
1672
+ Offset: number;
1673
+ /**
1674
+ * 代金券id
1675
+ */
1676
+ VoucherId?: string;
1677
+ /**
1678
+ * 操作人,默认就是用户uin
1679
+ */
1680
+ Operator?: string;
1681
+ }
1477
1682
  /**
1478
1683
  * DescribeDealsByCond请求参数结构体
1479
1684
  */
@@ -1690,6 +1895,21 @@ export interface PayDealsResponse {
1690
1895
  */
1691
1896
  RequestId?: string;
1692
1897
  }
1898
+ /**
1899
+ * 总数
1900
+ */
1901
+ export interface SummaryTotal {
1902
+ /**
1903
+ * 总数
1904
+ 注意:此字段可能返回 null,表示取不到有效值。
1905
+ */
1906
+ RealTotalCost: string;
1907
+ /**
1908
+ * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1909
+ 注意:此字段可能返回 null,表示取不到有效值。
1910
+ */
1911
+ TotalCost: string;
1912
+ }
1693
1913
  /**
1694
1914
  * 账单明细数据对象
1695
1915
  */
@@ -2081,6 +2301,28 @@ export interface DescribeCostDetailRequest {
2081
2301
  */
2082
2302
  ResourceId?: string;
2083
2303
  }
2304
+ /**
2305
+ * DescribeVoucherUsageDetails返回参数结构体
2306
+ */
2307
+ export interface DescribeVoucherUsageDetailsResponse {
2308
+ /**
2309
+ * 券总数
2310
+ */
2311
+ TotalCount: number;
2312
+ /**
2313
+ * 总已用金额(微分)
2314
+ */
2315
+ TotalUsedAmount: number;
2316
+ /**
2317
+ * 代金券使用记录细节
2318
+ 注意:此字段可能返回 null,表示取不到有效值。
2319
+ */
2320
+ UsageRecords: Array<UsageRecords>;
2321
+ /**
2322
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2323
+ */
2324
+ RequestId?: string;
2325
+ }
2084
2326
  /**
2085
2327
  * DescribeDealsByCond返回参数结构体
2086
2328
  */
@@ -2266,19 +2508,17 @@ export interface DescribeDosageCosDetailByDateRequest {
2266
2508
  BucketName: string;
2267
2509
  }
2268
2510
  /**
2269
- * 总数
2511
+ * 不适用商品信息
2270
2512
  */
2271
- export interface SummaryTotal {
2513
+ export interface ExcludedProducts {
2272
2514
  /**
2273
- * 总数
2274
- 注意:此字段可能返回 null,表示取不到有效值。
2275
- */
2276
- RealTotalCost: string;
2515
+ * 不适用商品名称
2516
+ */
2517
+ GoodsName: string;
2277
2518
  /**
2278
- * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
2279
- 注意:此字段可能返回 null,表示取不到有效值。
2280
- */
2281
- TotalCost: string;
2519
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者"*"表示全部模式。
2520
+ */
2521
+ PayMode: string;
2282
2522
  }
2283
2523
  /**
2284
2524
  * 按付费模式汇总消费详情