tencentcloud-sdk-yinsuda 3.0.530 → 3.0.531

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2facfffe7727696f62f25626a4f50640534bf36f
4
- data.tar.gz: 6e65eb35cf3cd398a6f322e3ee3e83bd029d49ad
3
+ metadata.gz: c288e962a6e9a2890b6cc5b704a8d0c25a3737c4
4
+ data.tar.gz: 730c9847ce7a6d90ba4fd9af7aa201d54d02af0d
5
5
  SHA512:
6
- metadata.gz: 723a08dd03b8f4252284f6624f35065b01c6b9c6e83330c3129f6253bf8bbf75272ddad9b91e76b44d9fde19b97282b8e8fd52e5fd185613264d2c8e6d68c082
7
- data.tar.gz: 8faeeff92df3095bc2320c16545d7fa284bc0076507a9b8eb16c6966701d67a4e7a5d583851f5e2e8da00b9c92ea0435f6737e0e74759dae65c6165fd82f9a4e
6
+ metadata.gz: 2937fe4b7b15aba002b930df3b135ceec761f723de50304236c5870c9c4de8956c23ad16e3b06dd02998f9eada2f33af027f04aabfa63070da3593d2fa718fb8
7
+ data.tar.gz: 5f47857f6255758baf5bdbd4293b72c0fb7d822d3c86fc9c46f805ba0e69dd80c08bc5b9019e2e6e559ee8a3347c831ea49fe3c736f54617d08f7ae6b0cb2634
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.530
1
+ 3.0.531
@@ -269,6 +269,54 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 批量获取直播会员充值流水详细信息,包括:流水号,订单状态,下订单时间等
273
+
274
+ # @param request: Request instance for DescribeLiveVipTradeInfos.
275
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeLiveVipTradeInfosRequest`
276
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeLiveVipTradeInfosResponse`
277
+ def DescribeLiveVipTradeInfos(request)
278
+ body = send_request('DescribeLiveVipTradeInfos', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeLiveVipTradeInfosResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 获取用户信息,包括是否为直播会员,及直播会员信息等
297
+
298
+ # @param request: Request instance for DescribeUserInfo.
299
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeUserInfoRequest`
300
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeUserInfoResponse`
301
+ def DescribeUserInfo(request)
302
+ body = send_request('DescribeUserInfo', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DescribeUserInfoResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
272
320
  # 销毁机器人,机器人退出 RTC 房间。
273
321
 
274
322
  # @param request: Request instance for DestroyKTVRobot.
@@ -293,6 +341,30 @@ module TencentCloud
293
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
342
  end
295
343
 
344
+ # 充值直播会员,使该用户可以在直播场景使用
345
+
346
+ # @param request: Request instance for RechargeLiveVip.
347
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::RechargeLiveVipRequest`
348
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::RechargeLiveVipResponse`
349
+ def RechargeLiveVip(request)
350
+ body = send_request('RechargeLiveVip', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = RechargeLiveVipResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
296
368
  # 根据关键词搜索歌曲,返回相关歌曲列表。
297
369
 
298
370
  # @param request: Request instance for SearchKTVMusics.
@@ -689,6 +689,122 @@ module TencentCloud
689
689
  end
690
690
  end
691
691
 
692
+ # DescribeLiveVipTradeInfos请求参数结构体
693
+ class DescribeLiveVipTradeInfosRequest < TencentCloud::Common::AbstractModel
694
+ # @param AppName: 应用名称。
695
+ # @type AppName: String
696
+ # @param StartTime: 直播会员充值下单起始时间,格式为 ISO。默认为当前时间前一天。
697
+ # @type StartTime: String
698
+ # @param EndTime: 直播会员充值下单截止时间,格式为 ISO。默认为当前时间。 EndTime不能小于StartTime
699
+ # @type EndTime: String
700
+ # @param TradeSerialNos: 交易流水号集合,匹配集合指定所有流水号 。
701
+ # <li>数组长度限制:10。</li>
702
+ # @type TradeSerialNos: Array
703
+ # @param UserIds: 用户标识集合,匹配集合指定所有用户标识 。
704
+ # <li>数组长度限制:10。</li>
705
+ # @type UserIds: Array
706
+ # @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
707
+ # @type Offset: Integer
708
+ # @param Limit: 分页返回的记录条数,默认值:20,最大值:50。
709
+ # @type Limit: Integer
710
+
711
+ attr_accessor :AppName, :StartTime, :EndTime, :TradeSerialNos, :UserIds, :Offset, :Limit
712
+
713
+ def initialize(appname=nil, starttime=nil, endtime=nil, tradeserialnos=nil, userids=nil, offset=nil, limit=nil)
714
+ @AppName = appname
715
+ @StartTime = starttime
716
+ @EndTime = endtime
717
+ @TradeSerialNos = tradeserialnos
718
+ @UserIds = userids
719
+ @Offset = offset
720
+ @Limit = limit
721
+ end
722
+
723
+ def deserialize(params)
724
+ @AppName = params['AppName']
725
+ @StartTime = params['StartTime']
726
+ @EndTime = params['EndTime']
727
+ @TradeSerialNos = params['TradeSerialNos']
728
+ @UserIds = params['UserIds']
729
+ @Offset = params['Offset']
730
+ @Limit = params['Limit']
731
+ end
732
+ end
733
+
734
+ # DescribeLiveVipTradeInfos返回参数结构体
735
+ class DescribeLiveVipTradeInfosResponse < TencentCloud::Common::AbstractModel
736
+ # @param LiveVipTradeInfoSet: 直播会员充值流水信息列表
737
+ # @type LiveVipTradeInfoSet: Array
738
+ # @param TotalCount: 直播会员充值流水总数。
739
+ # @type TotalCount: Integer
740
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
741
+ # @type RequestId: String
742
+
743
+ attr_accessor :LiveVipTradeInfoSet, :TotalCount, :RequestId
744
+
745
+ def initialize(liveviptradeinfoset=nil, totalcount=nil, requestid=nil)
746
+ @LiveVipTradeInfoSet = liveviptradeinfoset
747
+ @TotalCount = totalcount
748
+ @RequestId = requestid
749
+ end
750
+
751
+ def deserialize(params)
752
+ unless params['LiveVipTradeInfoSet'].nil?
753
+ @LiveVipTradeInfoSet = []
754
+ params['LiveVipTradeInfoSet'].each do |i|
755
+ liveviptradeinfo_tmp = LiveVipTradeInfo.new
756
+ liveviptradeinfo_tmp.deserialize(i)
757
+ @LiveVipTradeInfoSet << liveviptradeinfo_tmp
758
+ end
759
+ end
760
+ @TotalCount = params['TotalCount']
761
+ @RequestId = params['RequestId']
762
+ end
763
+ end
764
+
765
+ # DescribeUserInfo请求参数结构体
766
+ class DescribeUserInfoRequest < TencentCloud::Common::AbstractModel
767
+ # @param AppName: 应用名称。
768
+ # @type AppName: String
769
+ # @param UserId: 用户标识。
770
+ # @type UserId: String
771
+
772
+ attr_accessor :AppName, :UserId
773
+
774
+ def initialize(appname=nil, userid=nil)
775
+ @AppName = appname
776
+ @UserId = userid
777
+ end
778
+
779
+ def deserialize(params)
780
+ @AppName = params['AppName']
781
+ @UserId = params['UserId']
782
+ end
783
+ end
784
+
785
+ # DescribeUserInfo返回参数结构体
786
+ class DescribeUserInfoResponse < TencentCloud::Common::AbstractModel
787
+ # @param UserInfo: 用户信息。
788
+ # @type UserInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.UserInfo`
789
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
790
+ # @type RequestId: String
791
+
792
+ attr_accessor :UserInfo, :RequestId
793
+
794
+ def initialize(userinfo=nil, requestid=nil)
795
+ @UserInfo = userinfo
796
+ @RequestId = requestid
797
+ end
798
+
799
+ def deserialize(params)
800
+ unless params['UserInfo'].nil?
801
+ @UserInfo = UserInfo.new
802
+ @UserInfo.deserialize(params['UserInfo'])
803
+ end
804
+ @RequestId = params['RequestId']
805
+ end
806
+ end
807
+
692
808
  # DestroyKTVRobot请求参数结构体
693
809
  class DestroyKTVRobotRequest < TencentCloud::Common::AbstractModel
694
810
  # @param AppName: 应用名称。
@@ -1116,6 +1232,75 @@ module TencentCloud
1116
1232
  end
1117
1233
  end
1118
1234
 
1235
+ # 充值直播会员流水信息
1236
+ class LiveVipTradeInfo < TencentCloud::Common::AbstractModel
1237
+ # @param TradeSerialNo: 交易流水号。
1238
+ # @type TradeSerialNo: String
1239
+ # @param AppName: 应用名称。
1240
+ # @type AppName: String
1241
+ # @param UserId: 用户标识。
1242
+ # @type UserId: String
1243
+ # @param RoomId: 房间标识。
1244
+ # @type RoomId: String
1245
+ # @param VipDays: 充值会员天数。
1246
+ # 取值有:
1247
+ # <li>31</li> <li>93</li><li>186</li> <li>372</li>
1248
+ # @type VipDays: Integer
1249
+ # @param Status: 订单状态。
1250
+ # 取值有:
1251
+ # <li>Success:成功</li><li>Fail:失败</li><li>Processing:订单处理中</li>
1252
+ # @type Status: String
1253
+ # @param CreateTime: 创建时间。
1254
+ # @type CreateTime: String
1255
+
1256
+ attr_accessor :TradeSerialNo, :AppName, :UserId, :RoomId, :VipDays, :Status, :CreateTime
1257
+
1258
+ def initialize(tradeserialno=nil, appname=nil, userid=nil, roomid=nil, vipdays=nil, status=nil, createtime=nil)
1259
+ @TradeSerialNo = tradeserialno
1260
+ @AppName = appname
1261
+ @UserId = userid
1262
+ @RoomId = roomid
1263
+ @VipDays = vipdays
1264
+ @Status = status
1265
+ @CreateTime = createtime
1266
+ end
1267
+
1268
+ def deserialize(params)
1269
+ @TradeSerialNo = params['TradeSerialNo']
1270
+ @AppName = params['AppName']
1271
+ @UserId = params['UserId']
1272
+ @RoomId = params['RoomId']
1273
+ @VipDays = params['VipDays']
1274
+ @Status = params['Status']
1275
+ @CreateTime = params['CreateTime']
1276
+ end
1277
+ end
1278
+
1279
+ # 直播会员用户信息
1280
+ class LiveVipUserInfo < TencentCloud::Common::AbstractModel
1281
+ # @param RoomId: 房间标识。
1282
+ # @type RoomId: String
1283
+ # @param LiveVipEndTime: 直播会员结束时间。
1284
+ # @type LiveVipEndTime: String
1285
+ # @param LiveVipStatus: 会员生效状态
1286
+ # <li>Valid:生效</li><li>Invalid:无效</li>
1287
+ # @type LiveVipStatus: String
1288
+
1289
+ attr_accessor :RoomId, :LiveVipEndTime, :LiveVipStatus
1290
+
1291
+ def initialize(roomid=nil, livevipendtime=nil, livevipstatus=nil)
1292
+ @RoomId = roomid
1293
+ @LiveVipEndTime = livevipendtime
1294
+ @LiveVipStatus = livevipstatus
1295
+ end
1296
+
1297
+ def deserialize(params)
1298
+ @RoomId = params['RoomId']
1299
+ @LiveVipEndTime = params['LiveVipEndTime']
1300
+ @LiveVipStatus = params['LiveVipStatus']
1301
+ end
1302
+ end
1303
+
1119
1304
  # 歌曲专辑封面信息。
1120
1305
  class MusicAlbumCoverInfo < TencentCloud::Common::AbstractModel
1121
1306
  # @param Dimension: 尺寸规格,取值有:
@@ -1182,6 +1367,66 @@ module TencentCloud
1182
1367
  end
1183
1368
  end
1184
1369
 
1370
+ # RechargeLiveVip请求参数结构体
1371
+ class RechargeLiveVipRequest < TencentCloud::Common::AbstractModel
1372
+ # @param AppName: 应用名称。
1373
+ # @type AppName: String
1374
+ # @param UserId: 用户标识。
1375
+ # @type UserId: String
1376
+ # @param TradeSerialNo: 交易流水号,用于标记此次充值记录,多次充值记录传入相同的 TradeSerialNo 会判断为失败,可用于防止重提提交造成重复计费。
1377
+ # @type TradeSerialNo: String
1378
+ # @param RoomId: 房间标识。
1379
+ # @type RoomId: String
1380
+ # @param VipDays: 充值会员天数。
1381
+ # 取值有:
1382
+ # <li>31</li>
1383
+ # <li>93</li>
1384
+ # <li>186</li>
1385
+ # <li>372</li>
1386
+ # @type VipDays: Integer
1387
+
1388
+ attr_accessor :AppName, :UserId, :TradeSerialNo, :RoomId, :VipDays
1389
+
1390
+ def initialize(appname=nil, userid=nil, tradeserialno=nil, roomid=nil, vipdays=nil)
1391
+ @AppName = appname
1392
+ @UserId = userid
1393
+ @TradeSerialNo = tradeserialno
1394
+ @RoomId = roomid
1395
+ @VipDays = vipdays
1396
+ end
1397
+
1398
+ def deserialize(params)
1399
+ @AppName = params['AppName']
1400
+ @UserId = params['UserId']
1401
+ @TradeSerialNo = params['TradeSerialNo']
1402
+ @RoomId = params['RoomId']
1403
+ @VipDays = params['VipDays']
1404
+ end
1405
+ end
1406
+
1407
+ # RechargeLiveVip返回参数结构体
1408
+ class RechargeLiveVipResponse < TencentCloud::Common::AbstractModel
1409
+ # @param LiveVipUserInfo: 直播会员信息。
1410
+ # @type LiveVipUserInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.LiveVipUserInfo`
1411
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1412
+ # @type RequestId: String
1413
+
1414
+ attr_accessor :LiveVipUserInfo, :RequestId
1415
+
1416
+ def initialize(livevipuserinfo=nil, requestid=nil)
1417
+ @LiveVipUserInfo = livevipuserinfo
1418
+ @RequestId = requestid
1419
+ end
1420
+
1421
+ def deserialize(params)
1422
+ unless params['LiveVipUserInfo'].nil?
1423
+ @LiveVipUserInfo = LiveVipUserInfo.new
1424
+ @LiveVipUserInfo.deserialize(params['LiveVipUserInfo'])
1425
+ end
1426
+ @RequestId = params['RequestId']
1427
+ end
1428
+ end
1429
+
1185
1430
  # SearchKTVMusics请求参数结构体
1186
1431
  class SearchKTVMusicsRequest < TencentCloud::Common::AbstractModel
1187
1432
  # @param AppName: 应用名称。
@@ -1559,6 +1804,40 @@ module TencentCloud
1559
1804
  end
1560
1805
  end
1561
1806
 
1807
+ # 用户信息
1808
+ class UserInfo < TencentCloud::Common::AbstractModel
1809
+ # @param AppName: 应用名称。
1810
+ # @type AppName: String
1811
+ # @param UserId: 用户标识。
1812
+ # @type UserId: String
1813
+ # @param LiveVipUserInfo: 直播会员详细信息。
1814
+ # 注意:此字段可能返回 null,表示取不到有效值。
1815
+ # @type LiveVipUserInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.LiveVipUserInfo`
1816
+ # @param UserType: 用户类型
1817
+ # <li>Normal:普通用户</li>
1818
+ # <li>LiveVip:直播会员用户</li>
1819
+ # @type UserType: String
1820
+
1821
+ attr_accessor :AppName, :UserId, :LiveVipUserInfo, :UserType
1822
+
1823
+ def initialize(appname=nil, userid=nil, livevipuserinfo=nil, usertype=nil)
1824
+ @AppName = appname
1825
+ @UserId = userid
1826
+ @LiveVipUserInfo = livevipuserinfo
1827
+ @UserType = usertype
1828
+ end
1829
+
1830
+ def deserialize(params)
1831
+ @AppName = params['AppName']
1832
+ @UserId = params['UserId']
1833
+ unless params['LiveVipUserInfo'].nil?
1834
+ @LiveVipUserInfo = LiveVipUserInfo.new
1835
+ @LiveVipUserInfo.deserialize(params['LiveVipUserInfo'])
1836
+ end
1837
+ @UserType = params['UserType']
1838
+ end
1839
+ end
1840
+
1562
1841
  end
1563
1842
  end
1564
1843
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-yinsuda
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.530
4
+ version: 3.0.531
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common