tencentcloud-sdk-trp 3.0.442 → 3.0.443

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: ce21f795e63b650f65ee88bf3d4e28cbfafeab74
4
+ data.tar.gz: f41a885531c0229449626f5807968603ab2b2069
5
5
  SHA512:
6
- metadata.gz: f1f12f5e5f5266cbd88fecd77a221a58534405aecc48e498496fe50814ef312541262913898b30872d2085e0cdc2dee60174796b75b38159b42f6ca7970032d6
7
- data.tar.gz: f5a6f49893121366897146fb673401e02342e19073d253ed7dc59924aba7f4a9a67a95311091b3932a992b267d5771f2ad4935bfdaec702f373f062a9479c732
6
+ metadata.gz: 2ecde81e174d7593b9abe4722157e9950bcc0f7aee3a52744acf14b72072d0c9aa17bc1ccef7ad3a31f4dd06caf8ae855d2af46b7bd9ae9a7af607a4a74e06f7
7
+ data.tar.gz: 30be82139857c29f1a8f6b66089eabeb0662e95176efd49b029268a4115d84277de41f546adb2b4b60e3b577a7648654485be4527a36ab79316682405eb840b1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.442
1
+ 3.0.443
@@ -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.443
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-02 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: