tencentcloud-sdk-trp 3.0.442 → 3.0.444

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: f4fff40f9f38a22ff5774f9c65001b6dba6a3d37
4
- data.tar.gz: e9487c9b8553fa6a2a3f9a4dc28f519f4b1ba037
3
+ metadata.gz: 19a0185713ac8d1a5c2d751d468f8b5c89bc5f12
4
+ data.tar.gz: c6ed9a8ca2fcd90e519e7d4e8383ccfbd1a7019d
5
5
  SHA512:
6
- metadata.gz: f1f12f5e5f5266cbd88fecd77a221a58534405aecc48e498496fe50814ef312541262913898b30872d2085e0cdc2dee60174796b75b38159b42f6ca7970032d6
7
- data.tar.gz: f5a6f49893121366897146fb673401e02342e19073d253ed7dc59924aba7f4a9a67a95311091b3932a992b267d5771f2ad4935bfdaec702f373f062a9479c732
6
+ metadata.gz: af8edf0706317c98648e89c1dc48c17525a756339ce2e9f56dce7068a9f0e4df8a37e6477f069d78940c2b9311cf664a3165ca46b79a4e12327acfd36fda3e54
7
+ data.tar.gz: 58d5285d42bf59b4ed30acf3cdc029a11c564b47efb64f2557df5f90407f739d4a2567c896d4a3c40b4f7bf70e9a58b395963e96b0917f1d66d4b01e0d3e6894
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.442
1
+ 3.0.444
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 以订单方式新建企业信息/配额信息
81
+
82
+ # @param request: Request instance for CreateCorporationOrder.
83
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateCorporationOrderRequest`
84
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateCorporationOrderResponse`
85
+ def CreateCorporationOrder(request)
86
+ body = send_request('CreateCorporationOrder', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateCorporationOrderResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 生成自定义码包
81
105
 
82
106
  # @param request: Request instance for CreateCustomPack.
@@ -453,6 +453,75 @@ module TencentCloud
453
453
  end
454
454
  end
455
455
 
456
+ # CreateCorporationOrder请求参数结构体
457
+ class CreateCorporationOrderRequest < TencentCloud::Common::AbstractModel
458
+ # @param CorpName: 企业名称
459
+ # @type CorpName: String
460
+ # @param Owner: 所有者ID
461
+ # @type Owner: String
462
+ # @param CodeQuota: 溯源码额度
463
+ # @type CodeQuota: Integer
464
+ # @param ExpireTime: 额度过期时间
465
+ # @type ExpireTime: String
466
+ # @param Amount: 金额
467
+ # @type Amount: Integer
468
+ # @param CorpId: 企业ID
469
+ # @type CorpId: Integer
470
+ # @param ContactPerson: 联系人
471
+ # @type ContactPerson: String
472
+ # @param ContactNumber: 联系电话
473
+ # @type ContactNumber: String
474
+ # @param Remark: 备注
475
+ # @type Remark: String
476
+
477
+ attr_accessor :CorpName, :Owner, :CodeQuota, :ExpireTime, :Amount, :CorpId, :ContactPerson, :ContactNumber, :Remark
478
+
479
+ def initialize(corpname=nil, owner=nil, codequota=nil, expiretime=nil, amount=nil, corpid=nil, contactperson=nil, contactnumber=nil, remark=nil)
480
+ @CorpName = corpname
481
+ @Owner = owner
482
+ @CodeQuota = codequota
483
+ @ExpireTime = expiretime
484
+ @Amount = amount
485
+ @CorpId = corpid
486
+ @ContactPerson = contactperson
487
+ @ContactNumber = contactnumber
488
+ @Remark = remark
489
+ end
490
+
491
+ def deserialize(params)
492
+ @CorpName = params['CorpName']
493
+ @Owner = params['Owner']
494
+ @CodeQuota = params['CodeQuota']
495
+ @ExpireTime = params['ExpireTime']
496
+ @Amount = params['Amount']
497
+ @CorpId = params['CorpId']
498
+ @ContactPerson = params['ContactPerson']
499
+ @ContactNumber = params['ContactNumber']
500
+ @Remark = params['Remark']
501
+ end
502
+ end
503
+
504
+ # CreateCorporationOrder返回参数结构体
505
+ class CreateCorporationOrderResponse < TencentCloud::Common::AbstractModel
506
+ # @param CorpId: 企业ID
507
+ # 注意:此字段可能返回 null,表示取不到有效值。
508
+ # @type CorpId: Integer
509
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
510
+ # @type RequestId: String
511
+
512
+ attr_accessor :CorpId, :RequestId
513
+
514
+ def initialize(corpid=nil, requestid=nil)
515
+ @CorpId = corpid
516
+ @RequestId = requestid
517
+ end
518
+
519
+ def deserialize(params)
520
+ @CorpId = params['CorpId']
521
+ @RequestId = params['RequestId']
522
+ end
523
+ end
524
+
456
525
  # CreateCustomPack请求参数结构体
457
526
  class CreateCustomPackRequest < TencentCloud::Common::AbstractModel
458
527
  # @param MerchantId: 商户ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.442
4
+ version: 3.0.444
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-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-trp.rb
37
36
  - lib/v20210515/models.rb
38
37
  - lib/v20210515/client.rb
38
+ - lib/tencentcloud-sdk-trp.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: