tencentcloud-sdk-mall 3.0.614

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 793704af7fffbb982768a320da28e553a76d927b
4
+ data.tar.gz: 4b951ad685ea16c979c6c64c55d87784e9c372e2
5
+ SHA512:
6
+ metadata.gz: f92a3a2e33e8fc49aeede1ba4ac89813816a22abf9195f15bfed1cdc8e4401180d1a7893118155748e6e01ee1057d03e0da9a9f0526be3455a1edd17ac88c772
7
+ data.tar.gz: 9090b11944880e63f18efd90635b0c0228aa4491ac665f47a459056461d84d25a3118682c8d3d3e8d734ee494e63ccc158b141dea77a7880f813525e7f34c70f
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.614
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230518/client'
6
+ require_relative 'v20230518/models'
7
+
8
+ module TencentCloud
9
+ module Mall
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Mall
21
+ module V20230518
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-05-18'
26
+ api_endpoint = 'mall.tencentcloudapi.com'
27
+ sdk_version = 'MALL_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 依据客户的Uin查询开通的资源列表
33
+
34
+ # @param request: Request instance for DescribeDrawResourceList.
35
+ # @type request: :class:`Tencentcloud::mall::V20230518::DescribeDrawResourceListRequest`
36
+ # @rtype: :class:`Tencentcloud::mall::V20230518::DescribeDrawResourceListResponse`
37
+ def DescribeDrawResourceList(request)
38
+ body = send_request('DescribeDrawResourceList', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeDrawResourceListResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,146 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Mall
19
+ module V20230518
20
+ # DescribeDrawResourceList请求参数结构体
21
+ class DescribeDrawResourceListRequest < TencentCloud::Common::AbstractModel
22
+ # @param PageNumber: PageNumber
23
+ # @type PageNumber: Integer
24
+ # @param PageSize: PageSize
25
+ # @type PageSize: Integer
26
+
27
+ attr_accessor :PageNumber, :PageSize
28
+
29
+ def initialize(pagenumber=nil, pagesize=nil)
30
+ @PageNumber = pagenumber
31
+ @PageSize = pagesize
32
+ end
33
+
34
+ def deserialize(params)
35
+ @PageNumber = params['PageNumber']
36
+ @PageSize = params['PageSize']
37
+ end
38
+ end
39
+
40
+ # DescribeDrawResourceList返回参数结构体
41
+ class DescribeDrawResourceListResponse < TencentCloud::Common::AbstractModel
42
+ # @param TotalCount: 返回数据条数
43
+ # @type TotalCount: Integer
44
+ # @param ResourceDrawList: 返回数据内容
45
+ # @type ResourceDrawList: Array
46
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
47
+ # @type RequestId: String
48
+
49
+ attr_accessor :TotalCount, :ResourceDrawList, :RequestId
50
+
51
+ def initialize(totalcount=nil, resourcedrawlist=nil, requestid=nil)
52
+ @TotalCount = totalcount
53
+ @ResourceDrawList = resourcedrawlist
54
+ @RequestId = requestid
55
+ end
56
+
57
+ def deserialize(params)
58
+ @TotalCount = params['TotalCount']
59
+ unless params['ResourceDrawList'].nil?
60
+ @ResourceDrawList = []
61
+ params['ResourceDrawList'].each do |i|
62
+ resourcedrawlisttype_tmp = ResourceDrawListType.new
63
+ resourcedrawlisttype_tmp.deserialize(i)
64
+ @ResourceDrawList << resourcedrawlisttype_tmp
65
+ end
66
+ end
67
+ @RequestId = params['RequestId']
68
+ end
69
+ end
70
+
71
+ # 输出用户的资源数据
72
+ class ResourceDrawListType < TencentCloud::Common::AbstractModel
73
+ # @param Id: 记录id
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type Id: Integer
76
+ # @param FlowId: 资源记录id
77
+ # 注意:此字段可能返回 null,表示取不到有效值。
78
+ # @type FlowId: Integer
79
+ # @param ResourceId: 资源id
80
+ # 注意:此字段可能返回 null,表示取不到有效值。
81
+ # @type ResourceId: String
82
+ # @param IndexId: 本订单资源序列号
83
+ # 注意:此字段可能返回 null,表示取不到有效值。
84
+ # @type IndexId: String
85
+ # @param Uin: 客户的Uin
86
+ # 注意:此字段可能返回 null,表示取不到有效值。
87
+ # @type Uin: String
88
+ # @param BigDealId: 大订单号
89
+ # 注意:此字段可能返回 null,表示取不到有效值。
90
+ # @type BigDealId: String
91
+ # @param SmallOrderId: 小订单号
92
+ # 注意:此字段可能返回 null,表示取不到有效值。
93
+ # @type SmallOrderId: String
94
+ # @param ResourceNewStartTime: 资源创建时间
95
+ # 注意:此字段可能返回 null,表示取不到有效值。
96
+ # @type ResourceNewStartTime: String
97
+ # @param ResourceNewEndTime: 资源到期时间
98
+ # 注意:此字段可能返回 null,表示取不到有效值。
99
+ # @type ResourceNewEndTime: String
100
+ # @param ResourceStatus: 资源状态
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type ResourceStatus: Integer
103
+ # @param Status: 本记录状态
104
+ # 注意:此字段可能返回 null,表示取不到有效值。
105
+ # @type Status: Integer
106
+ # @param ResourceType: 项目类型
107
+ # 注意:此字段可能返回 null,表示取不到有效值。
108
+ # @type ResourceType: Integer
109
+
110
+ attr_accessor :Id, :FlowId, :ResourceId, :IndexId, :Uin, :BigDealId, :SmallOrderId, :ResourceNewStartTime, :ResourceNewEndTime, :ResourceStatus, :Status, :ResourceType
111
+
112
+ def initialize(id=nil, flowid=nil, resourceid=nil, indexid=nil, uin=nil, bigdealid=nil, smallorderid=nil, resourcenewstarttime=nil, resourcenewendtime=nil, resourcestatus=nil, status=nil, resourcetype=nil)
113
+ @Id = id
114
+ @FlowId = flowid
115
+ @ResourceId = resourceid
116
+ @IndexId = indexid
117
+ @Uin = uin
118
+ @BigDealId = bigdealid
119
+ @SmallOrderId = smallorderid
120
+ @ResourceNewStartTime = resourcenewstarttime
121
+ @ResourceNewEndTime = resourcenewendtime
122
+ @ResourceStatus = resourcestatus
123
+ @Status = status
124
+ @ResourceType = resourcetype
125
+ end
126
+
127
+ def deserialize(params)
128
+ @Id = params['Id']
129
+ @FlowId = params['FlowId']
130
+ @ResourceId = params['ResourceId']
131
+ @IndexId = params['IndexId']
132
+ @Uin = params['Uin']
133
+ @BigDealId = params['BigDealId']
134
+ @SmallOrderId = params['SmallOrderId']
135
+ @ResourceNewStartTime = params['ResourceNewStartTime']
136
+ @ResourceNewEndTime = params['ResourceNewEndTime']
137
+ @ResourceStatus = params['ResourceStatus']
138
+ @Status = params['Status']
139
+ @ResourceType = params['ResourceType']
140
+ end
141
+ end
142
+
143
+ end
144
+ end
145
+ end
146
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-mall
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.614
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ MALL.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-mall.rb
37
+ - lib/v20230518/models.rb
38
+ - lib/v20230518/client.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-mall
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - MALL
66
+ test_files: []