tencentcloud-sdk-sms 1.0.199
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-sms.rb +14 -0
- data/lib/v20190711/client.rb +463 -0
- data/lib/v20190711/models.rb +1405 -0
- data/lib/v20210111/client.rb +488 -0
- data/lib/v20210111/models.rb +1479 -0
- metadata +68 -0
@@ -0,0 +1,1479 @@
|
|
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 Sms
|
19
|
+
module V20210111
|
20
|
+
# 添加签名响应
|
21
|
+
class AddSignStatus < TencentCloud::Common::AbstractModel
|
22
|
+
# @param SignId: 签名ID。
|
23
|
+
# @type SignId: Integer
|
24
|
+
|
25
|
+
attr_accessor :SignId
|
26
|
+
|
27
|
+
def initialize(signid=nil)
|
28
|
+
@SignId = signid
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
@SignId = params['SignId']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# AddSmsSign请求参数结构体
|
37
|
+
class AddSmsSignRequest < TencentCloud::Common::AbstractModel
|
38
|
+
# @param SignName: 签名名称。
|
39
|
+
# 注:不能重复申请已通过或待审核的签名。
|
40
|
+
# @type SignName: String
|
41
|
+
# @param SignType: 签名类型。其中每种类型后面标注了其可选的 DocumentType(证明类型):
|
42
|
+
# 0:公司,可选 DocumentType 有(0,1)。
|
43
|
+
# 1:APP,可选 DocumentType 有(0,1,2,3,4) 。
|
44
|
+
# 2:网站,可选 DocumentType 有(0,1,2,3,5)。
|
45
|
+
# 3:公众号,可选 DocumentType 有(0,1,2,3,8)。
|
46
|
+
# 4:商标,可选 DocumentType 有(7)。
|
47
|
+
# 5:政府/机关事业单位/其他机构,可选 DocumentType 有(2,3)。
|
48
|
+
# 6:小程序,可选 DocumentType 有(0,1,2,3,6)。
|
49
|
+
# 注:必须按照对应关系选择证明类型,否则会审核失败。
|
50
|
+
# @type SignType: Integer
|
51
|
+
# @param DocumentType: 证明类型:
|
52
|
+
# 0:三证合一。
|
53
|
+
# 1:企业营业执照。
|
54
|
+
# 2:组织机构代码证书。
|
55
|
+
# 3:社会信用代码证书。
|
56
|
+
# 4:应用后台管理截图(个人开发APP)。
|
57
|
+
# 5:网站备案后台截图(个人开发网站)。
|
58
|
+
# 6:小程序设置页面截图(个人认证小程序)。
|
59
|
+
# 7:商标注册书。
|
60
|
+
# 8:公众号设置页面截图(个人认证公众号)。
|
61
|
+
# @type DocumentType: Integer
|
62
|
+
# @param International: 是否国际/港澳台短信:
|
63
|
+
# 0:表示国内短信。
|
64
|
+
# 1:表示国际/港澳台短信。
|
65
|
+
# @type International: Integer
|
66
|
+
# @param SignPurpose: 签名用途:
|
67
|
+
# 0:自用。
|
68
|
+
# 1:他用。
|
69
|
+
# @type SignPurpose: Integer
|
70
|
+
# @param ProofImage: 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
|
71
|
+
# @type ProofImage: String
|
72
|
+
# @param CommissionImage: 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
|
73
|
+
# 图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
|
74
|
+
# 注:只有 SignPurpose 在选择为 1(他用)时,这个字段才会生效。
|
75
|
+
# @type CommissionImage: String
|
76
|
+
# @param Remark: 签名的申请备注。
|
77
|
+
# @type Remark: String
|
78
|
+
|
79
|
+
attr_accessor :SignName, :SignType, :DocumentType, :International, :SignPurpose, :ProofImage, :CommissionImage, :Remark
|
80
|
+
|
81
|
+
def initialize(signname=nil, signtype=nil, documenttype=nil, international=nil, signpurpose=nil, proofimage=nil, commissionimage=nil, remark=nil)
|
82
|
+
@SignName = signname
|
83
|
+
@SignType = signtype
|
84
|
+
@DocumentType = documenttype
|
85
|
+
@International = international
|
86
|
+
@SignPurpose = signpurpose
|
87
|
+
@ProofImage = proofimage
|
88
|
+
@CommissionImage = commissionimage
|
89
|
+
@Remark = remark
|
90
|
+
end
|
91
|
+
|
92
|
+
def deserialize(params)
|
93
|
+
@SignName = params['SignName']
|
94
|
+
@SignType = params['SignType']
|
95
|
+
@DocumentType = params['DocumentType']
|
96
|
+
@International = params['International']
|
97
|
+
@SignPurpose = params['SignPurpose']
|
98
|
+
@ProofImage = params['ProofImage']
|
99
|
+
@CommissionImage = params['CommissionImage']
|
100
|
+
@Remark = params['Remark']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# AddSmsSign返回参数结构体
|
105
|
+
class AddSmsSignResponse < TencentCloud::Common::AbstractModel
|
106
|
+
# @param AddSignStatus: 添加签名响应
|
107
|
+
# @type AddSignStatus: :class:`Tencentcloud::Sms.v20210111.models.AddSignStatus`
|
108
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
109
|
+
# @type RequestId: String
|
110
|
+
|
111
|
+
attr_accessor :AddSignStatus, :RequestId
|
112
|
+
|
113
|
+
def initialize(addsignstatus=nil, requestid=nil)
|
114
|
+
@AddSignStatus = addsignstatus
|
115
|
+
@RequestId = requestid
|
116
|
+
end
|
117
|
+
|
118
|
+
def deserialize(params)
|
119
|
+
unless params['AddSignStatus'].nil?
|
120
|
+
@AddSignStatus = AddSignStatus.new
|
121
|
+
@AddSignStatus.deserialize(params['AddSignStatus'])
|
122
|
+
end
|
123
|
+
@RequestId = params['RequestId']
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# AddSmsTemplate请求参数结构体
|
128
|
+
class AddSmsTemplateRequest < TencentCloud::Common::AbstractModel
|
129
|
+
# @param TemplateName: 模板名称。
|
130
|
+
# @type TemplateName: String
|
131
|
+
# @param TemplateContent: 模板内容。
|
132
|
+
# @type TemplateContent: String
|
133
|
+
# @param SmsType: 短信类型,0表示普通短信, 1表示营销短信。
|
134
|
+
# @type SmsType: Integer
|
135
|
+
# @param International: 是否国际/港澳台短信:
|
136
|
+
# 0:表示国内短信。
|
137
|
+
# 1:表示国际/港澳台短信。
|
138
|
+
# @type International: Integer
|
139
|
+
# @param Remark: 模板备注,例如申请原因,使用场景等。
|
140
|
+
# @type Remark: String
|
141
|
+
|
142
|
+
attr_accessor :TemplateName, :TemplateContent, :SmsType, :International, :Remark
|
143
|
+
|
144
|
+
def initialize(templatename=nil, templatecontent=nil, smstype=nil, international=nil, remark=nil)
|
145
|
+
@TemplateName = templatename
|
146
|
+
@TemplateContent = templatecontent
|
147
|
+
@SmsType = smstype
|
148
|
+
@International = international
|
149
|
+
@Remark = remark
|
150
|
+
end
|
151
|
+
|
152
|
+
def deserialize(params)
|
153
|
+
@TemplateName = params['TemplateName']
|
154
|
+
@TemplateContent = params['TemplateContent']
|
155
|
+
@SmsType = params['SmsType']
|
156
|
+
@International = params['International']
|
157
|
+
@Remark = params['Remark']
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# AddSmsTemplate返回参数结构体
|
162
|
+
class AddSmsTemplateResponse < TencentCloud::Common::AbstractModel
|
163
|
+
# @param AddTemplateStatus: 添加短信模板响应包体
|
164
|
+
# @type AddTemplateStatus: :class:`Tencentcloud::Sms.v20210111.models.AddTemplateStatus`
|
165
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
166
|
+
# @type RequestId: String
|
167
|
+
|
168
|
+
attr_accessor :AddTemplateStatus, :RequestId
|
169
|
+
|
170
|
+
def initialize(addtemplatestatus=nil, requestid=nil)
|
171
|
+
@AddTemplateStatus = addtemplatestatus
|
172
|
+
@RequestId = requestid
|
173
|
+
end
|
174
|
+
|
175
|
+
def deserialize(params)
|
176
|
+
unless params['AddTemplateStatus'].nil?
|
177
|
+
@AddTemplateStatus = AddTemplateStatus.new
|
178
|
+
@AddTemplateStatus.deserialize(params['AddTemplateStatus'])
|
179
|
+
end
|
180
|
+
@RequestId = params['RequestId']
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# 添加模板参数响应
|
185
|
+
class AddTemplateStatus < TencentCloud::Common::AbstractModel
|
186
|
+
# @param TemplateId: 模板ID。
|
187
|
+
# @type TemplateId: String
|
188
|
+
|
189
|
+
attr_accessor :TemplateId
|
190
|
+
|
191
|
+
def initialize(templateid=nil)
|
192
|
+
@TemplateId = templateid
|
193
|
+
end
|
194
|
+
|
195
|
+
def deserialize(params)
|
196
|
+
@TemplateId = params['TemplateId']
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# 回执数据统计响应包体
|
201
|
+
class CallbackStatusStatistics < TencentCloud::Common::AbstractModel
|
202
|
+
# @param CallbackCount: 短信回执量统计。
|
203
|
+
# @type CallbackCount: Integer
|
204
|
+
# @param RequestSuccessCount: 短信提交成功量统计。
|
205
|
+
# @type RequestSuccessCount: Integer
|
206
|
+
# @param CallbackFailCount: 短信回执失败量统计。
|
207
|
+
# @type CallbackFailCount: Integer
|
208
|
+
# @param CallbackSuccessCount: 短信回执成功量统计。
|
209
|
+
# @type CallbackSuccessCount: Integer
|
210
|
+
# @param InternalErrorCount: 运营商内部错误统计。
|
211
|
+
# @type InternalErrorCount: Integer
|
212
|
+
# @param InvalidNumberCount: 号码无效或空号统计。
|
213
|
+
# @type InvalidNumberCount: Integer
|
214
|
+
# @param ShutdownErrorCount: 停机、关机等错误统计。
|
215
|
+
# @type ShutdownErrorCount: Integer
|
216
|
+
# @param BlackListCount: 号码拉入黑名单统计。
|
217
|
+
# @type BlackListCount: Integer
|
218
|
+
# @param FrequencyLimitCount: 运营商频率限制统计。
|
219
|
+
# @type FrequencyLimitCount: Integer
|
220
|
+
|
221
|
+
attr_accessor :CallbackCount, :RequestSuccessCount, :CallbackFailCount, :CallbackSuccessCount, :InternalErrorCount, :InvalidNumberCount, :ShutdownErrorCount, :BlackListCount, :FrequencyLimitCount
|
222
|
+
|
223
|
+
def initialize(callbackcount=nil, requestsuccesscount=nil, callbackfailcount=nil, callbacksuccesscount=nil, internalerrorcount=nil, invalidnumbercount=nil, shutdownerrorcount=nil, blacklistcount=nil, frequencylimitcount=nil)
|
224
|
+
@CallbackCount = callbackcount
|
225
|
+
@RequestSuccessCount = requestsuccesscount
|
226
|
+
@CallbackFailCount = callbackfailcount
|
227
|
+
@CallbackSuccessCount = callbacksuccesscount
|
228
|
+
@InternalErrorCount = internalerrorcount
|
229
|
+
@InvalidNumberCount = invalidnumbercount
|
230
|
+
@ShutdownErrorCount = shutdownerrorcount
|
231
|
+
@BlackListCount = blacklistcount
|
232
|
+
@FrequencyLimitCount = frequencylimitcount
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@CallbackCount = params['CallbackCount']
|
237
|
+
@RequestSuccessCount = params['RequestSuccessCount']
|
238
|
+
@CallbackFailCount = params['CallbackFailCount']
|
239
|
+
@CallbackSuccessCount = params['CallbackSuccessCount']
|
240
|
+
@InternalErrorCount = params['InternalErrorCount']
|
241
|
+
@InvalidNumberCount = params['InvalidNumberCount']
|
242
|
+
@ShutdownErrorCount = params['ShutdownErrorCount']
|
243
|
+
@BlackListCount = params['BlackListCount']
|
244
|
+
@FrequencyLimitCount = params['FrequencyLimitCount']
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
# CallbackStatusStatistics请求参数结构体
|
249
|
+
class CallbackStatusStatisticsRequest < TencentCloud::Common::AbstractModel
|
250
|
+
# @param BeginTime: 起始时间,格式为yyyymmddhh,精确到小时,例如2021050113,表示2021年5月1号13时。
|
251
|
+
# @type BeginTime: String
|
252
|
+
# @param EndTime: 结束时间,格式为yyyymmddhh,精确到小时,例如2021050118,表示2021年5月1号18时。
|
253
|
+
# 注:EndTime 必须大于 BeginTime,且相差不超过32天。
|
254
|
+
# @type EndTime: String
|
255
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
256
|
+
# @type SmsSdkAppId: String
|
257
|
+
# @param Limit: 最大上限。
|
258
|
+
# 注:目前固定设置为0。
|
259
|
+
# @type Limit: Integer
|
260
|
+
# @param Offset: 偏移量。
|
261
|
+
# 注:目前固定设置为0。
|
262
|
+
# @type Offset: Integer
|
263
|
+
|
264
|
+
attr_accessor :BeginTime, :EndTime, :SmsSdkAppId, :Limit, :Offset
|
265
|
+
|
266
|
+
def initialize(begintime=nil, endtime=nil, smssdkappid=nil, limit=nil, offset=nil)
|
267
|
+
@BeginTime = begintime
|
268
|
+
@EndTime = endtime
|
269
|
+
@SmsSdkAppId = smssdkappid
|
270
|
+
@Limit = limit
|
271
|
+
@Offset = offset
|
272
|
+
end
|
273
|
+
|
274
|
+
def deserialize(params)
|
275
|
+
@BeginTime = params['BeginTime']
|
276
|
+
@EndTime = params['EndTime']
|
277
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
278
|
+
@Limit = params['Limit']
|
279
|
+
@Offset = params['Offset']
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# CallbackStatusStatistics返回参数结构体
|
284
|
+
class CallbackStatusStatisticsResponse < TencentCloud::Common::AbstractModel
|
285
|
+
# @param CallbackStatusStatistics: 回执数据统计响应包体。
|
286
|
+
# @type CallbackStatusStatistics: :class:`Tencentcloud::Sms.v20210111.models.CallbackStatusStatistics`
|
287
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
288
|
+
# @type RequestId: String
|
289
|
+
|
290
|
+
attr_accessor :CallbackStatusStatistics, :RequestId
|
291
|
+
|
292
|
+
def initialize(callbackstatusstatistics=nil, requestid=nil)
|
293
|
+
@CallbackStatusStatistics = callbackstatusstatistics
|
294
|
+
@RequestId = requestid
|
295
|
+
end
|
296
|
+
|
297
|
+
def deserialize(params)
|
298
|
+
unless params['CallbackStatusStatistics'].nil?
|
299
|
+
@CallbackStatusStatistics = CallbackStatusStatistics.new
|
300
|
+
@CallbackStatusStatistics.deserialize(params['CallbackStatusStatistics'])
|
301
|
+
end
|
302
|
+
@RequestId = params['RequestId']
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
# 删除签名响应
|
307
|
+
class DeleteSignStatus < TencentCloud::Common::AbstractModel
|
308
|
+
# @param DeleteStatus: 删除状态信息。
|
309
|
+
# @type DeleteStatus: String
|
310
|
+
# @param DeleteTime: 删除时间,UNIX 时间戳(单位:秒)。
|
311
|
+
# @type DeleteTime: Integer
|
312
|
+
|
313
|
+
attr_accessor :DeleteStatus, :DeleteTime
|
314
|
+
|
315
|
+
def initialize(deletestatus=nil, deletetime=nil)
|
316
|
+
@DeleteStatus = deletestatus
|
317
|
+
@DeleteTime = deletetime
|
318
|
+
end
|
319
|
+
|
320
|
+
def deserialize(params)
|
321
|
+
@DeleteStatus = params['DeleteStatus']
|
322
|
+
@DeleteTime = params['DeleteTime']
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# DeleteSmsSign请求参数结构体
|
327
|
+
class DeleteSmsSignRequest < TencentCloud::Common::AbstractModel
|
328
|
+
# @param SignId: 待删除的签名 ID。
|
329
|
+
# @type SignId: Integer
|
330
|
+
|
331
|
+
attr_accessor :SignId
|
332
|
+
|
333
|
+
def initialize(signid=nil)
|
334
|
+
@SignId = signid
|
335
|
+
end
|
336
|
+
|
337
|
+
def deserialize(params)
|
338
|
+
@SignId = params['SignId']
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# DeleteSmsSign返回参数结构体
|
343
|
+
class DeleteSmsSignResponse < TencentCloud::Common::AbstractModel
|
344
|
+
# @param DeleteSignStatus: 删除签名响应
|
345
|
+
# @type DeleteSignStatus: :class:`Tencentcloud::Sms.v20210111.models.DeleteSignStatus`
|
346
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
347
|
+
# @type RequestId: String
|
348
|
+
|
349
|
+
attr_accessor :DeleteSignStatus, :RequestId
|
350
|
+
|
351
|
+
def initialize(deletesignstatus=nil, requestid=nil)
|
352
|
+
@DeleteSignStatus = deletesignstatus
|
353
|
+
@RequestId = requestid
|
354
|
+
end
|
355
|
+
|
356
|
+
def deserialize(params)
|
357
|
+
unless params['DeleteSignStatus'].nil?
|
358
|
+
@DeleteSignStatus = DeleteSignStatus.new
|
359
|
+
@DeleteSignStatus.deserialize(params['DeleteSignStatus'])
|
360
|
+
end
|
361
|
+
@RequestId = params['RequestId']
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# DeleteSmsTemplate请求参数结构体
|
366
|
+
class DeleteSmsTemplateRequest < TencentCloud::Common::AbstractModel
|
367
|
+
# @param TemplateId: 待删除的模板 ID。
|
368
|
+
# @type TemplateId: Integer
|
369
|
+
|
370
|
+
attr_accessor :TemplateId
|
371
|
+
|
372
|
+
def initialize(templateid=nil)
|
373
|
+
@TemplateId = templateid
|
374
|
+
end
|
375
|
+
|
376
|
+
def deserialize(params)
|
377
|
+
@TemplateId = params['TemplateId']
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
381
|
+
# DeleteSmsTemplate返回参数结构体
|
382
|
+
class DeleteSmsTemplateResponse < TencentCloud::Common::AbstractModel
|
383
|
+
# @param DeleteTemplateStatus: 删除模板响应
|
384
|
+
# @type DeleteTemplateStatus: :class:`Tencentcloud::Sms.v20210111.models.DeleteTemplateStatus`
|
385
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
386
|
+
# @type RequestId: String
|
387
|
+
|
388
|
+
attr_accessor :DeleteTemplateStatus, :RequestId
|
389
|
+
|
390
|
+
def initialize(deletetemplatestatus=nil, requestid=nil)
|
391
|
+
@DeleteTemplateStatus = deletetemplatestatus
|
392
|
+
@RequestId = requestid
|
393
|
+
end
|
394
|
+
|
395
|
+
def deserialize(params)
|
396
|
+
unless params['DeleteTemplateStatus'].nil?
|
397
|
+
@DeleteTemplateStatus = DeleteTemplateStatus.new
|
398
|
+
@DeleteTemplateStatus.deserialize(params['DeleteTemplateStatus'])
|
399
|
+
end
|
400
|
+
@RequestId = params['RequestId']
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
# 删除模板响应
|
405
|
+
class DeleteTemplateStatus < TencentCloud::Common::AbstractModel
|
406
|
+
# @param DeleteStatus: 删除状态信息。
|
407
|
+
# @type DeleteStatus: String
|
408
|
+
# @param DeleteTime: 删除时间,UNIX 时间戳(单位:秒)。
|
409
|
+
# @type DeleteTime: Integer
|
410
|
+
|
411
|
+
attr_accessor :DeleteStatus, :DeleteTime
|
412
|
+
|
413
|
+
def initialize(deletestatus=nil, deletetime=nil)
|
414
|
+
@DeleteStatus = deletestatus
|
415
|
+
@DeleteTime = deletetime
|
416
|
+
end
|
417
|
+
|
418
|
+
def deserialize(params)
|
419
|
+
@DeleteStatus = params['DeleteStatus']
|
420
|
+
@DeleteTime = params['DeleteTime']
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
# DescribePhoneNumberInfo请求参数结构体
|
425
|
+
class DescribePhoneNumberInfoRequest < TencentCloud::Common::AbstractModel
|
426
|
+
# @param PhoneNumberSet: 查询手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号。
|
427
|
+
# 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
428
|
+
# @type PhoneNumberSet: Array
|
429
|
+
|
430
|
+
attr_accessor :PhoneNumberSet
|
431
|
+
|
432
|
+
def initialize(phonenumberset=nil)
|
433
|
+
@PhoneNumberSet = phonenumberset
|
434
|
+
end
|
435
|
+
|
436
|
+
def deserialize(params)
|
437
|
+
@PhoneNumberSet = params['PhoneNumberSet']
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
# DescribePhoneNumberInfo返回参数结构体
|
442
|
+
class DescribePhoneNumberInfoResponse < TencentCloud::Common::AbstractModel
|
443
|
+
# @param PhoneNumberInfoSet: 获取号码信息。
|
444
|
+
# @type PhoneNumberInfoSet: Array
|
445
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
446
|
+
# @type RequestId: String
|
447
|
+
|
448
|
+
attr_accessor :PhoneNumberInfoSet, :RequestId
|
449
|
+
|
450
|
+
def initialize(phonenumberinfoset=nil, requestid=nil)
|
451
|
+
@PhoneNumberInfoSet = phonenumberinfoset
|
452
|
+
@RequestId = requestid
|
453
|
+
end
|
454
|
+
|
455
|
+
def deserialize(params)
|
456
|
+
unless params['PhoneNumberInfoSet'].nil?
|
457
|
+
@PhoneNumberInfoSet = []
|
458
|
+
params['PhoneNumberInfoSet'].each do |i|
|
459
|
+
phonenumberinfo_tmp = PhoneNumberInfo.new
|
460
|
+
phonenumberinfo_tmp.deserialize(i)
|
461
|
+
@PhoneNumberInfoSet << phonenumberinfo_tmp
|
462
|
+
end
|
463
|
+
end
|
464
|
+
@RequestId = params['RequestId']
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
# 获取短信签名信息响应
|
469
|
+
class DescribeSignListStatus < TencentCloud::Common::AbstractModel
|
470
|
+
# @param SignId: 签名ID。
|
471
|
+
# @type SignId: Integer
|
472
|
+
# @param International: 是否国际/港澳台短信,其中0表示国内短信,1表示国际/港澳台短信。
|
473
|
+
# @type International: Integer
|
474
|
+
# @param StatusCode: 申请签名状态,其中0表示审核通过,1表示审核中。
|
475
|
+
# -1:表示审核未通过或审核失败。
|
476
|
+
# @type StatusCode: Integer
|
477
|
+
# @param ReviewReply: 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
|
478
|
+
# @type ReviewReply: String
|
479
|
+
# @param SignName: 签名名称。
|
480
|
+
# @type SignName: String
|
481
|
+
# @param CreateTime: 提交审核时间,UNIX 时间戳(单位:秒)。
|
482
|
+
# @type CreateTime: Integer
|
483
|
+
|
484
|
+
attr_accessor :SignId, :International, :StatusCode, :ReviewReply, :SignName, :CreateTime
|
485
|
+
|
486
|
+
def initialize(signid=nil, international=nil, statuscode=nil, reviewreply=nil, signname=nil, createtime=nil)
|
487
|
+
@SignId = signid
|
488
|
+
@International = international
|
489
|
+
@StatusCode = statuscode
|
490
|
+
@ReviewReply = reviewreply
|
491
|
+
@SignName = signname
|
492
|
+
@CreateTime = createtime
|
493
|
+
end
|
494
|
+
|
495
|
+
def deserialize(params)
|
496
|
+
@SignId = params['SignId']
|
497
|
+
@International = params['International']
|
498
|
+
@StatusCode = params['StatusCode']
|
499
|
+
@ReviewReply = params['ReviewReply']
|
500
|
+
@SignName = params['SignName']
|
501
|
+
@CreateTime = params['CreateTime']
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
# DescribeSmsSignList请求参数结构体
|
506
|
+
class DescribeSmsSignListRequest < TencentCloud::Common::AbstractModel
|
507
|
+
# @param SignIdSet: 签名 ID 数组。
|
508
|
+
# 注:默认数组最大长度100。
|
509
|
+
# @type SignIdSet: Array
|
510
|
+
# @param International: 是否国际/港澳台短信:
|
511
|
+
# 0:表示国内短信。
|
512
|
+
# 1:表示国际/港澳台短信。
|
513
|
+
# @type International: Integer
|
514
|
+
|
515
|
+
attr_accessor :SignIdSet, :International
|
516
|
+
|
517
|
+
def initialize(signidset=nil, international=nil)
|
518
|
+
@SignIdSet = signidset
|
519
|
+
@International = international
|
520
|
+
end
|
521
|
+
|
522
|
+
def deserialize(params)
|
523
|
+
@SignIdSet = params['SignIdSet']
|
524
|
+
@International = params['International']
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
# DescribeSmsSignList返回参数结构体
|
529
|
+
class DescribeSmsSignListResponse < TencentCloud::Common::AbstractModel
|
530
|
+
# @param DescribeSignListStatusSet: 获取签名信息响应
|
531
|
+
# @type DescribeSignListStatusSet: Array
|
532
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
533
|
+
# @type RequestId: String
|
534
|
+
|
535
|
+
attr_accessor :DescribeSignListStatusSet, :RequestId
|
536
|
+
|
537
|
+
def initialize(describesignliststatusset=nil, requestid=nil)
|
538
|
+
@DescribeSignListStatusSet = describesignliststatusset
|
539
|
+
@RequestId = requestid
|
540
|
+
end
|
541
|
+
|
542
|
+
def deserialize(params)
|
543
|
+
unless params['DescribeSignListStatusSet'].nil?
|
544
|
+
@DescribeSignListStatusSet = []
|
545
|
+
params['DescribeSignListStatusSet'].each do |i|
|
546
|
+
describesignliststatus_tmp = DescribeSignListStatus.new
|
547
|
+
describesignliststatus_tmp.deserialize(i)
|
548
|
+
@DescribeSignListStatusSet << describesignliststatus_tmp
|
549
|
+
end
|
550
|
+
end
|
551
|
+
@RequestId = params['RequestId']
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
555
|
+
# DescribeSmsTemplateList请求参数结构体
|
556
|
+
class DescribeSmsTemplateListRequest < TencentCloud::Common::AbstractModel
|
557
|
+
# @param TemplateIdSet: 模板 ID 数组。
|
558
|
+
# <dx-alert infotype="notice" title="注意">默认数组长度最大100</dx-alert>
|
559
|
+
# @type TemplateIdSet: Array
|
560
|
+
# @param International: 是否国际/港澳台短信:
|
561
|
+
# 0:表示国内短信。
|
562
|
+
# 1:表示国际/港澳台短信。
|
563
|
+
# @type International: Integer
|
564
|
+
|
565
|
+
attr_accessor :TemplateIdSet, :International
|
566
|
+
|
567
|
+
def initialize(templateidset=nil, international=nil)
|
568
|
+
@TemplateIdSet = templateidset
|
569
|
+
@International = international
|
570
|
+
end
|
571
|
+
|
572
|
+
def deserialize(params)
|
573
|
+
@TemplateIdSet = params['TemplateIdSet']
|
574
|
+
@International = params['International']
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
# DescribeSmsTemplateList返回参数结构体
|
579
|
+
class DescribeSmsTemplateListResponse < TencentCloud::Common::AbstractModel
|
580
|
+
# @param DescribeTemplateStatusSet: 获取短信模板信息响应
|
581
|
+
# @type DescribeTemplateStatusSet: Array
|
582
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
583
|
+
# @type RequestId: String
|
584
|
+
|
585
|
+
attr_accessor :DescribeTemplateStatusSet, :RequestId
|
586
|
+
|
587
|
+
def initialize(describetemplatestatusset=nil, requestid=nil)
|
588
|
+
@DescribeTemplateStatusSet = describetemplatestatusset
|
589
|
+
@RequestId = requestid
|
590
|
+
end
|
591
|
+
|
592
|
+
def deserialize(params)
|
593
|
+
unless params['DescribeTemplateStatusSet'].nil?
|
594
|
+
@DescribeTemplateStatusSet = []
|
595
|
+
params['DescribeTemplateStatusSet'].each do |i|
|
596
|
+
describetemplateliststatus_tmp = DescribeTemplateListStatus.new
|
597
|
+
describetemplateliststatus_tmp.deserialize(i)
|
598
|
+
@DescribeTemplateStatusSet << describetemplateliststatus_tmp
|
599
|
+
end
|
600
|
+
end
|
601
|
+
@RequestId = params['RequestId']
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
# 获取短信模板信息响应
|
606
|
+
class DescribeTemplateListStatus < TencentCloud::Common::AbstractModel
|
607
|
+
# @param TemplateId: 模板ID。
|
608
|
+
# @type TemplateId: Integer
|
609
|
+
# @param International: 是否国际/港澳台短信,其中0表示国内短信,1表示国际/港澳台短信。
|
610
|
+
# @type International: Integer
|
611
|
+
# @param StatusCode: 申请模板状态,其中0表示审核通过,1表示审核中,-1表示审核未通过或审核失败。
|
612
|
+
# @type StatusCode: Integer
|
613
|
+
# @param ReviewReply: 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
|
614
|
+
# @type ReviewReply: String
|
615
|
+
# @param TemplateName: 模板名称。
|
616
|
+
# @type TemplateName: String
|
617
|
+
# @param CreateTime: 提交审核时间,UNIX 时间戳(单位:秒)。
|
618
|
+
# @type CreateTime: Integer
|
619
|
+
# @param TemplateContent: 模板内容。
|
620
|
+
# @type TemplateContent: String
|
621
|
+
|
622
|
+
attr_accessor :TemplateId, :International, :StatusCode, :ReviewReply, :TemplateName, :CreateTime, :TemplateContent
|
623
|
+
|
624
|
+
def initialize(templateid=nil, international=nil, statuscode=nil, reviewreply=nil, templatename=nil, createtime=nil, templatecontent=nil)
|
625
|
+
@TemplateId = templateid
|
626
|
+
@International = international
|
627
|
+
@StatusCode = statuscode
|
628
|
+
@ReviewReply = reviewreply
|
629
|
+
@TemplateName = templatename
|
630
|
+
@CreateTime = createtime
|
631
|
+
@TemplateContent = templatecontent
|
632
|
+
end
|
633
|
+
|
634
|
+
def deserialize(params)
|
635
|
+
@TemplateId = params['TemplateId']
|
636
|
+
@International = params['International']
|
637
|
+
@StatusCode = params['StatusCode']
|
638
|
+
@ReviewReply = params['ReviewReply']
|
639
|
+
@TemplateName = params['TemplateName']
|
640
|
+
@CreateTime = params['CreateTime']
|
641
|
+
@TemplateContent = params['TemplateContent']
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
# 修改签名响应
|
646
|
+
class ModifySignStatus < TencentCloud::Common::AbstractModel
|
647
|
+
# @param SignId: 签名ID。
|
648
|
+
# @type SignId: Integer
|
649
|
+
|
650
|
+
attr_accessor :SignId
|
651
|
+
|
652
|
+
def initialize(signid=nil)
|
653
|
+
@SignId = signid
|
654
|
+
end
|
655
|
+
|
656
|
+
def deserialize(params)
|
657
|
+
@SignId = params['SignId']
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# ModifySmsSign请求参数结构体
|
662
|
+
class ModifySmsSignRequest < TencentCloud::Common::AbstractModel
|
663
|
+
# @param SignId: 待修改的签名 ID。
|
664
|
+
# @type SignId: Integer
|
665
|
+
# @param SignName: 签名名称。
|
666
|
+
# @type SignName: String
|
667
|
+
# @param SignType: 签名类型。其中每种类型后面标注了其可选的 DocumentType(证明类型):
|
668
|
+
# 0:公司,可选 DocumentType 有(0,1)。
|
669
|
+
# 1:APP,可选 DocumentType 有(0,1,2,3,4) 。
|
670
|
+
# 2:网站,可选 DocumentType 有(0,1,2,3,5)。
|
671
|
+
# 3:公众号,可选 DocumentType 有(0,1,2,3,8)。
|
672
|
+
# 4:商标,可选 DocumentType 有(7)。
|
673
|
+
# 5:政府/机关事业单位/其他机构,可选 DocumentType 有(2,3)。
|
674
|
+
# 6:小程序,可选 DocumentType 有(0,1,2,3,6)。
|
675
|
+
# 注:必须按照对应关系选择证明类型,否则会审核失败。
|
676
|
+
# @type SignType: Integer
|
677
|
+
# @param DocumentType: 证明类型:
|
678
|
+
# 0:三证合一。
|
679
|
+
# 1:企业营业执照。
|
680
|
+
# 2:组织机构代码证书。
|
681
|
+
# 3:社会信用代码证书。
|
682
|
+
# 4:应用后台管理截图(个人开发APP)。
|
683
|
+
# 5:网站备案后台截图(个人开发网站)。
|
684
|
+
# 6:小程序设置页面截图(个人认证小程序)。
|
685
|
+
# 7:商标注册书。
|
686
|
+
# 8:公众号设置页面截图(个人认证公众号)。
|
687
|
+
# @type DocumentType: Integer
|
688
|
+
# @param International: 是否国际/港澳台短信:
|
689
|
+
# 0:表示国内短信。
|
690
|
+
# 1:表示国际/港澳台短信。
|
691
|
+
# 注:需要和待修改签名International值保持一致,该参数不能直接修改国内签名到国际签名。
|
692
|
+
# @type International: Integer
|
693
|
+
# @param SignPurpose: 签名用途:
|
694
|
+
# 0:自用。
|
695
|
+
# 1:他用。
|
696
|
+
# @type SignPurpose: Integer
|
697
|
+
# @param ProofImage: 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
|
698
|
+
# @type ProofImage: String
|
699
|
+
# @param CommissionImage: 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
|
700
|
+
# 图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
|
701
|
+
# 注:只有 SignPurpose 在选择为 1(他用)时,这个字段才会生效。
|
702
|
+
# @type CommissionImage: String
|
703
|
+
# @param Remark: 签名的申请备注。
|
704
|
+
# @type Remark: String
|
705
|
+
|
706
|
+
attr_accessor :SignId, :SignName, :SignType, :DocumentType, :International, :SignPurpose, :ProofImage, :CommissionImage, :Remark
|
707
|
+
|
708
|
+
def initialize(signid=nil, signname=nil, signtype=nil, documenttype=nil, international=nil, signpurpose=nil, proofimage=nil, commissionimage=nil, remark=nil)
|
709
|
+
@SignId = signid
|
710
|
+
@SignName = signname
|
711
|
+
@SignType = signtype
|
712
|
+
@DocumentType = documenttype
|
713
|
+
@International = international
|
714
|
+
@SignPurpose = signpurpose
|
715
|
+
@ProofImage = proofimage
|
716
|
+
@CommissionImage = commissionimage
|
717
|
+
@Remark = remark
|
718
|
+
end
|
719
|
+
|
720
|
+
def deserialize(params)
|
721
|
+
@SignId = params['SignId']
|
722
|
+
@SignName = params['SignName']
|
723
|
+
@SignType = params['SignType']
|
724
|
+
@DocumentType = params['DocumentType']
|
725
|
+
@International = params['International']
|
726
|
+
@SignPurpose = params['SignPurpose']
|
727
|
+
@ProofImage = params['ProofImage']
|
728
|
+
@CommissionImage = params['CommissionImage']
|
729
|
+
@Remark = params['Remark']
|
730
|
+
end
|
731
|
+
end
|
732
|
+
|
733
|
+
# ModifySmsSign返回参数结构体
|
734
|
+
class ModifySmsSignResponse < TencentCloud::Common::AbstractModel
|
735
|
+
# @param ModifySignStatus: 修改签名响应
|
736
|
+
# @type ModifySignStatus: :class:`Tencentcloud::Sms.v20210111.models.ModifySignStatus`
|
737
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
738
|
+
# @type RequestId: String
|
739
|
+
|
740
|
+
attr_accessor :ModifySignStatus, :RequestId
|
741
|
+
|
742
|
+
def initialize(modifysignstatus=nil, requestid=nil)
|
743
|
+
@ModifySignStatus = modifysignstatus
|
744
|
+
@RequestId = requestid
|
745
|
+
end
|
746
|
+
|
747
|
+
def deserialize(params)
|
748
|
+
unless params['ModifySignStatus'].nil?
|
749
|
+
@ModifySignStatus = ModifySignStatus.new
|
750
|
+
@ModifySignStatus.deserialize(params['ModifySignStatus'])
|
751
|
+
end
|
752
|
+
@RequestId = params['RequestId']
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
756
|
+
# ModifySmsTemplate请求参数结构体
|
757
|
+
class ModifySmsTemplateRequest < TencentCloud::Common::AbstractModel
|
758
|
+
# @param TemplateId: 待修改模板的ID。
|
759
|
+
# @type TemplateId: Integer
|
760
|
+
# @param TemplateName: 新的模板名称。
|
761
|
+
# @type TemplateName: String
|
762
|
+
# @param TemplateContent: 新的模板内容。
|
763
|
+
# @type TemplateContent: String
|
764
|
+
# @param SmsType: 短信类型,0表示普通短信, 1表示营销短信。
|
765
|
+
# @type SmsType: Integer
|
766
|
+
# @param International: 是否国际/港澳台短信:
|
767
|
+
# 0:表示国内短信。
|
768
|
+
# 1:表示国际/港澳台短信。
|
769
|
+
# @type International: Integer
|
770
|
+
# @param Remark: 模板备注,例如申请原因,使用场景等。
|
771
|
+
# @type Remark: String
|
772
|
+
|
773
|
+
attr_accessor :TemplateId, :TemplateName, :TemplateContent, :SmsType, :International, :Remark
|
774
|
+
|
775
|
+
def initialize(templateid=nil, templatename=nil, templatecontent=nil, smstype=nil, international=nil, remark=nil)
|
776
|
+
@TemplateId = templateid
|
777
|
+
@TemplateName = templatename
|
778
|
+
@TemplateContent = templatecontent
|
779
|
+
@SmsType = smstype
|
780
|
+
@International = international
|
781
|
+
@Remark = remark
|
782
|
+
end
|
783
|
+
|
784
|
+
def deserialize(params)
|
785
|
+
@TemplateId = params['TemplateId']
|
786
|
+
@TemplateName = params['TemplateName']
|
787
|
+
@TemplateContent = params['TemplateContent']
|
788
|
+
@SmsType = params['SmsType']
|
789
|
+
@International = params['International']
|
790
|
+
@Remark = params['Remark']
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
794
|
+
# ModifySmsTemplate返回参数结构体
|
795
|
+
class ModifySmsTemplateResponse < TencentCloud::Common::AbstractModel
|
796
|
+
# @param ModifyTemplateStatus: 修改模板参数响应
|
797
|
+
# @type ModifyTemplateStatus: :class:`Tencentcloud::Sms.v20210111.models.ModifyTemplateStatus`
|
798
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
799
|
+
# @type RequestId: String
|
800
|
+
|
801
|
+
attr_accessor :ModifyTemplateStatus, :RequestId
|
802
|
+
|
803
|
+
def initialize(modifytemplatestatus=nil, requestid=nil)
|
804
|
+
@ModifyTemplateStatus = modifytemplatestatus
|
805
|
+
@RequestId = requestid
|
806
|
+
end
|
807
|
+
|
808
|
+
def deserialize(params)
|
809
|
+
unless params['ModifyTemplateStatus'].nil?
|
810
|
+
@ModifyTemplateStatus = ModifyTemplateStatus.new
|
811
|
+
@ModifyTemplateStatus.deserialize(params['ModifyTemplateStatus'])
|
812
|
+
end
|
813
|
+
@RequestId = params['RequestId']
|
814
|
+
end
|
815
|
+
end
|
816
|
+
|
817
|
+
# 修改模板参数响应
|
818
|
+
class ModifyTemplateStatus < TencentCloud::Common::AbstractModel
|
819
|
+
# @param TemplateId: 模板ID。
|
820
|
+
# @type TemplateId: Integer
|
821
|
+
|
822
|
+
attr_accessor :TemplateId
|
823
|
+
|
824
|
+
def initialize(templateid=nil)
|
825
|
+
@TemplateId = templateid
|
826
|
+
end
|
827
|
+
|
828
|
+
def deserialize(params)
|
829
|
+
@TemplateId = params['TemplateId']
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
# 号码信息。
|
834
|
+
class PhoneNumberInfo < TencentCloud::Common::AbstractModel
|
835
|
+
# @param Code: 号码信息查询错误码,查询成功返回 "Ok"。
|
836
|
+
# @type Code: String
|
837
|
+
# @param Message: 号码信息查询错误码描述。
|
838
|
+
# @type Message: String
|
839
|
+
# @param NationCode: 国家(或地区)码。
|
840
|
+
# @type NationCode: String
|
841
|
+
# @param SubscriberNumber: 用户号码,去除国家或地区码前缀的普通格式,示例如:13711112222。
|
842
|
+
# @type SubscriberNumber: String
|
843
|
+
# @param PhoneNumber: 解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
|
844
|
+
# @type PhoneNumber: String
|
845
|
+
# @param IsoCode: 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
|
846
|
+
# @type IsoCode: String
|
847
|
+
# @param IsoName: 国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E)
|
848
|
+
# @type IsoName: String
|
849
|
+
|
850
|
+
attr_accessor :Code, :Message, :NationCode, :SubscriberNumber, :PhoneNumber, :IsoCode, :IsoName
|
851
|
+
|
852
|
+
def initialize(code=nil, message=nil, nationcode=nil, subscribernumber=nil, phonenumber=nil, isocode=nil, isoname=nil)
|
853
|
+
@Code = code
|
854
|
+
@Message = message
|
855
|
+
@NationCode = nationcode
|
856
|
+
@SubscriberNumber = subscribernumber
|
857
|
+
@PhoneNumber = phonenumber
|
858
|
+
@IsoCode = isocode
|
859
|
+
@IsoName = isoname
|
860
|
+
end
|
861
|
+
|
862
|
+
def deserialize(params)
|
863
|
+
@Code = params['Code']
|
864
|
+
@Message = params['Message']
|
865
|
+
@NationCode = params['NationCode']
|
866
|
+
@SubscriberNumber = params['SubscriberNumber']
|
867
|
+
@PhoneNumber = params['PhoneNumber']
|
868
|
+
@IsoCode = params['IsoCode']
|
869
|
+
@IsoName = params['IsoName']
|
870
|
+
end
|
871
|
+
end
|
872
|
+
|
873
|
+
# 短信回复状态
|
874
|
+
class PullSmsReplyStatus < TencentCloud::Common::AbstractModel
|
875
|
+
# @param ExtendCode: 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
|
876
|
+
# @type ExtendCode: String
|
877
|
+
# @param CountryCode: 国家(或地区)码。
|
878
|
+
# @type CountryCode: String
|
879
|
+
# @param PhoneNumber: 手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
880
|
+
# @type PhoneNumber: String
|
881
|
+
# @param SignName: 短信签名名称。
|
882
|
+
# @type SignName: String
|
883
|
+
# @param ReplyContent: 用户回复的内容。
|
884
|
+
# @type ReplyContent: String
|
885
|
+
# @param ReplyTime: 回复时间,UNIX 时间戳(单位:秒)。
|
886
|
+
# @type ReplyTime: Integer
|
887
|
+
# @param SubscriberNumber: 用户号码,普通格式,示例如:13711112222。
|
888
|
+
# @type SubscriberNumber: String
|
889
|
+
|
890
|
+
attr_accessor :ExtendCode, :CountryCode, :PhoneNumber, :SignName, :ReplyContent, :ReplyTime, :SubscriberNumber
|
891
|
+
|
892
|
+
def initialize(extendcode=nil, countrycode=nil, phonenumber=nil, signname=nil, replycontent=nil, replytime=nil, subscribernumber=nil)
|
893
|
+
@ExtendCode = extendcode
|
894
|
+
@CountryCode = countrycode
|
895
|
+
@PhoneNumber = phonenumber
|
896
|
+
@SignName = signname
|
897
|
+
@ReplyContent = replycontent
|
898
|
+
@ReplyTime = replytime
|
899
|
+
@SubscriberNumber = subscribernumber
|
900
|
+
end
|
901
|
+
|
902
|
+
def deserialize(params)
|
903
|
+
@ExtendCode = params['ExtendCode']
|
904
|
+
@CountryCode = params['CountryCode']
|
905
|
+
@PhoneNumber = params['PhoneNumber']
|
906
|
+
@SignName = params['SignName']
|
907
|
+
@ReplyContent = params['ReplyContent']
|
908
|
+
@ReplyTime = params['ReplyTime']
|
909
|
+
@SubscriberNumber = params['SubscriberNumber']
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
# PullSmsReplyStatusByPhoneNumber请求参数结构体
|
914
|
+
class PullSmsReplyStatusByPhoneNumberRequest < TencentCloud::Common::AbstractModel
|
915
|
+
# @param BeginTime: 拉取起始时间,UNIX 时间戳(时间:秒)。
|
916
|
+
# 注:最大可拉取当前时期前7天的数据。
|
917
|
+
# @type BeginTime: Integer
|
918
|
+
# @param Offset: 偏移量。
|
919
|
+
# 注:目前固定设置为0。
|
920
|
+
# @type Offset: Integer
|
921
|
+
# @param Limit: 拉取最大条数,最多 100。
|
922
|
+
# @type Limit: Integer
|
923
|
+
# @param PhoneNumber: 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
924
|
+
# @type PhoneNumber: String
|
925
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
926
|
+
# @type SmsSdkAppId: String
|
927
|
+
# @param EndTime: 拉取截止时间,UNIX 时间戳(时间:秒)。
|
928
|
+
# @type EndTime: Integer
|
929
|
+
|
930
|
+
attr_accessor :BeginTime, :Offset, :Limit, :PhoneNumber, :SmsSdkAppId, :EndTime
|
931
|
+
|
932
|
+
def initialize(begintime=nil, offset=nil, limit=nil, phonenumber=nil, smssdkappid=nil, endtime=nil)
|
933
|
+
@BeginTime = begintime
|
934
|
+
@Offset = offset
|
935
|
+
@Limit = limit
|
936
|
+
@PhoneNumber = phonenumber
|
937
|
+
@SmsSdkAppId = smssdkappid
|
938
|
+
@EndTime = endtime
|
939
|
+
end
|
940
|
+
|
941
|
+
def deserialize(params)
|
942
|
+
@BeginTime = params['BeginTime']
|
943
|
+
@Offset = params['Offset']
|
944
|
+
@Limit = params['Limit']
|
945
|
+
@PhoneNumber = params['PhoneNumber']
|
946
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
947
|
+
@EndTime = params['EndTime']
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
951
|
+
# PullSmsReplyStatusByPhoneNumber返回参数结构体
|
952
|
+
class PullSmsReplyStatusByPhoneNumberResponse < TencentCloud::Common::AbstractModel
|
953
|
+
# @param PullSmsReplyStatusSet: 回复状态响应集合。
|
954
|
+
# @type PullSmsReplyStatusSet: Array
|
955
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
956
|
+
# @type RequestId: String
|
957
|
+
|
958
|
+
attr_accessor :PullSmsReplyStatusSet, :RequestId
|
959
|
+
|
960
|
+
def initialize(pullsmsreplystatusset=nil, requestid=nil)
|
961
|
+
@PullSmsReplyStatusSet = pullsmsreplystatusset
|
962
|
+
@RequestId = requestid
|
963
|
+
end
|
964
|
+
|
965
|
+
def deserialize(params)
|
966
|
+
unless params['PullSmsReplyStatusSet'].nil?
|
967
|
+
@PullSmsReplyStatusSet = []
|
968
|
+
params['PullSmsReplyStatusSet'].each do |i|
|
969
|
+
pullsmsreplystatus_tmp = PullSmsReplyStatus.new
|
970
|
+
pullsmsreplystatus_tmp.deserialize(i)
|
971
|
+
@PullSmsReplyStatusSet << pullsmsreplystatus_tmp
|
972
|
+
end
|
973
|
+
end
|
974
|
+
@RequestId = params['RequestId']
|
975
|
+
end
|
976
|
+
end
|
977
|
+
|
978
|
+
# PullSmsReplyStatus请求参数结构体
|
979
|
+
class PullSmsReplyStatusRequest < TencentCloud::Common::AbstractModel
|
980
|
+
# @param Limit: 拉取最大条数,最多100条。
|
981
|
+
# @type Limit: Integer
|
982
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,例如1400006666。
|
983
|
+
# @type SmsSdkAppId: String
|
984
|
+
|
985
|
+
attr_accessor :Limit, :SmsSdkAppId
|
986
|
+
|
987
|
+
def initialize(limit=nil, smssdkappid=nil)
|
988
|
+
@Limit = limit
|
989
|
+
@SmsSdkAppId = smssdkappid
|
990
|
+
end
|
991
|
+
|
992
|
+
def deserialize(params)
|
993
|
+
@Limit = params['Limit']
|
994
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
995
|
+
end
|
996
|
+
end
|
997
|
+
|
998
|
+
# PullSmsReplyStatus返回参数结构体
|
999
|
+
class PullSmsReplyStatusResponse < TencentCloud::Common::AbstractModel
|
1000
|
+
# @param PullSmsReplyStatusSet: 回复状态响应集合。
|
1001
|
+
# @type PullSmsReplyStatusSet: Array
|
1002
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1003
|
+
# @type RequestId: String
|
1004
|
+
|
1005
|
+
attr_accessor :PullSmsReplyStatusSet, :RequestId
|
1006
|
+
|
1007
|
+
def initialize(pullsmsreplystatusset=nil, requestid=nil)
|
1008
|
+
@PullSmsReplyStatusSet = pullsmsreplystatusset
|
1009
|
+
@RequestId = requestid
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
def deserialize(params)
|
1013
|
+
unless params['PullSmsReplyStatusSet'].nil?
|
1014
|
+
@PullSmsReplyStatusSet = []
|
1015
|
+
params['PullSmsReplyStatusSet'].each do |i|
|
1016
|
+
pullsmsreplystatus_tmp = PullSmsReplyStatus.new
|
1017
|
+
pullsmsreplystatus_tmp.deserialize(i)
|
1018
|
+
@PullSmsReplyStatusSet << pullsmsreplystatus_tmp
|
1019
|
+
end
|
1020
|
+
end
|
1021
|
+
@RequestId = params['RequestId']
|
1022
|
+
end
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
# 短信的下发状态详细信息
|
1026
|
+
class PullSmsSendStatus < TencentCloud::Common::AbstractModel
|
1027
|
+
# @param UserReceiveTime: 用户实际接收到短信的时间,UNIX 时间戳(单位:秒)。
|
1028
|
+
# @type UserReceiveTime: Integer
|
1029
|
+
# @param CountryCode: 国家(或地区)码。
|
1030
|
+
# @type CountryCode: String
|
1031
|
+
# @param SubscriberNumber: 用户号码,普通格式,示例如:13711112222。
|
1032
|
+
# @type SubscriberNumber: String
|
1033
|
+
# @param PhoneNumber: 手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
1034
|
+
# @type PhoneNumber: String
|
1035
|
+
# @param SerialNo: 本次发送标识 ID。
|
1036
|
+
# @type SerialNo: String
|
1037
|
+
# @param ReportStatus: 实际是否收到短信接收状态,SUCCESS(成功)、FAIL(失败)。
|
1038
|
+
# @type ReportStatus: String
|
1039
|
+
# @param Description: 用户接收短信状态描述。
|
1040
|
+
# @type Description: String
|
1041
|
+
|
1042
|
+
attr_accessor :UserReceiveTime, :CountryCode, :SubscriberNumber, :PhoneNumber, :SerialNo, :ReportStatus, :Description
|
1043
|
+
|
1044
|
+
def initialize(userreceivetime=nil, countrycode=nil, subscribernumber=nil, phonenumber=nil, serialno=nil, reportstatus=nil, description=nil)
|
1045
|
+
@UserReceiveTime = userreceivetime
|
1046
|
+
@CountryCode = countrycode
|
1047
|
+
@SubscriberNumber = subscribernumber
|
1048
|
+
@PhoneNumber = phonenumber
|
1049
|
+
@SerialNo = serialno
|
1050
|
+
@ReportStatus = reportstatus
|
1051
|
+
@Description = description
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
def deserialize(params)
|
1055
|
+
@UserReceiveTime = params['UserReceiveTime']
|
1056
|
+
@CountryCode = params['CountryCode']
|
1057
|
+
@SubscriberNumber = params['SubscriberNumber']
|
1058
|
+
@PhoneNumber = params['PhoneNumber']
|
1059
|
+
@SerialNo = params['SerialNo']
|
1060
|
+
@ReportStatus = params['ReportStatus']
|
1061
|
+
@Description = params['Description']
|
1062
|
+
end
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# PullSmsSendStatusByPhoneNumber请求参数结构体
|
1066
|
+
class PullSmsSendStatusByPhoneNumberRequest < TencentCloud::Common::AbstractModel
|
1067
|
+
# @param BeginTime: 拉取起始时间,UNIX 时间戳(时间:秒)。
|
1068
|
+
# 注:最大可拉取当前时期前7天的数据。
|
1069
|
+
# @type BeginTime: Integer
|
1070
|
+
# @param Offset: 偏移量。
|
1071
|
+
# 注:目前固定设置为0。
|
1072
|
+
# @type Offset: Integer
|
1073
|
+
# @param Limit: 拉取最大条数,最多 100。
|
1074
|
+
# @type Limit: Integer
|
1075
|
+
# @param PhoneNumber: 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
1076
|
+
# @type PhoneNumber: String
|
1077
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
1078
|
+
# @type SmsSdkAppId: String
|
1079
|
+
# @param EndTime: 拉取截止时间,UNIX 时间戳(时间:秒)。
|
1080
|
+
# @type EndTime: Integer
|
1081
|
+
|
1082
|
+
attr_accessor :BeginTime, :Offset, :Limit, :PhoneNumber, :SmsSdkAppId, :EndTime
|
1083
|
+
|
1084
|
+
def initialize(begintime=nil, offset=nil, limit=nil, phonenumber=nil, smssdkappid=nil, endtime=nil)
|
1085
|
+
@BeginTime = begintime
|
1086
|
+
@Offset = offset
|
1087
|
+
@Limit = limit
|
1088
|
+
@PhoneNumber = phonenumber
|
1089
|
+
@SmsSdkAppId = smssdkappid
|
1090
|
+
@EndTime = endtime
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def deserialize(params)
|
1094
|
+
@BeginTime = params['BeginTime']
|
1095
|
+
@Offset = params['Offset']
|
1096
|
+
@Limit = params['Limit']
|
1097
|
+
@PhoneNumber = params['PhoneNumber']
|
1098
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
1099
|
+
@EndTime = params['EndTime']
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# PullSmsSendStatusByPhoneNumber返回参数结构体
|
1104
|
+
class PullSmsSendStatusByPhoneNumberResponse < TencentCloud::Common::AbstractModel
|
1105
|
+
# @param PullSmsSendStatusSet: 下发状态响应集合。
|
1106
|
+
# @type PullSmsSendStatusSet: Array
|
1107
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1108
|
+
# @type RequestId: String
|
1109
|
+
|
1110
|
+
attr_accessor :PullSmsSendStatusSet, :RequestId
|
1111
|
+
|
1112
|
+
def initialize(pullsmssendstatusset=nil, requestid=nil)
|
1113
|
+
@PullSmsSendStatusSet = pullsmssendstatusset
|
1114
|
+
@RequestId = requestid
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
def deserialize(params)
|
1118
|
+
unless params['PullSmsSendStatusSet'].nil?
|
1119
|
+
@PullSmsSendStatusSet = []
|
1120
|
+
params['PullSmsSendStatusSet'].each do |i|
|
1121
|
+
pullsmssendstatus_tmp = PullSmsSendStatus.new
|
1122
|
+
pullsmssendstatus_tmp.deserialize(i)
|
1123
|
+
@PullSmsSendStatusSet << pullsmssendstatus_tmp
|
1124
|
+
end
|
1125
|
+
end
|
1126
|
+
@RequestId = params['RequestId']
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# PullSmsSendStatus请求参数结构体
|
1131
|
+
class PullSmsSendStatusRequest < TencentCloud::Common::AbstractModel
|
1132
|
+
# @param Limit: 拉取最大条数,最多100条。
|
1133
|
+
# @type Limit: Integer
|
1134
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,例如1400006666。
|
1135
|
+
# @type SmsSdkAppId: String
|
1136
|
+
|
1137
|
+
attr_accessor :Limit, :SmsSdkAppId
|
1138
|
+
|
1139
|
+
def initialize(limit=nil, smssdkappid=nil)
|
1140
|
+
@Limit = limit
|
1141
|
+
@SmsSdkAppId = smssdkappid
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
def deserialize(params)
|
1145
|
+
@Limit = params['Limit']
|
1146
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# PullSmsSendStatus返回参数结构体
|
1151
|
+
class PullSmsSendStatusResponse < TencentCloud::Common::AbstractModel
|
1152
|
+
# @param PullSmsSendStatusSet: 下发状态响应集合。
|
1153
|
+
# @type PullSmsSendStatusSet: Array
|
1154
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1155
|
+
# @type RequestId: String
|
1156
|
+
|
1157
|
+
attr_accessor :PullSmsSendStatusSet, :RequestId
|
1158
|
+
|
1159
|
+
def initialize(pullsmssendstatusset=nil, requestid=nil)
|
1160
|
+
@PullSmsSendStatusSet = pullsmssendstatusset
|
1161
|
+
@RequestId = requestid
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
def deserialize(params)
|
1165
|
+
unless params['PullSmsSendStatusSet'].nil?
|
1166
|
+
@PullSmsSendStatusSet = []
|
1167
|
+
params['PullSmsSendStatusSet'].each do |i|
|
1168
|
+
pullsmssendstatus_tmp = PullSmsSendStatus.new
|
1169
|
+
pullsmssendstatus_tmp.deserialize(i)
|
1170
|
+
@PullSmsSendStatusSet << pullsmssendstatus_tmp
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
@RequestId = params['RequestId']
|
1174
|
+
end
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# SendSms请求参数结构体
|
1178
|
+
class SendSmsRequest < TencentCloud::Common::AbstractModel
|
1179
|
+
# @param PhoneNumberSet: 下发手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
|
1180
|
+
# 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
1181
|
+
# 注:发送国内短信格式还支持0086、86或无任何国家或地区码的11位手机号码,前缀默认为+86。
|
1182
|
+
# @type PhoneNumberSet: Array
|
1183
|
+
# @param SmsSdkAppId: 短信 SdkAppId,在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
1184
|
+
# @type SmsSdkAppId: String
|
1185
|
+
# @param TemplateId: 模板 ID,必须填写已审核通过的模板 ID。模板 ID 可前往 [国内短信](https://console.cloud.tencent.com/smsv2/csms-template) 或 [国际/港澳台短信](https://console.cloud.tencent.com/smsv2/isms-template) 的正文模板管理查看,若向境外手机号发送短信,仅支持使用国际/港澳台短信模板。
|
1186
|
+
# @type TemplateId: String
|
1187
|
+
# @param SignName: 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,例如:腾讯云,签名信息可前往 [国内短信](https://console.cloud.tencent.com/smsv2/csms-sign) 或 [国际/港澳台短信](https://console.cloud.tencent.com/smsv2/isms-sign) 的签名管理查看。
|
1188
|
+
# <dx-alert infotype="notice" title="注意">发送国内短信该参数必填。</dx-alert>
|
1189
|
+
# @type SignName: String
|
1190
|
+
# @param TemplateParamSet: 模板参数,若无模板参数,则设置为空。
|
1191
|
+
# <dx-alert infotype="notice" title="注意">模板参数的个数需要与 TemplateId 对应模板的变量个数保持一致。</dx-alert>
|
1192
|
+
# @type TemplateParamSet: Array
|
1193
|
+
# @param ExtendCode: 短信码号扩展号,默认未开通,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
|
1194
|
+
# @type ExtendCode: String
|
1195
|
+
# @param SessionContext: 用户的 session 内容,可以携带用户侧 ID 等上下文信息,server 会原样返回。
|
1196
|
+
# @type SessionContext: String
|
1197
|
+
# @param SenderId: 国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。
|
1198
|
+
# 注:月度使用量达到指定量级可申请独立 SenderId 使用,详情请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
|
1199
|
+
# @type SenderId: String
|
1200
|
+
|
1201
|
+
attr_accessor :PhoneNumberSet, :SmsSdkAppId, :TemplateId, :SignName, :TemplateParamSet, :ExtendCode, :SessionContext, :SenderId
|
1202
|
+
|
1203
|
+
def initialize(phonenumberset=nil, smssdkappid=nil, templateid=nil, signname=nil, templateparamset=nil, extendcode=nil, sessioncontext=nil, senderid=nil)
|
1204
|
+
@PhoneNumberSet = phonenumberset
|
1205
|
+
@SmsSdkAppId = smssdkappid
|
1206
|
+
@TemplateId = templateid
|
1207
|
+
@SignName = signname
|
1208
|
+
@TemplateParamSet = templateparamset
|
1209
|
+
@ExtendCode = extendcode
|
1210
|
+
@SessionContext = sessioncontext
|
1211
|
+
@SenderId = senderid
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
def deserialize(params)
|
1215
|
+
@PhoneNumberSet = params['PhoneNumberSet']
|
1216
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
1217
|
+
@TemplateId = params['TemplateId']
|
1218
|
+
@SignName = params['SignName']
|
1219
|
+
@TemplateParamSet = params['TemplateParamSet']
|
1220
|
+
@ExtendCode = params['ExtendCode']
|
1221
|
+
@SessionContext = params['SessionContext']
|
1222
|
+
@SenderId = params['SenderId']
|
1223
|
+
end
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# SendSms返回参数结构体
|
1227
|
+
class SendSmsResponse < TencentCloud::Common::AbstractModel
|
1228
|
+
# @param SendStatusSet: 短信发送状态。
|
1229
|
+
# @type SendStatusSet: Array
|
1230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1231
|
+
# @type RequestId: String
|
1232
|
+
|
1233
|
+
attr_accessor :SendStatusSet, :RequestId
|
1234
|
+
|
1235
|
+
def initialize(sendstatusset=nil, requestid=nil)
|
1236
|
+
@SendStatusSet = sendstatusset
|
1237
|
+
@RequestId = requestid
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
def deserialize(params)
|
1241
|
+
unless params['SendStatusSet'].nil?
|
1242
|
+
@SendStatusSet = []
|
1243
|
+
params['SendStatusSet'].each do |i|
|
1244
|
+
sendstatus_tmp = SendStatus.new
|
1245
|
+
sendstatus_tmp.deserialize(i)
|
1246
|
+
@SendStatusSet << sendstatus_tmp
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
@RequestId = params['RequestId']
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
# 发送短信状态
|
1254
|
+
class SendStatus < TencentCloud::Common::AbstractModel
|
1255
|
+
# @param SerialNo: 发送流水号。
|
1256
|
+
# @type SerialNo: String
|
1257
|
+
# @param PhoneNumber: 手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。
|
1258
|
+
# @type PhoneNumber: String
|
1259
|
+
# @param Fee: 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
|
1260
|
+
# @type Fee: Integer
|
1261
|
+
# @param SessionContext: 用户 session 内容。
|
1262
|
+
# @type SessionContext: String
|
1263
|
+
# @param Code: 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/api/382/55981#6.-.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
|
1264
|
+
# @type Code: String
|
1265
|
+
# @param Message: 短信请求错误码描述。
|
1266
|
+
# @type Message: String
|
1267
|
+
# @param IsoCode: 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)。
|
1268
|
+
# @type IsoCode: String
|
1269
|
+
|
1270
|
+
attr_accessor :SerialNo, :PhoneNumber, :Fee, :SessionContext, :Code, :Message, :IsoCode
|
1271
|
+
|
1272
|
+
def initialize(serialno=nil, phonenumber=nil, fee=nil, sessioncontext=nil, code=nil, message=nil, isocode=nil)
|
1273
|
+
@SerialNo = serialno
|
1274
|
+
@PhoneNumber = phonenumber
|
1275
|
+
@Fee = fee
|
1276
|
+
@SessionContext = sessioncontext
|
1277
|
+
@Code = code
|
1278
|
+
@Message = message
|
1279
|
+
@IsoCode = isocode
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
def deserialize(params)
|
1283
|
+
@SerialNo = params['SerialNo']
|
1284
|
+
@PhoneNumber = params['PhoneNumber']
|
1285
|
+
@Fee = params['Fee']
|
1286
|
+
@SessionContext = params['SessionContext']
|
1287
|
+
@Code = params['Code']
|
1288
|
+
@Message = params['Message']
|
1289
|
+
@IsoCode = params['IsoCode']
|
1290
|
+
end
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
# 发送数据统计响应包体
|
1294
|
+
class SendStatusStatistics < TencentCloud::Common::AbstractModel
|
1295
|
+
# @param FeeCount: 短信计费条数统计,例如提交成功量为100条,其中有20条是长短信(长度为80字)被拆分成2条,则计费条数为: ```80 * 1 + 20 * 2 = 120``` 条。
|
1296
|
+
# @type FeeCount: Integer
|
1297
|
+
# @param RequestCount: 短信提交量统计。
|
1298
|
+
# @type RequestCount: Integer
|
1299
|
+
# @param RequestSuccessCount: 短信提交成功量统计。
|
1300
|
+
# @type RequestSuccessCount: Integer
|
1301
|
+
|
1302
|
+
attr_accessor :FeeCount, :RequestCount, :RequestSuccessCount
|
1303
|
+
|
1304
|
+
def initialize(feecount=nil, requestcount=nil, requestsuccesscount=nil)
|
1305
|
+
@FeeCount = feecount
|
1306
|
+
@RequestCount = requestcount
|
1307
|
+
@RequestSuccessCount = requestsuccesscount
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
def deserialize(params)
|
1311
|
+
@FeeCount = params['FeeCount']
|
1312
|
+
@RequestCount = params['RequestCount']
|
1313
|
+
@RequestSuccessCount = params['RequestSuccessCount']
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
# SendStatusStatistics请求参数结构体
|
1318
|
+
class SendStatusStatisticsRequest < TencentCloud::Common::AbstractModel
|
1319
|
+
# @param BeginTime: 起始时间,格式为yyyymmddhh,精确到小时,例如2021050113,表示2021年5月1号13时。
|
1320
|
+
# @type BeginTime: String
|
1321
|
+
# @param EndTime: 结束时间,格式为yyyymmddhh,精确到小时,例如2021050118,表示2021年5月1号18时。
|
1322
|
+
# 注:EndTime 必须大于 BeginTime。
|
1323
|
+
# @type EndTime: String
|
1324
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
1325
|
+
# @type SmsSdkAppId: String
|
1326
|
+
# @param Limit: 最大上限。
|
1327
|
+
# 注:目前固定设置为0。
|
1328
|
+
# @type Limit: Integer
|
1329
|
+
# @param Offset: 偏移量。
|
1330
|
+
# 注:目前固定设置为0。
|
1331
|
+
# @type Offset: Integer
|
1332
|
+
|
1333
|
+
attr_accessor :BeginTime, :EndTime, :SmsSdkAppId, :Limit, :Offset
|
1334
|
+
|
1335
|
+
def initialize(begintime=nil, endtime=nil, smssdkappid=nil, limit=nil, offset=nil)
|
1336
|
+
@BeginTime = begintime
|
1337
|
+
@EndTime = endtime
|
1338
|
+
@SmsSdkAppId = smssdkappid
|
1339
|
+
@Limit = limit
|
1340
|
+
@Offset = offset
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
def deserialize(params)
|
1344
|
+
@BeginTime = params['BeginTime']
|
1345
|
+
@EndTime = params['EndTime']
|
1346
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
1347
|
+
@Limit = params['Limit']
|
1348
|
+
@Offset = params['Offset']
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# SendStatusStatistics返回参数结构体
|
1353
|
+
class SendStatusStatisticsResponse < TencentCloud::Common::AbstractModel
|
1354
|
+
# @param SendStatusStatistics: 发送数据统计响应包体。
|
1355
|
+
# @type SendStatusStatistics: :class:`Tencentcloud::Sms.v20210111.models.SendStatusStatistics`
|
1356
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1357
|
+
# @type RequestId: String
|
1358
|
+
|
1359
|
+
attr_accessor :SendStatusStatistics, :RequestId
|
1360
|
+
|
1361
|
+
def initialize(sendstatusstatistics=nil, requestid=nil)
|
1362
|
+
@SendStatusStatistics = sendstatusstatistics
|
1363
|
+
@RequestId = requestid
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
def deserialize(params)
|
1367
|
+
unless params['SendStatusStatistics'].nil?
|
1368
|
+
@SendStatusStatistics = SendStatusStatistics.new
|
1369
|
+
@SendStatusStatistics.deserialize(params['SendStatusStatistics'])
|
1370
|
+
end
|
1371
|
+
@RequestId = params['RequestId']
|
1372
|
+
end
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
# 套餐包信息统计响应包体
|
1376
|
+
class SmsPackagesStatistics < TencentCloud::Common::AbstractModel
|
1377
|
+
# @param PackageCreateTime: 套餐包创建时间,UNIX 时间戳(单位:秒)。
|
1378
|
+
# @type PackageCreateTime: Integer
|
1379
|
+
# @param PackageEffectiveTime: 套餐包生效时间,UNIX 时间戳(单位:秒)。
|
1380
|
+
# @type PackageEffectiveTime: Integer
|
1381
|
+
# @param PackageExpiredTime: 套餐包过期时间,UNIX 时间戳(单位:秒)。
|
1382
|
+
# @type PackageExpiredTime: Integer
|
1383
|
+
# @param PackageAmount: 套餐包条数。
|
1384
|
+
# @type PackageAmount: Integer
|
1385
|
+
# @param PackageType: 套餐包类别,0表示赠送套餐包,1表示购买套餐包。
|
1386
|
+
# @type PackageType: Integer
|
1387
|
+
# @param PackageId: 套餐包 ID。
|
1388
|
+
# @type PackageId: Integer
|
1389
|
+
# @param CurrentUsage: 当前使用套餐包条数。
|
1390
|
+
# @type CurrentUsage: Integer
|
1391
|
+
|
1392
|
+
attr_accessor :PackageCreateTime, :PackageEffectiveTime, :PackageExpiredTime, :PackageAmount, :PackageType, :PackageId, :CurrentUsage
|
1393
|
+
|
1394
|
+
def initialize(packagecreatetime=nil, packageeffectivetime=nil, packageexpiredtime=nil, packageamount=nil, packagetype=nil, packageid=nil, currentusage=nil)
|
1395
|
+
@PackageCreateTime = packagecreatetime
|
1396
|
+
@PackageEffectiveTime = packageeffectivetime
|
1397
|
+
@PackageExpiredTime = packageexpiredtime
|
1398
|
+
@PackageAmount = packageamount
|
1399
|
+
@PackageType = packagetype
|
1400
|
+
@PackageId = packageid
|
1401
|
+
@CurrentUsage = currentusage
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
def deserialize(params)
|
1405
|
+
@PackageCreateTime = params['PackageCreateTime']
|
1406
|
+
@PackageEffectiveTime = params['PackageEffectiveTime']
|
1407
|
+
@PackageExpiredTime = params['PackageExpiredTime']
|
1408
|
+
@PackageAmount = params['PackageAmount']
|
1409
|
+
@PackageType = params['PackageType']
|
1410
|
+
@PackageId = params['PackageId']
|
1411
|
+
@CurrentUsage = params['CurrentUsage']
|
1412
|
+
end
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# SmsPackagesStatistics请求参数结构体
|
1416
|
+
class SmsPackagesStatisticsRequest < TencentCloud::Common::AbstractModel
|
1417
|
+
# @param SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
|
1418
|
+
# @type SmsSdkAppId: String
|
1419
|
+
# @param Limit: 最大上限(需要拉取的套餐包个数)。
|
1420
|
+
# @type Limit: Integer
|
1421
|
+
# @param Offset: 偏移量。
|
1422
|
+
# @type Offset: Integer
|
1423
|
+
# @param BeginTime: 起始时间,格式为yyyymmddhh,精确到小时,例如2021050113,表示2021年5月1号13时。
|
1424
|
+
# 注:拉取套餐包的创建时间不小于起始时间。
|
1425
|
+
# @type BeginTime: String
|
1426
|
+
# @param EndTime: 结束时间,格式为yyyymmddhh,精确到小时,例如2021050118,表示2021年5月1号18时。
|
1427
|
+
# 注:EndTime 必须大于 BeginTime,拉取套餐包的创建时间不大于结束时间。
|
1428
|
+
# @type EndTime: String
|
1429
|
+
|
1430
|
+
attr_accessor :SmsSdkAppId, :Limit, :Offset, :BeginTime, :EndTime
|
1431
|
+
|
1432
|
+
def initialize(smssdkappid=nil, limit=nil, offset=nil, begintime=nil, endtime=nil)
|
1433
|
+
@SmsSdkAppId = smssdkappid
|
1434
|
+
@Limit = limit
|
1435
|
+
@Offset = offset
|
1436
|
+
@BeginTime = begintime
|
1437
|
+
@EndTime = endtime
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
def deserialize(params)
|
1441
|
+
@SmsSdkAppId = params['SmsSdkAppId']
|
1442
|
+
@Limit = params['Limit']
|
1443
|
+
@Offset = params['Offset']
|
1444
|
+
@BeginTime = params['BeginTime']
|
1445
|
+
@EndTime = params['EndTime']
|
1446
|
+
end
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# SmsPackagesStatistics返回参数结构体
|
1450
|
+
class SmsPackagesStatisticsResponse < TencentCloud::Common::AbstractModel
|
1451
|
+
# @param SmsPackagesStatisticsSet: 发送数据统计响应包体。
|
1452
|
+
# @type SmsPackagesStatisticsSet: Array
|
1453
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1454
|
+
# @type RequestId: String
|
1455
|
+
|
1456
|
+
attr_accessor :SmsPackagesStatisticsSet, :RequestId
|
1457
|
+
|
1458
|
+
def initialize(smspackagesstatisticsset=nil, requestid=nil)
|
1459
|
+
@SmsPackagesStatisticsSet = smspackagesstatisticsset
|
1460
|
+
@RequestId = requestid
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
def deserialize(params)
|
1464
|
+
unless params['SmsPackagesStatisticsSet'].nil?
|
1465
|
+
@SmsPackagesStatisticsSet = []
|
1466
|
+
params['SmsPackagesStatisticsSet'].each do |i|
|
1467
|
+
smspackagesstatistics_tmp = SmsPackagesStatistics.new
|
1468
|
+
smspackagesstatistics_tmp.deserialize(i)
|
1469
|
+
@SmsPackagesStatisticsSet << smspackagesstatistics_tmp
|
1470
|
+
end
|
1471
|
+
end
|
1472
|
+
@RequestId = params['RequestId']
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|