tencentcloud-sdk-intlpartnersmgt 3.0.523
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-intlpartnersmgt.rb +11 -0
- data/lib/v20220928/client.rb +308 -0
- data/lib/v20220928/models.rb +782 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a937a3e7a74d0bb7331e67add83e5ee594ed886f
|
4
|
+
data.tar.gz: c3d0886dcf42758bd537ae40b69c5f41cb8a3a20
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 823ce6541622309993849e8df4d3194634506b3fc320ee37e976d042d71b76b2917ce10e171d638707fb8fde291c27d0a60187e5c42cd24773eace2ecb9f1291
|
7
|
+
data.tar.gz: 5118ea1839698bbffd14e7e8d98e23962be28cc0f42b29c99e5259ca5ef7333ec1ea50103528e3c1d4c311d61b8c4f3914684b1e45269d69aa4b47902fa3ed22
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.523
|
@@ -0,0 +1,308 @@
|
|
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 Intlpartnersmgt
|
21
|
+
module V20220928
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2022-09-28'
|
26
|
+
api_endpoint = 'intlpartnersmgt.tencentcloudapi.com'
|
27
|
+
sdk_version = 'INTLPARTNERSMGT_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 合作伙伴可以为关联客户设置信用额度,包括调高额度、降低额度、设置额度为0
|
33
|
+
# 1、信用额度长期有效,不会定期清0;
|
34
|
+
# 2、可用信用额度为0,会触发客户停服,请谨慎操作;
|
35
|
+
# 3、如需限制客户新购,但不影响已购产品使用,可与渠道经理申请客户欠费不停服特权后,设置可用信用额度为0;
|
36
|
+
# 4、设置的额度,为当前可用信用额度的增量,最大不能超过合作伙伴可分配的剩余额度,设置负数代表回收额度,可用信用额度最低设置为0。
|
37
|
+
|
38
|
+
# @param request: Request instance for AllocateCustomerCredit.
|
39
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::AllocateCustomerCreditRequest`
|
40
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::AllocateCustomerCreditResponse`
|
41
|
+
def AllocateCustomerCredit(request)
|
42
|
+
body = send_request('AllocateCustomerCredit', request.serialize)
|
43
|
+
response = JSON.parse(body)
|
44
|
+
if response['Response'].key?('Error') == false
|
45
|
+
model = AllocateCustomerCreditResponse.new
|
46
|
+
model.deserialize(response['Response'])
|
47
|
+
model
|
48
|
+
else
|
49
|
+
code = response['Response']['Error']['Code']
|
50
|
+
message = response['Response']['Error']['Message']
|
51
|
+
reqid = response['Response']['RequestId']
|
52
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
53
|
+
end
|
54
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
55
|
+
raise e
|
56
|
+
rescue StandardError => e
|
57
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
58
|
+
end
|
59
|
+
|
60
|
+
# 在合作伙伴平台,创建腾讯云账号,子客户注册完成后,自动与合作伙伴账号绑定。
|
61
|
+
|
62
|
+
# 注意事项:<br>
|
63
|
+
# 1、创建腾讯云账号,输入的邮箱、手机号,需要合作伙伴做有效性验证。<br>
|
64
|
+
# 2、客户首次登录需要补充个人信息
|
65
|
+
|
66
|
+
# @param request: Request instance for CreateAccount.
|
67
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::CreateAccountRequest`
|
68
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::CreateAccountResponse`
|
69
|
+
def CreateAccount(request)
|
70
|
+
body = send_request('CreateAccount', request.serialize)
|
71
|
+
response = JSON.parse(body)
|
72
|
+
if response['Response'].key?('Error') == false
|
73
|
+
model = CreateAccountResponse.new
|
74
|
+
model.deserialize(response['Response'])
|
75
|
+
model
|
76
|
+
else
|
77
|
+
code = response['Response']['Error']['Code']
|
78
|
+
message = response['Response']['Error']['Message']
|
79
|
+
reqid = response['Response']['RequestId']
|
80
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
81
|
+
end
|
82
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
83
|
+
raise e
|
84
|
+
rescue StandardError => e
|
85
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
86
|
+
end
|
87
|
+
|
88
|
+
# 获取国家和地区的代码
|
89
|
+
|
90
|
+
# @param request: Request instance for GetCountryCodes.
|
91
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::GetCountryCodesRequest`
|
92
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::GetCountryCodesResponse`
|
93
|
+
def GetCountryCodes(request)
|
94
|
+
body = send_request('GetCountryCodes', request.serialize)
|
95
|
+
response = JSON.parse(body)
|
96
|
+
if response['Response'].key?('Error') == false
|
97
|
+
model = GetCountryCodesResponse.new
|
98
|
+
model.deserialize(response['Response'])
|
99
|
+
model
|
100
|
+
else
|
101
|
+
code = response['Response']['Error']['Code']
|
102
|
+
message = response['Response']['Error']['Message']
|
103
|
+
reqid = response['Response']['RequestId']
|
104
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
105
|
+
end
|
106
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
107
|
+
raise e
|
108
|
+
rescue StandardError => e
|
109
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
110
|
+
end
|
111
|
+
|
112
|
+
# 查询单个客户的全部历史分配记录
|
113
|
+
|
114
|
+
# @param request: Request instance for QueryCreditAllocationHistory.
|
115
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCreditAllocationHistoryRequest`
|
116
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCreditAllocationHistoryResponse`
|
117
|
+
def QueryCreditAllocationHistory(request)
|
118
|
+
body = send_request('QueryCreditAllocationHistory', request.serialize)
|
119
|
+
response = JSON.parse(body)
|
120
|
+
if response['Response'].key?('Error') == false
|
121
|
+
model = QueryCreditAllocationHistoryResponse.new
|
122
|
+
model.deserialize(response['Response'])
|
123
|
+
model
|
124
|
+
else
|
125
|
+
code = response['Response']['Error']['Code']
|
126
|
+
message = response['Response']['Error']['Message']
|
127
|
+
reqid = response['Response']['RequestId']
|
128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
129
|
+
end
|
130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
131
|
+
raise e
|
132
|
+
rescue StandardError => e
|
133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
134
|
+
end
|
135
|
+
|
136
|
+
# 查询用户列表信用
|
137
|
+
|
138
|
+
# @param request: Request instance for QueryCreditByUinList.
|
139
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCreditByUinListRequest`
|
140
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCreditByUinListResponse`
|
141
|
+
def QueryCreditByUinList(request)
|
142
|
+
body = send_request('QueryCreditByUinList', request.serialize)
|
143
|
+
response = JSON.parse(body)
|
144
|
+
if response['Response'].key?('Error') == false
|
145
|
+
model = QueryCreditByUinListResponse.new
|
146
|
+
model.deserialize(response['Response'])
|
147
|
+
model
|
148
|
+
else
|
149
|
+
code = response['Response']['Error']['Code']
|
150
|
+
message = response['Response']['Error']['Message']
|
151
|
+
reqid = response['Response']['RequestId']
|
152
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
153
|
+
end
|
154
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
155
|
+
raise e
|
156
|
+
rescue StandardError => e
|
157
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
158
|
+
end
|
159
|
+
|
160
|
+
# 合作伙伴可以查询关联客户的信用额度,以及客户的基础信息
|
161
|
+
|
162
|
+
# @param request: Request instance for QueryCustomersCredit.
|
163
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCustomersCreditRequest`
|
164
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryCustomersCreditResponse`
|
165
|
+
def QueryCustomersCredit(request)
|
166
|
+
body = send_request('QueryCustomersCredit', request.serialize)
|
167
|
+
response = JSON.parse(body)
|
168
|
+
if response['Response'].key?('Error') == false
|
169
|
+
model = QueryCustomersCreditResponse.new
|
170
|
+
model.deserialize(response['Response'])
|
171
|
+
model
|
172
|
+
else
|
173
|
+
code = response['Response']['Error']['Code']
|
174
|
+
message = response['Response']['Error']['Message']
|
175
|
+
reqid = response['Response']['RequestId']
|
176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
177
|
+
end
|
178
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
179
|
+
raise e
|
180
|
+
rescue StandardError => e
|
181
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
182
|
+
end
|
183
|
+
|
184
|
+
# 查询直接子客信用
|
185
|
+
|
186
|
+
# @param request: Request instance for QueryDirectCustomersCredit.
|
187
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryDirectCustomersCreditRequest`
|
188
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryDirectCustomersCreditResponse`
|
189
|
+
def QueryDirectCustomersCredit(request)
|
190
|
+
body = send_request('QueryDirectCustomersCredit', request.serialize)
|
191
|
+
response = JSON.parse(body)
|
192
|
+
if response['Response'].key?('Error') == false
|
193
|
+
model = QueryDirectCustomersCreditResponse.new
|
194
|
+
model.deserialize(response['Response'])
|
195
|
+
model
|
196
|
+
else
|
197
|
+
code = response['Response']['Error']['Code']
|
198
|
+
message = response['Response']['Error']['Message']
|
199
|
+
reqid = response['Response']['RequestId']
|
200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
201
|
+
end
|
202
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
203
|
+
raise e
|
204
|
+
rescue StandardError => e
|
205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
206
|
+
end
|
207
|
+
|
208
|
+
# 查询合作伙伴自己的总信用额度、可用信用额度、已使用信用额度,单位为美元
|
209
|
+
|
210
|
+
# @param request: Request instance for QueryPartnerCredit.
|
211
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryPartnerCreditRequest`
|
212
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryPartnerCreditResponse`
|
213
|
+
def QueryPartnerCredit(request)
|
214
|
+
body = send_request('QueryPartnerCredit', request.serialize)
|
215
|
+
response = JSON.parse(body)
|
216
|
+
if response['Response'].key?('Error') == false
|
217
|
+
model = QueryPartnerCreditResponse.new
|
218
|
+
model.deserialize(response['Response'])
|
219
|
+
model
|
220
|
+
else
|
221
|
+
code = response['Response']['Error']['Code']
|
222
|
+
message = response['Response']['Error']['Message']
|
223
|
+
reqid = response['Response']['RequestId']
|
224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
225
|
+
end
|
226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
227
|
+
raise e
|
228
|
+
rescue StandardError => e
|
229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
230
|
+
end
|
231
|
+
|
232
|
+
# 根据客户uin查询代金券额度
|
233
|
+
|
234
|
+
# @param request: Request instance for QueryVoucherAmountByUin.
|
235
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherAmountByUinRequest`
|
236
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherAmountByUinResponse`
|
237
|
+
def QueryVoucherAmountByUin(request)
|
238
|
+
body = send_request('QueryVoucherAmountByUin', request.serialize)
|
239
|
+
response = JSON.parse(body)
|
240
|
+
if response['Response'].key?('Error') == false
|
241
|
+
model = QueryVoucherAmountByUinResponse.new
|
242
|
+
model.deserialize(response['Response'])
|
243
|
+
model
|
244
|
+
else
|
245
|
+
code = response['Response']['Error']['Code']
|
246
|
+
message = response['Response']['Error']['Message']
|
247
|
+
reqid = response['Response']['RequestId']
|
248
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
249
|
+
end
|
250
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
251
|
+
raise e
|
252
|
+
rescue StandardError => e
|
253
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
254
|
+
end
|
255
|
+
|
256
|
+
# 根据客户uin查询代金券列表
|
257
|
+
|
258
|
+
# @param request: Request instance for QueryVoucherListByUin.
|
259
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherListByUinRequest`
|
260
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherListByUinResponse`
|
261
|
+
def QueryVoucherListByUin(request)
|
262
|
+
body = send_request('QueryVoucherListByUin', request.serialize)
|
263
|
+
response = JSON.parse(body)
|
264
|
+
if response['Response'].key?('Error') == false
|
265
|
+
model = QueryVoucherListByUinResponse.new
|
266
|
+
model.deserialize(response['Response'])
|
267
|
+
model
|
268
|
+
else
|
269
|
+
code = response['Response']['Error']['Code']
|
270
|
+
message = response['Response']['Error']['Message']
|
271
|
+
reqid = response['Response']['RequestId']
|
272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
273
|
+
end
|
274
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
275
|
+
raise e
|
276
|
+
rescue StandardError => e
|
277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
278
|
+
end
|
279
|
+
|
280
|
+
# 查询代金券额度池
|
281
|
+
|
282
|
+
# @param request: Request instance for QueryVoucherPool.
|
283
|
+
# @type request: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherPoolRequest`
|
284
|
+
# @rtype: :class:`Tencentcloud::intlpartnersmgt::V20220928::QueryVoucherPoolResponse`
|
285
|
+
def QueryVoucherPool(request)
|
286
|
+
body = send_request('QueryVoucherPool', request.serialize)
|
287
|
+
response = JSON.parse(body)
|
288
|
+
if response['Response'].key?('Error') == false
|
289
|
+
model = QueryVoucherPoolResponse.new
|
290
|
+
model.deserialize(response['Response'])
|
291
|
+
model
|
292
|
+
else
|
293
|
+
code = response['Response']['Error']['Code']
|
294
|
+
message = response['Response']['Error']['Message']
|
295
|
+
reqid = response['Response']['RequestId']
|
296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
297
|
+
end
|
298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
299
|
+
raise e
|
300
|
+
rescue StandardError => e
|
301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
302
|
+
end
|
303
|
+
|
304
|
+
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
@@ -0,0 +1,782 @@
|
|
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 Intlpartnersmgt
|
19
|
+
module V20220928
|
20
|
+
# AllocateCustomerCredit请求参数结构体
|
21
|
+
class AllocateCustomerCreditRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AddedCredit: 分配客户信用的具体值
|
23
|
+
# @type AddedCredit: Float
|
24
|
+
# @param ClientUin: 客户uin
|
25
|
+
# @type ClientUin: Integer
|
26
|
+
|
27
|
+
attr_accessor :AddedCredit, :ClientUin
|
28
|
+
|
29
|
+
def initialize(addedcredit=nil, clientuin=nil)
|
30
|
+
@AddedCredit = addedcredit
|
31
|
+
@ClientUin = clientuin
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@AddedCredit = params['AddedCredit']
|
36
|
+
@ClientUin = params['ClientUin']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# AllocateCustomerCredit返回参数结构体
|
41
|
+
class AllocateCustomerCreditResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param TotalCredit: 更新后的信用总额
|
43
|
+
# @type TotalCredit: Float
|
44
|
+
# @param RemainingCredit: 更新后的信用余额
|
45
|
+
# @type RemainingCredit: Float
|
46
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
47
|
+
# @type RequestId: String
|
48
|
+
|
49
|
+
attr_accessor :TotalCredit, :RemainingCredit, :RequestId
|
50
|
+
|
51
|
+
def initialize(totalcredit=nil, remainingcredit=nil, requestid=nil)
|
52
|
+
@TotalCredit = totalcredit
|
53
|
+
@RemainingCredit = remainingcredit
|
54
|
+
@RequestId = requestid
|
55
|
+
end
|
56
|
+
|
57
|
+
def deserialize(params)
|
58
|
+
@TotalCredit = params['TotalCredit']
|
59
|
+
@RemainingCredit = params['RemainingCredit']
|
60
|
+
@RequestId = params['RequestId']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# 获取国家码接口的一个元素类型
|
65
|
+
class CountryCodeItem < TencentCloud::Common::AbstractModel
|
66
|
+
# @param EnName: 国家英文名
|
67
|
+
# @type EnName: String
|
68
|
+
# @param Name: 国家中文名
|
69
|
+
# @type Name: String
|
70
|
+
# @param IOS2: ISO2标准国家/地区代码
|
71
|
+
# @type IOS2: String
|
72
|
+
# @param IOS3: ISO3标准国家/地区代码
|
73
|
+
# @type IOS3: String
|
74
|
+
# @param Code: 电话代码
|
75
|
+
# @type Code: String
|
76
|
+
|
77
|
+
attr_accessor :EnName, :Name, :IOS2, :IOS3, :Code
|
78
|
+
|
79
|
+
def initialize(enname=nil, name=nil, ios2=nil, ios3=nil, code=nil)
|
80
|
+
@EnName = enname
|
81
|
+
@Name = name
|
82
|
+
@IOS2 = ios2
|
83
|
+
@IOS3 = ios3
|
84
|
+
@Code = code
|
85
|
+
end
|
86
|
+
|
87
|
+
def deserialize(params)
|
88
|
+
@EnName = params['EnName']
|
89
|
+
@Name = params['Name']
|
90
|
+
@IOS2 = params['IOS2']
|
91
|
+
@IOS3 = params['IOS3']
|
92
|
+
@Code = params['Code']
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# CreateAccount请求参数结构体
|
97
|
+
class CreateAccountRequest < TencentCloud::Common::AbstractModel
|
98
|
+
# @param AccountType: 新建客户的账户类型标识。本接口取值为:personal或company
|
99
|
+
# @type AccountType: String
|
100
|
+
# @param Mail: 注册邮件地址。需要调用方保证邮件地址的有效性和正确性。
|
101
|
+
# 需要满足邮件的格式。如:account@qq.com
|
102
|
+
# @type Mail: String
|
103
|
+
# @param Password: 账户密码。
|
104
|
+
# 长度限制:[8,20]。
|
105
|
+
# 需同时包含数字、字母以及特殊符号(!@#$%^&*()等非空格)
|
106
|
+
# @type Password: String
|
107
|
+
# @param ConfirmPassword: 二次确认密码。必须和Password值相同
|
108
|
+
# @type ConfirmPassword: String
|
109
|
+
# @param PhoneNum: 客户手机号码。需要调用方保证手机号码的有效性和正确性。
|
110
|
+
# 长度限制:[1,32]。支持全球手机号。如18888888888
|
111
|
+
# @type PhoneNum: String
|
112
|
+
# @param CountryCode: 客户的国家/地区代码。取值参考获取国家/地区码接口GetCountryCodes。如852
|
113
|
+
# @type CountryCode: String
|
114
|
+
# @param Area: 客户的IOS2标准国家/地区代码。参考获取国家/地区码接口GetCountryCodes。需要与CountryCode值对应。如HK
|
115
|
+
# @type Area: String
|
116
|
+
# @param Extended: 拓展字段,默认为空
|
117
|
+
# @type Extended: String
|
118
|
+
|
119
|
+
attr_accessor :AccountType, :Mail, :Password, :ConfirmPassword, :PhoneNum, :CountryCode, :Area, :Extended
|
120
|
+
|
121
|
+
def initialize(accounttype=nil, mail=nil, password=nil, confirmpassword=nil, phonenum=nil, countrycode=nil, area=nil, extended=nil)
|
122
|
+
@AccountType = accounttype
|
123
|
+
@Mail = mail
|
124
|
+
@Password = password
|
125
|
+
@ConfirmPassword = confirmpassword
|
126
|
+
@PhoneNum = phonenum
|
127
|
+
@CountryCode = countrycode
|
128
|
+
@Area = area
|
129
|
+
@Extended = extended
|
130
|
+
end
|
131
|
+
|
132
|
+
def deserialize(params)
|
133
|
+
@AccountType = params['AccountType']
|
134
|
+
@Mail = params['Mail']
|
135
|
+
@Password = params['Password']
|
136
|
+
@ConfirmPassword = params['ConfirmPassword']
|
137
|
+
@PhoneNum = params['PhoneNum']
|
138
|
+
@CountryCode = params['CountryCode']
|
139
|
+
@Area = params['Area']
|
140
|
+
@Extended = params['Extended']
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# CreateAccount返回参数结构体
|
145
|
+
class CreateAccountResponse < TencentCloud::Common::AbstractModel
|
146
|
+
# @param Uin: 账号的uin
|
147
|
+
# @type Uin: String
|
148
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
149
|
+
# @type RequestId: String
|
150
|
+
|
151
|
+
attr_accessor :Uin, :RequestId
|
152
|
+
|
153
|
+
def initialize(uin=nil, requestid=nil)
|
154
|
+
@Uin = uin
|
155
|
+
@RequestId = requestid
|
156
|
+
end
|
157
|
+
|
158
|
+
def deserialize(params)
|
159
|
+
@Uin = params['Uin']
|
160
|
+
@RequestId = params['RequestId']
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# GetCountryCodes请求参数结构体
|
165
|
+
class GetCountryCodesRequest < TencentCloud::Common::AbstractModel
|
166
|
+
|
167
|
+
|
168
|
+
def initialize()
|
169
|
+
end
|
170
|
+
|
171
|
+
def deserialize(params)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# GetCountryCodes返回参数结构体
|
176
|
+
class GetCountryCodesResponse < TencentCloud::Common::AbstractModel
|
177
|
+
# @param Data: 国家地区代码列表
|
178
|
+
# @type Data: Array
|
179
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
180
|
+
# @type RequestId: String
|
181
|
+
|
182
|
+
attr_accessor :Data, :RequestId
|
183
|
+
|
184
|
+
def initialize(data=nil, requestid=nil)
|
185
|
+
@Data = data
|
186
|
+
@RequestId = requestid
|
187
|
+
end
|
188
|
+
|
189
|
+
def deserialize(params)
|
190
|
+
unless params['Data'].nil?
|
191
|
+
@Data = []
|
192
|
+
params['Data'].each do |i|
|
193
|
+
countrycodeitem_tmp = CountryCodeItem.new
|
194
|
+
countrycodeitem_tmp.deserialize(i)
|
195
|
+
@Data << countrycodeitem_tmp
|
196
|
+
end
|
197
|
+
end
|
198
|
+
@RequestId = params['RequestId']
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# 查询子客授信历史记录返回信息
|
203
|
+
class QueryCreditAllocationHistoryData < TencentCloud::Common::AbstractModel
|
204
|
+
# @param AllocatedTime: 分配时间
|
205
|
+
# @type AllocatedTime: String
|
206
|
+
# @param Operator: 操作员
|
207
|
+
# @type Operator: String
|
208
|
+
# @param Credit: 分配的信用值
|
209
|
+
# @type Credit: Float
|
210
|
+
# @param AllocatedCredit: 分配的总金额
|
211
|
+
# @type AllocatedCredit: Float
|
212
|
+
|
213
|
+
attr_accessor :AllocatedTime, :Operator, :Credit, :AllocatedCredit
|
214
|
+
|
215
|
+
def initialize(allocatedtime=nil, operator=nil, credit=nil, allocatedcredit=nil)
|
216
|
+
@AllocatedTime = allocatedtime
|
217
|
+
@Operator = operator
|
218
|
+
@Credit = credit
|
219
|
+
@AllocatedCredit = allocatedcredit
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@AllocatedTime = params['AllocatedTime']
|
224
|
+
@Operator = params['Operator']
|
225
|
+
@Credit = params['Credit']
|
226
|
+
@AllocatedCredit = params['AllocatedCredit']
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# QueryCreditAllocationHistory请求参数结构体
|
231
|
+
class QueryCreditAllocationHistoryRequest < TencentCloud::Common::AbstractModel
|
232
|
+
# @param ClientUin: 客户uin
|
233
|
+
# @type ClientUin: Integer
|
234
|
+
# @param Page: 翻页参数,所在页数
|
235
|
+
# @type Page: Integer
|
236
|
+
# @param PageSize: 翻页参数,每页数据量
|
237
|
+
# @type PageSize: Integer
|
238
|
+
|
239
|
+
attr_accessor :ClientUin, :Page, :PageSize
|
240
|
+
|
241
|
+
def initialize(clientuin=nil, page=nil, pagesize=nil)
|
242
|
+
@ClientUin = clientuin
|
243
|
+
@Page = page
|
244
|
+
@PageSize = pagesize
|
245
|
+
end
|
246
|
+
|
247
|
+
def deserialize(params)
|
248
|
+
@ClientUin = params['ClientUin']
|
249
|
+
@Page = params['Page']
|
250
|
+
@PageSize = params['PageSize']
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# QueryCreditAllocationHistory返回参数结构体
|
255
|
+
class QueryCreditAllocationHistoryResponse < TencentCloud::Common::AbstractModel
|
256
|
+
# @param Total: 历史信息总条数
|
257
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
258
|
+
# @type Total: Integer
|
259
|
+
# @param History: 历史信息详细列表数据
|
260
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
261
|
+
# @type History: Array
|
262
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
263
|
+
# @type RequestId: String
|
264
|
+
|
265
|
+
attr_accessor :Total, :History, :RequestId
|
266
|
+
|
267
|
+
def initialize(total=nil, history=nil, requestid=nil)
|
268
|
+
@Total = total
|
269
|
+
@History = history
|
270
|
+
@RequestId = requestid
|
271
|
+
end
|
272
|
+
|
273
|
+
def deserialize(params)
|
274
|
+
@Total = params['Total']
|
275
|
+
unless params['History'].nil?
|
276
|
+
@History = []
|
277
|
+
params['History'].each do |i|
|
278
|
+
querycreditallocationhistorydata_tmp = QueryCreditAllocationHistoryData.new
|
279
|
+
querycreditallocationhistorydata_tmp.deserialize(i)
|
280
|
+
@History << querycreditallocationhistorydata_tmp
|
281
|
+
end
|
282
|
+
end
|
283
|
+
@RequestId = params['RequestId']
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# QueryCreditByUinList请求参数结构体
|
288
|
+
class QueryCreditByUinListRequest < TencentCloud::Common::AbstractModel
|
289
|
+
# @param UinList: 用户列表
|
290
|
+
# @type UinList: Array
|
291
|
+
|
292
|
+
attr_accessor :UinList
|
293
|
+
|
294
|
+
def initialize(uinlist=nil)
|
295
|
+
@UinList = uinlist
|
296
|
+
end
|
297
|
+
|
298
|
+
def deserialize(params)
|
299
|
+
@UinList = params['UinList']
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# QueryCreditByUinList返回参数结构体
|
304
|
+
class QueryCreditByUinListResponse < TencentCloud::Common::AbstractModel
|
305
|
+
# @param Data: 用户信息列表
|
306
|
+
# @type Data: Array
|
307
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
308
|
+
# @type RequestId: String
|
309
|
+
|
310
|
+
attr_accessor :Data, :RequestId
|
311
|
+
|
312
|
+
def initialize(data=nil, requestid=nil)
|
313
|
+
@Data = data
|
314
|
+
@RequestId = requestid
|
315
|
+
end
|
316
|
+
|
317
|
+
def deserialize(params)
|
318
|
+
unless params['Data'].nil?
|
319
|
+
@Data = []
|
320
|
+
params['Data'].each do |i|
|
321
|
+
querydirectcustomerscreditdata_tmp = QueryDirectCustomersCreditData.new
|
322
|
+
querydirectcustomerscreditdata_tmp.deserialize(i)
|
323
|
+
@Data << querydirectcustomerscreditdata_tmp
|
324
|
+
end
|
325
|
+
end
|
326
|
+
@RequestId = params['RequestId']
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# 查询客户信用额度出参复杂类型
|
331
|
+
class QueryCustomersCreditData < TencentCloud::Common::AbstractModel
|
332
|
+
# @param Name: 名字
|
333
|
+
# @type Name: String
|
334
|
+
# @param Type: 类型
|
335
|
+
# @type Type: String
|
336
|
+
# @param Mobile: 电话
|
337
|
+
# @type Mobile: String
|
338
|
+
# @param Email: 邮箱
|
339
|
+
# @type Email: String
|
340
|
+
# @param Arrears: 欠费标记
|
341
|
+
# @type Arrears: String
|
342
|
+
# @param AssociationTime: 绑定时间
|
343
|
+
# @type AssociationTime: String
|
344
|
+
# @param RecentExpiry: 最近到期时间
|
345
|
+
# @type RecentExpiry: String
|
346
|
+
# @param ClientUin: 子客uin
|
347
|
+
# @type ClientUin: Integer
|
348
|
+
# @param Credit: 子客授信额度
|
349
|
+
# @type Credit: Float
|
350
|
+
# @param RemainingCredit: 子客剩余额度
|
351
|
+
# @type RemainingCredit: Float
|
352
|
+
# @param IdentifyType: 0:未实名 1: 个人实名 2:企业实名
|
353
|
+
# @type IdentifyType: Integer
|
354
|
+
# @param Remark: 客户备注
|
355
|
+
# @type Remark: String
|
356
|
+
# @param Force: 强制状态
|
357
|
+
# @type Force: Integer
|
358
|
+
|
359
|
+
attr_accessor :Name, :Type, :Mobile, :Email, :Arrears, :AssociationTime, :RecentExpiry, :ClientUin, :Credit, :RemainingCredit, :IdentifyType, :Remark, :Force
|
360
|
+
|
361
|
+
def initialize(name=nil, type=nil, mobile=nil, email=nil, arrears=nil, associationtime=nil, recentexpiry=nil, clientuin=nil, credit=nil, remainingcredit=nil, identifytype=nil, remark=nil, force=nil)
|
362
|
+
@Name = name
|
363
|
+
@Type = type
|
364
|
+
@Mobile = mobile
|
365
|
+
@Email = email
|
366
|
+
@Arrears = arrears
|
367
|
+
@AssociationTime = associationtime
|
368
|
+
@RecentExpiry = recentexpiry
|
369
|
+
@ClientUin = clientuin
|
370
|
+
@Credit = credit
|
371
|
+
@RemainingCredit = remainingcredit
|
372
|
+
@IdentifyType = identifytype
|
373
|
+
@Remark = remark
|
374
|
+
@Force = force
|
375
|
+
end
|
376
|
+
|
377
|
+
def deserialize(params)
|
378
|
+
@Name = params['Name']
|
379
|
+
@Type = params['Type']
|
380
|
+
@Mobile = params['Mobile']
|
381
|
+
@Email = params['Email']
|
382
|
+
@Arrears = params['Arrears']
|
383
|
+
@AssociationTime = params['AssociationTime']
|
384
|
+
@RecentExpiry = params['RecentExpiry']
|
385
|
+
@ClientUin = params['ClientUin']
|
386
|
+
@Credit = params['Credit']
|
387
|
+
@RemainingCredit = params['RemainingCredit']
|
388
|
+
@IdentifyType = params['IdentifyType']
|
389
|
+
@Remark = params['Remark']
|
390
|
+
@Force = params['Force']
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
# QueryCustomersCredit请求参数结构体
|
395
|
+
class QueryCustomersCreditRequest < TencentCloud::Common::AbstractModel
|
396
|
+
# @param FilterType: 搜索条件类型,只能是:ClientUin|Name|Remark|Email四选一
|
397
|
+
# @type FilterType: String
|
398
|
+
# @param Filter: 查询条件值
|
399
|
+
# @type Filter: String
|
400
|
+
# @param Page: 分页参数:当前页数,从1开始
|
401
|
+
# @type Page: Integer
|
402
|
+
# @param PageSize: 分页参数:每页条数
|
403
|
+
# @type PageSize: Integer
|
404
|
+
# @param Order: 排序参数,根据AssociationTime按照空或者desc:逆序,asc:顺序的方式进行排序
|
405
|
+
# @type Order: String
|
406
|
+
|
407
|
+
attr_accessor :FilterType, :Filter, :Page, :PageSize, :Order
|
408
|
+
|
409
|
+
def initialize(filtertype=nil, filter=nil, page=nil, pagesize=nil, order=nil)
|
410
|
+
@FilterType = filtertype
|
411
|
+
@Filter = filter
|
412
|
+
@Page = page
|
413
|
+
@PageSize = pagesize
|
414
|
+
@Order = order
|
415
|
+
end
|
416
|
+
|
417
|
+
def deserialize(params)
|
418
|
+
@FilterType = params['FilterType']
|
419
|
+
@Filter = params['Filter']
|
420
|
+
@Page = params['Page']
|
421
|
+
@PageSize = params['PageSize']
|
422
|
+
@Order = params['Order']
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
# QueryCustomersCredit返回参数结构体
|
427
|
+
class QueryCustomersCreditResponse < TencentCloud::Common::AbstractModel
|
428
|
+
# @param Data: 查询客户列表
|
429
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
430
|
+
# @type Data: Array
|
431
|
+
# @param Total: 客户数量
|
432
|
+
# @type Total: Integer
|
433
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
434
|
+
# @type RequestId: String
|
435
|
+
|
436
|
+
attr_accessor :Data, :Total, :RequestId
|
437
|
+
|
438
|
+
def initialize(data=nil, total=nil, requestid=nil)
|
439
|
+
@Data = data
|
440
|
+
@Total = total
|
441
|
+
@RequestId = requestid
|
442
|
+
end
|
443
|
+
|
444
|
+
def deserialize(params)
|
445
|
+
unless params['Data'].nil?
|
446
|
+
@Data = []
|
447
|
+
params['Data'].each do |i|
|
448
|
+
querycustomerscreditdata_tmp = QueryCustomersCreditData.new
|
449
|
+
querycustomerscreditdata_tmp.deserialize(i)
|
450
|
+
@Data << querycustomerscreditdata_tmp
|
451
|
+
end
|
452
|
+
end
|
453
|
+
@Total = params['Total']
|
454
|
+
@RequestId = params['RequestId']
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
# 直接子客信用信息
|
459
|
+
class QueryDirectCustomersCreditData < TencentCloud::Common::AbstractModel
|
460
|
+
# @param Uin: 用户Uin
|
461
|
+
# @type Uin: Integer
|
462
|
+
# @param TotalCredit: 总信用值
|
463
|
+
# @type TotalCredit: Float
|
464
|
+
# @param RemainingCredit: 剩余信用值
|
465
|
+
# @type RemainingCredit: Float
|
466
|
+
|
467
|
+
attr_accessor :Uin, :TotalCredit, :RemainingCredit
|
468
|
+
|
469
|
+
def initialize(uin=nil, totalcredit=nil, remainingcredit=nil)
|
470
|
+
@Uin = uin
|
471
|
+
@TotalCredit = totalcredit
|
472
|
+
@RemainingCredit = remainingcredit
|
473
|
+
end
|
474
|
+
|
475
|
+
def deserialize(params)
|
476
|
+
@Uin = params['Uin']
|
477
|
+
@TotalCredit = params['TotalCredit']
|
478
|
+
@RemainingCredit = params['RemainingCredit']
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
# QueryDirectCustomersCredit请求参数结构体
|
483
|
+
class QueryDirectCustomersCreditRequest < TencentCloud::Common::AbstractModel
|
484
|
+
|
485
|
+
|
486
|
+
def initialize()
|
487
|
+
end
|
488
|
+
|
489
|
+
def deserialize(params)
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# QueryDirectCustomersCredit返回参数结构体
|
494
|
+
class QueryDirectCustomersCreditResponse < TencentCloud::Common::AbstractModel
|
495
|
+
# @param Data: 直接子客信息列表
|
496
|
+
# @type Data: Array
|
497
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
498
|
+
# @type RequestId: String
|
499
|
+
|
500
|
+
attr_accessor :Data, :RequestId
|
501
|
+
|
502
|
+
def initialize(data=nil, requestid=nil)
|
503
|
+
@Data = data
|
504
|
+
@RequestId = requestid
|
505
|
+
end
|
506
|
+
|
507
|
+
def deserialize(params)
|
508
|
+
unless params['Data'].nil?
|
509
|
+
@Data = []
|
510
|
+
params['Data'].each do |i|
|
511
|
+
querydirectcustomerscreditdata_tmp = QueryDirectCustomersCreditData.new
|
512
|
+
querydirectcustomerscreditdata_tmp.deserialize(i)
|
513
|
+
@Data << querydirectcustomerscreditdata_tmp
|
514
|
+
end
|
515
|
+
end
|
516
|
+
@RequestId = params['RequestId']
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
# QueryPartnerCredit请求参数结构体
|
521
|
+
class QueryPartnerCreditRequest < TencentCloud::Common::AbstractModel
|
522
|
+
|
523
|
+
|
524
|
+
def initialize()
|
525
|
+
end
|
526
|
+
|
527
|
+
def deserialize(params)
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
# QueryPartnerCredit返回参数结构体
|
532
|
+
class QueryPartnerCreditResponse < TencentCloud::Common::AbstractModel
|
533
|
+
# @param AllocatedCredit: 已分配额度
|
534
|
+
# @type AllocatedCredit: Float
|
535
|
+
# @param TotalCredit: 额度总数
|
536
|
+
# @type TotalCredit: Float
|
537
|
+
# @param RemainingCredit: 剩余额度
|
538
|
+
# @type RemainingCredit: Float
|
539
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
540
|
+
# @type RequestId: String
|
541
|
+
|
542
|
+
attr_accessor :AllocatedCredit, :TotalCredit, :RemainingCredit, :RequestId
|
543
|
+
|
544
|
+
def initialize(allocatedcredit=nil, totalcredit=nil, remainingcredit=nil, requestid=nil)
|
545
|
+
@AllocatedCredit = allocatedcredit
|
546
|
+
@TotalCredit = totalcredit
|
547
|
+
@RemainingCredit = remainingcredit
|
548
|
+
@RequestId = requestid
|
549
|
+
end
|
550
|
+
|
551
|
+
def deserialize(params)
|
552
|
+
@AllocatedCredit = params['AllocatedCredit']
|
553
|
+
@TotalCredit = params['TotalCredit']
|
554
|
+
@RemainingCredit = params['RemainingCredit']
|
555
|
+
@RequestId = params['RequestId']
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
# 子客代金券额度
|
560
|
+
class QueryVoucherAmountByUinItem < TencentCloud::Common::AbstractModel
|
561
|
+
# @param ClientUin: 子客uin
|
562
|
+
# @type ClientUin: Integer
|
563
|
+
# @param TotalAmount: 代金券额度
|
564
|
+
# @type TotalAmount: Float
|
565
|
+
# @param RemainAmount: 代金券余额
|
566
|
+
# @type RemainAmount: Float
|
567
|
+
|
568
|
+
attr_accessor :ClientUin, :TotalAmount, :RemainAmount
|
569
|
+
|
570
|
+
def initialize(clientuin=nil, totalamount=nil, remainamount=nil)
|
571
|
+
@ClientUin = clientuin
|
572
|
+
@TotalAmount = totalamount
|
573
|
+
@RemainAmount = remainamount
|
574
|
+
end
|
575
|
+
|
576
|
+
def deserialize(params)
|
577
|
+
@ClientUin = params['ClientUin']
|
578
|
+
@TotalAmount = params['TotalAmount']
|
579
|
+
@RemainAmount = params['RemainAmount']
|
580
|
+
end
|
581
|
+
end
|
582
|
+
|
583
|
+
# QueryVoucherAmountByUin请求参数结构体
|
584
|
+
class QueryVoucherAmountByUinRequest < TencentCloud::Common::AbstractModel
|
585
|
+
# @param ClientUins: 子客uin列表
|
586
|
+
# @type ClientUins: Array
|
587
|
+
|
588
|
+
attr_accessor :ClientUins
|
589
|
+
|
590
|
+
def initialize(clientuins=nil)
|
591
|
+
@ClientUins = clientuins
|
592
|
+
end
|
593
|
+
|
594
|
+
def deserialize(params)
|
595
|
+
@ClientUins = params['ClientUins']
|
596
|
+
end
|
597
|
+
end
|
598
|
+
|
599
|
+
# QueryVoucherAmountByUin返回参数结构体
|
600
|
+
class QueryVoucherAmountByUinResponse < TencentCloud::Common::AbstractModel
|
601
|
+
# @param Data: 子客代金券额度数据
|
602
|
+
# @type Data: Array
|
603
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
604
|
+
# @type RequestId: String
|
605
|
+
|
606
|
+
attr_accessor :Data, :RequestId
|
607
|
+
|
608
|
+
def initialize(data=nil, requestid=nil)
|
609
|
+
@Data = data
|
610
|
+
@RequestId = requestid
|
611
|
+
end
|
612
|
+
|
613
|
+
def deserialize(params)
|
614
|
+
unless params['Data'].nil?
|
615
|
+
@Data = []
|
616
|
+
params['Data'].each do |i|
|
617
|
+
queryvoucheramountbyuinitem_tmp = QueryVoucherAmountByUinItem.new
|
618
|
+
queryvoucheramountbyuinitem_tmp.deserialize(i)
|
619
|
+
@Data << queryvoucheramountbyuinitem_tmp
|
620
|
+
end
|
621
|
+
end
|
622
|
+
@RequestId = params['RequestId']
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
# 单个客户代金券数据
|
627
|
+
class QueryVoucherListByUinItem < TencentCloud::Common::AbstractModel
|
628
|
+
# @param ClientUin: 子客uin
|
629
|
+
# @type ClientUin: Integer
|
630
|
+
# @param TotalCount: 券总数量
|
631
|
+
# @type TotalCount: Integer
|
632
|
+
# @param Data: 券详情
|
633
|
+
# @type Data: Array
|
634
|
+
|
635
|
+
attr_accessor :ClientUin, :TotalCount, :Data
|
636
|
+
|
637
|
+
def initialize(clientuin=nil, totalcount=nil, data=nil)
|
638
|
+
@ClientUin = clientuin
|
639
|
+
@TotalCount = totalcount
|
640
|
+
@Data = data
|
641
|
+
end
|
642
|
+
|
643
|
+
def deserialize(params)
|
644
|
+
@ClientUin = params['ClientUin']
|
645
|
+
@TotalCount = params['TotalCount']
|
646
|
+
unless params['Data'].nil?
|
647
|
+
@Data = []
|
648
|
+
params['Data'].each do |i|
|
649
|
+
queryvoucherlistbyuinvoucheritem_tmp = QueryVoucherListByUinVoucherItem.new
|
650
|
+
queryvoucherlistbyuinvoucheritem_tmp.deserialize(i)
|
651
|
+
@Data << queryvoucherlistbyuinvoucheritem_tmp
|
652
|
+
end
|
653
|
+
end
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
# QueryVoucherListByUin请求参数结构体
|
658
|
+
class QueryVoucherListByUinRequest < TencentCloud::Common::AbstractModel
|
659
|
+
# @param ClientUins: 子客uin列表
|
660
|
+
# @type ClientUins: Array
|
661
|
+
# @param Status: 状态,不传时默认查询所有状态。Unused,Used,Expired
|
662
|
+
# @type Status: String
|
663
|
+
|
664
|
+
attr_accessor :ClientUins, :Status
|
665
|
+
|
666
|
+
def initialize(clientuins=nil, status=nil)
|
667
|
+
@ClientUins = clientuins
|
668
|
+
@Status = status
|
669
|
+
end
|
670
|
+
|
671
|
+
def deserialize(params)
|
672
|
+
@ClientUins = params['ClientUins']
|
673
|
+
@Status = params['Status']
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
# QueryVoucherListByUin返回参数结构体
|
678
|
+
class QueryVoucherListByUinResponse < TencentCloud::Common::AbstractModel
|
679
|
+
# @param Data: 子客代金券数据
|
680
|
+
# @type Data: Array
|
681
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
682
|
+
# @type RequestId: String
|
683
|
+
|
684
|
+
attr_accessor :Data, :RequestId
|
685
|
+
|
686
|
+
def initialize(data=nil, requestid=nil)
|
687
|
+
@Data = data
|
688
|
+
@RequestId = requestid
|
689
|
+
end
|
690
|
+
|
691
|
+
def deserialize(params)
|
692
|
+
unless params['Data'].nil?
|
693
|
+
@Data = []
|
694
|
+
params['Data'].each do |i|
|
695
|
+
queryvoucherlistbyuinitem_tmp = QueryVoucherListByUinItem.new
|
696
|
+
queryvoucherlistbyuinitem_tmp.deserialize(i)
|
697
|
+
@Data << queryvoucherlistbyuinitem_tmp
|
698
|
+
end
|
699
|
+
end
|
700
|
+
@RequestId = params['RequestId']
|
701
|
+
end
|
702
|
+
end
|
703
|
+
|
704
|
+
# 子客代金券数据
|
705
|
+
class QueryVoucherListByUinVoucherItem < TencentCloud::Common::AbstractModel
|
706
|
+
# @param VoucherId: 券号
|
707
|
+
# @type VoucherId: String
|
708
|
+
# @param VoucherStatus: 状态
|
709
|
+
# @type VoucherStatus: String
|
710
|
+
# @param TotalAmount: 面额
|
711
|
+
# @type TotalAmount: Float
|
712
|
+
# @param RemainAmount: 余额
|
713
|
+
# @type RemainAmount: Float
|
714
|
+
|
715
|
+
attr_accessor :VoucherId, :VoucherStatus, :TotalAmount, :RemainAmount
|
716
|
+
|
717
|
+
def initialize(voucherid=nil, voucherstatus=nil, totalamount=nil, remainamount=nil)
|
718
|
+
@VoucherId = voucherid
|
719
|
+
@VoucherStatus = voucherstatus
|
720
|
+
@TotalAmount = totalamount
|
721
|
+
@RemainAmount = remainamount
|
722
|
+
end
|
723
|
+
|
724
|
+
def deserialize(params)
|
725
|
+
@VoucherId = params['VoucherId']
|
726
|
+
@VoucherStatus = params['VoucherStatus']
|
727
|
+
@TotalAmount = params['TotalAmount']
|
728
|
+
@RemainAmount = params['RemainAmount']
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
# QueryVoucherPool请求参数结构体
|
733
|
+
class QueryVoucherPoolRequest < TencentCloud::Common::AbstractModel
|
734
|
+
|
735
|
+
|
736
|
+
def initialize()
|
737
|
+
end
|
738
|
+
|
739
|
+
def deserialize(params)
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
# QueryVoucherPool返回参数结构体
|
744
|
+
class QueryVoucherPoolResponse < TencentCloud::Common::AbstractModel
|
745
|
+
# @param AgentName: 经销商姓名
|
746
|
+
# @type AgentName: String
|
747
|
+
# @param AccountType: 经销商角色类型:1:经销商 2:总经销商 3:二级经销商
|
748
|
+
# @type AccountType: Integer
|
749
|
+
# @param TotalQuota: 总额度
|
750
|
+
# @type TotalQuota: Float
|
751
|
+
# @param RemainingQuota: 剩余额度
|
752
|
+
# @type RemainingQuota: Float
|
753
|
+
# @param IssuedNum: 已发放的代金券数量
|
754
|
+
# @type IssuedNum: Integer
|
755
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
756
|
+
# @type RequestId: String
|
757
|
+
|
758
|
+
attr_accessor :AgentName, :AccountType, :TotalQuota, :RemainingQuota, :IssuedNum, :RequestId
|
759
|
+
|
760
|
+
def initialize(agentname=nil, accounttype=nil, totalquota=nil, remainingquota=nil, issuednum=nil, requestid=nil)
|
761
|
+
@AgentName = agentname
|
762
|
+
@AccountType = accounttype
|
763
|
+
@TotalQuota = totalquota
|
764
|
+
@RemainingQuota = remainingquota
|
765
|
+
@IssuedNum = issuednum
|
766
|
+
@RequestId = requestid
|
767
|
+
end
|
768
|
+
|
769
|
+
def deserialize(params)
|
770
|
+
@AgentName = params['AgentName']
|
771
|
+
@AccountType = params['AccountType']
|
772
|
+
@TotalQuota = params['TotalQuota']
|
773
|
+
@RemainingQuota = params['RemainingQuota']
|
774
|
+
@IssuedNum = params['IssuedNum']
|
775
|
+
@RequestId = params['RequestId']
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
779
|
+
end
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-intlpartnersmgt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.523
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-03-07 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
|
+
INTLPARTNERSMGT.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/tencentcloud-sdk-intlpartnersmgt.rb
|
37
|
+
- lib/v20220928/models.rb
|
38
|
+
- lib/v20220928/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-intlpartnersmgt
|
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 - INTLPARTNERSMGT
|
66
|
+
test_files: []
|