tencentcloud-sdk-cpdp 1.0.296 → 1.0.297
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190820/client.rb +168 -0
- data/lib/v20190820/models.rb +1501 -36
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a45a6e40509a9c81beab82628b208d5a171ee54
|
4
|
+
data.tar.gz: b305114ece1be547e311b430bd2116427412397a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee57ddb6438b940b8c998714715a8b8ada84a10078335764e3db18b2fb2b251bda84ceab208ee8e25a4d1c358d8f8e29a6e46eb733bab3bdfdd76f8a76cc93d1
|
7
|
+
data.tar.gz: b2d161a6128af180717393dfc01a703fa3053435bfbad2513e54dee494f948a143cfb418acdb9be1c30fe4af8f352f9f2b3b63a2c5f0ec73cc9aac1044fc8f0f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.297
|
data/lib/v20190820/client.rb
CHANGED
@@ -468,6 +468,30 @@ module TencentCloud
|
|
468
468
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
469
469
|
end
|
470
470
|
|
471
|
+
# 通过此接口关闭此前已创建的订单。关闭后,用户将无法继续付款,仅能关闭创建后未支付的订单。
|
472
|
+
|
473
|
+
# @param request: Request instance for CloseCloudOrder.
|
474
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::CloseCloudOrderRequest`
|
475
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::CloseCloudOrderResponse`
|
476
|
+
def CloseCloudOrder(request)
|
477
|
+
body = send_request('CloseCloudOrder', request.serialize)
|
478
|
+
response = JSON.parse(body)
|
479
|
+
if response['Response'].key?('Error') == false
|
480
|
+
model = CloseCloudOrderResponse.new
|
481
|
+
model.deserialize(response['Response'])
|
482
|
+
model
|
483
|
+
else
|
484
|
+
code = response['Response']['Error']['Code']
|
485
|
+
message = response['Response']['Error']['Message']
|
486
|
+
reqid = response['Response']['RequestId']
|
487
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
488
|
+
end
|
489
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
490
|
+
raise e
|
491
|
+
rescue StandardError => e
|
492
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
493
|
+
end
|
494
|
+
|
471
495
|
# 云企付-关闭订单
|
472
496
|
|
473
497
|
# @param request: Request instance for CloseOpenBankPaymentOrder.
|
@@ -660,6 +684,30 @@ module TencentCloud
|
|
660
684
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
661
685
|
end
|
662
686
|
|
687
|
+
# 创建子商户
|
688
|
+
|
689
|
+
# @param request: Request instance for CreateCloudSubMerchant.
|
690
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::CreateCloudSubMerchantRequest`
|
691
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::CreateCloudSubMerchantResponse`
|
692
|
+
def CreateCloudSubMerchant(request)
|
693
|
+
body = send_request('CreateCloudSubMerchant', request.serialize)
|
694
|
+
response = JSON.parse(body)
|
695
|
+
if response['Response'].key?('Error') == false
|
696
|
+
model = CreateCloudSubMerchantResponse.new
|
697
|
+
model.deserialize(response['Response'])
|
698
|
+
model
|
699
|
+
else
|
700
|
+
code = response['Response']['Error']['Code']
|
701
|
+
message = response['Response']['Error']['Message']
|
702
|
+
reqid = response['Response']['RequestId']
|
703
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
704
|
+
end
|
705
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
706
|
+
raise e
|
707
|
+
rescue StandardError => e
|
708
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
709
|
+
end
|
710
|
+
|
663
711
|
# 会员子账户开立。会员在银行注册,并开立会员子账户,交易网会员代码即会员在平台端系统的会员编号。
|
664
712
|
# 平台需保存银行返回的子账户账号,后续交易接口都会用到。会员属性字段为预留扩展字段,当前必须送默认值。
|
665
713
|
|
@@ -1958,6 +2006,78 @@ module TencentCloud
|
|
1958
2006
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1959
2007
|
end
|
1960
2008
|
|
2009
|
+
# 发起支付等渠道操作后,可以调用该接口查询渠道的数据。
|
2010
|
+
|
2011
|
+
# @param request: Request instance for QueryCloudChannelData.
|
2012
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::QueryCloudChannelDataRequest`
|
2013
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::QueryCloudChannelDataResponse`
|
2014
|
+
def QueryCloudChannelData(request)
|
2015
|
+
body = send_request('QueryCloudChannelData', request.serialize)
|
2016
|
+
response = JSON.parse(body)
|
2017
|
+
if response['Response'].key?('Error') == false
|
2018
|
+
model = QueryCloudChannelDataResponse.new
|
2019
|
+
model.deserialize(response['Response'])
|
2020
|
+
model
|
2021
|
+
else
|
2022
|
+
code = response['Response']['Error']['Code']
|
2023
|
+
message = response['Response']['Error']['Message']
|
2024
|
+
reqid = response['Response']['RequestId']
|
2025
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2026
|
+
end
|
2027
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2028
|
+
raise e
|
2029
|
+
rescue StandardError => e
|
2030
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
# 根据订单号或用户ID,查询支付订单状态。
|
2034
|
+
|
2035
|
+
# @param request: Request instance for QueryCloudOrder.
|
2036
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::QueryCloudOrderRequest`
|
2037
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::QueryCloudOrderResponse`
|
2038
|
+
def QueryCloudOrder(request)
|
2039
|
+
body = send_request('QueryCloudOrder', request.serialize)
|
2040
|
+
response = JSON.parse(body)
|
2041
|
+
if response['Response'].key?('Error') == false
|
2042
|
+
model = QueryCloudOrderResponse.new
|
2043
|
+
model.deserialize(response['Response'])
|
2044
|
+
model
|
2045
|
+
else
|
2046
|
+
code = response['Response']['Error']['Code']
|
2047
|
+
message = response['Response']['Error']['Message']
|
2048
|
+
reqid = response['Response']['RequestId']
|
2049
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2050
|
+
end
|
2051
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2052
|
+
raise e
|
2053
|
+
rescue StandardError => e
|
2054
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2055
|
+
end
|
2056
|
+
|
2057
|
+
# 提交退款申请后,通过调用该接口查询退款状态。退款可能有一定延时,用微信零钱支付的退款约20分钟内到账,银行卡支付的退款约3个工作日后到账。
|
2058
|
+
|
2059
|
+
# @param request: Request instance for QueryCloudRefundOrder.
|
2060
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::QueryCloudRefundOrderRequest`
|
2061
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::QueryCloudRefundOrderResponse`
|
2062
|
+
def QueryCloudRefundOrder(request)
|
2063
|
+
body = send_request('QueryCloudRefundOrder', request.serialize)
|
2064
|
+
response = JSON.parse(body)
|
2065
|
+
if response['Response'].key?('Error') == false
|
2066
|
+
model = QueryCloudRefundOrderResponse.new
|
2067
|
+
model.deserialize(response['Response'])
|
2068
|
+
model
|
2069
|
+
else
|
2070
|
+
code = response['Response']['Error']['Code']
|
2071
|
+
message = response['Response']['Error']['Message']
|
2072
|
+
reqid = response['Response']['RequestId']
|
2073
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2074
|
+
end
|
2075
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2076
|
+
raise e
|
2077
|
+
rescue StandardError => e
|
2078
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2079
|
+
end
|
2080
|
+
|
1961
2081
|
# 查询普通转账充值明细。接口用于查询会员主动转账进资金汇总账户的明细情况。若会员使用绑定账号转入,则直接入账到会员子账户。若未使用绑定账号转入,则系统无法自动清分到对应子账户,则转入挂账子账户由平台自行清分。若是 “见证+收单充值”T0充值记录时备注Note为“见证+收单充值,订单号” 此接口可以查到T0到账的“见证+收单充值”充值记录。
|
1962
2082
|
|
1963
2083
|
# @param request: Request instance for QueryCommonTransferRecharge.
|
@@ -3183,6 +3303,30 @@ module TencentCloud
|
|
3183
3303
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3184
3304
|
end
|
3185
3305
|
|
3306
|
+
# 如交易订单需退款,可以通过本接口将支付款全部或部分退还给付款方,聚鑫将在收到退款请求并且验证成功之后,按照退款规则将支付款按原路退回到支付帐号。最长支持1年的订单退款。在订单包含多个子订单的情况下,如果使用本接口传入OutTradeNo或TransactionId退款,则只支持全单退款;如果需要部分退款,请通过传入子订单的方式来指定部分金额退款。
|
3307
|
+
|
3308
|
+
# @param request: Request instance for RefundCloudOrder.
|
3309
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::RefundCloudOrderRequest`
|
3310
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::RefundCloudOrderResponse`
|
3311
|
+
def RefundCloudOrder(request)
|
3312
|
+
body = send_request('RefundCloudOrder', request.serialize)
|
3313
|
+
response = JSON.parse(body)
|
3314
|
+
if response['Response'].key?('Error') == false
|
3315
|
+
model = RefundCloudOrderResponse.new
|
3316
|
+
model.deserialize(response['Response'])
|
3317
|
+
model
|
3318
|
+
else
|
3319
|
+
code = response['Response']['Error']['Code']
|
3320
|
+
message = response['Response']['Error']['Message']
|
3321
|
+
reqid = response['Response']['RequestId']
|
3322
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3323
|
+
end
|
3324
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3325
|
+
raise e
|
3326
|
+
rescue StandardError => e
|
3327
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3328
|
+
end
|
3329
|
+
|
3186
3330
|
# 会员间交易退款
|
3187
3331
|
|
3188
3332
|
# @param request: Request instance for RefundMemberTransaction.
|
@@ -3569,6 +3713,30 @@ module TencentCloud
|
|
3569
3713
|
|
3570
3714
|
# 应用需要先调用本接口生成支付订单号,并将应答的PayInfo透传给聚鑫SDK,拉起客户端(包括微信公众号/微信小程序/客户端App)支付。
|
3571
3715
|
|
3716
|
+
# @param request: Request instance for UnifiedCloudOrder.
|
3717
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::UnifiedCloudOrderRequest`
|
3718
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::UnifiedCloudOrderResponse`
|
3719
|
+
def UnifiedCloudOrder(request)
|
3720
|
+
body = send_request('UnifiedCloudOrder', request.serialize)
|
3721
|
+
response = JSON.parse(body)
|
3722
|
+
if response['Response'].key?('Error') == false
|
3723
|
+
model = UnifiedCloudOrderResponse.new
|
3724
|
+
model.deserialize(response['Response'])
|
3725
|
+
model
|
3726
|
+
else
|
3727
|
+
code = response['Response']['Error']['Code']
|
3728
|
+
message = response['Response']['Error']['Message']
|
3729
|
+
reqid = response['Response']['RequestId']
|
3730
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3731
|
+
end
|
3732
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3733
|
+
raise e
|
3734
|
+
rescue StandardError => e
|
3735
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3736
|
+
end
|
3737
|
+
|
3738
|
+
# 应用需要先调用本接口生成支付订单号,并将应答的PayInfo透传给聚鑫SDK,拉起客户端(包括微信公众号/微信小程序/客户端App)支付。
|
3739
|
+
|
3572
3740
|
# @param request: Request instance for UnifiedOrder.
|
3573
3741
|
# @type request: :class:`Tencentcloud::cpdp::V20190820::UnifiedOrderRequest`
|
3574
3742
|
# @rtype: :class:`Tencentcloud::cpdp::V20190820::UnifiedOrderResponse`
|