tencentcloud-sdk-cpdp 3.0.430 → 3.0.431

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: fa370d49f49d455dc2a6178423e7d0bd053625a5
4
- data.tar.gz: 06072d7e9adc5d404a15bf34ed590f5b2fc5e3e8
3
+ metadata.gz: 2a6a1dffc204d1b7f2ff5314aef60da8c9b8e6dd
4
+ data.tar.gz: 3568e11004f72beabb11512b8c907832a1db2dd0
5
5
  SHA512:
6
- metadata.gz: fcfc925d27db6e257661897cd6f68cc2cb249bccbaee18ab5f5fa49aa4f834d0972c9406a0d5965456c6553711e659dac3ecaf61ff34d9ccaf20bfe0203e0820
7
- data.tar.gz: 475800173753c26497c0cae2b08ced64f5de7384fca5e9656b1b47ffa4b28af58f57534adecff575cba19e34318b16ce82c66cc33d95e3836ef1593132d51450
6
+ metadata.gz: 657792ffdb0bda3a65682d944001ba7c22ad10288b26a1dacad8f6d08edc173413722ea3191c3da9cbe90b42b2f9bf16af80716075318473b19291aa52c4dda2
7
+ data.tar.gz: d71357935b7225af8e840999c2f415b1470da21c6fc82a18a5388aa5a0a1b1b453a4e8a7f47dcc13557e2ff80a876a5f652b4bd120a6b0058adebd0abc7403f8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.430
1
+ 3.0.431
@@ -1093,6 +1093,30 @@ module TencentCloud
1093
1093
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1094
1094
  end
1095
1095
 
1096
+ # 云企付-跨境支付下单
1097
+
1098
+ # @param request: Request instance for CreateOpenBankGlobalPaymentOrder.
1099
+ # @type request: :class:`Tencentcloud::cpdp::V20190820::CreateOpenBankGlobalPaymentOrderRequest`
1100
+ # @rtype: :class:`Tencentcloud::cpdp::V20190820::CreateOpenBankGlobalPaymentOrderResponse`
1101
+ def CreateOpenBankGlobalPaymentOrder(request)
1102
+ body = send_request('CreateOpenBankGlobalPaymentOrder', request.serialize)
1103
+ response = JSON.parse(body)
1104
+ if response['Response'].key?('Error') == false
1105
+ model = CreateOpenBankGlobalPaymentOrderResponse.new
1106
+ model.deserialize(response['Response'])
1107
+ model
1108
+ else
1109
+ code = response['Response']['Error']['Code']
1110
+ message = response['Response']['Error']['Message']
1111
+ reqid = response['Response']['RequestId']
1112
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1113
+ end
1114
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1115
+ raise e
1116
+ rescue StandardError => e
1117
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1118
+ end
1119
+
1096
1120
  # 云企付-创建商户
1097
1121
 
1098
1122
  # @param request: Request instance for CreateOpenBankMerchant.
@@ -6879,6 +6879,124 @@ module TencentCloud
6879
6879
  end
6880
6880
  end
6881
6881
 
6882
+ # CreateOpenBankGlobalPaymentOrder请求参数结构体
6883
+ class CreateOpenBankGlobalPaymentOrderRequest < TencentCloud::Common::AbstractModel
6884
+ # @param ChannelMerchantId: 渠道商户号
6885
+ # @type ChannelMerchantId: String
6886
+ # @param ChannelName: 渠道名称
6887
+ # @type ChannelName: String
6888
+ # @param PayType: 付款方式
6889
+ # @type PayType: String
6890
+ # @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一
6891
+ # @type OutOrderId: String
6892
+ # @param TotalAmount: 付款金额,单位分
6893
+ # @type TotalAmount: Integer
6894
+ # @param Currency: 支付币种,参考附录:货币代码
6895
+ # @type Currency: String
6896
+ # @param ChannelSubMerchantId: 渠道子商户号
6897
+ # @type ChannelSubMerchantId: String
6898
+ # @param NotifyUrl: 支付成功回调地址。
6899
+ # @type NotifyUrl: String
6900
+ # @param FrontUrl: 前端跳转地址。通联支付成功后,支付网关跳回商户的地址
6901
+ # @type FrontUrl: String
6902
+ # @param FrontLanguage: 网站语言。收银台显示语言,见附录网站语言
6903
+ # @type FrontLanguage: String
6904
+ # @param Remark: 付款备注
6905
+ # @type Remark: String
6906
+ # @param ExternalPaymentData: 第三方拓展信息信息
6907
+ # @type ExternalPaymentData: String
6908
+ # @param GoodsInfos: 商品信息
6909
+ # @type GoodsInfos: Array
6910
+ # @param ShippingInfo: 邮寄信息
6911
+ # @type ShippingInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankShippingInfo`
6912
+ # @param BillingInfo: 账单信息
6913
+ # @type BillingInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankBillingInfo`
6914
+
6915
+ attr_accessor :ChannelMerchantId, :ChannelName, :PayType, :OutOrderId, :TotalAmount, :Currency, :ChannelSubMerchantId, :NotifyUrl, :FrontUrl, :FrontLanguage, :Remark, :ExternalPaymentData, :GoodsInfos, :ShippingInfo, :BillingInfo
6916
+
6917
+ def initialize(channelmerchantid=nil, channelname=nil, paytype=nil, outorderid=nil, totalamount=nil, currency=nil, channelsubmerchantid=nil, notifyurl=nil, fronturl=nil, frontlanguage=nil, remark=nil, externalpaymentdata=nil, goodsinfos=nil, shippinginfo=nil, billinginfo=nil)
6918
+ @ChannelMerchantId = channelmerchantid
6919
+ @ChannelName = channelname
6920
+ @PayType = paytype
6921
+ @OutOrderId = outorderid
6922
+ @TotalAmount = totalamount
6923
+ @Currency = currency
6924
+ @ChannelSubMerchantId = channelsubmerchantid
6925
+ @NotifyUrl = notifyurl
6926
+ @FrontUrl = fronturl
6927
+ @FrontLanguage = frontlanguage
6928
+ @Remark = remark
6929
+ @ExternalPaymentData = externalpaymentdata
6930
+ @GoodsInfos = goodsinfos
6931
+ @ShippingInfo = shippinginfo
6932
+ @BillingInfo = billinginfo
6933
+ end
6934
+
6935
+ def deserialize(params)
6936
+ @ChannelMerchantId = params['ChannelMerchantId']
6937
+ @ChannelName = params['ChannelName']
6938
+ @PayType = params['PayType']
6939
+ @OutOrderId = params['OutOrderId']
6940
+ @TotalAmount = params['TotalAmount']
6941
+ @Currency = params['Currency']
6942
+ @ChannelSubMerchantId = params['ChannelSubMerchantId']
6943
+ @NotifyUrl = params['NotifyUrl']
6944
+ @FrontUrl = params['FrontUrl']
6945
+ @FrontLanguage = params['FrontLanguage']
6946
+ @Remark = params['Remark']
6947
+ @ExternalPaymentData = params['ExternalPaymentData']
6948
+ unless params['GoodsInfos'].nil?
6949
+ @GoodsInfos = []
6950
+ params['GoodsInfos'].each do |i|
6951
+ openbankgoodsinfo_tmp = OpenBankGoodsInfo.new
6952
+ openbankgoodsinfo_tmp.deserialize(i)
6953
+ @GoodsInfos << openbankgoodsinfo_tmp
6954
+ end
6955
+ end
6956
+ unless params['ShippingInfo'].nil?
6957
+ @ShippingInfo = OpenBankShippingInfo.new
6958
+ @ShippingInfo.deserialize(params['ShippingInfo'])
6959
+ end
6960
+ unless params['BillingInfo'].nil?
6961
+ @BillingInfo = OpenBankBillingInfo.new
6962
+ @BillingInfo.deserialize(params['BillingInfo'])
6963
+ end
6964
+ end
6965
+ end
6966
+
6967
+ # CreateOpenBankGlobalPaymentOrder返回参数结构体
6968
+ class CreateOpenBankGlobalPaymentOrderResponse < TencentCloud::Common::AbstractModel
6969
+ # @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
6970
+ # @type ErrCode: String
6971
+ # @param ErrMessage: 业务系统返回消息。
6972
+ # 注意:此字段可能返回 null,表示取不到有效值。
6973
+ # @type ErrMessage: String
6974
+ # @param Result: 统一下单响应对象。
6975
+ # 注意:此字段可能返回 null,表示取不到有效值。
6976
+ # @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankUnifiedOrderPaymentResult`
6977
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6978
+ # @type RequestId: String
6979
+
6980
+ attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
6981
+
6982
+ def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
6983
+ @ErrCode = errcode
6984
+ @ErrMessage = errmessage
6985
+ @Result = result
6986
+ @RequestId = requestid
6987
+ end
6988
+
6989
+ def deserialize(params)
6990
+ @ErrCode = params['ErrCode']
6991
+ @ErrMessage = params['ErrMessage']
6992
+ unless params['Result'].nil?
6993
+ @Result = CreateOpenBankUnifiedOrderPaymentResult.new
6994
+ @Result.deserialize(params['Result'])
6995
+ end
6996
+ @RequestId = params['RequestId']
6997
+ end
6998
+ end
6999
+
6882
7000
  # CreateOpenBankMerchant请求参数结构体
6883
7001
  class CreateOpenBankMerchantRequest < TencentCloud::Common::AbstractModel
6884
7002
  # @param OutMerchantId: 外部商户ID。
@@ -7506,6 +7624,50 @@ module TencentCloud
7506
7624
  end
7507
7625
  end
7508
7626
 
7627
+ # 云企付-支付下单返回响应
7628
+ class CreateOpenBankUnifiedOrderPaymentResult < TencentCloud::Common::AbstractModel
7629
+ # @param ChannelOrderId: 云企付平台订单号。
7630
+ # @type ChannelOrderId: String
7631
+ # @param ThirdPayOrderId: 第三方支付平台返回支付订单号。
7632
+ # 注意:此字段可能返回 null,表示取不到有效值。
7633
+ # @type ThirdPayOrderId: String
7634
+ # @param RedirectInfo: 跳转参数
7635
+ # 渠道为TENPAY,付款方式为EBANK_PAYMENT时必选。
7636
+ # 注意:此字段可能返回 null,表示取不到有效值。
7637
+ # @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankOrderRedirectInfo`
7638
+ # @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一。
7639
+ # @type OutOrderId: String
7640
+ # @param PayInfo: 渠道扩展支付信息
7641
+ # 注意:此字段可能返回 null,表示取不到有效值。
7642
+ # @type PayInfo: String
7643
+ # @param PayInfoType: 渠道扩展支付信息类型
7644
+ # 注意:此字段可能返回 null,表示取不到有效值。
7645
+ # @type PayInfoType: String
7646
+
7647
+ attr_accessor :ChannelOrderId, :ThirdPayOrderId, :RedirectInfo, :OutOrderId, :PayInfo, :PayInfoType
7648
+
7649
+ def initialize(channelorderid=nil, thirdpayorderid=nil, redirectinfo=nil, outorderid=nil, payinfo=nil, payinfotype=nil)
7650
+ @ChannelOrderId = channelorderid
7651
+ @ThirdPayOrderId = thirdpayorderid
7652
+ @RedirectInfo = redirectinfo
7653
+ @OutOrderId = outorderid
7654
+ @PayInfo = payinfo
7655
+ @PayInfoType = payinfotype
7656
+ end
7657
+
7658
+ def deserialize(params)
7659
+ @ChannelOrderId = params['ChannelOrderId']
7660
+ @ThirdPayOrderId = params['ThirdPayOrderId']
7661
+ unless params['RedirectInfo'].nil?
7662
+ @RedirectInfo = OpenBankOrderRedirectInfo.new
7663
+ @RedirectInfo.deserialize(params['RedirectInfo'])
7664
+ end
7665
+ @OutOrderId = params['OutOrderId']
7666
+ @PayInfo = params['PayInfo']
7667
+ @PayInfoType = params['PayInfoType']
7668
+ end
7669
+ end
7670
+
7509
7671
  # CreateOpenBankUnifiedOrder请求参数结构体
7510
7672
  class CreateOpenBankUnifiedOrderRequest < TencentCloud::Common::AbstractModel
7511
7673
  # @param ChannelMerchantId: 渠道商户号。
@@ -11736,6 +11898,54 @@ module TencentCloud
11736
11898
  end
11737
11899
  end
11738
11900
 
11901
+ # 云企付-账单信息
11902
+ class OpenBankBillingInfo < TencentCloud::Common::AbstractModel
11903
+ # @param FirstName: 账单人名字
11904
+ # @type FirstName: String
11905
+ # @param LastName: 账单人姓氏
11906
+ # @type LastName: String
11907
+ # @param AddressOne: 账单地址1
11908
+ # @type AddressOne: String
11909
+ # @param AddressTwo: 账单地址1
11910
+ # @type AddressTwo: String
11911
+ # @param City: 账单地址所在城市
11912
+ # @type City: String
11913
+ # @param State: 账单地址所在州/省,当国家是美国或加拿大时,使用ISO-3166-2:US或ISO -3166-2:CA 中该国家地区编 码标准中的两位字母编码。
11914
+ # @type State: String
11915
+ # @param Country: 账单地址所在国家,使用ISO-3166-1标准中的两位字母编码。
11916
+ # @type Country: String
11917
+ # @param ZipCode: 账单地址邮编
11918
+ # @type ZipCode: String
11919
+ # @param Phone: 账单人手机号
11920
+ # @type Phone: String
11921
+
11922
+ attr_accessor :FirstName, :LastName, :AddressOne, :AddressTwo, :City, :State, :Country, :ZipCode, :Phone
11923
+
11924
+ def initialize(firstname=nil, lastname=nil, addressone=nil, addresstwo=nil, city=nil, state=nil, country=nil, zipcode=nil, phone=nil)
11925
+ @FirstName = firstname
11926
+ @LastName = lastname
11927
+ @AddressOne = addressone
11928
+ @AddressTwo = addresstwo
11929
+ @City = city
11930
+ @State = state
11931
+ @Country = country
11932
+ @ZipCode = zipcode
11933
+ @Phone = phone
11934
+ end
11935
+
11936
+ def deserialize(params)
11937
+ @FirstName = params['FirstName']
11938
+ @LastName = params['LastName']
11939
+ @AddressOne = params['AddressOne']
11940
+ @AddressTwo = params['AddressTwo']
11941
+ @City = params['City']
11942
+ @State = params['State']
11943
+ @Country = params['Country']
11944
+ @ZipCode = params['ZipCode']
11945
+ @Phone = params['Phone']
11946
+ end
11947
+ end
11948
+
11739
11949
  # 网银页面提交html
11740
11950
  class OpenBankFormInfo < TencentCloud::Common::AbstractModel
11741
11951
  # @param FormHtml: 网银页面提交html
@@ -11768,14 +11978,29 @@ module TencentCloud
11768
11978
  # @type GoodsDescription: String
11769
11979
  # @param GoodsBizType: 业务类型。汇付渠道必填,汇付渠道传入固定值100099。
11770
11980
  # @type GoodsBizType: String
11981
+ # @param Sku: 商品编号。
11982
+ # @type Sku: String
11983
+ # @param Price: 商品单价。
11984
+ # @type Price: String
11985
+ # @param Quantity: 商品数量
11986
+ # @type Quantity: String
11987
+ # @param ProductImage: 商品图片url
11988
+ # @type ProductImage: String
11989
+ # @param ProductUrl: 商品链接url
11990
+ # @type ProductUrl: String
11771
11991
 
11772
- attr_accessor :GoodsName, :GoodsDetail, :GoodsDescription, :GoodsBizType
11992
+ attr_accessor :GoodsName, :GoodsDetail, :GoodsDescription, :GoodsBizType, :Sku, :Price, :Quantity, :ProductImage, :ProductUrl
11773
11993
 
11774
- def initialize(goodsname=nil, goodsdetail=nil, goodsdescription=nil, goodsbiztype=nil)
11994
+ def initialize(goodsname=nil, goodsdetail=nil, goodsdescription=nil, goodsbiztype=nil, sku=nil, price=nil, quantity=nil, productimage=nil, producturl=nil)
11775
11995
  @GoodsName = goodsname
11776
11996
  @GoodsDetail = goodsdetail
11777
11997
  @GoodsDescription = goodsdescription
11778
11998
  @GoodsBizType = goodsbiztype
11999
+ @Sku = sku
12000
+ @Price = price
12001
+ @Quantity = quantity
12002
+ @ProductImage = productimage
12003
+ @ProductUrl = producturl
11779
12004
  end
11780
12005
 
11781
12006
  def deserialize(params)
@@ -11783,6 +12008,66 @@ module TencentCloud
11783
12008
  @GoodsDetail = params['GoodsDetail']
11784
12009
  @GoodsDescription = params['GoodsDescription']
11785
12010
  @GoodsBizType = params['GoodsBizType']
12011
+ @Sku = params['Sku']
12012
+ @Price = params['Price']
12013
+ @Quantity = params['Quantity']
12014
+ @ProductImage = params['ProductImage']
12015
+ @ProductUrl = params['ProductUrl']
12016
+ end
12017
+ end
12018
+
12019
+ # 云企付-下单跳转参数,用于小程序前端跳转
12020
+ class OpenBankOrderRedirectInfo < TencentCloud::Common::AbstractModel
12021
+ # @param QRCodeUrl: 生成二维码,引导用户扫码
12022
+ # 注意:此字段可能返回 null,表示取不到有效值。
12023
+ # @type QRCodeUrl: String
12024
+ # @param QRCodeKey: 二维码凭证
12025
+ # 注意:此字段可能返回 null,表示取不到有效值。
12026
+ # @type QRCodeKey: String
12027
+ # @param Url: 跳转 URL,用于客户端跳转,订单未支付时返回该参数
12028
+ # 注意:此字段可能返回 null,表示取不到有效值。
12029
+ # @type Url: String
12030
+ # @param ExpireTime: 跳转凭证过期时间,yyyy-MM-dd HH:mm:ss
12031
+ # 注意:此字段可能返回 null,表示取不到有效值。
12032
+ # @type ExpireTime: String
12033
+ # @param MpAppId: 小程序 appid
12034
+ # 注意:此字段可能返回 null,表示取不到有效值。
12035
+ # @type MpAppId: String
12036
+ # @param MpPath: 小程序路径
12037
+ # 注意:此字段可能返回 null,表示取不到有效值。
12038
+ # @type MpPath: String
12039
+ # @param MpUserName: 小程序原始 id
12040
+ # 注意:此字段可能返回 null,表示取不到有效值。
12041
+ # @type MpUserName: String
12042
+ # @param FormInfo: 网银支付提交页面信息
12043
+ # 注意:此字段可能返回 null,表示取不到有效值。
12044
+ # @type FormInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankFormInfo`
12045
+
12046
+ attr_accessor :QRCodeUrl, :QRCodeKey, :Url, :ExpireTime, :MpAppId, :MpPath, :MpUserName, :FormInfo
12047
+
12048
+ def initialize(qrcodeurl=nil, qrcodekey=nil, url=nil, expiretime=nil, mpappid=nil, mppath=nil, mpusername=nil, forminfo=nil)
12049
+ @QRCodeUrl = qrcodeurl
12050
+ @QRCodeKey = qrcodekey
12051
+ @Url = url
12052
+ @ExpireTime = expiretime
12053
+ @MpAppId = mpappid
12054
+ @MpPath = mppath
12055
+ @MpUserName = mpusername
12056
+ @FormInfo = forminfo
12057
+ end
12058
+
12059
+ def deserialize(params)
12060
+ @QRCodeUrl = params['QRCodeUrl']
12061
+ @QRCodeKey = params['QRCodeKey']
12062
+ @Url = params['Url']
12063
+ @ExpireTime = params['ExpireTime']
12064
+ @MpAppId = params['MpAppId']
12065
+ @MpPath = params['MpPath']
12066
+ @MpUserName = params['MpUserName']
12067
+ unless params['FormInfo'].nil?
12068
+ @FormInfo = OpenBankFormInfo.new
12069
+ @FormInfo.deserialize(params['FormInfo'])
12070
+ end
11786
12071
  end
11787
12072
  end
11788
12073
 
@@ -12234,6 +12519,55 @@ module TencentCloud
12234
12519
  end
12235
12520
  end
12236
12521
 
12522
+ # 云企付-邮寄信息
12523
+ class OpenBankShippingInfo < TencentCloud::Common::AbstractModel
12524
+ # @param FirstName: 收货人名字
12525
+ # @type FirstName: String
12526
+ # @param LastName: 收货人姓氏
12527
+ # @type LastName: String
12528
+ # @param AddressOne: 收货地址1
12529
+ # @type AddressOne: String
12530
+ # @param AddressTwo: 收货地址2
12531
+ # @type AddressTwo: String
12532
+ # @param City: 收货地址所在城市
12533
+ # @type City: String
12534
+ # @param State: 收货地址所在州,当国家是美国或加拿大时,使用ISO-3166-2:US或ISO -3166-2:CA 中该
12535
+ # 国家地区编码标准中的两位字母编码
12536
+ # @type State: String
12537
+ # @param Country: 使用ISO-3166-1标准中的两位字母编码
12538
+ # @type Country: String
12539
+ # @param ZipCode: 收货地址邮编
12540
+ # @type ZipCode: String
12541
+ # @param Phone: 收货联系电话
12542
+ # @type Phone: String
12543
+
12544
+ attr_accessor :FirstName, :LastName, :AddressOne, :AddressTwo, :City, :State, :Country, :ZipCode, :Phone
12545
+
12546
+ def initialize(firstname=nil, lastname=nil, addressone=nil, addresstwo=nil, city=nil, state=nil, country=nil, zipcode=nil, phone=nil)
12547
+ @FirstName = firstname
12548
+ @LastName = lastname
12549
+ @AddressOne = addressone
12550
+ @AddressTwo = addresstwo
12551
+ @City = city
12552
+ @State = state
12553
+ @Country = country
12554
+ @ZipCode = zipcode
12555
+ @Phone = phone
12556
+ end
12557
+
12558
+ def deserialize(params)
12559
+ @FirstName = params['FirstName']
12560
+ @LastName = params['LastName']
12561
+ @AddressOne = params['AddressOne']
12562
+ @AddressTwo = params['AddressTwo']
12563
+ @City = params['City']
12564
+ @State = params['State']
12565
+ @Country = params['Country']
12566
+ @ZipCode = params['ZipCode']
12567
+ @Phone = params['Phone']
12568
+ end
12569
+ end
12570
+
12237
12571
  # 云企付-门店信息
12238
12572
  class OpenBankStoreInfo < TencentCloud::Common::AbstractModel
12239
12573
  # @param Name: 门店名称
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: 3.0.430
4
+ version: 3.0.431
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-18 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common