tencentcloud-sdk-nodejs-intl-en 3.0.639 → 3.0.640

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.639",
3
+ "version": "3.0.640",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.639";
1
+ const sdkVersion = "3.0.640";
2
2
  module.exports = sdkVersion
@@ -57,6 +57,7 @@ const ActivateInstanceRequest = models.ActivateInstanceRequest;
57
57
  const DatabaseTables = models.DatabaseTables;
58
58
  const AddClusterSlaveZoneRequest = models.AddClusterSlaveZoneRequest;
59
59
  const UpgradeInstanceResponse = models.UpgradeInstanceResponse;
60
+ const ModifyVipVportRequest = models.ModifyVipVportRequest;
60
61
  const DescribeClustersRequest = models.DescribeClustersRequest;
61
62
  const DescribeInstanceDetailResponse = models.DescribeInstanceDetailResponse;
62
63
  const ModifyDBInstanceSecurityGroupsResponse = models.ModifyDBInstanceSecurityGroupsResponse;
@@ -96,6 +97,7 @@ const ModifyAuditServiceRequest = models.ModifyAuditServiceRequest;
96
97
  const CreateClustersRequest = models.CreateClustersRequest;
97
98
  const DescribeClustersResponse = models.DescribeClustersResponse;
98
99
  const DescribeBackupConfigResponse = models.DescribeBackupConfigResponse;
100
+ const ModifyVipVportResponse = models.ModifyVipVportResponse;
99
101
  const ModifyDBInstanceSecurityGroupsRequest = models.ModifyDBInstanceSecurityGroupsRequest;
100
102
  const DescribeParamTemplatesResponse = models.DescribeParamTemplatesResponse;
101
103
  const CloseAuditServiceRequest = models.CloseAuditServiceRequest;
@@ -311,14 +313,14 @@ class CynosdbClient extends AbstractClient {
311
313
  }
312
314
 
313
315
  /**
314
- * This API is used to deactivate a cluster.
315
- * @param {OfflineClusterRequest} req
316
- * @param {function(string, OfflineClusterResponse):void} cb
316
+ * This API is used to modify the IP and port of an instance group.
317
+ * @param {ModifyVipVportRequest} req
318
+ * @param {function(string, ModifyVipVportResponse):void} cb
317
319
  * @public
318
320
  */
319
- OfflineCluster(req, cb) {
320
- let resp = new OfflineClusterResponse();
321
- this.request("OfflineCluster", req, resp, cb);
321
+ ModifyVipVport(req, cb) {
322
+ let resp = new ModifyVipVportResponse();
323
+ this.request("ModifyVipVport", req, resp, cb);
322
324
  }
323
325
 
324
326
  /**
@@ -860,6 +862,17 @@ class CynosdbClient extends AbstractClient {
860
862
  this.request("ExportInstanceSlowQueries", req, resp, cb);
861
863
  }
862
864
 
865
+ /**
866
+ * This API is used to deactivate a cluster.
867
+ * @param {OfflineClusterRequest} req
868
+ * @param {function(string, OfflineClusterResponse):void} cb
869
+ * @public
870
+ */
871
+ OfflineCluster(req, cb) {
872
+ let resp = new OfflineClusterResponse();
873
+ this.request("OfflineCluster", req, resp, cb);
874
+ }
875
+
863
876
  /**
864
877
  * This API is used to modify an audit rule template.
865
878
  * @param {ModifyAuditRuleTemplatesRequest} req
@@ -2037,6 +2037,70 @@ Note: this field may return null, indicating that no valid values can be obtaine
2037
2037
  }
2038
2038
  }
2039
2039
 
2040
+ /**
2041
+ * ModifyVipVport request structure.
2042
+ * @class
2043
+ */
2044
+ class ModifyVipVportRequest extends AbstractModel {
2045
+ constructor(){
2046
+ super();
2047
+
2048
+ /**
2049
+ * Cluster ID
2050
+ * @type {string || null}
2051
+ */
2052
+ this.ClusterId = null;
2053
+
2054
+ /**
2055
+ * Instance group ID
2056
+ * @type {string || null}
2057
+ */
2058
+ this.InstanceGrpId = null;
2059
+
2060
+ /**
2061
+ * Target IP to be modified
2062
+ * @type {string || null}
2063
+ */
2064
+ this.Vip = null;
2065
+
2066
+ /**
2067
+ * Target port to be modified
2068
+ * @type {number || null}
2069
+ */
2070
+ this.Vport = null;
2071
+
2072
+ /**
2073
+ * Database type. Valid values:
2074
+ <li> MYSQL </li>
2075
+ * @type {string || null}
2076
+ */
2077
+ this.DbType = null;
2078
+
2079
+ /**
2080
+ * Valid hours of old IPs. If it is set to `0` hours, the IPs will be released immediately.
2081
+ * @type {number || null}
2082
+ */
2083
+ this.OldIpReserveHours = null;
2084
+
2085
+ }
2086
+
2087
+ /**
2088
+ * @private
2089
+ */
2090
+ deserialize(params) {
2091
+ if (!params) {
2092
+ return;
2093
+ }
2094
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
2095
+ this.InstanceGrpId = 'InstanceGrpId' in params ? params.InstanceGrpId : null;
2096
+ this.Vip = 'Vip' in params ? params.Vip : null;
2097
+ this.Vport = 'Vport' in params ? params.Vport : null;
2098
+ this.DbType = 'DbType' in params ? params.DbType : null;
2099
+ this.OldIpReserveHours = 'OldIpReserveHours' in params ? params.OldIpReserveHours : null;
2100
+
2101
+ }
2102
+ }
2103
+
2040
2104
  /**
2041
2105
  * DescribeClusters request structure.
2042
2106
  * @class
@@ -4492,6 +4556,41 @@ Note: this field may return null, indicating that no valid values can be obtaine
4492
4556
  }
4493
4557
  }
4494
4558
 
4559
+ /**
4560
+ * ModifyVipVport response structure.
4561
+ * @class
4562
+ */
4563
+ class ModifyVipVportResponse extends AbstractModel {
4564
+ constructor(){
4565
+ super();
4566
+
4567
+ /**
4568
+ * Async task ID
4569
+ * @type {number || null}
4570
+ */
4571
+ this.FlowId = null;
4572
+
4573
+ /**
4574
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4575
+ * @type {string || null}
4576
+ */
4577
+ this.RequestId = null;
4578
+
4579
+ }
4580
+
4581
+ /**
4582
+ * @private
4583
+ */
4584
+ deserialize(params) {
4585
+ if (!params) {
4586
+ return;
4587
+ }
4588
+ this.FlowId = 'FlowId' in params ? params.FlowId : null;
4589
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4590
+
4591
+ }
4592
+ }
4593
+
4495
4594
  /**
4496
4595
  * ModifyDBInstanceSecurityGroups request structure.
4497
4596
  * @class
@@ -10027,6 +10126,7 @@ module.exports = {
10027
10126
  DatabaseTables: DatabaseTables,
10028
10127
  AddClusterSlaveZoneRequest: AddClusterSlaveZoneRequest,
10029
10128
  UpgradeInstanceResponse: UpgradeInstanceResponse,
10129
+ ModifyVipVportRequest: ModifyVipVportRequest,
10030
10130
  DescribeClustersRequest: DescribeClustersRequest,
10031
10131
  DescribeInstanceDetailResponse: DescribeInstanceDetailResponse,
10032
10132
  ModifyDBInstanceSecurityGroupsResponse: ModifyDBInstanceSecurityGroupsResponse,
@@ -10066,6 +10166,7 @@ module.exports = {
10066
10166
  CreateClustersRequest: CreateClustersRequest,
10067
10167
  DescribeClustersResponse: DescribeClustersResponse,
10068
10168
  DescribeBackupConfigResponse: DescribeBackupConfigResponse,
10169
+ ModifyVipVportResponse: ModifyVipVportResponse,
10069
10170
  ModifyDBInstanceSecurityGroupsRequest: ModifyDBInstanceSecurityGroupsRequest,
10070
10171
  DescribeParamTemplatesResponse: DescribeParamTemplatesResponse,
10071
10172
  CloseAuditServiceRequest: CloseAuditServiceRequest,
@@ -16,33 +16,38 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
- const GetCountryCodesRequest = models.GetCountryCodesRequest;
20
19
  const QueryPartnerCreditResponse = models.QueryPartnerCreditResponse;
21
20
  const QueryVoucherListByUinRequest = models.QueryVoucherListByUinRequest;
22
21
  const QueryVoucherAmountByUinResponse = models.QueryVoucherAmountByUinResponse;
23
22
  const QueryVoucherAmountByUinItem = models.QueryVoucherAmountByUinItem;
24
- const QueryCreditAllocationHistoryData = models.QueryCreditAllocationHistoryData;
23
+ const QueryDirectCustomersCreditData = models.QueryDirectCustomersCreditData;
24
+ const QueryVoucherListByUinItem = models.QueryVoucherListByUinItem;
25
+ const QueryPartnerCreditRequest = models.QueryPartnerCreditRequest;
25
26
  const AllocateCustomerCreditRequest = models.AllocateCustomerCreditRequest;
26
- const GetCountryCodesResponse = models.GetCountryCodesResponse;
27
+ const DescribeCustomerBillSummaryResponse = models.DescribeCustomerBillSummaryResponse;
27
28
  const QueryCustomersCreditRequest = models.QueryCustomersCreditRequest;
28
29
  const QueryCreditByUinListRequest = models.QueryCreditByUinListRequest;
29
30
  const CreateAccountResponse = models.CreateAccountResponse;
30
- const QueryPartnerCreditRequest = models.QueryPartnerCreditRequest;
31
+ const GetCountryCodesRequest = models.GetCountryCodesRequest;
31
32
  const QueryCreditByUinListResponse = models.QueryCreditByUinListResponse;
32
33
  const QueryVoucherPoolResponse = models.QueryVoucherPoolResponse;
34
+ const DescribeCustomerBillDetailRequest = models.DescribeCustomerBillDetailRequest;
35
+ const DescribeCustomerBillDetailResponse = models.DescribeCustomerBillDetailResponse;
33
36
  const QueryCreditAllocationHistoryResponse = models.QueryCreditAllocationHistoryResponse;
34
37
  const CreateAccountRequest = models.CreateAccountRequest;
38
+ const GetCountryCodesResponse = models.GetCountryCodesResponse;
35
39
  const QueryDirectCustomersCreditRequest = models.QueryDirectCustomersCreditRequest;
36
40
  const AllocateCustomerCreditResponse = models.AllocateCustomerCreditResponse;
37
41
  const QueryVoucherListByUinVoucherItem = models.QueryVoucherListByUinVoucherItem;
38
42
  const QueryVoucherAmountByUinRequest = models.QueryVoucherAmountByUinRequest;
39
- const QueryDirectCustomersCreditData = models.QueryDirectCustomersCreditData;
43
+ const QueryCreditAllocationHistoryData = models.QueryCreditAllocationHistoryData;
40
44
  const QueryCreditAllocationHistoryRequest = models.QueryCreditAllocationHistoryRequest;
41
45
  const CountryCodeItem = models.CountryCodeItem;
46
+ const BillDetailData = models.BillDetailData;
42
47
  const QueryDirectCustomersCreditResponse = models.QueryDirectCustomersCreditResponse;
43
48
  const QueryVoucherListByUinResponse = models.QueryVoucherListByUinResponse;
44
49
  const QueryVoucherPoolRequest = models.QueryVoucherPoolRequest;
45
- const QueryVoucherListByUinItem = models.QueryVoucherListByUinItem;
50
+ const DescribeCustomerBillSummaryRequest = models.DescribeCustomerBillSummaryRequest;
46
51
  const QueryCustomersCreditData = models.QueryCustomersCreditData;
47
52
  const QueryCustomersCreditResponse = models.QueryCustomersCreditResponse;
48
53
 
@@ -164,6 +169,28 @@ Notes:<br>
164
169
  this.request("QueryCreditAllocationHistory", req, resp, cb);
165
170
  }
166
171
 
172
+ /**
173
+ * This API is used to query the customer bill details.
174
+ * @param {DescribeCustomerBillDetailRequest} req
175
+ * @param {function(string, DescribeCustomerBillDetailResponse):void} cb
176
+ * @public
177
+ */
178
+ DescribeCustomerBillDetail(req, cb) {
179
+ let resp = new DescribeCustomerBillDetailResponse();
180
+ this.request("DescribeCustomerBillDetail", req, resp, cb);
181
+ }
182
+
183
+ /**
184
+ * This API is used to query the total amount of customer bills.
185
+ * @param {DescribeCustomerBillSummaryRequest} req
186
+ * @param {function(string, DescribeCustomerBillSummaryResponse):void} cb
187
+ * @public
188
+ */
189
+ DescribeCustomerBillSummary(req, cb) {
190
+ let resp = new DescribeCustomerBillSummaryResponse();
191
+ this.request("DescribeCustomerBillSummary", req, resp, cb);
192
+ }
193
+
167
194
  /**
168
195
  * This API is used for a partner to the credits and basic information of cutomers.
169
196
  * @param {QueryCustomersCreditRequest} req
@@ -16,27 +16,6 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
- /**
20
- * GetCountryCodes request structure.
21
- * @class
22
- */
23
- class GetCountryCodesRequest extends AbstractModel {
24
- constructor(){
25
- super();
26
-
27
- }
28
-
29
- /**
30
- * @private
31
- */
32
- deserialize(params) {
33
- if (!params) {
34
- return;
35
- }
36
-
37
- }
38
- }
39
-
40
19
  /**
41
20
  * QueryPartnerCredit response structure.
42
21
  * @class
@@ -207,36 +186,104 @@ class QueryVoucherAmountByUinItem extends AbstractModel {
207
186
  }
208
187
 
209
188
  /**
210
- * Returned information for querying the customer credit allocation records
189
+ * The credit information of direct customers
211
190
  * @class
212
191
  */
213
- class QueryCreditAllocationHistoryData extends AbstractModel {
192
+ class QueryDirectCustomersCreditData extends AbstractModel {
214
193
  constructor(){
215
194
  super();
216
195
 
217
196
  /**
218
- * Allocation time
219
- * @type {string || null}
197
+ * User UIN
198
+ * @type {number || null}
220
199
  */
221
- this.AllocatedTime = null;
200
+ this.Uin = null;
222
201
 
223
202
  /**
224
- * Operator
225
- * @type {string || null}
203
+ * Total credit
204
+ * @type {number || null}
226
205
  */
227
- this.Operator = null;
206
+ this.TotalCredit = null;
228
207
 
229
208
  /**
230
- * Allocated credit value
209
+ * Remaining credit
231
210
  * @type {number || null}
232
211
  */
233
- this.Credit = null;
212
+ this.RemainingCredit = null;
213
+
214
+ }
215
+
216
+ /**
217
+ * @private
218
+ */
219
+ deserialize(params) {
220
+ if (!params) {
221
+ return;
222
+ }
223
+ this.Uin = 'Uin' in params ? params.Uin : null;
224
+ this.TotalCredit = 'TotalCredit' in params ? params.TotalCredit : null;
225
+ this.RemainingCredit = 'RemainingCredit' in params ? params.RemainingCredit : null;
226
+
227
+ }
228
+ }
229
+
230
+ /**
231
+ * Voucher information of a single customer
232
+ * @class
233
+ */
234
+ class QueryVoucherListByUinItem extends AbstractModel {
235
+ constructor(){
236
+ super();
234
237
 
235
238
  /**
236
- * The allocated total credit
239
+ * Customer UIN
237
240
  * @type {number || null}
238
241
  */
239
- this.AllocatedCredit = null;
242
+ this.ClientUin = null;
243
+
244
+ /**
245
+ * The total number of vouchers
246
+ * @type {number || null}
247
+ */
248
+ this.TotalCount = null;
249
+
250
+ /**
251
+ * Voucher details
252
+ * @type {Array.<QueryVoucherListByUinVoucherItem> || null}
253
+ */
254
+ this.Data = null;
255
+
256
+ }
257
+
258
+ /**
259
+ * @private
260
+ */
261
+ deserialize(params) {
262
+ if (!params) {
263
+ return;
264
+ }
265
+ this.ClientUin = 'ClientUin' in params ? params.ClientUin : null;
266
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
267
+
268
+ if (params.Data) {
269
+ this.Data = new Array();
270
+ for (let z in params.Data) {
271
+ let obj = new QueryVoucherListByUinVoucherItem();
272
+ obj.deserialize(params.Data[z]);
273
+ this.Data.push(obj);
274
+ }
275
+ }
276
+
277
+ }
278
+ }
279
+
280
+ /**
281
+ * QueryPartnerCredit request structure.
282
+ * @class
283
+ */
284
+ class QueryPartnerCreditRequest extends AbstractModel {
285
+ constructor(){
286
+ super();
240
287
 
241
288
  }
242
289
 
@@ -247,10 +294,6 @@ class QueryCreditAllocationHistoryData extends AbstractModel {
247
294
  if (!params) {
248
295
  return;
249
296
  }
250
- this.AllocatedTime = 'AllocatedTime' in params ? params.AllocatedTime : null;
251
- this.Operator = 'Operator' in params ? params.Operator : null;
252
- this.Credit = 'Credit' in params ? params.Credit : null;
253
- this.AllocatedCredit = 'AllocatedCredit' in params ? params.AllocatedCredit : null;
254
297
 
255
298
  }
256
299
  }
@@ -291,18 +334,18 @@ class AllocateCustomerCreditRequest extends AbstractModel {
291
334
  }
292
335
 
293
336
  /**
294
- * GetCountryCodes response structure.
337
+ * DescribeCustomerBillSummary response structure.
295
338
  * @class
296
339
  */
297
- class GetCountryCodesResponse extends AbstractModel {
340
+ class DescribeCustomerBillSummaryResponse extends AbstractModel {
298
341
  constructor(){
299
342
  super();
300
343
 
301
344
  /**
302
- * List of country/region codes
303
- * @type {Array.<CountryCodeItem> || null}
345
+ * Total amount
346
+ * @type {number || null}
304
347
  */
305
- this.Data = null;
348
+ this.TotalCost = null;
306
349
 
307
350
  /**
308
351
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
@@ -319,15 +362,7 @@ class GetCountryCodesResponse extends AbstractModel {
319
362
  if (!params) {
320
363
  return;
321
364
  }
322
-
323
- if (params.Data) {
324
- this.Data = new Array();
325
- for (let z in params.Data) {
326
- let obj = new CountryCodeItem();
327
- obj.deserialize(params.Data[z]);
328
- this.Data.push(obj);
329
- }
330
- }
365
+ this.TotalCost = 'TotalCost' in params ? params.TotalCost : null;
331
366
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
332
367
 
333
368
  }
@@ -453,10 +488,10 @@ class CreateAccountResponse extends AbstractModel {
453
488
  }
454
489
 
455
490
  /**
456
- * QueryPartnerCredit request structure.
491
+ * GetCountryCodes request structure.
457
492
  * @class
458
493
  */
459
- class QueryPartnerCreditRequest extends AbstractModel {
494
+ class GetCountryCodesRequest extends AbstractModel {
460
495
  constructor(){
461
496
  super();
462
497
 
@@ -579,6 +614,157 @@ class QueryVoucherPoolResponse extends AbstractModel {
579
614
  }
580
615
  }
581
616
 
617
+ /**
618
+ * DescribeCustomerBillDetail request structure.
619
+ * @class
620
+ */
621
+ class DescribeCustomerBillDetailRequest extends AbstractModel {
622
+ constructor(){
623
+ super();
624
+
625
+ /**
626
+ * Customer UIN
627
+ * @type {number || null}
628
+ */
629
+ this.CustomerUin = null;
630
+
631
+ /**
632
+ * The queried month in “YYYY-MM” format, such as 2023-01.
633
+ * @type {string || null}
634
+ */
635
+ this.Month = null;
636
+
637
+ /**
638
+ * A pagination parameter that specifies the number of entries per page
639
+ * @type {number || null}
640
+ */
641
+ this.PageSize = null;
642
+
643
+ /**
644
+ * A pagination parameter that specifies the current page number
645
+ * @type {number || null}
646
+ */
647
+ this.Page = null;
648
+
649
+ /**
650
+ * Billing mode. Valid values:
651
+ `prePay` (Monthly subscription)
652
+ `postPay` (Pay-as-you-go)
653
+ * @type {string || null}
654
+ */
655
+ this.PayMode = null;
656
+
657
+ /**
658
+ * Transaction type. Valid values:
659
+ `prepay_purchase` (Purchase)
660
+ `prepay_renew` (Renewal)
661
+ `prepay_modify` (Upgrade/Downgrade)
662
+ `prepay_return` ( Monthly subscription refund)
663
+ `postpay_deduct` (Pay-as-you-go)
664
+ `postpay_deduct_h` (Hourly settlement)
665
+ `postpay_deduct_d` (Daily settlement)
666
+ `postpay_deduct_m` (Monthly settlement)
667
+ `offline_deduct` (Offline project deduction)
668
+ `online_deduct` (Offline product deduction)
669
+ `recon_deduct` (Adjustment - deduction)
670
+ `recon_increase` (Adjustment - compensation)
671
+ `ripay_purchase` (One-off RI Fee)
672
+ `postpay_deduct_s` (Spot)
673
+ `ri_hour_pay` (Hourly RI fee)
674
+ `prePurchase` (New monthly subscription)
675
+ `preRenew` (Monthly subscription renewal)
676
+ `preUpgrade` (Upgrade/Downgrade)
677
+ `preDowngrade` (Upgrade/Downgrade)
678
+ `svp_hour_pay` (Hourly Savings Plan fee)
679
+ `recon_guarantee` (Minimum spend deduction)
680
+ `pre_purchase` (New monthly subscription)
681
+ `pre_renew` (Monthly subscription renewal)
682
+ `pre_upgrade` (Upgrade/Downgrade)
683
+ `pre_downgrade` (Upgrade/Downgrade)
684
+ * @type {string || null}
685
+ */
686
+ this.ActionType = null;
687
+
688
+ /**
689
+ * Payment status
690
+ `0`: N/A
691
+ `1`: Paid
692
+ `2`: Unpaid
693
+ * @type {string || null}
694
+ */
695
+ this.IsConfirmed = null;
696
+
697
+ }
698
+
699
+ /**
700
+ * @private
701
+ */
702
+ deserialize(params) {
703
+ if (!params) {
704
+ return;
705
+ }
706
+ this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
707
+ this.Month = 'Month' in params ? params.Month : null;
708
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
709
+ this.Page = 'Page' in params ? params.Page : null;
710
+ this.PayMode = 'PayMode' in params ? params.PayMode : null;
711
+ this.ActionType = 'ActionType' in params ? params.ActionType : null;
712
+ this.IsConfirmed = 'IsConfirmed' in params ? params.IsConfirmed : null;
713
+
714
+ }
715
+ }
716
+
717
+ /**
718
+ * DescribeCustomerBillDetail response structure.
719
+ * @class
720
+ */
721
+ class DescribeCustomerBillDetailResponse extends AbstractModel {
722
+ constructor(){
723
+ super();
724
+
725
+ /**
726
+ * Total number of data entries
727
+ * @type {number || null}
728
+ */
729
+ this.Total = null;
730
+
731
+ /**
732
+ * Data details
733
+ Note: This field may return null, indicating that no valid values can be obtained.
734
+ * @type {Array.<BillDetailData> || null}
735
+ */
736
+ this.DetailSet = null;
737
+
738
+ /**
739
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
740
+ * @type {string || null}
741
+ */
742
+ this.RequestId = null;
743
+
744
+ }
745
+
746
+ /**
747
+ * @private
748
+ */
749
+ deserialize(params) {
750
+ if (!params) {
751
+ return;
752
+ }
753
+ this.Total = 'Total' in params ? params.Total : null;
754
+
755
+ if (params.DetailSet) {
756
+ this.DetailSet = new Array();
757
+ for (let z in params.DetailSet) {
758
+ let obj = new BillDetailData();
759
+ obj.deserialize(params.DetailSet[z]);
760
+ this.DetailSet.push(obj);
761
+ }
762
+ }
763
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
764
+
765
+ }
766
+ }
767
+
582
768
  /**
583
769
  * QueryCreditAllocationHistory response structure.
584
770
  * @class
@@ -712,6 +898,49 @@ A global mobile number within 1-32 digits is allowed, such as 18888888888.
712
898
  }
713
899
  }
714
900
 
901
+ /**
902
+ * GetCountryCodes response structure.
903
+ * @class
904
+ */
905
+ class GetCountryCodesResponse extends AbstractModel {
906
+ constructor(){
907
+ super();
908
+
909
+ /**
910
+ * List of country/region codes
911
+ * @type {Array.<CountryCodeItem> || null}
912
+ */
913
+ this.Data = null;
914
+
915
+ /**
916
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
917
+ * @type {string || null}
918
+ */
919
+ this.RequestId = null;
920
+
921
+ }
922
+
923
+ /**
924
+ * @private
925
+ */
926
+ deserialize(params) {
927
+ if (!params) {
928
+ return;
929
+ }
930
+
931
+ if (params.Data) {
932
+ this.Data = new Array();
933
+ for (let z in params.Data) {
934
+ let obj = new CountryCodeItem();
935
+ obj.deserialize(params.Data[z]);
936
+ this.Data.push(obj);
937
+ }
938
+ }
939
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
940
+
941
+ }
942
+ }
943
+
715
944
  /**
716
945
  * QueryDirectCustomersCredit request structure.
717
946
  * @class
@@ -853,30 +1082,36 @@ class QueryVoucherAmountByUinRequest extends AbstractModel {
853
1082
  }
854
1083
 
855
1084
  /**
856
- * The credit information of direct customers
1085
+ * Returned information for querying the customer credit allocation records
857
1086
  * @class
858
1087
  */
859
- class QueryDirectCustomersCreditData extends AbstractModel {
1088
+ class QueryCreditAllocationHistoryData extends AbstractModel {
860
1089
  constructor(){
861
1090
  super();
862
1091
 
863
1092
  /**
864
- * User UIN
865
- * @type {number || null}
1093
+ * Allocation time
1094
+ * @type {string || null}
866
1095
  */
867
- this.Uin = null;
1096
+ this.AllocatedTime = null;
868
1097
 
869
1098
  /**
870
- * Total credit
1099
+ * Operator
1100
+ * @type {string || null}
1101
+ */
1102
+ this.Operator = null;
1103
+
1104
+ /**
1105
+ * Allocated credit value
871
1106
  * @type {number || null}
872
1107
  */
873
- this.TotalCredit = null;
1108
+ this.Credit = null;
874
1109
 
875
1110
  /**
876
- * Remaining credit
1111
+ * The allocated total credit
877
1112
  * @type {number || null}
878
1113
  */
879
- this.RemainingCredit = null;
1114
+ this.AllocatedCredit = null;
880
1115
 
881
1116
  }
882
1117
 
@@ -887,9 +1122,10 @@ class QueryDirectCustomersCreditData extends AbstractModel {
887
1122
  if (!params) {
888
1123
  return;
889
1124
  }
890
- this.Uin = 'Uin' in params ? params.Uin : null;
891
- this.TotalCredit = 'TotalCredit' in params ? params.TotalCredit : null;
892
- this.RemainingCredit = 'RemainingCredit' in params ? params.RemainingCredit : null;
1125
+ this.AllocatedTime = 'AllocatedTime' in params ? params.AllocatedTime : null;
1126
+ this.Operator = 'Operator' in params ? params.Operator : null;
1127
+ this.Credit = 'Credit' in params ? params.Credit : null;
1128
+ this.AllocatedCredit = 'AllocatedCredit' in params ? params.AllocatedCredit : null;
893
1129
 
894
1130
  }
895
1131
  }
@@ -992,6 +1228,274 @@ class CountryCodeItem extends AbstractModel {
992
1228
  }
993
1229
  }
994
1230
 
1231
+ /**
1232
+ * Customer bill details
1233
+ * @class
1234
+ */
1235
+ class BillDetailData extends AbstractModel {
1236
+ constructor(){
1237
+ super();
1238
+
1239
+ /**
1240
+ * Reseller account
1241
+ Note: This field may return null, indicating that no valid values can be obtained.
1242
+ * @type {number || null}
1243
+ */
1244
+ this.PayerAccountId = null;
1245
+
1246
+ /**
1247
+ * Customer account
1248
+ Note: This field may return null, indicating that no valid values can be obtained.
1249
+ * @type {number || null}
1250
+ */
1251
+ this.OwnerAccountId = null;
1252
+
1253
+ /**
1254
+ * Operator account
1255
+ Note: This field may return null, indicating that no valid values can be obtained.
1256
+ * @type {number || null}
1257
+ */
1258
+ this.OperatorAccountId = null;
1259
+
1260
+ /**
1261
+ * Product name
1262
+ Note: This field may return null, indicating that no valid values can be obtained.
1263
+ * @type {string || null}
1264
+ */
1265
+ this.ProductName = null;
1266
+
1267
+ /**
1268
+ * Billing mode
1269
+ `Monthly subscription` (Monthly subscription)
1270
+ `Pay-As-You-Go resources` (Pay-as-you-go)
1271
+ `Standard RI` (Reserved instance)
1272
+ Note: This field may return null, indicating that no valid values can be obtained.
1273
+ * @type {string || null}
1274
+ */
1275
+ this.BillingMode = null;
1276
+
1277
+ /**
1278
+ * Project name
1279
+
1280
+ Note: This field may return null, indicating that no valid values can be obtained.
1281
+ * @type {string || null}
1282
+ */
1283
+ this.ProjectName = null;
1284
+
1285
+ /**
1286
+ * Resource region
1287
+ Note: This field may return null, indicating that no valid values can be obtained.
1288
+ * @type {string || null}
1289
+ */
1290
+ this.Region = null;
1291
+
1292
+ /**
1293
+ * Resource AZ
1294
+ Note: This field may return null, indicating that no valid values can be obtained.
1295
+ * @type {string || null}
1296
+ */
1297
+ this.AvailabilityZone = null;
1298
+
1299
+ /**
1300
+ * Instance ID
1301
+ Note: This field may return null, indicating that no valid values can be obtained.
1302
+ * @type {string || null}
1303
+ */
1304
+ this.InstanceId = null;
1305
+
1306
+ /**
1307
+ * Instance name
1308
+ Note: This field may return null, indicating that no valid values can be obtained.
1309
+ * @type {string || null}
1310
+ */
1311
+ this.InstanceName = null;
1312
+
1313
+ /**
1314
+ * Subproduct name
1315
+
1316
+ Note: This field may return null, indicating that no valid values can be obtained.
1317
+ * @type {string || null}
1318
+ */
1319
+ this.SubProductName = null;
1320
+
1321
+ /**
1322
+ * Settlement type
1323
+ Note: This field may return null, indicating that no valid values can be obtained.
1324
+ * @type {string || null}
1325
+ */
1326
+ this.TransactionType = null;
1327
+
1328
+ /**
1329
+ * Transaction ID
1330
+ Note: This field may return null, indicating that no valid values can be obtained.
1331
+ * @type {string || null}
1332
+ */
1333
+ this.TransactionId = null;
1334
+
1335
+ /**
1336
+ * Settlement time
1337
+
1338
+ Note: This field may return null, indicating that no valid values can be obtained.
1339
+ * @type {string || null}
1340
+ */
1341
+ this.TransactionTime = null;
1342
+
1343
+ /**
1344
+ * Start time of resource use
1345
+ Note: This field may return null, indicating that no valid values can be obtained.
1346
+ * @type {string || null}
1347
+ */
1348
+ this.UsageStartTime = null;
1349
+
1350
+ /**
1351
+ * End time of resource use
1352
+ Note: This field may return null, indicating that no valid values can be obtained.
1353
+ * @type {string || null}
1354
+ */
1355
+ this.UsageEndTime = null;
1356
+
1357
+ /**
1358
+ * Component
1359
+ Note: This field may return null, indicating that no valid values can be obtained.
1360
+ * @type {string || null}
1361
+ */
1362
+ this.ComponentType = null;
1363
+
1364
+ /**
1365
+ * Component name
1366
+ Note: This field may return null, indicating that no valid values can be obtained.
1367
+ * @type {string || null}
1368
+ */
1369
+ this.ComponentName = null;
1370
+
1371
+ /**
1372
+ * Component list price
1373
+ Note: This field may return null, indicating that no valid values can be obtained.
1374
+ * @type {string || null}
1375
+ */
1376
+ this.ComponentListPrice = null;
1377
+
1378
+ /**
1379
+ * Price unit
1380
+ Note: This field may return null, indicating that no valid values can be obtained.
1381
+ * @type {string || null}
1382
+ */
1383
+ this.ComponentPriceMeasurementUnit = null;
1384
+
1385
+ /**
1386
+ * Component usage
1387
+ Note: This field may return null, indicating that no valid values can be obtained.
1388
+ * @type {string || null}
1389
+ */
1390
+ this.ComponentUsage = null;
1391
+
1392
+ /**
1393
+ * Component usage unit
1394
+ Note: This field may return null, indicating that no valid values can be obtained.
1395
+ * @type {string || null}
1396
+ */
1397
+ this.ComponentUsageUnit = null;
1398
+
1399
+ /**
1400
+ * Resource usage duration
1401
+ Note: This field may return null, indicating that no valid values can be obtained.
1402
+ * @type {string || null}
1403
+ */
1404
+ this.UsageDuration = null;
1405
+
1406
+ /**
1407
+ * Duration unit
1408
+ Note: This field may return null, indicating that no valid values can be obtained.
1409
+ * @type {string || null}
1410
+ */
1411
+ this.DurationUnit = null;
1412
+
1413
+ /**
1414
+ * Original cost
1415
+ Original cost = component list price * component usage * usage duration
1416
+ Note: This field may return null, indicating that no valid values can be obtained.
1417
+ * @type {string || null}
1418
+ */
1419
+ this.OriginalCost = null;
1420
+
1421
+ /**
1422
+ * Discount, which defaults to `1`, indicating there is no discount.
1423
+ Note: This field may return null, indicating that no valid values can be obtained.
1424
+ * @type {string || null}
1425
+ */
1426
+ this.DiscountRate = null;
1427
+
1428
+ /**
1429
+ * Currency
1430
+ Note: This field may return null, indicating that no valid values can be obtained.
1431
+ * @type {string || null}
1432
+ */
1433
+ this.Currency = null;
1434
+
1435
+ /**
1436
+ * Discounted total
1437
+ Note: This field may return null, indicating that no valid values can be obtained.
1438
+ * @type {string || null}
1439
+ */
1440
+ this.TotalAmountAfterDiscount = null;
1441
+
1442
+ /**
1443
+ * Voucher deduction
1444
+ Note: This field may return null, indicating that no valid values can be obtained.
1445
+ * @type {string || null}
1446
+ */
1447
+ this.VoucherDeduction = null;
1448
+
1449
+ /**
1450
+ * Total cost = discounted total - voucher deduction
1451
+ Note: This field may return null, indicating that no valid values can be obtained.
1452
+ * @type {string || null}
1453
+ */
1454
+ this.TotalCost = null;
1455
+
1456
+ }
1457
+
1458
+ /**
1459
+ * @private
1460
+ */
1461
+ deserialize(params) {
1462
+ if (!params) {
1463
+ return;
1464
+ }
1465
+ this.PayerAccountId = 'PayerAccountId' in params ? params.PayerAccountId : null;
1466
+ this.OwnerAccountId = 'OwnerAccountId' in params ? params.OwnerAccountId : null;
1467
+ this.OperatorAccountId = 'OperatorAccountId' in params ? params.OperatorAccountId : null;
1468
+ this.ProductName = 'ProductName' in params ? params.ProductName : null;
1469
+ this.BillingMode = 'BillingMode' in params ? params.BillingMode : null;
1470
+ this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
1471
+ this.Region = 'Region' in params ? params.Region : null;
1472
+ this.AvailabilityZone = 'AvailabilityZone' in params ? params.AvailabilityZone : null;
1473
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1474
+ this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
1475
+ this.SubProductName = 'SubProductName' in params ? params.SubProductName : null;
1476
+ this.TransactionType = 'TransactionType' in params ? params.TransactionType : null;
1477
+ this.TransactionId = 'TransactionId' in params ? params.TransactionId : null;
1478
+ this.TransactionTime = 'TransactionTime' in params ? params.TransactionTime : null;
1479
+ this.UsageStartTime = 'UsageStartTime' in params ? params.UsageStartTime : null;
1480
+ this.UsageEndTime = 'UsageEndTime' in params ? params.UsageEndTime : null;
1481
+ this.ComponentType = 'ComponentType' in params ? params.ComponentType : null;
1482
+ this.ComponentName = 'ComponentName' in params ? params.ComponentName : null;
1483
+ this.ComponentListPrice = 'ComponentListPrice' in params ? params.ComponentListPrice : null;
1484
+ this.ComponentPriceMeasurementUnit = 'ComponentPriceMeasurementUnit' in params ? params.ComponentPriceMeasurementUnit : null;
1485
+ this.ComponentUsage = 'ComponentUsage' in params ? params.ComponentUsage : null;
1486
+ this.ComponentUsageUnit = 'ComponentUsageUnit' in params ? params.ComponentUsageUnit : null;
1487
+ this.UsageDuration = 'UsageDuration' in params ? params.UsageDuration : null;
1488
+ this.DurationUnit = 'DurationUnit' in params ? params.DurationUnit : null;
1489
+ this.OriginalCost = 'OriginalCost' in params ? params.OriginalCost : null;
1490
+ this.DiscountRate = 'DiscountRate' in params ? params.DiscountRate : null;
1491
+ this.Currency = 'Currency' in params ? params.Currency : null;
1492
+ this.TotalAmountAfterDiscount = 'TotalAmountAfterDiscount' in params ? params.TotalAmountAfterDiscount : null;
1493
+ this.VoucherDeduction = 'VoucherDeduction' in params ? params.VoucherDeduction : null;
1494
+ this.TotalCost = 'TotalCost' in params ? params.TotalCost : null;
1495
+
1496
+ }
1497
+ }
1498
+
995
1499
  /**
996
1500
  * QueryDirectCustomersCredit response structure.
997
1501
  * @class
@@ -1100,10 +1604,10 @@ class QueryVoucherPoolRequest extends AbstractModel {
1100
1604
  }
1101
1605
 
1102
1606
  /**
1103
- * Voucher information of a single customer
1607
+ * DescribeCustomerBillSummary request structure.
1104
1608
  * @class
1105
1609
  */
1106
- class QueryVoucherListByUinItem extends AbstractModel {
1610
+ class DescribeCustomerBillSummaryRequest extends AbstractModel {
1107
1611
  constructor(){
1108
1612
  super();
1109
1613
 
@@ -1111,19 +1615,61 @@ class QueryVoucherListByUinItem extends AbstractModel {
1111
1615
  * Customer UIN
1112
1616
  * @type {number || null}
1113
1617
  */
1114
- this.ClientUin = null;
1618
+ this.CustomerUin = null;
1115
1619
 
1116
1620
  /**
1117
- * The total number of vouchers
1118
- * @type {number || null}
1621
+ * The queried month in “YYYY-MM” format, such as 2023-01.
1622
+ * @type {string || null}
1119
1623
  */
1120
- this.TotalCount = null;
1624
+ this.Month = null;
1121
1625
 
1122
1626
  /**
1123
- * Voucher details
1124
- * @type {Array.<QueryVoucherListByUinVoucherItem> || null}
1627
+ * Billing mode. Valid values:
1628
+ `prePay` (Monthly subscription)
1629
+ `postPay` (Pay-as-you-go)
1630
+ * @type {string || null}
1125
1631
  */
1126
- this.Data = null;
1632
+ this.PayMode = null;
1633
+
1634
+ /**
1635
+ * Transaction type. Valid values:
1636
+ `prepay_purchase` (Purchase)
1637
+ `prepay_renew` (Renewal)
1638
+ `prepay_modify` (Upgrade/Downgrade)
1639
+ `prepay_return` (Monthly subscription refund)
1640
+ `postpay_deduct` (Pay-as-you-go)
1641
+ `postpay_deduct_h` (Hourly settlement)
1642
+ `postpay_deduct_d` (Daily settlement)
1643
+ `postpay_deduct_m` (Monthly settlement)
1644
+ `offline_deduct` (Offline project deduction)
1645
+ `online_deduct` (Offline product deduction)
1646
+ `recon_deduct` (Adjustment - deduction)
1647
+ `recon_increase` (Adjustment - compensation)
1648
+ `ripay_purchase` (One-off RI Fee)
1649
+ `postpay_deduct_s` (Spot)
1650
+ `ri_hour_pay` (Hourly RI fee)
1651
+ `prePurchase` (New monthly subscription)
1652
+ `preRenew` (Monthly subscription renewal)
1653
+ `preUpgrade` (Upgrade/Downgrade)
1654
+ `preDowngrade` (Upgrade/Downgrade)
1655
+ `svp_hour_pay` (Hourly Savings Plan fee)
1656
+ `recon_guarantee` (Minimum spend deduction)
1657
+ `pre_purchase` (New monthly subscription)
1658
+ `pre_renew` (Monthly subscription renewal)
1659
+ `pre_upgrade` (Upgrade/Downgrade)
1660
+ `pre_downgrade` (Upgrade/Downgrade)
1661
+ * @type {string || null}
1662
+ */
1663
+ this.ActionType = null;
1664
+
1665
+ /**
1666
+ * Payment status
1667
+ `0`: N/A
1668
+ `1`: Paid
1669
+ `2`: Unpaid
1670
+ * @type {string || null}
1671
+ */
1672
+ this.IsConfirmed = null;
1127
1673
 
1128
1674
  }
1129
1675
 
@@ -1134,17 +1680,11 @@ class QueryVoucherListByUinItem extends AbstractModel {
1134
1680
  if (!params) {
1135
1681
  return;
1136
1682
  }
1137
- this.ClientUin = 'ClientUin' in params ? params.ClientUin : null;
1138
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1139
-
1140
- if (params.Data) {
1141
- this.Data = new Array();
1142
- for (let z in params.Data) {
1143
- let obj = new QueryVoucherListByUinVoucherItem();
1144
- obj.deserialize(params.Data[z]);
1145
- this.Data.push(obj);
1146
- }
1147
- }
1683
+ this.CustomerUin = 'CustomerUin' in params ? params.CustomerUin : null;
1684
+ this.Month = 'Month' in params ? params.Month : null;
1685
+ this.PayMode = 'PayMode' in params ? params.PayMode : null;
1686
+ this.ActionType = 'ActionType' in params ? params.ActionType : null;
1687
+ this.IsConfirmed = 'IsConfirmed' in params ? params.IsConfirmed : null;
1148
1688
 
1149
1689
  }
1150
1690
  }
@@ -1313,33 +1853,38 @@ Note: This field may return null, indicating that no valid values can be obtaine
1313
1853
  }
1314
1854
 
1315
1855
  module.exports = {
1316
- GetCountryCodesRequest: GetCountryCodesRequest,
1317
1856
  QueryPartnerCreditResponse: QueryPartnerCreditResponse,
1318
1857
  QueryVoucherListByUinRequest: QueryVoucherListByUinRequest,
1319
1858
  QueryVoucherAmountByUinResponse: QueryVoucherAmountByUinResponse,
1320
1859
  QueryVoucherAmountByUinItem: QueryVoucherAmountByUinItem,
1321
- QueryCreditAllocationHistoryData: QueryCreditAllocationHistoryData,
1860
+ QueryDirectCustomersCreditData: QueryDirectCustomersCreditData,
1861
+ QueryVoucherListByUinItem: QueryVoucherListByUinItem,
1862
+ QueryPartnerCreditRequest: QueryPartnerCreditRequest,
1322
1863
  AllocateCustomerCreditRequest: AllocateCustomerCreditRequest,
1323
- GetCountryCodesResponse: GetCountryCodesResponse,
1864
+ DescribeCustomerBillSummaryResponse: DescribeCustomerBillSummaryResponse,
1324
1865
  QueryCustomersCreditRequest: QueryCustomersCreditRequest,
1325
1866
  QueryCreditByUinListRequest: QueryCreditByUinListRequest,
1326
1867
  CreateAccountResponse: CreateAccountResponse,
1327
- QueryPartnerCreditRequest: QueryPartnerCreditRequest,
1868
+ GetCountryCodesRequest: GetCountryCodesRequest,
1328
1869
  QueryCreditByUinListResponse: QueryCreditByUinListResponse,
1329
1870
  QueryVoucherPoolResponse: QueryVoucherPoolResponse,
1871
+ DescribeCustomerBillDetailRequest: DescribeCustomerBillDetailRequest,
1872
+ DescribeCustomerBillDetailResponse: DescribeCustomerBillDetailResponse,
1330
1873
  QueryCreditAllocationHistoryResponse: QueryCreditAllocationHistoryResponse,
1331
1874
  CreateAccountRequest: CreateAccountRequest,
1875
+ GetCountryCodesResponse: GetCountryCodesResponse,
1332
1876
  QueryDirectCustomersCreditRequest: QueryDirectCustomersCreditRequest,
1333
1877
  AllocateCustomerCreditResponse: AllocateCustomerCreditResponse,
1334
1878
  QueryVoucherListByUinVoucherItem: QueryVoucherListByUinVoucherItem,
1335
1879
  QueryVoucherAmountByUinRequest: QueryVoucherAmountByUinRequest,
1336
- QueryDirectCustomersCreditData: QueryDirectCustomersCreditData,
1880
+ QueryCreditAllocationHistoryData: QueryCreditAllocationHistoryData,
1337
1881
  QueryCreditAllocationHistoryRequest: QueryCreditAllocationHistoryRequest,
1338
1882
  CountryCodeItem: CountryCodeItem,
1883
+ BillDetailData: BillDetailData,
1339
1884
  QueryDirectCustomersCreditResponse: QueryDirectCustomersCreditResponse,
1340
1885
  QueryVoucherListByUinResponse: QueryVoucherListByUinResponse,
1341
1886
  QueryVoucherPoolRequest: QueryVoucherPoolRequest,
1342
- QueryVoucherListByUinItem: QueryVoucherListByUinItem,
1887
+ DescribeCustomerBillSummaryRequest: DescribeCustomerBillSummaryRequest,
1343
1888
  QueryCustomersCreditData: QueryCustomersCreditData,
1344
1889
  QueryCustomersCreditResponse: QueryCustomersCreditResponse,
1345
1890