tencentcloud-sdk-nodejs-svp 4.0.810 → 4.0.862

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.
@@ -70,3 +70,355 @@ export interface CreateSavingPlanOrderResponse {
70
70
  */
71
71
  RequestId?: string
72
72
  }
73
+
74
+ /**
75
+ * DescribeSavingPlanDeduct请求参数结构体
76
+ */
77
+ export interface DescribeSavingPlanDeductRequest {
78
+ /**
79
+ * 分页偏移量
80
+ */
81
+ Offset: number
82
+ /**
83
+ * 每页数量,最大值为200
84
+ */
85
+ Limit: number
86
+ /**
87
+ * 节省计划使用开始的查询结束时间
88
+ */
89
+ StartEndDate: string
90
+ /**
91
+ * 节省计划使用开始的查询开始时间
92
+ */
93
+ StartStartDate: string
94
+ /**
95
+ * 地域编码
96
+ */
97
+ RegionId?: number
98
+ /**
99
+ * 区域编码
100
+ */
101
+ ZoneId?: number
102
+ /**
103
+ * 节省计划资源id
104
+ */
105
+ SpId?: string
106
+ /**
107
+ * 抵扣查询结束时间,格式:yyyy-MM-dd HH:mm:ss
108
+ */
109
+ DeductEndDate?: string
110
+ /**
111
+ * 抵扣查询开始时间,格式:yyyy-MM-dd HH:mm:ss
112
+ */
113
+ DeductStartDate?: string
114
+ /**
115
+ * 节省计划使用结束的查询结束时间
116
+ */
117
+ EndEndDate?: string
118
+ /**
119
+ * 节省计划使用结束的查询开始时间
120
+ */
121
+ EndStartDate?: string
122
+ }
123
+
124
+ /**
125
+ * 节省计划总览明细数据
126
+ */
127
+ export interface SavingPlanOverviewDetail {
128
+ /**
129
+ * 节省计划类型
130
+ */
131
+ SpType?: string
132
+ /**
133
+ * 支付金额(单位:元)
134
+ */
135
+ PayAmount?: string
136
+ /**
137
+ * 开始时间 yyyy-mm-dd HH:mm:ss格式
138
+ */
139
+ StartTime?: string
140
+ /**
141
+ * 结束时间 yyyy-mm-dd HH:mm:ss格式
142
+ */
143
+ EndTime?: string
144
+ /**
145
+ * 状态
146
+ */
147
+ Status?: number
148
+ /**
149
+ * 累计节省金额(单位:元)
150
+ */
151
+ SavingAmount?: string
152
+ /**
153
+ * 地域
154
+ */
155
+ Region?: Array<string>
156
+ /**
157
+ * 支付类型
158
+ 注意:此字段可能返回 null,表示取不到有效值。
159
+ */
160
+ PayType?: number
161
+ /**
162
+ * 购买时间 yyyy-mm-dd HH:mm:ss格式
163
+ 注意:此字段可能返回 null,表示取不到有效值。
164
+ */
165
+ BuyTime?: string
166
+ }
167
+
168
+ /**
169
+ * DescribeSavingPlanUsage请求参数结构体
170
+ */
171
+ export interface DescribeSavingPlanUsageRequest {
172
+ /**
173
+ * 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
174
+ */
175
+ StartDate: string
176
+ /**
177
+ * 结束时间,格式yyyy-MM-dd
178
+ */
179
+ EndDate: string
180
+ /**
181
+ * 分页偏移量
182
+ */
183
+ Offset: number
184
+ /**
185
+ * 每页数量,最大值为200
186
+ */
187
+ Limit: number
188
+ /**
189
+ * 查询结果数据的时间间隔
190
+ */
191
+ TimeInterval: string
192
+ }
193
+
194
+ /**
195
+ * 节省计划抵扣明细
196
+ */
197
+ export interface SavingPlanDeductDetail {
198
+ /**
199
+ * 账号id
200
+ 注意:此字段可能返回 null,表示取不到有效值。
201
+ */
202
+ OwnerUin?: string
203
+ /**
204
+ * 账号名称
205
+ 注意:此字段可能返回 null,表示取不到有效值。
206
+ */
207
+ OwnerUinName?: string
208
+ /**
209
+ * 抵扣账号id
210
+ 注意:此字段可能返回 null,表示取不到有效值。
211
+ */
212
+ PayerUin?: string
213
+ /**
214
+ * 抵扣账号名称
215
+ 注意:此字段可能返回 null,表示取不到有效值。
216
+ */
217
+ PayerUinName?: string
218
+ /**
219
+ * 节省计划资源id
220
+ 注意:此字段可能返回 null,表示取不到有效值。
221
+ */
222
+ SpId?: string
223
+ /**
224
+ * 产品编码
225
+ 注意:此字段可能返回 null,表示取不到有效值。
226
+ */
227
+ ProductCode?: string
228
+ /**
229
+ * 产品名称
230
+ 注意:此字段可能返回 null,表示取不到有效值。
231
+ */
232
+ ProductName?: string
233
+ /**
234
+ * 子产品编码
235
+ 注意:此字段可能返回 null,表示取不到有效值。
236
+ */
237
+ SubProductCode?: string
238
+ /**
239
+ * 子产品名称
240
+ 注意:此字段可能返回 null,表示取不到有效值。
241
+ */
242
+ SubProductName?: string
243
+ /**
244
+ * 交易ID
245
+ 注意:此字段可能返回 null,表示取不到有效值。
246
+ */
247
+ OutTradeNo?: string
248
+ /**
249
+ * 地域id
250
+ 注意:此字段可能返回 null,表示取不到有效值。
251
+ */
252
+ RegionId?: number
253
+ /**
254
+ * 地域名称
255
+ 注意:此字段可能返回 null,表示取不到有效值。
256
+ */
257
+ RegionName?: string
258
+ /**
259
+ * 地区id
260
+ 注意:此字段可能返回 null,表示取不到有效值。
261
+ */
262
+ ZoneId?: number
263
+ /**
264
+ * 地区名称
265
+ 注意:此字段可能返回 null,表示取不到有效值。
266
+ */
267
+ ZoneName?: string
268
+ /**
269
+ * 开始使用时间
270
+ 注意:此字段可能返回 null,表示取不到有效值。
271
+ */
272
+ SpStartTime?: string
273
+ /**
274
+ * 结束使用时间
275
+ 注意:此字段可能返回 null,表示取不到有效值。
276
+ */
277
+ SpEndTime?: string
278
+ /**
279
+ * 折扣时间
280
+ 注意:此字段可能返回 null,表示取不到有效值。
281
+ */
282
+ DeductTime?: string
283
+ /**
284
+ * 抵扣金额,单位分
285
+ 注意:此字段可能返回 null,表示取不到有效值。
286
+ */
287
+ DeductAmount?: string
288
+ /**
289
+ * 抵扣折扣率
290
+ 注意:此字段可能返回 null,表示取不到有效值。
291
+ */
292
+ DeductDiscount?: string
293
+ /**
294
+ * 抵扣比率
295
+ 注意:此字段可能返回 null,表示取不到有效值。
296
+ */
297
+ DeductRate?: string
298
+ }
299
+
300
+ /**
301
+ * DescribeSavingPlanOverview返回参数结构体
302
+ */
303
+ export interface DescribeSavingPlanOverviewResponse {
304
+ /**
305
+ * 节省计划总览明细数据
306
+ 注意:此字段可能返回 null,表示取不到有效值。
307
+ */
308
+ Overviews?: Array<SavingPlanOverviewDetail>
309
+ /**
310
+ * 查询命中的节省计划总览明细数据总条数
311
+ */
312
+ Total?: number
313
+ /**
314
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
315
+ */
316
+ RequestId?: string
317
+ }
318
+
319
+ /**
320
+ * DescribeSavingPlanUsage返回参数结构体
321
+ */
322
+ export interface DescribeSavingPlanUsageResponse {
323
+ /**
324
+ * 查询命中的节省计划总览明细数据总条数
325
+ */
326
+ Total?: number
327
+ /**
328
+ * 节省计划使用率数据
329
+ 注意:此字段可能返回 null,表示取不到有效值。
330
+ */
331
+ Usages?: Array<SavingPlanUsageDetail>
332
+ /**
333
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
334
+ */
335
+ RequestId?: string
336
+ }
337
+
338
+ /**
339
+ * DescribeSavingPlanDeduct返回参数结构体
340
+ */
341
+ export interface DescribeSavingPlanDeductResponse {
342
+ /**
343
+ * 查询命中的节省计划抵扣明细数据总条数
344
+ 注意:此字段可能返回 null,表示取不到有效值。
345
+ */
346
+ Total?: number
347
+ /**
348
+ * 查询命中的节省计划抵扣明细数据明细
349
+ */
350
+ Deducts?: Array<SavingPlanDeductDetail>
351
+ /**
352
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
353
+ */
354
+ RequestId?: string
355
+ }
356
+
357
+ /**
358
+ * DescribeSavingPlanOverview请求参数结构体
359
+ */
360
+ export interface DescribeSavingPlanOverviewRequest {
361
+ /**
362
+ * 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
363
+ */
364
+ StartDate: string
365
+ /**
366
+ * 结束时间,格式yyyy-MM-dd
367
+ */
368
+ EndDate: string
369
+ /**
370
+ * 分页偏移量
371
+ */
372
+ Offset: number
373
+ /**
374
+ * 每页数量,最大值为200
375
+ */
376
+ Limit: number
377
+ }
378
+
379
+ /**
380
+ * 节省计划使用率数据
381
+ */
382
+ export interface SavingPlanUsageDetail {
383
+ /**
384
+ * 节省计划类型
385
+ */
386
+ SpType?: string
387
+ /**
388
+ * 节省计划状态
389
+ */
390
+ Status?: number
391
+ /**
392
+ * 累计抵扣的金额(单位:元)
393
+ */
394
+ DeductAmount?: string
395
+ /**
396
+ * 累计承诺消费金额(单位:元)
397
+ */
398
+ PromiseAmount?: string
399
+ /**
400
+ * 累计净节省金额(单位:元)
401
+ */
402
+ NetSavings?: string
403
+ /**
404
+ * 使用率
405
+ */
406
+ UtilizationRate?: number
407
+ /**
408
+ * 累计流失金额(单位:元)
409
+ */
410
+ LossAmount?: string
411
+ /**
412
+ * 累计按量计费预期金额(单位:元)
413
+ */
414
+ DosageAmount?: string
415
+ /**
416
+ * 累计成本金额(单位:元)
417
+ */
418
+ CostAmount?: string
419
+ /**
420
+ * 地域
421
+ 注意:此字段可能返回 null,表示取不到有效值。
422
+ */
423
+ Region?: Array<string>
424
+ }
@@ -1,13 +1,25 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CreateSavingPlanOrderRequest, CreateSavingPlanOrderResponse } from "./svp_models";
2
+ import { CreateSavingPlanOrderRequest, CreateSavingPlanOrderResponse, DescribeSavingPlanDeductRequest, DescribeSavingPlanUsageRequest, DescribeSavingPlanOverviewResponse, DescribeSavingPlanUsageResponse, DescribeSavingPlanDeductResponse, DescribeSavingPlanOverviewRequest } from "./svp_models";
3
3
  /**
4
4
  * svp client
5
5
  * @class
6
6
  */
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 查用当前用户明细节省计划查询时段内的使用情况
11
+ */
12
+ DescribeSavingPlanUsage(req: DescribeSavingPlanUsageRequest, cb?: (error: string, rep: DescribeSavingPlanUsageResponse) => void): Promise<DescribeSavingPlanUsageResponse>;
13
+ /**
14
+ * 查用当前用户明细节省计划总览查询时段内的使用情况
15
+ */
16
+ DescribeSavingPlanOverview(req: DescribeSavingPlanOverviewRequest, cb?: (error: string, rep: DescribeSavingPlanOverviewResponse) => void): Promise<DescribeSavingPlanOverviewResponse>;
9
17
  /**
10
18
  * 创建节省计划订单
11
19
  */
12
20
  CreateSavingPlanOrder(req: CreateSavingPlanOrderRequest, cb?: (error: string, rep: CreateSavingPlanOrderResponse) => void): Promise<CreateSavingPlanOrderResponse>;
21
+ /**
22
+ * 查询节省计划抵扣明细
23
+ */
24
+ DescribeSavingPlanDeduct(req: DescribeSavingPlanDeductRequest, cb?: (error: string, rep: DescribeSavingPlanDeductResponse) => void): Promise<DescribeSavingPlanDeductResponse>;
13
25
  }
@@ -27,11 +27,29 @@ class Client extends TencentCloudCommon.AbstractClient {
27
27
  constructor(clientConfig) {
28
28
  super("svp.tencentcloudapi.com", "2024-01-25", clientConfig);
29
29
  }
30
+ /**
31
+ * 查用当前用户明细节省计划查询时段内的使用情况
32
+ */
33
+ async DescribeSavingPlanUsage(req, cb) {
34
+ return this.request("DescribeSavingPlanUsage", req, cb);
35
+ }
36
+ /**
37
+ * 查用当前用户明细节省计划总览查询时段内的使用情况
38
+ */
39
+ async DescribeSavingPlanOverview(req, cb) {
40
+ return this.request("DescribeSavingPlanOverview", req, cb);
41
+ }
30
42
  /**
31
43
  * 创建节省计划订单
32
44
  */
33
45
  async CreateSavingPlanOrder(req, cb) {
34
46
  return this.request("CreateSavingPlanOrder", req, cb);
35
47
  }
48
+ /**
49
+ * 查询节省计划抵扣明细
50
+ */
51
+ async DescribeSavingPlanDeduct(req, cb) {
52
+ return this.request("DescribeSavingPlanDeduct", req, cb);
53
+ }
36
54
  }
37
55
  exports.Client = Client;