tencentcloud-sdk-cpdp 1.0.216 → 1.0.220

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 497998f2c4659d976d1692c73e7b7310e1dd80ac
4
- data.tar.gz: ace4793d5d966bdebd45fb3ba093225c6601917d
3
+ metadata.gz: b18ce914f5859eee782bf52cf283370ebd0cabab
4
+ data.tar.gz: 74979b82d89e291599bfd644bf059b3491a4b782
5
5
  SHA512:
6
- metadata.gz: e8c11ac988014bd349ff4789f64ed971e3b77a9d5e1ba1f1d8d612658ec328dbbf7084a2a47b278eed7e3343d643b0447b81567232d1456193694b5fd9d57d80
7
- data.tar.gz: c71235c94da18b9d65cc8fa905470bc9d848c34609d781b25f9c8d67eeca49a615855dfb5ec0177efe1730ca80fa3bd5428ec92bab12f7925585cc7eb9011148
6
+ metadata.gz: e41860cd5136da1c82f1ff74fd26d3f264faa5ffda49a05de142a6dbe71676fb20627b89490e07df0435f2275d269cd97042b2fd0c18f665e77983cdf027a847
7
+ data.tar.gz: d45d9f0b50f8f742712988eeed12e6ef8152bba99e1ea8c759e2ea42b8b36f2944410174e537cd79c6ae963bd6e7f40701a150ef637e8a3410a8564a3eabbf73
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.216
1
+ 1.0.220
@@ -877,6 +877,30 @@ module TencentCloud
877
877
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
878
878
  end
879
879
 
880
+ # 直播平台-扣减额度
881
+
882
+ # @param request: Request instance for DeduceQuota.
883
+ # @type request: :class:`Tencentcloud::cpdp::V20190820::DeduceQuotaRequest`
884
+ # @rtype: :class:`Tencentcloud::cpdp::V20190820::DeduceQuotaResponse`
885
+ def DeduceQuota(request)
886
+ body = send_request('DeduceQuota', request.serialize)
887
+ response = JSON.parse(body)
888
+ if response['Response'].key?('Error') == false
889
+ model = DeduceQuotaResponse.new
890
+ model.deserialize(response['Response'])
891
+ model
892
+ else
893
+ code = response['Response']['Error']['Code']
894
+ message = response['Response']['Error']['Message']
895
+ reqid = response['Response']['RequestId']
896
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
897
+ end
898
+ rescue TencentCloud::Common::TencentCloudSDKException => e
899
+ raise e
900
+ rescue StandardError => e
901
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
902
+ end
903
+
880
904
  # 直播平台-删除代理商完税信息
881
905
 
882
906
  # @param request: Request instance for DeleteAgentTaxPaymentInfo.
@@ -1573,6 +1597,30 @@ module TencentCloud
1573
1597
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1574
1598
  end
1575
1599
 
1600
+ # 直播平台-查询分配关系
1601
+
1602
+ # @param request: Request instance for QueryAssignment.
1603
+ # @type request: :class:`Tencentcloud::cpdp::V20190820::QueryAssignmentRequest`
1604
+ # @rtype: :class:`Tencentcloud::cpdp::V20190820::QueryAssignmentResponse`
1605
+ def QueryAssignment(request)
1606
+ body = send_request('QueryAssignment', request.serialize)
1607
+ response = JSON.parse(body)
1608
+ if response['Response'].key?('Error') == false
1609
+ model = QueryAssignmentResponse.new
1610
+ model.deserialize(response['Response'])
1611
+ model
1612
+ else
1613
+ code = response['Response']['Error']['Code']
1614
+ message = response['Response']['Error']['Message']
1615
+ reqid = response['Response']['RequestId']
1616
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1617
+ end
1618
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1619
+ raise e
1620
+ rescue StandardError => e
1621
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1622
+ end
1623
+
1576
1624
  # 子商户余额查询
1577
1625
 
1578
1626
  # @param request: Request instance for QueryBalance.
@@ -1611,6 +1611,34 @@ module TencentCloud
1611
1611
  end
1612
1612
  end
1613
1613
 
1614
+ # 分配关系
1615
+ class AssignmentData < TencentCloud::Common::AbstractModel
1616
+ # @param AnchorId: 主播ID
1617
+ # @type AnchorId: String
1618
+ # @param AnchorName: 主播名称
1619
+ # @type AnchorName: String
1620
+ # @param AgentId: 代理商ID
1621
+ # @type AgentId: String
1622
+ # @param AgentName: 代理商名称
1623
+ # @type AgentName: String
1624
+
1625
+ attr_accessor :AnchorId, :AnchorName, :AgentId, :AgentName
1626
+
1627
+ def initialize(anchorid=nil, anchorname=nil, agentid=nil, agentname=nil)
1628
+ @AnchorId = anchorid
1629
+ @AnchorName = anchorname
1630
+ @AgentId = agentid
1631
+ @AgentName = agentname
1632
+ end
1633
+
1634
+ def deserialize(params)
1635
+ @AnchorId = params['AnchorId']
1636
+ @AnchorName = params['AnchorName']
1637
+ @AgentId = params['AgentId']
1638
+ @AgentName = params['AgentName']
1639
+ end
1640
+ end
1641
+
1614
1642
  # 绑卡列表
1615
1643
  class BankCardItem < TencentCloud::Common::AbstractModel
1616
1644
  # @param EiconBankBranchId: 超级网银行号
@@ -5075,6 +5103,62 @@ module TencentCloud
5075
5103
  end
5076
5104
  end
5077
5105
 
5106
+ # DeduceQuota请求参数结构体
5107
+ class DeduceQuotaRequest < TencentCloud::Common::AbstractModel
5108
+ # @param AnchorId: 主播ID
5109
+ # @type AnchorId: String
5110
+ # @param Amount: 提现金额,单位为"分"
5111
+ # @type Amount: Integer
5112
+ # @param OrderId: 外部业务订单号
5113
+ # @type OrderId: String
5114
+
5115
+ attr_accessor :AnchorId, :Amount, :OrderId
5116
+
5117
+ def initialize(anchorid=nil, amount=nil, orderid=nil)
5118
+ @AnchorId = anchorid
5119
+ @Amount = amount
5120
+ @OrderId = orderid
5121
+ end
5122
+
5123
+ def deserialize(params)
5124
+ @AnchorId = params['AnchorId']
5125
+ @Amount = params['Amount']
5126
+ @OrderId = params['OrderId']
5127
+ end
5128
+ end
5129
+
5130
+ # DeduceQuota返回参数结构体
5131
+ class DeduceQuotaResponse < TencentCloud::Common::AbstractModel
5132
+ # @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
5133
+ # @type ErrCode: String
5134
+ # @param ErrMsg: 响应消息
5135
+ # @type ErrMsg: String
5136
+ # @param Result: 返回响应
5137
+ # 注意:此字段可能返回 null,表示取不到有效值。
5138
+ # @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AssignmentData`
5139
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5140
+ # @type RequestId: String
5141
+
5142
+ attr_accessor :ErrCode, :ErrMsg, :Result, :RequestId
5143
+
5144
+ def initialize(errcode=nil, errmsg=nil, result=nil, requestid=nil)
5145
+ @ErrCode = errcode
5146
+ @ErrMsg = errmsg
5147
+ @Result = result
5148
+ @RequestId = requestid
5149
+ end
5150
+
5151
+ def deserialize(params)
5152
+ @ErrCode = params['ErrCode']
5153
+ @ErrMsg = params['ErrMsg']
5154
+ unless params['Result'].nil?
5155
+ @Result = AssignmentData.new
5156
+ @Result.deserialize(params['Result'])
5157
+ end
5158
+ @RequestId = params['RequestId']
5159
+ end
5160
+ end
5161
+
5078
5162
  # DeleteAgentTaxPaymentInfo请求参数结构体
5079
5163
  class DeleteAgentTaxPaymentInfoRequest < TencentCloud::Common::AbstractModel
5080
5164
  # @param BatchNum: 批次号
@@ -7523,10 +7607,28 @@ module TencentCloud
7523
7607
  # @param TradeQrcode: 二维码字符串
7524
7608
  # 注意:此字段可能返回 null,表示取不到有效值。
7525
7609
  # @type TradeQrcode: String
7610
+ # @param WechatAppId: 微信返回调起小程序/原生JS支付的appid参数
7611
+ # 注意:此字段可能返回 null,表示取不到有效值。
7612
+ # @type WechatAppId: String
7613
+ # @param WechatTimeStamp: 微信返回调起小程序/原生JS支付的timeStamp参数
7614
+ # 注意:此字段可能返回 null,表示取不到有效值。
7615
+ # @type WechatTimeStamp: String
7616
+ # @param WechatNonceStr: 微信返回调起小程序/原生JS支付的nonceStr参数
7617
+ # 注意:此字段可能返回 null,表示取不到有效值。
7618
+ # @type WechatNonceStr: String
7619
+ # @param WechatSignType: 微信返回调起小程序/原生JS支付的signType参数
7620
+ # 注意:此字段可能返回 null,表示取不到有效值。
7621
+ # @type WechatSignType: String
7622
+ # @param WechatPackage: 微信返回调起小程序/原生JS支付的package参数
7623
+ # 注意:此字段可能返回 null,表示取不到有效值。
7624
+ # @type WechatPackage: String
7625
+ # @param WechatPaySign: 微信返回调起小程序/原生JS支付的paySign参数
7626
+ # 注意:此字段可能返回 null,表示取不到有效值。
7627
+ # @type WechatPaySign: String
7526
7628
 
7527
- attr_accessor :OrderNo, :DeveloperNo, :TradeDiscountAmount, :PayName, :OrderMerchantId, :TradeAccount, :TradeAmount, :CurrencySign, :TradePayTime, :ShopOrderId, :PayTag, :Status, :OrderCurrency, :TradeQrcode
7629
+ attr_accessor :OrderNo, :DeveloperNo, :TradeDiscountAmount, :PayName, :OrderMerchantId, :TradeAccount, :TradeAmount, :CurrencySign, :TradePayTime, :ShopOrderId, :PayTag, :Status, :OrderCurrency, :TradeQrcode, :WechatAppId, :WechatTimeStamp, :WechatNonceStr, :WechatSignType, :WechatPackage, :WechatPaySign
7528
7630
 
7529
- def initialize(orderno=nil, developerno=nil, tradediscountamount=nil, payname=nil, ordermerchantid=nil, tradeaccount=nil, tradeamount=nil, currencysign=nil, tradepaytime=nil, shoporderid=nil, paytag=nil, status=nil, ordercurrency=nil, tradeqrcode=nil)
7631
+ def initialize(orderno=nil, developerno=nil, tradediscountamount=nil, payname=nil, ordermerchantid=nil, tradeaccount=nil, tradeamount=nil, currencysign=nil, tradepaytime=nil, shoporderid=nil, paytag=nil, status=nil, ordercurrency=nil, tradeqrcode=nil, wechatappid=nil, wechattimestamp=nil, wechatnoncestr=nil, wechatsigntype=nil, wechatpackage=nil, wechatpaysign=nil)
7530
7632
  @OrderNo = orderno
7531
7633
  @DeveloperNo = developerno
7532
7634
  @TradeDiscountAmount = tradediscountamount
@@ -7541,6 +7643,12 @@ module TencentCloud
7541
7643
  @Status = status
7542
7644
  @OrderCurrency = ordercurrency
7543
7645
  @TradeQrcode = tradeqrcode
7646
+ @WechatAppId = wechatappid
7647
+ @WechatTimeStamp = wechattimestamp
7648
+ @WechatNonceStr = wechatnoncestr
7649
+ @WechatSignType = wechatsigntype
7650
+ @WechatPackage = wechatpackage
7651
+ @WechatPaySign = wechatpaysign
7544
7652
  end
7545
7653
 
7546
7654
  def deserialize(params)
@@ -7558,6 +7666,12 @@ module TencentCloud
7558
7666
  @Status = params['Status']
7559
7667
  @OrderCurrency = params['OrderCurrency']
7560
7668
  @TradeQrcode = params['TradeQrcode']
7669
+ @WechatAppId = params['WechatAppId']
7670
+ @WechatTimeStamp = params['WechatTimeStamp']
7671
+ @WechatNonceStr = params['WechatNonceStr']
7672
+ @WechatSignType = params['WechatSignType']
7673
+ @WechatPackage = params['WechatPackage']
7674
+ @WechatPaySign = params['WechatPaySign']
7561
7675
  end
7562
7676
  end
7563
7677
 
@@ -8075,6 +8189,54 @@ module TencentCloud
8075
8189
  end
8076
8190
  end
8077
8191
 
8192
+ # QueryAssignment请求参数结构体
8193
+ class QueryAssignmentRequest < TencentCloud::Common::AbstractModel
8194
+ # @param AnchorId: 主播ID
8195
+ # @type AnchorId: String
8196
+
8197
+ attr_accessor :AnchorId
8198
+
8199
+ def initialize(anchorid=nil)
8200
+ @AnchorId = anchorid
8201
+ end
8202
+
8203
+ def deserialize(params)
8204
+ @AnchorId = params['AnchorId']
8205
+ end
8206
+ end
8207
+
8208
+ # QueryAssignment返回参数结构体
8209
+ class QueryAssignmentResponse < TencentCloud::Common::AbstractModel
8210
+ # @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
8211
+ # @type ErrCode: String
8212
+ # @param ErrMsg: 响应消息
8213
+ # @type ErrMsg: String
8214
+ # @param Result: 返回响应
8215
+ # 注意:此字段可能返回 null,表示取不到有效值。
8216
+ # @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AssignmentData`
8217
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8218
+ # @type RequestId: String
8219
+
8220
+ attr_accessor :ErrCode, :ErrMsg, :Result, :RequestId
8221
+
8222
+ def initialize(errcode=nil, errmsg=nil, result=nil, requestid=nil)
8223
+ @ErrCode = errcode
8224
+ @ErrMsg = errmsg
8225
+ @Result = result
8226
+ @RequestId = requestid
8227
+ end
8228
+
8229
+ def deserialize(params)
8230
+ @ErrCode = params['ErrCode']
8231
+ @ErrMsg = params['ErrMsg']
8232
+ unless params['Result'].nil?
8233
+ @Result = AssignmentData.new
8234
+ @Result.deserialize(params['Result'])
8235
+ end
8236
+ @RequestId = params['RequestId']
8237
+ end
8238
+ end
8239
+
8078
8240
  # QueryBalance请求参数结构体
8079
8241
  class QueryBalanceRequest < TencentCloud::Common::AbstractModel
8080
8242
  # @param MidasAppId: 聚鑫分配的支付主MidasAppId
@@ -15298,10 +15460,18 @@ module TencentCloud
15298
15460
  # @type PayName: String
15299
15461
  # @param Royalty: 0-不分账,1-需分账。为1时标记为待分账订单,待分账订单不会进行清算。不传默认为不分账。
15300
15462
  # @type Royalty: String
15463
+ # @param Jsapi: 小程序支付参数:填默认值 1
15464
+ # @type Jsapi: String
15465
+ # @param SubAppId: 小程序支付参数:
15466
+ # 当前调起支付的小程序APPID
15467
+ # @type SubAppId: String
15468
+ # @param SubOpenId: 小程序支付参数:
15469
+ # 用户在子商户appid下的唯一标识。
15470
+ # @type SubOpenId: String
15301
15471
 
15302
- attr_accessor :DeveloperNo, :OpenId, :NotifyUrl, :OpenKey, :PayTag, :TradeAmount, :Remark, :Tag, :IgnoreAmount, :AuthCode, :OriginalAmount, :OrderName, :JumpUrl, :Profile, :TradeResult, :TradeAccount, :TradeNo, :DiscountAmount, :PayName, :Royalty
15472
+ attr_accessor :DeveloperNo, :OpenId, :NotifyUrl, :OpenKey, :PayTag, :TradeAmount, :Remark, :Tag, :IgnoreAmount, :AuthCode, :OriginalAmount, :OrderName, :JumpUrl, :Profile, :TradeResult, :TradeAccount, :TradeNo, :DiscountAmount, :PayName, :Royalty, :Jsapi, :SubAppId, :SubOpenId
15303
15473
 
15304
- def initialize(developerno=nil, openid=nil, notifyurl=nil, openkey=nil, paytag=nil, tradeamount=nil, remark=nil, tag=nil, ignoreamount=nil, authcode=nil, originalamount=nil, ordername=nil, jumpurl=nil, profile=nil, traderesult=nil, tradeaccount=nil, tradeno=nil, discountamount=nil, payname=nil, royalty=nil)
15474
+ def initialize(developerno=nil, openid=nil, notifyurl=nil, openkey=nil, paytag=nil, tradeamount=nil, remark=nil, tag=nil, ignoreamount=nil, authcode=nil, originalamount=nil, ordername=nil, jumpurl=nil, profile=nil, traderesult=nil, tradeaccount=nil, tradeno=nil, discountamount=nil, payname=nil, royalty=nil, jsapi=nil, subappid=nil, subopenid=nil)
15305
15475
  @DeveloperNo = developerno
15306
15476
  @OpenId = openid
15307
15477
  @NotifyUrl = notifyurl
@@ -15322,6 +15492,9 @@ module TencentCloud
15322
15492
  @DiscountAmount = discountamount
15323
15493
  @PayName = payname
15324
15494
  @Royalty = royalty
15495
+ @Jsapi = jsapi
15496
+ @SubAppId = subappid
15497
+ @SubOpenId = subopenid
15325
15498
  end
15326
15499
 
15327
15500
  def deserialize(params)
@@ -15345,6 +15518,9 @@ module TencentCloud
15345
15518
  @DiscountAmount = params['DiscountAmount']
15346
15519
  @PayName = params['PayName']
15347
15520
  @Royalty = params['Royalty']
15521
+ @Jsapi = params['Jsapi']
15522
+ @SubAppId = params['SubAppId']
15523
+ @SubOpenId = params['SubOpenId']
15348
15524
  end
15349
15525
  end
15350
15526
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cpdp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.216
4
+ version: 1.0.220
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common