tencentcloud-sdk-ic 3.0.395 → 3.0.398

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5865a1007f3aaa3a86ed468bb0209c1cc2689684
4
- data.tar.gz: b2446f8c958a2b0bd2638987a095eb77eec5d9e9
3
+ metadata.gz: dee8912e61c60378970ff8a4a38c505a0cf6b01e
4
+ data.tar.gz: 020503cbf9236a12378d555ef77ea757464cb4a6
5
5
  SHA512:
6
- metadata.gz: 386d1c4e33257ba58498ce50770afcd2920521f6ebeb22b65963d90f79ed23befd2c9ab04de70546aecacece033e394cc5e68189ce9f134534788061b28f3bcc
7
- data.tar.gz: 9e2f134574cac2e9678a5f933a4e45faa607b58653119abc1d5362536fe84374f62578b4d1ca49abc9a6a0076936e150dcefeeb3185cc272cd520e2f862e835e
6
+ metadata.gz: b1bf4b94f171fa5a764e132c14dffbf20354d454daa1cb734ca06727484e6b18ed003d410463099f601cb8d373f68f9903066f1a92fae3dbf1ab4d13800f98ce
7
+ data.tar.gz: 7b8b4fb44bd6258991981529ab13fe8d7930e5e479f986a0077b561cb3a6b53623ad185e6c91b4cbc03e606f7fe35e0a6d334401813a440772a6f444d2cea7f9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.395
1
+ 3.0.398
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 购买套外流量包
153
+
154
+ # @param request: Request instance for PayForExtendData.
155
+ # @type request: :class:`Tencentcloud::ic::V20190307::PayForExtendDataRequest`
156
+ # @rtype: :class:`Tencentcloud::ic::V20190307::PayForExtendDataResponse`
157
+ def PayForExtendData(request)
158
+ body = send_request('PayForExtendData', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = PayForExtendDataResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 批量为卡片续费,此接口建议调用至少间隔10s,如果出现返回deal lock failed相关的错误,请过10s再重试。
153
177
  # 续费的必要条件:
154
178
  # 1、单次续费的卡片不可以超过 100张。
@@ -481,6 +481,53 @@ module TencentCloud
481
481
  end
482
482
  end
483
483
 
484
+ # PayForExtendData请求参数结构体
485
+ class PayForExtendDataRequest < TencentCloud::Common::AbstractModel
486
+ # @param Iccid: 卡片ICCID
487
+ # @type Iccid: String
488
+ # @param ExtentData: 套外流量,单位MB
489
+ # @type ExtentData: Integer
490
+ # @param Sdkappid: 应用ID
491
+ # @type Sdkappid: Integer
492
+
493
+ attr_accessor :Iccid, :ExtentData, :Sdkappid
494
+
495
+ def initialize(iccid=nil, extentdata=nil, sdkappid=nil)
496
+ @Iccid = iccid
497
+ @ExtentData = extentdata
498
+ @Sdkappid = sdkappid
499
+ end
500
+
501
+ def deserialize(params)
502
+ @Iccid = params['Iccid']
503
+ @ExtentData = params['ExtentData']
504
+ @Sdkappid = params['Sdkappid']
505
+ end
506
+ end
507
+
508
+ # PayForExtendData返回参数结构体
509
+ class PayForExtendDataResponse < TencentCloud::Common::AbstractModel
510
+ # @param Data: 订单号
511
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.ResOrderIds`
512
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
513
+ # @type RequestId: String
514
+
515
+ attr_accessor :Data, :RequestId
516
+
517
+ def initialize(data=nil, requestid=nil)
518
+ @Data = data
519
+ @RequestId = requestid
520
+ end
521
+
522
+ def deserialize(params)
523
+ unless params['Data'].nil?
524
+ @Data = ResOrderIds.new
525
+ @Data.deserialize(params['Data'])
526
+ end
527
+ @RequestId = params['RequestId']
528
+ end
529
+ end
530
+
484
531
  # RenewCards请求参数结构体
485
532
  class RenewCardsRequest < TencentCloud::Common::AbstractModel
486
533
  # @param Sdkappid: 应用ID
@@ -529,6 +576,23 @@ module TencentCloud
529
576
  end
530
577
  end
531
578
 
579
+ # 订单ID集合
580
+ class ResOrderIds < TencentCloud::Common::AbstractModel
581
+ # @param OrderIds: 每一张续费卡片的订单ID数组
582
+ # 注意:此字段可能返回 null,表示取不到有效值。
583
+ # @type OrderIds: Array
584
+
585
+ attr_accessor :OrderIds
586
+
587
+ def initialize(orderids=nil)
588
+ @OrderIds = orderids
589
+ end
590
+
591
+ def deserialize(params)
592
+ @OrderIds = params['OrderIds']
593
+ end
594
+ end
595
+
532
596
  # 云api 卡片续费
533
597
  class ResRenew < TencentCloud::Common::AbstractModel
534
598
  # @param OrderIds: 每一张续费卡片的订单ID数组
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.395
4
+ version: 3.0.398
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common