# frozen_string_literal: true
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module TencentCloud
module Cpdp
module V20190820
# 账户信息
class Acct < TencentCloud::Common::AbstractModel
# @param SubAcctNo: STRING(50),见证子账户的账号(可重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctNo: String
# @param SubAcctProperty: STRING(10),见证子账户的属性(可重复。1: 普通会员子账号; 2: 挂账子账号; 3: 手续费子账号; 4: 利息子账号; 5: 平台担保子账号)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctProperty: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(可重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranNetMemberCode: String
# @param SubAcctName: STRING(150),见证子账户的名称(可重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctName: String
# @param AcctAvailBal: STRING(20),见证子账户可用余额(可重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AcctAvailBal: String
# @param CashAmt: STRING(20),见证子账户可提现金额(可重复。开户日期或修改日期)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CashAmt: String
# @param MaintenanceDate: STRING(8),维护日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MaintenanceDate: String
attr_accessor :SubAcctNo, :SubAcctProperty, :TranNetMemberCode, :SubAcctName, :AcctAvailBal, :CashAmt, :MaintenanceDate
def initialize(subacctno=nil, subacctproperty=nil, trannetmembercode=nil, subacctname=nil, acctavailbal=nil, cashamt=nil, maintenancedate=nil)
@SubAcctNo = subacctno
@SubAcctProperty = subacctproperty
@TranNetMemberCode = trannetmembercode
@SubAcctName = subacctname
@AcctAvailBal = acctavailbal
@CashAmt = cashamt
@MaintenanceDate = maintenancedate
end
def deserialize(params)
@SubAcctNo = params['SubAcctNo']
@SubAcctProperty = params['SubAcctProperty']
@TranNetMemberCode = params['TranNetMemberCode']
@SubAcctName = params['SubAcctName']
@AcctAvailBal = params['AcctAvailBal']
@CashAmt = params['CashAmt']
@MaintenanceDate = params['MaintenanceDate']
end
end
# AddContract请求参数结构体
class AddContractRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutContractId: 机构合同主键(系统有唯一性校验),建议使用合同表的主键ID,防止重复添加合同
# @type OutContractId: String
# @param Code: 合同编号(系统有唯一性校验)
# @type Code: String
# @param PaymentId: 支付方式编号
# @type PaymentId: String
# @param PaymentClassificationId: 支付方式行业分类编号
# @type PaymentClassificationId: String
# @param PaymentClassificationLimit: 封顶值(分为单位,无封顶填0)
# @type PaymentClassificationLimit: String
# @param MerchantNo: 商户编号
# @type MerchantNo: String
# @param Fee: 签约扣率百分比(如:0.32)
# @type Fee: String
# @param StartDate: 合同生效日期(yyyy-mm-dd)
# @type StartDate: String
# @param EndDate: 合同过期日期(yyyy-mm-dd)
# @type EndDate: String
# @param SignMan: 合同签约人
# @type SignMan: String
# @param SignName: 签购单名称,建议使用商户招牌名称
# @type SignName: String
# @param SignDate: 合同签署日期(yyyy-mm-dd)
# @type SignDate: String
# @param AutoSign: 是否自动续签(1是,0否)
# @type AutoSign: String
# @param Contact: 联系人
# @type Contact: String
# @param ContactTelephone: 联系人电话
# @type ContactTelephone: String
# @param PictureOne: 合同照片【私密区】
# @type PictureOne: String
# @param PictureTwo: 合同照片【私密区】
# @type PictureTwo: String
# @param ChannelExtJson: 渠道扩展字段,json格式
# @type ChannelExtJson: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
# @param PaymentOptionOne: 合同选项1(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionOne: String
# @param PaymentOptionTwo: 合同选项2(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionTwo: String
# @param PaymentOptionThree: 合同选项3(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionThree: String
# @param PaymentOptionFour: 合同选项4(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionFour: String
# @param PaymentOptionFive: 合同证书选项1(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionFive: String
# @param PaymentOptionSix: 合同证书选项2(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionSix: String
# @param PaymentOptionSeven: 合同选项5(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionSeven: String
# @param PaymentOptionOther: 合同选项6(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionOther: String
# @param PaymentOptionTen: 合同选项8
# @type PaymentOptionTen: String
# @param PaymentOptionNine: 合同选项7(不同支付方式规则不一样,请以支付方式规定的格式传值)
# @type PaymentOptionNine: String
attr_accessor :OpenId, :OpenKey, :OutContractId, :Code, :PaymentId, :PaymentClassificationId, :PaymentClassificationLimit, :MerchantNo, :Fee, :StartDate, :EndDate, :SignMan, :SignName, :SignDate, :AutoSign, :Contact, :ContactTelephone, :PictureOne, :PictureTwo, :ChannelExtJson, :Profile, :PaymentOptionOne, :PaymentOptionTwo, :PaymentOptionThree, :PaymentOptionFour, :PaymentOptionFive, :PaymentOptionSix, :PaymentOptionSeven, :PaymentOptionOther, :PaymentOptionTen, :PaymentOptionNine
def initialize(openid=nil, openkey=nil, outcontractid=nil, code=nil, paymentid=nil, paymentclassificationid=nil, paymentclassificationlimit=nil, merchantno=nil, fee=nil, startdate=nil, enddate=nil, signman=nil, signname=nil, signdate=nil, autosign=nil, contact=nil, contacttelephone=nil, pictureone=nil, picturetwo=nil, channelextjson=nil, profile=nil, paymentoptionone=nil, paymentoptiontwo=nil, paymentoptionthree=nil, paymentoptionfour=nil, paymentoptionfive=nil, paymentoptionsix=nil, paymentoptionseven=nil, paymentoptionother=nil, paymentoptionten=nil, paymentoptionnine=nil)
@OpenId = openid
@OpenKey = openkey
@OutContractId = outcontractid
@Code = code
@PaymentId = paymentid
@PaymentClassificationId = paymentclassificationid
@PaymentClassificationLimit = paymentclassificationlimit
@MerchantNo = merchantno
@Fee = fee
@StartDate = startdate
@EndDate = enddate
@SignMan = signman
@SignName = signname
@SignDate = signdate
@AutoSign = autosign
@Contact = contact
@ContactTelephone = contacttelephone
@PictureOne = pictureone
@PictureTwo = picturetwo
@ChannelExtJson = channelextjson
@Profile = profile
@PaymentOptionOne = paymentoptionone
@PaymentOptionTwo = paymentoptiontwo
@PaymentOptionThree = paymentoptionthree
@PaymentOptionFour = paymentoptionfour
@PaymentOptionFive = paymentoptionfive
@PaymentOptionSix = paymentoptionsix
@PaymentOptionSeven = paymentoptionseven
@PaymentOptionOther = paymentoptionother
@PaymentOptionTen = paymentoptionten
@PaymentOptionNine = paymentoptionnine
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutContractId = params['OutContractId']
@Code = params['Code']
@PaymentId = params['PaymentId']
@PaymentClassificationId = params['PaymentClassificationId']
@PaymentClassificationLimit = params['PaymentClassificationLimit']
@MerchantNo = params['MerchantNo']
@Fee = params['Fee']
@StartDate = params['StartDate']
@EndDate = params['EndDate']
@SignMan = params['SignMan']
@SignName = params['SignName']
@SignDate = params['SignDate']
@AutoSign = params['AutoSign']
@Contact = params['Contact']
@ContactTelephone = params['ContactTelephone']
@PictureOne = params['PictureOne']
@PictureTwo = params['PictureTwo']
@ChannelExtJson = params['ChannelExtJson']
@Profile = params['Profile']
@PaymentOptionOne = params['PaymentOptionOne']
@PaymentOptionTwo = params['PaymentOptionTwo']
@PaymentOptionThree = params['PaymentOptionThree']
@PaymentOptionFour = params['PaymentOptionFour']
@PaymentOptionFive = params['PaymentOptionFive']
@PaymentOptionSix = params['PaymentOptionSix']
@PaymentOptionSeven = params['PaymentOptionSeven']
@PaymentOptionOther = params['PaymentOptionOther']
@PaymentOptionTen = params['PaymentOptionTen']
@PaymentOptionNine = params['PaymentOptionNine']
end
end
# AddContract返回参数结构体
class AddContractResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 添加合同响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AddContractResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = AddContractResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 添加合同响应对象
class AddContractResult < TencentCloud::Common::AbstractModel
# @param ContractId: 合同主键
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractId: String
attr_accessor :ContractId
def initialize(contractid=nil)
@ContractId = contractid
end
def deserialize(params)
@ContractId = params['ContractId']
end
end
# AddFlexFundingAccount请求参数结构体
class AddFlexFundingAccountRequest < TencentCloud::Common::AbstractModel
# @param FundingAccountType: 资金账户类型
# PINGAN_BANK:平安银行
# @type FundingAccountType: String
# @param FundingAccountName: 收款资金账户姓名
# @type FundingAccountName: String
# @param FundingAccountNo: 收款资金账户号
# @type FundingAccountNo: String
# @param PhoneNo: 收款资金账户手机号
# @type PhoneNo: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param BankBranchName: 开户支行名
# @type BankBranchName: String
attr_accessor :FundingAccountType, :FundingAccountName, :FundingAccountNo, :PhoneNo, :PayeeId, :Environment, :BankBranchName
def initialize(fundingaccounttype=nil, fundingaccountname=nil, fundingaccountno=nil, phoneno=nil, payeeid=nil, environment=nil, bankbranchname=nil)
@FundingAccountType = fundingaccounttype
@FundingAccountName = fundingaccountname
@FundingAccountNo = fundingaccountno
@PhoneNo = phoneno
@PayeeId = payeeid
@Environment = environment
@BankBranchName = bankbranchname
end
def deserialize(params)
@FundingAccountType = params['FundingAccountType']
@FundingAccountName = params['FundingAccountName']
@FundingAccountNo = params['FundingAccountNo']
@PhoneNo = params['PhoneNo']
@PayeeId = params['PayeeId']
@Environment = params['Environment']
@BankBranchName = params['BankBranchName']
end
end
# AddFlexFundingAccount返回参数结构体
class AddFlexFundingAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 无
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeFundingAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PayeeFundingAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# AddFlexIdInfo请求参数结构体
class AddFlexIdInfoRequest < TencentCloud::Common::AbstractModel
# @param IdType: 证件类型
# 0:身份证
# 1:社会信用代码
# @type IdType: Integer
# @param IdNo: 证件号
# @type IdNo: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param Name: 姓名
# @type Name: String
attr_accessor :IdType, :IdNo, :PayeeId, :Environment, :Name
def initialize(idtype=nil, idno=nil, payeeid=nil, environment=nil, name=nil)
@IdType = idtype
@IdNo = idno
@PayeeId = payeeid
@Environment = environment
@Name = name
end
def deserialize(params)
@IdType = params['IdType']
@IdNo = params['IdNo']
@PayeeId = params['PayeeId']
@Environment = params['Environment']
@Name = params['Name']
end
end
# AddFlexIdInfo返回参数结构体
class AddFlexIdInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 无
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# AddFlexPhoneNo请求参数结构体
class AddFlexPhoneNoRequest < TencentCloud::Common::AbstractModel
# @param PhoneNo: 手机号
# @type PhoneNo: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PhoneNo, :PayeeId, :Environment
def initialize(phoneno=nil, payeeid=nil, environment=nil)
@PhoneNo = phoneno
@PayeeId = payeeid
@Environment = environment
end
def deserialize(params)
@PhoneNo = params['PhoneNo']
@PayeeId = params['PayeeId']
@Environment = params['Environment']
end
end
# AddFlexPhoneNo返回参数结构体
class AddFlexPhoneNoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 无
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# AddMerchant请求参数结构体
class AddMerchantRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutMerchantId: 机构商户主键(系统有唯一性校验),建议使用商户表的主键ID,防止重复添加商户
# @type OutMerchantId: String
# @param MerchantName: 商户名称,小微商户命名要符合“”商户_名字” (例如:商户_张三)
# @type MerchantName: String
# @param BusinessLicenseType: 营业执照类型(1三证合一,2非三证合一)
# @type BusinessLicenseType: String
# @param BusinessLicenseNo: 营业执照编号(系统有唯一性校验),(小微商户不效验,随意传要有值,公司/个体户必传)
# @type BusinessLicenseNo: String
# @param BusinessLicensePicture: 营业执照图片【私密区】(系统返回的图片路径),(小微商户不效验,随意传要有值,公司/个体户必传)
# @type BusinessLicensePicture: String
# @param BusinessLicenseStartDate: 营业执照生效时间(yyyy-mm-dd),(小微商户不效验,随意传要有值,公司/个体户必传)
# @type BusinessLicenseStartDate: String
# @param BusinessLicenseEndDate: 营业执照过期时间(yyyy-mm-dd),(小微商户不效验,随意传要有值,公司/个体户必传)
# @type BusinessLicenseEndDate: String
# @param ClassificationIds: 行业分类编号列表(第一个分类编号为主分类,后面的为二级分类)
# @type ClassificationIds: Array
# @param BrandName: 招牌名称
# @type BrandName: String
# @param Telephone: 联系电话
# @type Telephone: String
# @param CityId: 城市编号
# @type CityId: String
# @param Address: 详细地址,不含省市区县名称,长度需要大于5。
# @type Address: String
# @param OpenHours: 营业时间,多个以小写逗号分开(9:00-12:00,13:00-18:00)
# @type OpenHours: String
# @param AccountType: 结算账户类型(2对私,1对公)
# @type AccountType: String
# @param BankNo: 清算联行号,开户行行号
# @type BankNo: String
# @param BankName: 开户行名称
# @type BankName: String
# @param AccountNo: 银行账号
# @type AccountNo: String
# @param AccountName: 银行户名
# @type AccountName: String
# @param BossIdType: 法人证件类型(1居民身份证,2临时居民身份证,3居民户口簿,4护照,5港澳居民来往内地通行证,6回乡证,7军人证,8武警身份证,9其他法定文件)
# @type BossIdType: String
# @param BossIdNo: 法人证件号码
# @type BossIdNo: String
# @param BossName: 法人姓名
# @type BossName: String
# @param BossSex: 法人性别(1男,2女)
# @type BossSex: String
# @param BossIdCountry: 法人证件国别/地区(中国CHN,香港HKG,澳门MAC,台湾CTN)
# @type BossIdCountry: String
# @param BossPositive: 法人身份证正面【私密区】(系统返回的图片路径)
# @type BossPositive: String
# @param BossBack: 法人身份证背面【私密区】(系统返回的图片路径)
# @type BossBack: String
# @param BossStartDate: 法人证件生效时间(yyyy-mm-dd)
# @type BossStartDate: String
# @param BossEndDate: 法人证件过期时间(yyyy-mm-dd)
# @type BossEndDate: String
# @param LicencePicture: 许可证图片【私密区】,(小微商户不效验,随意传要有值,公司/个体户必传)
# @type LicencePicture: String
# @param Type: 商户类型:1-个体,2-小微,3-企业。不传默认为2-小微商户。
# @type Type: String
# @param OrganizationNo: 组织机构代码证号
# @type OrganizationNo: String
# @param OrganizationStartDate: 组织机构代码证生效时间(yyyy-mm-dd)
# @type OrganizationStartDate: String
# @param OrganizationPicture: 组织机构代码证图片【私密区】
# @type OrganizationPicture: String
# @param OrganizationEndDate: 组织机构代码证过期时间(yyyy-mm-dd)
# @type OrganizationEndDate: String
# @param Intro: 商户简介
# @type Intro: String
# @param Logo: 商户logo【公共区】
# @type Logo: String
# @param Tag: 商户标记,自定义参数
# @type Tag: String
# @param FinancialTelephone: 财务联系人电话
# @type FinancialTelephone: String
# @param FinancialContact: 财务联系人
# @type FinancialContact: String
# @param TaxRegistrationNo: 税务登记证号
# @type TaxRegistrationNo: String
# @param TaxRegistrationPicture: 税务登记证图片【私密区】
# @type TaxRegistrationPicture: String
# @param TaxRegistrationStartDate: 税务登记证生效时间(yyyy-mm-dd)
# @type TaxRegistrationStartDate: String
# @param TaxRegistrationEndDate: 税务登记证过期时间(yyyy-mm-dd)
# @type TaxRegistrationEndDate: String
# @param AccountBoss: 结算账户人身份(1法人,2法人亲属),结算帐户为对私时必填
# @type AccountBoss: String
# @param AccountManagerName: 客户经理姓名,必须为系统后台的管理员真实姓名
# @type AccountManagerName: String
# @param BossTelephone: 法人电话
# @type BossTelephone: String
# @param BossJob: 法人职业
# @type BossJob: String
# @param BossEmail: 法人邮箱
# @type BossEmail: String
# @param BossAddress: 法人住址
# @type BossAddress: String
# @param AccountIdType: 法人亲属证件类型(1居民身份证,2临时居民身份证,3居民户口簿,4护照,5港澳居民来往内地通行证,6回乡证,7军人证,8武警身份证,9其他法定文件)结算账户人身份为法人亲属时必填
# @type AccountIdType: String
# @param AccountIdNo: 法人亲属证件号码
# @type AccountIdNo: String
# @param LicencePictureTwo: 授权文件【私密区】
# @type LicencePictureTwo: String
# @param OtherPictureOne: 其他资料1
# @type OtherPictureOne: String
# @param OtherPictureTwo: 其他资料2
# @type OtherPictureTwo: String
# @param OtherPictureThree: 其他资料3
# @type OtherPictureThree: String
# @param OtherPictureFour: 其他资料4
# @type OtherPictureFour: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutMerchantId, :MerchantName, :BusinessLicenseType, :BusinessLicenseNo, :BusinessLicensePicture, :BusinessLicenseStartDate, :BusinessLicenseEndDate, :ClassificationIds, :BrandName, :Telephone, :CityId, :Address, :OpenHours, :AccountType, :BankNo, :BankName, :AccountNo, :AccountName, :BossIdType, :BossIdNo, :BossName, :BossSex, :BossIdCountry, :BossPositive, :BossBack, :BossStartDate, :BossEndDate, :LicencePicture, :Type, :OrganizationNo, :OrganizationStartDate, :OrganizationPicture, :OrganizationEndDate, :Intro, :Logo, :Tag, :FinancialTelephone, :FinancialContact, :TaxRegistrationNo, :TaxRegistrationPicture, :TaxRegistrationStartDate, :TaxRegistrationEndDate, :AccountBoss, :AccountManagerName, :BossTelephone, :BossJob, :BossEmail, :BossAddress, :AccountIdType, :AccountIdNo, :LicencePictureTwo, :OtherPictureOne, :OtherPictureTwo, :OtherPictureThree, :OtherPictureFour, :Profile
def initialize(openid=nil, openkey=nil, outmerchantid=nil, merchantname=nil, businesslicensetype=nil, businesslicenseno=nil, businesslicensepicture=nil, businesslicensestartdate=nil, businesslicenseenddate=nil, classificationids=nil, brandname=nil, telephone=nil, cityid=nil, address=nil, openhours=nil, accounttype=nil, bankno=nil, bankname=nil, accountno=nil, accountname=nil, bossidtype=nil, bossidno=nil, bossname=nil, bosssex=nil, bossidcountry=nil, bosspositive=nil, bossback=nil, bossstartdate=nil, bossenddate=nil, licencepicture=nil, type=nil, organizationno=nil, organizationstartdate=nil, organizationpicture=nil, organizationenddate=nil, intro=nil, logo=nil, tag=nil, financialtelephone=nil, financialcontact=nil, taxregistrationno=nil, taxregistrationpicture=nil, taxregistrationstartdate=nil, taxregistrationenddate=nil, accountboss=nil, accountmanagername=nil, bosstelephone=nil, bossjob=nil, bossemail=nil, bossaddress=nil, accountidtype=nil, accountidno=nil, licencepicturetwo=nil, otherpictureone=nil, otherpicturetwo=nil, otherpicturethree=nil, otherpicturefour=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutMerchantId = outmerchantid
@MerchantName = merchantname
@BusinessLicenseType = businesslicensetype
@BusinessLicenseNo = businesslicenseno
@BusinessLicensePicture = businesslicensepicture
@BusinessLicenseStartDate = businesslicensestartdate
@BusinessLicenseEndDate = businesslicenseenddate
@ClassificationIds = classificationids
@BrandName = brandname
@Telephone = telephone
@CityId = cityid
@Address = address
@OpenHours = openhours
@AccountType = accounttype
@BankNo = bankno
@BankName = bankname
@AccountNo = accountno
@AccountName = accountname
@BossIdType = bossidtype
@BossIdNo = bossidno
@BossName = bossname
@BossSex = bosssex
@BossIdCountry = bossidcountry
@BossPositive = bosspositive
@BossBack = bossback
@BossStartDate = bossstartdate
@BossEndDate = bossenddate
@LicencePicture = licencepicture
@Type = type
@OrganizationNo = organizationno
@OrganizationStartDate = organizationstartdate
@OrganizationPicture = organizationpicture
@OrganizationEndDate = organizationenddate
@Intro = intro
@Logo = logo
@Tag = tag
@FinancialTelephone = financialtelephone
@FinancialContact = financialcontact
@TaxRegistrationNo = taxregistrationno
@TaxRegistrationPicture = taxregistrationpicture
@TaxRegistrationStartDate = taxregistrationstartdate
@TaxRegistrationEndDate = taxregistrationenddate
@AccountBoss = accountboss
@AccountManagerName = accountmanagername
@BossTelephone = bosstelephone
@BossJob = bossjob
@BossEmail = bossemail
@BossAddress = bossaddress
@AccountIdType = accountidtype
@AccountIdNo = accountidno
@LicencePictureTwo = licencepicturetwo
@OtherPictureOne = otherpictureone
@OtherPictureTwo = otherpicturetwo
@OtherPictureThree = otherpicturethree
@OtherPictureFour = otherpicturefour
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutMerchantId = params['OutMerchantId']
@MerchantName = params['MerchantName']
@BusinessLicenseType = params['BusinessLicenseType']
@BusinessLicenseNo = params['BusinessLicenseNo']
@BusinessLicensePicture = params['BusinessLicensePicture']
@BusinessLicenseStartDate = params['BusinessLicenseStartDate']
@BusinessLicenseEndDate = params['BusinessLicenseEndDate']
@ClassificationIds = params['ClassificationIds']
@BrandName = params['BrandName']
@Telephone = params['Telephone']
@CityId = params['CityId']
@Address = params['Address']
@OpenHours = params['OpenHours']
@AccountType = params['AccountType']
@BankNo = params['BankNo']
@BankName = params['BankName']
@AccountNo = params['AccountNo']
@AccountName = params['AccountName']
@BossIdType = params['BossIdType']
@BossIdNo = params['BossIdNo']
@BossName = params['BossName']
@BossSex = params['BossSex']
@BossIdCountry = params['BossIdCountry']
@BossPositive = params['BossPositive']
@BossBack = params['BossBack']
@BossStartDate = params['BossStartDate']
@BossEndDate = params['BossEndDate']
@LicencePicture = params['LicencePicture']
@Type = params['Type']
@OrganizationNo = params['OrganizationNo']
@OrganizationStartDate = params['OrganizationStartDate']
@OrganizationPicture = params['OrganizationPicture']
@OrganizationEndDate = params['OrganizationEndDate']
@Intro = params['Intro']
@Logo = params['Logo']
@Tag = params['Tag']
@FinancialTelephone = params['FinancialTelephone']
@FinancialContact = params['FinancialContact']
@TaxRegistrationNo = params['TaxRegistrationNo']
@TaxRegistrationPicture = params['TaxRegistrationPicture']
@TaxRegistrationStartDate = params['TaxRegistrationStartDate']
@TaxRegistrationEndDate = params['TaxRegistrationEndDate']
@AccountBoss = params['AccountBoss']
@AccountManagerName = params['AccountManagerName']
@BossTelephone = params['BossTelephone']
@BossJob = params['BossJob']
@BossEmail = params['BossEmail']
@BossAddress = params['BossAddress']
@AccountIdType = params['AccountIdType']
@AccountIdNo = params['AccountIdNo']
@LicencePictureTwo = params['LicencePictureTwo']
@OtherPictureOne = params['OtherPictureOne']
@OtherPictureTwo = params['OtherPictureTwo']
@OtherPictureThree = params['OtherPictureThree']
@OtherPictureFour = params['OtherPictureFour']
@Profile = params['Profile']
end
end
# AddMerchant返回参数结构体
class AddMerchantResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param Result: 添加商户响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AddMerchantResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = AddMerchantResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 添加商户响应对象
class AddMerchantResult < TencentCloud::Common::AbstractModel
# @param MerchantNo: 系统商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
attr_accessor :MerchantNo
def initialize(merchantno=nil)
@MerchantNo = merchantno
end
def deserialize(params)
@MerchantNo = params['MerchantNo']
end
end
# AddShop请求参数结构体
class AddShopRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutShopId: 机构门店主键(系统有唯一性校验),建议使用门店表的主键ID,防止重复添加门店
# @type OutShopId: String
# @param ShopName: 门店简称(例如:南山店)
# @type ShopName: String
# @param ShopFullName: 门店全称(例如:江山小厨(南山店))
# @type ShopFullName: String
# @param MerchantNo: 商户编号
# @type MerchantNo: String
# @param Telephone: 门店电话
# @type Telephone: String
# @param OpenHours: 营业时间,多个以小写逗号分开(9:00-12:00,13:00-18:00)
# @type OpenHours: String
# @param CityId: 门店所在的城市编码
# @type CityId: String
# @param Address: 门店详细地址,不含省市区县名称
# @type Address: String
# @param PictureOne: 整体门面(含招牌)图片【公共区】
# @type PictureOne: String
# @param PictureTwo: 整体门面(含招牌)图片【公共区】
# @type PictureTwo: String
# @param PictureThree: 店内环境图片【公共区】
# @type PictureThree: String
# @param FinancialTelephone: 负责人手机号码
# @type FinancialTelephone: String
# @param Contact: 门店负责人
# @type Contact: String
# @param Latitude: 百度地图纬度
# @type Latitude: String
# @param LatitudeTwo: 高德地图纬度
# @type LatitudeTwo: String
# @param Longitude: 百度地图经度
# @type Longitude: String
# @param LongitudeTwo: 高德地图经度
# @type LongitudeTwo: String
# @param OtherPicture: 其他照片【公共区】
# @type OtherPicture: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutShopId, :ShopName, :ShopFullName, :MerchantNo, :Telephone, :OpenHours, :CityId, :Address, :PictureOne, :PictureTwo, :PictureThree, :FinancialTelephone, :Contact, :Latitude, :LatitudeTwo, :Longitude, :LongitudeTwo, :OtherPicture, :Profile
def initialize(openid=nil, openkey=nil, outshopid=nil, shopname=nil, shopfullname=nil, merchantno=nil, telephone=nil, openhours=nil, cityid=nil, address=nil, pictureone=nil, picturetwo=nil, picturethree=nil, financialtelephone=nil, contact=nil, latitude=nil, latitudetwo=nil, longitude=nil, longitudetwo=nil, otherpicture=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutShopId = outshopid
@ShopName = shopname
@ShopFullName = shopfullname
@MerchantNo = merchantno
@Telephone = telephone
@OpenHours = openhours
@CityId = cityid
@Address = address
@PictureOne = pictureone
@PictureTwo = picturetwo
@PictureThree = picturethree
@FinancialTelephone = financialtelephone
@Contact = contact
@Latitude = latitude
@LatitudeTwo = latitudetwo
@Longitude = longitude
@LongitudeTwo = longitudetwo
@OtherPicture = otherpicture
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutShopId = params['OutShopId']
@ShopName = params['ShopName']
@ShopFullName = params['ShopFullName']
@MerchantNo = params['MerchantNo']
@Telephone = params['Telephone']
@OpenHours = params['OpenHours']
@CityId = params['CityId']
@Address = params['Address']
@PictureOne = params['PictureOne']
@PictureTwo = params['PictureTwo']
@PictureThree = params['PictureThree']
@FinancialTelephone = params['FinancialTelephone']
@Contact = params['Contact']
@Latitude = params['Latitude']
@LatitudeTwo = params['LatitudeTwo']
@Longitude = params['Longitude']
@LongitudeTwo = params['LongitudeTwo']
@OtherPicture = params['OtherPicture']
@Profile = params['Profile']
end
end
# AddShop返回参数结构体
class AddShopResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 添加申请响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AddShopResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = AddShopResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 添加门店响应对象
class AddShopResult < TencentCloud::Common::AbstractModel
# @param ShopNo: 门店编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopNo: String
attr_accessor :ShopNo
def initialize(shopno=nil)
@ShopNo = shopno
end
def deserialize(params)
@ShopNo = params['ShopNo']
end
end
# 经办人信息
class AgencyClientInfo < TencentCloud::Common::AbstractModel
# @param AgencyClientName: 经办人姓名,存在经办人必输
# @type AgencyClientName: String
# @param AgencyClientGlobalType: 经办人证件类型,存在经办人必输
# @type AgencyClientGlobalType: String
# @param AgencyClientGlobalId: 经办人证件号,存在经办人必输
# @type AgencyClientGlobalId: String
# @param AgencyClientMobile: 经办人手机号,存在经办人必输
# @type AgencyClientMobile: String
attr_accessor :AgencyClientName, :AgencyClientGlobalType, :AgencyClientGlobalId, :AgencyClientMobile
def initialize(agencyclientname=nil, agencyclientglobaltype=nil, agencyclientglobalid=nil, agencyclientmobile=nil)
@AgencyClientName = agencyclientname
@AgencyClientGlobalType = agencyclientglobaltype
@AgencyClientGlobalId = agencyclientglobalid
@AgencyClientMobile = agencyclientmobile
end
def deserialize(params)
@AgencyClientName = params['AgencyClientName']
@AgencyClientGlobalType = params['AgencyClientGlobalType']
@AgencyClientGlobalId = params['AgencyClientGlobalId']
@AgencyClientMobile = params['AgencyClientMobile']
end
end
# 代理商完税证明
class AgentTaxPayment < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播银行账号
# @type AnchorId: String
# @param AnchorName: 主播姓名
# @type AnchorName: String
# @param AnchorIDCard: 主播身份证
# @type AnchorIDCard: String
# @param StartTime: 纳税的开始时间,格式yyyy-MM-dd
# @type StartTime: String
# @param EndTime: 纳税的结束时间,格式yyyy-MM-dd
# @type EndTime: String
# @param Amount: 流水金额。以“分”为单位
# @type Amount: Integer
# @param Tax: 应缴税款。以“分”为单位
# @type Tax: Integer
attr_accessor :AnchorId, :AnchorName, :AnchorIDCard, :StartTime, :EndTime, :Amount, :Tax
def initialize(anchorid=nil, anchorname=nil, anchoridcard=nil, starttime=nil, endtime=nil, amount=nil, tax=nil)
@AnchorId = anchorid
@AnchorName = anchorname
@AnchorIDCard = anchoridcard
@StartTime = starttime
@EndTime = endtime
@Amount = amount
@Tax = tax
end
def deserialize(params)
@AnchorId = params['AnchorId']
@AnchorName = params['AnchorName']
@AnchorIDCard = params['AnchorIDCard']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@Amount = params['Amount']
@Tax = params['Tax']
end
end
# 代理商完税证明批次信息
class AgentTaxPaymentBatch < TencentCloud::Common::AbstractModel
# @param StatusMsg: 状态消息
# @type StatusMsg: String
# @param BatchNum: 批次号
# @type BatchNum: Integer
# @param InfoNum: 录入记录的条数
# @type InfoNum: Integer
# @param RawElectronicCertUrl: 源电子凭证下载地址
# @type RawElectronicCertUrl: String
# @param AgentId: 代理商账号
# @type AgentId: String
# @param FileName: 文件名
# @type FileName: String
# @param StatusCode: 状态码。0表示下载成功
# @type StatusCode: Integer
# @param Channel: 渠道号
# @type Channel: Integer
# @param Type: 0-视同,1-个体工商户
# @type Type: Integer
attr_accessor :StatusMsg, :BatchNum, :InfoNum, :RawElectronicCertUrl, :AgentId, :FileName, :StatusCode, :Channel, :Type
def initialize(statusmsg=nil, batchnum=nil, infonum=nil, rawelectroniccerturl=nil, agentid=nil, filename=nil, statuscode=nil, channel=nil, type=nil)
@StatusMsg = statusmsg
@BatchNum = batchnum
@InfoNum = infonum
@RawElectronicCertUrl = rawelectroniccerturl
@AgentId = agentid
@FileName = filename
@StatusCode = statuscode
@Channel = channel
@Type = type
end
def deserialize(params)
@StatusMsg = params['StatusMsg']
@BatchNum = params['BatchNum']
@InfoNum = params['InfoNum']
@RawElectronicCertUrl = params['RawElectronicCertUrl']
@AgentId = params['AgentId']
@FileName = params['FileName']
@StatusCode = params['StatusCode']
@Channel = params['Channel']
@Type = params['Type']
end
end
# 税前金额结果
class AmountBeforeTaxResult < TencentCloud::Common::AbstractModel
# @param AmountBeforeTax: 税前金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AmountBeforeTax: String
# @param AmountBeforeTaxWithTwoDigitPrecision: 两位精度税前金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AmountBeforeTaxWithTwoDigitPrecision: String
attr_accessor :AmountBeforeTax, :AmountBeforeTaxWithTwoDigitPrecision
def initialize(amountbeforetax=nil, amountbeforetaxwithtwodigitprecision=nil)
@AmountBeforeTax = amountbeforetax
@AmountBeforeTaxWithTwoDigitPrecision = amountbeforetaxwithtwodigitprecision
end
def deserialize(params)
@AmountBeforeTax = params['AmountBeforeTax']
@AmountBeforeTaxWithTwoDigitPrecision = params['AmountBeforeTaxWithTwoDigitPrecision']
end
end
# 主播签约信息
class AnchorContractInfo < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播ID
# @type AnchorId: String
# @param AnchorName: 主播名称
# @type AnchorName: String
# @param AgentId: 代理商ID
# @type AgentId: String
# @param AgentName: 代理商名称
# @type AgentName: String
# @param IdNo: 主播身份证号
# @type IdNo: String
attr_accessor :AnchorId, :AnchorName, :AgentId, :AgentName, :IdNo
def initialize(anchorid=nil, anchorname=nil, agentid=nil, agentname=nil, idno=nil)
@AnchorId = anchorid
@AnchorName = anchorname
@AgentId = agentid
@AgentName = agentname
@IdNo = idno
end
def deserialize(params)
@AnchorId = params['AnchorId']
@AnchorName = params['AnchorName']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
@IdNo = params['IdNo']
end
end
# 主播扩展信息
class AnchorExtendInfo < TencentCloud::Common::AbstractModel
# @param Type: 扩展信息类型
# __id_card_no__:身份证号码
# __id_card_name__:身份证姓名
# __id_card_front__:身份证图片正面
# __id_card_back__:身份证图片反面
# __tax_type__:完税类型:0-自然人,1-个体工商户
# __channel_account__:渠道账号(_敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密)
# @type Type: String
# @param Value: 扩展信息
# @type Value: String
attr_accessor :Type, :Value
def initialize(type=nil, value=nil)
@Type = type
@Value = value
end
def deserialize(params)
@Type = params['Type']
@Value = params['Value']
end
end
# ApplyApplicationMaterial请求参数结构体
class ApplyApplicationMaterialRequest < TencentCloud::Common::AbstractModel
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param DeclareId: 申报流水号
# @type DeclareId: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param SourceCurrency: 源币种
# @type SourceCurrency: String
# @param TargetCurrency: 目的币种
# @type TargetCurrency: String
# @param TradeCode: 贸易编码
# @type TradeCode: String
# @param OriginalDeclareId: 原申报流水号
# @type OriginalDeclareId: String
# @param SourceAmount: 源金额
# @type SourceAmount: Integer
# @param TargetAmount: 目的金额
# @type TargetAmount: Integer
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :TransactionId, :DeclareId, :PayerId, :SourceCurrency, :TargetCurrency, :TradeCode, :OriginalDeclareId, :SourceAmount, :TargetAmount, :Profile
def initialize(transactionid=nil, declareid=nil, payerid=nil, sourcecurrency=nil, targetcurrency=nil, tradecode=nil, originaldeclareid=nil, sourceamount=nil, targetamount=nil, profile=nil)
@TransactionId = transactionid
@DeclareId = declareid
@PayerId = payerid
@SourceCurrency = sourcecurrency
@TargetCurrency = targetcurrency
@TradeCode = tradecode
@OriginalDeclareId = originaldeclareid
@SourceAmount = sourceamount
@TargetAmount = targetamount
@Profile = profile
end
def deserialize(params)
@TransactionId = params['TransactionId']
@DeclareId = params['DeclareId']
@PayerId = params['PayerId']
@SourceCurrency = params['SourceCurrency']
@TargetCurrency = params['TargetCurrency']
@TradeCode = params['TradeCode']
@OriginalDeclareId = params['OriginalDeclareId']
@SourceAmount = params['SourceAmount']
@TargetAmount = params['TargetAmount']
@Profile = params['Profile']
end
end
# ApplyApplicationMaterial返回参数结构体
class ApplyApplicationMaterialResponse < TencentCloud::Common::AbstractModel
# @param Result: 提交申报材料结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyDeclareResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = ApplyDeclareResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 提交申报材料结果
class ApplyDeclareData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TransactionId: 第三方指令编号
# @type TransactionId: String
# @param Status: 受理状态
# @type Status: String
# @param DeclareId: 申报流水号
# @type DeclareId: String
# @param OriginalDeclareId: 原申报流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalDeclareId: String
# @param PayerId: 付款人ID
# @type PayerId: String
attr_accessor :MerchantId, :TransactionId, :Status, :DeclareId, :OriginalDeclareId, :PayerId
def initialize(merchantid=nil, transactionid=nil, status=nil, declareid=nil, originaldeclareid=nil, payerid=nil)
@MerchantId = merchantid
@TransactionId = transactionid
@Status = status
@DeclareId = declareid
@OriginalDeclareId = originaldeclareid
@PayerId = payerid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TransactionId = params['TransactionId']
@Status = params['Status']
@DeclareId = params['DeclareId']
@OriginalDeclareId = params['OriginalDeclareId']
@PayerId = params['PayerId']
end
end
# 提交申报材料结果
class ApplyDeclareResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 提交申报材料数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyDeclareData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = ApplyDeclareData.new
@Data.deserialize(params['Data'])
end
end
end
# ApplyFlexPayment请求参数结构体
class ApplyFlexPaymentRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param FundingAccountInfo: 资金账户信息
# @type FundingAccountInfo: :class:`Tencentcloud::Cpdp.v20190820.models.FlexFundingAccountInfo`
# @param Remark: 提现备注
# @type Remark: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param NotifyUrl: 支付结果通知回调地址
# @type NotifyUrl: String
attr_accessor :PayeeId, :IncomeType, :AmountBeforeTax, :OutOrderId, :FundingAccountInfo, :Remark, :Environment, :NotifyUrl
def initialize(payeeid=nil, incometype=nil, amountbeforetax=nil, outorderid=nil, fundingaccountinfo=nil, remark=nil, environment=nil, notifyurl=nil)
@PayeeId = payeeid
@IncomeType = incometype
@AmountBeforeTax = amountbeforetax
@OutOrderId = outorderid
@FundingAccountInfo = fundingaccountinfo
@Remark = remark
@Environment = environment
@NotifyUrl = notifyurl
end
def deserialize(params)
@PayeeId = params['PayeeId']
@IncomeType = params['IncomeType']
@AmountBeforeTax = params['AmountBeforeTax']
@OutOrderId = params['OutOrderId']
unless params['FundingAccountInfo'].nil?
@FundingAccountInfo = FlexFundingAccountInfo.new
@FundingAccountInfo.deserialize(params['FundingAccountInfo'])
end
@Remark = params['Remark']
@Environment = params['Environment']
@NotifyUrl = params['NotifyUrl']
end
end
# ApplyFlexPayment返回参数结构体
class ApplyFlexPaymentResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyFlexPaymentResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyFlexPaymentResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 付款结果
class ApplyFlexPaymentResult < TencentCloud::Common::AbstractModel
# @param OrderId: 订单ID
# @type OrderId: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param AmountAfterTax: 税后金额
# @type AmountAfterTax: String
# @param Tax: 税金
# @type Tax: String
# @param Vat: 增值税
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Vat: String
# @param IndividualIncomeTax: 个人所得税
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IndividualIncomeTax: String
# @param AdditionalTaxSum: 附加税总税额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AdditionalTaxSum: String
# @param AdditionalTaxItem: 附加税税项。格式为JSON格式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AdditionalTaxItem: String
attr_accessor :OrderId, :AmountBeforeTax, :AmountAfterTax, :Tax, :Vat, :IndividualIncomeTax, :AdditionalTaxSum, :AdditionalTaxItem
def initialize(orderid=nil, amountbeforetax=nil, amountaftertax=nil, tax=nil, vat=nil, individualincometax=nil, additionaltaxsum=nil, additionaltaxitem=nil)
@OrderId = orderid
@AmountBeforeTax = amountbeforetax
@AmountAfterTax = amountaftertax
@Tax = tax
@Vat = vat
@IndividualIncomeTax = individualincometax
@AdditionalTaxSum = additionaltaxsum
@AdditionalTaxItem = additionaltaxitem
end
def deserialize(params)
@OrderId = params['OrderId']
@AmountBeforeTax = params['AmountBeforeTax']
@AmountAfterTax = params['AmountAfterTax']
@Tax = params['Tax']
@Vat = params['Vat']
@IndividualIncomeTax = params['IndividualIncomeTax']
@AdditionalTaxSum = params['AdditionalTaxSum']
@AdditionalTaxItem = params['AdditionalTaxItem']
end
end
# ApplyFlexSettlement请求参数结构体
class ApplyFlexSettlementRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param Remark: 备注
# @type Remark: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :IncomeType, :AmountBeforeTax, :OutOrderId, :Remark, :Environment
def initialize(payeeid=nil, incometype=nil, amountbeforetax=nil, outorderid=nil, remark=nil, environment=nil)
@PayeeId = payeeid
@IncomeType = incometype
@AmountBeforeTax = amountbeforetax
@OutOrderId = outorderid
@Remark = remark
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@IncomeType = params['IncomeType']
@AmountBeforeTax = params['AmountBeforeTax']
@OutOrderId = params['OutOrderId']
@Remark = params['Remark']
@Environment = params['Environment']
end
end
# ApplyFlexSettlement返回参数结构体
class ApplyFlexSettlementResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyFlexSettlementResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyFlexSettlementResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 结算结果
class ApplyFlexSettlementResult < TencentCloud::Common::AbstractModel
# @param OrderId: 订单ID
# @type OrderId: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param AmountAfterTax: 税后金额
# @type AmountAfterTax: String
# @param Tax: 税金
# @type Tax: String
attr_accessor :OrderId, :AmountBeforeTax, :AmountAfterTax, :Tax
def initialize(orderid=nil, amountbeforetax=nil, amountaftertax=nil, tax=nil)
@OrderId = orderid
@AmountBeforeTax = amountbeforetax
@AmountAfterTax = amountaftertax
@Tax = tax
end
def deserialize(params)
@OrderId = params['OrderId']
@AmountBeforeTax = params['AmountBeforeTax']
@AmountAfterTax = params['AmountAfterTax']
@Tax = params['Tax']
end
end
# ApplyOpenBankOrderDetailReceipt请求参数结构体
class ApplyOpenBankOrderDetailReceiptRequest < TencentCloud::Common::AbstractModel
# @param OutApplyId: 外部回单申请编号
# @type OutApplyId: String
# @param ChannelMerchantId: 渠道商户ID
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称,目前只支持ALIPAY
# @type ChannelName: String
# @param PaymentMethod: 支付方式,目前只支持SAFT_ISV
# @type PaymentMethod: String
# @param ChannelOrderId: 云企付平台订单号
# @type ChannelOrderId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :OutApplyId, :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :ChannelOrderId, :Environment
def initialize(outapplyid=nil, channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, channelorderid=nil, environment=nil)
@OutApplyId = outapplyid
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@ChannelOrderId = channelorderid
@Environment = environment
end
def deserialize(params)
@OutApplyId = params['OutApplyId']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@ChannelOrderId = params['ChannelOrderId']
@Environment = params['Environment']
end
end
# ApplyOpenBankOrderDetailReceipt返回参数结构体
class ApplyOpenBankOrderDetailReceiptResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyOpenBankOrderDetailReceiptResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyOpenBankOrderDetailReceiptResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 申请单笔交易回单结果
class ApplyOpenBankOrderDetailReceiptResult < TencentCloud::Common::AbstractModel
# @param ChannelApplyId: 渠道回单申请ID
# @type ChannelApplyId: String
# @param ReceiptStatus: 申请状态。
# SUCCESS:申请成功;
# FAILED:申请失败;
# PROCESSING:申请中。
# 注意:若返回申请中,需要再次调用回单申请结果查询接口,查询结果。
# @type ReceiptStatus: String
# @param ReceiptMessage: 申请返回描述,例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReceiptMessage: String
# @param DownloadUrl: 回单下载链接,申请成功时返回。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DownloadUrl: String
# @param ExpireTime: 过期时间,yyyy-MM-dd HH:mm:ss格式。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExpireTime: String
attr_accessor :ChannelApplyId, :ReceiptStatus, :ReceiptMessage, :DownloadUrl, :ExpireTime
def initialize(channelapplyid=nil, receiptstatus=nil, receiptmessage=nil, downloadurl=nil, expiretime=nil)
@ChannelApplyId = channelapplyid
@ReceiptStatus = receiptstatus
@ReceiptMessage = receiptmessage
@DownloadUrl = downloadurl
@ExpireTime = expiretime
end
def deserialize(params)
@ChannelApplyId = params['ChannelApplyId']
@ReceiptStatus = params['ReceiptStatus']
@ReceiptMessage = params['ReceiptMessage']
@DownloadUrl = params['DownloadUrl']
@ExpireTime = params['ExpireTime']
end
end
# ApplyOpenBankSettleOrder请求参数结构体
class ApplyOpenBankSettleOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号
# @type ChannelMerchantId: String
# @param OutSettleId: 外部结算流水号
# @type OutSettleId: String
# @param SettleAmount: 结算金额
# @type SettleAmount: Integer
# @param ChannelName: 渠道名称。详见附录-枚举类型-ChannelName。
# @type ChannelName: String
# @param ChannelSubMerchantId: 渠道子商户号
# @type ChannelSubMerchantId: String
# @param SettleDetail: 结算备注
# @type SettleDetail: String
# @param NotifyUrl: 结算成功回调地址
# @type NotifyUrl: String
# @param Remark: 附言
# @type Remark: String
# @param ExternalSettleData: 结算第三方渠道扩展信息。通联国际必选
# @type ExternalSettleData: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutSettleId, :SettleAmount, :ChannelName, :ChannelSubMerchantId, :SettleDetail, :NotifyUrl, :Remark, :ExternalSettleData, :Environment
def initialize(channelmerchantid=nil, outsettleid=nil, settleamount=nil, channelname=nil, channelsubmerchantid=nil, settledetail=nil, notifyurl=nil, remark=nil, externalsettledata=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutSettleId = outsettleid
@SettleAmount = settleamount
@ChannelName = channelname
@ChannelSubMerchantId = channelsubmerchantid
@SettleDetail = settledetail
@NotifyUrl = notifyurl
@Remark = remark
@ExternalSettleData = externalsettledata
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutSettleId = params['OutSettleId']
@SettleAmount = params['SettleAmount']
@ChannelName = params['ChannelName']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@SettleDetail = params['SettleDetail']
@NotifyUrl = params['NotifyUrl']
@Remark = params['Remark']
@ExternalSettleData = params['ExternalSettleData']
@Environment = params['Environment']
end
end
# ApplyOpenBankSettleOrder返回参数结构体
class ApplyOpenBankSettleOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误信息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyOpenBankSettleOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyOpenBankSettleOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付结算申请结果
class ApplyOpenBankSettleOrderResult < TencentCloud::Common::AbstractModel
# @param OutSettleId: 外部结算流水号
# @type OutSettleId: String
# @param ChannelSettleId: 渠道结算流水号
# @type ChannelSettleId: String
# @param SettleStatus: 退款状态。
# SUCCESS:结算成功;
# FAILED:结算失败;
# PROCESSING:结算中;
# INIT:初始化;
# ACCEPT_FAILED:受理失败,底层银行返回订单不存在
# ACCEPTED:受理成功
# _UNKNOWN:默认未知
# @type SettleStatus: String
attr_accessor :OutSettleId, :ChannelSettleId, :SettleStatus
def initialize(outsettleid=nil, channelsettleid=nil, settlestatus=nil)
@OutSettleId = outsettleid
@ChannelSettleId = channelsettleid
@SettleStatus = settlestatus
end
def deserialize(params)
@OutSettleId = params['OutSettleId']
@ChannelSettleId = params['ChannelSettleId']
@SettleStatus = params['SettleStatus']
end
end
# ApplyOpenBankSubMerchantSignOnline请求参数结构体
class ApplyOpenBankSubMerchantSignOnlineRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。外部平台接入云企付平台下发。必填。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。详见附录-枚举类型-ChannelName。
# @type ChannelName: String
# @param OutSubMerchantId: 外部子商户ID。
# @type OutSubMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param NotifyUrl: 签约成功回调地址。
# @type NotifyUrl: String
attr_accessor :ChannelMerchantId, :ChannelName, :OutSubMerchantId, :ChannelSubMerchantId, :NotifyUrl
def initialize(channelmerchantid=nil, channelname=nil, outsubmerchantid=nil, channelsubmerchantid=nil, notifyurl=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@OutSubMerchantId = outsubmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@NotifyUrl = notifyurl
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@OutSubMerchantId = params['OutSubMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@NotifyUrl = params['NotifyUrl']
end
end
# ApplyOpenBankSubMerchantSignOnline返回参数结构体
class ApplyOpenBankSubMerchantSignOnlineResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误信息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyOpenBankSubMerchantSignOnlineResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyOpenBankSubMerchantSignOnlineResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户在线签约返回结果
class ApplyOpenBankSubMerchantSignOnlineResult < TencentCloud::Common::AbstractModel
# @param SignStatus: 处理状态
# SUCCESS:签约成功
# FAILED:签约失败
# PROCESSING:签约中
# @type SignStatus: String
# @param SignMessage: 上传返回描述,例如失败原因等
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SignMessage: String
# @param ExternalReturnData: 第三方渠道返回信息,见渠道特殊说明
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
attr_accessor :SignStatus, :SignMessage, :ExternalReturnData
def initialize(signstatus=nil, signmessage=nil, externalreturndata=nil)
@SignStatus = signstatus
@SignMessage = signmessage
@ExternalReturnData = externalreturndata
end
def deserialize(params)
@SignStatus = params['SignStatus']
@SignMessage = params['SignMessage']
@ExternalReturnData = params['ExternalReturnData']
end
end
# 汇出指令申请数据
class ApplyOutwardOrderData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param Status: 受理状态
# @type Status: String
attr_accessor :MerchantId, :TransactionId, :Status
def initialize(merchantid=nil, transactionid=nil, status=nil)
@MerchantId = merchantid
@TransactionId = transactionid
@Status = status
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TransactionId = params['TransactionId']
@Status = params['Status']
end
end
# ApplyOutwardOrder请求参数结构体
class ApplyOutwardOrderRequest < TencentCloud::Common::AbstractModel
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param PricingCurrency: 定价币种
# @type PricingCurrency: String
# @param SourceCurrency: 源币种
# @type SourceCurrency: String
# @param TargetCurrency: 目的币种
# @type TargetCurrency: String
# @param PayeeType: 收款人类型(银行卡填"BANK_ACCOUNT")
# @type PayeeType: String
# @param PayeeAccount: 收款人账号
# @type PayeeAccount: String
# @param SourceAmount: 源币种金额
# @type SourceAmount: Float
# @param TargetAmount: 目的金额
# @type TargetAmount: Float
# @param PayeeName: 收款人姓名(PayeeType为"BANK_COUNT"时必填)
# @type PayeeName: String
# @param PayeeAddress: 收款人地址(PayeeType为"BANK_COUNT"时必填)
# @type PayeeAddress: String
# @param PayeeBankAccountType: 收款人银行账号类型(PayeeType为"BANK_COUNT"时必填)
# 个人填"INDIVIDUAL"
# 企业填"CORPORATE"
# @type PayeeBankAccountType: String
# @param PayeeCountryCode: 收款人国家或地区编码(PayeeType为"BANK_COUNT"时必填)
# @type PayeeCountryCode: String
# @param PayeeBankName: 收款人开户银行名称(PayeeType为"BANK_COUNT"时必填)
# @type PayeeBankName: String
# @param PayeeBankAddress: 收款人开户银行地址(PayeeType为"BANK_COUNT"时必填)
# @type PayeeBankAddress: String
# @param PayeeBankDistrict: 收款人开户银行所在国家或地区编码(PayeeType为"BANK_COUNT"时必填)
# @type PayeeBankDistrict: String
# @param PayeeBankSwiftCode: 收款银行SwiftCode(PayeeType为"BANK_COUNT"时必填)
# @type PayeeBankSwiftCode: String
# @param PayeeBankType: 收款银行国际编码类型
# @type PayeeBankType: String
# @param PayeeBankCode: 收款银行国际编码
# @type PayeeBankCode: String
# @param ReferenceForBeneficiary: 收款人附言
# @type ReferenceForBeneficiary: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :TransactionId, :PricingCurrency, :SourceCurrency, :TargetCurrency, :PayeeType, :PayeeAccount, :SourceAmount, :TargetAmount, :PayeeName, :PayeeAddress, :PayeeBankAccountType, :PayeeCountryCode, :PayeeBankName, :PayeeBankAddress, :PayeeBankDistrict, :PayeeBankSwiftCode, :PayeeBankType, :PayeeBankCode, :ReferenceForBeneficiary, :Profile
def initialize(transactionid=nil, pricingcurrency=nil, sourcecurrency=nil, targetcurrency=nil, payeetype=nil, payeeaccount=nil, sourceamount=nil, targetamount=nil, payeename=nil, payeeaddress=nil, payeebankaccounttype=nil, payeecountrycode=nil, payeebankname=nil, payeebankaddress=nil, payeebankdistrict=nil, payeebankswiftcode=nil, payeebanktype=nil, payeebankcode=nil, referenceforbeneficiary=nil, profile=nil)
@TransactionId = transactionid
@PricingCurrency = pricingcurrency
@SourceCurrency = sourcecurrency
@TargetCurrency = targetcurrency
@PayeeType = payeetype
@PayeeAccount = payeeaccount
@SourceAmount = sourceamount
@TargetAmount = targetamount
@PayeeName = payeename
@PayeeAddress = payeeaddress
@PayeeBankAccountType = payeebankaccounttype
@PayeeCountryCode = payeecountrycode
@PayeeBankName = payeebankname
@PayeeBankAddress = payeebankaddress
@PayeeBankDistrict = payeebankdistrict
@PayeeBankSwiftCode = payeebankswiftcode
@PayeeBankType = payeebanktype
@PayeeBankCode = payeebankcode
@ReferenceForBeneficiary = referenceforbeneficiary
@Profile = profile
end
def deserialize(params)
@TransactionId = params['TransactionId']
@PricingCurrency = params['PricingCurrency']
@SourceCurrency = params['SourceCurrency']
@TargetCurrency = params['TargetCurrency']
@PayeeType = params['PayeeType']
@PayeeAccount = params['PayeeAccount']
@SourceAmount = params['SourceAmount']
@TargetAmount = params['TargetAmount']
@PayeeName = params['PayeeName']
@PayeeAddress = params['PayeeAddress']
@PayeeBankAccountType = params['PayeeBankAccountType']
@PayeeCountryCode = params['PayeeCountryCode']
@PayeeBankName = params['PayeeBankName']
@PayeeBankAddress = params['PayeeBankAddress']
@PayeeBankDistrict = params['PayeeBankDistrict']
@PayeeBankSwiftCode = params['PayeeBankSwiftCode']
@PayeeBankType = params['PayeeBankType']
@PayeeBankCode = params['PayeeBankCode']
@ReferenceForBeneficiary = params['ReferenceForBeneficiary']
@Profile = params['Profile']
end
end
# ApplyOutwardOrder返回参数结构体
class ApplyOutwardOrderResponse < TencentCloud::Common::AbstractModel
# @param Result: 汇出指令申请
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyOutwardOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = ApplyOutwardOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 汇出指令申请结果
class ApplyOutwardOrderResult < TencentCloud::Common::AbstractModel
# @param Data: 汇出指令申请数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyOutwardOrderData`
# @param Code: 错误码
# @type Code: String
attr_accessor :Data, :Code
def initialize(data=nil, code=nil)
@Data = data
@Code = code
end
def deserialize(params)
unless params['Data'].nil?
@Data = ApplyOutwardOrderData.new
@Data.deserialize(params['Data'])
end
@Code = params['Code']
end
end
# ApplyPayerInfo请求参数结构体
class ApplyPayerInfoRequest < TencentCloud::Common::AbstractModel
# @param PayerId: 付款人ID
# @type PayerId: String
# @param PayerType: 付款人类型 (个人: INDIVIDUAL, 企业: CORPORATE)
# @type PayerType: String
# @param PayerName: 付款人姓名
# @type PayerName: String
# @param PayerIdType: 付款人证件类型 (身份证: ID_CARD, 统一社会信用代码: UNIFIED_CREDIT_CODE)
# @type PayerIdType: String
# @param PayerIdNo: 付款人证件号
# @type PayerIdNo: String
# @param PayerCountryCode: 付款人常驻国家或地区编码 (见常见问题-国家/地区编码)
# @type PayerCountryCode: String
# @param PayerContactName: 付款人联系人名称
# @type PayerContactName: String
# @param PayerContactNumber: 付款人联系电话
# @type PayerContactNumber: String
# @param PayerEmailAddress: 付款人联系邮箱
# @type PayerEmailAddress: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :PayerId, :PayerType, :PayerName, :PayerIdType, :PayerIdNo, :PayerCountryCode, :PayerContactName, :PayerContactNumber, :PayerEmailAddress, :Profile
def initialize(payerid=nil, payertype=nil, payername=nil, payeridtype=nil, payeridno=nil, payercountrycode=nil, payercontactname=nil, payercontactnumber=nil, payeremailaddress=nil, profile=nil)
@PayerId = payerid
@PayerType = payertype
@PayerName = payername
@PayerIdType = payeridtype
@PayerIdNo = payeridno
@PayerCountryCode = payercountrycode
@PayerContactName = payercontactname
@PayerContactNumber = payercontactnumber
@PayerEmailAddress = payeremailaddress
@Profile = profile
end
def deserialize(params)
@PayerId = params['PayerId']
@PayerType = params['PayerType']
@PayerName = params['PayerName']
@PayerIdType = params['PayerIdType']
@PayerIdNo = params['PayerIdNo']
@PayerCountryCode = params['PayerCountryCode']
@PayerContactName = params['PayerContactName']
@PayerContactNumber = params['PayerContactNumber']
@PayerEmailAddress = params['PayerEmailAddress']
@Profile = params['Profile']
end
end
# ApplyPayerInfo返回参数结构体
class ApplyPayerInfoResponse < TencentCloud::Common::AbstractModel
# @param Result: 付款人申请结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyPayerinfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = ApplyPayerinfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 付款人申请结果
class ApplyPayerinfoData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param Status: 状态
# @type Status: String
# @param FailReason: 失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
attr_accessor :MerchantId, :PayerId, :Status, :FailReason
def initialize(merchantid=nil, payerid=nil, status=nil, failreason=nil)
@MerchantId = merchantid
@PayerId = payerid
@Status = status
@FailReason = failreason
end
def deserialize(params)
@MerchantId = params['MerchantId']
@PayerId = params['PayerId']
@Status = params['Status']
@FailReason = params['FailReason']
end
end
# 付款人申请结果
class ApplyPayerinfoResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyPayerinfoData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = ApplyPayerinfoData.new
@Data.deserialize(params['Data'])
end
end
end
# ApplyReWithdrawal请求参数结构体
class ApplyReWithdrawalRequest < TencentCloud::Common::AbstractModel
# @param BusinessType: 聚鑫业务类型
# @type BusinessType: Integer
# @param MidasSecretId: 由平台客服提供的计费密钥Id
# @type MidasSecretId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param Body: 提现信息
# @type Body: :class:`Tencentcloud::Cpdp.v20190820.models.WithdrawBill`
# @param MidasAppId: 聚鑫业务ID
# @type MidasAppId: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :BusinessType, :MidasSecretId, :MidasSignature, :Body, :MidasAppId, :MidasEnvironment
def initialize(businesstype=nil, midassecretid=nil, midassignature=nil, body=nil, midasappid=nil, midasenvironment=nil)
@BusinessType = businesstype
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@Body = body
@MidasAppId = midasappid
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@BusinessType = params['BusinessType']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
unless params['Body'].nil?
@Body = WithdrawBill.new
@Body.deserialize(params['Body'])
end
@MidasAppId = params['MidasAppId']
@MidasEnvironment = params['MidasEnvironment']
end
end
# ApplyReWithdrawal返回参数结构体
class ApplyReWithdrawalResponse < TencentCloud::Common::AbstractModel
# @param WithdrawOrderId: 重新提现业务订单号
# @type WithdrawOrderId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :WithdrawOrderId, :RequestId
def initialize(withdraworderid=nil, requestid=nil)
@WithdrawOrderId = withdraworderid
@RequestId = requestid
end
def deserialize(params)
@WithdrawOrderId = params['WithdrawOrderId']
@RequestId = params['RequestId']
end
end
# ApplyReconciliationFile请求参数结构体
class ApplyReconciliationFileRequest < TencentCloud::Common::AbstractModel
# @param ApplyFileType: 申请的文件类型。
# __CZ__:充值文件
# __TX__:提现文件
# __JY__:交易文件
# __YE__:余额文件
# @type ApplyFileType: String
# @param ApplyFileDate: 申请的对账文件日期,格式:yyyyMMdd。
# @type ApplyFileDate: String
# @param BankAccountNumber: 父账户账号。
# _平安渠道为资金汇总账号_
# @type BankAccountNumber: String
# @param MidasEnvironment: 环境名。
# __release__: 现网环境
# __sandbox__: 沙箱环境
# __development__: 开发环境
# _缺省: release_
# @type MidasEnvironment: String
attr_accessor :ApplyFileType, :ApplyFileDate, :BankAccountNumber, :MidasEnvironment
def initialize(applyfiletype=nil, applyfiledate=nil, bankaccountnumber=nil, midasenvironment=nil)
@ApplyFileType = applyfiletype
@ApplyFileDate = applyfiledate
@BankAccountNumber = bankaccountnumber
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@ApplyFileType = params['ApplyFileType']
@ApplyFileDate = params['ApplyFileDate']
@BankAccountNumber = params['BankAccountNumber']
@MidasEnvironment = params['MidasEnvironment']
end
end
# ApplyReconciliationFile返回参数结构体
class ApplyReconciliationFileResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyReconciliationFileResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ApplyReconciliationFileResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 申请对账文件结果
class ApplyReconciliationFileResult < TencentCloud::Common::AbstractModel
# @param ApplyFileId: 申请对账文件的任务ID。
# @type ApplyFileId: String
# @param ApplyStatus: 对账文件申请状态。
# __I__:申请中
# __S__:申请成功
# __F__:申请失败
# @type ApplyStatus: String
# @param ApplyMessage: 申请结果描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ApplyMessage: String
attr_accessor :ApplyFileId, :ApplyStatus, :ApplyMessage
def initialize(applyfileid=nil, applystatus=nil, applymessage=nil)
@ApplyFileId = applyfileid
@ApplyStatus = applystatus
@ApplyMessage = applymessage
end
def deserialize(params)
@ApplyFileId = params['ApplyFileId']
@ApplyStatus = params['ApplyStatus']
@ApplyMessage = params['ApplyMessage']
end
end
# 提交贸易材料结果
class ApplyTradeData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TradeFileId: 贸易材料流水号
# @type TradeFileId: String
# @param TradeCurrency: 交易币种
# @type TradeCurrency: String
# @param TradeAmount: 交易金额
# @type TradeAmount: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param Status: 状态
# @type Status: String
attr_accessor :MerchantId, :TradeFileId, :TradeCurrency, :TradeAmount, :PayerId, :Status
def initialize(merchantid=nil, tradefileid=nil, tradecurrency=nil, tradeamount=nil, payerid=nil, status=nil)
@MerchantId = merchantid
@TradeFileId = tradefileid
@TradeCurrency = tradecurrency
@TradeAmount = tradeamount
@PayerId = payerid
@Status = status
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TradeFileId = params['TradeFileId']
@TradeCurrency = params['TradeCurrency']
@TradeAmount = params['TradeAmount']
@PayerId = params['PayerId']
@Status = params['Status']
end
end
# ApplyTrade请求参数结构体
class ApplyTradeRequest < TencentCloud::Common::AbstractModel
# @param TradeFileId: 贸易材料流水号
# @type TradeFileId: String
# @param TradeOrderId: 贸易材料订单号
# @type TradeOrderId: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param PayeeName: 收款人姓名
# @type PayeeName: String
# @param PayeeCountryCode: 收款人常驻国家或地区编码 (见常见问题)
# @type PayeeCountryCode: String
# @param TradeType: 贸易类型 (GOODS: 商品, SERVICE: 服务)
# @type TradeType: String
# @param TradeTime: 交易时间 (格式: yyyyMMdd)
# @type TradeTime: String
# @param TradeCurrency: 交易币种
# @type TradeCurrency: String
# @param TradeAmount: 交易金额
# @type TradeAmount: Float
# @param TradeName: 交易名称
# (TradeType=GOODS时填写物品名称,可填写多个,格式无要求;
# TradeType=SERVICE时填写贸易类别,见常见问题-贸易类别)
# @type TradeName: String
# @param TradeCount: 交易数量 (TradeType=GOODS 填写物品数量, TradeType=SERVICE填写服务次数)
# @type TradeCount: Integer
# @param GoodsCarrier: 货贸承运人 (TradeType=GOODS 必填)
# @type GoodsCarrier: String
# @param ServiceDetail: 服贸交易细节 (TradeType=GOODS 必填, 见常见问题-交易细节)
# @type ServiceDetail: String
# @param ServiceTime: 服贸服务时间 (TradeType=GOODS 必填, 见常见问题-服务时间)
# @type ServiceTime: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :TradeFileId, :TradeOrderId, :PayerId, :PayeeName, :PayeeCountryCode, :TradeType, :TradeTime, :TradeCurrency, :TradeAmount, :TradeName, :TradeCount, :GoodsCarrier, :ServiceDetail, :ServiceTime, :Profile
def initialize(tradefileid=nil, tradeorderid=nil, payerid=nil, payeename=nil, payeecountrycode=nil, tradetype=nil, tradetime=nil, tradecurrency=nil, tradeamount=nil, tradename=nil, tradecount=nil, goodscarrier=nil, servicedetail=nil, servicetime=nil, profile=nil)
@TradeFileId = tradefileid
@TradeOrderId = tradeorderid
@PayerId = payerid
@PayeeName = payeename
@PayeeCountryCode = payeecountrycode
@TradeType = tradetype
@TradeTime = tradetime
@TradeCurrency = tradecurrency
@TradeAmount = tradeamount
@TradeName = tradename
@TradeCount = tradecount
@GoodsCarrier = goodscarrier
@ServiceDetail = servicedetail
@ServiceTime = servicetime
@Profile = profile
end
def deserialize(params)
@TradeFileId = params['TradeFileId']
@TradeOrderId = params['TradeOrderId']
@PayerId = params['PayerId']
@PayeeName = params['PayeeName']
@PayeeCountryCode = params['PayeeCountryCode']
@TradeType = params['TradeType']
@TradeTime = params['TradeTime']
@TradeCurrency = params['TradeCurrency']
@TradeAmount = params['TradeAmount']
@TradeName = params['TradeName']
@TradeCount = params['TradeCount']
@GoodsCarrier = params['GoodsCarrier']
@ServiceDetail = params['ServiceDetail']
@ServiceTime = params['ServiceTime']
@Profile = params['Profile']
end
end
# ApplyTrade返回参数结构体
class ApplyTradeResponse < TencentCloud::Common::AbstractModel
# @param Result: 提交贸易材料结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyTradeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = ApplyTradeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 提交贸易材料结果
class ApplyTradeResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 提交贸易材料数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.ApplyTradeData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = ApplyTradeData.new
@Data.deserialize(params['Data'])
end
end
end
# ApplyWithdrawal请求参数结构体
class ApplyWithdrawalRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SettleAcctNo: 用于提现
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctNo: String
# @param SettleAcctName: 结算账户户名
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctName: String
# @param CurrencyType: 币种 RMB
# @type CurrencyType: String
# @param CurrencyUnit: 单位,1:元,2:角,3:分
# @type CurrencyUnit: Integer
# @param CurrencyAmt: 金额
# @type CurrencyAmt: String
# @param TranWebName: 交易网名称
# @type TranWebName: String
# @param IdType: 会员证件类型
# @type IdType: String
# @param IdCode: 会员证件号码
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type IdCode: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param CommissionAmount: 手续费金额
# @type CommissionAmount: String
# @param WithdrawOrderId: 提现单号,长度32字节
# @type WithdrawOrderId: String
attr_accessor :MidasAppId, :SubAppId, :SettleAcctNo, :SettleAcctName, :CurrencyType, :CurrencyUnit, :CurrencyAmt, :TranWebName, :IdType, :IdCode, :MidasSecretId, :MidasSignature, :EncryptType, :MidasEnvironment, :CommissionAmount, :WithdrawOrderId
def initialize(midasappid=nil, subappid=nil, settleacctno=nil, settleacctname=nil, currencytype=nil, currencyunit=nil, currencyamt=nil, tranwebname=nil, idtype=nil, idcode=nil, midassecretid=nil, midassignature=nil, encrypttype=nil, midasenvironment=nil, commissionamount=nil, withdraworderid=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@SettleAcctNo = settleacctno
@SettleAcctName = settleacctname
@CurrencyType = currencytype
@CurrencyUnit = currencyunit
@CurrencyAmt = currencyamt
@TranWebName = tranwebname
@IdType = idtype
@IdCode = idcode
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
@CommissionAmount = commissionamount
@WithdrawOrderId = withdraworderid
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@SettleAcctNo = params['SettleAcctNo']
@SettleAcctName = params['SettleAcctName']
@CurrencyType = params['CurrencyType']
@CurrencyUnit = params['CurrencyUnit']
@CurrencyAmt = params['CurrencyAmt']
@TranWebName = params['TranWebName']
@IdType = params['IdType']
@IdCode = params['IdCode']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
@CommissionAmount = params['CommissionAmount']
@WithdrawOrderId = params['WithdrawOrderId']
end
end
# ApplyWithdrawal返回参数结构体
class ApplyWithdrawalResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# 分配关系
class AssignmentData < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播ID
# @type AnchorId: String
# @param AnchorName: 主播名称
# @type AnchorName: String
# @param AgentId: 代理商ID
# @type AgentId: String
# @param AgentName: 代理商名称
# @type AgentName: String
attr_accessor :AnchorId, :AnchorName, :AgentId, :AgentName
def initialize(anchorid=nil, anchorname=nil, agentid=nil, agentname=nil)
@AnchorId = anchorid
@AnchorName = anchorname
@AgentId = agentid
@AgentName = agentname
end
def deserialize(params)
@AnchorId = params['AnchorId']
@AnchorName = params['AnchorName']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
end
end
# 支行信息
class BankBranchInfo < TencentCloud::Common::AbstractModel
# @param BankName: 银行名称。
# @type BankName: String
# @param BankAbbreviation: 银行简称。
# @type BankAbbreviation: String
# @param BankBranchName: 支行名。
# @type BankBranchName: String
# @param BankBranchId: 联行号。
# @type BankBranchId: String
attr_accessor :BankName, :BankAbbreviation, :BankBranchName, :BankBranchId
def initialize(bankname=nil, bankabbreviation=nil, bankbranchname=nil, bankbranchid=nil)
@BankName = bankname
@BankAbbreviation = bankabbreviation
@BankBranchName = bankbranchname
@BankBranchId = bankbranchid
end
def deserialize(params)
@BankName = params['BankName']
@BankAbbreviation = params['BankAbbreviation']
@BankBranchName = params['BankBranchName']
@BankBranchId = params['BankBranchId']
end
end
# 绑卡列表
class BankCardItem < TencentCloud::Common::AbstractModel
# @param EiconBankBranchId: 超级网银行号
# @type EiconBankBranchId: String
# @param CnapsBranchId: 大小额行号
# @type CnapsBranchId: String
# @param SettleAcctType: 结算账户类型
# 1 – 本行账户
# 2 – 他行账户
# @type SettleAcctType: Integer
# @param SettleAcctName: 结算账户户名
# <敏感信息>
# @type SettleAcctName: String
# @param AcctBranchName: 开户行名称
# @type AcctBranchName: String
# @param SettleAcctNo: 用于提现
# <敏感信息>
# @type SettleAcctNo: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param BindType: 验证类型
# 1 – 小额转账验证
# 2 – 短信验证
# @type BindType: Integer
# @param Mobile: 用于短信验证
# BindType==2时必填
# <敏感信息>
# @type Mobile: String
# @param IdType: 证件类型
# @type IdType: String
# @param IdCode: 证件号码
# <敏感信息>
# @type IdCode: String
attr_accessor :EiconBankBranchId, :CnapsBranchId, :SettleAcctType, :SettleAcctName, :AcctBranchName, :SettleAcctNo, :SubAppId, :BindType, :Mobile, :IdType, :IdCode
def initialize(eiconbankbranchid=nil, cnapsbranchid=nil, settleaccttype=nil, settleacctname=nil, acctbranchname=nil, settleacctno=nil, subappid=nil, bindtype=nil, mobile=nil, idtype=nil, idcode=nil)
@EiconBankBranchId = eiconbankbranchid
@CnapsBranchId = cnapsbranchid
@SettleAcctType = settleaccttype
@SettleAcctName = settleacctname
@AcctBranchName = acctbranchname
@SettleAcctNo = settleacctno
@SubAppId = subappid
@BindType = bindtype
@Mobile = mobile
@IdType = idtype
@IdCode = idcode
end
def deserialize(params)
@EiconBankBranchId = params['EiconBankBranchId']
@CnapsBranchId = params['CnapsBranchId']
@SettleAcctType = params['SettleAcctType']
@SettleAcctName = params['SettleAcctName']
@AcctBranchName = params['AcctBranchName']
@SettleAcctNo = params['SettleAcctNo']
@SubAppId = params['SubAppId']
@BindType = params['BindType']
@Mobile = params['Mobile']
@IdType = params['IdType']
@IdCode = params['IdCode']
end
end
# 机构账单文件下载地址响应对象
class BillDownloadUrlResult < TencentCloud::Common::AbstractModel
# @param DownloadUrl: 对账单下载地址。GET方式访问,返回zip包,解压后为csv格式文件。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DownloadUrl: String
attr_accessor :DownloadUrl
def initialize(downloadurl=nil)
@DownloadUrl = downloadurl
end
def deserialize(params)
@DownloadUrl = params['DownloadUrl']
end
end
# BindAccount请求参数结构体
class BindAccountRequest < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播Id
# @type AnchorId: String
# @param TransferType: 1 微信企业付款
# 2 支付宝转账
# 3 平安银企直连代发转账
# @type TransferType: Integer
# @param AccountNo: 收款方标识。
# 微信为open_id;
# 支付宝为会员alipay_user_id;
# 平安为收款方银行账号;
# @type AccountNo: String
# @param PhoneNum: 手机号
# @type PhoneNum: String
attr_accessor :AnchorId, :TransferType, :AccountNo, :PhoneNum
def initialize(anchorid=nil, transfertype=nil, accountno=nil, phonenum=nil)
@AnchorId = anchorid
@TransferType = transfertype
@AccountNo = accountno
@PhoneNum = phonenum
end
def deserialize(params)
@AnchorId = params['AnchorId']
@TransferType = params['TransferType']
@AccountNo = params['AccountNo']
@PhoneNum = params['PhoneNum']
end
end
# BindAccount返回参数结构体
class BindAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 该字段为null。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# BindAcct请求参数结构体
class BindAcctRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param BindType: 1 – 小额转账验证
# 2 – 短信验证
# 3 - 一分钱转账验证,无需再调CheckAcct验证绑卡
# 4 - 银行四要素验证,无需再调CheckAcct验证绑卡
# 每个结算账户每天只能使用一次小额转账验证
# @type BindType: Integer
# @param SettleAcctNo: 用于提现
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctNo: String
# @param SettleAcctName: 结算账户户名
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctName: String
# @param SettleAcctType: 1 – 本行账户
# 2 – 他行账户
# @type SettleAcctType: Integer
# @param IdType: 证件类型,见《证件类型》表
# @type IdType: String
# @param IdCode: 证件号码
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type IdCode: String
# @param AcctBranchName: 开户行名称
# @type AcctBranchName: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param Mobile: 用于短信验证
# BindType==2时必填
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type Mobile: String
# @param CnapsBranchId: 大小额行号,超级网银行号和大小额行号
# 二选一
# @type CnapsBranchId: String
# @param EiconBankBranchId: 超级网银行号,超级网银行号和大小额行号
# 二选一
# @type EiconBankBranchId: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param AgencyClientInfo: 经办人信息
# @type AgencyClientInfo: :class:`Tencentcloud::Cpdp.v20190820.models.AgencyClientInfo`
attr_accessor :MidasAppId, :SubAppId, :BindType, :SettleAcctNo, :SettleAcctName, :SettleAcctType, :IdType, :IdCode, :AcctBranchName, :MidasSecretId, :MidasSignature, :Mobile, :CnapsBranchId, :EiconBankBranchId, :EncryptType, :MidasEnvironment, :AgencyClientInfo
def initialize(midasappid=nil, subappid=nil, bindtype=nil, settleacctno=nil, settleacctname=nil, settleaccttype=nil, idtype=nil, idcode=nil, acctbranchname=nil, midassecretid=nil, midassignature=nil, mobile=nil, cnapsbranchid=nil, eiconbankbranchid=nil, encrypttype=nil, midasenvironment=nil, agencyclientinfo=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@BindType = bindtype
@SettleAcctNo = settleacctno
@SettleAcctName = settleacctname
@SettleAcctType = settleaccttype
@IdType = idtype
@IdCode = idcode
@AcctBranchName = acctbranchname
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@Mobile = mobile
@CnapsBranchId = cnapsbranchid
@EiconBankBranchId = eiconbankbranchid
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
@AgencyClientInfo = agencyclientinfo
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@BindType = params['BindType']
@SettleAcctNo = params['SettleAcctNo']
@SettleAcctName = params['SettleAcctName']
@SettleAcctType = params['SettleAcctType']
@IdType = params['IdType']
@IdCode = params['IdCode']
@AcctBranchName = params['AcctBranchName']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@Mobile = params['Mobile']
@CnapsBranchId = params['CnapsBranchId']
@EiconBankBranchId = params['EiconBankBranchId']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
unless params['AgencyClientInfo'].nil?
@AgencyClientInfo = AgencyClientInfo.new
@AgencyClientInfo.deserialize(params['AgencyClientInfo'])
end
end
end
# BindAcct返回参数结构体
class BindAcctResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# BindOpenBankExternalSubMerchantBankAccount请求参数结构体
class BindOpenBankExternalSubMerchantBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# @type PaymentMethod: String
# @param ExternalSubMerchantBindBankAccountData: 第三方渠道子商户收款方银行卡信息, 为JSON格式字符串。详情见附录-复杂类型。
# @type ExternalSubMerchantBindBankAccountData: String
# @param OutApplyId: 外部申请编号。
# @type OutApplyId: String
# @param NotifyUrl: 通知地址。
# @type NotifyUrl: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :ExternalSubMerchantBindBankAccountData, :OutApplyId, :NotifyUrl, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, externalsubmerchantbindbankaccountdata=nil, outapplyid=nil, notifyurl=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@ExternalSubMerchantBindBankAccountData = externalsubmerchantbindbankaccountdata
@OutApplyId = outapplyid
@NotifyUrl = notifyurl
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@ExternalSubMerchantBindBankAccountData = params['ExternalSubMerchantBindBankAccountData']
@OutApplyId = params['OutApplyId']
@NotifyUrl = params['NotifyUrl']
@Environment = params['Environment']
end
end
# BindOpenBankExternalSubMerchantBankAccount返回参数结构体
class BindOpenBankExternalSubMerchantBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.BindOpenBankExternalSubMerchantBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = BindOpenBankExternalSubMerchantBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户银行卡绑定返回结果
class BindOpenBankExternalSubMerchantBankAccountResult < TencentCloud::Common::AbstractModel
# @param ChannelApplyId: 渠道申请编号。
# @type ChannelApplyId: String
# @param BindStatus: 绑定状态。
# __SUCCESS__: 绑定成功
# __FAILED__: 绑定失败
# __PROCESSING__: 绑定中。
# 注意:若返回绑定中,需要再次调用绑定结果查询接口,查询结果。
# @type BindStatus: String
# @param BindMessage: 绑定返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BindMessage: String
# @param ExternalSubMerchantBankAccountReturnData: 渠道子商户银行账户信息, 为JSON格式字符串(绑定成功状态下返回)。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalSubMerchantBankAccountReturnData: String
# @param BindSerialNo: 绑卡序列号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BindSerialNo: String
attr_accessor :ChannelApplyId, :BindStatus, :BindMessage, :ExternalSubMerchantBankAccountReturnData, :BindSerialNo
def initialize(channelapplyid=nil, bindstatus=nil, bindmessage=nil, externalsubmerchantbankaccountreturndata=nil, bindserialno=nil)
@ChannelApplyId = channelapplyid
@BindStatus = bindstatus
@BindMessage = bindmessage
@ExternalSubMerchantBankAccountReturnData = externalsubmerchantbankaccountreturndata
@BindSerialNo = bindserialno
end
def deserialize(params)
@ChannelApplyId = params['ChannelApplyId']
@BindStatus = params['BindStatus']
@BindMessage = params['BindMessage']
@ExternalSubMerchantBankAccountReturnData = params['ExternalSubMerchantBankAccountReturnData']
@BindSerialNo = params['BindSerialNo']
end
end
# BindOpenBankProfitSharePayee请求参数结构体
class BindOpenBankProfitSharePayeeRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。代理商/集团ID
# @type ChannelMerchantId: String
# @param AccountNo: 收款人银行账户号。唯一
# @type AccountNo: String
# @param ChannelName: 渠道名称
# 通联国际: CNP
# @type ChannelName: String
# @param ChannelSubMerchantId: 渠道子商户号。商户ID
# @type ChannelSubMerchantId: String
# @param NotifyUrl: 绑定状态通知地址,若为空,即不回调通知。
# @type NotifyUrl: String
# @param ProfitSharePayeeInfo: 分账收款人信息。通联国际必选
# @type ProfitSharePayeeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankProfitSharePayeeInfo`
# @param ExternalProfitSharingData: 第三方拓展信息。若无特殊说明,可为空
# @type ExternalProfitSharingData: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :AccountNo, :ChannelName, :ChannelSubMerchantId, :NotifyUrl, :ProfitSharePayeeInfo, :ExternalProfitSharingData, :Environment
def initialize(channelmerchantid=nil, accountno=nil, channelname=nil, channelsubmerchantid=nil, notifyurl=nil, profitsharepayeeinfo=nil, externalprofitsharingdata=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@AccountNo = accountno
@ChannelName = channelname
@ChannelSubMerchantId = channelsubmerchantid
@NotifyUrl = notifyurl
@ProfitSharePayeeInfo = profitsharepayeeinfo
@ExternalProfitSharingData = externalprofitsharingdata
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@AccountNo = params['AccountNo']
@ChannelName = params['ChannelName']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@NotifyUrl = params['NotifyUrl']
unless params['ProfitSharePayeeInfo'].nil?
@ProfitSharePayeeInfo = OpenBankProfitSharePayeeInfo.new
@ProfitSharePayeeInfo.deserialize(params['ProfitSharePayeeInfo'])
end
@ExternalProfitSharingData = params['ExternalProfitSharingData']
@Environment = params['Environment']
end
end
# BindOpenBankProfitSharePayee返回参数结构体
class BindOpenBankProfitSharePayeeResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误信息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.BindOpenBankProfitSharePayeeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = BindOpenBankProfitSharePayeeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 绑定分账收款方响应
class BindOpenBankProfitSharePayeeResult < TencentCloud::Common::AbstractModel
# @param AccountId: 账户ID。受益人ID
# @type AccountId: String
# @param AccountNo: 账户号,通联渠道指客户银行账号
# @type AccountNo: String
# @param Currency: 账户货币。参考附录“币种类型”。
# @type Currency: String
attr_accessor :AccountId, :AccountNo, :Currency
def initialize(accountid=nil, accountno=nil, currency=nil)
@AccountId = accountid
@AccountNo = accountno
@Currency = currency
end
def deserialize(params)
@AccountId = params['AccountId']
@AccountNo = params['AccountNo']
@Currency = params['Currency']
end
end
# BindRelateAccReUnionPay请求参数结构体
class BindRelateAccReUnionPayRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(若需要把一个待绑定账户关联到两个会员名下,此字段可上送两个会员的交易网代码,并且须用“|::|”(右侧)进行分隔)
# @type TranNetMemberCode: String
# @param MemberAcctNo: STRING(50),会员的待绑定账户的账号(即 BindRelateAcctUnionPay接口中的“会员的待绑定账户的账号”)
# @type MemberAcctNo: String
# @param MessageCheckCode: STRING(20),短信验证码(即 BindRelateAcctUnionPay接口中的手机所接收到的短信验证码)
# @type MessageCheckCode: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :TranNetMemberCode, :MemberAcctNo, :MessageCheckCode, :ReservedMsg, :Profile
def initialize(mrchcode=nil, trannetmembercode=nil, memberacctno=nil, messagecheckcode=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@TranNetMemberCode = trannetmembercode
@MemberAcctNo = memberacctno
@MessageCheckCode = messagecheckcode
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberAcctNo = params['MemberAcctNo']
@MessageCheckCode = params['MessageCheckCode']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# BindRelateAccReUnionPay返回参数结构体
class BindRelateAccReUnionPayResponse < TencentCloud::Common::AbstractModel
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FrontSeqNo, :ReservedMsg, :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :RequestId
def initialize(frontseqno=nil, reservedmsg=nil, txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, requestid=nil)
@FrontSeqNo = frontseqno
@ReservedMsg = reservedmsg
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@RequestId = requestid
end
def deserialize(params)
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsg = params['ReservedMsg']
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@RequestId = params['RequestId']
end
end
# BindRelateAcctSmallAmount请求参数结构体
class BindRelateAcctSmallAmountRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(若需要把一个待绑定账户关联到两个会员名下,此字段可上送两个会员的交易网代码,并且须用“|::|”(右侧)进行分隔)
# @type TranNetMemberCode: String
# @param MemberName: STRING(150),见证子账户的户名(首次绑定的情况下,此字段即为待绑定的提现账户的户名。非首次绑定的情况下,须注意带绑定的提现账户的户名须与留存在后台系统的会员户名一致)
# @type MemberName: String
# @param MemberGlobalType: STRING(5),会员证件类型(详情见“常见问题”)
# @type MemberGlobalType: String
# @param MemberGlobalId: STRING(32),会员证件号码
# @type MemberGlobalId: String
# @param MemberAcctNo: STRING(50),会员的待绑定账户的账号(提现的银行卡)
# @type MemberAcctNo: String
# @param BankType: STRING(10),会员的待绑定账户的本他行类型(1: 本行; 2: 他行)
# @type BankType: String
# @param AcctOpenBranchName: STRING(150),会员的待绑定账户的开户行名称
# @type AcctOpenBranchName: String
# @param Mobile: STRING(30),会员的手机号(手机号须由长度为11位的数字构成)
# @type Mobile: String
# @param CnapsBranchId: STRING(20),会员的待绑定账户的开户行的联行号(本他行类型为他行的情况下,此字段和下一个字段至少一个不为空)
# @type CnapsBranchId: String
# @param EiconBankBranchId: STRING(20),会员的待绑定账户的开户行的超级网银行号(本他行类型为他行的情况下,此字段和上一个字段至少一个不为空)
# @type EiconBankBranchId: String
# @param ReservedMsg: STRING(1027),转账方式(1: 往账鉴权(默认值); 2: 来账鉴权)
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :TranNetMemberCode, :MemberName, :MemberGlobalType, :MemberGlobalId, :MemberAcctNo, :BankType, :AcctOpenBranchName, :Mobile, :CnapsBranchId, :EiconBankBranchId, :ReservedMsg, :Profile
def initialize(mrchcode=nil, trannetmembercode=nil, membername=nil, memberglobaltype=nil, memberglobalid=nil, memberacctno=nil, banktype=nil, acctopenbranchname=nil, mobile=nil, cnapsbranchid=nil, eiconbankbranchid=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@TranNetMemberCode = trannetmembercode
@MemberName = membername
@MemberGlobalType = memberglobaltype
@MemberGlobalId = memberglobalid
@MemberAcctNo = memberacctno
@BankType = banktype
@AcctOpenBranchName = acctopenbranchname
@Mobile = mobile
@CnapsBranchId = cnapsbranchid
@EiconBankBranchId = eiconbankbranchid
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberName = params['MemberName']
@MemberGlobalType = params['MemberGlobalType']
@MemberGlobalId = params['MemberGlobalId']
@MemberAcctNo = params['MemberAcctNo']
@BankType = params['BankType']
@AcctOpenBranchName = params['AcctOpenBranchName']
@Mobile = params['Mobile']
@CnapsBranchId = params['CnapsBranchId']
@EiconBankBranchId = params['EiconBankBranchId']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# BindRelateAcctSmallAmount返回参数结构体
class BindRelateAcctSmallAmountResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ReservedMsg: STRING(1027),保留域(来账鉴权的方式下,此字段的值为客户需往监管账户转入的金额。在同名子账户绑定的场景下,若返回""VERIFIED""则说明无需验证直接绑定成功)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# BindRelateAcctUnionPay请求参数结构体
class BindRelateAcctUnionPayRequest < TencentCloud::Common::AbstractModel
# @param TranNetMemberCode: STRING(32),交易网会员代码(若需要把一个待绑定账户关联到两个会员名下,此字段可上送两个会员的交易网代码,并且须用“|::|”(右侧)进行分隔)
# @type TranNetMemberCode: String
# @param MemberName: STRING(150),见证子账户的户名(首次绑定的情况下,此字段即为待绑定的提现账户的户名。非首次绑定的情况下,须注意带绑定的提现账户的户名须与留存在后台系统的会员户名一致)
# @type MemberName: String
# @param MemberGlobalType: STRING(5),会员证件类型(详情见“常见问题”)
# @type MemberGlobalType: String
# @param MemberGlobalId: STRING(32),会员证件号码
# @type MemberGlobalId: String
# @param MemberAcctNo: STRING(50),会员的待绑定账户的账号(提现的银行卡)
# @type MemberAcctNo: String
# @param BankType: STRING(10),会员的待绑定账户的本他行类型(1: 本行; 2: 他行)
# @type BankType: String
# @param AcctOpenBranchName: STRING(150),会员的待绑定账户的开户行名称(若大小额行号不填则送超级网银号对应的银行名称,若填大小额行号则送大小额行号对应的银行名称)
# @type AcctOpenBranchName: String
# @param Mobile: STRING(30),会员的手机号(手机号须由长度为11位的数字构成)
# @type Mobile: String
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param CnapsBranchId: STRING(20),会员的待绑定账户的开户行的联行号(本他行类型为他行的情况下,此字段和下一个字段至少一个不为空)
# @type CnapsBranchId: String
# @param EiconBankBranchId: STRING(20),会员的待绑定账户的开户行的超级网银行号(本他行类型为他行的情况下,此字段和上一个字段至少一个不为空)
# @type EiconBankBranchId: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :TranNetMemberCode, :MemberName, :MemberGlobalType, :MemberGlobalId, :MemberAcctNo, :BankType, :AcctOpenBranchName, :Mobile, :MrchCode, :CnapsBranchId, :EiconBankBranchId, :ReservedMsg, :Profile
def initialize(trannetmembercode=nil, membername=nil, memberglobaltype=nil, memberglobalid=nil, memberacctno=nil, banktype=nil, acctopenbranchname=nil, mobile=nil, mrchcode=nil, cnapsbranchid=nil, eiconbankbranchid=nil, reservedmsg=nil, profile=nil)
@TranNetMemberCode = trannetmembercode
@MemberName = membername
@MemberGlobalType = memberglobaltype
@MemberGlobalId = memberglobalid
@MemberAcctNo = memberacctno
@BankType = banktype
@AcctOpenBranchName = acctopenbranchname
@Mobile = mobile
@MrchCode = mrchcode
@CnapsBranchId = cnapsbranchid
@EiconBankBranchId = eiconbankbranchid
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@TranNetMemberCode = params['TranNetMemberCode']
@MemberName = params['MemberName']
@MemberGlobalType = params['MemberGlobalType']
@MemberGlobalId = params['MemberGlobalId']
@MemberAcctNo = params['MemberAcctNo']
@BankType = params['BankType']
@AcctOpenBranchName = params['AcctOpenBranchName']
@Mobile = params['Mobile']
@MrchCode = params['MrchCode']
@CnapsBranchId = params['CnapsBranchId']
@EiconBankBranchId = params['EiconBankBranchId']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# BindRelateAcctUnionPay返回参数结构体
class BindRelateAcctUnionPayResponse < TencentCloud::Common::AbstractModel
# @param ReservedMsg: STRING(1027),保留域(在同名子账户绑定的场景下,若返回"VERIFIED"则说明无需验证直接绑定成功)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ReservedMsg, :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :RequestId
def initialize(reservedmsg=nil, txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, requestid=nil)
@ReservedMsg = reservedmsg
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@RequestId = requestid
end
def deserialize(params)
@ReservedMsg = params['ReservedMsg']
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@RequestId = params['RequestId']
end
end
# 营业证件信息
class BusinessLicenseInfo < TencentCloud::Common::AbstractModel
# @param BusinessLicenseType: 营业证件类型
# IDCARD:身份证
# CREDITCODE:统一社会信用代码
# @type BusinessLicenseType: String
# @param BusinessLicenseNumber: 营业证件号码 非个人商户上送统一社会信用代码,个人商户上送身份证号码
# @type BusinessLicenseNumber: String
# @param BusinessLicenseValidityType: 营业证件有效期类型
# LONGTERM:长期有效
# OTHER:非长期有效
# @type BusinessLicenseValidityType: String
# @param BusinessLicenseEffectiveDate: 营业证件生效日期,yyyy-MM-dd
# @type BusinessLicenseEffectiveDate: String
# @param BusinessLicenseExpireDate: 营业证件失效日期,yyyy-MM-dd
# @type BusinessLicenseExpireDate: String
attr_accessor :BusinessLicenseType, :BusinessLicenseNumber, :BusinessLicenseValidityType, :BusinessLicenseEffectiveDate, :BusinessLicenseExpireDate
def initialize(businesslicensetype=nil, businesslicensenumber=nil, businesslicensevaliditytype=nil, businesslicenseeffectivedate=nil, businesslicenseexpiredate=nil)
@BusinessLicenseType = businesslicensetype
@BusinessLicenseNumber = businesslicensenumber
@BusinessLicenseValidityType = businesslicensevaliditytype
@BusinessLicenseEffectiveDate = businesslicenseeffectivedate
@BusinessLicenseExpireDate = businesslicenseexpiredate
end
def deserialize(params)
@BusinessLicenseType = params['BusinessLicenseType']
@BusinessLicenseNumber = params['BusinessLicenseNumber']
@BusinessLicenseValidityType = params['BusinessLicenseValidityType']
@BusinessLicenseEffectiveDate = params['BusinessLicenseEffectiveDate']
@BusinessLicenseExpireDate = params['BusinessLicenseExpireDate']
end
end
# 米大师内部存放的合约信息
class ChannelContractInfo < TencentCloud::Common::AbstractModel
# @param OutContractCode: 外部合约协议号
# @type OutContractCode: String
# @param ChannelContractCode: 米大师内部生成的合约协议号
# @type ChannelContractCode: String
attr_accessor :OutContractCode, :ChannelContractCode
def initialize(outcontractcode=nil, channelcontractcode=nil)
@OutContractCode = outcontractcode
@ChannelContractCode = channelcontractcode
end
def deserialize(params)
@OutContractCode = params['OutContractCode']
@ChannelContractCode = params['ChannelContractCode']
end
end
# 米大师内部生成的合约信息
class ChannelReturnContractInfo < TencentCloud::Common::AbstractModel
# @param ContractStatus: 平台合约状态
# 协议状态,枚举值:
# CONTRACT_STATUS_SIGNED:已签约
# CONTRACT_STATUS_TERMINATED:未签约
# CONTRACT_STATUS_PENDING:签约进行中
# @type ContractStatus: String
# @param ChannelContractInfo: 米大师内部存放的合约信息
# @type ChannelContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ChannelContractInfo`
attr_accessor :ContractStatus, :ChannelContractInfo
def initialize(contractstatus=nil, channelcontractinfo=nil)
@ContractStatus = contractstatus
@ChannelContractInfo = channelcontractinfo
end
def deserialize(params)
@ContractStatus = params['ContractStatus']
unless params['ChannelContractInfo'].nil?
@ChannelContractInfo = ChannelContractInfo.new
@ChannelContractInfo.deserialize(params['ChannelContractInfo'])
end
end
end
# CheckAcct请求参数结构体
class CheckAcctRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param BindType: 1 – 小额转账验证
# 2 – 短信验证
# 每个结算账户每天只能使用一次小额转账验证
# @type BindType: Integer
# @param SettleAcctNo: 结算账户账号
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctNo: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param CheckCode: 短信验证码或指令号
# BindType==2必填,平安渠道必填
# @type CheckCode: String
# @param CurrencyType: 币种 RMB
# BindType==1必填
# @type CurrencyType: String
# @param CurrencyUnit: 单位
# 1:元,2:角,3:分
# BindType==1必填
# @type CurrencyUnit: Integer
# @param CurrencyAmt: 金额
# BindType==1必填
# @type CurrencyAmt: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :SubAppId, :BindType, :SettleAcctNo, :MidasSecretId, :MidasSignature, :CheckCode, :CurrencyType, :CurrencyUnit, :CurrencyAmt, :EncryptType, :MidasEnvironment
def initialize(midasappid=nil, subappid=nil, bindtype=nil, settleacctno=nil, midassecretid=nil, midassignature=nil, checkcode=nil, currencytype=nil, currencyunit=nil, currencyamt=nil, encrypttype=nil, midasenvironment=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@BindType = bindtype
@SettleAcctNo = settleacctno
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@CheckCode = checkcode
@CurrencyType = currencytype
@CurrencyUnit = currencyunit
@CurrencyAmt = currencyamt
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@BindType = params['BindType']
@SettleAcctNo = params['SettleAcctNo']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@CheckCode = params['CheckCode']
@CurrencyType = params['CurrencyType']
@CurrencyUnit = params['CurrencyUnit']
@CurrencyAmt = params['CurrencyAmt']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
end
end
# CheckAcct返回参数结构体
class CheckAcctResponse < TencentCloud::Common::AbstractModel
# @param FrontSeqNo: 前置流水号,请保存
# @type FrontSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FrontSeqNo, :RequestId
def initialize(frontseqno=nil, requestid=nil)
@FrontSeqNo = frontseqno
@RequestId = requestid
end
def deserialize(params)
@FrontSeqNo = params['FrontSeqNo']
@RequestId = params['RequestId']
end
end
# CheckAmount请求参数结构体
class CheckAmountRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(若需要把一个待绑定账户关联到两个会员名下,此字段可上送两个会员的交易网代码,并且须用“|::|”(右侧)进行分隔)
# @type TranNetMemberCode: String
# @param TakeCashAcctNo: STRING(50),会员的待绑定账户的账号(即 BindRelateAcctSmallAmount接口中的“会员的待绑定账户的账号”)
# @type TakeCashAcctNo: String
# @param AuthAmt: STRING(20),鉴权验证金额(即 BindRelateAcctSmallAmount接口中的“会员的待绑定账户收到的验证金额。原小额转账鉴权方式为来账鉴权的情况下此字段须赋值为0.00)
# @type AuthAmt: String
# @param Ccy: STRING(3),币种(默认为RMB)
# @type Ccy: String
# @param ReservedMsg: STRING(1027),原小额转账方式(1: 往账鉴权,此为默认值; 2: 来账鉴权)
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :TranNetMemberCode, :TakeCashAcctNo, :AuthAmt, :Ccy, :ReservedMsg, :Profile
def initialize(mrchcode=nil, trannetmembercode=nil, takecashacctno=nil, authamt=nil, ccy=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@TranNetMemberCode = trannetmembercode
@TakeCashAcctNo = takecashacctno
@AuthAmt = authamt
@Ccy = ccy
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@TranNetMemberCode = params['TranNetMemberCode']
@TakeCashAcctNo = params['TakeCashAcctNo']
@AuthAmt = params['AuthAmt']
@Ccy = params['Ccy']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# CheckAmount返回参数结构体
class CheckAmountResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),见证系统流水号(即电商见证宝系统生成的流水号,可关联具体一笔请求)
# @type FrontSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 查询城市编码响应对象
class CityCodeResult < TencentCloud::Common::AbstractModel
# @param CityId: 城市编码cityid,数字与字母的结合
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param District: 县区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type District: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
attr_accessor :CityId, :Province, :District, :City
def initialize(cityid=nil, province=nil, district=nil, city=nil)
@CityId = cityid
@Province = province
@District = district
@City = city
end
def deserialize(params)
@CityId = params['CityId']
@Province = params['Province']
@District = params['District']
@City = params['City']
end
end
# 银行在途清算结果信息
class ClearItem < TencentCloud::Common::AbstractModel
# @param Date: STRING(8),日期(格式: 20190101)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Date: String
# @param SubAcctType: STRING(40),子账号类型(子帐号类型。1: 普通会员子账号; 2: 挂账子账号; 3: 手续费子账号; 4: 利息子账号; 5: 平台担保子账号; 7: 在途; 8: 理财购买子帐号; 9: 理财赎回子帐号; 10: 平台子拥有结算子帐号)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctType: String
# @param ReconcileStatus: STRING(3),对账状态(0: 成功; 1: 失败)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReconcileStatus: String
# @param ReconcileReturnMsg: STRING(300),对账返回信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReconcileReturnMsg: String
# @param ClearingStatus: STRING(20),清算状态(0: 成功; 1: 失败; 2: 异常; 3: 待处理)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ClearingStatus: String
# @param ClearingReturnMsg: STRING(2),清算返回信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ClearingReturnMsg: String
# @param TotalAmt: STRING(300),待清算总金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalAmt: String
attr_accessor :Date, :SubAcctType, :ReconcileStatus, :ReconcileReturnMsg, :ClearingStatus, :ClearingReturnMsg, :TotalAmt
def initialize(date=nil, subaccttype=nil, reconcilestatus=nil, reconcilereturnmsg=nil, clearingstatus=nil, clearingreturnmsg=nil, totalamt=nil)
@Date = date
@SubAcctType = subaccttype
@ReconcileStatus = reconcilestatus
@ReconcileReturnMsg = reconcilereturnmsg
@ClearingStatus = clearingstatus
@ClearingReturnMsg = clearingreturnmsg
@TotalAmt = totalamt
end
def deserialize(params)
@Date = params['Date']
@SubAcctType = params['SubAcctType']
@ReconcileStatus = params['ReconcileStatus']
@ReconcileReturnMsg = params['ReconcileReturnMsg']
@ClearingStatus = params['ClearingStatus']
@ClearingReturnMsg = params['ClearingReturnMsg']
@TotalAmt = params['TotalAmt']
end
end
# CloseCloudOrder请求参数结构体
class CloseCloudOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param OutTradeNo: 开发者订单号
# @type OutTradeNo: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :UserId, :OutTradeNo, :MidasEnvironment
def initialize(midasappid=nil, userid=nil, outtradeno=nil, midasenvironment=nil)
@MidasAppId = midasappid
@UserId = userid
@OutTradeNo = outtradeno
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@OutTradeNo = params['OutTradeNo']
@MidasEnvironment = params['MidasEnvironment']
end
end
# CloseCloudOrder返回参数结构体
class CloseCloudOrderResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# CloseOpenBankPaymentOrder请求参数结构体
class CloseOpenBankPaymentOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID,云企付平台下发给外部接入平台。
# @type ChannelMerchantId: String
# @param OutOrderId: 外部商户订单号,与ChannelOrderId不能同时为空
# @type OutOrderId: String
# @param ChannelOrderId: 云企付平台订单号,与OutOrderId不能同时为空
# @type ChannelOrderId: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutOrderId, :ChannelOrderId, :Environment
def initialize(channelmerchantid=nil, outorderid=nil, channelorderid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@Environment = params['Environment']
end
end
# CloseOpenBankPaymentOrder返回参数结构体
class CloseOpenBankPaymentOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# @type ErrMessage: String
# @param Result: 关单响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CloseOpenBankPaymentOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CloseOpenBankPaymentOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-关单响应
class CloseOpenBankPaymentOrderResult < TencentCloud::Common::AbstractModel
# @param OutOrderId: 外部商户订单号
# @type OutOrderId: String
# @param ChannelOrderId: 云企付平台订单号
# @type ChannelOrderId: String
# @param OrderStatus: 订单状态。关单成功CLOSED
# @type OrderStatus: String
attr_accessor :OutOrderId, :ChannelOrderId, :OrderStatus
def initialize(outorderid=nil, channelorderid=nil, orderstatus=nil)
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@OrderStatus = orderstatus
end
def deserialize(params)
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@OrderStatus = params['OrderStatus']
end
end
# CloseOrder请求参数结构体
class CloseOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID,长度不小于5位, 仅支持字母和数字的组合
# @type UserId: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param OutTradeNo: 业务订单号,OutTradeNo , TransactionId二选一,不能都为空,优先使用 OutTradeNo
# @type OutTradeNo: String
# @param TransactionId: 聚鑫订单号,OutTradeNo , TransactionId二选一,不能都为空,优先使用 OutTradeNo
# @type TransactionId: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :UserId, :MidasSecretId, :MidasSignature, :OutTradeNo, :TransactionId, :MidasEnvironment
def initialize(midasappid=nil, userid=nil, midassecretid=nil, midassignature=nil, outtradeno=nil, transactionid=nil, midasenvironment=nil)
@MidasAppId = midasappid
@UserId = userid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@OutTradeNo = outtradeno
@TransactionId = transactionid
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@OutTradeNo = params['OutTradeNo']
@TransactionId = params['TransactionId']
@MidasEnvironment = params['MidasEnvironment']
end
end
# CloseOrder返回参数结构体
class CloseOrderResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# 附加项信息对象
class CloudAttachmentInfo < TencentCloud::Common::AbstractModel
# @param AttachmentAmount: 附加项金额。
# 附加项的金额(必须是正数,单位:分),代表积分的数量、抵扣的金额、溢价的金额、补贴的金额
# @type AttachmentAmount: Integer
# @param AttachmentType: 附加项类型。
# Add:加项;
# Sub:减项;
# Point:积分项;
# Subsidy:补贴项。
# @type AttachmentType: String
# @param AttachmentName: 附加项名称。
# 当银行作为收单机构可能会对该字段有要求,请向米大师确认。
# @type AttachmentName: String
# @param AttachmentCode: 附加项编号。
# 当银行作为收单机构可能会对该字段有要求,请向米大师确认。
# @type AttachmentCode: String
attr_accessor :AttachmentAmount, :AttachmentType, :AttachmentName, :AttachmentCode
def initialize(attachmentamount=nil, attachmenttype=nil, attachmentname=nil, attachmentcode=nil)
@AttachmentAmount = attachmentamount
@AttachmentType = attachmenttype
@AttachmentName = attachmentname
@AttachmentCode = attachmentcode
end
def deserialize(params)
@AttachmentAmount = params['AttachmentAmount']
@AttachmentType = params['AttachmentType']
@AttachmentName = params['AttachmentName']
@AttachmentCode = params['AttachmentCode']
end
end
# 渠道方用户信息
class CloudChannelExternalUserInfo < TencentCloud::Common::AbstractModel
# @param ChannelExternalUserType: 渠道方用户类型,枚举值:
# WX_OPENID 微信支付类型
# ALIPAY_BUYERID 支付宝支付类型
# @type ChannelExternalUserType: String
# @param ChannelExternalUserId: 渠道方用户Id
# @type ChannelExternalUserId: String
attr_accessor :ChannelExternalUserType, :ChannelExternalUserId
def initialize(channelexternalusertype=nil, channelexternaluserid=nil)
@ChannelExternalUserType = channelexternalusertype
@ChannelExternalUserId = channelexternaluserid
end
def deserialize(params)
@ChannelExternalUserType = params['ChannelExternalUserType']
@ChannelExternalUserId = params['ChannelExternalUserId']
end
end
# 客户端信息
class CloudClientInfo < TencentCloud::Common::AbstractModel
# @param ClientType: 场景类型。
# wechat_ecommerce渠道 - h5支付方式,此字段必填;
# 枚举值:
# CLIENT_TYPE_UNKNOWN 未知;
# CLIENT_TYPE_IOS ios系统;
# CLIENT_TYPE_ANDROID 安卓系统;
# CLIENT_TYPE_WAP WAP场景;
# CLIENT_TYPE_H5 H5场景;
# @type ClientType: String
# @param AppName: 应用名称。
# @type AppName: String
# @param AppUrl: 网站URL。
# @type AppUrl: String
# @param BundleId: IOS平台BundleID。
# @type BundleId: String
# @param PackageName: Android平台PackageName
# @type PackageName: String
attr_accessor :ClientType, :AppName, :AppUrl, :BundleId, :PackageName
def initialize(clienttype=nil, appname=nil, appurl=nil, bundleid=nil, packagename=nil)
@ClientType = clienttype
@AppName = appname
@AppUrl = appurl
@BundleId = bundleid
@PackageName = packagename
end
def deserialize(params)
@ClientType = params['ClientType']
@AppName = params['AppName']
@AppUrl = params['AppUrl']
@BundleId = params['BundleId']
@PackageName = params['PackageName']
end
end
# 渠道透传字段
class CloudExternalAttachmentData < TencentCloud::Common::AbstractModel
# @param ChannelName: 渠道名
# @type ChannelName: String
# @param AttachmentData: 渠道透传字段,由各个渠道自行定义
# @type AttachmentData: String
attr_accessor :ChannelName, :AttachmentData
def initialize(channelname=nil, attachmentdata=nil)
@ChannelName = channelname
@AttachmentData = attachmentdata
end
def deserialize(params)
@ChannelName = params['ChannelName']
@AttachmentData = params['AttachmentData']
end
end
# 第三方渠道数据信息
class CloudExternalChannelData < TencentCloud::Common::AbstractModel
# @param ExternalChannelDataName: 第三方渠道数据名。
# PAYMENT_ORDER_EXTERNAL_REQUEST_DATA: 支付下单请求数据
# PAYMENT_ORDER_EXTERNAL_RETURN_DATA: 支付下单返回数据
# PAYMENT_ORDER_EXTERNAL_NOTIFY_DATA: 支付通知数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalChannelDataName: String
# @param ExternalChannelDataValue: 第三方渠道数据值。
# 当ExternalChannelDataType=PAYMENT时,反序列化格式请参考[ExternalChannelPaymentDataValue](https://dev.tke.midas.qq.com/juxin-doc-next/apidocs/external-channel-data/QueryExternalChannelData.html#externalchannelpaymentdatavalue)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalChannelDataValue: String
attr_accessor :ExternalChannelDataName, :ExternalChannelDataValue
def initialize(externalchanneldataname=nil, externalchanneldatavalue=nil)
@ExternalChannelDataName = externalchanneldataname
@ExternalChannelDataValue = externalchanneldatavalue
end
def deserialize(params)
@ExternalChannelDataName = params['ExternalChannelDataName']
@ExternalChannelDataValue = params['ExternalChannelDataValue']
end
end
# 渠道扩展促销信息
class CloudExternalPromptGroup < TencentCloud::Common::AbstractModel
# @param ChannelName: 渠道名。
# 为米大师定义的枚举值:
# wechat 微信渠道
# @type ChannelName: String
# @param ExternalPromptInfoList: 渠道扩展促销信息列表,由各个渠道自行定义。
# ChannelName为wechat时,组成为
# @type ExternalPromptInfoList: Array
attr_accessor :ChannelName, :ExternalPromptInfoList
def initialize(channelname=nil, externalpromptinfolist=nil)
@ChannelName = channelname
@ExternalPromptInfoList = externalpromptinfolist
end
def deserialize(params)
@ChannelName = params['ChannelName']
unless params['ExternalPromptInfoList'].nil?
@ExternalPromptInfoList = []
params['ExternalPromptInfoList'].each do |i|
cloudexternalpromptinfo_tmp = CloudExternalPromptInfo.new
cloudexternalpromptinfo_tmp.deserialize(i)
@ExternalPromptInfoList << cloudexternalpromptinfo_tmp
end
end
end
end
# 渠道扩展促销信息
class CloudExternalPromptInfo < TencentCloud::Common::AbstractModel
# @param ExternalPromptType: 优惠商品信息类型。
# @type ExternalPromptType: String
# @param ExternalPromptValue: 优惠商品信息数据。
# @type ExternalPromptValue: String
# @param ExternalPromptName: 优惠商品名称。
# @type ExternalPromptName: String
attr_accessor :ExternalPromptType, :ExternalPromptValue, :ExternalPromptName
def initialize(externalprompttype=nil, externalpromptvalue=nil, externalpromptname=nil)
@ExternalPromptType = externalprompttype
@ExternalPromptValue = externalpromptvalue
@ExternalPromptName = externalpromptname
end
def deserialize(params)
@ExternalPromptType = params['ExternalPromptType']
@ExternalPromptValue = params['ExternalPromptValue']
@ExternalPromptName = params['ExternalPromptName']
end
end
# 渠道方用户信息
class CloudExternalUserInfo < TencentCloud::Common::AbstractModel
# @param ExternalUserType: 渠道方用户类型
# @type ExternalUserType: String
# @param ExternalUserId: 渠道方用户ID
# @type ExternalUserId: String
attr_accessor :ExternalUserType, :ExternalUserId
def initialize(externalusertype=nil, externaluserid=nil)
@ExternalUserType = externalusertype
@ExternalUserId = externaluserid
end
def deserialize(params)
@ExternalUserType = params['ExternalUserType']
@ExternalUserId = params['ExternalUserId']
end
end
# 全局支付时间信息
class CloudGlobalPayTimeInfo < TencentCloud::Common::AbstractModel
# @param StartTimestamp: 订单开始时间。
# 不指定时默认为当前时间。
# @type StartTimestamp: Integer
# @param ExpireTimestamp: 订单结束时间。
# 逾期将会拒绝下单。不指定时默认为当前时间的7天后结束。
# @type ExpireTimestamp: Integer
# @param TimeOffset: 时区。
# 不指定时默认为28800,表示北京时间(东八区)。
# @type TimeOffset: Integer
attr_accessor :StartTimestamp, :ExpireTimestamp, :TimeOffset
def initialize(starttimestamp=nil, expiretimestamp=nil, timeoffset=nil)
@StartTimestamp = starttimestamp
@ExpireTimestamp = expiretimestamp
@TimeOffset = timeoffset
end
def deserialize(params)
@StartTimestamp = params['StartTimestamp']
@ExpireTimestamp = params['ExpireTimestamp']
@TimeOffset = params['TimeOffset']
end
end
# 返回订单信息
class CloudOrderReturn < TencentCloud::Common::AbstractModel
# @param AppId: 米大师分配的支付主MidasAppId
# @type AppId: String
# @param OutTradeNo: 开发者支付订单号
# @type OutTradeNo: String
# @param SubOrderList: 调用下单接口传进来的子单列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubOrderList: Array
# @param TransactionId: 调用下单接口获取的米大师交易订单号
# @type TransactionId: String
# @param UserId: 用户Id
# @type UserId: String
# @param Channel: 支付渠道
# wechat:微信支付
# @type Channel: String
# @param ProductId: 物品Id
# @type ProductId: String
# @param Metadata: 发货标识,由开发者在调用下单接口的时候传入
# @type Metadata: String
# @param CurrencyType: ISO货币代码
# @type CurrencyType: String
# @param Amt: 支付金额,单位:分
# @type Amt: Integer
# @param OrderState: 订单状态
# 0:初始状态,获取米大师交易订单成功
# 1:拉起米大师支付页面成功,用户未支付
# 2:用户支付成功,正在发货
# 3:用户支付成功,发货失败
# 4:用户支付成功,发货成功
# 5:关单中
# 6:已关单
# @type OrderState: String
# @param OrderTime: 下单时间,unix时间戳
# @type OrderTime: String
# @param PayTime: 支付时间,unix时间戳
# @type PayTime: String
# @param CallBackTime: 支付回调时间,unix时间戳
# @type CallBackTime: String
# @param ChannelExternalOrderId: 支付机构订单号
# @type ChannelExternalOrderId: String
# @param ChannelOrderId: 米大师内部渠道订单号
# @type ChannelOrderId: String
# @param RefundFlag: 是否曾退款
# @type RefundFlag: String
# @param CashAmt: 用户支付金额
# @type CashAmt: String
# @param CouponAmt: 抵扣券金额
# @type CouponAmt: String
# @param ProductName: 商品名称
# @type ProductName: String
# @param SettleInfo: 结算信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
# @param AttachmentInfoList: 附加项信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentInfoList: Array
# @param ChannelExternalUserInfoList: 渠道方返回的用户信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalUserInfoList: Array
# @param ExternalReturnPromptGroupList: 渠道扩展促销列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnPromptGroupList: Array
# @param SceneInfo: 场景扩展信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SceneInfo: String
# @param SubAppId: 子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAppId: String
# @param PayScene: 支付场景
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayScene: String
# @param PaymentMethod: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentMethod: String
# @param TotalPlatformIncome: 平台应收金额
# 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalPlatformIncome: Integer
# @param TotalMchIncome: 商户应收金额
# 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalMchIncome: Integer
attr_accessor :AppId, :OutTradeNo, :SubOrderList, :TransactionId, :UserId, :Channel, :ProductId, :Metadata, :CurrencyType, :Amt, :OrderState, :OrderTime, :PayTime, :CallBackTime, :ChannelExternalOrderId, :ChannelOrderId, :RefundFlag, :CashAmt, :CouponAmt, :ProductName, :SettleInfo, :AttachmentInfoList, :ChannelExternalUserInfoList, :ExternalReturnPromptGroupList, :SceneInfo, :SubAppId, :PayScene, :PaymentMethod, :TotalPlatformIncome, :TotalMchIncome
def initialize(appid=nil, outtradeno=nil, suborderlist=nil, transactionid=nil, userid=nil, channel=nil, productid=nil, metadata=nil, currencytype=nil, amt=nil, orderstate=nil, ordertime=nil, paytime=nil, callbacktime=nil, channelexternalorderid=nil, channelorderid=nil, refundflag=nil, cashamt=nil, couponamt=nil, productname=nil, settleinfo=nil, attachmentinfolist=nil, channelexternaluserinfolist=nil, externalreturnpromptgrouplist=nil, sceneinfo=nil, subappid=nil, payscene=nil, paymentmethod=nil, totalplatformincome=nil, totalmchincome=nil)
@AppId = appid
@OutTradeNo = outtradeno
@SubOrderList = suborderlist
@TransactionId = transactionid
@UserId = userid
@Channel = channel
@ProductId = productid
@Metadata = metadata
@CurrencyType = currencytype
@Amt = amt
@OrderState = orderstate
@OrderTime = ordertime
@PayTime = paytime
@CallBackTime = callbacktime
@ChannelExternalOrderId = channelexternalorderid
@ChannelOrderId = channelorderid
@RefundFlag = refundflag
@CashAmt = cashamt
@CouponAmt = couponamt
@ProductName = productname
@SettleInfo = settleinfo
@AttachmentInfoList = attachmentinfolist
@ChannelExternalUserInfoList = channelexternaluserinfolist
@ExternalReturnPromptGroupList = externalreturnpromptgrouplist
@SceneInfo = sceneinfo
@SubAppId = subappid
@PayScene = payscene
@PaymentMethod = paymentmethod
@TotalPlatformIncome = totalplatformincome
@TotalMchIncome = totalmchincome
end
def deserialize(params)
@AppId = params['AppId']
@OutTradeNo = params['OutTradeNo']
unless params['SubOrderList'].nil?
@SubOrderList = []
params['SubOrderList'].each do |i|
cloudsuborderreturn_tmp = CloudSubOrderReturn.new
cloudsuborderreturn_tmp.deserialize(i)
@SubOrderList << cloudsuborderreturn_tmp
end
end
@TransactionId = params['TransactionId']
@UserId = params['UserId']
@Channel = params['Channel']
@ProductId = params['ProductId']
@Metadata = params['Metadata']
@CurrencyType = params['CurrencyType']
@Amt = params['Amt']
@OrderState = params['OrderState']
@OrderTime = params['OrderTime']
@PayTime = params['PayTime']
@CallBackTime = params['CallBackTime']
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@ChannelOrderId = params['ChannelOrderId']
@RefundFlag = params['RefundFlag']
@CashAmt = params['CashAmt']
@CouponAmt = params['CouponAmt']
@ProductName = params['ProductName']
unless params['SettleInfo'].nil?
@SettleInfo = CloudSettleInfo.new
@SettleInfo.deserialize(params['SettleInfo'])
end
unless params['AttachmentInfoList'].nil?
@AttachmentInfoList = []
params['AttachmentInfoList'].each do |i|
cloudattachmentinfo_tmp = CloudAttachmentInfo.new
cloudattachmentinfo_tmp.deserialize(i)
@AttachmentInfoList << cloudattachmentinfo_tmp
end
end
unless params['ChannelExternalUserInfoList'].nil?
@ChannelExternalUserInfoList = []
params['ChannelExternalUserInfoList'].each do |i|
cloudchannelexternaluserinfo_tmp = CloudChannelExternalUserInfo.new
cloudchannelexternaluserinfo_tmp.deserialize(i)
@ChannelExternalUserInfoList << cloudchannelexternaluserinfo_tmp
end
end
unless params['ExternalReturnPromptGroupList'].nil?
@ExternalReturnPromptGroupList = []
params['ExternalReturnPromptGroupList'].each do |i|
cloudexternalpromptgroup_tmp = CloudExternalPromptGroup.new
cloudexternalpromptgroup_tmp.deserialize(i)
@ExternalReturnPromptGroupList << cloudexternalpromptgroup_tmp
end
end
@SceneInfo = params['SceneInfo']
@SubAppId = params['SubAppId']
@PayScene = params['PayScene']
@PaymentMethod = params['PaymentMethod']
@TotalPlatformIncome = params['TotalPlatformIncome']
@TotalMchIncome = params['TotalMchIncome']
end
end
# 结算信息对象
class CloudSettleInfo < TencentCloud::Common::AbstractModel
# @param NeedToBeConfirmed: 是否需要支付确认。
# 0: 不需要支付确认
# 1: 需要支付确认
# 传1时,需要在支付完成后成功调用了《支付确认》接口,该笔订单才会被清分出去
# @type NeedToBeConfirmed: Integer
# @param ProfitSharing: 是否指定分账。
# 0: 不指定分账
# 1: 指定分账
# @type ProfitSharing: Integer
attr_accessor :NeedToBeConfirmed, :ProfitSharing
def initialize(needtobeconfirmed=nil, profitsharing=nil)
@NeedToBeConfirmed = needtobeconfirmed
@ProfitSharing = profitsharing
end
def deserialize(params)
@NeedToBeConfirmed = params['NeedToBeConfirmed']
@ProfitSharing = params['ProfitSharing']
end
end
# 门店信息
class CloudStoreInfo < TencentCloud::Common::AbstractModel
# @param StoreId: 门店ID。
# @type StoreId: String
# @param StoreName: 门店名称。
# @type StoreName: String
# @param StoreAddress: 门店地址。
# @type StoreAddress: String
# @param StoreAreaCode: 门店地区代码。
# @type StoreAreaCode: String
# @param StoreDeviceId: 设备ID。
# wechat_ecommerce渠道 - h5支付方式,此字段必填。
# @type StoreDeviceId: String
attr_accessor :StoreId, :StoreName, :StoreAddress, :StoreAreaCode, :StoreDeviceId
def initialize(storeid=nil, storename=nil, storeaddress=nil, storeareacode=nil, storedeviceid=nil)
@StoreId = storeid
@StoreName = storename
@StoreAddress = storeaddress
@StoreAreaCode = storeareacode
@StoreDeviceId = storedeviceid
end
def deserialize(params)
@StoreId = params['StoreId']
@StoreName = params['StoreName']
@StoreAddress = params['StoreAddress']
@StoreAreaCode = params['StoreAreaCode']
@StoreDeviceId = params['StoreDeviceId']
end
end
# 子订单对象
class CloudSubOrder < TencentCloud::Common::AbstractModel
# @param SubOutTradeNo: 子订单号。
# 长度32个字符供参考,部分渠道存在长度更短的情况接入时请联系开发咨询。
# @type SubOutTradeNo: String
# @param SubAppId: 支付子商户ID。
# 米大师计费SubAppId,代表子商户。
# @type SubAppId: String
# @param ProductName: 商品名称。
# 业务自定义的子订单商品名称,无需URL编码,长度限制以具体所接入渠道为准。
# @type ProductName: String
# @param ProductDetail: 商品详情。
# 业务自定义的子订单商品详情,无需URL编码,长度限制以具体所接入渠道为准。
# @type ProductDetail: String
# @param PlatformIncome: 平台应收。
# 子订单平台应收金额,单位:分,需要注意的是Amt = PlatformIncome+SubMchIncome。
# @type PlatformIncome: Integer
# @param SubMchIncome: 商户应收。
# 子订单结算应收金额,单位:分,需要注意的是Amt = PlatformIncome+SubMchIncome。
# @type SubMchIncome: Integer
# @param Metadata: 透传字段。
# 发货标识,由开发者在调用米大师下单接口的 时候下发。
# @type Metadata: String
# @param Amt: 支付金额。
# 子订单支付金额,需要注意的是Amt = PlatformIncome+SubMchIncome。
# @type Amt: Integer
# @param OriginalAmt: 原始金额。
# 子订单原始金额,OriginalAmt>=Amt。
# @type OriginalAmt: Integer
# @param WxSubMchId: 微信子商户号。
# @type WxSubMchId: String
# @param SettleInfo: 结算信息。
# 例如是否需要分账、是否需要支付确认等。
# @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
# @param AttachmentInfoList: 附加项信息列表。
# 例如溢价信息、抵扣信息、积分信息、补贴信息
# 通过该字段可以实现渠道方的优惠抵扣补贴等营销功能。
# @type AttachmentInfoList: Array
# @param ExternalAttachmentDataList: 渠道透传数据列表。
# @type ExternalAttachmentDataList: Array
attr_accessor :SubOutTradeNo, :SubAppId, :ProductName, :ProductDetail, :PlatformIncome, :SubMchIncome, :Metadata, :Amt, :OriginalAmt, :WxSubMchId, :SettleInfo, :AttachmentInfoList, :ExternalAttachmentDataList
def initialize(subouttradeno=nil, subappid=nil, productname=nil, productdetail=nil, platformincome=nil, submchincome=nil, metadata=nil, amt=nil, originalamt=nil, wxsubmchid=nil, settleinfo=nil, attachmentinfolist=nil, externalattachmentdatalist=nil)
@SubOutTradeNo = subouttradeno
@SubAppId = subappid
@ProductName = productname
@ProductDetail = productdetail
@PlatformIncome = platformincome
@SubMchIncome = submchincome
@Metadata = metadata
@Amt = amt
@OriginalAmt = originalamt
@WxSubMchId = wxsubmchid
@SettleInfo = settleinfo
@AttachmentInfoList = attachmentinfolist
@ExternalAttachmentDataList = externalattachmentdatalist
end
def deserialize(params)
@SubOutTradeNo = params['SubOutTradeNo']
@SubAppId = params['SubAppId']
@ProductName = params['ProductName']
@ProductDetail = params['ProductDetail']
@PlatformIncome = params['PlatformIncome']
@SubMchIncome = params['SubMchIncome']
@Metadata = params['Metadata']
@Amt = params['Amt']
@OriginalAmt = params['OriginalAmt']
@WxSubMchId = params['WxSubMchId']
unless params['SettleInfo'].nil?
@SettleInfo = CloudSettleInfo.new
@SettleInfo.deserialize(params['SettleInfo'])
end
unless params['AttachmentInfoList'].nil?
@AttachmentInfoList = []
params['AttachmentInfoList'].each do |i|
cloudattachmentinfo_tmp = CloudAttachmentInfo.new
cloudattachmentinfo_tmp.deserialize(i)
@AttachmentInfoList << cloudattachmentinfo_tmp
end
end
unless params['ExternalAttachmentDataList'].nil?
@ExternalAttachmentDataList = []
params['ExternalAttachmentDataList'].each do |i|
cloudexternalattachmentdata_tmp = CloudExternalAttachmentData.new
cloudexternalattachmentdata_tmp.deserialize(i)
@ExternalAttachmentDataList << cloudexternalattachmentdata_tmp
end
end
end
end
# 退款子单
class CloudSubOrderRefund < TencentCloud::Common::AbstractModel
# @param RefundAmt: 子订单退款金额
# @type RefundAmt: Integer
# @param PlatformRefundAmt: 平台应退金额
# @type PlatformRefundAmt: Integer
# @param SubMchRefundAmt: 商家应退金额
# @type SubMchRefundAmt: Integer
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
# @param SubRefundId: 子退款单号,调用方需要保证全局唯一性
# @type SubRefundId: String
attr_accessor :RefundAmt, :PlatformRefundAmt, :SubMchRefundAmt, :SubOutTradeNo, :SubRefundId
def initialize(refundamt=nil, platformrefundamt=nil, submchrefundamt=nil, subouttradeno=nil, subrefundid=nil)
@RefundAmt = refundamt
@PlatformRefundAmt = platformrefundamt
@SubMchRefundAmt = submchrefundamt
@SubOutTradeNo = subouttradeno
@SubRefundId = subrefundid
end
def deserialize(params)
@RefundAmt = params['RefundAmt']
@PlatformRefundAmt = params['PlatformRefundAmt']
@SubMchRefundAmt = params['SubMchRefundAmt']
@SubOutTradeNo = params['SubOutTradeNo']
@SubRefundId = params['SubRefundId']
end
end
# 子订单详情
class CloudSubOrderReturn < TencentCloud::Common::AbstractModel
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
# @param SubAppId: 米大师计费SubAppId,代表子商户
# @type SubAppId: String
# @param ProductName: 子订单商品名称
# @type ProductName: String
# @param ProductDetail: 子订单商品详情
# @type ProductDetail: String
# @param PlatformIncome: 子订单平台应收金额,单位:分
# @type PlatformIncome: Integer
# @param SubMchIncome: 子订单结算应收金额,单位:分
# @type SubMchIncome: Integer
# @param Amt: 子订单支付金额
# @type Amt: Integer
# @param OriginalAmt: 子订单原始金额
# @type OriginalAmt: Integer
# @param SettleCheck: 核销状态,1表示核销,0表示未核销
# @type SettleCheck: Integer
# @param SettleInfo: 结算信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
# @param Metadata: 透传字段,由开发者在调用米大师下单接口的时候下发
# @type Metadata: String
# @param AttachmentInfoList: 附加项信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentInfoList: :class:`Tencentcloud::Cpdp.v20190820.models.CloudAttachmentInfo`
# @param ChannelExternalSubOrderId: 渠道方应答的订单号,透传处理
# @type ChannelExternalSubOrderId: String
# @param WxSubMchId: 微信子商户号
# @type WxSubMchId: String
# @param ChannelSubPayOrderId: 米大师侧渠道子订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubPayOrderId: String
# @param ProductId: 物品ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProductId: String
attr_accessor :SubOutTradeNo, :SubAppId, :ProductName, :ProductDetail, :PlatformIncome, :SubMchIncome, :Amt, :OriginalAmt, :SettleCheck, :SettleInfo, :Metadata, :AttachmentInfoList, :ChannelExternalSubOrderId, :WxSubMchId, :ChannelSubPayOrderId, :ProductId
def initialize(subouttradeno=nil, subappid=nil, productname=nil, productdetail=nil, platformincome=nil, submchincome=nil, amt=nil, originalamt=nil, settlecheck=nil, settleinfo=nil, metadata=nil, attachmentinfolist=nil, channelexternalsuborderid=nil, wxsubmchid=nil, channelsubpayorderid=nil, productid=nil)
@SubOutTradeNo = subouttradeno
@SubAppId = subappid
@ProductName = productname
@ProductDetail = productdetail
@PlatformIncome = platformincome
@SubMchIncome = submchincome
@Amt = amt
@OriginalAmt = originalamt
@SettleCheck = settlecheck
@SettleInfo = settleinfo
@Metadata = metadata
@AttachmentInfoList = attachmentinfolist
@ChannelExternalSubOrderId = channelexternalsuborderid
@WxSubMchId = wxsubmchid
@ChannelSubPayOrderId = channelsubpayorderid
@ProductId = productid
end
def deserialize(params)
@SubOutTradeNo = params['SubOutTradeNo']
@SubAppId = params['SubAppId']
@ProductName = params['ProductName']
@ProductDetail = params['ProductDetail']
@PlatformIncome = params['PlatformIncome']
@SubMchIncome = params['SubMchIncome']
@Amt = params['Amt']
@OriginalAmt = params['OriginalAmt']
@SettleCheck = params['SettleCheck']
unless params['SettleInfo'].nil?
@SettleInfo = CloudSettleInfo.new
@SettleInfo.deserialize(params['SettleInfo'])
end
@Metadata = params['Metadata']
unless params['AttachmentInfoList'].nil?
@AttachmentInfoList = CloudAttachmentInfo.new
@AttachmentInfoList.deserialize(params['AttachmentInfoList'])
end
@ChannelExternalSubOrderId = params['ChannelExternalSubOrderId']
@WxSubMchId = params['WxSubMchId']
@ChannelSubPayOrderId = params['ChannelSubPayOrderId']
@ProductId = params['ProductId']
end
end
# 子单退款信息
class CloudSubRefundItem < TencentCloud::Common::AbstractModel
# @param ChannelExternalRefundId: 渠道方应答的退款ID,透传处理
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalRefundId: String
# @param ChannelExternalOrderId: 渠道方应答的订单号,透传处理
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalOrderId: String
# @param RefundAmt: 子单退款金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundAmt: Integer
# @param SubOutTradeNo: 子单订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubOutTradeNo: String
# @param SubRefundId: 子单退款id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubRefundId: String
# @param SubAppId: 子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAppId: String
# @param ChannelSubOrderId: 渠道子单支付订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubOrderId: String
# @param ChannelSubRefundId: 渠道子退款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubRefundId: String
attr_accessor :ChannelExternalRefundId, :ChannelExternalOrderId, :RefundAmt, :SubOutTradeNo, :SubRefundId, :SubAppId, :ChannelSubOrderId, :ChannelSubRefundId
def initialize(channelexternalrefundid=nil, channelexternalorderid=nil, refundamt=nil, subouttradeno=nil, subrefundid=nil, subappid=nil, channelsuborderid=nil, channelsubrefundid=nil)
@ChannelExternalRefundId = channelexternalrefundid
@ChannelExternalOrderId = channelexternalorderid
@RefundAmt = refundamt
@SubOutTradeNo = subouttradeno
@SubRefundId = subrefundid
@SubAppId = subappid
@ChannelSubOrderId = channelsuborderid
@ChannelSubRefundId = channelsubrefundid
end
def deserialize(params)
@ChannelExternalRefundId = params['ChannelExternalRefundId']
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@RefundAmt = params['RefundAmt']
@SubOutTradeNo = params['SubOutTradeNo']
@SubRefundId = params['SubRefundId']
@SubAppId = params['SubAppId']
@ChannelSubOrderId = params['ChannelSubOrderId']
@ChannelSubRefundId = params['ChannelSubRefundId']
end
end
# 公司抬头结果
class CompanyTitleResult < TencentCloud::Common::AbstractModel
# @param CompanyBankAccount: 公司银行账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyBankAccount: String
# @param CompanyAddress: 公司地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyAddress: String
# @param CompanyTaxpayerNum: 公司税号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyTaxpayerNum: String
# @param CompanyName: 公司名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyName: String
# @param CompanyBankName: 公司银行名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyBankName: String
# @param CompanyPhone: 公司电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CompanyPhone: String
attr_accessor :CompanyBankAccount, :CompanyAddress, :CompanyTaxpayerNum, :CompanyName, :CompanyBankName, :CompanyPhone
def initialize(companybankaccount=nil, companyaddress=nil, companytaxpayernum=nil, companyname=nil, companybankname=nil, companyphone=nil)
@CompanyBankAccount = companybankaccount
@CompanyAddress = companyaddress
@CompanyTaxpayerNum = companytaxpayernum
@CompanyName = companyname
@CompanyBankName = companybankname
@CompanyPhone = companyphone
end
def deserialize(params)
@CompanyBankAccount = params['CompanyBankAccount']
@CompanyAddress = params['CompanyAddress']
@CompanyTaxpayerNum = params['CompanyTaxpayerNum']
@CompanyName = params['CompanyName']
@CompanyBankName = params['CompanyBankName']
@CompanyPhone = params['CompanyPhone']
end
end
# ConfirmOrder请求参数结构体
class ConfirmOrderRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的AppId
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。消费订单发起成功后,返回的平台唯一订单号。
# @type OrderNo: String
attr_accessor :MerchantAppId, :OrderNo
def initialize(merchantappid=nil, orderno=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
end
end
# ConfirmOrder返回参数结构体
class ConfirmOrderResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的AppId
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。消费订单发起成功后,返回的平台唯一订单号。
# @type OrderNo: String
# @param Status: 订单确认状态。0-确认失败
# 1-确认成功
# 2-可疑状态
# @type Status: String
# @param Description: 订单确认状态描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Description: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :OrderNo, :Status, :Description, :RequestId
def initialize(merchantappid=nil, orderno=nil, status=nil, description=nil, requestid=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
@Status = status
@Description = description
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
@Status = params['Status']
@Description = params['Description']
@RequestId = params['RequestId']
end
end
# 合约信息
class ContractInfo < TencentCloud::Common::AbstractModel
# @param ChannelContractMerchantId: 米大师内部签约商户号
# @type ChannelContractMerchantId: String
# @param ChannelContractSubMerchantId: 米大师内部签约子商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelContractSubMerchantId: String
# @param ChannelContractAppId: 米大师内部签约应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelContractAppId: String
# @param ChannelContractSubAppId: 米大师内部签约子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelContractSubAppId: String
# @param OutContractCode: 业务合约协议号
# @type OutContractCode: String
# @param ExternalContractUserInfoList: 第三方渠道用户信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalContractUserInfoList: Array
# @param ContractMethod: 签约方式,如 wechat_app ,使用app方式下的微信签
# @type ContractMethod: String
# @param ContractSceneId: 合约场景id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractSceneId: String
# @param UserInfo: 用户信息
# @type UserInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ContractUserInfo`
# @param ExternalContractData: 第三方渠道签约数据
# @type ExternalContractData: String
attr_accessor :ChannelContractMerchantId, :ChannelContractSubMerchantId, :ChannelContractAppId, :ChannelContractSubAppId, :OutContractCode, :ExternalContractUserInfoList, :ContractMethod, :ContractSceneId, :UserInfo, :ExternalContractData
def initialize(channelcontractmerchantid=nil, channelcontractsubmerchantid=nil, channelcontractappid=nil, channelcontractsubappid=nil, outcontractcode=nil, externalcontractuserinfolist=nil, contractmethod=nil, contractsceneid=nil, userinfo=nil, externalcontractdata=nil)
@ChannelContractMerchantId = channelcontractmerchantid
@ChannelContractSubMerchantId = channelcontractsubmerchantid
@ChannelContractAppId = channelcontractappid
@ChannelContractSubAppId = channelcontractsubappid
@OutContractCode = outcontractcode
@ExternalContractUserInfoList = externalcontractuserinfolist
@ContractMethod = contractmethod
@ContractSceneId = contractsceneid
@UserInfo = userinfo
@ExternalContractData = externalcontractdata
end
def deserialize(params)
@ChannelContractMerchantId = params['ChannelContractMerchantId']
@ChannelContractSubMerchantId = params['ChannelContractSubMerchantId']
@ChannelContractAppId = params['ChannelContractAppId']
@ChannelContractSubAppId = params['ChannelContractSubAppId']
@OutContractCode = params['OutContractCode']
unless params['ExternalContractUserInfoList'].nil?
@ExternalContractUserInfoList = []
params['ExternalContractUserInfoList'].each do |i|
externalcontractuserinfo_tmp = ExternalContractUserInfo.new
externalcontractuserinfo_tmp.deserialize(i)
@ExternalContractUserInfoList << externalcontractuserinfo_tmp
end
end
@ContractMethod = params['ContractMethod']
@ContractSceneId = params['ContractSceneId']
unless params['UserInfo'].nil?
@UserInfo = ContractUserInfo.new
@UserInfo.deserialize(params['UserInfo'])
end
@ExternalContractData = params['ExternalContractData']
end
end
# 支付中签约子订单列表
class ContractOrderInSubOrder < TencentCloud::Common::AbstractModel
# @param SubMchIncome: 子订单结算应收金额,单位: 分
# @type SubMchIncome: Integer
# @param PlatformIncome: 子订单平台应收金额,单位:分
# @type PlatformIncome: Integer
# @param ProductDetail: 子订单商品详情
# @type ProductDetail: String
# @param ProductName: 子订单商品名称
# @type ProductName: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
# @param Amt: 子订单支付金额
# @type Amt: Integer
# @param OriginalAmt: 子订单原始金额
# @type OriginalAmt: Integer
# @param Metadata: 发货标识,由业务在调用聚鑫下单接口的 时候下发
# @type Metadata: String
attr_accessor :SubMchIncome, :PlatformIncome, :ProductDetail, :ProductName, :SubAppId, :SubOutTradeNo, :Amt, :OriginalAmt, :Metadata
def initialize(submchincome=nil, platformincome=nil, productdetail=nil, productname=nil, subappid=nil, subouttradeno=nil, amt=nil, originalamt=nil, metadata=nil)
@SubMchIncome = submchincome
@PlatformIncome = platformincome
@ProductDetail = productdetail
@ProductName = productname
@SubAppId = subappid
@SubOutTradeNo = subouttradeno
@Amt = amt
@OriginalAmt = originalamt
@Metadata = metadata
end
def deserialize(params)
@SubMchIncome = params['SubMchIncome']
@PlatformIncome = params['PlatformIncome']
@ProductDetail = params['ProductDetail']
@ProductName = params['ProductName']
@SubAppId = params['SubAppId']
@SubOutTradeNo = params['SubOutTradeNo']
@Amt = params['Amt']
@OriginalAmt = params['OriginalAmt']
@Metadata = params['Metadata']
end
end
# ContractOrder请求参数结构体
class ContractOrderRequest < TencentCloud::Common::AbstractModel
# @param CurrencyType: ISO 货币代码,CNY
# @type CurrencyType: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param OutTradeNo: 支付订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type OutTradeNo: String
# @param ProductDetail: 商品详情,需要URL编码
# @type ProductDetail: String
# @param ProductId: 商品ID,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type ProductId: String
# @param ProductName: 商品名称,需要URL编码
# @type ProductName: String
# @param TotalAmt: 支付金额,单位: 分
# @type TotalAmt: Integer
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param RealChannel: 银行真实渠道.如:bank_pingan
# @type RealChannel: String
# @param OriginalAmt: 原始金额
# @type OriginalAmt: Integer
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param ContractNotifyUrl: 签约通知地址
# @type ContractNotifyUrl: String
# @param CallbackUrl: Web端回调地址
# @type CallbackUrl: String
# @param Channel: 指定支付渠道: wechat:微信支付 qqwallet:QQ钱包
# bank:网银支付 只有一个渠道时需要指定
# @type Channel: String
# @param Metadata: 透传字段,支付成功回调透传给应用,用于业务透传自定义内容
# @type Metadata: String
# @param Quantity: 购买数量,不传默认为1
# @type Quantity: Integer
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubOrderList: 子订单信息列表,格式:子订单号、子应用ID、金额。 压缩后最长不可超过65535字节(去除空格,换行,制表符等无意义字符)
# 注:接入银行或其他支付渠道服务商模式下,必传
# @type SubOrderList: Array
# @param TotalMchIncome: 结算应收金额,单位:分
# @type TotalMchIncome: Integer
# @param TotalPlatformIncome: 平台应收金额,单位:分
# @type TotalPlatformIncome: Integer
# @param WxOpenId: 微信公众号/小程序支付时为必选,需要传微信下的openid
# @type WxOpenId: String
# @param WxSubOpenId: 在服务商模式下,微信公众号/小程序支付时wx_sub_openid和wx_openid二选一
# @type WxSubOpenId: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param WxAppId: 微信商户应用ID
# @type WxAppId: String
# @param WxSubAppId: 微信商户子应用ID
# @type WxSubAppId: String
# @param PaymentNotifyUrl: 支付通知地址
# @type PaymentNotifyUrl: String
# @param ContractSceneId: 传入调用方在Midas注册签约信息时获得的ContractSceneId。若未在Midas注册签约信息,则传入ExternalContractData。注意:ContractSceneId与ExternalContractData必须二选一传入其中一个
# @type ContractSceneId: String
# @param ExternalContractData: 需要按照各个渠道的扩展签约信息规范组装好该字段。若未在Midas注册签约信息,则传入该字段。注意:ContractSceneId与ExternalContractData必须二选一传入其中一个
# @type ExternalContractData: String
# @param OutContractCode: 外部签约协议号,唯一标记一个签约关系。仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type OutContractCode: String
# @param AttachData: 透传给第三方渠道的附加数据
# @type AttachData: String
# @param ContractDisplayName: 展示用的签约用户名称,若不传入时,默认取UserId
# @type ContractDisplayName: String
attr_accessor :CurrencyType, :MidasAppId, :OutTradeNo, :ProductDetail, :ProductId, :ProductName, :TotalAmt, :UserId, :RealChannel, :OriginalAmt, :MidasSecretId, :MidasSignature, :ContractNotifyUrl, :CallbackUrl, :Channel, :Metadata, :Quantity, :SubAppId, :SubOrderList, :TotalMchIncome, :TotalPlatformIncome, :WxOpenId, :WxSubOpenId, :MidasEnvironment, :WxAppId, :WxSubAppId, :PaymentNotifyUrl, :ContractSceneId, :ExternalContractData, :OutContractCode, :AttachData, :ContractDisplayName
def initialize(currencytype=nil, midasappid=nil, outtradeno=nil, productdetail=nil, productid=nil, productname=nil, totalamt=nil, userid=nil, realchannel=nil, originalamt=nil, midassecretid=nil, midassignature=nil, contractnotifyurl=nil, callbackurl=nil, channel=nil, metadata=nil, quantity=nil, subappid=nil, suborderlist=nil, totalmchincome=nil, totalplatformincome=nil, wxopenid=nil, wxsubopenid=nil, midasenvironment=nil, wxappid=nil, wxsubappid=nil, paymentnotifyurl=nil, contractsceneid=nil, externalcontractdata=nil, outcontractcode=nil, attachdata=nil, contractdisplayname=nil)
@CurrencyType = currencytype
@MidasAppId = midasappid
@OutTradeNo = outtradeno
@ProductDetail = productdetail
@ProductId = productid
@ProductName = productname
@TotalAmt = totalamt
@UserId = userid
@RealChannel = realchannel
@OriginalAmt = originalamt
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@ContractNotifyUrl = contractnotifyurl
@CallbackUrl = callbackurl
@Channel = channel
@Metadata = metadata
@Quantity = quantity
@SubAppId = subappid
@SubOrderList = suborderlist
@TotalMchIncome = totalmchincome
@TotalPlatformIncome = totalplatformincome
@WxOpenId = wxopenid
@WxSubOpenId = wxsubopenid
@MidasEnvironment = midasenvironment
@WxAppId = wxappid
@WxSubAppId = wxsubappid
@PaymentNotifyUrl = paymentnotifyurl
@ContractSceneId = contractsceneid
@ExternalContractData = externalcontractdata
@OutContractCode = outcontractcode
@AttachData = attachdata
@ContractDisplayName = contractdisplayname
end
def deserialize(params)
@CurrencyType = params['CurrencyType']
@MidasAppId = params['MidasAppId']
@OutTradeNo = params['OutTradeNo']
@ProductDetail = params['ProductDetail']
@ProductId = params['ProductId']
@ProductName = params['ProductName']
@TotalAmt = params['TotalAmt']
@UserId = params['UserId']
@RealChannel = params['RealChannel']
@OriginalAmt = params['OriginalAmt']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@ContractNotifyUrl = params['ContractNotifyUrl']
@CallbackUrl = params['CallbackUrl']
@Channel = params['Channel']
@Metadata = params['Metadata']
@Quantity = params['Quantity']
@SubAppId = params['SubAppId']
unless params['SubOrderList'].nil?
@SubOrderList = []
params['SubOrderList'].each do |i|
contractorderinsuborder_tmp = ContractOrderInSubOrder.new
contractorderinsuborder_tmp.deserialize(i)
@SubOrderList << contractorderinsuborder_tmp
end
end
@TotalMchIncome = params['TotalMchIncome']
@TotalPlatformIncome = params['TotalPlatformIncome']
@WxOpenId = params['WxOpenId']
@WxSubOpenId = params['WxSubOpenId']
@MidasEnvironment = params['MidasEnvironment']
@WxAppId = params['WxAppId']
@WxSubAppId = params['WxSubAppId']
@PaymentNotifyUrl = params['PaymentNotifyUrl']
@ContractSceneId = params['ContractSceneId']
@ExternalContractData = params['ExternalContractData']
@OutContractCode = params['OutContractCode']
@AttachData = params['AttachData']
@ContractDisplayName = params['ContractDisplayName']
end
end
# ContractOrder返回参数结构体
class ContractOrderResponse < TencentCloud::Common::AbstractModel
# @param TotalAmt: 支付金额,单位: 分
# @type TotalAmt: Integer
# @param OutTradeNo: 应用支付订单号
# @type OutTradeNo: String
# @param PayInfo: 支付参数透传给聚鑫SDK(原文透传给SDK即可,不需要解码)
# @type PayInfo: String
# @param TransactionId: 聚鑫的交易订单号
# @type TransactionId: String
# @param OutContractCode: 外部签约协议号
# @type OutContractCode: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalAmt, :OutTradeNo, :PayInfo, :TransactionId, :OutContractCode, :RequestId
def initialize(totalamt=nil, outtradeno=nil, payinfo=nil, transactionid=nil, outcontractcode=nil, requestid=nil)
@TotalAmt = totalamt
@OutTradeNo = outtradeno
@PayInfo = payinfo
@TransactionId = transactionid
@OutContractCode = outcontractcode
@RequestId = requestid
end
def deserialize(params)
@TotalAmt = params['TotalAmt']
@OutTradeNo = params['OutTradeNo']
@PayInfo = params['PayInfo']
@TransactionId = params['TransactionId']
@OutContractCode = params['OutContractCode']
@RequestId = params['RequestId']
end
end
# 合同-支付方式列表响应对象
class ContractPayListResult < TencentCloud::Common::AbstractModel
# @param PaymentId: 支付方式编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentId: String
# @param PaymentType: 支持的交易类型(多个以小写逗号分开,0现金,1刷卡,2主扫,3被扫,4JSPAY,5预授权)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentType: String
# @param PaymentTag: 支付标签
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentTag: String
# @param PaymentIcon: 支付方式图片url路径
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentIcon: String
# @param PaymentName: 付款方式名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentName: String
# @param PaymentInternalName: 付款方式名称(内部名称)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentInternalName: String
# @param PaymentOptionOne: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionOne: String
# @param PaymentOptionTwo: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionTwo: String
# @param PaymentOptionThree: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionThree: String
# @param PaymentOptionFour: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionFour: String
# @param PaymentOptionFive: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionFive: String
# @param PaymentOptionSix: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionSix: String
# @param PaymentOptionSeven: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionSeven: String
# @param PaymentOptionOther: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionOther: String
# @param PaymentOptionNine: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionNine: String
# @param PaymentOptionTen: 支付方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionTen: String
attr_accessor :PaymentId, :PaymentType, :PaymentTag, :PaymentIcon, :PaymentName, :PaymentInternalName, :PaymentOptionOne, :PaymentOptionTwo, :PaymentOptionThree, :PaymentOptionFour, :PaymentOptionFive, :PaymentOptionSix, :PaymentOptionSeven, :PaymentOptionOther, :PaymentOptionNine, :PaymentOptionTen
def initialize(paymentid=nil, paymenttype=nil, paymenttag=nil, paymenticon=nil, paymentname=nil, paymentinternalname=nil, paymentoptionone=nil, paymentoptiontwo=nil, paymentoptionthree=nil, paymentoptionfour=nil, paymentoptionfive=nil, paymentoptionsix=nil, paymentoptionseven=nil, paymentoptionother=nil, paymentoptionnine=nil, paymentoptionten=nil)
@PaymentId = paymentid
@PaymentType = paymenttype
@PaymentTag = paymenttag
@PaymentIcon = paymenticon
@PaymentName = paymentname
@PaymentInternalName = paymentinternalname
@PaymentOptionOne = paymentoptionone
@PaymentOptionTwo = paymentoptiontwo
@PaymentOptionThree = paymentoptionthree
@PaymentOptionFour = paymentoptionfour
@PaymentOptionFive = paymentoptionfive
@PaymentOptionSix = paymentoptionsix
@PaymentOptionSeven = paymentoptionseven
@PaymentOptionOther = paymentoptionother
@PaymentOptionNine = paymentoptionnine
@PaymentOptionTen = paymentoptionten
end
def deserialize(params)
@PaymentId = params['PaymentId']
@PaymentType = params['PaymentType']
@PaymentTag = params['PaymentTag']
@PaymentIcon = params['PaymentIcon']
@PaymentName = params['PaymentName']
@PaymentInternalName = params['PaymentInternalName']
@PaymentOptionOne = params['PaymentOptionOne']
@PaymentOptionTwo = params['PaymentOptionTwo']
@PaymentOptionThree = params['PaymentOptionThree']
@PaymentOptionFour = params['PaymentOptionFour']
@PaymentOptionFive = params['PaymentOptionFive']
@PaymentOptionSix = params['PaymentOptionSix']
@PaymentOptionSeven = params['PaymentOptionSeven']
@PaymentOptionOther = params['PaymentOptionOther']
@PaymentOptionNine = params['PaymentOptionNine']
@PaymentOptionTen = params['PaymentOptionTen']
end
end
# 签约同步信息
class ContractSyncInfo < TencentCloud::Common::AbstractModel
# @param ExternalReturnContractInfo: 第三方渠道合约信息
# @type ExternalReturnContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ExternalReturnContractInfo`
# @param ExternalContractUserInfo: 第三方渠道用户信息
# @type ExternalContractUserInfo: Array
# @param ContractMethod: 签约方式,枚举值,
#
CONTRACT_METHOD_WECHAT_INVALID: 无效
# CONTRACT_METHOD_WECHAT_APP: 微信APP
# CONTRACT_METHOD_WECHAT_PUBLIC: 微信公众号
# CONTRACT_METHOD_WECHAT_MINIPROGRAM: 微信小程序
# CONTRACT_METHOD_WECHAT_H5: 微信H5
# @type ContractMethod: String
# @param ContractSceneId: 在米大师侧分配的场景id
# @type ContractSceneId: String
# @param ExternalReturnContractData: 调用方从第三方渠道查询到的签约数据,由各个渠道定义
# @type ExternalReturnContractData: String
attr_accessor :ExternalReturnContractInfo, :ExternalContractUserInfo, :ContractMethod, :ContractSceneId, :ExternalReturnContractData
def initialize(externalreturncontractinfo=nil, externalcontractuserinfo=nil, contractmethod=nil, contractsceneid=nil, externalreturncontractdata=nil)
@ExternalReturnContractInfo = externalreturncontractinfo
@ExternalContractUserInfo = externalcontractuserinfo
@ContractMethod = contractmethod
@ContractSceneId = contractsceneid
@ExternalReturnContractData = externalreturncontractdata
end
def deserialize(params)
unless params['ExternalReturnContractInfo'].nil?
@ExternalReturnContractInfo = ExternalReturnContractInfo.new
@ExternalReturnContractInfo.deserialize(params['ExternalReturnContractInfo'])
end
unless params['ExternalContractUserInfo'].nil?
@ExternalContractUserInfo = []
params['ExternalContractUserInfo'].each do |i|
externalcontractuserinfo_tmp = ExternalContractUserInfo.new
externalcontractuserinfo_tmp.deserialize(i)
@ExternalContractUserInfo << externalcontractuserinfo_tmp
end
end
@ContractMethod = params['ContractMethod']
@ContractSceneId = params['ContractSceneId']
@ExternalReturnContractData = params['ExternalReturnContractData']
end
end
# 用户信息
class ContractUserInfo < TencentCloud::Common::AbstractModel
# @param UserType: USER_ID: 用户ID
# ANONYMOUS: 匿名类型用户ID
# @type UserType: String
# @param UserId: 用户类型
# @type UserId: String
attr_accessor :UserType, :UserId
def initialize(usertype=nil, userid=nil)
@UserType = usertype
@UserId = userid
end
def deserialize(params)
@UserType = params['UserType']
@UserId = params['UserId']
end
end
# CreateAcct请求参数结构体
class CreateAcctRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫平台分配的支付MidasAppId
# @type MidasAppId: String
# @param SubMchId: 业务平台的子商户ID,唯一
# @type SubMchId: String
# @param SubMchName: 子商户名称
# @type SubMchName: String
# @param Address: 子商户地址
# @type Address: String
# @param Contact: 子商户联系人
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type Contact: String
# @param Mobile: 联系人手机号
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type Mobile: String
# @param Email: 邮箱
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type Email: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param SubMchType: 子商户类型:
# 个人: personal
# 企业: enterprise
# 个体工商户: individual
# 缺省: enterprise
# @type SubMchType: String
# @param ShortName: 不填则默认子商户名称
# @type ShortName: String
# @param SubMerchantMemberType: 子商户会员类型:
# general: 普通子账户
# merchant: 商户子账户
# 缺省: general
# @type SubMerchantMemberType: String
# @param SubMerchantKey: 子商户密钥
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SubMerchantKey: String
# @param SubMerchantPrivateKey: 子商户私钥
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SubMerchantPrivateKey: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param SubAcctNo: 银行生成的子商户账户,已开户的场景需要录入
# @type SubAcctNo: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param SubMerchantStoreName: 店铺名称
# 企业、个体工商户必输
# @type SubMerchantStoreName: String
# @param OrganizationInfo: 公司信息
# @type OrganizationInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OrganizationInfo`
# @param SubMerchantIdType: 子商户证件类型
# 1 - 身份证
# 3 - 回乡证
# 4 - 中国护照
# 5 - 台胞证
# 19 - 外国护照
# 52 - 组织机构代码证
# 68 - 营业执照
# 73 - 统一社会信用代码
# @type SubMerchantIdType: String
# @param SubMerchantIdCode: 子商户证件号码
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SubMerchantIdCode: String
attr_accessor :MidasAppId, :SubMchId, :SubMchName, :Address, :Contact, :Mobile, :Email, :MidasSecretId, :MidasSignature, :SubMchType, :ShortName, :SubMerchantMemberType, :SubMerchantKey, :SubMerchantPrivateKey, :EncryptType, :SubAcctNo, :MidasEnvironment, :SubMerchantStoreName, :OrganizationInfo, :SubMerchantIdType, :SubMerchantIdCode
def initialize(midasappid=nil, submchid=nil, submchname=nil, address=nil, contact=nil, mobile=nil, email=nil, midassecretid=nil, midassignature=nil, submchtype=nil, shortname=nil, submerchantmembertype=nil, submerchantkey=nil, submerchantprivatekey=nil, encrypttype=nil, subacctno=nil, midasenvironment=nil, submerchantstorename=nil, organizationinfo=nil, submerchantidtype=nil, submerchantidcode=nil)
@MidasAppId = midasappid
@SubMchId = submchid
@SubMchName = submchname
@Address = address
@Contact = contact
@Mobile = mobile
@Email = email
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@SubMchType = submchtype
@ShortName = shortname
@SubMerchantMemberType = submerchantmembertype
@SubMerchantKey = submerchantkey
@SubMerchantPrivateKey = submerchantprivatekey
@EncryptType = encrypttype
@SubAcctNo = subacctno
@MidasEnvironment = midasenvironment
@SubMerchantStoreName = submerchantstorename
@OrganizationInfo = organizationinfo
@SubMerchantIdType = submerchantidtype
@SubMerchantIdCode = submerchantidcode
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubMchId = params['SubMchId']
@SubMchName = params['SubMchName']
@Address = params['Address']
@Contact = params['Contact']
@Mobile = params['Mobile']
@Email = params['Email']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@SubMchType = params['SubMchType']
@ShortName = params['ShortName']
@SubMerchantMemberType = params['SubMerchantMemberType']
@SubMerchantKey = params['SubMerchantKey']
@SubMerchantPrivateKey = params['SubMerchantPrivateKey']
@EncryptType = params['EncryptType']
@SubAcctNo = params['SubAcctNo']
@MidasEnvironment = params['MidasEnvironment']
@SubMerchantStoreName = params['SubMerchantStoreName']
unless params['OrganizationInfo'].nil?
@OrganizationInfo = OrganizationInfo.new
@OrganizationInfo.deserialize(params['OrganizationInfo'])
end
@SubMerchantIdType = params['SubMerchantIdType']
@SubMerchantIdCode = params['SubMerchantIdCode']
end
end
# CreateAcct返回参数结构体
class CreateAcctResponse < TencentCloud::Common::AbstractModel
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubAcctNo: 银行生成的子商户账户
# @type SubAcctNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SubAppId, :SubAcctNo, :RequestId
def initialize(subappid=nil, subacctno=nil, requestid=nil)
@SubAppId = subappid
@SubAcctNo = subacctno
@RequestId = requestid
end
def deserialize(params)
@SubAppId = params['SubAppId']
@SubAcctNo = params['SubAcctNo']
@RequestId = params['RequestId']
end
end
# CreateAgentTaxPaymentInfos请求参数结构体
class CreateAgentTaxPaymentInfosRequest < TencentCloud::Common::AbstractModel
# @param AgentId: 代理商ID
# @type AgentId: String
# @param Channel: 平台渠道
# @type Channel: Integer
# @param Type: 类型。0-视同,1-个体工商户
# @type Type: Integer
# @param RawElectronicCertUrl: 源电子凭证下载地址
# @type RawElectronicCertUrl: String
# @param FileName: 文件名
# @type FileName: String
# @param AgentTaxPaymentInfos: 完税信息
# @type AgentTaxPaymentInfos: Array
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :AgentId, :Channel, :Type, :RawElectronicCertUrl, :FileName, :AgentTaxPaymentInfos, :Profile
def initialize(agentid=nil, channel=nil, type=nil, rawelectroniccerturl=nil, filename=nil, agenttaxpaymentinfos=nil, profile=nil)
@AgentId = agentid
@Channel = channel
@Type = type
@RawElectronicCertUrl = rawelectroniccerturl
@FileName = filename
@AgentTaxPaymentInfos = agenttaxpaymentinfos
@Profile = profile
end
def deserialize(params)
@AgentId = params['AgentId']
@Channel = params['Channel']
@Type = params['Type']
@RawElectronicCertUrl = params['RawElectronicCertUrl']
@FileName = params['FileName']
unless params['AgentTaxPaymentInfos'].nil?
@AgentTaxPaymentInfos = []
params['AgentTaxPaymentInfos'].each do |i|
agenttaxpayment_tmp = AgentTaxPayment.new
agenttaxpayment_tmp.deserialize(i)
@AgentTaxPaymentInfos << agenttaxpayment_tmp
end
end
@Profile = params['Profile']
end
end
# CreateAgentTaxPaymentInfos返回参数结构体
class CreateAgentTaxPaymentInfosResponse < TencentCloud::Common::AbstractModel
# @param AgentTaxPaymentBatch: 代理商完税证明批次信息
# @type AgentTaxPaymentBatch: :class:`Tencentcloud::Cpdp.v20190820.models.AgentTaxPaymentBatch`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AgentTaxPaymentBatch, :RequestId
def initialize(agenttaxpaymentbatch=nil, requestid=nil)
@AgentTaxPaymentBatch = agenttaxpaymentbatch
@RequestId = requestid
end
def deserialize(params)
unless params['AgentTaxPaymentBatch'].nil?
@AgentTaxPaymentBatch = AgentTaxPaymentBatch.new
@AgentTaxPaymentBatch.deserialize(params['AgentTaxPaymentBatch'])
end
@RequestId = params['RequestId']
end
end
# CreateAnchor请求参数结构体
class CreateAnchorRequest < TencentCloud::Common::AbstractModel
# @param AnchorUid: 主播业务ID,唯一
# @type AnchorUid: String
# @param AnchorName: 主播姓名
# @type AnchorName: String
# @param AnchorPhone: 主播电话
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
# @type AnchorPhone: String
# @param AnchorEmail: 主播邮箱
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
# @type AnchorEmail: String
# @param AnchorAddress: 主播地址
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
# @type AnchorAddress: String
# @param AnchorIdNo: 主播身份证号
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
# @type AnchorIdNo: String
# @param AnchorType: 主播类型
# __KMusic__:全民K歌
# __QMusic__:QQ音乐
# __WeChat__:微信视频号
# @type AnchorType: String
# @param AnchorExtendInfo: 主播扩展信息
# @type AnchorExtendInfo: Array
attr_accessor :AnchorUid, :AnchorName, :AnchorPhone, :AnchorEmail, :AnchorAddress, :AnchorIdNo, :AnchorType, :AnchorExtendInfo
def initialize(anchoruid=nil, anchorname=nil, anchorphone=nil, anchoremail=nil, anchoraddress=nil, anchoridno=nil, anchortype=nil, anchorextendinfo=nil)
@AnchorUid = anchoruid
@AnchorName = anchorname
@AnchorPhone = anchorphone
@AnchorEmail = anchoremail
@AnchorAddress = anchoraddress
@AnchorIdNo = anchoridno
@AnchorType = anchortype
@AnchorExtendInfo = anchorextendinfo
end
def deserialize(params)
@AnchorUid = params['AnchorUid']
@AnchorName = params['AnchorName']
@AnchorPhone = params['AnchorPhone']
@AnchorEmail = params['AnchorEmail']
@AnchorAddress = params['AnchorAddress']
@AnchorIdNo = params['AnchorIdNo']
@AnchorType = params['AnchorType']
unless params['AnchorExtendInfo'].nil?
@AnchorExtendInfo = []
params['AnchorExtendInfo'].each do |i|
anchorextendinfo_tmp = AnchorExtendInfo.new
anchorextendinfo_tmp.deserialize(i)
@AnchorExtendInfo << anchorextendinfo_tmp
end
end
end
end
# CreateAnchor返回参数结构体
class CreateAnchorResponse < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播ID
# @type AnchorId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AnchorId, :RequestId
def initialize(anchorid=nil, requestid=nil)
@AnchorId = anchorid
@RequestId = requestid
end
def deserialize(params)
@AnchorId = params['AnchorId']
@RequestId = params['RequestId']
end
end
# CreateBatchPayment接口BatchInfo对象
class CreateBatchPaymentBatchData < TencentCloud::Common::AbstractModel
# @param OrderId: 订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param TradeSerialNo: 交易流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeSerialNo: String
# @param Status: 交易状态。
# 0 处理中
# 1 预占成功
# 2 交易成功
# 3 交易失败
# 4 未知渠道异常
# 5 预占额度失败
# 6 提交成功
# 7 提交失败
# 8 订单重复提交
# 99 未知系统异常
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: Integer
# @param StatusDesc: 状态描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StatusDesc: String
# @param AgentId: 代理商ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentId: String
# @param AgentName: 代理商名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
attr_accessor :OrderId, :TradeSerialNo, :Status, :StatusDesc, :AgentId, :AgentName
def initialize(orderid=nil, tradeserialno=nil, status=nil, statusdesc=nil, agentid=nil, agentname=nil)
@OrderId = orderid
@TradeSerialNo = tradeserialno
@Status = status
@StatusDesc = statusdesc
@AgentId = agentid
@AgentName = agentname
end
def deserialize(params)
@OrderId = params['OrderId']
@TradeSerialNo = params['TradeSerialNo']
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
end
end
# CreateBatchPayment接口返回响应
class CreateBatchPaymentData < TencentCloud::Common::AbstractModel
# @param BatchId: 批次号
# @type BatchId: String
# @param BatchInfoList: 批次列表详情
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchInfoList: Array
attr_accessor :BatchId, :BatchInfoList
def initialize(batchid=nil, batchinfolist=nil)
@BatchId = batchid
@BatchInfoList = batchinfolist
end
def deserialize(params)
@BatchId = params['BatchId']
unless params['BatchInfoList'].nil?
@BatchInfoList = []
params['BatchInfoList'].each do |i|
createbatchpaymentbatchdata_tmp = CreateBatchPaymentBatchData.new
createbatchpaymentbatchdata_tmp.deserialize(i)
@BatchInfoList << createbatchpaymentbatchdata_tmp
end
end
end
end
# CreateBatchPayment转账明细
class CreateBatchPaymentRecipient < TencentCloud::Common::AbstractModel
# @param TransferAmount: 转账金额
# @type TransferAmount: Integer
# @param OrderId: 订单号
# @type OrderId: String
# @param AnchorId: 主播ID(与主播业务ID不能同时为空,两者都填取主播ID)
# @type AnchorId: String
# @param Uid: 主播业务ID(与主播业务ID不能同时为空,两者都填取主播ID)
# @type Uid: String
# @param AnchorName: 主播名称。如果该字段填入,则会对AnchorName和AnchorId/Uid进行校验。
# @type AnchorName: String
# @param Remark: 业务备注
# @type Remark: String
# @param ReqReserved: 子单请求预留字段
# @type ReqReserved: String
attr_accessor :TransferAmount, :OrderId, :AnchorId, :Uid, :AnchorName, :Remark, :ReqReserved
def initialize(transferamount=nil, orderid=nil, anchorid=nil, uid=nil, anchorname=nil, remark=nil, reqreserved=nil)
@TransferAmount = transferamount
@OrderId = orderid
@AnchorId = anchorid
@Uid = uid
@AnchorName = anchorname
@Remark = remark
@ReqReserved = reqreserved
end
def deserialize(params)
@TransferAmount = params['TransferAmount']
@OrderId = params['OrderId']
@AnchorId = params['AnchorId']
@Uid = params['Uid']
@AnchorName = params['AnchorName']
@Remark = params['Remark']
@ReqReserved = params['ReqReserved']
end
end
# CreateBatchPayment请求参数结构体
class CreateBatchPaymentRequest < TencentCloud::Common::AbstractModel
# @param TransferType: 1 微信企业付款
# 2 支付宝转账
# 3 平安银企直连代发转账
# @type TransferType: Integer
# @param RecipientList: 转账详情
# @type RecipientList: Array
# @param ReqReserved: 请求预留字段
# @type ReqReserved: String
# @param NotifyUrl: 回调Url
# @type NotifyUrl: String
attr_accessor :TransferType, :RecipientList, :ReqReserved, :NotifyUrl
def initialize(transfertype=nil, recipientlist=nil, reqreserved=nil, notifyurl=nil)
@TransferType = transfertype
@RecipientList = recipientlist
@ReqReserved = reqreserved
@NotifyUrl = notifyurl
end
def deserialize(params)
@TransferType = params['TransferType']
unless params['RecipientList'].nil?
@RecipientList = []
params['RecipientList'].each do |i|
createbatchpaymentrecipient_tmp = CreateBatchPaymentRecipient.new
createbatchpaymentrecipient_tmp.deserialize(i)
@RecipientList << createbatchpaymentrecipient_tmp
end
end
@ReqReserved = params['ReqReserved']
@NotifyUrl = params['NotifyUrl']
end
end
# CreateBatchPayment返回参数结构体
class CreateBatchPaymentResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 返回响应
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateBatchPaymentData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateBatchPaymentData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateCloudSubMerchant请求参数结构体
class CreateCloudSubMerchantRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId,根应用Id。
# @type MidasAppId: String
# @param ParentAppId: 父应用Id。
# @type ParentAppId: String
# @param SubMchName: 子商户名。
# @type SubMchName: String
# @param SubMchDescription: 子商户描述。
# @type SubMchDescription: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
# @param SubAppId: 子应用Id,为空则自动创建子应用id。
# @type SubAppId: String
# @param SubMchShortName: 子商户名缩写。
# @type SubMchShortName: String
# @param OutSubMerchantId: 业务平台自定义的子商户Id,唯一。
# @type OutSubMerchantId: String
attr_accessor :MidasAppId, :ParentAppId, :SubMchName, :SubMchDescription, :MidasEnvironment, :SubAppId, :SubMchShortName, :OutSubMerchantId
def initialize(midasappid=nil, parentappid=nil, submchname=nil, submchdescription=nil, midasenvironment=nil, subappid=nil, submchshortname=nil, outsubmerchantid=nil)
@MidasAppId = midasappid
@ParentAppId = parentappid
@SubMchName = submchname
@SubMchDescription = submchdescription
@MidasEnvironment = midasenvironment
@SubAppId = subappid
@SubMchShortName = submchshortname
@OutSubMerchantId = outsubmerchantid
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@ParentAppId = params['ParentAppId']
@SubMchName = params['SubMchName']
@SubMchDescription = params['SubMchDescription']
@MidasEnvironment = params['MidasEnvironment']
@SubAppId = params['SubAppId']
@SubMchShortName = params['SubMchShortName']
@OutSubMerchantId = params['OutSubMerchantId']
end
end
# CreateCloudSubMerchant返回参数结构体
class CreateCloudSubMerchantResponse < TencentCloud::Common::AbstractModel
# @param SubAppId: 子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAppId: String
# @param ChannelSubMerchantId: 渠道子商户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubMerchantId: String
# @param Level: 层级,从0开始
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Level: Integer
# @param ChannelAppId: 渠道应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelAppId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SubAppId, :ChannelSubMerchantId, :Level, :ChannelAppId, :RequestId
def initialize(subappid=nil, channelsubmerchantid=nil, level=nil, channelappid=nil, requestid=nil)
@SubAppId = subappid
@ChannelSubMerchantId = channelsubmerchantid
@Level = level
@ChannelAppId = channelappid
@RequestId = requestid
end
def deserialize(params)
@SubAppId = params['SubAppId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@Level = params['Level']
@ChannelAppId = params['ChannelAppId']
@RequestId = params['RequestId']
end
end
# CreateCustAcctId请求参数结构体
class CreateCustAcctIdRequest < TencentCloud::Common::AbstractModel
# @param FunctionFlag: STRING(2),功能标志(1: 开户; 3: 销户)
# @type FunctionFlag: String
# @param FundSummaryAcctNo: STRING(50),资金汇总账号(即收单资金归集入账的账号)
# @type FundSummaryAcctNo: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(平台端的用户ID,需要保证唯一性,可数字字母混合,如HY_120)
# @type TranNetMemberCode: String
# @param MemberProperty: STRING(10),会员属性(00-普通子账户(默认); SH-商户子账户)
# @type MemberProperty: String
# @param Mobile: STRING(30),手机号码
# @type Mobile: String
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param SelfBusiness: String(2),是否为自营业务(0位非自营,1为自营)
# @type SelfBusiness: Boolean
# @param ContactName: String(64),联系人
# @type ContactName: String
# @param SubAcctName: String(64),子账户名称
# @type SubAcctName: String
# @param SubAcctShortName: String(64),子账户简称
# @type SubAcctShortName: String
# @param SubAcctType: String(4),子账户类型(0: 个人子账户; 1: 企业子账户)
# @type SubAcctType: Integer
# @param UserNickname: STRING(150),用户昵称
# @type UserNickname: String
# @param Email: STRING(150),邮箱
# @type Email: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :FunctionFlag, :FundSummaryAcctNo, :TranNetMemberCode, :MemberProperty, :Mobile, :MrchCode, :SelfBusiness, :ContactName, :SubAcctName, :SubAcctShortName, :SubAcctType, :UserNickname, :Email, :ReservedMsg, :Profile
def initialize(functionflag=nil, fundsummaryacctno=nil, trannetmembercode=nil, memberproperty=nil, mobile=nil, mrchcode=nil, selfbusiness=nil, contactname=nil, subacctname=nil, subacctshortname=nil, subaccttype=nil, usernickname=nil, email=nil, reservedmsg=nil, profile=nil)
@FunctionFlag = functionflag
@FundSummaryAcctNo = fundsummaryacctno
@TranNetMemberCode = trannetmembercode
@MemberProperty = memberproperty
@Mobile = mobile
@MrchCode = mrchcode
@SelfBusiness = selfbusiness
@ContactName = contactname
@SubAcctName = subacctname
@SubAcctShortName = subacctshortname
@SubAcctType = subaccttype
@UserNickname = usernickname
@Email = email
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@FunctionFlag = params['FunctionFlag']
@FundSummaryAcctNo = params['FundSummaryAcctNo']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberProperty = params['MemberProperty']
@Mobile = params['Mobile']
@MrchCode = params['MrchCode']
@SelfBusiness = params['SelfBusiness']
@ContactName = params['ContactName']
@SubAcctName = params['SubAcctName']
@SubAcctShortName = params['SubAcctShortName']
@SubAcctType = params['SubAcctType']
@UserNickname = params['UserNickname']
@Email = params['Email']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# CreateCustAcctId返回参数结构体
class CreateCustAcctIdResponse < TencentCloud::Common::AbstractModel
# @param SubAcctNo: STRING(50),见证子账户的账号(平台需要记录下来,后续所有接口交互都会用到)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctNo: String
# @param ReservedMsg: STRING(1027),保留域(需要开通智能收款,此处返回智能收款账号,正常情况下返回空)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SubAcctNo, :ReservedMsg, :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :RequestId
def initialize(subacctno=nil, reservedmsg=nil, txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, requestid=nil)
@SubAcctNo = subacctno
@ReservedMsg = reservedmsg
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@RequestId = requestid
end
def deserialize(params)
@SubAcctNo = params['SubAcctNo']
@ReservedMsg = params['ReservedMsg']
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@RequestId = params['RequestId']
end
end
# 创建第三方电子记账本返回值
class CreateExternalAccountBookResult < TencentCloud::Common::AbstractModel
# @param DealStatus: 处理状态。
# __SUCCESS__: 成功
# __FAILED__: 失败
# __PROCESSING__: 进行中。
# @type DealStatus: String
# @param DealMessage: 处理返回描述,例如失败原因等
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DealMessage: String
# @param ChannelAccountBookId: 渠道电子记账本ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelAccountBookId: String
# @param CollectMoneyAccountInfo: 电子记账本对外收款的账户信息。为JSON格式字符串(成功状态下返回)。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CollectMoneyAccountInfo: String
attr_accessor :DealStatus, :DealMessage, :ChannelAccountBookId, :CollectMoneyAccountInfo
def initialize(dealstatus=nil, dealmessage=nil, channelaccountbookid=nil, collectmoneyaccountinfo=nil)
@DealStatus = dealstatus
@DealMessage = dealmessage
@ChannelAccountBookId = channelaccountbookid
@CollectMoneyAccountInfo = collectmoneyaccountinfo
end
def deserialize(params)
@DealStatus = params['DealStatus']
@DealMessage = params['DealMessage']
@ChannelAccountBookId = params['ChannelAccountBookId']
@CollectMoneyAccountInfo = params['CollectMoneyAccountInfo']
end
end
# CreateExternalAnchor接口返回参数
class CreateExternalAnchorData < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播Id
# @type AnchorId: String
attr_accessor :AnchorId
def initialize(anchorid=nil)
@AnchorId = anchorid
end
def deserialize(params)
@AnchorId = params['AnchorId']
end
end
# CreateExternalAnchor请求参数结构体
class CreateExternalAnchorRequest < TencentCloud::Common::AbstractModel
# @param Uid: 平台业务系统唯一标示的主播id
# @type Uid: String
# @param Name: 主播名称
# @type Name: String
# @param IdNo: 身份证号
# @type IdNo: String
# @param IdCardFront: 身份证正面图片下载链接
# @type IdCardFront: String
# @param IdCardReverse: 身份证反面图片下载链接
# @type IdCardReverse: String
# @param AgentId: 指定分配的代理商ID
# @type AgentId: String
attr_accessor :Uid, :Name, :IdNo, :IdCardFront, :IdCardReverse, :AgentId
def initialize(uid=nil, name=nil, idno=nil, idcardfront=nil, idcardreverse=nil, agentid=nil)
@Uid = uid
@Name = name
@IdNo = idno
@IdCardFront = idcardfront
@IdCardReverse = idcardreverse
@AgentId = agentid
end
def deserialize(params)
@Uid = params['Uid']
@Name = params['Name']
@IdNo = params['IdNo']
@IdCardFront = params['IdCardFront']
@IdCardReverse = params['IdCardReverse']
@AgentId = params['AgentId']
end
end
# CreateExternalAnchor返回参数结构体
class CreateExternalAnchorResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 返回响应
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateExternalAnchorData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateExternalAnchorData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateFlexPayee请求参数结构体
class CreateFlexPayeeRequest < TencentCloud::Common::AbstractModel
# @param OutUserId: 用户外部业务ID
# @type OutUserId: String
# @param Name: 姓名
# @type Name: String
# @param IdNo: 证件号
# @type IdNo: String
# @param AccountName: 账户名称
# @type AccountName: String
# @param ServiceProviderId: 服务商ID
# @type ServiceProviderId: String
# @param TaxInfo: 计税信息
# @type TaxInfo: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeTaxInfo`
# @param IdType: 证件类型
# 0:身份证
# 1:社会信用代码
# @type IdType: Integer
# @param Remark: 备注
# @type Remark: String
# @param PhoneNo: 手机号码
# @type PhoneNo: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :OutUserId, :Name, :IdNo, :AccountName, :ServiceProviderId, :TaxInfo, :IdType, :Remark, :PhoneNo, :Environment
def initialize(outuserid=nil, name=nil, idno=nil, accountname=nil, serviceproviderid=nil, taxinfo=nil, idtype=nil, remark=nil, phoneno=nil, environment=nil)
@OutUserId = outuserid
@Name = name
@IdNo = idno
@AccountName = accountname
@ServiceProviderId = serviceproviderid
@TaxInfo = taxinfo
@IdType = idtype
@Remark = remark
@PhoneNo = phoneno
@Environment = environment
end
def deserialize(params)
@OutUserId = params['OutUserId']
@Name = params['Name']
@IdNo = params['IdNo']
@AccountName = params['AccountName']
@ServiceProviderId = params['ServiceProviderId']
unless params['TaxInfo'].nil?
@TaxInfo = PayeeTaxInfo.new
@TaxInfo.deserialize(params['TaxInfo'])
end
@IdType = params['IdType']
@Remark = params['Remark']
@PhoneNo = params['PhoneNo']
@Environment = params['Environment']
end
end
# CreateFlexPayee返回参数结构体
class CreateFlexPayeeResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateFlexPayeeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateFlexPayeeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 账户开立结果
class CreateFlexPayeeResult < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
attr_accessor :PayeeId
def initialize(payeeid=nil)
@PayeeId = payeeid
end
def deserialize(params)
@PayeeId = params['PayeeId']
end
end
# 发票开具明细
class CreateInvoiceItem < TencentCloud::Common::AbstractModel
# @param Name: 商品名称
# @type Name: String
# @param TaxCode: 税收商品编码
# @type TaxCode: String
# @param TotalPrice: 不含税商品总价(商品含税价总额/(1+税率))。InvoicePlatformId 为1时,该金额为含税总金额。单位为分。
# @type TotalPrice: Integer
# @param TaxRate: 商品税率
# @type TaxRate: Integer
# @param TaxAmount: 商品税额(不含税商品总价*税率)。单位为分
# @type TaxAmount: Integer
# @param TaxType: 税收商品类别
# @type TaxType: String
# @param Models: 商品规格
# @type Models: String
# @param Unit: 商品单位
# @type Unit: String
# @param Total: 商品数量
# @type Total: String
# @param Price: 不含税商品单价。InvoicePlatformId 为1时,该金额为含税单价。
# @type Price: String
# @param Discount: 含税折扣总额。单位为分
# @type Discount: Integer
# @param PreferentialPolicyFlag: 优惠政策标志。0:不使用优惠政策;1:使用优惠政策。
# @type PreferentialPolicyFlag: String
# @param ZeroTaxFlag: 零税率标识:
# 空:非零税率;
# 0:出口零税率;
# 1:免税;
# 2:不征税;
# 3:普通零税率。
# @type ZeroTaxFlag: String
# @param VatSpecialManagement: 增值税特殊管理。PreferentialPolicyFlag字段为1时,必填。目前仅支持5%(3%,2%,1.5%)简易征税、免税、不征税。
# @type VatSpecialManagement: String
attr_accessor :Name, :TaxCode, :TotalPrice, :TaxRate, :TaxAmount, :TaxType, :Models, :Unit, :Total, :Price, :Discount, :PreferentialPolicyFlag, :ZeroTaxFlag, :VatSpecialManagement
def initialize(name=nil, taxcode=nil, totalprice=nil, taxrate=nil, taxamount=nil, taxtype=nil, models=nil, unit=nil, total=nil, price=nil, discount=nil, preferentialpolicyflag=nil, zerotaxflag=nil, vatspecialmanagement=nil)
@Name = name
@TaxCode = taxcode
@TotalPrice = totalprice
@TaxRate = taxrate
@TaxAmount = taxamount
@TaxType = taxtype
@Models = models
@Unit = unit
@Total = total
@Price = price
@Discount = discount
@PreferentialPolicyFlag = preferentialpolicyflag
@ZeroTaxFlag = zerotaxflag
@VatSpecialManagement = vatspecialmanagement
end
def deserialize(params)
@Name = params['Name']
@TaxCode = params['TaxCode']
@TotalPrice = params['TotalPrice']
@TaxRate = params['TaxRate']
@TaxAmount = params['TaxAmount']
@TaxType = params['TaxType']
@Models = params['Models']
@Unit = params['Unit']
@Total = params['Total']
@Price = params['Price']
@Discount = params['Discount']
@PreferentialPolicyFlag = params['PreferentialPolicyFlag']
@ZeroTaxFlag = params['ZeroTaxFlag']
@VatSpecialManagement = params['VatSpecialManagement']
end
end
# CreateInvoice请求参数结构体
class CreateInvoiceRequest < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID。0:高灯,1:票易通
# @type InvoicePlatformId: Integer
# @param TitleType: 抬头类型:1:个人/政府事业单位;2:企业
# @type TitleType: Integer
# @param BuyerTitle: 购方名称
# @type BuyerTitle: String
# @param OrderId: 业务开票号
# @type OrderId: String
# @param AmountHasTax: 含税总金额(单位为分)
# @type AmountHasTax: Integer
# @param TaxAmount: 总税额(单位为分)
# @type TaxAmount: Integer
# @param AmountWithoutTax: 不含税总金额(单位为分)。InvoicePlatformId 为1时,传默认值-1
# @type AmountWithoutTax: Integer
# @param SellerTaxpayerNum: 销方纳税人识别号
# @type SellerTaxpayerNum: String
# @param SellerName: 销方名称。(不填默认读取商户注册时输入的信息)
# @type SellerName: String
# @param SellerAddress: 销方地址。(不填默认读取商户注册时输入的信息)
# @type SellerAddress: String
# @param SellerPhone: 销方电话。(不填默认读取商户注册时输入的信息)
# @type SellerPhone: String
# @param SellerBankName: 销方银行名称。(不填默认读取商户注册时输入的信息)
# @type SellerBankName: String
# @param SellerBankAccount: 销方银行账号。(不填默认读取商户注册时输入的信息)
# @type SellerBankAccount: String
# @param BuyerTaxpayerNum: 购方纳税人识别号(购方票面信息),若抬头类型为2时,必传
# @type BuyerTaxpayerNum: String
# @param BuyerAddress: 购方地址。开具专用发票时必填
# @type BuyerAddress: String
# @param BuyerBankName: 购方银行名称。开具专用发票时必填
# @type BuyerBankName: String
# @param BuyerBankAccount: 购方银行账号。开具专用发票时必填
# @type BuyerBankAccount: String
# @param BuyerPhone: 购方电话。开具专用发票时必填
# @type BuyerPhone: String
# @param BuyerEmail: 收票人邮箱。若填入,会收到发票推送邮件
# @type BuyerEmail: String
# @param TakerPhone: 收票人手机号。若填入,会收到发票推送短信
# @type TakerPhone: String
# @param InvoiceType: 开票类型:
# 1:增值税专用发票;
# 2:增值税普通发票;
# 3:增值税电子发票;
# 4:增值税卷式发票;
# 5:区块链电子发票。
# 若该字段不填,或值不为1-5,则认为开具”增值税电子发票”
# @type InvoiceType: Integer
# @param CallbackUrl: 发票结果回传地址
# @type CallbackUrl: String
# @param Drawer: 开票人姓名。(不填默认读取商户注册时输入的信息)
# @type Drawer: String
# @param Payee: 收款人姓名。(不填默认读取商户注册时输入的信息)
# @type Payee: String
# @param Checker: 复核人姓名。(不填默认读取商户注册时输入的信息)
# @type Checker: String
# @param TerminalCode: 税盘号
# @type TerminalCode: String
# @param LevyMethod: 征收方式。开具差额征税发票时必填2。开具普通征税发票时为空
# @type LevyMethod: String
# @param Deduction: 差额征税扣除额(单位为分)
# @type Deduction: Integer
# @param Remark: 备注(票面信息)
# @type Remark: String
# @param Items: 项目商品明细
# @type Items: Array
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
# @param UndoPart: 撤销部分商品。0-不撤销,1-撤销
# @type UndoPart: Integer
# @param OrderDate: 订单下单时间(格式 YYYYMMDD)
# @type OrderDate: String
# @param Discount: 订单级别折扣(单位为分)
# @type Discount: Integer
# @param StoreNo: 门店编码
# @type StoreNo: String
# @param InvoiceChannel: 开票渠道。0:APP渠道,1:线下渠道,2:小程序渠道。不填默认为APP渠道
# @type InvoiceChannel: Integer
attr_accessor :InvoicePlatformId, :TitleType, :BuyerTitle, :OrderId, :AmountHasTax, :TaxAmount, :AmountWithoutTax, :SellerTaxpayerNum, :SellerName, :SellerAddress, :SellerPhone, :SellerBankName, :SellerBankAccount, :BuyerTaxpayerNum, :BuyerAddress, :BuyerBankName, :BuyerBankAccount, :BuyerPhone, :BuyerEmail, :TakerPhone, :InvoiceType, :CallbackUrl, :Drawer, :Payee, :Checker, :TerminalCode, :LevyMethod, :Deduction, :Remark, :Items, :Profile, :UndoPart, :OrderDate, :Discount, :StoreNo, :InvoiceChannel
def initialize(invoiceplatformid=nil, titletype=nil, buyertitle=nil, orderid=nil, amounthastax=nil, taxamount=nil, amountwithouttax=nil, sellertaxpayernum=nil, sellername=nil, selleraddress=nil, sellerphone=nil, sellerbankname=nil, sellerbankaccount=nil, buyertaxpayernum=nil, buyeraddress=nil, buyerbankname=nil, buyerbankaccount=nil, buyerphone=nil, buyeremail=nil, takerphone=nil, invoicetype=nil, callbackurl=nil, drawer=nil, payee=nil, checker=nil, terminalcode=nil, levymethod=nil, deduction=nil, remark=nil, items=nil, profile=nil, undopart=nil, orderdate=nil, discount=nil, storeno=nil, invoicechannel=nil)
@InvoicePlatformId = invoiceplatformid
@TitleType = titletype
@BuyerTitle = buyertitle
@OrderId = orderid
@AmountHasTax = amounthastax
@TaxAmount = taxamount
@AmountWithoutTax = amountwithouttax
@SellerTaxpayerNum = sellertaxpayernum
@SellerName = sellername
@SellerAddress = selleraddress
@SellerPhone = sellerphone
@SellerBankName = sellerbankname
@SellerBankAccount = sellerbankaccount
@BuyerTaxpayerNum = buyertaxpayernum
@BuyerAddress = buyeraddress
@BuyerBankName = buyerbankname
@BuyerBankAccount = buyerbankaccount
@BuyerPhone = buyerphone
@BuyerEmail = buyeremail
@TakerPhone = takerphone
@InvoiceType = invoicetype
@CallbackUrl = callbackurl
@Drawer = drawer
@Payee = payee
@Checker = checker
@TerminalCode = terminalcode
@LevyMethod = levymethod
@Deduction = deduction
@Remark = remark
@Items = items
@Profile = profile
@UndoPart = undopart
@OrderDate = orderdate
@Discount = discount
@StoreNo = storeno
@InvoiceChannel = invoicechannel
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@TitleType = params['TitleType']
@BuyerTitle = params['BuyerTitle']
@OrderId = params['OrderId']
@AmountHasTax = params['AmountHasTax']
@TaxAmount = params['TaxAmount']
@AmountWithoutTax = params['AmountWithoutTax']
@SellerTaxpayerNum = params['SellerTaxpayerNum']
@SellerName = params['SellerName']
@SellerAddress = params['SellerAddress']
@SellerPhone = params['SellerPhone']
@SellerBankName = params['SellerBankName']
@SellerBankAccount = params['SellerBankAccount']
@BuyerTaxpayerNum = params['BuyerTaxpayerNum']
@BuyerAddress = params['BuyerAddress']
@BuyerBankName = params['BuyerBankName']
@BuyerBankAccount = params['BuyerBankAccount']
@BuyerPhone = params['BuyerPhone']
@BuyerEmail = params['BuyerEmail']
@TakerPhone = params['TakerPhone']
@InvoiceType = params['InvoiceType']
@CallbackUrl = params['CallbackUrl']
@Drawer = params['Drawer']
@Payee = params['Payee']
@Checker = params['Checker']
@TerminalCode = params['TerminalCode']
@LevyMethod = params['LevyMethod']
@Deduction = params['Deduction']
@Remark = params['Remark']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
createinvoiceitem_tmp = CreateInvoiceItem.new
createinvoiceitem_tmp.deserialize(i)
@Items << createinvoiceitem_tmp
end
end
@Profile = params['Profile']
@UndoPart = params['UndoPart']
@OrderDate = params['OrderDate']
@Discount = params['Discount']
@StoreNo = params['StoreNo']
@InvoiceChannel = params['InvoiceChannel']
end
end
# CreateInvoice返回参数结构体
class CreateInvoiceResponse < TencentCloud::Common::AbstractModel
# @param Result: 发票开具结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateInvoiceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = CreateInvoiceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 发票结果
class CreateInvoiceResult < TencentCloud::Common::AbstractModel
# @param Message: 错误消息
# @type Message: String
# @param Code: 错误码
# @type Code: Integer
# @param Data: 数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.CreateInvoiceResultData`
attr_accessor :Message, :Code, :Data
def initialize(message=nil, code=nil, data=nil)
@Message = message
@Code = code
@Data = data
end
def deserialize(params)
@Message = params['Message']
@Code = params['Code']
unless params['Data'].nil?
@Data = CreateInvoiceResultData.new
@Data.deserialize(params['Data'])
end
end
end
# 蓝票结果数据
class CreateInvoiceResultData < TencentCloud::Common::AbstractModel
# @param State: 开票状态
# @type State: Integer
# @param InvoiceId: 发票ID
# @type InvoiceId: String
# @param OrderSn: 业务开票号
# @type OrderSn: String
attr_accessor :State, :InvoiceId, :OrderSn
def initialize(state=nil, invoiceid=nil, ordersn=nil)
@State = state
@InvoiceId = invoiceid
@OrderSn = ordersn
end
def deserialize(params)
@State = params['State']
@InvoiceId = params['InvoiceId']
@OrderSn = params['OrderSn']
end
end
# 发票结果V2
class CreateInvoiceResultV2 < TencentCloud::Common::AbstractModel
# @param InvoiceId: 发票ID
# @type InvoiceId: String
attr_accessor :InvoiceId
def initialize(invoiceid=nil)
@InvoiceId = invoiceid
end
def deserialize(params)
@InvoiceId = params['InvoiceId']
end
end
# CreateInvoiceV2请求参数结构体
class CreateInvoiceV2Request < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID。0:高灯,1:票易通
# @type InvoicePlatformId: Integer
# @param TitleType: 抬头类型:1:个人/政府事业单位;2:企业
# @type TitleType: Integer
# @param BuyerTitle: 购方名称
# @type BuyerTitle: String
# @param OrderId: 业务开票号
# @type OrderId: String
# @param AmountHasTax: 含税总金额(单位为分)
# @type AmountHasTax: Integer
# @param TaxAmount: 总税额(单位为分)
# @type TaxAmount: Integer
# @param AmountWithoutTax: 不含税总金额(单位为分)。InvoicePlatformId 为1时,传默认值-1
# @type AmountWithoutTax: Integer
# @param SellerTaxpayerNum: 销方纳税人识别号
# @type SellerTaxpayerNum: String
# @param SellerName: 销方名称。(不填默认读取商户注册时输入的信息)
# @type SellerName: String
# @param SellerAddress: 销方地址。(不填默认读取商户注册时输入的信息)
# @type SellerAddress: String
# @param SellerPhone: 销方电话。(不填默认读取商户注册时输入的信息)
# @type SellerPhone: String
# @param SellerBankName: 销方银行名称。(不填默认读取商户注册时输入的信息)
# @type SellerBankName: String
# @param SellerBankAccount: 销方银行账号。(不填默认读取商户注册时输入的信息)
# @type SellerBankAccount: String
# @param BuyerTaxpayerNum: 购方纳税人识别号(购方票面信息),若抬头类型为2时,必传
# @type BuyerTaxpayerNum: String
# @param BuyerAddress: 购方地址。开具专用发票时必填
# @type BuyerAddress: String
# @param BuyerBankName: 购方银行名称。开具专用发票时必填
# @type BuyerBankName: String
# @param BuyerBankAccount: 购方银行账号。开具专用发票时必填
# @type BuyerBankAccount: String
# @param BuyerPhone: 购方电话。开具专用发票时必填
# @type BuyerPhone: String
# @param BuyerEmail: 收票人邮箱。若填入,会收到发票推送邮件
# @type BuyerEmail: String
# @param TakerPhone: 收票人手机号。若填入,会收到发票推送短信
# @type TakerPhone: String
# @param InvoiceType: 开票类型:
# 1:增值税专用发票;
# 2:增值税普通发票;
# 3:增值税电子发票;
# 4:增值税卷式发票;
# 5:区块链电子发票。
# 若该字段不填,或值不为1-5,则认为开具”增值税电子发票”
# @type InvoiceType: Integer
# @param CallbackUrl: 发票结果回传地址
# @type CallbackUrl: String
# @param Drawer: 开票人姓名。(不填默认读取商户注册时输入的信息)
# @type Drawer: String
# @param Payee: 收款人姓名。(不填默认读取商户注册时输入的信息)
# @type Payee: String
# @param Checker: 复核人姓名。(不填默认读取商户注册时输入的信息)
# @type Checker: String
# @param TerminalCode: 税盘号
# @type TerminalCode: String
# @param LevyMethod: 征收方式。开具差额征税发票时必填2。开具普通征税发票时为空
# @type LevyMethod: String
# @param Deduction: 差额征税扣除额(单位为分)
# @type Deduction: Integer
# @param Remark: 备注(票面信息)
# @type Remark: String
# @param Items: 项目商品明细
# @type Items: Array
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
# @param UndoPart: 撤销部分商品。0-不撤销,1-撤销
# @type UndoPart: Integer
# @param OrderDate: 订单下单时间(格式 YYYYMMDD)
# @type OrderDate: String
# @param Discount: 订单级别折扣(单位为分)
# @type Discount: Integer
# @param StoreNo: 门店编码
# @type StoreNo: String
# @param InvoiceChannel: 开票渠道。0:APP渠道,1:线下渠道,2:小程序渠道。不填默认为APP渠道
# @type InvoiceChannel: Integer
attr_accessor :InvoicePlatformId, :TitleType, :BuyerTitle, :OrderId, :AmountHasTax, :TaxAmount, :AmountWithoutTax, :SellerTaxpayerNum, :SellerName, :SellerAddress, :SellerPhone, :SellerBankName, :SellerBankAccount, :BuyerTaxpayerNum, :BuyerAddress, :BuyerBankName, :BuyerBankAccount, :BuyerPhone, :BuyerEmail, :TakerPhone, :InvoiceType, :CallbackUrl, :Drawer, :Payee, :Checker, :TerminalCode, :LevyMethod, :Deduction, :Remark, :Items, :Profile, :UndoPart, :OrderDate, :Discount, :StoreNo, :InvoiceChannel
def initialize(invoiceplatformid=nil, titletype=nil, buyertitle=nil, orderid=nil, amounthastax=nil, taxamount=nil, amountwithouttax=nil, sellertaxpayernum=nil, sellername=nil, selleraddress=nil, sellerphone=nil, sellerbankname=nil, sellerbankaccount=nil, buyertaxpayernum=nil, buyeraddress=nil, buyerbankname=nil, buyerbankaccount=nil, buyerphone=nil, buyeremail=nil, takerphone=nil, invoicetype=nil, callbackurl=nil, drawer=nil, payee=nil, checker=nil, terminalcode=nil, levymethod=nil, deduction=nil, remark=nil, items=nil, profile=nil, undopart=nil, orderdate=nil, discount=nil, storeno=nil, invoicechannel=nil)
@InvoicePlatformId = invoiceplatformid
@TitleType = titletype
@BuyerTitle = buyertitle
@OrderId = orderid
@AmountHasTax = amounthastax
@TaxAmount = taxamount
@AmountWithoutTax = amountwithouttax
@SellerTaxpayerNum = sellertaxpayernum
@SellerName = sellername
@SellerAddress = selleraddress
@SellerPhone = sellerphone
@SellerBankName = sellerbankname
@SellerBankAccount = sellerbankaccount
@BuyerTaxpayerNum = buyertaxpayernum
@BuyerAddress = buyeraddress
@BuyerBankName = buyerbankname
@BuyerBankAccount = buyerbankaccount
@BuyerPhone = buyerphone
@BuyerEmail = buyeremail
@TakerPhone = takerphone
@InvoiceType = invoicetype
@CallbackUrl = callbackurl
@Drawer = drawer
@Payee = payee
@Checker = checker
@TerminalCode = terminalcode
@LevyMethod = levymethod
@Deduction = deduction
@Remark = remark
@Items = items
@Profile = profile
@UndoPart = undopart
@OrderDate = orderdate
@Discount = discount
@StoreNo = storeno
@InvoiceChannel = invoicechannel
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@TitleType = params['TitleType']
@BuyerTitle = params['BuyerTitle']
@OrderId = params['OrderId']
@AmountHasTax = params['AmountHasTax']
@TaxAmount = params['TaxAmount']
@AmountWithoutTax = params['AmountWithoutTax']
@SellerTaxpayerNum = params['SellerTaxpayerNum']
@SellerName = params['SellerName']
@SellerAddress = params['SellerAddress']
@SellerPhone = params['SellerPhone']
@SellerBankName = params['SellerBankName']
@SellerBankAccount = params['SellerBankAccount']
@BuyerTaxpayerNum = params['BuyerTaxpayerNum']
@BuyerAddress = params['BuyerAddress']
@BuyerBankName = params['BuyerBankName']
@BuyerBankAccount = params['BuyerBankAccount']
@BuyerPhone = params['BuyerPhone']
@BuyerEmail = params['BuyerEmail']
@TakerPhone = params['TakerPhone']
@InvoiceType = params['InvoiceType']
@CallbackUrl = params['CallbackUrl']
@Drawer = params['Drawer']
@Payee = params['Payee']
@Checker = params['Checker']
@TerminalCode = params['TerminalCode']
@LevyMethod = params['LevyMethod']
@Deduction = params['Deduction']
@Remark = params['Remark']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
createinvoiceitem_tmp = CreateInvoiceItem.new
createinvoiceitem_tmp.deserialize(i)
@Items << createinvoiceitem_tmp
end
end
@Profile = params['Profile']
@UndoPart = params['UndoPart']
@OrderDate = params['OrderDate']
@Discount = params['Discount']
@StoreNo = params['StoreNo']
@InvoiceChannel = params['InvoiceChannel']
end
end
# CreateInvoiceV2返回参数结构体
class CreateInvoiceV2Response < TencentCloud::Common::AbstractModel
# @param Result: 发票开具结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateInvoiceResultV2`
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :ErrCode, :ErrMessage, :RequestId
def initialize(result=nil, errcode=nil, errmessage=nil, requestid=nil)
@Result = result
@ErrCode = errcode
@ErrMessage = errmessage
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = CreateInvoiceResultV2.new
@Result.deserialize(params['Result'])
end
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@RequestId = params['RequestId']
end
end
# CreateMerchant请求参数结构体
class CreateMerchantRequest < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# @type InvoicePlatformId: Integer
# @param TaxpayerName: 企业名称
# @type TaxpayerName: String
# @param TaxpayerNum: 销方纳税人识别号
# @type TaxpayerNum: String
# @param LegalPersonName: 注册企业法定代表人名称
# @type LegalPersonName: String
# @param ContactsName: 联系人
# @type ContactsName: String
# @param Phone: 联系人手机号
# @type Phone: String
# @param Address: 不包含省市名称的地址
# @type Address: String
# @param RegionCode: 地区编码
# @type RegionCode: Integer
# @param CityName: 市(地区)名称
# @type CityName: String
# @param Drawer: 开票人
# @type Drawer: String
# @param TaxRegistrationCertificate: 税务登记证图片(Base64)字符串,需小于 3M
# @type TaxRegistrationCertificate: String
# @param Email: 联系人邮箱地址
# @type Email: String
# @param BusinessMobile: 企业电话
# @type BusinessMobile: String
# @param BankName: 银行名称
# @type BankName: String
# @param BankAccount: 银行账号
# @type BankAccount: String
# @param Reviewer: 复核人
# @type Reviewer: String
# @param Payee: 收款人
# @type Payee: String
# @param RegisterCode: 注册邀请码
# @type RegisterCode: String
# @param State: 不填默认为1,有效状态
# 0:表示无效;
# 1:表示有效;
# 2:表示禁止开蓝票;
# 3:表示禁止冲红。
# @type State: String
# @param CallbackUrl: 接收推送的消息地址
# @type CallbackUrl: String
# @param Profile: 接入环境。沙箱环境填 sandbox。
# @type Profile: String
attr_accessor :InvoicePlatformId, :TaxpayerName, :TaxpayerNum, :LegalPersonName, :ContactsName, :Phone, :Address, :RegionCode, :CityName, :Drawer, :TaxRegistrationCertificate, :Email, :BusinessMobile, :BankName, :BankAccount, :Reviewer, :Payee, :RegisterCode, :State, :CallbackUrl, :Profile
def initialize(invoiceplatformid=nil, taxpayername=nil, taxpayernum=nil, legalpersonname=nil, contactsname=nil, phone=nil, address=nil, regioncode=nil, cityname=nil, drawer=nil, taxregistrationcertificate=nil, email=nil, businessmobile=nil, bankname=nil, bankaccount=nil, reviewer=nil, payee=nil, registercode=nil, state=nil, callbackurl=nil, profile=nil)
@InvoicePlatformId = invoiceplatformid
@TaxpayerName = taxpayername
@TaxpayerNum = taxpayernum
@LegalPersonName = legalpersonname
@ContactsName = contactsname
@Phone = phone
@Address = address
@RegionCode = regioncode
@CityName = cityname
@Drawer = drawer
@TaxRegistrationCertificate = taxregistrationcertificate
@Email = email
@BusinessMobile = businessmobile
@BankName = bankname
@BankAccount = bankaccount
@Reviewer = reviewer
@Payee = payee
@RegisterCode = registercode
@State = state
@CallbackUrl = callbackurl
@Profile = profile
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@TaxpayerName = params['TaxpayerName']
@TaxpayerNum = params['TaxpayerNum']
@LegalPersonName = params['LegalPersonName']
@ContactsName = params['ContactsName']
@Phone = params['Phone']
@Address = params['Address']
@RegionCode = params['RegionCode']
@CityName = params['CityName']
@Drawer = params['Drawer']
@TaxRegistrationCertificate = params['TaxRegistrationCertificate']
@Email = params['Email']
@BusinessMobile = params['BusinessMobile']
@BankName = params['BankName']
@BankAccount = params['BankAccount']
@Reviewer = params['Reviewer']
@Payee = params['Payee']
@RegisterCode = params['RegisterCode']
@State = params['State']
@CallbackUrl = params['CallbackUrl']
@Profile = params['Profile']
end
end
# CreateMerchant返回参数结构体
class CreateMerchantResponse < TencentCloud::Common::AbstractModel
# @param Result: 商户注册结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateMerchantResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = CreateMerchantResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 创建商户结果
class CreateMerchantResult < TencentCloud::Common::AbstractModel
# @param Code: 状态码
# @type Code: Integer
# @param Message: 响应消息
# @type Message: String
# @param Data: 创建商户结果数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.CreateMerchantResultData`
attr_accessor :Code, :Message, :Data
def initialize(code=nil, message=nil, data=nil)
@Code = code
@Message = message
@Data = data
end
def deserialize(params)
@Code = params['Code']
@Message = params['Message']
unless params['Data'].nil?
@Data = CreateMerchantResultData.new
@Data.deserialize(params['Data'])
end
end
end
# 创建商户结果数据
class CreateMerchantResultData < TencentCloud::Common::AbstractModel
# @param TaxpayerName: 企业名称
# @type TaxpayerName: String
# @param SerialNo: 请求流水号
# @type SerialNo: String
# @param TaxpayerNum: 纳税号
# @type TaxpayerNum: String
attr_accessor :TaxpayerName, :SerialNo, :TaxpayerNum
def initialize(taxpayername=nil, serialno=nil, taxpayernum=nil)
@TaxpayerName = taxpayername
@SerialNo = serialno
@TaxpayerNum = taxpayernum
end
def deserialize(params)
@TaxpayerName = params['TaxpayerName']
@SerialNo = params['SerialNo']
@TaxpayerNum = params['TaxpayerNum']
end
end
# CreateOpenBankAggregatedSubMerchantRegistration请求参数结构体
class CreateOpenBankAggregatedSubMerchantRegistrationRequest < TencentCloud::Common::AbstractModel
# @param OutRegistrationNo: 外部进件序列号。
# @type OutRegistrationNo: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param OutSubMerchantId: 外部子商户ID。
# @type OutSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# TENPAY: 商企付
# WECHAT: 微信支付
# ALIPAY: 支付宝
# HELIPAY:合利宝
# @type ChannelName: String
# @param OutSubMerchantType: 外部子商户类型。
# ENTERPRISE:企业商户
# INSTITUTION:事业单位商户
# INDIVIDUALBISS:个体工商户
# PERSON:个人商户(小微商户)
# SUBJECT_TYPE_OTHERS:其他组织
# @type OutSubMerchantType: String
# @param OutSubMerchantName: 外部子商户名称。
# HELIPAY渠道(长度不能小于5大于150)。
# @type OutSubMerchantName: String
# @param LegalPersonInfo: 商户法人代表信息。
# @type LegalPersonInfo: :class:`Tencentcloud::Cpdp.v20190820.models.LegalPersonInfo`
# @param BusinessLicenseInfo: 营业证件信息。
# @type BusinessLicenseInfo: :class:`Tencentcloud::Cpdp.v20190820.models.BusinessLicenseInfo`
# @param InterConnectionSubMerchantData: 支付渠道子商户进件信息。
# json字符串,详情见附录-复杂类型-InterConnectionSubMerchantData。
# @type InterConnectionSubMerchantData: String
# @param PaymentMethod: 支付方式。详见附录-云企付枚举类说明-PaymentMethod。
# 合利宝渠道不需要传。
# @type PaymentMethod: String
# @param OutSubMerchantShortName: 外部子商户简称。
# HELIPAY渠道必传(长度不能小于2大于20)。
# @type OutSubMerchantShortName: String
# @param OutSubMerchantDescription: 外部子商户描述。
# @type OutSubMerchantDescription: String
# @param NotifyUrl: 通知地址。
# @type NotifyUrl: String
# @param NaturalPersonList: 相关自然人信息列表。
# HELIPAY渠道必传业务联系人。
# @type NaturalPersonList: Array
# @param SettleInfo: 商户结算信息。
# HELIPAY渠道必传。
# @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.SettleInfo`
# @param OutSubMerchantExtensionInfo: 外部子商户其他公用扩展信息。
# HELIPAY渠道必传。
# @type OutSubMerchantExtensionInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OutSubMerchantExtensionInfo`
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :OutRegistrationNo, :ChannelMerchantId, :OutSubMerchantId, :ChannelName, :OutSubMerchantType, :OutSubMerchantName, :LegalPersonInfo, :BusinessLicenseInfo, :InterConnectionSubMerchantData, :PaymentMethod, :OutSubMerchantShortName, :OutSubMerchantDescription, :NotifyUrl, :NaturalPersonList, :SettleInfo, :OutSubMerchantExtensionInfo, :Environment
def initialize(outregistrationno=nil, channelmerchantid=nil, outsubmerchantid=nil, channelname=nil, outsubmerchanttype=nil, outsubmerchantname=nil, legalpersoninfo=nil, businesslicenseinfo=nil, interconnectionsubmerchantdata=nil, paymentmethod=nil, outsubmerchantshortname=nil, outsubmerchantdescription=nil, notifyurl=nil, naturalpersonlist=nil, settleinfo=nil, outsubmerchantextensioninfo=nil, environment=nil)
@OutRegistrationNo = outregistrationno
@ChannelMerchantId = channelmerchantid
@OutSubMerchantId = outsubmerchantid
@ChannelName = channelname
@OutSubMerchantType = outsubmerchanttype
@OutSubMerchantName = outsubmerchantname
@LegalPersonInfo = legalpersoninfo
@BusinessLicenseInfo = businesslicenseinfo
@InterConnectionSubMerchantData = interconnectionsubmerchantdata
@PaymentMethod = paymentmethod
@OutSubMerchantShortName = outsubmerchantshortname
@OutSubMerchantDescription = outsubmerchantdescription
@NotifyUrl = notifyurl
@NaturalPersonList = naturalpersonlist
@SettleInfo = settleinfo
@OutSubMerchantExtensionInfo = outsubmerchantextensioninfo
@Environment = environment
end
def deserialize(params)
@OutRegistrationNo = params['OutRegistrationNo']
@ChannelMerchantId = params['ChannelMerchantId']
@OutSubMerchantId = params['OutSubMerchantId']
@ChannelName = params['ChannelName']
@OutSubMerchantType = params['OutSubMerchantType']
@OutSubMerchantName = params['OutSubMerchantName']
unless params['LegalPersonInfo'].nil?
@LegalPersonInfo = LegalPersonInfo.new
@LegalPersonInfo.deserialize(params['LegalPersonInfo'])
end
unless params['BusinessLicenseInfo'].nil?
@BusinessLicenseInfo = BusinessLicenseInfo.new
@BusinessLicenseInfo.deserialize(params['BusinessLicenseInfo'])
end
@InterConnectionSubMerchantData = params['InterConnectionSubMerchantData']
@PaymentMethod = params['PaymentMethod']
@OutSubMerchantShortName = params['OutSubMerchantShortName']
@OutSubMerchantDescription = params['OutSubMerchantDescription']
@NotifyUrl = params['NotifyUrl']
unless params['NaturalPersonList'].nil?
@NaturalPersonList = []
params['NaturalPersonList'].each do |i|
naturalpersoninfo_tmp = NaturalPersonInfo.new
naturalpersoninfo_tmp.deserialize(i)
@NaturalPersonList << naturalpersoninfo_tmp
end
end
unless params['SettleInfo'].nil?
@SettleInfo = SettleInfo.new
@SettleInfo.deserialize(params['SettleInfo'])
end
unless params['OutSubMerchantExtensionInfo'].nil?
@OutSubMerchantExtensionInfo = OutSubMerchantExtensionInfo.new
@OutSubMerchantExtensionInfo.deserialize(params['OutSubMerchantExtensionInfo'])
end
@Environment = params['Environment']
end
end
# CreateOpenBankAggregatedSubMerchantRegistration返回参数结构体
class CreateOpenBankAggregatedSubMerchantRegistrationResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankExternalAggregatedSubMerchantRegistrationResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankExternalAggregatedSubMerchantRegistrationResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 聚合支付子商户线上入驻结果
class CreateOpenBankExternalAggregatedSubMerchantRegistrationResult < TencentCloud::Common::AbstractModel
# @param RegistrationStatus: 进件状态
# SUCCESS: 进件成功
# FAILED: 进件失败
# PROCESSING: 进件中
# 注意:若返回进件中,需要再次调用进件结果查询接口,查询结果。
# @type RegistrationStatus: String
# @param RegistrationMessage: 进件返回描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegistrationMessage: String
# @param ChannelRegistrationNo: 渠道进件序列号
# @type ChannelRegistrationNo: String
# @param ChannelSubMerchantId: 渠道子商户ID
# @type ChannelSubMerchantId: String
attr_accessor :RegistrationStatus, :RegistrationMessage, :ChannelRegistrationNo, :ChannelSubMerchantId
def initialize(registrationstatus=nil, registrationmessage=nil, channelregistrationno=nil, channelsubmerchantid=nil)
@RegistrationStatus = registrationstatus
@RegistrationMessage = registrationmessage
@ChannelRegistrationNo = channelregistrationno
@ChannelSubMerchantId = channelsubmerchantid
end
def deserialize(params)
@RegistrationStatus = params['RegistrationStatus']
@RegistrationMessage = params['RegistrationMessage']
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
end
end
# CreateOpenBankExternalSubMerchantAccountBook请求参数结构体
class CreateOpenBankExternalSubMerchantAccountBookRequest < TencentCloud::Common::AbstractModel
# @param OutAccountBookId: 外部账本ID
# @type OutAccountBookId: String
# @param ChannelMerchantId: 渠道商户ID
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。目前只支持支付宝
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。目前只支持安心发支付
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# __SAFT_ISV__: 安心发支付
# @type PaymentMethod: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :OutAccountBookId, :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :Environment
def initialize(outaccountbookid=nil, channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, environment=nil)
@OutAccountBookId = outaccountbookid
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@Environment = environment
end
def deserialize(params)
@OutAccountBookId = params['OutAccountBookId']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@Environment = params['Environment']
end
end
# CreateOpenBankExternalSubMerchantAccountBook返回参数结构体
class CreateOpenBankExternalSubMerchantAccountBookResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateExternalAccountBookResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateExternalAccountBookResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateOpenBankExternalSubMerchantRegistration请求参数结构体
class CreateOpenBankExternalSubMerchantRegistrationRequest < TencentCloud::Common::AbstractModel
# @param OutRegistrationNo: 外部进件序列号。
# @type OutRegistrationNo: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param OutSubMerchantId: 外部子商户ID,平台侧商户唯一ID。
# @type OutSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。详见附录-云企付枚举类说明-PaymentMethod。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# @type PaymentMethod: String
# @param BusinessLicenseNumber: 社会信用代码。
# @type BusinessLicenseNumber: String
# @param OutSubMerchantName: 外部子商户名称。
# @type OutSubMerchantName: String
# @param LegalName: 法人姓名。
# @type LegalName: String
# @param OutSubMerchantShortName: 外部子商户简称。
# @type OutSubMerchantShortName: String
# @param OutSubMerchantDescription: 外部子商户描述。
# @type OutSubMerchantDescription: String
# @param ExternalSubMerchantRegistrationData: 第三方子商户进件信息,为JSON格式字符串。详情见附录-复杂类型。
# @type ExternalSubMerchantRegistrationData: String
# @param NotifyUrl: 通知地址。
# @type NotifyUrl: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :OutRegistrationNo, :ChannelMerchantId, :OutSubMerchantId, :ChannelName, :PaymentMethod, :BusinessLicenseNumber, :OutSubMerchantName, :LegalName, :OutSubMerchantShortName, :OutSubMerchantDescription, :ExternalSubMerchantRegistrationData, :NotifyUrl, :Environment
def initialize(outregistrationno=nil, channelmerchantid=nil, outsubmerchantid=nil, channelname=nil, paymentmethod=nil, businesslicensenumber=nil, outsubmerchantname=nil, legalname=nil, outsubmerchantshortname=nil, outsubmerchantdescription=nil, externalsubmerchantregistrationdata=nil, notifyurl=nil, environment=nil)
@OutRegistrationNo = outregistrationno
@ChannelMerchantId = channelmerchantid
@OutSubMerchantId = outsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BusinessLicenseNumber = businesslicensenumber
@OutSubMerchantName = outsubmerchantname
@LegalName = legalname
@OutSubMerchantShortName = outsubmerchantshortname
@OutSubMerchantDescription = outsubmerchantdescription
@ExternalSubMerchantRegistrationData = externalsubmerchantregistrationdata
@NotifyUrl = notifyurl
@Environment = environment
end
def deserialize(params)
@OutRegistrationNo = params['OutRegistrationNo']
@ChannelMerchantId = params['ChannelMerchantId']
@OutSubMerchantId = params['OutSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BusinessLicenseNumber = params['BusinessLicenseNumber']
@OutSubMerchantName = params['OutSubMerchantName']
@LegalName = params['LegalName']
@OutSubMerchantShortName = params['OutSubMerchantShortName']
@OutSubMerchantDescription = params['OutSubMerchantDescription']
@ExternalSubMerchantRegistrationData = params['ExternalSubMerchantRegistrationData']
@NotifyUrl = params['NotifyUrl']
@Environment = params['Environment']
end
end
# CreateOpenBankExternalSubMerchantRegistration返回参数结构体
class CreateOpenBankExternalSubMerchantRegistrationResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankExternalSubMerchantRegistrationResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankExternalSubMerchantRegistrationResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户进件返回结果
class CreateOpenBankExternalSubMerchantRegistrationResult < TencentCloud::Common::AbstractModel
# @param RegistrationStatus: 进件状态。
# __SUCCESS__: 进件成功
# __FAILED__: 进件失败
# __PROCESSING__: 进件中
# 注意:若返回进件中,需要再次调用进件结果查询接口,查询结果。
# @type RegistrationStatus: String
# @param RegistrationMessage: 进件返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegistrationMessage: String
# @param ChannelRegistrationNo: 渠道进件序列号。
# @type ChannelRegistrationNo: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ExternalReturnData: 第三方渠道返回信息, 为JSON格式字符串。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
attr_accessor :RegistrationStatus, :RegistrationMessage, :ChannelRegistrationNo, :ChannelSubMerchantId, :ExternalReturnData
def initialize(registrationstatus=nil, registrationmessage=nil, channelregistrationno=nil, channelsubmerchantid=nil, externalreturndata=nil)
@RegistrationStatus = registrationstatus
@RegistrationMessage = registrationmessage
@ChannelRegistrationNo = channelregistrationno
@ChannelSubMerchantId = channelsubmerchantid
@ExternalReturnData = externalreturndata
end
def deserialize(params)
@RegistrationStatus = params['RegistrationStatus']
@RegistrationMessage = params['RegistrationMessage']
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ExternalReturnData = params['ExternalReturnData']
end
end
# CreateOpenBankGlobalPaymentOrder请求参数结构体
class CreateOpenBankGlobalPaymentOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称
# @type ChannelName: String
# @param PayType: 付款方式
# @type PayType: String
# @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一
# @type OutOrderId: String
# @param TotalAmount: 付款金额,单位分
# @type TotalAmount: Integer
# @param Currency: 支付币种,参考附录:货币代码
# @type Currency: String
# @param ChannelSubMerchantId: 渠道子商户号
# @type ChannelSubMerchantId: String
# @param NotifyUrl: 支付成功回调地址。
# @type NotifyUrl: String
# @param FrontUrl: 前端跳转地址。通联支付成功后,支付网关跳回商户的地址
# @type FrontUrl: String
# @param FrontLanguage: 网站语言。收银台显示语言,见附录网站语言
# @type FrontLanguage: String
# @param Remark: 付款备注
# @type Remark: String
# @param ExternalPaymentData: 第三方拓展信息信息
# @type ExternalPaymentData: String
# @param GoodsInfos: 商品信息
# @type GoodsInfos: Array
# @param ShippingInfo: 邮寄信息
# @type ShippingInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankShippingInfo`
# @param BillingInfo: 账单信息
# @type BillingInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankBillingInfo`
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PayType, :OutOrderId, :TotalAmount, :Currency, :ChannelSubMerchantId, :NotifyUrl, :FrontUrl, :FrontLanguage, :Remark, :ExternalPaymentData, :GoodsInfos, :ShippingInfo, :BillingInfo, :Environment
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, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PayType = paytype
@OutOrderId = outorderid
@TotalAmount = totalamount
@Currency = currency
@ChannelSubMerchantId = channelsubmerchantid
@NotifyUrl = notifyurl
@FrontUrl = fronturl
@FrontLanguage = frontlanguage
@Remark = remark
@ExternalPaymentData = externalpaymentdata
@GoodsInfos = goodsinfos
@ShippingInfo = shippinginfo
@BillingInfo = billinginfo
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@PayType = params['PayType']
@OutOrderId = params['OutOrderId']
@TotalAmount = params['TotalAmount']
@Currency = params['Currency']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@NotifyUrl = params['NotifyUrl']
@FrontUrl = params['FrontUrl']
@FrontLanguage = params['FrontLanguage']
@Remark = params['Remark']
@ExternalPaymentData = params['ExternalPaymentData']
unless params['GoodsInfos'].nil?
@GoodsInfos = []
params['GoodsInfos'].each do |i|
openbankgoodsinfo_tmp = OpenBankGoodsInfo.new
openbankgoodsinfo_tmp.deserialize(i)
@GoodsInfos << openbankgoodsinfo_tmp
end
end
unless params['ShippingInfo'].nil?
@ShippingInfo = OpenBankShippingInfo.new
@ShippingInfo.deserialize(params['ShippingInfo'])
end
unless params['BillingInfo'].nil?
@BillingInfo = OpenBankBillingInfo.new
@BillingInfo.deserialize(params['BillingInfo'])
end
@Environment = params['Environment']
end
end
# CreateOpenBankGlobalPaymentOrder返回参数结构体
class CreateOpenBankGlobalPaymentOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 统一下单响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankUnifiedOrderPaymentResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankUnifiedOrderPaymentResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateOpenBankMerchant请求参数结构体
class CreateOpenBankMerchantRequest < TencentCloud::Common::AbstractModel
# @param OutMerchantId: 外部商户ID。
# @type OutMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# @type ChannelName: String
# @param OutMerchantName: 外部商户名称。
# @type OutMerchantName: String
# @param ExternalMerchantInfo: 第三方渠道商户信息。详情见附录-复杂类型。
# @type ExternalMerchantInfo: String
# @param OutMerchantShortName: 外部商户简称。
# @type OutMerchantShortName: String
# @param OutMerchantDescription: 外部商户描述
# @type OutMerchantDescription: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :OutMerchantId, :ChannelName, :OutMerchantName, :ExternalMerchantInfo, :OutMerchantShortName, :OutMerchantDescription, :Environment
def initialize(outmerchantid=nil, channelname=nil, outmerchantname=nil, externalmerchantinfo=nil, outmerchantshortname=nil, outmerchantdescription=nil, environment=nil)
@OutMerchantId = outmerchantid
@ChannelName = channelname
@OutMerchantName = outmerchantname
@ExternalMerchantInfo = externalmerchantinfo
@OutMerchantShortName = outmerchantshortname
@OutMerchantDescription = outmerchantdescription
@Environment = environment
end
def deserialize(params)
@OutMerchantId = params['OutMerchantId']
@ChannelName = params['ChannelName']
@OutMerchantName = params['OutMerchantName']
@ExternalMerchantInfo = params['ExternalMerchantInfo']
@OutMerchantShortName = params['OutMerchantShortName']
@OutMerchantDescription = params['OutMerchantDescription']
@Environment = params['Environment']
end
end
# CreateOpenBankMerchant返回参数结构体
class CreateOpenBankMerchantResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankMerchantResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankMerchantResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 创建渠道商户返回结果
class CreateOpenBankMerchantResult < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
attr_accessor :ChannelMerchantId
def initialize(channelmerchantid=nil)
@ChannelMerchantId = channelmerchantid
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
end
end
# 云企付-支付下单返回响应
class CreateOpenBankOrderPaymentResult < TencentCloud::Common::AbstractModel
# @param ChannelOrderId: 云企付平台订单号。
# @type ChannelOrderId: String
# @param ThirdPayOrderId: 第三方支付平台返回支付订单号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdPayOrderId: String
# @param RedirectInfo: 跳转参数
# 渠道为TENPAY,付款方式为EBANK_PAYMENT时必选。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRedirectInfo`
# @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一。
# @type OutOrderId: String
# @param PayInfo: 渠道扩展支付信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInfo: String
# @param PayInfoType: 渠道扩展支付信息类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInfoType: String
attr_accessor :ChannelOrderId, :ThirdPayOrderId, :RedirectInfo, :OutOrderId, :PayInfo, :PayInfoType
def initialize(channelorderid=nil, thirdpayorderid=nil, redirectinfo=nil, outorderid=nil, payinfo=nil, payinfotype=nil)
@ChannelOrderId = channelorderid
@ThirdPayOrderId = thirdpayorderid
@RedirectInfo = redirectinfo
@OutOrderId = outorderid
@PayInfo = payinfo
@PayInfoType = payinfotype
end
def deserialize(params)
@ChannelOrderId = params['ChannelOrderId']
@ThirdPayOrderId = params['ThirdPayOrderId']
unless params['RedirectInfo'].nil?
@RedirectInfo = OpenBankRedirectInfo.new
@RedirectInfo.deserialize(params['RedirectInfo'])
end
@OutOrderId = params['OutOrderId']
@PayInfo = params['PayInfo']
@PayInfoType = params['PayInfoType']
end
end
# 云企付-充值下单返回响应
class CreateOpenBankOrderRechargeResult < TencentCloud::Common::AbstractModel
# @param ChannelOrderId: 云企付平台订单号。
# @type ChannelOrderId: String
# @param ThirdPayOrderId: 第三方支付平台返回支付订单号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdPayOrderId: String
# @param RedirectInfo: 跳转参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRechargeRedirectInfo`
# @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一。
# @type OutOrderId: String
# @param DealStatus: 充值状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DealStatus: String
# @param DealMessage: 充值返回描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DealMessage: String
# @param PcWebUrl: PC web端跳转链接
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PcWebUrl: String
attr_accessor :ChannelOrderId, :ThirdPayOrderId, :RedirectInfo, :OutOrderId, :DealStatus, :DealMessage, :PcWebUrl
def initialize(channelorderid=nil, thirdpayorderid=nil, redirectinfo=nil, outorderid=nil, dealstatus=nil, dealmessage=nil, pcweburl=nil)
@ChannelOrderId = channelorderid
@ThirdPayOrderId = thirdpayorderid
@RedirectInfo = redirectinfo
@OutOrderId = outorderid
@DealStatus = dealstatus
@DealMessage = dealmessage
@PcWebUrl = pcweburl
end
def deserialize(params)
@ChannelOrderId = params['ChannelOrderId']
@ThirdPayOrderId = params['ThirdPayOrderId']
unless params['RedirectInfo'].nil?
@RedirectInfo = OpenBankRechargeRedirectInfo.new
@RedirectInfo.deserialize(params['RedirectInfo'])
end
@OutOrderId = params['OutOrderId']
@DealStatus = params['DealStatus']
@DealMessage = params['DealMessage']
@PcWebUrl = params['PcWebUrl']
end
end
# CreateOpenBankPaymentOrder请求参数结构体
class CreateOpenBankPaymentOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# __HUIFU__: 汇付斗拱
# @type ChannelName: String
# @param PaymentMethod: 付款方式。详见附录-云企付枚举类说明-PaymentMethod。
# __EBANK_PAYMENT__:B2B EBank付款
# __OPENBANK_PAYMENT__:B2C openbank付款
# __SAFT_ISV__:支付宝安心发
# __TRANS_TO_CHANGE__: 微信支付转账到零钱v2
# __TRANS_TO_CHANGE_V3__: 微信支付转账到零钱v3
# __ONLINEBANK__: 汇付网银
# @type PaymentMethod: String
# @param PaymentMode: 付款模式。默认直接支付,如
# __DIRECT__:直接支付
# __FREEZE__:担保支付
# @type PaymentMode: String
# @param OutOrderId: 外部订单号,只能是数字、大小写字母,且在同一个接入平台下唯一,限定长度40位。
# @type OutOrderId: String
# @param TotalAmount: 付款金额,单位分。
# @type TotalAmount: Integer
# @param Currency: 固定值CNY。
# @type Currency: String
# @param PayerInfo: 付款方信息。
# @type PayerInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankPayerInfo`
# @param PayeeInfo: 收款方信息。
# @type PayeeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankPayeeInfo`
# @param NotifyUrl: 通知地址,如www.test.com。
# @type NotifyUrl: String
# @param ExpireTime: 订单过期时间,yyyy-MM-dd HH:mm:ss格式。
# @type ExpireTime: String
# @param FrontUrl: 前端成功回调URL。条件可选。
# @type FrontUrl: String
# @param RefreshUrl: 前端刷新 URL。条件可选。
# @type RefreshUrl: String
# @param SceneInfo: 设备信息,条件可选。
# @type SceneInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankSceneInfo`
# @param GoodsInfo: 商品信息,条件可选。
# @type GoodsInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankGoodsInfo`
# @param Attachment: 附加信息,查询时原样返回。
# @type Attachment: String
# @param ProfitShareFlag: 若不上传,即使用默认值无需分润
# __NO_NEED_SHARE__:无需分润;
# __SHARE_BY_INFO__:分润时指定金额,此时如果分润信息 ProfitShareInfo为空,只冻结,不分账给其他商户;需要调用解冻接口。
# __SHARE_BY_API__:后续调用分润接口决定分润金额
# @type ProfitShareFlag: String
# @param ProfitShareInfoList: 分润信息,配合ProfitShareFlag使用。
# @type ProfitShareInfoList: Array
# @param SettlementRulesInfo: 商企付-担保支付(PaymentMode为 FREEZE )时需设置该参数
# @type SettlementRulesInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankSettlementRulesInfo`
# @param ExternalPaymentData: 底层支付渠道特殊字段,若无特殊说明时,可以为空
# @type ExternalPaymentData: String
# @param Remark: 备注信息。
# @type Remark: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PaymentMethod, :PaymentMode, :OutOrderId, :TotalAmount, :Currency, :PayerInfo, :PayeeInfo, :NotifyUrl, :ExpireTime, :FrontUrl, :RefreshUrl, :SceneInfo, :GoodsInfo, :Attachment, :ProfitShareFlag, :ProfitShareInfoList, :SettlementRulesInfo, :ExternalPaymentData, :Remark, :Environment
def initialize(channelmerchantid=nil, channelname=nil, paymentmethod=nil, paymentmode=nil, outorderid=nil, totalamount=nil, currency=nil, payerinfo=nil, payeeinfo=nil, notifyurl=nil, expiretime=nil, fronturl=nil, refreshurl=nil, sceneinfo=nil, goodsinfo=nil, attachment=nil, profitshareflag=nil, profitshareinfolist=nil, settlementrulesinfo=nil, externalpaymentdata=nil, remark=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@PaymentMode = paymentmode
@OutOrderId = outorderid
@TotalAmount = totalamount
@Currency = currency
@PayerInfo = payerinfo
@PayeeInfo = payeeinfo
@NotifyUrl = notifyurl
@ExpireTime = expiretime
@FrontUrl = fronturl
@RefreshUrl = refreshurl
@SceneInfo = sceneinfo
@GoodsInfo = goodsinfo
@Attachment = attachment
@ProfitShareFlag = profitshareflag
@ProfitShareInfoList = profitshareinfolist
@SettlementRulesInfo = settlementrulesinfo
@ExternalPaymentData = externalpaymentdata
@Remark = remark
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@PaymentMode = params['PaymentMode']
@OutOrderId = params['OutOrderId']
@TotalAmount = params['TotalAmount']
@Currency = params['Currency']
unless params['PayerInfo'].nil?
@PayerInfo = OpenBankPayerInfo.new
@PayerInfo.deserialize(params['PayerInfo'])
end
unless params['PayeeInfo'].nil?
@PayeeInfo = OpenBankPayeeInfo.new
@PayeeInfo.deserialize(params['PayeeInfo'])
end
@NotifyUrl = params['NotifyUrl']
@ExpireTime = params['ExpireTime']
@FrontUrl = params['FrontUrl']
@RefreshUrl = params['RefreshUrl']
unless params['SceneInfo'].nil?
@SceneInfo = OpenBankSceneInfo.new
@SceneInfo.deserialize(params['SceneInfo'])
end
unless params['GoodsInfo'].nil?
@GoodsInfo = OpenBankGoodsInfo.new
@GoodsInfo.deserialize(params['GoodsInfo'])
end
@Attachment = params['Attachment']
@ProfitShareFlag = params['ProfitShareFlag']
unless params['ProfitShareInfoList'].nil?
@ProfitShareInfoList = []
params['ProfitShareInfoList'].each do |i|
openbankprofitshareinfo_tmp = OpenBankProfitShareInfo.new
openbankprofitshareinfo_tmp.deserialize(i)
@ProfitShareInfoList << openbankprofitshareinfo_tmp
end
end
unless params['SettlementRulesInfo'].nil?
@SettlementRulesInfo = OpenBankSettlementRulesInfo.new
@SettlementRulesInfo.deserialize(params['SettlementRulesInfo'])
end
@ExternalPaymentData = params['ExternalPaymentData']
@Remark = params['Remark']
@Environment = params['Environment']
end
end
# CreateOpenBankPaymentOrder返回参数结构体
class CreateOpenBankPaymentOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 统一下单响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankOrderPaymentResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankOrderPaymentResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateOpenBankRechargeOrder请求参数结构体
class CreateOpenBankRechargeOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param OutOrderId: 外部订单号,只能是数字、大小写字母,且在同一个接入平台下唯一,限定长度40位。
# @type OutOrderId: String
# @param TotalAmount: 付款金额,单位分。
# @type TotalAmount: Integer
# @param Currency: 固定值CNY。
# @type Currency: String
# @param ExpireTime: 订单过期时间,yyyy-MM-dd HH:mm:ss格式。
# @type ExpireTime: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type PaymentMethod: String
# @param PayeeInfo: 收款方信息。
# @type PayeeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRechargePayeeInfo`
# @param ChannelSubMerchantId: 渠道子商户号
# @type ChannelSubMerchantId: String
# @param NotifyUrl: 通知地址,如www.test.com。
# @type NotifyUrl: String
# @param Remark: 备注信息。限制200个字符。
# @type Remark: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutOrderId, :TotalAmount, :Currency, :ExpireTime, :ChannelName, :PaymentMethod, :PayeeInfo, :ChannelSubMerchantId, :NotifyUrl, :Remark, :Environment
def initialize(channelmerchantid=nil, outorderid=nil, totalamount=nil, currency=nil, expiretime=nil, channelname=nil, paymentmethod=nil, payeeinfo=nil, channelsubmerchantid=nil, notifyurl=nil, remark=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutOrderId = outorderid
@TotalAmount = totalamount
@Currency = currency
@ExpireTime = expiretime
@ChannelName = channelname
@PaymentMethod = paymentmethod
@PayeeInfo = payeeinfo
@ChannelSubMerchantId = channelsubmerchantid
@NotifyUrl = notifyurl
@Remark = remark
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutOrderId = params['OutOrderId']
@TotalAmount = params['TotalAmount']
@Currency = params['Currency']
@ExpireTime = params['ExpireTime']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
unless params['PayeeInfo'].nil?
@PayeeInfo = OpenBankRechargePayeeInfo.new
@PayeeInfo.deserialize(params['PayeeInfo'])
end
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@NotifyUrl = params['NotifyUrl']
@Remark = params['Remark']
@Environment = params['Environment']
end
end
# CreateOpenBankRechargeOrder返回参数结构体
class CreateOpenBankRechargeOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 充值响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankOrderRechargeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankOrderRechargeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateOpenBankSubMerchantRateConfigure请求参数结构体
class CreateOpenBankSubMerchantRateConfigureRequest < TencentCloud::Common::AbstractModel
# @param ChannelRegistrationNo: 渠道进件序列号。
# 填写子商户进件返回的渠道进件编号。
# @type ChannelRegistrationNo: String
# @param OutProductFeeNo: 外部产品费率申请序列号。
# @type OutProductFeeNo: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# @type ChannelName: String
# @param PayType: 支付类型。
# SWIPE:刷卡
# SCAN:扫码
# WAP:WAP
# PUBLIC:公众号支付
# SDK:SDK
# MINI_PROGRAM:小程序
# 注意:HELIPAY渠道传SDK。
# @type PayType: String
# @param PayChannel: 支付渠道。
# ALIPAY:支付宝
# WXPAY:微信支付
# UNIONPAY:银联
# @type PayChannel: String
# @param FeeMode: 计费模式。
# SINGLE:按单笔金额计费
# RATIO:按单笔费率计费
# RANGE:按分段区间计费
# @type FeeMode: String
# @param FeeValue: 费用值,单位(0.01%或分)。
# @type FeeValue: Integer
# @param PaymentMethod: 支付方式。详见附录-云企付枚举类说明-PaymentMethod。
# HELIPAY渠道不需要传入。
# @type PaymentMethod: String
# @param MinFee: 最低收费金额,单位(分)。
# @type MinFee: Integer
# @param MaxFee: 最高收费金额,单位(分)。
# @type MaxFee: Integer
# @param NotifyUrl: 通知地址。
# @type NotifyUrl: String
# @param FeeRangeList: 分段计费区间列表。
# @type FeeRangeList: Array
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelRegistrationNo, :OutProductFeeNo, :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PayType, :PayChannel, :FeeMode, :FeeValue, :PaymentMethod, :MinFee, :MaxFee, :NotifyUrl, :FeeRangeList, :Environment
def initialize(channelregistrationno=nil, outproductfeeno=nil, channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paytype=nil, paychannel=nil, feemode=nil, feevalue=nil, paymentmethod=nil, minfee=nil, maxfee=nil, notifyurl=nil, feerangelist=nil, environment=nil)
@ChannelRegistrationNo = channelregistrationno
@OutProductFeeNo = outproductfeeno
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PayType = paytype
@PayChannel = paychannel
@FeeMode = feemode
@FeeValue = feevalue
@PaymentMethod = paymentmethod
@MinFee = minfee
@MaxFee = maxfee
@NotifyUrl = notifyurl
@FeeRangeList = feerangelist
@Environment = environment
end
def deserialize(params)
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@OutProductFeeNo = params['OutProductFeeNo']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PayType = params['PayType']
@PayChannel = params['PayChannel']
@FeeMode = params['FeeMode']
@FeeValue = params['FeeValue']
@PaymentMethod = params['PaymentMethod']
@MinFee = params['MinFee']
@MaxFee = params['MaxFee']
@NotifyUrl = params['NotifyUrl']
unless params['FeeRangeList'].nil?
@FeeRangeList = []
params['FeeRangeList'].each do |i|
feeranginfo_tmp = FeeRangInfo.new
feeranginfo_tmp.deserialize(i)
@FeeRangeList << feeranginfo_tmp
end
end
@Environment = params['Environment']
end
end
# CreateOpenBankSubMerchantRateConfigure返回参数结构体
class CreateOpenBankSubMerchantRateConfigureResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankSubMerchantRateConfigureResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankSubMerchantRateConfigureResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 聚合支付子商户费率配置结果
class CreateOpenBankSubMerchantRateConfigureResult < TencentCloud::Common::AbstractModel
# @param DealStatus: 处理状态
# SUCCESS: 开通成功
# FAILED: 开通失败
# PROCESSING: 开通中
# 注意:若返回开通中,需要再次调用费率配置结果查询接口,查询结果。
# @type DealStatus: String
# @param DealMessage: 处理描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DealMessage: String
# @param ChannelProductFeeNo: 渠道产品费率序列号
# @type ChannelProductFeeNo: String
attr_accessor :DealStatus, :DealMessage, :ChannelProductFeeNo
def initialize(dealstatus=nil, dealmessage=nil, channelproductfeeno=nil)
@DealStatus = dealstatus
@DealMessage = dealmessage
@ChannelProductFeeNo = channelproductfeeno
end
def deserialize(params)
@DealStatus = params['DealStatus']
@DealMessage = params['DealMessage']
@ChannelProductFeeNo = params['ChannelProductFeeNo']
end
end
# 云企付-支付下单返回响应
class CreateOpenBankUnifiedOrderPaymentResult < TencentCloud::Common::AbstractModel
# @param ChannelOrderId: 云企付平台订单号。
# @type ChannelOrderId: String
# @param ThirdPayOrderId: 第三方支付平台返回支付订单号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdPayOrderId: String
# @param RedirectInfo: 跳转参数
# 渠道为TENPAY,付款方式为EBANK_PAYMENT时必选。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankOrderRedirectInfo`
# @param OutOrderId: 外部商户订单号,只能是数字、大小写字母,且在同一个接入平台下唯一。
# @type OutOrderId: String
# @param PayInfo: 渠道扩展支付信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInfo: String
# @param PayInfoType: 渠道扩展支付信息类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInfoType: String
attr_accessor :ChannelOrderId, :ThirdPayOrderId, :RedirectInfo, :OutOrderId, :PayInfo, :PayInfoType
def initialize(channelorderid=nil, thirdpayorderid=nil, redirectinfo=nil, outorderid=nil, payinfo=nil, payinfotype=nil)
@ChannelOrderId = channelorderid
@ThirdPayOrderId = thirdpayorderid
@RedirectInfo = redirectinfo
@OutOrderId = outorderid
@PayInfo = payinfo
@PayInfoType = payinfotype
end
def deserialize(params)
@ChannelOrderId = params['ChannelOrderId']
@ThirdPayOrderId = params['ThirdPayOrderId']
unless params['RedirectInfo'].nil?
@RedirectInfo = OpenBankOrderRedirectInfo.new
@RedirectInfo.deserialize(params['RedirectInfo'])
end
@OutOrderId = params['OutOrderId']
@PayInfo = params['PayInfo']
@PayInfoType = params['PayInfoType']
end
end
# CreateOpenBankUnifiedOrder请求参数结构体
class CreateOpenBankUnifiedOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。
# @type ChannelName: String
# @param PayType: 支付产品类型。
# 被扫(扫码):SWIPE, 主扫(刷卡):SCAN,
# H5:WAP, 公众号:PUBLIC,
# APP-SDK:SDK, 小程序:MINI_PROGRAM,
# 快捷支付:QUICK, 网银支付:ONLINE_BANK。
# @type PayType: String
# @param OutOrderId: 外部商户订单号。
# 只能是数字、大小写字母,且在同一个接入平台下唯一。
# @type OutOrderId: String
# @param TotalAmount: 交易金额,单位分。
# @type TotalAmount: Integer
# @param Currency: 币种。固定:CNY。
# @type Currency: String
# @param ChannelSubMerchantId: 渠道子商户号。
# @type ChannelSubMerchantId: String
# @param PayChannel: 实际支付渠道。没有则无需填写。如
# 支付宝 ALIPAY
# 微信支付 WXPAY
# 银联 UNIONPAY
# 一般在间连模式下使用。
# @type PayChannel: String
# @param SceneInfo: 设备信息。
# @type SceneInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankSceneInfo`
# @param ProfitShareInfoList: 分账信息列表。
# @type ProfitShareInfoList: Array
# @param OrderSubject: 订单标题。
# @type OrderSubject: String
# @param GoodsDetail: 商品信息。
# @type GoodsDetail: String
# @param ExpireTime: 超时时间。
# @type ExpireTime: String
# @param NotifyUrl: 支付成功回调地址。
# @type NotifyUrl: String
# @param FrontUrl: 支付成功前端跳转URL。
# @type FrontUrl: String
# @param Attachment: 订单附加信息,查询或者回调的时候原样返回。
# @type Attachment: String
# @param ExternalPaymentData: 第三方渠道扩展字段。见附录-复杂类型。
# 未作特殊说明,则无需传入。
# @type ExternalPaymentData: String
# @param Remark: 备注。
# @type Remark: String
# @param StoreInfo: 门店信息。
# @type StoreInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankStoreInfo`
# @param PayLimitInfo: 支付限制。
# @type PayLimitInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankPayLimitInfo`
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PayType, :OutOrderId, :TotalAmount, :Currency, :ChannelSubMerchantId, :PayChannel, :SceneInfo, :ProfitShareInfoList, :OrderSubject, :GoodsDetail, :ExpireTime, :NotifyUrl, :FrontUrl, :Attachment, :ExternalPaymentData, :Remark, :StoreInfo, :PayLimitInfo, :Environment
def initialize(channelmerchantid=nil, channelname=nil, paytype=nil, outorderid=nil, totalamount=nil, currency=nil, channelsubmerchantid=nil, paychannel=nil, sceneinfo=nil, profitshareinfolist=nil, ordersubject=nil, goodsdetail=nil, expiretime=nil, notifyurl=nil, fronturl=nil, attachment=nil, externalpaymentdata=nil, remark=nil, storeinfo=nil, paylimitinfo=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PayType = paytype
@OutOrderId = outorderid
@TotalAmount = totalamount
@Currency = currency
@ChannelSubMerchantId = channelsubmerchantid
@PayChannel = paychannel
@SceneInfo = sceneinfo
@ProfitShareInfoList = profitshareinfolist
@OrderSubject = ordersubject
@GoodsDetail = goodsdetail
@ExpireTime = expiretime
@NotifyUrl = notifyurl
@FrontUrl = fronturl
@Attachment = attachment
@ExternalPaymentData = externalpaymentdata
@Remark = remark
@StoreInfo = storeinfo
@PayLimitInfo = paylimitinfo
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@PayType = params['PayType']
@OutOrderId = params['OutOrderId']
@TotalAmount = params['TotalAmount']
@Currency = params['Currency']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@PayChannel = params['PayChannel']
unless params['SceneInfo'].nil?
@SceneInfo = OpenBankSceneInfo.new
@SceneInfo.deserialize(params['SceneInfo'])
end
unless params['ProfitShareInfoList'].nil?
@ProfitShareInfoList = []
params['ProfitShareInfoList'].each do |i|
openbankprofitshareinfo_tmp = OpenBankProfitShareInfo.new
openbankprofitshareinfo_tmp.deserialize(i)
@ProfitShareInfoList << openbankprofitshareinfo_tmp
end
end
@OrderSubject = params['OrderSubject']
@GoodsDetail = params['GoodsDetail']
@ExpireTime = params['ExpireTime']
@NotifyUrl = params['NotifyUrl']
@FrontUrl = params['FrontUrl']
@Attachment = params['Attachment']
@ExternalPaymentData = params['ExternalPaymentData']
@Remark = params['Remark']
unless params['StoreInfo'].nil?
@StoreInfo = OpenBankStoreInfo.new
@StoreInfo.deserialize(params['StoreInfo'])
end
unless params['PayLimitInfo'].nil?
@PayLimitInfo = OpenBankPayLimitInfo.new
@PayLimitInfo.deserialize(params['PayLimitInfo'])
end
@Environment = params['Environment']
end
end
# CreateOpenBankUnifiedOrder返回参数结构体
class CreateOpenBankUnifiedOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 统一下单响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankOrderPaymentResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankOrderPaymentResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateOpenBankVerificationOrder请求参数结构体
class CreateOpenBankVerificationOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param OutVerificationId: 外部核销申请订单号
# @type OutVerificationId: String
# @param VerificationAmount: 核销金额,单位分
# @type VerificationAmount: Integer
# @param OutOrderId: 外部支付订单号。调用创建支付订单时,下单支付时的外部订单号。与ChannelOrderId不能同时为空。
# @type OutOrderId: String
# @param ChannelOrderId: 云企付渠道订单号。调用创建支付订单时,下单支付时的云企付渠道订单号。与OutOrderId不能同时为空。
# @type ChannelOrderId: String
# @param NotifyUrl: 核销成功回调地址。若不上送,则不回调通知。
# @type NotifyUrl: String
# @param Remark: 备注。
# @type Remark: String
# @param ExternalVerificationData: 第三方支付渠道需要额外上送字段。详情见附录描述。
# @type ExternalVerificationData: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutVerificationId, :VerificationAmount, :OutOrderId, :ChannelOrderId, :NotifyUrl, :Remark, :ExternalVerificationData, :Environment
def initialize(channelmerchantid=nil, outverificationid=nil, verificationamount=nil, outorderid=nil, channelorderid=nil, notifyurl=nil, remark=nil, externalverificationdata=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutVerificationId = outverificationid
@VerificationAmount = verificationamount
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@NotifyUrl = notifyurl
@Remark = remark
@ExternalVerificationData = externalverificationdata
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutVerificationId = params['OutVerificationId']
@VerificationAmount = params['VerificationAmount']
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@NotifyUrl = params['NotifyUrl']
@Remark = params['Remark']
@ExternalVerificationData = params['ExternalVerificationData']
@Environment = params['Environment']
end
end
# CreateOpenBankVerificationOrder返回参数结构体
class CreateOpenBankVerificationOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 核销申请响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateOpenBankVerificationResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateOpenBankVerificationResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-核销确认收货申请响应结果
class CreateOpenBankVerificationResult < TencentCloud::Common::AbstractModel
# @param ChannelVerificationId: 云企付渠道核销订单号
# @type ChannelVerificationId: String
# @param ThirdVerificationId: 第三方支付渠道核销订单号
# @type ThirdVerificationId: String
# @param VerificationStatus: 核销状态
# INIT("INIT","初始化"),
# SUCCESS("SUCCESS","核销成功"),
# FAILED("FAILED","核销失败"),
# PROCESSING("PROCESSING","核销中");
# @type VerificationStatus: String
# @param VerificationAmount: 核销金额,单位分
# @type VerificationAmount: Integer
# @param ThirdVerificationReturnInfo: 渠道附加返回信息,一般情况可以不关注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdVerificationReturnInfo: String
attr_accessor :ChannelVerificationId, :ThirdVerificationId, :VerificationStatus, :VerificationAmount, :ThirdVerificationReturnInfo
def initialize(channelverificationid=nil, thirdverificationid=nil, verificationstatus=nil, verificationamount=nil, thirdverificationreturninfo=nil)
@ChannelVerificationId = channelverificationid
@ThirdVerificationId = thirdverificationid
@VerificationStatus = verificationstatus
@VerificationAmount = verificationamount
@ThirdVerificationReturnInfo = thirdverificationreturninfo
end
def deserialize(params)
@ChannelVerificationId = params['ChannelVerificationId']
@ThirdVerificationId = params['ThirdVerificationId']
@VerificationStatus = params['VerificationStatus']
@VerificationAmount = params['VerificationAmount']
@ThirdVerificationReturnInfo = params['ThirdVerificationReturnInfo']
end
end
# CreateOrder请求参数结构体
class CreateOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelCode: 渠道编号。ZSB2B:招商银行B2B。
# @type ChannelCode: String
# @param MerchantAppId: 进件成功后返给商户方的 AppId。
# @type MerchantAppId: String
# @param Amount: 交易金额。单位:元
# @type Amount: String
# @param TraceNo: 商户流水号。商户唯一订单号由字母或数字组成。
# @type TraceNo: String
# @param NotifyUrl: 通知地址。商户接收交易结果的通知地址。
# @type NotifyUrl: String
# @param ReturnUrl: 返回地址。支付成功后,页面将跳 转返回到商户的该地址。
# @type ReturnUrl: String
attr_accessor :ChannelCode, :MerchantAppId, :Amount, :TraceNo, :NotifyUrl, :ReturnUrl
def initialize(channelcode=nil, merchantappid=nil, amount=nil, traceno=nil, notifyurl=nil, returnurl=nil)
@ChannelCode = channelcode
@MerchantAppId = merchantappid
@Amount = amount
@TraceNo = traceno
@NotifyUrl = notifyurl
@ReturnUrl = returnurl
end
def deserialize(params)
@ChannelCode = params['ChannelCode']
@MerchantAppId = params['MerchantAppId']
@Amount = params['Amount']
@TraceNo = params['TraceNo']
@NotifyUrl = params['NotifyUrl']
@ReturnUrl = params['ReturnUrl']
end
end
# CreateOrder返回参数结构体
class CreateOrderResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的AppId。
# @type MerchantAppId: String
# @param TraceNo: 商户流水号,商户唯一订单号由字母或数字组成。
# @type TraceNo: String
# @param OrderNo: 平台流水号,若下单成功则返回。
# @type OrderNo: String
# @param PayUrl: 支付页面跳转地址,若下单成功则返回。
# @type PayUrl: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :TraceNo, :OrderNo, :PayUrl, :RequestId
def initialize(merchantappid=nil, traceno=nil, orderno=nil, payurl=nil, requestid=nil)
@MerchantAppId = merchantappid
@TraceNo = traceno
@OrderNo = orderno
@PayUrl = payurl
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@TraceNo = params['TraceNo']
@OrderNo = params['OrderNo']
@PayUrl = params['PayUrl']
@RequestId = params['RequestId']
end
end
# CreatePayMerchant请求参数结构体
class CreatePayMerchantRequest < TencentCloud::Common::AbstractModel
# @param PlatformCode: 平台编号
# @type PlatformCode: String
# @param ChannelMerchantNo: 渠道方收款商户编号,由渠道方(银行)提 供。
# @type ChannelMerchantNo: String
# @param ChannelCheckFlag: 是否需要向渠道进行 商户信息验证 1:验证
# 0:不验证
# @type ChannelCheckFlag: String
# @param MerchantName: 收款商户名称
# @type MerchantName: String
# @param BusinessPayFlag: 是否开通 B2B 支付 1:开通 0:不开通 缺省:1
# @type BusinessPayFlag: String
attr_accessor :PlatformCode, :ChannelMerchantNo, :ChannelCheckFlag, :MerchantName, :BusinessPayFlag
def initialize(platformcode=nil, channelmerchantno=nil, channelcheckflag=nil, merchantname=nil, businesspayflag=nil)
@PlatformCode = platformcode
@ChannelMerchantNo = channelmerchantno
@ChannelCheckFlag = channelcheckflag
@MerchantName = merchantname
@BusinessPayFlag = businesspayflag
end
def deserialize(params)
@PlatformCode = params['PlatformCode']
@ChannelMerchantNo = params['ChannelMerchantNo']
@ChannelCheckFlag = params['ChannelCheckFlag']
@MerchantName = params['MerchantName']
@BusinessPayFlag = params['BusinessPayFlag']
end
end
# CreatePayMerchant返回参数结构体
class CreatePayMerchantResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的 AppId。该 AppId 为后续各项 交易的商户标识。
# @type MerchantAppId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :RequestId
def initialize(merchantappid=nil, requestid=nil)
@MerchantAppId = merchantappid
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@RequestId = params['RequestId']
end
end
# CreatePayRollPreOrder请求参数结构体
class CreatePayRollPreOrderRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param ProjectName: 该劳务活动的项目名称
# @type ProjectName: String
# @param CompanyName: 该工人所属的用工企业
# @type CompanyName: String
# @param WechatAppId: 是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致)
# 当输入服务商Appid时,会校验其与服务商商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatAppId: String
# @param WechatSubAppId: 特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致)
# 当输入特约商户Appid时,会校验其与特约商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatSubAppId: String
attr_accessor :OpenId, :SubMerchantId, :AuthNumber, :ProjectName, :CompanyName, :WechatAppId, :WechatSubAppId
def initialize(openid=nil, submerchantid=nil, authnumber=nil, projectname=nil, companyname=nil, wechatappid=nil, wechatsubappid=nil)
@OpenId = openid
@SubMerchantId = submerchantid
@AuthNumber = authnumber
@ProjectName = projectname
@CompanyName = companyname
@WechatAppId = wechatappid
@WechatSubAppId = wechatsubappid
end
def deserialize(params)
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@AuthNumber = params['AuthNumber']
@ProjectName = params['ProjectName']
@CompanyName = params['CompanyName']
@WechatAppId = params['WechatAppId']
@WechatSubAppId = params['WechatSubAppId']
end
end
# CreatePayRollPreOrder返回参数结构体
class CreatePayRollPreOrderResponse < TencentCloud::Common::AbstractModel
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param ExpireTime: Token有效时间,单位秒
# @type ExpireTime: Integer
# @param MerchantId: 微信服务商商户的商户号,由微信支付生成并下发
# @type MerchantId: String
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param Token: Token值
# @type Token: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AuthNumber, :ExpireTime, :MerchantId, :OpenId, :SubMerchantId, :Token, :RequestId
def initialize(authnumber=nil, expiretime=nil, merchantid=nil, openid=nil, submerchantid=nil, token=nil, requestid=nil)
@AuthNumber = authnumber
@ExpireTime = expiretime
@MerchantId = merchantid
@OpenId = openid
@SubMerchantId = submerchantid
@Token = token
@RequestId = requestid
end
def deserialize(params)
@AuthNumber = params['AuthNumber']
@ExpireTime = params['ExpireTime']
@MerchantId = params['MerchantId']
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@Token = params['Token']
@RequestId = params['RequestId']
end
end
# CreatePayRollPreOrderWithAuth请求参数结构体
class CreatePayRollPreOrderWithAuthRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param ProjectName: 该劳务活动的项目名称
# @type ProjectName: String
# @param CompanyName: 该工人所属的用工企业
# @type CompanyName: String
# @param UserName: 用户实名信息,该字段需进行加密处理,加密方法详见[敏感信息加密说明](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_3.shtml)
# @type UserName: String
# @param IdNo: 用户证件号,该字段需进行加密处理,加密方法详见[敏感信息加密说明](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_3.shtml)
# @type IdNo: String
# @param EmploymentType: 微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
# LONG_TERM_EMPLOYMENT:长期用工,
# SHORT_TERM_EMPLOYMENT: 短期用工,
# COOPERATION_EMPLOYMENT:合作关系
# @type EmploymentType: String
# @param WechatAppId: 是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致)
# 当输入服务商Appid时,会校验其与服务商商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatAppId: String
# @param WechatSubAppId: 特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致)
# 当输入特约商户Appid时,会校验其与特约商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatSubAppId: String
attr_accessor :OpenId, :SubMerchantId, :AuthNumber, :ProjectName, :CompanyName, :UserName, :IdNo, :EmploymentType, :WechatAppId, :WechatSubAppId
def initialize(openid=nil, submerchantid=nil, authnumber=nil, projectname=nil, companyname=nil, username=nil, idno=nil, employmenttype=nil, wechatappid=nil, wechatsubappid=nil)
@OpenId = openid
@SubMerchantId = submerchantid
@AuthNumber = authnumber
@ProjectName = projectname
@CompanyName = companyname
@UserName = username
@IdNo = idno
@EmploymentType = employmenttype
@WechatAppId = wechatappid
@WechatSubAppId = wechatsubappid
end
def deserialize(params)
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@AuthNumber = params['AuthNumber']
@ProjectName = params['ProjectName']
@CompanyName = params['CompanyName']
@UserName = params['UserName']
@IdNo = params['IdNo']
@EmploymentType = params['EmploymentType']
@WechatAppId = params['WechatAppId']
@WechatSubAppId = params['WechatSubAppId']
end
end
# CreatePayRollPreOrderWithAuth返回参数结构体
class CreatePayRollPreOrderWithAuthResponse < TencentCloud::Common::AbstractModel
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param ExpireTime: Token有效时间,单位秒
# @type ExpireTime: Integer
# @param MerchantId: 微信服务商商户的商户号,由微信支付生成并下发
# @type MerchantId: String
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param Token: Token值
# @type Token: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AuthNumber, :ExpireTime, :MerchantId, :OpenId, :SubMerchantId, :Token, :RequestId
def initialize(authnumber=nil, expiretime=nil, merchantid=nil, openid=nil, submerchantid=nil, token=nil, requestid=nil)
@AuthNumber = authnumber
@ExpireTime = expiretime
@MerchantId = merchantid
@OpenId = openid
@SubMerchantId = submerchantid
@Token = token
@RequestId = requestid
end
def deserialize(params)
@AuthNumber = params['AuthNumber']
@ExpireTime = params['ExpireTime']
@MerchantId = params['MerchantId']
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@Token = params['Token']
@RequestId = params['RequestId']
end
end
# CreatePayRollToken请求参数结构体
class CreatePayRollTokenRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param UserName: 用户实名信息,该字段需进行加密处理,加密方法详见[敏感信息加密说明](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_3.shtml)
# @type UserName: String
# @param IdNo: 用户证件号,该字段需进行加密处理,加密方法详见[敏感信息加密说明](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_3.shtml)
# @type IdNo: String
# @param EmploymentType: 微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
# LONG_TERM_EMPLOYMENT:长期用工,
# SHORT_TERM_EMPLOYMENT: 短期用工,
# COOPERATION_EMPLOYMENT:合作关系
# @type EmploymentType: String
# @param WechatAppId: 是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致)
# 当输入服务商Appid时,会校验其与服务商商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatAppId: String
# @param WechatSubAppId: 特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致)
# 当输入特约商户Appid时,会校验其与特约商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatSubAppId: String
attr_accessor :OpenId, :SubMerchantId, :UserName, :IdNo, :EmploymentType, :WechatAppId, :WechatSubAppId
def initialize(openid=nil, submerchantid=nil, username=nil, idno=nil, employmenttype=nil, wechatappid=nil, wechatsubappid=nil)
@OpenId = openid
@SubMerchantId = submerchantid
@UserName = username
@IdNo = idno
@EmploymentType = employmenttype
@WechatAppId = wechatappid
@WechatSubAppId = wechatsubappid
end
def deserialize(params)
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@UserName = params['UserName']
@IdNo = params['IdNo']
@EmploymentType = params['EmploymentType']
@WechatAppId = params['WechatAppId']
@WechatSubAppId = params['WechatSubAppId']
end
end
# CreatePayRollToken返回参数结构体
class CreatePayRollTokenResponse < TencentCloud::Common::AbstractModel
# @param ExpireTime: Token有效时间,单位秒
# @type ExpireTime: Integer
# @param MerchantId: 微信服务商商户的商户号,由微信支付生成并下发
# @type MerchantId: String
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param Token: Token值
# @type Token: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ExpireTime, :MerchantId, :OpenId, :SubMerchantId, :Token, :RequestId
def initialize(expiretime=nil, merchantid=nil, openid=nil, submerchantid=nil, token=nil, requestid=nil)
@ExpireTime = expiretime
@MerchantId = merchantid
@OpenId = openid
@SubMerchantId = submerchantid
@Token = token
@RequestId = requestid
end
def deserialize(params)
@ExpireTime = params['ExpireTime']
@MerchantId = params['MerchantId']
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@Token = params['Token']
@RequestId = params['RequestId']
end
end
# 创建红票明细
class CreateRedInvoiceItem < TencentCloud::Common::AbstractModel
# @param OrderId: 订单号
# @type OrderId: String
# @param CallbackUrl: 发票结果回传地址
# @type CallbackUrl: String
# @param OrderSn: 业务开票号
# @type OrderSn: String
# @param RedSerialNo: 红字信息表编码
# @type RedSerialNo: String
# @param StoreNo: 门店编号
# @type StoreNo: String
attr_accessor :OrderId, :CallbackUrl, :OrderSn, :RedSerialNo, :StoreNo
def initialize(orderid=nil, callbackurl=nil, ordersn=nil, redserialno=nil, storeno=nil)
@OrderId = orderid
@CallbackUrl = callbackurl
@OrderSn = ordersn
@RedSerialNo = redserialno
@StoreNo = storeno
end
def deserialize(params)
@OrderId = params['OrderId']
@CallbackUrl = params['CallbackUrl']
@OrderSn = params['OrderSn']
@RedSerialNo = params['RedSerialNo']
@StoreNo = params['StoreNo']
end
end
# CreateRedInvoice请求参数结构体
class CreateRedInvoiceRequest < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# 0 : 高灯
# 1 : 票易通
# @type InvoicePlatformId: Integer
# @param Invoices: 红冲明细
# @type Invoices: Array
# @param Profile: 接入环境。沙箱环境填 sandbox。
# @type Profile: String
# @param InvoiceChannel: 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
# @type InvoiceChannel: Integer
attr_accessor :InvoicePlatformId, :Invoices, :Profile, :InvoiceChannel
def initialize(invoiceplatformid=nil, invoices=nil, profile=nil, invoicechannel=nil)
@InvoicePlatformId = invoiceplatformid
@Invoices = invoices
@Profile = profile
@InvoiceChannel = invoicechannel
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
unless params['Invoices'].nil?
@Invoices = []
params['Invoices'].each do |i|
createredinvoiceitem_tmp = CreateRedInvoiceItem.new
createredinvoiceitem_tmp.deserialize(i)
@Invoices << createredinvoiceitem_tmp
end
end
@Profile = params['Profile']
@InvoiceChannel = params['InvoiceChannel']
end
end
# CreateRedInvoice返回参数结构体
class CreateRedInvoiceResponse < TencentCloud::Common::AbstractModel
# @param Result: 红冲结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateRedInvoiceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = CreateRedInvoiceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 红票结果
class CreateRedInvoiceResult < TencentCloud::Common::AbstractModel
# @param Message: 错误消息
# @type Message: String
# @param Code: 错误码
# @type Code: Integer
# @param Data: 红票数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: Array
attr_accessor :Message, :Code, :Data
def initialize(message=nil, code=nil, data=nil)
@Message = message
@Code = code
@Data = data
end
def deserialize(params)
@Message = params['Message']
@Code = params['Code']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
createredinvoiceresultdata_tmp = CreateRedInvoiceResultData.new
createredinvoiceresultdata_tmp.deserialize(i)
@Data << createredinvoiceresultdata_tmp
end
end
end
end
# 红票结果数据
class CreateRedInvoiceResultData < TencentCloud::Common::AbstractModel
# @param Code: 红冲状态码
# @type Code: Integer
# @param Message: 红冲状态消息
# @type Message: String
# @param InvoiceId: 发票ID
# @type InvoiceId: String
# @param OrderSn: 业务开票号
# @type OrderSn: String
attr_accessor :Code, :Message, :InvoiceId, :OrderSn
def initialize(code=nil, message=nil, invoiceid=nil, ordersn=nil)
@Code = code
@Message = message
@InvoiceId = invoiceid
@OrderSn = ordersn
end
def deserialize(params)
@Code = params['Code']
@Message = params['Message']
@InvoiceId = params['InvoiceId']
@OrderSn = params['OrderSn']
end
end
# 红票结果V2
class CreateRedInvoiceResultV2 < TencentCloud::Common::AbstractModel
# @param InvoiceId: 红票ID
# @type InvoiceId: String
attr_accessor :InvoiceId
def initialize(invoiceid=nil)
@InvoiceId = invoiceid
end
def deserialize(params)
@InvoiceId = params['InvoiceId']
end
end
# CreateRedInvoiceV2请求参数结构体
class CreateRedInvoiceV2Request < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# 0 : 高灯
# 1 : 票易通
# @type InvoicePlatformId: Integer
# @param OrderId: 订单号
# @type OrderId: String
# @param Profile: 接入环境。沙箱环境填 sandbox。
# @type Profile: String
# @param InvoiceChannel: 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
# @type InvoiceChannel: Integer
attr_accessor :InvoicePlatformId, :OrderId, :Profile, :InvoiceChannel
def initialize(invoiceplatformid=nil, orderid=nil, profile=nil, invoicechannel=nil)
@InvoicePlatformId = invoiceplatformid
@OrderId = orderid
@Profile = profile
@InvoiceChannel = invoicechannel
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@OrderId = params['OrderId']
@Profile = params['Profile']
@InvoiceChannel = params['InvoiceChannel']
end
end
# CreateRedInvoiceV2返回参数结构体
class CreateRedInvoiceV2Response < TencentCloud::Common::AbstractModel
# @param Result: 红冲结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateRedInvoiceResultV2`
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :ErrCode, :ErrMessage, :RequestId
def initialize(result=nil, errcode=nil, errmessage=nil, requestid=nil)
@Result = result
@ErrCode = errcode
@ErrMessage = errmessage
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = CreateRedInvoiceResultV2.new
@Result.deserialize(params['Result'])
end
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@RequestId = params['RequestId']
end
end
# CreateSinglePayment接口返回响应
class CreateSinglePaymentData < TencentCloud::Common::AbstractModel
# @param TradeSerialNo: 平台交易流水号,唯一
# @type TradeSerialNo: String
# @param AgentId: 代理商ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentId: String
# @param AgentName: 代理商名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
attr_accessor :TradeSerialNo, :AgentId, :AgentName
def initialize(tradeserialno=nil, agentid=nil, agentname=nil)
@TradeSerialNo = tradeserialno
@AgentId = agentid
@AgentName = agentname
end
def deserialize(params)
@TradeSerialNo = params['TradeSerialNo']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
end
end
# CreateSinglePayment请求参数结构体
class CreateSinglePaymentRequest < TencentCloud::Common::AbstractModel
# @param TransferType: 转账类型
# 1 微信企业付款
# 2 支付宝转账
# 3 平安银企直连代发转账
# @type TransferType: Integer
# @param OrderId: 订单流水号
# @type OrderId: String
# @param TransferAmount: 转账金额
# @type TransferAmount: Integer
# @param AnchorId: 主播ID(与主播业务ID不能同时为空,两者都填取主播ID)
# @type AnchorId: String
# @param ReqReserved: 请求预留字段,原样透传返回
# @type ReqReserved: String
# @param Remark: 业务备注
# @type Remark: String
# @param AnchorName: 主播名称。如果该字段填入,则会对AnchorName和AnchorId/Uid进行校验。
# @type AnchorName: String
# @param Uid: 主播业务ID(与主播ID不能同时为空,两者都填取主播ID)
# @type Uid: String
# @param NotifyUrl: 转账结果回调通知URL。若不填,则不进行回调。
# @type NotifyUrl: String
attr_accessor :TransferType, :OrderId, :TransferAmount, :AnchorId, :ReqReserved, :Remark, :AnchorName, :Uid, :NotifyUrl
def initialize(transfertype=nil, orderid=nil, transferamount=nil, anchorid=nil, reqreserved=nil, remark=nil, anchorname=nil, uid=nil, notifyurl=nil)
@TransferType = transfertype
@OrderId = orderid
@TransferAmount = transferamount
@AnchorId = anchorid
@ReqReserved = reqreserved
@Remark = remark
@AnchorName = anchorname
@Uid = uid
@NotifyUrl = notifyurl
end
def deserialize(params)
@TransferType = params['TransferType']
@OrderId = params['OrderId']
@TransferAmount = params['TransferAmount']
@AnchorId = params['AnchorId']
@ReqReserved = params['ReqReserved']
@Remark = params['Remark']
@AnchorName = params['AnchorName']
@Uid = params['Uid']
@NotifyUrl = params['NotifyUrl']
end
end
# CreateSinglePayment返回参数结构体
class CreateSinglePaymentResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 响应消息
# @type ErrMessage: String
# @param Result: 返回数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.CreateSinglePaymentData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = CreateSinglePaymentData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# CreateTransferBatch请求参数结构体
class CreateTransferBatchRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号。
# 示例值:129284394
# @type MerchantId: String
# @param TransferDetails: 转账明细列表。
# 发起批量转账的明细列表,最多三千笔
# @type TransferDetails: Array
# @param MerchantAppId: 直连商户appId。
# 即商户号绑定的appid。
# 示例值:wxf636efh567hg4356
# @type MerchantAppId: String
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param BatchName: 批次名称。
# 批量转账的名称。
# 示例值:2019年1月深圳分部报销单
# @type BatchName: String
# @param BatchRemark: 转账说明。
# UTF8编码,最多32个字符。
# 示例值:2019年深圳分部报销单
# @type BatchRemark: String
# @param TotalAmount: 转账总金额。
# 转账金额,单位为分。
# 示例值:4000000
# @type TotalAmount: Integer
# @param TotalNum: 转账总笔数。
# 一个转账批次最多允许发起三千笔转账。
# 示例值:200
# @type TotalNum: Integer
# @param Profile: 环境名。
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type Profile: String
attr_accessor :MerchantId, :TransferDetails, :MerchantAppId, :MerchantBatchNo, :BatchName, :BatchRemark, :TotalAmount, :TotalNum, :Profile
def initialize(merchantid=nil, transferdetails=nil, merchantappid=nil, merchantbatchno=nil, batchname=nil, batchremark=nil, totalamount=nil, totalnum=nil, profile=nil)
@MerchantId = merchantid
@TransferDetails = transferdetails
@MerchantAppId = merchantappid
@MerchantBatchNo = merchantbatchno
@BatchName = batchname
@BatchRemark = batchremark
@TotalAmount = totalamount
@TotalNum = totalnum
@Profile = profile
end
def deserialize(params)
@MerchantId = params['MerchantId']
unless params['TransferDetails'].nil?
@TransferDetails = []
params['TransferDetails'].each do |i|
transferdetailrequest_tmp = TransferDetailRequest.new
transferdetailrequest_tmp.deserialize(i)
@TransferDetails << transferdetailrequest_tmp
end
end
@MerchantAppId = params['MerchantAppId']
@MerchantBatchNo = params['MerchantBatchNo']
@BatchName = params['BatchName']
@BatchRemark = params['BatchRemark']
@TotalAmount = params['TotalAmount']
@TotalNum = params['TotalNum']
@Profile = params['Profile']
end
end
# CreateTransferBatch返回参数结构体
class CreateTransferBatchResponse < TencentCloud::Common::AbstractModel
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param BatchId: 微信批次单号。
# 微信商家转账系统返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type BatchId: String
# @param CreateTime: 批次受理成功时返回,遵循rfc3339标准格式。格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
# 示例值:2015-05-20T13:29:35.120+08:00
# @type CreateTime: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantBatchNo, :BatchId, :CreateTime, :RequestId
def initialize(merchantbatchno=nil, batchid=nil, createtime=nil, requestid=nil)
@MerchantBatchNo = merchantbatchno
@BatchId = batchid
@CreateTime = createtime
@RequestId = requestid
end
def deserialize(params)
@MerchantBatchNo = params['MerchantBatchNo']
@BatchId = params['BatchId']
@CreateTime = params['CreateTime']
@RequestId = params['RequestId']
end
end
# DeduceQuota请求参数结构体
class DeduceQuotaRequest < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播ID
# @type AnchorId: String
# @param Amount: 提现金额,单位为"分"
# @type Amount: Integer
# @param OrderId: 外部业务订单号
# @type OrderId: String
attr_accessor :AnchorId, :Amount, :OrderId
def initialize(anchorid=nil, amount=nil, orderid=nil)
@AnchorId = anchorid
@Amount = amount
@OrderId = orderid
end
def deserialize(params)
@AnchorId = params['AnchorId']
@Amount = params['Amount']
@OrderId = params['OrderId']
end
end
# DeduceQuota返回参数结构体
class DeduceQuotaResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMsg: 响应消息
# @type ErrMsg: String
# @param Result: 返回响应
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AssignmentData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMsg, :Result, :RequestId
def initialize(errcode=nil, errmsg=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMsg = errmsg
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMsg = params['ErrMsg']
unless params['Result'].nil?
@Result = AssignmentData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DeleteAgentTaxPaymentInfo请求参数结构体
class DeleteAgentTaxPaymentInfoRequest < TencentCloud::Common::AbstractModel
# @param BatchNum: 批次号
# @type BatchNum: Integer
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :BatchNum, :Profile
def initialize(batchnum=nil, profile=nil)
@BatchNum = batchnum
@Profile = profile
end
def deserialize(params)
@BatchNum = params['BatchNum']
@Profile = params['Profile']
end
end
# DeleteAgentTaxPaymentInfo返回参数结构体
class DeleteAgentTaxPaymentInfoResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DeleteAgentTaxPaymentInfos请求参数结构体
class DeleteAgentTaxPaymentInfosRequest < TencentCloud::Common::AbstractModel
# @param BatchNum: 批次号
# @type BatchNum: Integer
attr_accessor :BatchNum
def initialize(batchnum=nil)
@BatchNum = batchnum
end
def deserialize(params)
@BatchNum = params['BatchNum']
end
end
# DeleteAgentTaxPaymentInfos返回参数结构体
class DeleteAgentTaxPaymentInfosResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DescribeChargeDetail请求参数结构体
class DescribeChargeDetailRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型
# @type RequestType: String
# @param MerchantCode: 商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OrderId: 原始交易订单号或者流水号
# @type OrderId: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param AcquiringChannelType: 收单渠道类型
# @type AcquiringChannelType: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param TransSequenceNumber: 交易流水号
# @type TransSequenceNumber: String
# @param MidasEnvironment: Midas环境参数
# @type MidasEnvironment: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OrderId, :BankAccountNumber, :AcquiringChannelType, :PlatformShortNumber, :MidasSecretId, :MidasAppId, :MidasSignature, :TransSequenceNumber, :MidasEnvironment, :ReservedMessage
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, orderid=nil, bankaccountnumber=nil, acquiringchanneltype=nil, platformshortnumber=nil, midassecretid=nil, midasappid=nil, midassignature=nil, transsequencenumber=nil, midasenvironment=nil, reservedmessage=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OrderId = orderid
@BankAccountNumber = bankaccountnumber
@AcquiringChannelType = acquiringchanneltype
@PlatformShortNumber = platformshortnumber
@MidasSecretId = midassecretid
@MidasAppId = midasappid
@MidasSignature = midassignature
@TransSequenceNumber = transsequencenumber
@MidasEnvironment = midasenvironment
@ReservedMessage = reservedmessage
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OrderId = params['OrderId']
@BankAccountNumber = params['BankAccountNumber']
@AcquiringChannelType = params['AcquiringChannelType']
@PlatformShortNumber = params['PlatformShortNumber']
@MidasSecretId = params['MidasSecretId']
@MidasAppId = params['MidasAppId']
@MidasSignature = params['MidasSignature']
@TransSequenceNumber = params['TransSequenceNumber']
@MidasEnvironment = params['MidasEnvironment']
@ReservedMessage = params['ReservedMessage']
end
end
# DescribeChargeDetail返回参数结构体
class DescribeChargeDetailResponse < TencentCloud::Common::AbstractModel
# @param OrderStatus: 交易状态 (0:成功,1:失败,2:异常,3:冲正,5:待处理)
# @type OrderStatus: String
# @param OrderAmount: 交易金额
# @type OrderAmount: String
# @param CommissionAmount: 佣金费
# @type CommissionAmount: String
# @param PayMode: 支付方式 0-冻结支付 1-普通支付
# @type PayMode: String
# @param OrderDate: 交易日期
# @type OrderDate: String
# @param OrderTime: 交易时间
# @type OrderTime: String
# @param OrderActualInSubAccountName: 订单实际转入见证子账户的名称
# @type OrderActualInSubAccountName: String
# @param OrderActualInSubAccountNumber: 订单实际转入见证子账户的帐号
# @type OrderActualInSubAccountNumber: String
# @param OrderInSubAccountName: 订单实际转入见证子账户的帐号
# @type OrderInSubAccountName: String
# @param OrderInSubAccountNumber: 订单转入见证子账户的帐号
# @type OrderInSubAccountNumber: String
# @param FrontSequenceNumber: 银行流水号
# @type FrontSequenceNumber: String
# @param FailMessage: 当充值失败时,返回交易失败原因
# @type FailMessage: String
# @param RequestType: 请求类型
# @type RequestType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OrderStatus, :OrderAmount, :CommissionAmount, :PayMode, :OrderDate, :OrderTime, :OrderActualInSubAccountName, :OrderActualInSubAccountNumber, :OrderInSubAccountName, :OrderInSubAccountNumber, :FrontSequenceNumber, :FailMessage, :RequestType, :RequestId
def initialize(orderstatus=nil, orderamount=nil, commissionamount=nil, paymode=nil, orderdate=nil, ordertime=nil, orderactualinsubaccountname=nil, orderactualinsubaccountnumber=nil, orderinsubaccountname=nil, orderinsubaccountnumber=nil, frontsequencenumber=nil, failmessage=nil, requesttype=nil, requestid=nil)
@OrderStatus = orderstatus
@OrderAmount = orderamount
@CommissionAmount = commissionamount
@PayMode = paymode
@OrderDate = orderdate
@OrderTime = ordertime
@OrderActualInSubAccountName = orderactualinsubaccountname
@OrderActualInSubAccountNumber = orderactualinsubaccountnumber
@OrderInSubAccountName = orderinsubaccountname
@OrderInSubAccountNumber = orderinsubaccountnumber
@FrontSequenceNumber = frontsequencenumber
@FailMessage = failmessage
@RequestType = requesttype
@RequestId = requestid
end
def deserialize(params)
@OrderStatus = params['OrderStatus']
@OrderAmount = params['OrderAmount']
@CommissionAmount = params['CommissionAmount']
@PayMode = params['PayMode']
@OrderDate = params['OrderDate']
@OrderTime = params['OrderTime']
@OrderActualInSubAccountName = params['OrderActualInSubAccountName']
@OrderActualInSubAccountNumber = params['OrderActualInSubAccountNumber']
@OrderInSubAccountName = params['OrderInSubAccountName']
@OrderInSubAccountNumber = params['OrderInSubAccountNumber']
@FrontSequenceNumber = params['FrontSequenceNumber']
@FailMessage = params['FailMessage']
@RequestType = params['RequestType']
@RequestId = params['RequestId']
end
end
# DescribeOrderStatus请求参数结构体
class DescribeOrderStatusRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型,此接口固定填:QueryOrderStatusReq
# @type RequestType: String
# @param MerchantCode: 商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OrderId: 交易订单号或流水号,提现,充值或会员交易请求时的CnsmrSeqNo值
# @type OrderId: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param QueryType: 功能标志 0:会员间交易 1:提现 2:充值
# @type QueryType: String
# @param TransSequenceNumber: 银行流水号
# @type TransSequenceNumber: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasEnvironment: Midas环境参数
# @type MidasEnvironment: String
# @param ReservedMessage: 保留字段
# @type ReservedMessage: String
# @param BankSubAccountNumber: 子账户账号 暂未使用
# @type BankSubAccountNumber: String
# @param TransDate: 交易日期 暂未使用
# @type TransDate: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OrderId, :BankAccountNumber, :PlatformShortNumber, :QueryType, :TransSequenceNumber, :MidasSignature, :MidasAppId, :MidasSecretId, :MidasEnvironment, :ReservedMessage, :BankSubAccountNumber, :TransDate
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, orderid=nil, bankaccountnumber=nil, platformshortnumber=nil, querytype=nil, transsequencenumber=nil, midassignature=nil, midasappid=nil, midassecretid=nil, midasenvironment=nil, reservedmessage=nil, banksubaccountnumber=nil, transdate=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OrderId = orderid
@BankAccountNumber = bankaccountnumber
@PlatformShortNumber = platformshortnumber
@QueryType = querytype
@TransSequenceNumber = transsequencenumber
@MidasSignature = midassignature
@MidasAppId = midasappid
@MidasSecretId = midassecretid
@MidasEnvironment = midasenvironment
@ReservedMessage = reservedmessage
@BankSubAccountNumber = banksubaccountnumber
@TransDate = transdate
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OrderId = params['OrderId']
@BankAccountNumber = params['BankAccountNumber']
@PlatformShortNumber = params['PlatformShortNumber']
@QueryType = params['QueryType']
@TransSequenceNumber = params['TransSequenceNumber']
@MidasSignature = params['MidasSignature']
@MidasAppId = params['MidasAppId']
@MidasSecretId = params['MidasSecretId']
@MidasEnvironment = params['MidasEnvironment']
@ReservedMessage = params['ReservedMessage']
@BankSubAccountNumber = params['BankSubAccountNumber']
@TransDate = params['TransDate']
end
end
# DescribeOrderStatus返回参数结构体
class DescribeOrderStatusResponse < TencentCloud::Common::AbstractModel
# @param OrderStatus: 交易状态 (0:成功,1:失败,2:待确认, 5:待处理,6:处理中)
# @type OrderStatus: String
# @param OrderAmount: 交易金额
# @type OrderAmount: String
# @param OrderDate: 交易日期
# @type OrderDate: String
# @param OrderTime: 交易时间
# @type OrderTime: String
# @param OutSubAccountNumber: 转出子账户账号
# @type OutSubAccountNumber: String
# @param InSubAccountNumber: 转入子账户账号
# @type InSubAccountNumber: String
# @param BookingFlag: 记账标志(1:登记挂账 2:支付 3:提现 4:清分5:下单预支付 6:确认并付款 7:退款 8:支付到平台 N:其他)
# @type BookingFlag: String
# @param FailMessage: 当交易失败时,返回交易失败原因
# @type FailMessage: String
# @param RequestType: 请求类型
# @type RequestType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OrderStatus, :OrderAmount, :OrderDate, :OrderTime, :OutSubAccountNumber, :InSubAccountNumber, :BookingFlag, :FailMessage, :RequestType, :RequestId
def initialize(orderstatus=nil, orderamount=nil, orderdate=nil, ordertime=nil, outsubaccountnumber=nil, insubaccountnumber=nil, bookingflag=nil, failmessage=nil, requesttype=nil, requestid=nil)
@OrderStatus = orderstatus
@OrderAmount = orderamount
@OrderDate = orderdate
@OrderTime = ordertime
@OutSubAccountNumber = outsubaccountnumber
@InSubAccountNumber = insubaccountnumber
@BookingFlag = bookingflag
@FailMessage = failmessage
@RequestType = requesttype
@RequestId = requestid
end
def deserialize(params)
@OrderStatus = params['OrderStatus']
@OrderAmount = params['OrderAmount']
@OrderDate = params['OrderDate']
@OrderTime = params['OrderTime']
@OutSubAccountNumber = params['OutSubAccountNumber']
@InSubAccountNumber = params['InSubAccountNumber']
@BookingFlag = params['BookingFlag']
@FailMessage = params['FailMessage']
@RequestType = params['RequestType']
@RequestId = params['RequestId']
end
end
# DistributeAccreditQuery请求参数结构体
class DistributeAccreditQueryRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Profile
def initialize(openid=nil, openkey=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Profile = params['Profile']
end
end
# DistributeAccreditQuery返回参数结构体
class DistributeAccreditQueryResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询授权申请结果响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeAccreditQueryResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeAccreditQueryResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 分账授权申请查询响应对象
class DistributeAccreditQueryResult < TencentCloud::Common::AbstractModel
# @param Status: 状态(0-未开通,1-已开通,2-商户主动关闭,3-待审核,4-冻结,5-注销,6-待签合同)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param ContractUrl: 合同h5地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractUrl: String
# @param Remark: 说明
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :Status, :ContractUrl, :Remark
def initialize(status=nil, contracturl=nil, remark=nil)
@Status = status
@ContractUrl = contracturl
@Remark = remark
end
def deserialize(params)
@Status = params['Status']
@ContractUrl = params['ContractUrl']
@Remark = params['Remark']
end
end
# 授权申请响应对象
class DistributeAccreditResult < TencentCloud::Common::AbstractModel
# @param ContractUrl: 合同h5地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractUrl: String
# @param MerchantNo: 系统商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
attr_accessor :ContractUrl, :MerchantNo
def initialize(contracturl=nil, merchantno=nil)
@ContractUrl = contracturl
@MerchantNo = merchantno
end
def deserialize(params)
@ContractUrl = params['ContractUrl']
@MerchantNo = params['MerchantNo']
end
end
# DistributeAccreditTlinx请求参数结构体
class DistributeAccreditTlinxRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param AuthType: 验证方式,传1手机验证(验证码时效60S)传2结算卡验证(时效6小时),多种方式用逗号隔开
# @type AuthType: String
# @param Percent: 分账比例(500=5%)不传默认百分之10
# @type Percent: String
# @param FullName: 营业执照商户全称
# @type FullName: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :AuthType, :Percent, :FullName, :Profile
def initialize(openid=nil, openkey=nil, authtype=nil, percent=nil, fullname=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@AuthType = authtype
@Percent = percent
@FullName = fullname
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@AuthType = params['AuthType']
@Percent = params['Percent']
@FullName = params['FullName']
@Profile = params['Profile']
end
end
# DistributeAccreditTlinx返回参数结构体
class DistributeAccreditTlinxResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 授权申请响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeAccreditResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeAccreditResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DistributeAddReceiver请求参数结构体
class DistributeAddReceiverRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param MerchantNo: 商户编号
# @type MerchantNo: String
# @param Remark: 备注
# @type Remark: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :MerchantNo, :Remark, :Profile
def initialize(openid=nil, openkey=nil, merchantno=nil, remark=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@MerchantNo = merchantno
@Remark = remark
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@MerchantNo = params['MerchantNo']
@Remark = params['Remark']
@Profile = params['Profile']
end
end
# DistributeAddReceiver返回参数结构体
class DistributeAddReceiverResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 添加分账接收方响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeReceiverResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeReceiverResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DistributeApply请求参数结构体
class DistributeApplyRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param OutDistributeNo: 商户分账单号
# @type OutDistributeNo: String
# @param Details: 分账明细
# @type Details: Array
# @param DeveloperNo: 商户交易订单号,和OrderNo二者传其一
# @type DeveloperNo: String
# @param OrderNo: 平台交易订单号,和DeveloperNo二者传其一
# @type OrderNo: String
# @param Remark: 说明
# @type Remark: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutDistributeNo, :Details, :DeveloperNo, :OrderNo, :Remark, :Profile
def initialize(openid=nil, openkey=nil, outdistributeno=nil, details=nil, developerno=nil, orderno=nil, remark=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutDistributeNo = outdistributeno
@Details = details
@DeveloperNo = developerno
@OrderNo = orderno
@Remark = remark
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutDistributeNo = params['OutDistributeNo']
unless params['Details'].nil?
@Details = []
params['Details'].each do |i|
multiapplydetail_tmp = MultiApplyDetail.new
multiapplydetail_tmp.deserialize(i)
@Details << multiapplydetail_tmp
end
end
@DeveloperNo = params['DeveloperNo']
@OrderNo = params['OrderNo']
@Remark = params['Remark']
@Profile = params['Profile']
end
end
# DistributeApply返回参数结构体
class DistributeApplyResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 分账申请响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeMultiApplyResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeMultiApplyResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DistributeCancel请求参数结构体
class DistributeCancelRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param OrderNo: 平台交易订单号
# @type OrderNo: String
# @param OutDistributeNo: 商户分账单号,type为2时,和DistributeNo二者传其一
# @type OutDistributeNo: String
# @param DistributeNo: 平台分账单号,type为2时,和OutDistributeNo二者传其一
# @type DistributeNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OrderNo, :OutDistributeNo, :DistributeNo, :Profile
def initialize(openid=nil, openkey=nil, orderno=nil, outdistributeno=nil, distributeno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OrderNo = orderno
@OutDistributeNo = outdistributeno
@DistributeNo = distributeno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OrderNo = params['OrderNo']
@OutDistributeNo = params['OutDistributeNo']
@DistributeNo = params['DistributeNo']
@Profile = params['Profile']
end
end
# DistributeCancel返回参数结构体
class DistributeCancelResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 分账撤销响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeCancelResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeCancelResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 分账撤销响应对象
class DistributeCancelResult < TencentCloud::Common::AbstractModel
# @param Status: 分账订单状态(0初始1成功2失败3撤销)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param OrderNo: 平台交易订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
# @param OutDistributeNo: 商户分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutDistributeNo: String
# @param DistributeNo: 平台分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DistributeNo: String
attr_accessor :Status, :OrderNo, :OutDistributeNo, :DistributeNo
def initialize(status=nil, orderno=nil, outdistributeno=nil, distributeno=nil)
@Status = status
@OrderNo = orderno
@OutDistributeNo = outdistributeno
@DistributeNo = distributeno
end
def deserialize(params)
@Status = params['Status']
@OrderNo = params['OrderNo']
@OutDistributeNo = params['OutDistributeNo']
@DistributeNo = params['DistributeNo']
end
end
# 分账申请响应对象
class DistributeMultiApplyResult < TencentCloud::Common::AbstractModel
# @param Status: 分账状态(0分账初始 1分账成功 2分账失败)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param DistributeNo: 平台分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DistributeNo: String
# @param InDate: 入账日期,yyyy-MM-dd格式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InDate: String
# @param Amount: 分账金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Amount: String
# @param OutDistributeNo: 商户分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutDistributeNo: String
# @param OrderNo: 平台支付单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
attr_accessor :Status, :DistributeNo, :InDate, :Amount, :OutDistributeNo, :OrderNo
def initialize(status=nil, distributeno=nil, indate=nil, amount=nil, outdistributeno=nil, orderno=nil)
@Status = status
@DistributeNo = distributeno
@InDate = indate
@Amount = amount
@OutDistributeNo = outdistributeno
@OrderNo = orderno
end
def deserialize(params)
@Status = params['Status']
@DistributeNo = params['DistributeNo']
@InDate = params['InDate']
@Amount = params['Amount']
@OutDistributeNo = params['OutDistributeNo']
@OrderNo = params['OrderNo']
end
end
# DistributeQueryReceiver请求参数结构体
class DistributeQueryReceiverRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Profile
def initialize(openid=nil, openkey=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Profile = params['Profile']
end
end
# DistributeQueryReceiver返回参数结构体
class DistributeQueryReceiverResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询询已添加分账接收方响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeReceiverResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeReceiverResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DistributeQuery请求参数结构体
class DistributeQueryRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param Type: 查询类型(1-全部,2-单笔)
# @type Type: String
# @param OutDistributeNo: 商户分账单号,type为2时,和DistributeNo二者传其一
# @type OutDistributeNo: String
# @param DistributeNo: 平台分账单号,type为2时,和OutDistributeNo二者传其一
# @type DistributeNo: String
# @param OrderNo: 平台交易订单号
# @type OrderNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Type, :OutDistributeNo, :DistributeNo, :OrderNo, :Profile
def initialize(openid=nil, openkey=nil, type=nil, outdistributeno=nil, distributeno=nil, orderno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Type = type
@OutDistributeNo = outdistributeno
@DistributeNo = distributeno
@OrderNo = orderno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Type = params['Type']
@OutDistributeNo = params['OutDistributeNo']
@DistributeNo = params['DistributeNo']
@OrderNo = params['OrderNo']
@Profile = params['Profile']
end
end
# DistributeQuery返回参数结构体
class DistributeQueryResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 分账结果响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeQueryResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeQueryResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 分账结果响应对象
class DistributeQueryResult < TencentCloud::Common::AbstractModel
# @param Orders: 分账订单列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Orders: Array
attr_accessor :Orders
def initialize(orders=nil)
@Orders = orders
end
def deserialize(params)
unless params['Orders'].nil?
@Orders = []
params['Orders'].each do |i|
multiapplyorder_tmp = MultiApplyOrder.new
multiapplyorder_tmp.deserialize(i)
@Orders << multiapplyorder_tmp
end
end
end
end
# 分账接收方响应对象
class DistributeReceiverResult < TencentCloud::Common::AbstractModel
# @param MerchantNo: 商户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
attr_accessor :MerchantNo
def initialize(merchantno=nil)
@MerchantNo = merchantno
end
def deserialize(params)
@MerchantNo = params['MerchantNo']
end
end
# DistributeRemoveReceiver请求参数结构体
class DistributeRemoveReceiverRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param MerchantNo: 商户编号
# @type MerchantNo: String
# @param Remark: 备注
# @type Remark: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :MerchantNo, :Remark, :Profile
def initialize(openid=nil, openkey=nil, merchantno=nil, remark=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@MerchantNo = merchantno
@Remark = remark
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@MerchantNo = params['MerchantNo']
@Remark = params['Remark']
@Profile = params['Profile']
end
end
# DistributeRemoveReceiver返回参数结构体
class DistributeRemoveReceiverResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 解除分账接收方响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DistributeReceiverResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DistributeReceiverResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DownloadBill请求参数结构体
class DownloadBillRequest < TencentCloud::Common::AbstractModel
# @param StateDate: 请求下载对账单日期
# @type StateDate: String
# @param MidasAppId: 聚鑫分配的MidasAppId
# @type MidasAppId: String
# @param MidasSecretId: 聚鑫分配的SecretId
# @type MidasSecretId: String
# @param MidasSignature: 使用聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :StateDate, :MidasAppId, :MidasSecretId, :MidasSignature, :MidasEnvironment
def initialize(statedate=nil, midasappid=nil, midassecretid=nil, midassignature=nil, midasenvironment=nil)
@StateDate = statedate
@MidasAppId = midasappid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@StateDate = params['StateDate']
@MidasAppId = params['MidasAppId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@MidasEnvironment = params['MidasEnvironment']
end
end
# DownloadBill返回参数结构体
class DownloadBillResponse < TencentCloud::Common::AbstractModel
# @param FileName: 账单文件名
# @type FileName: String
# @param FileMD5: 账单文件的MD5值
# @type FileMD5: String
# @param DownloadUrl: 账单文件的真实下载地址
# @type DownloadUrl: String
# @param StateType: 账单类型
# TRADE,对账单
# FUND,资金账单
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StateType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FileName, :FileMD5, :DownloadUrl, :StateType, :RequestId
def initialize(filename=nil, filemd5=nil, downloadurl=nil, statetype=nil, requestid=nil)
@FileName = filename
@FileMD5 = filemd5
@DownloadUrl = downloadurl
@StateType = statetype
@RequestId = requestid
end
def deserialize(params)
@FileName = params['FileName']
@FileMD5 = params['FileMD5']
@DownloadUrl = params['DownloadUrl']
@StateType = params['StateType']
@RequestId = params['RequestId']
end
end
# 上传下载响应对象
class DownloadFileResult < TencentCloud::Common::AbstractModel
# @param Content: 文件内容(base64加密的二进制内容)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Content: String
# @param Storage: 存储区域(0私密区,1公共区),请严格按文件要求,上传到不同的区域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Storage: String
attr_accessor :Content, :Storage
def initialize(content=nil, storage=nil)
@Content = content
@Storage = storage
end
def deserialize(params)
@Content = params['Content']
@Storage = params['Storage']
end
end
# DownloadOrgFile请求参数结构体
class DownloadOrgFileRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Storage: 存储区域(0私密区,1公共区),请严格按文件要求,上传到不同的区域
# @type Storage: String
# @param FilePath: 文件路径
# @type FilePath: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Storage, :FilePath, :Profile
def initialize(openid=nil, openkey=nil, storage=nil, filepath=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Storage = storage
@FilePath = filepath
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Storage = params['Storage']
@FilePath = params['FilePath']
@Profile = params['Profile']
end
end
# DownloadOrgFile返回参数结构体
class DownloadOrgFileResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 下载机构文件响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.DownloadFileResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = DownloadFileResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# DownloadReconciliationUrl请求参数结构体
class DownloadReconciliationUrlRequest < TencentCloud::Common::AbstractModel
# @param MainAppId: 平台应用ID
# @type MainAppId: String
# @param AppCode: 平台代码
# @type AppCode: String
# @param BillDate: 账单日期,yyyy-MM-dd
# @type BillDate: String
# @param SubAppId: 商户或者代理商ID
# @type SubAppId: String
attr_accessor :MainAppId, :AppCode, :BillDate, :SubAppId
def initialize(mainappid=nil, appcode=nil, billdate=nil, subappid=nil)
@MainAppId = mainappid
@AppCode = appcode
@BillDate = billdate
@SubAppId = subappid
end
def deserialize(params)
@MainAppId = params['MainAppId']
@AppCode = params['AppCode']
@BillDate = params['BillDate']
@SubAppId = params['SubAppId']
end
end
# DownloadReconciliationUrl返回参数结构体
class DownloadReconciliationUrlResponse < TencentCloud::Common::AbstractModel
# @param DownloadUrl: 下载地址
# @type DownloadUrl: String
# @param HashType: hash类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type HashType: String
# @param HashValue: hash值
# @type HashValue: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DownloadUrl, :HashType, :HashValue, :RequestId
def initialize(downloadurl=nil, hashtype=nil, hashvalue=nil, requestid=nil)
@DownloadUrl = downloadurl
@HashType = hashtype
@HashValue = hashvalue
@RequestId = requestid
end
def deserialize(params)
@DownloadUrl = params['DownloadUrl']
@HashType = params['HashType']
@HashValue = params['HashValue']
@RequestId = params['RequestId']
end
end
# ExecuteMemberTransaction请求参数结构体
class ExecuteMemberTransactionRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型此接口固定填:MemberTransactionReq
# @type RequestType: String
# @param MerchantCode: 银行注册商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OutTransNetMemberCode: 转出交易网会员代码
# @type OutTransNetMemberCode: String
# @param OutSubAccountName: 转出见证子账户的户名
# @type OutSubAccountName: String
# @param InSubAccountName: 转入见证子账户的户名
# @type InSubAccountName: String
# @param OutSubAccountNumber: 转出子账户账号
# @type OutSubAccountNumber: String
# @param InSubAccountNumber: 转入子账户账号
# @type InSubAccountNumber: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param CurrencyUnit: 货币单位 单位,1:元,2:角,3:分
# @type CurrencyUnit: String
# @param CurrencyType: 币种
# @type CurrencyType: String
# @param CurrencyAmount: 交易金额
# @type CurrencyAmount: String
# @param OrderId: 订单号
# @type OrderId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param TransSequenceNumber: 交易流水号
# 生成方式:用户短号+日期(6位)+ 随机编号(10位)例如:F088722005120904930798
# 短号:F08872 日期: 200512 随机编号:0904930798
# @type TransSequenceNumber: String
# @param InTransNetMemberCode: 转入交易网会员代码
# @type InTransNetMemberCode: String
# @param MidasEnvironment: Midas环境标识 release 现网环境 sandbox 沙箱环境
# development 开发环境
# @type MidasEnvironment: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param TransType: 1:下单预支付
# 2:确认并付款
# 3:退款
# 6:直接支付T+1
# 9:直接支付T+0
# @type TransType: String
# @param TransFee: 交易手续费
# @type TransFee: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OutTransNetMemberCode, :OutSubAccountName, :InSubAccountName, :OutSubAccountNumber, :InSubAccountNumber, :BankAccountNumber, :CurrencyUnit, :CurrencyType, :CurrencyAmount, :OrderId, :MidasAppId, :MidasSecretId, :MidasSignature, :TransSequenceNumber, :InTransNetMemberCode, :MidasEnvironment, :PlatformShortNumber, :TransType, :TransFee, :ReservedMessage
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, outtransnetmembercode=nil, outsubaccountname=nil, insubaccountname=nil, outsubaccountnumber=nil, insubaccountnumber=nil, bankaccountnumber=nil, currencyunit=nil, currencytype=nil, currencyamount=nil, orderid=nil, midasappid=nil, midassecretid=nil, midassignature=nil, transsequencenumber=nil, intransnetmembercode=nil, midasenvironment=nil, platformshortnumber=nil, transtype=nil, transfee=nil, reservedmessage=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OutTransNetMemberCode = outtransnetmembercode
@OutSubAccountName = outsubaccountname
@InSubAccountName = insubaccountname
@OutSubAccountNumber = outsubaccountnumber
@InSubAccountNumber = insubaccountnumber
@BankAccountNumber = bankaccountnumber
@CurrencyUnit = currencyunit
@CurrencyType = currencytype
@CurrencyAmount = currencyamount
@OrderId = orderid
@MidasAppId = midasappid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@TransSequenceNumber = transsequencenumber
@InTransNetMemberCode = intransnetmembercode
@MidasEnvironment = midasenvironment
@PlatformShortNumber = platformshortnumber
@TransType = transtype
@TransFee = transfee
@ReservedMessage = reservedmessage
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OutTransNetMemberCode = params['OutTransNetMemberCode']
@OutSubAccountName = params['OutSubAccountName']
@InSubAccountName = params['InSubAccountName']
@OutSubAccountNumber = params['OutSubAccountNumber']
@InSubAccountNumber = params['InSubAccountNumber']
@BankAccountNumber = params['BankAccountNumber']
@CurrencyUnit = params['CurrencyUnit']
@CurrencyType = params['CurrencyType']
@CurrencyAmount = params['CurrencyAmount']
@OrderId = params['OrderId']
@MidasAppId = params['MidasAppId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@TransSequenceNumber = params['TransSequenceNumber']
@InTransNetMemberCode = params['InTransNetMemberCode']
@MidasEnvironment = params['MidasEnvironment']
@PlatformShortNumber = params['PlatformShortNumber']
@TransType = params['TransType']
@TransFee = params['TransFee']
@ReservedMessage = params['ReservedMessage']
end
end
# ExecuteMemberTransaction返回参数结构体
class ExecuteMemberTransactionResponse < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型
# @type RequestType: String
# @param FrontSequenceNumber: 银行流水号
# @type FrontSequenceNumber: String
# @param ReservedMessage: 保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMessage: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestType, :FrontSequenceNumber, :ReservedMessage, :RequestId
def initialize(requesttype=nil, frontsequencenumber=nil, reservedmessage=nil, requestid=nil)
@RequestType = requesttype
@FrontSequenceNumber = frontsequencenumber
@ReservedMessage = reservedmessage
@RequestId = requestid
end
def deserialize(params)
@RequestType = params['RequestType']
@FrontSequenceNumber = params['FrontSequenceNumber']
@ReservedMessage = params['ReservedMessage']
@RequestId = params['RequestId']
end
end
# 第三方渠道用户信息
class ExternalContractUserInfo < TencentCloud::Common::AbstractModel
# @param ExternalUserType: 第三方用户类型,例如: WX_OPENID, WX_SUB_OPENID,WX_PAYER_OPENID
# @type ExternalUserType: String
# @param ExternalUserId: 第三方用户ID
# @type ExternalUserId: String
attr_accessor :ExternalUserType, :ExternalUserId
def initialize(externalusertype=nil, externaluserid=nil)
@ExternalUserType = externalusertype
@ExternalUserId = externaluserid
end
def deserialize(params)
@ExternalUserType = params['ExternalUserType']
@ExternalUserId = params['ExternalUserId']
end
end
# 第三方渠道合约信息
class ExternalReturnContractInfo < TencentCloud::Common::AbstractModel
# @param ExternalReturnAgreementId: 第三方渠道协议id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnAgreementId: String
# @param ExternalReturnContractEffectiveTimestamp: 第三方渠道协议生效时间戳
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractEffectiveTimestamp: String
# @param ExternalReturnContractTerminationTimestamp: 第三方渠道协议解约时间戳
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractTerminationTimestamp: String
# @param ExternalReturnContractStatus: 平台合约状态
# 协议状态,枚举值:
# CONTRACT_STATUS_SIGNED:已签约
# CONTRACT_STATUS_TERMINATED:未签约
# CONTRACT_STATUS_PENDING:签约进行中
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractStatus: String
# @param ExternalReturnRequestId: 第三方渠道请求序列号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnRequestId: String
# @param ExternalReturnContractSignedTimestamp: 第三方渠道协议签署时间戳
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractSignedTimestamp: String
# @param ExternalReturnContractExpiredTimestamp: 第三方渠道协议到期时间戳
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractExpiredTimestamp: String
# @param ExternalReturnContractData: 第三方渠道返回的合约数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractData: String
# @param ExternalReturnContractTerminationRemark: 第三方渠道解约备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractTerminationRemark: String
# @param ExternalReturnContractTerminationMode: 第三方渠道协议解约方式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnContractTerminationMode: String
attr_accessor :ExternalReturnAgreementId, :ExternalReturnContractEffectiveTimestamp, :ExternalReturnContractTerminationTimestamp, :ExternalReturnContractStatus, :ExternalReturnRequestId, :ExternalReturnContractSignedTimestamp, :ExternalReturnContractExpiredTimestamp, :ExternalReturnContractData, :ExternalReturnContractTerminationRemark, :ExternalReturnContractTerminationMode
def initialize(externalreturnagreementid=nil, externalreturncontracteffectivetimestamp=nil, externalreturncontractterminationtimestamp=nil, externalreturncontractstatus=nil, externalreturnrequestid=nil, externalreturncontractsignedtimestamp=nil, externalreturncontractexpiredtimestamp=nil, externalreturncontractdata=nil, externalreturncontractterminationremark=nil, externalreturncontractterminationmode=nil)
@ExternalReturnAgreementId = externalreturnagreementid
@ExternalReturnContractEffectiveTimestamp = externalreturncontracteffectivetimestamp
@ExternalReturnContractTerminationTimestamp = externalreturncontractterminationtimestamp
@ExternalReturnContractStatus = externalreturncontractstatus
@ExternalReturnRequestId = externalreturnrequestid
@ExternalReturnContractSignedTimestamp = externalreturncontractsignedtimestamp
@ExternalReturnContractExpiredTimestamp = externalreturncontractexpiredtimestamp
@ExternalReturnContractData = externalreturncontractdata
@ExternalReturnContractTerminationRemark = externalreturncontractterminationremark
@ExternalReturnContractTerminationMode = externalreturncontractterminationmode
end
def deserialize(params)
@ExternalReturnAgreementId = params['ExternalReturnAgreementId']
@ExternalReturnContractEffectiveTimestamp = params['ExternalReturnContractEffectiveTimestamp']
@ExternalReturnContractTerminationTimestamp = params['ExternalReturnContractTerminationTimestamp']
@ExternalReturnContractStatus = params['ExternalReturnContractStatus']
@ExternalReturnRequestId = params['ExternalReturnRequestId']
@ExternalReturnContractSignedTimestamp = params['ExternalReturnContractSignedTimestamp']
@ExternalReturnContractExpiredTimestamp = params['ExternalReturnContractExpiredTimestamp']
@ExternalReturnContractData = params['ExternalReturnContractData']
@ExternalReturnContractTerminationRemark = params['ExternalReturnContractTerminationRemark']
@ExternalReturnContractTerminationMode = params['ExternalReturnContractTerminationMode']
end
end
# 分段计费区间信息
class FeeRangInfo < TencentCloud::Common::AbstractModel
# @param CardType: 卡类型,银联产品使用
# DEBIT:借记卡
# CREDIT:贷记卡
# @type CardType: String
# @param RangeStartValue: 区间起始金额,单位(分)
# @type RangeStartValue: Integer
# @param RangeEndValue: 区间结束金额,单位(分)
# @type RangeEndValue: Integer
# @param RangeFeeMode: 分段计费模式
# SINGLE:按金额计费
# RATIO:按费率计费
# @type RangeFeeMode: String
# @param FeeValue: 费用值,单位(0.01%或分)
# @type FeeValue: Integer
# @param MinFee: 最低收费金额,单位(分)
# @type MinFee: Integer
# @param MaxFee: 最高收费金额,单位(分)
# @type MaxFee: Integer
attr_accessor :CardType, :RangeStartValue, :RangeEndValue, :RangeFeeMode, :FeeValue, :MinFee, :MaxFee
def initialize(cardtype=nil, rangestartvalue=nil, rangeendvalue=nil, rangefeemode=nil, feevalue=nil, minfee=nil, maxfee=nil)
@CardType = cardtype
@RangeStartValue = rangestartvalue
@RangeEndValue = rangeendvalue
@RangeFeeMode = rangefeemode
@FeeValue = feevalue
@MinFee = minfee
@MaxFee = maxfee
end
def deserialize(params)
@CardType = params['CardType']
@RangeStartValue = params['RangeStartValue']
@RangeEndValue = params['RangeEndValue']
@RangeFeeMode = params['RangeFeeMode']
@FeeValue = params['FeeValue']
@MinFee = params['MinFee']
@MaxFee = params['MaxFee']
end
end
# 对账文件信息
class FileItem < TencentCloud::Common::AbstractModel
# @param FileName: STRING(256),文件名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FileName: String
# @param RandomPassword: STRING(120),随机密码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RandomPassword: String
# @param FilePath: STRING(512),文件路径
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FilePath: String
# @param DrawCode: STRING(64),提取码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DrawCode: String
attr_accessor :FileName, :RandomPassword, :FilePath, :DrawCode
def initialize(filename=nil, randompassword=nil, filepath=nil, drawcode=nil)
@FileName = filename
@RandomPassword = randompassword
@FilePath = filepath
@DrawCode = drawcode
end
def deserialize(params)
@FileName = params['FileName']
@RandomPassword = params['RandomPassword']
@FilePath = params['FilePath']
@DrawCode = params['DrawCode']
end
end
# 对账单文件下载链接
class FlexBillDownloadUrlResult < TencentCloud::Common::AbstractModel
# @param Url: 对账单文件下载链接
# @type Url: String
# @param ExpireTime: 下载链接过期时间
# @type ExpireTime: String
attr_accessor :Url, :ExpireTime
def initialize(url=nil, expiretime=nil)
@Url = url
@ExpireTime = expiretime
end
def deserialize(params)
@Url = params['Url']
@ExpireTime = params['ExpireTime']
end
end
# 灵云V2-银行信息
class FlexFundingAccountInfo < TencentCloud::Common::AbstractModel
# @param FundingAccountNo: 资金账户号
# @type FundingAccountNo: String
# @param FundingAccountType: 资金账户类型
# @type FundingAccountType: String
# @param FundingAccountBindSerialNo: 资金账户绑定序列号
# @type FundingAccountBindSerialNo: String
# @param FundingAccountName: 资金账户名称
# @type FundingAccountName: String
attr_accessor :FundingAccountNo, :FundingAccountType, :FundingAccountBindSerialNo, :FundingAccountName
def initialize(fundingaccountno=nil, fundingaccounttype=nil, fundingaccountbindserialno=nil, fundingaccountname=nil)
@FundingAccountNo = fundingaccountno
@FundingAccountType = fundingaccounttype
@FundingAccountBindSerialNo = fundingaccountbindserialno
@FundingAccountName = fundingaccountname
end
def deserialize(params)
@FundingAccountNo = params['FundingAccountNo']
@FundingAccountType = params['FundingAccountType']
@FundingAccountBindSerialNo = params['FundingAccountBindSerialNo']
@FundingAccountName = params['FundingAccountName']
end
end
# FreezeFlexBalance请求参数结构体
class FreezeFlexBalanceRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param OperationType: 操作类型
# FREEZE:冻结
# UNFREEZE:解冻
# @type OperationType: String
# @param Remark: 冻结备注
# @type Remark: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :AmountBeforeTax, :IncomeType, :OutOrderId, :OperationType, :Remark, :Environment
def initialize(payeeid=nil, amountbeforetax=nil, incometype=nil, outorderid=nil, operationtype=nil, remark=nil, environment=nil)
@PayeeId = payeeid
@AmountBeforeTax = amountbeforetax
@IncomeType = incometype
@OutOrderId = outorderid
@OperationType = operationtype
@Remark = remark
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@AmountBeforeTax = params['AmountBeforeTax']
@IncomeType = params['IncomeType']
@OutOrderId = params['OutOrderId']
@OperationType = params['OperationType']
@Remark = params['Remark']
@Environment = params['Environment']
end
end
# FreezeFlexBalance返回参数结构体
class FreezeFlexBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.FreezeFlexBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = FreezeFlexBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 冻结余额结果
class FreezeFlexBalanceResult < TencentCloud::Common::AbstractModel
# @param OrderId: 冻结订单ID
# @type OrderId: String
attr_accessor :OrderId
def initialize(orderid=nil)
@OrderId = orderid
end
def deserialize(params)
@OrderId = params['OrderId']
end
end
# 冻结单结果
class FreezeOrderResult < TencentCloud::Common::AbstractModel
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param OrderId: 订单ID
# @type OrderId: String
# @param OperationType: 操作类型
# FREEZE:冻结
# UNFREEZE:解冻
# @type OperationType: String
# @param InitiateTime: 发起时间
# @type InitiateTime: String
# @param FinishTime: 完成时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinishTime: String
# @param Status: 状态
# ACCEPTED:已受理
# ACCOUNTED:已记账
# SUCCEED:已成功
# FAILED:已失败
# @type Status: String
# @param StatusDesc: 状态描述
# @type StatusDesc: String
# @param Remark: 冻结备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 外部用户ID
# @type OutUserId: String
attr_accessor :AmountBeforeTax, :IncomeType, :OutOrderId, :OrderId, :OperationType, :InitiateTime, :FinishTime, :Status, :StatusDesc, :Remark, :PayeeId, :OutUserId
def initialize(amountbeforetax=nil, incometype=nil, outorderid=nil, orderid=nil, operationtype=nil, initiatetime=nil, finishtime=nil, status=nil, statusdesc=nil, remark=nil, payeeid=nil, outuserid=nil)
@AmountBeforeTax = amountbeforetax
@IncomeType = incometype
@OutOrderId = outorderid
@OrderId = orderid
@OperationType = operationtype
@InitiateTime = initiatetime
@FinishTime = finishtime
@Status = status
@StatusDesc = statusdesc
@Remark = remark
@PayeeId = payeeid
@OutUserId = outuserid
end
def deserialize(params)
@AmountBeforeTax = params['AmountBeforeTax']
@IncomeType = params['IncomeType']
@OutOrderId = params['OutOrderId']
@OrderId = params['OrderId']
@OperationType = params['OperationType']
@InitiateTime = params['InitiateTime']
@FinishTime = params['FinishTime']
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@Remark = params['Remark']
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
end
end
# 冻结订单列表
class FreezeOrders < TencentCloud::Common::AbstractModel
# @param List: 列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type List: Array
# @param Count: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
attr_accessor :List, :Count
def initialize(list=nil, count=nil)
@List = list
@Count = count
end
def deserialize(params)
unless params['List'].nil?
@List = []
params['List'].each do |i|
freezeorderresult_tmp = FreezeOrderResult.new
freezeorderresult_tmp.deserialize(i)
@List << freezeorderresult_tmp
end
end
@Count = params['Count']
end
end
# 会员资金交易明细信息
class FundsTransactionItem < TencentCloud::Common::AbstractModel
# @param TransType: 资金交易类型。
# __1__:提现/退款
# __2__:清分/充值
# @type TransType: String
# @param BankBookingMessage: 银行记账说明。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankBookingMessage: String
# @param TranStatus: 交易状态。
# __0__:成功
# @type TranStatus: String
# @param TransNetMemberCode: 业务方会员标识。
# _平安渠道为交易网会员代码_
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransNetMemberCode: String
# @param SubAccountNumber: 子账户账号。
# _平安渠道为见证子账户的账号_
# @type SubAccountNumber: String
# @param SubAccountName: 子账户名称。
# _平安渠道为见证子账户的户名_
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAccountName: String
# @param TransAmount: 交易金额。
# @type TransAmount: String
# @param TransFee: 交易手续费。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransFee: String
# @param TransDate: 交易日期,格式:yyyyMMdd。
# @type TransDate: String
# @param TransTime: 交易时间,格式:HHmmss。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransTime: String
# @param BankSequenceNumber: 银行系统流水号。
# _平安渠道为见证系统流水号_
# @type BankSequenceNumber: String
# @param Remark: 备注。
# _平安渠道,如果是见证+收单的交易,返回交易订单号_
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :TransType, :BankBookingMessage, :TranStatus, :TransNetMemberCode, :SubAccountNumber, :SubAccountName, :TransAmount, :TransFee, :TransDate, :TransTime, :BankSequenceNumber, :Remark
def initialize(transtype=nil, bankbookingmessage=nil, transtatus=nil, transnetmembercode=nil, subaccountnumber=nil, subaccountname=nil, transamount=nil, transfee=nil, transdate=nil, transtime=nil, banksequencenumber=nil, remark=nil)
@TransType = transtype
@BankBookingMessage = bankbookingmessage
@TranStatus = transtatus
@TransNetMemberCode = transnetmembercode
@SubAccountNumber = subaccountnumber
@SubAccountName = subaccountname
@TransAmount = transamount
@TransFee = transfee
@TransDate = transdate
@TransTime = transtime
@BankSequenceNumber = banksequencenumber
@Remark = remark
end
def deserialize(params)
@TransType = params['TransType']
@BankBookingMessage = params['BankBookingMessage']
@TranStatus = params['TranStatus']
@TransNetMemberCode = params['TransNetMemberCode']
@SubAccountNumber = params['SubAccountNumber']
@SubAccountName = params['SubAccountName']
@TransAmount = params['TransAmount']
@TransFee = params['TransFee']
@TransDate = params['TransDate']
@TransTime = params['TransTime']
@BankSequenceNumber = params['BankSequenceNumber']
@Remark = params['Remark']
end
end
# GetBillDownloadUrl请求参数结构体
class GetBillDownloadUrlRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Day: 清算日期(YYYYMMDD,今天传昨天的日期,每日下午1点后出前一日的账单)
# @type Day: String
attr_accessor :OpenId, :OpenKey, :Day
def initialize(openid=nil, openkey=nil, day=nil)
@OpenId = openid
@OpenKey = openkey
@Day = day
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Day = params['Day']
end
end
# GetBillDownloadUrl返回参数结构体
class GetBillDownloadUrlResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 账单文件下载地址响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.BillDownloadUrlResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = BillDownloadUrlResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# GetDistributeBillDownloadUrl请求参数结构体
class GetDistributeBillDownloadUrlRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Day: 分账日期(YYYYMMDD,今天传昨天的日期)
# @type Day: String
attr_accessor :OpenId, :OpenKey, :Day
def initialize(openid=nil, openkey=nil, day=nil)
@OpenId = openid
@OpenKey = openkey
@Day = day
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Day = params['Day']
end
end
# GetDistributeBillDownloadUrl返回参数结构体
class GetDistributeBillDownloadUrlResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 账单文件下载地址响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.BillDownloadUrlResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = BillDownloadUrlResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# GetPayRollAuthList请求参数结构体
class GetPayRollAuthListRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param AuthDate: 核身日期,一次只能查询一天,最久可查询90天内的记录,格式为YYYY-MM-DD
# @type AuthDate: String
# @param Offset: 非负整数,表示该次请求资源的起始位置,从0开始计数
# @type Offset: Integer
# @param Limit: 非0非负的整数,该次请求可返回的最大资源条数,默认值为10,最大支持10条
# @type Limit: Integer
# @param WechatAppId: 是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致)
# 当输入服务商Appid时,会校验其与服务商商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatAppId: String
# @param WechatSubAppId: 特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致)
# 当输入特约商户Appid时,会校验其与特约商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatSubAppId: String
# @param AuthStatus: 核身状态,列表查询仅提供成功状态的核身记录查询,故此字段固定AUTHENTICATE_SUCCESS即可
# @type AuthStatus: String
attr_accessor :OpenId, :SubMerchantId, :AuthDate, :Offset, :Limit, :WechatAppId, :WechatSubAppId, :AuthStatus
def initialize(openid=nil, submerchantid=nil, authdate=nil, offset=nil, limit=nil, wechatappid=nil, wechatsubappid=nil, authstatus=nil)
@OpenId = openid
@SubMerchantId = submerchantid
@AuthDate = authdate
@Offset = offset
@Limit = limit
@WechatAppId = wechatappid
@WechatSubAppId = wechatsubappid
@AuthStatus = authstatus
end
def deserialize(params)
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@AuthDate = params['AuthDate']
@Offset = params['Offset']
@Limit = params['Limit']
@WechatAppId = params['WechatAppId']
@WechatSubAppId = params['WechatSubAppId']
@AuthStatus = params['AuthStatus']
end
end
# GetPayRollAuthList返回参数结构体
class GetPayRollAuthListResponse < TencentCloud::Common::AbstractModel
# @param Results: 核身结果列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Results: Array
# @param Total: 总记录条数
# @type Total: Integer
# @param Offset: 记录起始位置,该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0
# @type Offset: Integer
# @param Limit: 本次返回条数
# @type Limit: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Results, :Total, :Offset, :Limit, :RequestId
def initialize(results=nil, total=nil, offset=nil, limit=nil, requestid=nil)
@Results = results
@Total = total
@Offset = offset
@Limit = limit
@RequestId = requestid
end
def deserialize(params)
unless params['Results'].nil?
@Results = []
params['Results'].each do |i|
payrollauthresult_tmp = PayRollAuthResult.new
payrollauthresult_tmp.deserialize(i)
@Results << payrollauthresult_tmp
end
end
@Total = params['Total']
@Offset = params['Offset']
@Limit = params['Limit']
@RequestId = params['RequestId']
end
end
# GetPayRollAuth请求参数结构体
class GetPayRollAuthRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param WechatAppId: 是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致)
# 当输入服务商Appid时,会校验其与服务商商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatAppId: String
# @param WechatSubAppId: 特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致)
# 当输入特约商户Appid时,会校验其与特约商户号的绑定关系。服务商APPID和与特约商户APPID至少输入一个,且必须要有拉起领薪卡小程序时使用的APPID
# @type WechatSubAppId: String
attr_accessor :OpenId, :SubMerchantId, :WechatAppId, :WechatSubAppId
def initialize(openid=nil, submerchantid=nil, wechatappid=nil, wechatsubappid=nil)
@OpenId = openid
@SubMerchantId = submerchantid
@WechatAppId = wechatappid
@WechatSubAppId = wechatsubappid
end
def deserialize(params)
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@WechatAppId = params['WechatAppId']
@WechatSubAppId = params['WechatSubAppId']
end
end
# GetPayRollAuth返回参数结构体
class GetPayRollAuthResponse < TencentCloud::Common::AbstractModel
# @param AuthStatus: 授权状态:
# UNAUTHORIZED:未授权
# AUTHORIZED:已授权
# DEAUTHORIZED:已取消授权
# @type AuthStatus: String
# @param AuthTime: 授权时间,遵循[rfc3339](https://datatracker.ietf.org/doc/html/rfc3339)标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,空字符串等同null
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AuthTime: String
# @param CancelAuthTime: 授权时间,遵循[rfc3339](https://datatracker.ietf.org/doc/html/rfc3339)标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,空字符串等同null
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CancelAuthTime: String
# @param MerchantId: 微信服务商商户的商户号,由微信支付生成并下发
# @type MerchantId: String
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AuthStatus, :AuthTime, :CancelAuthTime, :MerchantId, :OpenId, :SubMerchantId, :RequestId
def initialize(authstatus=nil, authtime=nil, cancelauthtime=nil, merchantid=nil, openid=nil, submerchantid=nil, requestid=nil)
@AuthStatus = authstatus
@AuthTime = authtime
@CancelAuthTime = cancelauthtime
@MerchantId = merchantid
@OpenId = openid
@SubMerchantId = submerchantid
@RequestId = requestid
end
def deserialize(params)
@AuthStatus = params['AuthStatus']
@AuthTime = params['AuthTime']
@CancelAuthTime = params['CancelAuthTime']
@MerchantId = params['MerchantId']
@OpenId = params['OpenId']
@SubMerchantId = params['SubMerchantId']
@RequestId = params['RequestId']
end
end
# GetPayRollAuthResult请求参数结构体
class GetPayRollAuthResultRequest < TencentCloud::Common::AbstractModel
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
attr_accessor :AuthNumber, :SubMerchantId
def initialize(authnumber=nil, submerchantid=nil)
@AuthNumber = authnumber
@SubMerchantId = submerchantid
end
def deserialize(params)
@AuthNumber = params['AuthNumber']
@SubMerchantId = params['SubMerchantId']
end
end
# GetPayRollAuthResult返回参数结构体
class GetPayRollAuthResultResponse < TencentCloud::Common::AbstractModel
# @param Result: 核身结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayRollAuthResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = PayRollAuthResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 商户法人代表信息
class LegalPersonInfo < TencentCloud::Common::AbstractModel
# @param IdType: 证件类型
# IDCARD:身份证
# PASSPORT:护照 SOLDIERSCERTIFICATE:士兵证 OFFICERSCERTIFICATE:军官证 GATXCERTIFICATE:香港居民来往内地通行证 TWNDCERTIFICATE:台湾同胞来往内地通行证
# MACAOCERTIFICATE:澳门来往内地通行证
# @type IdType: String
# @param IdNumber: 证件号码
# @type IdNumber: String
# @param PersonName: 姓名
# @type PersonName: String
# @param IdValidityType: 证件有效期类型
# LONGTERM:长期有效
# OTHER:非长期有效
# @type IdValidityType: String
# @param IdEffectiveDate: 证件生效日期,yyyy-MM-dd
# @type IdEffectiveDate: String
# @param ContactPhone: 联系电话
# @type ContactPhone: String
# @param IdExpireDate: 证件失效日期,yyyy-MM-dd
# @type IdExpireDate: String
# @param ContactAddress: 联系地址
# @type ContactAddress: String
# @param EmailAddress: 邮箱地址
# @type EmailAddress: String
attr_accessor :IdType, :IdNumber, :PersonName, :IdValidityType, :IdEffectiveDate, :ContactPhone, :IdExpireDate, :ContactAddress, :EmailAddress
def initialize(idtype=nil, idnumber=nil, personname=nil, idvaliditytype=nil, ideffectivedate=nil, contactphone=nil, idexpiredate=nil, contactaddress=nil, emailaddress=nil)
@IdType = idtype
@IdNumber = idnumber
@PersonName = personname
@IdValidityType = idvaliditytype
@IdEffectiveDate = ideffectivedate
@ContactPhone = contactphone
@IdExpireDate = idexpiredate
@ContactAddress = contactaddress
@EmailAddress = emailaddress
end
def deserialize(params)
@IdType = params['IdType']
@IdNumber = params['IdNumber']
@PersonName = params['PersonName']
@IdValidityType = params['IdValidityType']
@IdEffectiveDate = params['IdEffectiveDate']
@ContactPhone = params['ContactPhone']
@IdExpireDate = params['IdExpireDate']
@ContactAddress = params['ContactAddress']
@EmailAddress = params['EmailAddress']
end
end
# 会员间交易明细信息
class MemberTransactionItem < TencentCloud::Common::AbstractModel
# @param TransType: 交易类型。
# __1__:转出
# __2__:转入
# @type TransType: String
# @param TranStatus: 交易状态。
# __0__:成功
# @type TranStatus: String
# @param TransAmount: 交易金额。
# @type TransAmount: String
# @param TransDate: 交易日期,格式:yyyyMMdd。
# @type TransDate: String
# @param TransTime: 交易时间,格式:HHmmss。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransTime: String
# @param BankSequenceNumber: 银行系统流水号。
# _平安渠道为见证系统流水号_
# @type BankSequenceNumber: String
# @param BankBookingType: 银行记账类型。
# _平安渠道为:_
# _1:会员支付_
# _2:会员冻结_
# _3:会员解冻_
# _4:登记挂账_
# _6:下单预支付_
# _7:确认并付款_
# _8:会员退款_
# _22:见证+收单平台调账_
# _23:见证+收单资金冻结_
# _24:见证+收单资金解冻_
# _25:会员间交易退款_
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankBookingType: String
# @param InSubAccountNumber: 转入方子账户账号。
# _平安渠道为转入见证子账户的账号_
# @type InSubAccountNumber: String
# @param OutSubAccountNumber: 转出方子账户账号。
# _平安渠道为转出见证子账户的账号_
# @type OutSubAccountNumber: String
# @param Remark: 备注。
# _平安渠道,如果是见证+收单的交易,返回交易订单号_
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :TransType, :TranStatus, :TransAmount, :TransDate, :TransTime, :BankSequenceNumber, :BankBookingType, :InSubAccountNumber, :OutSubAccountNumber, :Remark
def initialize(transtype=nil, transtatus=nil, transamount=nil, transdate=nil, transtime=nil, banksequencenumber=nil, bankbookingtype=nil, insubaccountnumber=nil, outsubaccountnumber=nil, remark=nil)
@TransType = transtype
@TranStatus = transtatus
@TransAmount = transamount
@TransDate = transdate
@TransTime = transtime
@BankSequenceNumber = banksequencenumber
@BankBookingType = bankbookingtype
@InSubAccountNumber = insubaccountnumber
@OutSubAccountNumber = outsubaccountnumber
@Remark = remark
end
def deserialize(params)
@TransType = params['TransType']
@TranStatus = params['TranStatus']
@TransAmount = params['TransAmount']
@TransDate = params['TransDate']
@TransTime = params['TransTime']
@BankSequenceNumber = params['BankSequenceNumber']
@BankBookingType = params['BankBookingType']
@InSubAccountNumber = params['InSubAccountNumber']
@OutSubAccountNumber = params['OutSubAccountNumber']
@Remark = params['Remark']
end
end
# 商户分类
class MerchantClassificationId < TencentCloud::Common::AbstractModel
# @param Code: 分类编号
# @type Code: String
# @param Name: 分类名称
# @type Name: String
# @param Parent: 父级编号(0为一级编号,大于0为父级分类编号)
# @type Parent: String
attr_accessor :Code, :Name, :Parent
def initialize(code=nil, name=nil, parent=nil)
@Code = code
@Name = name
@Parent = parent
end
def deserialize(params)
@Code = params['Code']
@Name = params['Name']
@Parent = params['Parent']
end
end
# 商户查询管理端列表
class MerchantManagementList < TencentCloud::Common::AbstractModel
# @param TaxpayerName: 企业名称。
# @type TaxpayerName: String
# @param TaxpayerNum: 纳税人识别号(税号) 。
# @type TaxpayerNum: String
# @param SerialNo: 请求流水号。
# @type SerialNo: String
# @param InvoicePlatformId: 开票系统ID
# @type InvoicePlatformId: Integer
attr_accessor :TaxpayerName, :TaxpayerNum, :SerialNo, :InvoicePlatformId
def initialize(taxpayername=nil, taxpayernum=nil, serialno=nil, invoiceplatformid=nil)
@TaxpayerName = taxpayername
@TaxpayerNum = taxpayernum
@SerialNo = serialno
@InvoicePlatformId = invoiceplatformid
end
def deserialize(params)
@TaxpayerName = params['TaxpayerName']
@TaxpayerNum = params['TaxpayerNum']
@SerialNo = params['SerialNo']
@InvoicePlatformId = params['InvoicePlatformId']
end
end
# 商户管理端结果
class MerchantManagementResult < TencentCloud::Common::AbstractModel
# @param Total: 总数。
# @type Total: Integer
# @param List: 商户列表。
# @type List: Array
attr_accessor :Total, :List
def initialize(total=nil, list=nil)
@Total = total
@List = list
end
def deserialize(params)
@Total = params['Total']
unless params['List'].nil?
@List = []
params['List'].each do |i|
merchantmanagementlist_tmp = MerchantManagementList.new
merchantmanagementlist_tmp.deserialize(i)
@List << merchantmanagementlist_tmp
end
end
end
end
# 商户支付方式数据
class MerchantPayWayData < TencentCloud::Common::AbstractModel
# @param PayCurrency: 支付币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayCurrency: String
# @param PayIcon: 支付图标
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayIcon: String
# @param PayInternalName: 支付名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInternalName: String
# @param PayName: 支付简称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayName: String
# @param PaySplitRefund: 是否支持退款
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaySplitRefund: String
# @param PayTag: 支付标签
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayTag: String
# @param PayTicketIcon: 支付凭证图标
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayTicketIcon: String
# @param PayType: 支付类型,逗号分隔
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayType: String
# @param TicketName: 凭证名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TicketName: String
attr_accessor :PayCurrency, :PayIcon, :PayInternalName, :PayName, :PaySplitRefund, :PayTag, :PayTicketIcon, :PayType, :TicketName
def initialize(paycurrency=nil, payicon=nil, payinternalname=nil, payname=nil, paysplitrefund=nil, paytag=nil, payticketicon=nil, paytype=nil, ticketname=nil)
@PayCurrency = paycurrency
@PayIcon = payicon
@PayInternalName = payinternalname
@PayName = payname
@PaySplitRefund = paysplitrefund
@PayTag = paytag
@PayTicketIcon = payticketicon
@PayType = paytype
@TicketName = ticketname
end
def deserialize(params)
@PayCurrency = params['PayCurrency']
@PayIcon = params['PayIcon']
@PayInternalName = params['PayInternalName']
@PayName = params['PayName']
@PaySplitRefund = params['PaySplitRefund']
@PayTag = params['PayTag']
@PayTicketIcon = params['PayTicketIcon']
@PayType = params['PayType']
@TicketName = params['TicketName']
end
end
# 商户风险信息
class MerchantRiskInfo < TencentCloud::Common::AbstractModel
# @param RiskLevel: 恶意注册等级,0-9级,9级最高
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RiskLevel: Integer
# @param RiskTypes: 恶意注册代码,代码以|分割,如"G001|T002"
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RiskTypes: String
attr_accessor :RiskLevel, :RiskTypes
def initialize(risklevel=nil, risktypes=nil)
@RiskLevel = risklevel
@RiskTypes = risktypes
end
def deserialize(params)
@RiskLevel = params['RiskLevel']
@RiskTypes = params['RiskTypes']
end
end
# MigrateOrderRefundQuery请求参数结构体
class MigrateOrderRefundQueryRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param PayChannel: 支付渠道,ALIPAY对应支付宝渠道;UNIONPAY对应银联渠道
# @type PayChannel: String
# @param RefundOrderId: 退款订单号,最长64位,仅支持数字、 字母
# @type RefundOrderId: String
# @param TradeSerialNo: 退款流水号
# @type TradeSerialNo: String
# @param Profile: 接入环境。沙箱环境填 sandbox。
# @type Profile: String
attr_accessor :MerchantId, :PayChannel, :RefundOrderId, :TradeSerialNo, :Profile
def initialize(merchantid=nil, paychannel=nil, refundorderid=nil, tradeserialno=nil, profile=nil)
@MerchantId = merchantid
@PayChannel = paychannel
@RefundOrderId = refundorderid
@TradeSerialNo = tradeserialno
@Profile = profile
end
def deserialize(params)
@MerchantId = params['MerchantId']
@PayChannel = params['PayChannel']
@RefundOrderId = params['RefundOrderId']
@TradeSerialNo = params['TradeSerialNo']
@Profile = params['Profile']
end
end
# MigrateOrderRefundQuery返回参数结构体
class MigrateOrderRefundQueryResponse < TencentCloud::Common::AbstractModel
# @param IsSuccess: 请求成功状态
# @type IsSuccess: Boolean
# @param TradeSerialNo: 交易流水号
# @type TradeSerialNo: String
# @param TradeMsg: 交易备注
# @type TradeMsg: String
# @param TradeStatus: 交易状态:0=交易待处理;1=交易处理中;2=交易处理成功;3=交易失败;4=状态未知
# @type TradeStatus: Integer
# @param ThirdChannelOrderId: 第三方支付机构支付交易号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdChannelOrderId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :IsSuccess, :TradeSerialNo, :TradeMsg, :TradeStatus, :ThirdChannelOrderId, :RequestId
def initialize(issuccess=nil, tradeserialno=nil, trademsg=nil, tradestatus=nil, thirdchannelorderid=nil, requestid=nil)
@IsSuccess = issuccess
@TradeSerialNo = tradeserialno
@TradeMsg = trademsg
@TradeStatus = tradestatus
@ThirdChannelOrderId = thirdchannelorderid
@RequestId = requestid
end
def deserialize(params)
@IsSuccess = params['IsSuccess']
@TradeSerialNo = params['TradeSerialNo']
@TradeMsg = params['TradeMsg']
@TradeStatus = params['TradeStatus']
@ThirdChannelOrderId = params['ThirdChannelOrderId']
@RequestId = params['RequestId']
end
end
# MigrateOrderRefund请求参数结构体
class MigrateOrderRefundRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户代码
# @type MerchantId: String
# @param PayChannel: 支付渠道,ALIPAY对应支付宝渠道;UNIONPAY对应银联渠道
# @type PayChannel: String
# @param PayOrderId: 正向支付商户订单号
# @type PayOrderId: String
# @param RefundOrderId: 退款订单号,最长64位,仅支持数字、 字母
# @type RefundOrderId: String
# @param RefundAmt: 退款金额,单位:分。备注:改字段必须大于0 和小于10000000000的整数。
# @type RefundAmt: Integer
# @param ThirdChannelOrderId: 第三方支付机构支付交易号
# @type ThirdChannelOrderId: String
# @param PayAmt: 原始支付金额,单位:分。备注:当该字段为空或者为0 时,系统会默认使用订单当 实付金额作为退款金额
# @type PayAmt: Integer
# @param Profile: 接入环境。沙箱环境填 sandbox。
# @type Profile: String
# @param RefundReason: 退款原因
# @type RefundReason: String
attr_accessor :MerchantId, :PayChannel, :PayOrderId, :RefundOrderId, :RefundAmt, :ThirdChannelOrderId, :PayAmt, :Profile, :RefundReason
def initialize(merchantid=nil, paychannel=nil, payorderid=nil, refundorderid=nil, refundamt=nil, thirdchannelorderid=nil, payamt=nil, profile=nil, refundreason=nil)
@MerchantId = merchantid
@PayChannel = paychannel
@PayOrderId = payorderid
@RefundOrderId = refundorderid
@RefundAmt = refundamt
@ThirdChannelOrderId = thirdchannelorderid
@PayAmt = payamt
@Profile = profile
@RefundReason = refundreason
end
def deserialize(params)
@MerchantId = params['MerchantId']
@PayChannel = params['PayChannel']
@PayOrderId = params['PayOrderId']
@RefundOrderId = params['RefundOrderId']
@RefundAmt = params['RefundAmt']
@ThirdChannelOrderId = params['ThirdChannelOrderId']
@PayAmt = params['PayAmt']
@Profile = params['Profile']
@RefundReason = params['RefundReason']
end
end
# MigrateOrderRefund返回参数结构体
class MigrateOrderRefundResponse < TencentCloud::Common::AbstractModel
# @param IsSuccess: 请求成功状态
# @type IsSuccess: Boolean
# @param TradeSerialNo: 退款流水号
# @type TradeSerialNo: String
# @param TradeMsg: 交易备注
# @type TradeMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :IsSuccess, :TradeSerialNo, :TradeMsg, :RequestId
def initialize(issuccess=nil, tradeserialno=nil, trademsg=nil, requestid=nil)
@IsSuccess = issuccess
@TradeSerialNo = tradeserialno
@TradeMsg = trademsg
@RequestId = requestid
end
def deserialize(params)
@IsSuccess = params['IsSuccess']
@TradeSerialNo = params['TradeSerialNo']
@TradeMsg = params['TradeMsg']
@RequestId = params['RequestId']
end
end
# ModifyAgentTaxPaymentInfo请求参数结构体
class ModifyAgentTaxPaymentInfoRequest < TencentCloud::Common::AbstractModel
# @param BatchNum: 批次号
# @type BatchNum: Integer
# @param RawElectronicCertUrl: 新源电子凭证地址
# @type RawElectronicCertUrl: String
# @param FileName: 新的文件名
# @type FileName: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :BatchNum, :RawElectronicCertUrl, :FileName, :Profile
def initialize(batchnum=nil, rawelectroniccerturl=nil, filename=nil, profile=nil)
@BatchNum = batchnum
@RawElectronicCertUrl = rawelectroniccerturl
@FileName = filename
@Profile = profile
end
def deserialize(params)
@BatchNum = params['BatchNum']
@RawElectronicCertUrl = params['RawElectronicCertUrl']
@FileName = params['FileName']
@Profile = params['Profile']
end
end
# ModifyAgentTaxPaymentInfo返回参数结构体
class ModifyAgentTaxPaymentInfoResponse < TencentCloud::Common::AbstractModel
# @param AgentTaxPaymentBatch: 代理商完税证明批次信息
# @type AgentTaxPaymentBatch: :class:`Tencentcloud::Cpdp.v20190820.models.AgentTaxPaymentBatch`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AgentTaxPaymentBatch, :RequestId
def initialize(agenttaxpaymentbatch=nil, requestid=nil)
@AgentTaxPaymentBatch = agenttaxpaymentbatch
@RequestId = requestid
end
def deserialize(params)
unless params['AgentTaxPaymentBatch'].nil?
@AgentTaxPaymentBatch = AgentTaxPaymentBatch.new
@AgentTaxPaymentBatch.deserialize(params['AgentTaxPaymentBatch'])
end
@RequestId = params['RequestId']
end
end
# ModifyBindedAccount请求参数结构体
class ModifyBindedAccountRequest < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播Id
# @type AnchorId: String
# @param TransferType: 1 微信企业付款
# 2 支付宝转账
# 3 平安银企直连代发转账
# @type TransferType: Integer
# @param AccountNo: 收款方标识。
# 微信为open_id;
# 支付宝为会员alipay_user_id;
# 平安为收款方银行账号;
# @type AccountNo: String
# @param PhoneNum: 手机号
# @type PhoneNum: String
attr_accessor :AnchorId, :TransferType, :AccountNo, :PhoneNum
def initialize(anchorid=nil, transfertype=nil, accountno=nil, phonenum=nil)
@AnchorId = anchorid
@TransferType = transfertype
@AccountNo = accountno
@PhoneNum = phonenum
end
def deserialize(params)
@AnchorId = params['AnchorId']
@TransferType = params['TransferType']
@AccountNo = params['AccountNo']
@PhoneNum = params['PhoneNum']
end
end
# ModifyBindedAccount返回参数结构体
class ModifyBindedAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 该字段为null。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# ModifyFlexFundingAccount请求参数结构体
class ModifyFlexFundingAccountRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param FundingAccountBindSerialNo: 收款用户资金账户ID
# @type FundingAccountBindSerialNo: String
# @param FundingAccountType: 资金账户类型
# PINGAN_BANK:平安银行
# @type FundingAccountType: String
# @param PhoneNo: 收款资金账户手机号
# @type PhoneNo: String
# @param FundingAccountName: 收款资金账户姓名
# @type FundingAccountName: String
# @param FundingAccountNo: 收款资金账户号
# @type FundingAccountNo: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param BankBranchName: 开户支行名
# @type BankBranchName: String
attr_accessor :PayeeId, :FundingAccountBindSerialNo, :FundingAccountType, :PhoneNo, :FundingAccountName, :FundingAccountNo, :Environment, :BankBranchName
def initialize(payeeid=nil, fundingaccountbindserialno=nil, fundingaccounttype=nil, phoneno=nil, fundingaccountname=nil, fundingaccountno=nil, environment=nil, bankbranchname=nil)
@PayeeId = payeeid
@FundingAccountBindSerialNo = fundingaccountbindserialno
@FundingAccountType = fundingaccounttype
@PhoneNo = phoneno
@FundingAccountName = fundingaccountname
@FundingAccountNo = fundingaccountno
@Environment = environment
@BankBranchName = bankbranchname
end
def deserialize(params)
@PayeeId = params['PayeeId']
@FundingAccountBindSerialNo = params['FundingAccountBindSerialNo']
@FundingAccountType = params['FundingAccountType']
@PhoneNo = params['PhoneNo']
@FundingAccountName = params['FundingAccountName']
@FundingAccountNo = params['FundingAccountNo']
@Environment = params['Environment']
@BankBranchName = params['BankBranchName']
end
end
# ModifyFlexFundingAccount返回参数结构体
class ModifyFlexFundingAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 无
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# ModifyFlexPayeeAccountRightStatus请求参数结构体
class ModifyFlexPayeeAccountRightStatusRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param AccountRightType: 账户权益类型
# SETTLEMENT:结算权益
# PAYMENT:付款权益
# @type AccountRightType: String
# @param AccountRightStatus: 账户权益状态
# ENABLE:启用
# DISABLE:停用
# @type AccountRightStatus: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :AccountRightType, :AccountRightStatus, :Environment
def initialize(payeeid=nil, accountrighttype=nil, accountrightstatus=nil, environment=nil)
@PayeeId = payeeid
@AccountRightType = accountrighttype
@AccountRightStatus = accountrightstatus
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@AccountRightType = params['AccountRightType']
@AccountRightStatus = params['AccountRightStatus']
@Environment = params['Environment']
end
end
# ModifyFlexPayeeAccountRightStatus返回参数结构体
class ModifyFlexPayeeAccountRightStatusResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果。默认为空。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# ModifyMerchant请求参数结构体
class ModifyMerchantRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户的AppId
# @type MerchantAppId: String
# @param MerchantName: 收款商户名称
# @type MerchantName: String
# @param BusinessPayFlag: B2B 支付标志。是否开通 B2B支付, 1:开通 0:不开通。
# @type BusinessPayFlag: String
attr_accessor :MerchantAppId, :MerchantName, :BusinessPayFlag
def initialize(merchantappid=nil, merchantname=nil, businesspayflag=nil)
@MerchantAppId = merchantappid
@MerchantName = merchantname
@BusinessPayFlag = businesspayflag
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@MerchantName = params['MerchantName']
@BusinessPayFlag = params['BusinessPayFlag']
end
end
# ModifyMerchant返回参数结构体
class ModifyMerchantResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# ModifyMntMbrBindRelateAcctBankCode请求参数结构体
class ModifyMntMbrBindRelateAcctBankCodeRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param SubAcctNo: STRING(50),见证子账户的账号
# @type SubAcctNo: String
# @param MemberBindAcctNo: STRING(50),会员绑定账号
# @type MemberBindAcctNo: String
# @param AcctOpenBranchName: STRING(150),开户行名称(若大小额行号不填则送超级网银号对应的银行名称,若填大小额行号则送大小额行号对应的银行名称)
# @type AcctOpenBranchName: String
# @param CnapsBranchId: STRING(20),大小额行号(CnapsBranchId和EiconBankBranchId两者二选一必填)
# @type CnapsBranchId: String
# @param EiconBankBranchId: STRING(20),超级网银行号
# @type EiconBankBranchId: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :SubAcctNo, :MemberBindAcctNo, :AcctOpenBranchName, :CnapsBranchId, :EiconBankBranchId, :ReservedMsg, :Profile
def initialize(mrchcode=nil, subacctno=nil, memberbindacctno=nil, acctopenbranchname=nil, cnapsbranchid=nil, eiconbankbranchid=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@SubAcctNo = subacctno
@MemberBindAcctNo = memberbindacctno
@AcctOpenBranchName = acctopenbranchname
@CnapsBranchId = cnapsbranchid
@EiconBankBranchId = eiconbankbranchid
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@SubAcctNo = params['SubAcctNo']
@MemberBindAcctNo = params['MemberBindAcctNo']
@AcctOpenBranchName = params['AcctOpenBranchName']
@CnapsBranchId = params['CnapsBranchId']
@EiconBankBranchId = params['EiconBankBranchId']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# ModifyMntMbrBindRelateAcctBankCode返回参数结构体
class ModifyMntMbrBindRelateAcctBankCodeResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 分账明细
class MultiApplyDetail < TencentCloud::Common::AbstractModel
# @param MerchantNo: 商户编号
# @type MerchantNo: String
# @param Amount: 分账金额
# @type Amount: String
# @param Remark: 备注
# @type Remark: String
attr_accessor :MerchantNo, :Amount, :Remark
def initialize(merchantno=nil, amount=nil, remark=nil)
@MerchantNo = merchantno
@Amount = amount
@Remark = remark
end
def deserialize(params)
@MerchantNo = params['MerchantNo']
@Amount = params['Amount']
@Remark = params['Remark']
end
end
# 分账订单信息
class MultiApplyOrder < TencentCloud::Common::AbstractModel
# @param OutDistributeNo: 商户分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutDistributeNo: String
# @param DistributeNo: 平台分账单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DistributeNo: String
# @param OrderNo: 平台交易订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
# @param Status: 分账订单状态(0初始1成功2失败3撤销)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param InDate: 入账日期,格式yyyy-MM-dd
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InDate: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param Details: 分账明细
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Details: Array
attr_accessor :OutDistributeNo, :DistributeNo, :OrderNo, :Status, :InDate, :Remark, :Details
def initialize(outdistributeno=nil, distributeno=nil, orderno=nil, status=nil, indate=nil, remark=nil, details=nil)
@OutDistributeNo = outdistributeno
@DistributeNo = distributeno
@OrderNo = orderno
@Status = status
@InDate = indate
@Remark = remark
@Details = details
end
def deserialize(params)
@OutDistributeNo = params['OutDistributeNo']
@DistributeNo = params['DistributeNo']
@OrderNo = params['OrderNo']
@Status = params['Status']
@InDate = params['InDate']
@Remark = params['Remark']
unless params['Details'].nil?
@Details = []
params['Details'].each do |i|
multiapplydetail_tmp = MultiApplyDetail.new
multiapplydetail_tmp.deserialize(i)
@Details << multiapplydetail_tmp
end
end
end
end
# 自然人信息
class NaturalPersonInfo < TencentCloud::Common::AbstractModel
# @param PersonType: 自然人类型
# 2:商户负责人
# 3:授权经办人
# 4:业务联系人
# 5:实际控制人
# 6:控股股东
# 7:受益人
# 8:结算人
# 注意:HELIPAY渠道必传业务联系人
# @type PersonType: String
# @param IdType: 证件类型
# IDCARD:身份证
# PASSPORT:护照 SOLDIERSCERTIFICATE:士兵证 OFFICERSCERTIFICATE:军官证 GATXCERTIFICATE:香港居民来往内地通行证 TWNDCERTIFICATE:台湾同胞来往内地通行证 MACAOCERTIFICATE:澳门来往内地通行证
# @type IdType: String
# @param IdNumber: 证件号码
# @type IdNumber: String
# @param PersonName: 姓名
# @type PersonName: String
# @param IdValidityType: 证件有效期类型
# LONGTERM:长期有效
# OTHER:非长期有效
# @type IdValidityType: String
# @param IdEffectiveDate: 证件生效日期,yyyy-MM-dd
# @type IdEffectiveDate: String
# @param IdExpireDate: 证件失效日期,yyyy-MM-dd
# @type IdExpireDate: String
# @param ContactPhone: 联系电话,HELIPAY渠道业务联系人必传
# @type ContactPhone: String
# @param ContactAddress: 联系地址
# @type ContactAddress: String
# @param EmailAddress: 邮箱地址
# @type EmailAddress: String
attr_accessor :PersonType, :IdType, :IdNumber, :PersonName, :IdValidityType, :IdEffectiveDate, :IdExpireDate, :ContactPhone, :ContactAddress, :EmailAddress
def initialize(persontype=nil, idtype=nil, idnumber=nil, personname=nil, idvaliditytype=nil, ideffectivedate=nil, idexpiredate=nil, contactphone=nil, contactaddress=nil, emailaddress=nil)
@PersonType = persontype
@IdType = idtype
@IdNumber = idnumber
@PersonName = personname
@IdValidityType = idvaliditytype
@IdEffectiveDate = ideffectivedate
@IdExpireDate = idexpiredate
@ContactPhone = contactphone
@ContactAddress = contactaddress
@EmailAddress = emailaddress
end
def deserialize(params)
@PersonType = params['PersonType']
@IdType = params['IdType']
@IdNumber = params['IdNumber']
@PersonName = params['PersonName']
@IdValidityType = params['IdValidityType']
@IdEffectiveDate = params['IdEffectiveDate']
@IdExpireDate = params['IdExpireDate']
@ContactPhone = params['ContactPhone']
@ContactAddress = params['ContactAddress']
@EmailAddress = params['EmailAddress']
end
end
# 附加项信息
class OldAttachmentInfo < TencentCloud::Common::AbstractModel
# @param AttachmentAmount: 附加项金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentAmount: Integer
# @param AttachmentType: 附加项类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentType: String
# @param AttachmentName: 附加项名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentName: String
# @param AttachmentCode: 附加项编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentCode: String
attr_accessor :AttachmentAmount, :AttachmentType, :AttachmentName, :AttachmentCode
def initialize(attachmentamount=nil, attachmenttype=nil, attachmentname=nil, attachmentcode=nil)
@AttachmentAmount = attachmentamount
@AttachmentType = attachmenttype
@AttachmentName = attachmentname
@AttachmentCode = attachmentcode
end
def deserialize(params)
@AttachmentAmount = params['AttachmentAmount']
@AttachmentType = params['AttachmentType']
@AttachmentName = params['AttachmentName']
@AttachmentCode = params['AttachmentCode']
end
end
# 渠道方用户信息
class OldChannelExternalUserInfo < TencentCloud::Common::AbstractModel
# @param ChannelExternalUserType: 渠道方用户类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalUserType: String
# @param ChannelExternalUserId: 渠道方用户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalUserId: String
attr_accessor :ChannelExternalUserType, :ChannelExternalUserId
def initialize(channelexternalusertype=nil, channelexternaluserid=nil)
@ChannelExternalUserType = channelexternalusertype
@ChannelExternalUserId = channelexternaluserid
end
def deserialize(params)
@ChannelExternalUserType = params['ChannelExternalUserType']
@ChannelExternalUserId = params['ChannelExternalUserId']
end
end
# 子单退款信息
class OldSubRefund < TencentCloud::Common::AbstractModel
# @param ChannelExternalRefundId: 支付机构退款流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalRefundId: String
# @param ChannelExternalOrderId: 支付机构支付订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalOrderId: String
# @param ChannelRefundId: 渠道退款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelRefundId: String
# @param SubOutTradeNo: 子订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubOutTradeNo: String
# @param RefundAmt: 子单退款金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundAmt: String
attr_accessor :ChannelExternalRefundId, :ChannelExternalOrderId, :ChannelRefundId, :SubOutTradeNo, :RefundAmt
def initialize(channelexternalrefundid=nil, channelexternalorderid=nil, channelrefundid=nil, subouttradeno=nil, refundamt=nil)
@ChannelExternalRefundId = channelexternalrefundid
@ChannelExternalOrderId = channelexternalorderid
@ChannelRefundId = channelrefundid
@SubOutTradeNo = subouttradeno
@RefundAmt = refundamt
end
def deserialize(params)
@ChannelExternalRefundId = params['ChannelExternalRefundId']
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@ChannelRefundId = params['ChannelRefundId']
@SubOutTradeNo = params['SubOutTradeNo']
@RefundAmt = params['RefundAmt']
end
end
# 银行复核指引。银行侧返回网银授权指引链接,一般PC网银,手机网银链接
class OpenBankApprovalGuideInfo < TencentCloud::Common::AbstractModel
# @param PcGuideUrl: PC网银指引
# @type PcGuideUrl: String
# @param MobileGuideUrl: 手机网银指引
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MobileGuideUrl: String
attr_accessor :PcGuideUrl, :MobileGuideUrl
def initialize(pcguideurl=nil, mobileguideurl=nil)
@PcGuideUrl = pcguideurl
@MobileGuideUrl = mobileguideurl
end
def deserialize(params)
@PcGuideUrl = params['PcGuideUrl']
@MobileGuideUrl = params['MobileGuideUrl']
end
end
# 云企付-账单信息
class OpenBankBillingInfo < TencentCloud::Common::AbstractModel
# @param FirstName: 账单人名字
# @type FirstName: String
# @param LastName: 账单人姓氏
# @type LastName: String
# @param AddressOne: 账单地址1
# @type AddressOne: String
# @param AddressTwo: 账单地址1
# @type AddressTwo: String
# @param City: 账单地址所在城市
# @type City: String
# @param State: 账单地址所在州/省,当国家是美国或加拿大时,使用ISO-3166-2:US或ISO -3166-2:CA 中该国家地区编 码标准中的两位字母编码。
# @type State: String
# @param Country: 账单地址所在国家,使用ISO-3166-1标准中的两位字母编码。
# @type Country: String
# @param ZipCode: 账单地址邮编
# @type ZipCode: String
# @param Phone: 账单人手机号
# @type Phone: String
attr_accessor :FirstName, :LastName, :AddressOne, :AddressTwo, :City, :State, :Country, :ZipCode, :Phone
def initialize(firstname=nil, lastname=nil, addressone=nil, addresstwo=nil, city=nil, state=nil, country=nil, zipcode=nil, phone=nil)
@FirstName = firstname
@LastName = lastname
@AddressOne = addressone
@AddressTwo = addresstwo
@City = city
@State = state
@Country = country
@ZipCode = zipcode
@Phone = phone
end
def deserialize(params)
@FirstName = params['FirstName']
@LastName = params['LastName']
@AddressOne = params['AddressOne']
@AddressTwo = params['AddressTwo']
@City = params['City']
@State = params['State']
@Country = params['Country']
@ZipCode = params['ZipCode']
@Phone = params['Phone']
end
end
# 网银页面提交html
class OpenBankFormInfo < TencentCloud::Common::AbstractModel
# @param FormHtml: 网银页面提交html
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FormHtml: String
# @param FormEncoding: 网银提交页面字符集
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FormEncoding: String
attr_accessor :FormHtml, :FormEncoding
def initialize(formhtml=nil, formencoding=nil)
@FormHtml = formhtml
@FormEncoding = formencoding
end
def deserialize(params)
@FormHtml = params['FormHtml']
@FormEncoding = params['FormEncoding']
end
end
# 云企付-商品信息
class OpenBankGoodsInfo < TencentCloud::Common::AbstractModel
# @param GoodsName: 商品标题。默认值“商品支付”。
# @type GoodsName: String
# @param GoodsDetail: 商品详细描述(商品列表)。
# @type GoodsDetail: String
# @param GoodsDescription: 银行附言。不可以有以下字符:<>+{}()%*&';"[]等特殊符号
# @type GoodsDescription: String
# @param GoodsBizType: 业务类型。汇付渠道必填,汇付渠道传入固定值100099。
# @type GoodsBizType: String
# @param Sku: 商品编号。
# @type Sku: String
# @param Price: 商品单价。
# @type Price: String
# @param Quantity: 商品数量
# @type Quantity: String
# @param ProductImage: 商品图片url
# @type ProductImage: String
# @param ProductUrl: 商品链接url
# @type ProductUrl: String
attr_accessor :GoodsName, :GoodsDetail, :GoodsDescription, :GoodsBizType, :Sku, :Price, :Quantity, :ProductImage, :ProductUrl
def initialize(goodsname=nil, goodsdetail=nil, goodsdescription=nil, goodsbiztype=nil, sku=nil, price=nil, quantity=nil, productimage=nil, producturl=nil)
@GoodsName = goodsname
@GoodsDetail = goodsdetail
@GoodsDescription = goodsdescription
@GoodsBizType = goodsbiztype
@Sku = sku
@Price = price
@Quantity = quantity
@ProductImage = productimage
@ProductUrl = producturl
end
def deserialize(params)
@GoodsName = params['GoodsName']
@GoodsDetail = params['GoodsDetail']
@GoodsDescription = params['GoodsDescription']
@GoodsBizType = params['GoodsBizType']
@Sku = params['Sku']
@Price = params['Price']
@Quantity = params['Quantity']
@ProductImage = params['ProductImage']
@ProductUrl = params['ProductUrl']
end
end
# 云企付-下单跳转参数,用于小程序前端跳转
class OpenBankOrderRedirectInfo < TencentCloud::Common::AbstractModel
# @param QRCodeUrl: 生成二维码,引导用户扫码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type QRCodeUrl: String
# @param QRCodeKey: 二维码凭证
# 注意:此字段可能返回 null,表示取不到有效值。
# @type QRCodeKey: String
# @param Url: 跳转 URL,用于客户端跳转,订单未支付时返回该参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param ExpireTime: 跳转凭证过期时间,yyyy-MM-dd HH:mm:ss
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExpireTime: String
# @param MpAppId: 小程序 appid
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MpAppId: String
# @param MpPath: 小程序路径
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MpPath: String
# @param MpUserName: 小程序原始 id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MpUserName: String
# @param FormInfo: 网银支付提交页面信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FormInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankFormInfo`
attr_accessor :QRCodeUrl, :QRCodeKey, :Url, :ExpireTime, :MpAppId, :MpPath, :MpUserName, :FormInfo
def initialize(qrcodeurl=nil, qrcodekey=nil, url=nil, expiretime=nil, mpappid=nil, mppath=nil, mpusername=nil, forminfo=nil)
@QRCodeUrl = qrcodeurl
@QRCodeKey = qrcodekey
@Url = url
@ExpireTime = expiretime
@MpAppId = mpappid
@MpPath = mppath
@MpUserName = mpusername
@FormInfo = forminfo
end
def deserialize(params)
@QRCodeUrl = params['QRCodeUrl']
@QRCodeKey = params['QRCodeKey']
@Url = params['Url']
@ExpireTime = params['ExpireTime']
@MpAppId = params['MpAppId']
@MpPath = params['MpPath']
@MpUserName = params['MpUserName']
unless params['FormInfo'].nil?
@FormInfo = OpenBankFormInfo.new
@FormInfo.deserialize(params['FormInfo'])
end
end
end
# 云企付-支付限制
class OpenBankPayLimitInfo < TencentCloud::Common::AbstractModel
# @param PayLimitType: 限制类型
# @type PayLimitType: String
# @param PayLimitValue: 限制类型值
# @type PayLimitValue: String
attr_accessor :PayLimitType, :PayLimitValue
def initialize(paylimittype=nil, paylimitvalue=nil)
@PayLimitType = paylimittype
@PayLimitValue = paylimitvalue
end
def deserialize(params)
@PayLimitType = params['PayLimitType']
@PayLimitValue = params['PayLimitValue']
end
end
# 云企付-收款人信息
class OpenBankPayeeInfo < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款方唯一标识。
# 当渠道为TENPAY,付款方式为EBANK_PAYMENT,必填,上送收款方入驻云企付商户ID;
# 付款方式为OPENBANK_PAYMENT时,非必填,输入外部收款方的标识ID
# 渠道为WECHAT,付款方式为TRANS_TO_CHANGE时,上送微信OPEN_ID;
# @type PayeeId: String
# @param BankBranchName: 支行名称。
# @type BankBranchName: String
# @param BankAccountNumber: 银行账号。渠道为TENPAY,付款方式为OPENBANK_PAYMENT时必选
# @type BankAccountNumber: String
# @param PayeeName: 收款方名称。
# 当渠道为TENPAY,付款方式为EBANK_PAYMENT时,上送收款方入驻云企付的商户名称;
# 渠道为TENPAY,付款方式为OPENBANK_PAYMENT时必选,上送收款方账户名称;
# 渠道为ALIPAY,付款方式为SAFT_ISV时,收款账户标识类型为ALIPAY_LOGON_ID时必传,上送收款方真实姓名。
# 渠道为WECHAT,付款方式为TRANS_TO_CHANGE时,上送收款人姓名。
# @type PayeeName: String
# @param BankBranchId: 联行号。渠道为TENPAY,付款方式为OPENBANK_PAYMENT时必选
# @type BankBranchId: String
# @param BindSerialNo: 收款方绑卡序列号。
# 当渠道为TENPAY,付款方式为EBANK_PAYMENT时,必填,上送收款方入驻云企付平台时,下发的绑卡序列号;当渠道为ALIPAY,付款方式为SAFT_ISV时,必填,根据收款账户标识类型上送。
# @type BindSerialNo: String
# @param AccountType: 收款账户标识类型
# BANK_ACCOUNT:绑定银行账户
# ACCOUNT_BOOK_ID:电子记账本ID
# ALIPAY_USER_ID:支付宝的会员ID
# ALIPAY_LOGON_ID:支付宝登录号。
# 付款方式为SAFT_ISV时,必填。
# @type AccountType: String
attr_accessor :PayeeId, :BankBranchName, :BankAccountNumber, :PayeeName, :BankBranchId, :BindSerialNo, :AccountType
def initialize(payeeid=nil, bankbranchname=nil, bankaccountnumber=nil, payeename=nil, bankbranchid=nil, bindserialno=nil, accounttype=nil)
@PayeeId = payeeid
@BankBranchName = bankbranchname
@BankAccountNumber = bankaccountnumber
@PayeeName = payeename
@BankBranchId = bankbranchid
@BindSerialNo = bindserialno
@AccountType = accounttype
end
def deserialize(params)
@PayeeId = params['PayeeId']
@BankBranchName = params['BankBranchName']
@BankAccountNumber = params['BankAccountNumber']
@PayeeName = params['PayeeName']
@BankBranchId = params['BankBranchId']
@BindSerialNo = params['BindSerialNo']
@AccountType = params['AccountType']
end
end
# 云企付-付款人信息
class OpenBankPayerInfo < TencentCloud::Common::AbstractModel
# @param PayerId: 付款方唯一标识。当TENPAY时,必填上送
# 付款方入驻云企付商户ID。
# @type PayerId: String
# @param PayerName: 付款方名称。当TENPAY上送付款方入驻云企付的商户名称。
# @type PayerName: String
# @param BindSerialNo: 付款方付款账户标识。
# 当付款方式为OPENBANK_PAYMENT时,必输表示企业账户ID;当付款方式为SAFT_ISV时,必须上送付款方的渠道电子记账本ID;当付款方式为ONLINEBANK,上送付款方银行编号BankId。
# @type BindSerialNo: String
# @param AccountType: 付款账户标识类型
# BANK_ACCOUNT:绑定银行账户
# ACCOUNT_BOOK_ID:电子记账本ID。
# 当付款方式为SAFT_ISV时,必须上送类型为ACCOUNT_BOOK_ID。
# @type AccountType: String
# @param BankCardType: 付款卡类型。汇付渠道必填。
# DEBIT_CARD:借记卡
# CREDIT_CARD:信用卡
# @type BankCardType: String
attr_accessor :PayerId, :PayerName, :BindSerialNo, :AccountType, :BankCardType
def initialize(payerid=nil, payername=nil, bindserialno=nil, accounttype=nil, bankcardtype=nil)
@PayerId = payerid
@PayerName = payername
@BindSerialNo = bindserialno
@AccountType = accounttype
@BankCardType = bankcardtype
end
def deserialize(params)
@PayerId = params['PayerId']
@PayerName = params['PayerName']
@BindSerialNo = params['BindSerialNo']
@AccountType = params['AccountType']
@BankCardType = params['BankCardType']
end
end
# 云企付-分润信息
class OpenBankProfitShareInfo < TencentCloud::Common::AbstractModel
# @param RecvId: 分润接收方,渠道商户号ID
# @type RecvId: String
# @param ProfitShareFee: 分润金额,单位分
# @type ProfitShareFee: Integer
attr_accessor :RecvId, :ProfitShareFee
def initialize(recvid=nil, profitsharefee=nil)
@RecvId = recvid
@ProfitShareFee = profitsharefee
end
def deserialize(params)
@RecvId = params['RecvId']
@ProfitShareFee = params['ProfitShareFee']
end
end
# 分账收款人信息
class OpenBankProfitSharePayeeInfo < TencentCloud::Common::AbstractModel
# @param AccountName: 收款人账户名称
# @type AccountName: String
# @param BankName: 银行名称
# 可大体识别银行就行
# @type BankName: String
# @param Currency: 账户货币
# @type Currency: String
# @param Nature: 账户类型。
# 00:借记卡
# 01:存折
# 02:信用卡
# 03:准贷记卡
# 04:预付卡费
# 05:境外卡
# @type Nature: String
# @param Country: 账户地区/受益人所在国家。参考附录“国家代码”表——“代码”字段
# @type Country: String
# @param DepositCountry: 账户开户所在国家
# 参考附录“国家代码”表——“代码”字段
# @type DepositCountry: String
# @param ExpireDate: 合作有效期
# yyyy-MM-dd
# @type ExpireDate: String
# @param Flag: 0:个人(对私) 1:公司(对公)
# @type Flag: String
# @param BankAddress: 开户行地址
# 账户地区非中国必填,【账户名+开户行地址不可超过114个字符(只允许【英文字母数字空格.,/-()'】),否则可能导致境外银行付款失败】
# @type BankAddress: String
# @param Address: 客户地址
# 非中国内地账户的客户地址不能为空
# @type Address: String
# @param IsOSA: 账户属性
# 账户开户所在国家为中国则必填。
# 1-离岸账户 0-在岸账户
# @type IsOSA: String
# @param Province: 账户省份
# 参考附录“地区代码”
# @type Province: String
# @param City: 账户城市
# 参考附录“地区代码
# @type City: String
# @param LegalIdNo: 证件号/统一信用证代码
# 如果country与depositcountry字段都是CHN时,必填
# 对公账户填统一信用证代码,对私账户填身份证号码
# 离岸账户非必填
# @type LegalIdNo: String
# @param Telephone: 手机号。
# 账户地区是日本则必填
# @type Telephone: String
# @param BicCode: 参考接口说明。
# @type BicCode: String
# @param SwiftCode: 参考接口说明。
# @type SwiftCode: String
# @param Cnaps: 大额支付行号/支付行号
# 参考接口说明。境外(大额支付行号)参考附录【大额行号】,境内(支付行号)参考附录【支付行号】
# @type Cnaps: String
# @param TransferBankNo: 中转行号,参考接口说明。
# @type TransferBankNo: String
# @param Fid: 关联附件。上传的文件ID
# @type Fid: String
attr_accessor :AccountName, :BankName, :Currency, :Nature, :Country, :DepositCountry, :ExpireDate, :Flag, :BankAddress, :Address, :IsOSA, :Province, :City, :LegalIdNo, :Telephone, :BicCode, :SwiftCode, :Cnaps, :TransferBankNo, :Fid
def initialize(accountname=nil, bankname=nil, currency=nil, nature=nil, country=nil, depositcountry=nil, expiredate=nil, flag=nil, bankaddress=nil, address=nil, isosa=nil, province=nil, city=nil, legalidno=nil, telephone=nil, biccode=nil, swiftcode=nil, cnaps=nil, transferbankno=nil, fid=nil)
@AccountName = accountname
@BankName = bankname
@Currency = currency
@Nature = nature
@Country = country
@DepositCountry = depositcountry
@ExpireDate = expiredate
@Flag = flag
@BankAddress = bankaddress
@Address = address
@IsOSA = isosa
@Province = province
@City = city
@LegalIdNo = legalidno
@Telephone = telephone
@BicCode = biccode
@SwiftCode = swiftcode
@Cnaps = cnaps
@TransferBankNo = transferbankno
@Fid = fid
end
def deserialize(params)
@AccountName = params['AccountName']
@BankName = params['BankName']
@Currency = params['Currency']
@Nature = params['Nature']
@Country = params['Country']
@DepositCountry = params['DepositCountry']
@ExpireDate = params['ExpireDate']
@Flag = params['Flag']
@BankAddress = params['BankAddress']
@Address = params['Address']
@IsOSA = params['IsOSA']
@Province = params['Province']
@City = params['City']
@LegalIdNo = params['LegalIdNo']
@Telephone = params['Telephone']
@BicCode = params['BicCode']
@SwiftCode = params['SwiftCode']
@Cnaps = params['Cnaps']
@TransferBankNo = params['TransferBankNo']
@Fid = params['Fid']
end
end
# 分账信息结果
class OpenBankProfitShareRespInfo < TencentCloud::Common::AbstractModel
# @param RecvId: 接收方企业ID
# @type RecvId: String
# @param ProfitShareFee: 分润金额(分)
# @type ProfitShareFee: Integer
# @param RealProfitShareFee: 实际分账金额
# @type RealProfitShareFee: Integer
# @param ProfitShareStatus: 分账状态
# @type ProfitShareStatus: String
# @param ProfitFinishTime: 分账完成时间
# @type ProfitFinishTime: String
# @param ProfitShareType: 分账类型
# @type ProfitShareType: Integer
attr_accessor :RecvId, :ProfitShareFee, :RealProfitShareFee, :ProfitShareStatus, :ProfitFinishTime, :ProfitShareType
def initialize(recvid=nil, profitsharefee=nil, realprofitsharefee=nil, profitsharestatus=nil, profitfinishtime=nil, profitsharetype=nil)
@RecvId = recvid
@ProfitShareFee = profitsharefee
@RealProfitShareFee = realprofitsharefee
@ProfitShareStatus = profitsharestatus
@ProfitFinishTime = profitfinishtime
@ProfitShareType = profitsharetype
end
def deserialize(params)
@RecvId = params['RecvId']
@ProfitShareFee = params['ProfitShareFee']
@RealProfitShareFee = params['RealProfitShareFee']
@ProfitShareStatus = params['ProfitShareStatus']
@ProfitFinishTime = params['ProfitFinishTime']
@ProfitShareType = params['ProfitShareType']
end
end
# 云企付-退款查询结果
class OpenBankQueryRefundOrderResult < TencentCloud::Common::AbstractModel
# @param OutRefundId: 外部商户退款单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutRefundId: String
# @param ChannelRefundId: 渠道退款单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelRefundId: String
# @param RefundReason: 退款原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundReason: String
# @param RefundAmount: 退款金额,单位分
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundAmount: Integer
# @param RealRefundAmount: 实际退款金额,单位分
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RealRefundAmount: Integer
# @param TotalAmount: 原支付订单总金额,单位分
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalAmount: Integer
# @param TimeFinish: 退款完成时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TimeFinish: String
# @param RefundStatus: 退款订单状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundStatus: String
# @param RefundInfo: 退款明细信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundInfo: String
# @param FeeAmount: 退款手续费金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FeeAmount: Integer
# @param RefundMessage: 退款返回描述,比如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundMessage: String
# @param ProfitShareRespInfoList: 分账信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProfitShareRespInfoList: Array
attr_accessor :OutRefundId, :ChannelRefundId, :RefundReason, :RefundAmount, :RealRefundAmount, :TotalAmount, :TimeFinish, :RefundStatus, :RefundInfo, :FeeAmount, :RefundMessage, :ProfitShareRespInfoList
def initialize(outrefundid=nil, channelrefundid=nil, refundreason=nil, refundamount=nil, realrefundamount=nil, totalamount=nil, timefinish=nil, refundstatus=nil, refundinfo=nil, feeamount=nil, refundmessage=nil, profitsharerespinfolist=nil)
@OutRefundId = outrefundid
@ChannelRefundId = channelrefundid
@RefundReason = refundreason
@RefundAmount = refundamount
@RealRefundAmount = realrefundamount
@TotalAmount = totalamount
@TimeFinish = timefinish
@RefundStatus = refundstatus
@RefundInfo = refundinfo
@FeeAmount = feeamount
@RefundMessage = refundmessage
@ProfitShareRespInfoList = profitsharerespinfolist
end
def deserialize(params)
@OutRefundId = params['OutRefundId']
@ChannelRefundId = params['ChannelRefundId']
@RefundReason = params['RefundReason']
@RefundAmount = params['RefundAmount']
@RealRefundAmount = params['RealRefundAmount']
@TotalAmount = params['TotalAmount']
@TimeFinish = params['TimeFinish']
@RefundStatus = params['RefundStatus']
@RefundInfo = params['RefundInfo']
@FeeAmount = params['FeeAmount']
@RefundMessage = params['RefundMessage']
unless params['ProfitShareRespInfoList'].nil?
@ProfitShareRespInfoList = []
params['ProfitShareRespInfoList'].each do |i|
openbankprofitsharerespinfo_tmp = OpenBankProfitShareRespInfo.new
openbankprofitsharerespinfo_tmp.deserialize(i)
@ProfitShareRespInfoList << openbankprofitsharerespinfo_tmp
end
end
end
end
# 云企付-充值单收款人信息
class OpenBankRechargePayeeInfo < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款方标识
# 收款方类型为电子记账本时,上送渠道电子记账本ID
# @type PayeeId: String
# @param PayeeIdType: 收款方标识类型
# ACCOUNT_BOOK_ID:电子记账本ID
# @type PayeeIdType: String
# @param PayeeName: 收款方名称
# @type PayeeName: String
attr_accessor :PayeeId, :PayeeIdType, :PayeeName
def initialize(payeeid=nil, payeeidtype=nil, payeename=nil)
@PayeeId = payeeid
@PayeeIdType = payeeidtype
@PayeeName = payeename
end
def deserialize(params)
@PayeeId = params['PayeeId']
@PayeeIdType = params['PayeeIdType']
@PayeeName = params['PayeeName']
end
end
# 云企付-充值跳转参数
class OpenBankRechargeRedirectInfo < TencentCloud::Common::AbstractModel
# @param Url: 跳转URL
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
attr_accessor :Url
def initialize(url=nil)
@Url = url
end
def deserialize(params)
@Url = params['Url']
end
end
# 云企付-跳转参数,用于小程序前端跳转
class OpenBankRedirectInfo < TencentCloud::Common::AbstractModel
# @param QRCodeUrl: 生成二维码,引导用户扫码
# @type QRCodeUrl: String
# @param QRCodeKey: 二维码凭证
# @type QRCodeKey: String
# @param Url: 跳转 URL,用于客户端跳转,订单未支付时返回该参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Url: String
# @param ExpireTime: 跳转凭证过期时间,yyyy-MM-dd HH:mm:ss
# @type ExpireTime: String
# @param MpAppId: 小程序 appid
# @type MpAppId: String
# @param MpPath: 小程序路径
# @type MpPath: String
# @param MpUserName: 小程序原始 id
# @type MpUserName: String
# @param FormInfo: 网银支付提交页面信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FormInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankFormInfo`
attr_accessor :QRCodeUrl, :QRCodeKey, :Url, :ExpireTime, :MpAppId, :MpPath, :MpUserName, :FormInfo
def initialize(qrcodeurl=nil, qrcodekey=nil, url=nil, expiretime=nil, mpappid=nil, mppath=nil, mpusername=nil, forminfo=nil)
@QRCodeUrl = qrcodeurl
@QRCodeKey = qrcodekey
@Url = url
@ExpireTime = expiretime
@MpAppId = mpappid
@MpPath = mppath
@MpUserName = mpusername
@FormInfo = forminfo
end
def deserialize(params)
@QRCodeUrl = params['QRCodeUrl']
@QRCodeKey = params['QRCodeKey']
@Url = params['Url']
@ExpireTime = params['ExpireTime']
@MpAppId = params['MpAppId']
@MpPath = params['MpPath']
@MpUserName = params['MpUserName']
unless params['FormInfo'].nil?
@FormInfo = OpenBankFormInfo.new
@FormInfo.deserialize(params['FormInfo'])
end
end
end
# 云企付-退款申请结果
class OpenBankRefundOrderApplyResult < TencentCloud::Common::AbstractModel
# @param ChannelOrderId: 云企付订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelOrderId: String
# @param ChannelRefundId: 云企付退款流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelRefundId: String
# @param OutRefundId: 外部商户退款单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutRefundId: String
# @param OutOrderId: 外部商户订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutOrderId: String
# @param RefundMessage: 退款返回描述,比如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundMessage: String
# @param RefundAmount: 退款金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundAmount: Integer
# @param FeeAmount: 退款手续费金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FeeAmount: Integer
# @param RefundStatus: 退款状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundStatus: String
attr_accessor :ChannelOrderId, :ChannelRefundId, :OutRefundId, :OutOrderId, :RefundMessage, :RefundAmount, :FeeAmount, :RefundStatus
def initialize(channelorderid=nil, channelrefundid=nil, outrefundid=nil, outorderid=nil, refundmessage=nil, refundamount=nil, feeamount=nil, refundstatus=nil)
@ChannelOrderId = channelorderid
@ChannelRefundId = channelrefundid
@OutRefundId = outrefundid
@OutOrderId = outorderid
@RefundMessage = refundmessage
@RefundAmount = refundamount
@FeeAmount = feeamount
@RefundStatus = refundstatus
end
def deserialize(params)
@ChannelOrderId = params['ChannelOrderId']
@ChannelRefundId = params['ChannelRefundId']
@OutRefundId = params['OutRefundId']
@OutOrderId = params['OutOrderId']
@RefundMessage = params['RefundMessage']
@RefundAmount = params['RefundAmount']
@FeeAmount = params['FeeAmount']
@RefundStatus = params['RefundStatus']
end
end
# 云企付-设备信息
class OpenBankSceneInfo < TencentCloud::Common::AbstractModel
# @param PayerClientIp: 用户端实际 ip。汇付渠道必填。
# @type PayerClientIp: String
# @param PayerUa: 浏览器 User-Agent。
# @type PayerUa: String
# @param OrderTime: 用户下单时间。若不上送,服务端默认当前时间。
# @type OrderTime: String
# @param DeviceId: 终端设备号(门店号或收银设备 ID),示例值:POS1:1。
# @type DeviceId: String
# @param DeviceType: 终端设备类型。MOBILE_BROWSER:手机浏览器,MOBILE_APP:手机应用程序,TABLET:平板;WATCH:手表,PC:电脑PC,OTHER:其他。
# 汇付渠道必填。
# @type DeviceType: String
attr_accessor :PayerClientIp, :PayerUa, :OrderTime, :DeviceId, :DeviceType
def initialize(payerclientip=nil, payerua=nil, ordertime=nil, deviceid=nil, devicetype=nil)
@PayerClientIp = payerclientip
@PayerUa = payerua
@OrderTime = ordertime
@DeviceId = deviceid
@DeviceType = devicetype
end
def deserialize(params)
@PayerClientIp = params['PayerClientIp']
@PayerUa = params['PayerUa']
@OrderTime = params['OrderTime']
@DeviceId = params['DeviceId']
@DeviceType = params['DeviceType']
end
end
# 云企付-结算规则信息
class OpenBankSettlementRulesInfo < TencentCloud::Common::AbstractModel
# @param UnfreezeRule: ONCE:仅单次解冻(默认)
# MULTI:多次解冻
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UnfreezeRule: String
# @param RefundRule: ONCE:仅单次退款(默认)
# MULTI:多次退款
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundRule: String
attr_accessor :UnfreezeRule, :RefundRule
def initialize(unfreezerule=nil, refundrule=nil)
@UnfreezeRule = unfreezerule
@RefundRule = refundrule
end
def deserialize(params)
@UnfreezeRule = params['UnfreezeRule']
@RefundRule = params['RefundRule']
end
end
# 云企付-邮寄信息
class OpenBankShippingInfo < TencentCloud::Common::AbstractModel
# @param FirstName: 收货人名字
# @type FirstName: String
# @param LastName: 收货人姓氏
# @type LastName: String
# @param AddressOne: 收货地址1
# @type AddressOne: String
# @param AddressTwo: 收货地址2
# @type AddressTwo: String
# @param City: 收货地址所在城市
# @type City: String
# @param State: 收货地址所在州,当国家是美国或加拿大时,使用ISO-3166-2:US或ISO -3166-2:CA 中该
# 国家地区编码标准中的两位字母编码
# @type State: String
# @param Country: 使用ISO-3166-1标准中的两位字母编码
# @type Country: String
# @param ZipCode: 收货地址邮编
# @type ZipCode: String
# @param Phone: 收货联系电话
# @type Phone: String
attr_accessor :FirstName, :LastName, :AddressOne, :AddressTwo, :City, :State, :Country, :ZipCode, :Phone
def initialize(firstname=nil, lastname=nil, addressone=nil, addresstwo=nil, city=nil, state=nil, country=nil, zipcode=nil, phone=nil)
@FirstName = firstname
@LastName = lastname
@AddressOne = addressone
@AddressTwo = addresstwo
@City = city
@State = state
@Country = country
@ZipCode = zipcode
@Phone = phone
end
def deserialize(params)
@FirstName = params['FirstName']
@LastName = params['LastName']
@AddressOne = params['AddressOne']
@AddressTwo = params['AddressTwo']
@City = params['City']
@State = params['State']
@Country = params['Country']
@ZipCode = params['ZipCode']
@Phone = params['Phone']
end
end
# 云企付-门店信息
class OpenBankStoreInfo < TencentCloud::Common::AbstractModel
# @param Name: 门店名称
# @type Name: String
# @param AreaCode: 地区编码
# @type AreaCode: String
# @param Address: 详细地址
# @type Address: String
# @param Id: 门店编号
# @type Id: String
attr_accessor :Name, :AreaCode, :Address, :Id
def initialize(name=nil, areacode=nil, address=nil, id=nil)
@Name = name
@AreaCode = areacode
@Address = address
@Id = id
end
def deserialize(params)
@Name = params['Name']
@AreaCode = params['AreaCode']
@Address = params['Address']
@Id = params['Id']
end
end
# 线下查票-订单信息
class Order < TencentCloud::Common::AbstractModel
# @param AmountHasTax: 含税金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AmountHasTax: Float
# @param Discount: 优惠金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Discount: Float
# @param SellerName: 销方名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SellerName: String
# @param InvoiceType: 发票类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InvoiceType: Integer
# @param Name: 默认“”
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
# @param Amount: 支付金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Amount: Float
# @param OrderDate: 下单日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderDate: String
# @param OrderId: 订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param StoreNo: 门店号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StoreNo: String
# @param Items: 明细
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Items: Array
attr_accessor :AmountHasTax, :Discount, :SellerName, :InvoiceType, :Name, :Amount, :OrderDate, :OrderId, :StoreNo, :Items
def initialize(amounthastax=nil, discount=nil, sellername=nil, invoicetype=nil, name=nil, amount=nil, orderdate=nil, orderid=nil, storeno=nil, items=nil)
@AmountHasTax = amounthastax
@Discount = discount
@SellerName = sellername
@InvoiceType = invoicetype
@Name = name
@Amount = amount
@OrderDate = orderdate
@OrderId = orderid
@StoreNo = storeno
@Items = items
end
def deserialize(params)
@AmountHasTax = params['AmountHasTax']
@Discount = params['Discount']
@SellerName = params['SellerName']
@InvoiceType = params['InvoiceType']
@Name = params['Name']
@Amount = params['Amount']
@OrderDate = params['OrderDate']
@OrderId = params['OrderId']
@StoreNo = params['StoreNo']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
orderitem_tmp = OrderItem.new
orderitem_tmp.deserialize(i)
@Items << orderitem_tmp
end
end
end
end
# 线下查票-订单明细
class OrderItem < TencentCloud::Common::AbstractModel
# @param AmountHasTax: 明细金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AmountHasTax: Float
# @param Discount: 优惠金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Discount: Float
# @param Name: 商品名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
# @param Models: 型号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Models: String
# @param Total: 数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Total: Integer
# @param Unit: 数量单位
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Unit: String
# @param Status: 默认“0”
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param Price: 单价
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Price: Float
# @param TaxCode: 商品编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TaxCode: String
attr_accessor :AmountHasTax, :Discount, :Name, :Models, :Total, :Unit, :Status, :Price, :TaxCode
def initialize(amounthastax=nil, discount=nil, name=nil, models=nil, total=nil, unit=nil, status=nil, price=nil, taxcode=nil)
@AmountHasTax = amounthastax
@Discount = discount
@Name = name
@Models = models
@Total = total
@Unit = unit
@Status = status
@Price = price
@TaxCode = taxcode
end
def deserialize(params)
@AmountHasTax = params['AmountHasTax']
@Discount = params['Discount']
@Name = params['Name']
@Models = params['Models']
@Total = params['Total']
@Unit = params['Unit']
@Status = params['Status']
@Price = params['Price']
@TaxCode = params['TaxCode']
end
end
# 订单汇总列表
class OrderSummaries < TencentCloud::Common::AbstractModel
# @param List: 汇总列表
# @type List: Array
# @param Count: 总数
# @type Count: Integer
attr_accessor :List, :Count
def initialize(list=nil, count=nil)
@List = list
@Count = count
end
def deserialize(params)
unless params['List'].nil?
@List = []
params['List'].each do |i|
ordersummaryresult_tmp = OrderSummaryResult.new
ordersummaryresult_tmp.deserialize(i)
@List << ordersummaryresult_tmp
end
end
@Count = params['Count']
end
end
# 订单汇总结果
class OrderSummaryResult < TencentCloud::Common::AbstractModel
# @param SummaryId: 汇总ID
# @type SummaryId: String
# @param PayeeId: 收款账户ID
# @type PayeeId: String
# @param Name: 收款账户名称
# @type Name: String
# @param IncomeType: 收入类型
# @type IncomeType: String
# @param SummaryAmount: 汇总金额
# @type SummaryAmount: String
# @param SummaryTime: 汇总日期
# @type SummaryTime: String
# @param SummaryCount: 汇总记录数量
# @type SummaryCount: Integer
# @param OutUserId: 外部用户ID
# @type OutUserId: String
attr_accessor :SummaryId, :PayeeId, :Name, :IncomeType, :SummaryAmount, :SummaryTime, :SummaryCount, :OutUserId
def initialize(summaryid=nil, payeeid=nil, name=nil, incometype=nil, summaryamount=nil, summarytime=nil, summarycount=nil, outuserid=nil)
@SummaryId = summaryid
@PayeeId = payeeid
@Name = name
@IncomeType = incometype
@SummaryAmount = summaryamount
@SummaryTime = summarytime
@SummaryCount = summarycount
@OutUserId = outuserid
end
def deserialize(params)
@SummaryId = params['SummaryId']
@PayeeId = params['PayeeId']
@Name = params['Name']
@IncomeType = params['IncomeType']
@SummaryAmount = params['SummaryAmount']
@SummaryTime = params['SummaryTime']
@SummaryCount = params['SummaryCount']
@OutUserId = params['OutUserId']
end
end
# 公司信息
class OrganizationInfo < TencentCloud::Common::AbstractModel
# @param OrganizationName: 公司名称,个体工商户必输
# @type OrganizationName: String
# @param OrganizationType: 公司证件类型,个体工商户必输,证件类型仅支持73
# @type OrganizationType: String
# @param OrganizationCode: 公司证件号码,个体工商户必输
# @type OrganizationCode: String
# @param LegalPersonName: 法人名称,如果SubMchName不是法人,需要另外送入法人信息(企业必输)
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type LegalPersonName: String
# @param LegalPersonIdType: 法人证件类型,如果SubMchName不是法人,需要另外送入法人信息(企业必输)
# @type LegalPersonIdType: String
# @param LegalPersonIdCode: 法人证件号码,如果SubMchName不是法人,需要另外送入法人信息(企业必输)
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type LegalPersonIdCode: String
attr_accessor :OrganizationName, :OrganizationType, :OrganizationCode, :LegalPersonName, :LegalPersonIdType, :LegalPersonIdCode
def initialize(organizationname=nil, organizationtype=nil, organizationcode=nil, legalpersonname=nil, legalpersonidtype=nil, legalpersonidcode=nil)
@OrganizationName = organizationname
@OrganizationType = organizationtype
@OrganizationCode = organizationcode
@LegalPersonName = legalpersonname
@LegalPersonIdType = legalpersonidtype
@LegalPersonIdCode = legalpersonidcode
end
def deserialize(params)
@OrganizationName = params['OrganizationName']
@OrganizationType = params['OrganizationType']
@OrganizationCode = params['OrganizationCode']
@LegalPersonName = params['LegalPersonName']
@LegalPersonIdType = params['LegalPersonIdType']
@LegalPersonIdCode = params['LegalPersonIdCode']
end
end
# 外部子商户扩展信息
class OutSubMerchantExtensionInfo < TencentCloud::Common::AbstractModel
# @param RegionCode: 地区代码,国标码
# HELIPAY渠道必传
# @type RegionCode: String
# @param RegisterAddress: 注册地址
# @type RegisterAddress: String
# @param MailingAddress: 通讯地址
# HELIPAY渠道必传
# @type MailingAddress: String
# @param BusinessAddress: 营业地址/经营地址
# @type BusinessAddress: String
# @param ServicePhone: 客服电话
# @type ServicePhone: String
# @param WebSiteUrl: 网站url
# @type WebSiteUrl: String
# @param EmailAddress: 邮箱地址
# @type EmailAddress: String
attr_accessor :RegionCode, :RegisterAddress, :MailingAddress, :BusinessAddress, :ServicePhone, :WebSiteUrl, :EmailAddress
def initialize(regioncode=nil, registeraddress=nil, mailingaddress=nil, businessaddress=nil, servicephone=nil, websiteurl=nil, emailaddress=nil)
@RegionCode = regioncode
@RegisterAddress = registeraddress
@MailingAddress = mailingaddress
@BusinessAddress = businessaddress
@ServicePhone = servicephone
@WebSiteUrl = websiteurl
@EmailAddress = emailaddress
end
def deserialize(params)
@RegionCode = params['RegionCode']
@RegisterAddress = params['RegisterAddress']
@MailingAddress = params['MailingAddress']
@BusinessAddress = params['BusinessAddress']
@ServicePhone = params['ServicePhone']
@WebSiteUrl = params['WebSiteUrl']
@EmailAddress = params['EmailAddress']
end
end
# 分页参数
class Paging < TencentCloud::Common::AbstractModel
# @param Index: 页码
# @type Index: Integer
# @param Count: 页长
# @type Count: Integer
attr_accessor :Index, :Count
def initialize(index=nil, count=nil)
@Index = index
@Count = count
end
def deserialize(params)
@Index = params['Index']
@Count = params['Count']
end
end
# pay支付方式json数据
class PayDataResult < TencentCloud::Common::AbstractModel
# @param PaymentTag: 支付标签(唯一性)
# @type PaymentTag: String
# @param PaymentOptionHide: 添加合同时需要隐藏的选项(多个以小写逗号分开)
# @type PaymentOptionHide: String
# @param PaymentIcon: 支付方式图片url路径
# @type PaymentIcon: String
# @param PaymentOptionSix: 合同选项名称6
# @type PaymentOptionSix: String
# @param PaymentName: 付款方式名称
# @type PaymentName: String
# @param PaymentOptionSeven: 合同选项名称7
# @type PaymentOptionSeven: String
# @param PaymentOptionOther: 合同选项名称8
# @type PaymentOptionOther: String
# @param PaymentOptionTwo: 合同选项名称2
# @type PaymentOptionTwo: String
# @param PaymentOptionOne: 合同选项名称1
# @type PaymentOptionOne: String
# @param PaymentDiscountFee: 是否开启智能扣率(1是,0否)
# @type PaymentDiscountFee: String
# @param PaymentType: 支持的交易类型(多个以小写逗号分开,0现金,1刷卡,2主扫,3被扫,4JSPAY,5预授权)
# @type PaymentType: String
# @param PaymentOptionFive: 合同选项名称5
# @type PaymentOptionFive: String
# @param PaymentOptionNine: 合同选项名称9
# @type PaymentOptionNine: String
# @param PaymentId: 支付方式编号
# @type PaymentId: String
# @param PaymentOptionThree: 合同选项名称3
# @type PaymentOptionThree: String
# @param PaymentInternalName: 付款方式名称(内部名称)
# @type PaymentInternalName: String
# @param PaymentOptionFour: 合同选项名称4
# @type PaymentOptionFour: String
# @param PaymentOptionTen: 合同选项名称10
# @type PaymentOptionTen: String
attr_accessor :PaymentTag, :PaymentOptionHide, :PaymentIcon, :PaymentOptionSix, :PaymentName, :PaymentOptionSeven, :PaymentOptionOther, :PaymentOptionTwo, :PaymentOptionOne, :PaymentDiscountFee, :PaymentType, :PaymentOptionFive, :PaymentOptionNine, :PaymentId, :PaymentOptionThree, :PaymentInternalName, :PaymentOptionFour, :PaymentOptionTen
def initialize(paymenttag=nil, paymentoptionhide=nil, paymenticon=nil, paymentoptionsix=nil, paymentname=nil, paymentoptionseven=nil, paymentoptionother=nil, paymentoptiontwo=nil, paymentoptionone=nil, paymentdiscountfee=nil, paymenttype=nil, paymentoptionfive=nil, paymentoptionnine=nil, paymentid=nil, paymentoptionthree=nil, paymentinternalname=nil, paymentoptionfour=nil, paymentoptionten=nil)
@PaymentTag = paymenttag
@PaymentOptionHide = paymentoptionhide
@PaymentIcon = paymenticon
@PaymentOptionSix = paymentoptionsix
@PaymentName = paymentname
@PaymentOptionSeven = paymentoptionseven
@PaymentOptionOther = paymentoptionother
@PaymentOptionTwo = paymentoptiontwo
@PaymentOptionOne = paymentoptionone
@PaymentDiscountFee = paymentdiscountfee
@PaymentType = paymenttype
@PaymentOptionFive = paymentoptionfive
@PaymentOptionNine = paymentoptionnine
@PaymentId = paymentid
@PaymentOptionThree = paymentoptionthree
@PaymentInternalName = paymentinternalname
@PaymentOptionFour = paymentoptionfour
@PaymentOptionTen = paymentoptionten
end
def deserialize(params)
@PaymentTag = params['PaymentTag']
@PaymentOptionHide = params['PaymentOptionHide']
@PaymentIcon = params['PaymentIcon']
@PaymentOptionSix = params['PaymentOptionSix']
@PaymentName = params['PaymentName']
@PaymentOptionSeven = params['PaymentOptionSeven']
@PaymentOptionOther = params['PaymentOptionOther']
@PaymentOptionTwo = params['PaymentOptionTwo']
@PaymentOptionOne = params['PaymentOptionOne']
@PaymentDiscountFee = params['PaymentDiscountFee']
@PaymentType = params['PaymentType']
@PaymentOptionFive = params['PaymentOptionFive']
@PaymentOptionNine = params['PaymentOptionNine']
@PaymentId = params['PaymentId']
@PaymentOptionThree = params['PaymentOptionThree']
@PaymentInternalName = params['PaymentInternalName']
@PaymentOptionFour = params['PaymentOptionFour']
@PaymentOptionTen = params['PaymentOptionTen']
end
end
# pay_fee支付方式行业分类费率json数据
class PayFeeDataResult < TencentCloud::Common::AbstractModel
# @param OrganizationFee: 机构的分佣扣率扣率
# @type OrganizationFee: String
# @param PaymentClassificationLimit: 商户手续费封顶值,0为不限封顶
# @type PaymentClassificationLimit: String
# @param OrganizationFeeType: 机构的分佣扣率类型(1按签约扣率,2按收单收益)
# @type OrganizationFeeType: String
# @param PaymentClassificationMaxFee: 商户扣率最大值
# @type PaymentClassificationMaxFee: String
# @param PaymentClassificationMinFee: 商户扣率最小值
# @type PaymentClassificationMinFee: String
# @param PaymentClassificationId: 行业会类编号
# @type PaymentClassificationId: String
# @param PaymentClassificationName: 行业分类名称
# @type PaymentClassificationName: String
attr_accessor :OrganizationFee, :PaymentClassificationLimit, :OrganizationFeeType, :PaymentClassificationMaxFee, :PaymentClassificationMinFee, :PaymentClassificationId, :PaymentClassificationName
def initialize(organizationfee=nil, paymentclassificationlimit=nil, organizationfeetype=nil, paymentclassificationmaxfee=nil, paymentclassificationminfee=nil, paymentclassificationid=nil, paymentclassificationname=nil)
@OrganizationFee = organizationfee
@PaymentClassificationLimit = paymentclassificationlimit
@OrganizationFeeType = organizationfeetype
@PaymentClassificationMaxFee = paymentclassificationmaxfee
@PaymentClassificationMinFee = paymentclassificationminfee
@PaymentClassificationId = paymentclassificationid
@PaymentClassificationName = paymentclassificationname
end
def deserialize(params)
@OrganizationFee = params['OrganizationFee']
@PaymentClassificationLimit = params['PaymentClassificationLimit']
@OrganizationFeeType = params['OrganizationFeeType']
@PaymentClassificationMaxFee = params['PaymentClassificationMaxFee']
@PaymentClassificationMinFee = params['PaymentClassificationMinFee']
@PaymentClassificationId = params['PaymentClassificationId']
@PaymentClassificationName = params['PaymentClassificationName']
end
end
# 订单支付响应对象
class PayOrderResult < TencentCloud::Common::AbstractModel
# @param OrderNo: 付款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
# @param DeveloperNo: 开发者流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeveloperNo: String
# @param TradeDiscountAmount: 交易优惠金额(免充值券)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeDiscountAmount: String
# @param PayName: 付款方式名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayName: String
# @param OrderMerchantId: 商户流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderMerchantId: String
# @param TradeAccount: 交易帐号(银行卡号、支付宝帐号、微信帐号等,某些收单机构没有此数据)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeAccount: String
# @param TradeAmount: 实际交易金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeAmount: String
# @param CurrencySign: 币种签名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CurrencySign: String
# @param TradePayTime: 付款完成时间(以收单机构为准)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradePayTime: String
# @param ShopOrderId: 门店流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopOrderId: String
# @param PayTag: 支付标签
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayTag: String
# @param Status: 订单状态(1交易成功,2待支付,4已取消,9等待用户输入密码确认
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param OrderCurrency: 币种代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderCurrency: String
# @param TradeQrcode: 二维码字符串
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeQrcode: String
# @param WechatAppId: 微信返回调起小程序/原生JS支付的appid参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatAppId: String
# @param WechatTimeStamp: 微信返回调起小程序/原生JS支付的timeStamp参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatTimeStamp: String
# @param WechatNonceStr: 微信返回调起小程序/原生JS支付的nonceStr参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatNonceStr: String
# @param WechatSignType: 微信返回调起小程序/原生JS支付的signType参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatSignType: String
# @param WechatPackage: 微信返回调起小程序/原生JS支付的package参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatPackage: String
# @param WechatPaySign: 微信返回调起小程序/原生JS支付的paySign参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WechatPaySign: String
attr_accessor :OrderNo, :DeveloperNo, :TradeDiscountAmount, :PayName, :OrderMerchantId, :TradeAccount, :TradeAmount, :CurrencySign, :TradePayTime, :ShopOrderId, :PayTag, :Status, :OrderCurrency, :TradeQrcode, :WechatAppId, :WechatTimeStamp, :WechatNonceStr, :WechatSignType, :WechatPackage, :WechatPaySign
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)
@OrderNo = orderno
@DeveloperNo = developerno
@TradeDiscountAmount = tradediscountamount
@PayName = payname
@OrderMerchantId = ordermerchantid
@TradeAccount = tradeaccount
@TradeAmount = tradeamount
@CurrencySign = currencysign
@TradePayTime = tradepaytime
@ShopOrderId = shoporderid
@PayTag = paytag
@Status = status
@OrderCurrency = ordercurrency
@TradeQrcode = tradeqrcode
@WechatAppId = wechatappid
@WechatTimeStamp = wechattimestamp
@WechatNonceStr = wechatnoncestr
@WechatSignType = wechatsigntype
@WechatPackage = wechatpackage
@WechatPaySign = wechatpaysign
end
def deserialize(params)
@OrderNo = params['OrderNo']
@DeveloperNo = params['DeveloperNo']
@TradeDiscountAmount = params['TradeDiscountAmount']
@PayName = params['PayName']
@OrderMerchantId = params['OrderMerchantId']
@TradeAccount = params['TradeAccount']
@TradeAmount = params['TradeAmount']
@CurrencySign = params['CurrencySign']
@TradePayTime = params['TradePayTime']
@ShopOrderId = params['ShopOrderId']
@PayTag = params['PayTag']
@Status = params['Status']
@OrderCurrency = params['OrderCurrency']
@TradeQrcode = params['TradeQrcode']
@WechatAppId = params['WechatAppId']
@WechatTimeStamp = params['WechatTimeStamp']
@WechatNonceStr = params['WechatNonceStr']
@WechatSignType = params['WechatSignType']
@WechatPackage = params['WechatPackage']
@WechatPaySign = params['WechatPaySign']
end
end
# 微工卡核身结果
class PayRollAuthResult < TencentCloud::Common::AbstractModel
# @param AuthFailedReason: 结果为核身失败时的原因描述,仅在失败记录返回,空字符串等同null
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AuthFailedReason: String
# @param AuthNumber: 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
# @type AuthNumber: String
# @param AuthScene: 核身渠道,发起核身时的来源渠道,如通过小程序,硬件设备等
# FROM_MINI_APP:来自小程序方式核身
# FROM_HARDWARE:来自硬件设备方式核身
# @type AuthScene: String
# @param AuthSource: 核身渠道标识,用于定位渠道具体来源,如果是扫码打卡渠道标识就是具体的小程序appid,若是硬件设备,则是设备的序列号等
# @type AuthSource: String
# @param AuthStatus: 核身状态
# AUTHENTICATE_PROCESSING:核身中
# AUTHENTICATE_SUCCESS:核身成功
# AUTHENTICATE_FAILED:核身失败
# @type AuthStatus: String
# @param AuthTime: 核身时间,遵循[rfc3339](https://datatracker.ietf.org/doc/html/rfc3339)标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE
# @type AuthTime: String
# @param CompanyName: 该用户所属的单位名称
# @type CompanyName: String
# @param MerchantId: 微信服务商商户的商户号,由微信支付生成并下发
# @type MerchantId: String
# @param OpenId: 用户在商户对应appid下的唯一标识
# @type OpenId: String
# @param ProjectName: 该项目的名称
# @type ProjectName: String
# @param SubMerchantId: 微信服务商下特约商户的商户号,由微信支付生成并下发
# @type SubMerchantId: String
attr_accessor :AuthFailedReason, :AuthNumber, :AuthScene, :AuthSource, :AuthStatus, :AuthTime, :CompanyName, :MerchantId, :OpenId, :ProjectName, :SubMerchantId
def initialize(authfailedreason=nil, authnumber=nil, authscene=nil, authsource=nil, authstatus=nil, authtime=nil, companyname=nil, merchantid=nil, openid=nil, projectname=nil, submerchantid=nil)
@AuthFailedReason = authfailedreason
@AuthNumber = authnumber
@AuthScene = authscene
@AuthSource = authsource
@AuthStatus = authstatus
@AuthTime = authtime
@CompanyName = companyname
@MerchantId = merchantid
@OpenId = openid
@ProjectName = projectname
@SubMerchantId = submerchantid
end
def deserialize(params)
@AuthFailedReason = params['AuthFailedReason']
@AuthNumber = params['AuthNumber']
@AuthScene = params['AuthScene']
@AuthSource = params['AuthSource']
@AuthStatus = params['AuthStatus']
@AuthTime = params['AuthTime']
@CompanyName = params['CompanyName']
@MerchantId = params['MerchantId']
@OpenId = params['OpenId']
@ProjectName = params['ProjectName']
@SubMerchantId = params['SubMerchantId']
end
end
# 账户余额信息
class PayeeAccountBalanceResult < TencentCloud::Common::AbstractModel
# @param AccountId: 账户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountId: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IncomeType: Integer
# @param Balance: 总余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Balance: String
# @param SystemFreezeBalance: 系统冻结余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SystemFreezeBalance: String
# @param ManualFreezeBalance: 人工冻结余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ManualFreezeBalance: String
# @param PayableBalance: 可提现余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayableBalance: String
# @param PaidBalance: 已提现余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaidBalance: String
# @param InPayBalance: 提现中余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InPayBalance: String
# @param SumSettlementAmount: 累计结算金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SumSettlementAmount: String
attr_accessor :AccountId, :IncomeType, :Balance, :SystemFreezeBalance, :ManualFreezeBalance, :PayableBalance, :PaidBalance, :InPayBalance, :SumSettlementAmount
def initialize(accountid=nil, incometype=nil, balance=nil, systemfreezebalance=nil, manualfreezebalance=nil, payablebalance=nil, paidbalance=nil, inpaybalance=nil, sumsettlementamount=nil)
@AccountId = accountid
@IncomeType = incometype
@Balance = balance
@SystemFreezeBalance = systemfreezebalance
@ManualFreezeBalance = manualfreezebalance
@PayableBalance = payablebalance
@PaidBalance = paidbalance
@InPayBalance = inpaybalance
@SumSettlementAmount = sumsettlementamount
end
def deserialize(params)
@AccountId = params['AccountId']
@IncomeType = params['IncomeType']
@Balance = params['Balance']
@SystemFreezeBalance = params['SystemFreezeBalance']
@ManualFreezeBalance = params['ManualFreezeBalance']
@PayableBalance = params['PayableBalance']
@PaidBalance = params['PaidBalance']
@InPayBalance = params['InPayBalance']
@SumSettlementAmount = params['SumSettlementAmount']
end
end
# 账户信息结果
class PayeeAccountInfoResult < TencentCloud::Common::AbstractModel
# @param AccountId: 账户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountId: String
# @param AccountName: 账户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountName: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param CreateTime: 创建时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param UserInfo: 用户信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserInfo: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountUserInfo`
# @param PropertyInfo: 属性信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PropertyInfo: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountPropertyInfo`
attr_accessor :AccountId, :AccountName, :Remark, :CreateTime, :UserInfo, :PropertyInfo
def initialize(accountid=nil, accountname=nil, remark=nil, createtime=nil, userinfo=nil, propertyinfo=nil)
@AccountId = accountid
@AccountName = accountname
@Remark = remark
@CreateTime = createtime
@UserInfo = userinfo
@PropertyInfo = propertyinfo
end
def deserialize(params)
@AccountId = params['AccountId']
@AccountName = params['AccountName']
@Remark = params['Remark']
@CreateTime = params['CreateTime']
unless params['UserInfo'].nil?
@UserInfo = PayeeAccountUserInfo.new
@UserInfo.deserialize(params['UserInfo'])
end
unless params['PropertyInfo'].nil?
@PropertyInfo = PayeeAccountPropertyInfo.new
@PropertyInfo.deserialize(params['PropertyInfo'])
end
end
end
# 账户信息列表
class PayeeAccountInfos < TencentCloud::Common::AbstractModel
# @param List: 列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type List: Array
# @param Count: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
attr_accessor :List, :Count
def initialize(list=nil, count=nil)
@List = list
@Count = count
end
def deserialize(params)
unless params['List'].nil?
@List = []
params['List'].each do |i|
payeeaccountinforesult_tmp = PayeeAccountInfoResult.new
payeeaccountinforesult_tmp.deserialize(i)
@List << payeeaccountinforesult_tmp
end
end
@Count = params['Count']
end
end
# 账户属性信息
class PayeeAccountPropertyInfo < TencentCloud::Common::AbstractModel
# @param SettleRightStatus: 结算权益状态
# ENABLE:启用
# DISABLE:停用
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleRightStatus: String
# @param PaymentRightStatus: 付款权益状态
# ENABLE:启用
# DISABLE:停用
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentRightStatus: String
attr_accessor :SettleRightStatus, :PaymentRightStatus
def initialize(settlerightstatus=nil, paymentrightstatus=nil)
@SettleRightStatus = settlerightstatus
@PaymentRightStatus = paymentrightstatus
end
def deserialize(params)
@SettleRightStatus = params['SettleRightStatus']
@PaymentRightStatus = params['PaymentRightStatus']
end
end
# 账户用户信息
class PayeeAccountUserInfo < TencentCloud::Common::AbstractModel
# @param OutUserId: 外部用户ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutUserId: String
# @param UserType: 用户类型
# 0:B端用户
# 1:C端用户
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserType: Integer
# @param IdType: 证件类型
# 0:身份证
# 1:社会信用代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IdType: Integer
# @param IdNo: 证件号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IdNo: String
# @param Name: 姓名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
attr_accessor :OutUserId, :UserType, :IdType, :IdNo, :Name
def initialize(outuserid=nil, usertype=nil, idtype=nil, idno=nil, name=nil)
@OutUserId = outuserid
@UserType = usertype
@IdType = idtype
@IdNo = idno
@Name = name
end
def deserialize(params)
@OutUserId = params['OutUserId']
@UserType = params['UserType']
@IdType = params['IdType']
@IdNo = params['IdNo']
@Name = params['Name']
end
end
# 收款用户资金账户信息
class PayeeFundingAccountResult < TencentCloud::Common::AbstractModel
# @param FundingAccountBindSerialNo: 资金账户ID
# @type FundingAccountBindSerialNo: String
attr_accessor :FundingAccountBindSerialNo
def initialize(fundingaccountbindserialno=nil)
@FundingAccountBindSerialNo = fundingaccountbindserialno
end
def deserialize(params)
@FundingAccountBindSerialNo = params['FundingAccountBindSerialNo']
end
end
# 收款用户信息结果
class PayeeInfoResult < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 用户外部业务ID
# @type OutUserId: String
# @param Name: 姓名
# @type Name: String
# @param IdType: 证件类型
# 0:身份证
# 1:社会信用代码
# @type IdType: Integer
# @param IdNo: 证件号
# @type IdNo: String
# @param ServiceProviderId: 服务商ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ServiceProviderId: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :PayeeId, :OutUserId, :Name, :IdType, :IdNo, :ServiceProviderId, :Remark
def initialize(payeeid=nil, outuserid=nil, name=nil, idtype=nil, idno=nil, serviceproviderid=nil, remark=nil)
@PayeeId = payeeid
@OutUserId = outuserid
@Name = name
@IdType = idtype
@IdNo = idno
@ServiceProviderId = serviceproviderid
@Remark = remark
end
def deserialize(params)
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
@Name = params['Name']
@IdType = params['IdType']
@IdNo = params['IdNo']
@ServiceProviderId = params['ServiceProviderId']
@Remark = params['Remark']
end
end
# 计税信息
class PayeeTaxInfo < TencentCloud::Common::AbstractModel
# @param TaxTemplateInfoList: 计税模板列表
# @type TaxTemplateInfoList: Array
# @param TaxpayerIdNo: 纳税人识别号
# @type TaxpayerIdNo: String
# @param TaxEntityType: 纳税主体类型
# NATURAL:自然人
# NON_NATURAL:非自然人
# @type TaxEntityType: String
# @param TaxServiceProviderId: 财税服务商ID
# @type TaxServiceProviderId: String
attr_accessor :TaxTemplateInfoList, :TaxpayerIdNo, :TaxEntityType, :TaxServiceProviderId
def initialize(taxtemplateinfolist=nil, taxpayeridno=nil, taxentitytype=nil, taxserviceproviderid=nil)
@TaxTemplateInfoList = taxtemplateinfolist
@TaxpayerIdNo = taxpayeridno
@TaxEntityType = taxentitytype
@TaxServiceProviderId = taxserviceproviderid
end
def deserialize(params)
unless params['TaxTemplateInfoList'].nil?
@TaxTemplateInfoList = []
params['TaxTemplateInfoList'].each do |i|
payeetaxtemplateinfo_tmp = PayeeTaxTemplateInfo.new
payeetaxtemplateinfo_tmp.deserialize(i)
@TaxTemplateInfoList << payeetaxtemplateinfo_tmp
end
end
@TaxpayerIdNo = params['TaxpayerIdNo']
@TaxEntityType = params['TaxEntityType']
@TaxServiceProviderId = params['TaxServiceProviderId']
end
end
# 收款用户计税模板信息
class PayeeTaxTemplateInfo < TencentCloud::Common::AbstractModel
# @param IncomeType: 收入类型
# LABOR: 劳务所得
# OCCASION: 偶然所得
# @type IncomeType: String
# @param TaxTemplateId: 计税模板ID
# @type TaxTemplateId: String
attr_accessor :IncomeType, :TaxTemplateId
def initialize(incometype=nil, taxtemplateid=nil)
@IncomeType = incometype
@TaxTemplateId = taxtemplateid
end
def deserialize(params)
@IncomeType = params['IncomeType']
@TaxTemplateId = params['TaxTemplateId']
end
end
# 付款订单结果
class PaymentOrderResult < TencentCloud::Common::AbstractModel
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param AmountAfterTax: 税后金额
# @type AmountAfterTax: String
# @param Tax: 税金
# @type Tax: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param OrderId: 订单ID
# @type OrderId: String
# @param InitiateTime: 发起时间
# @type InitiateTime: String
# @param FinishTime: 完成时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinishTime: String
# @param Status: 状态
# ACCEPTED:已受理
# ACCOUNTED:已记账
# PAYING:付款中
# PAYED:完成付款渠道调用
# SUCCEED:已成功
# FAILED:已失败
# @type Status: String
# @param StatusDesc: 状态描述
# @type StatusDesc: String
# @param Remark: 提现备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 外部用户ID
# @type OutUserId: String
# @param ChannelOrderId: 渠道支付订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelOrderId: String
# @param Vat: 增值税
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Vat: String
# @param IndividualIncomeTax: 个人所得税
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IndividualIncomeTax: String
# @param AdditionalTaxSum: 附加税总税额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AdditionalTaxSum: String
# @param AdditionalTaxItem: 附加税税项。格式为JSON格式
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AdditionalTaxItem: String
# @param FailReason: 失败原因。当Status为FAILED时,改字段为失败的原因。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
attr_accessor :IncomeType, :AmountBeforeTax, :AmountAfterTax, :Tax, :OutOrderId, :OrderId, :InitiateTime, :FinishTime, :Status, :StatusDesc, :Remark, :PayeeId, :OutUserId, :ChannelOrderId, :Vat, :IndividualIncomeTax, :AdditionalTaxSum, :AdditionalTaxItem, :FailReason
def initialize(incometype=nil, amountbeforetax=nil, amountaftertax=nil, tax=nil, outorderid=nil, orderid=nil, initiatetime=nil, finishtime=nil, status=nil, statusdesc=nil, remark=nil, payeeid=nil, outuserid=nil, channelorderid=nil, vat=nil, individualincometax=nil, additionaltaxsum=nil, additionaltaxitem=nil, failreason=nil)
@IncomeType = incometype
@AmountBeforeTax = amountbeforetax
@AmountAfterTax = amountaftertax
@Tax = tax
@OutOrderId = outorderid
@OrderId = orderid
@InitiateTime = initiatetime
@FinishTime = finishtime
@Status = status
@StatusDesc = statusdesc
@Remark = remark
@PayeeId = payeeid
@OutUserId = outuserid
@ChannelOrderId = channelorderid
@Vat = vat
@IndividualIncomeTax = individualincometax
@AdditionalTaxSum = additionaltaxsum
@AdditionalTaxItem = additionaltaxitem
@FailReason = failreason
end
def deserialize(params)
@IncomeType = params['IncomeType']
@AmountBeforeTax = params['AmountBeforeTax']
@AmountAfterTax = params['AmountAfterTax']
@Tax = params['Tax']
@OutOrderId = params['OutOrderId']
@OrderId = params['OrderId']
@InitiateTime = params['InitiateTime']
@FinishTime = params['FinishTime']
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@Remark = params['Remark']
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
@ChannelOrderId = params['ChannelOrderId']
@Vat = params['Vat']
@IndividualIncomeTax = params['IndividualIncomeTax']
@AdditionalTaxSum = params['AdditionalTaxSum']
@AdditionalTaxItem = params['AdditionalTaxItem']
@FailReason = params['FailReason']
end
end
# 付款订单状态结果
class PaymentOrderStatusResult < TencentCloud::Common::AbstractModel
# @param Status: 状态
# ACCEPTED:已受理
# ACCOUNTED:已记账
# PAYING:付款中
# PAYED:完成付款渠道调用
# SUCCEED:已成功
# FAILED:已失败
# @type Status: String
# @param StatusDesc: 状态描述
# @type StatusDesc: String
# @param FailReason: 失败原因。当Status为FAILED时,改字段为失败的原因。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
attr_accessor :Status, :StatusDesc, :FailReason
def initialize(status=nil, statusdesc=nil, failreason=nil)
@Status = status
@StatusDesc = statusdesc
@FailReason = failreason
end
def deserialize(params)
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@FailReason = params['FailReason']
end
end
# 付款订单列表
class PaymentOrders < TencentCloud::Common::AbstractModel
# @param List: 列表
# @type List: Array
# @param Count: 总数
# @type Count: Integer
attr_accessor :List, :Count
def initialize(list=nil, count=nil)
@List = list
@Count = count
end
def deserialize(params)
unless params['List'].nil?
@List = []
params['List'].each do |i|
paymentorderresult_tmp = PaymentOrderResult.new
paymentorderresult_tmp.deserialize(i)
@List << paymentorderresult_tmp
end
end
@Count = params['Count']
end
end
# 平台账户余额信息
class PlatformAccountBalanceResult < TencentCloud::Common::AbstractModel
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IncomeType: String
# @param Balance: 总余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Balance: String
# @param SystemFreezeBalance: 系统冻结余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SystemFreezeBalance: String
# @param ManualFreezeBalance: 人工冻结余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ManualFreezeBalance: String
# @param PayableBalance: 可提现余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayableBalance: String
# @param InPayBalance: 提现中余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InPayBalance: String
attr_accessor :IncomeType, :Balance, :SystemFreezeBalance, :ManualFreezeBalance, :PayableBalance, :InPayBalance
def initialize(incometype=nil, balance=nil, systemfreezebalance=nil, manualfreezebalance=nil, payablebalance=nil, inpaybalance=nil)
@IncomeType = incometype
@Balance = balance
@SystemFreezeBalance = systemfreezebalance
@ManualFreezeBalance = manualfreezebalance
@PayableBalance = payablebalance
@InPayBalance = inpaybalance
end
def deserialize(params)
@IncomeType = params['IncomeType']
@Balance = params['Balance']
@SystemFreezeBalance = params['SystemFreezeBalance']
@ManualFreezeBalance = params['ManualFreezeBalance']
@PayableBalance = params['PayableBalance']
@InPayBalance = params['InPayBalance']
end
end
# QueryAcctBinding请求参数结构体
class QueryAcctBindingRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param MidasSecretId: 由平台客服提供的计费密钥Id
# @type MidasSecretId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :SubAppId, :MidasSecretId, :MidasSignature, :EncryptType, :MidasEnvironment
def initialize(midasappid=nil, subappid=nil, midassecretid=nil, midassignature=nil, encrypttype=nil, midasenvironment=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryAcctBinding返回参数结构体
class QueryAcctBindingResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 总行数
# @type TotalCount: Integer
# @param BankCardItems: 银行卡信息列表
# @type BankCardItems: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :BankCardItems, :RequestId
def initialize(totalcount=nil, bankcarditems=nil, requestid=nil)
@TotalCount = totalcount
@BankCardItems = bankcarditems
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['BankCardItems'].nil?
@BankCardItems = []
params['BankCardItems'].each do |i|
bankcarditem_tmp = BankCardItem.new
bankcarditem_tmp.deserialize(i)
@BankCardItems << bankcarditem_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryAcctInfoList请求参数结构体
class QueryAcctInfoListRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param QueryAcctBeginTime: 查询开始时间(以开户时间为准)
# @type QueryAcctBeginTime: String
# @param QueryAcctEndTime: 查询结束时间(以开户时间为准)
# @type QueryAcctEndTime: String
# @param PageOffset: 分页号, 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照开户时间的先后
# @type PageOffset: String
# @param MidasSecretId: 由平台客服提供的计费密钥Id
# @type MidasSecretId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :QueryAcctBeginTime, :QueryAcctEndTime, :PageOffset, :MidasSecretId, :MidasSignature, :EncryptType, :MidasEnvironment
def initialize(midasappid=nil, queryacctbegintime=nil, queryacctendtime=nil, pageoffset=nil, midassecretid=nil, midassignature=nil, encrypttype=nil, midasenvironment=nil)
@MidasAppId = midasappid
@QueryAcctBeginTime = queryacctbegintime
@QueryAcctEndTime = queryacctendtime
@PageOffset = pageoffset
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@QueryAcctBeginTime = params['QueryAcctBeginTime']
@QueryAcctEndTime = params['QueryAcctEndTime']
@PageOffset = params['PageOffset']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryAcctInfoList返回参数结构体
class QueryAcctInfoListResponse < TencentCloud::Common::AbstractModel
# @param ResultCount: 本次交易返回查询结果记录数
# @type ResultCount: Integer
# @param TotalCount: 符合业务查询条件的记录总数
# @type TotalCount: Integer
# @param QueryAcctItems: 查询结果项 [object,object]
# @type QueryAcctItems: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ResultCount, :TotalCount, :QueryAcctItems, :RequestId
def initialize(resultcount=nil, totalcount=nil, queryacctitems=nil, requestid=nil)
@ResultCount = resultcount
@TotalCount = totalcount
@QueryAcctItems = queryacctitems
@RequestId = requestid
end
def deserialize(params)
@ResultCount = params['ResultCount']
@TotalCount = params['TotalCount']
unless params['QueryAcctItems'].nil?
@QueryAcctItems = []
params['QueryAcctItems'].each do |i|
queryacctitem_tmp = QueryAcctItem.new
queryacctitem_tmp.deserialize(i)
@QueryAcctItems << queryacctitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryAcctInfo请求参数结构体
class QueryAcctInfoRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫平台分配的支付MidasAppId
# @type MidasAppId: String
# @param SubMchId: 业务平台的子商户Id,唯一
# @type SubMchId: String
# @param MidasSecretId: 由平台客服提供的计费密钥Id
# @type MidasSecretId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :SubMchId, :MidasSecretId, :MidasSignature, :EncryptType, :MidasEnvironment
def initialize(midasappid=nil, submchid=nil, midassecretid=nil, midassignature=nil, encrypttype=nil, midasenvironment=nil)
@MidasAppId = midasappid
@SubMchId = submchid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubMchId = params['SubMchId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryAcctInfo返回参数结构体
class QueryAcctInfoResponse < TencentCloud::Common::AbstractModel
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubMchName: 子商户名称
# @type SubMchName: String
# @param SubMchType: 子商户类型:
# 个人: personal
# 企业:enterprise
# 缺省: enterprise
# @type SubMchType: String
# @param ShortName: 不填则默认子商户名称
# @type ShortName: String
# @param Address: 子商户地址
# @type Address: String
# @param Contact: 子商户联系人子商户联系人
# <敏感信息>
# @type Contact: String
# @param Mobile: 联系人手机号
# <敏感信息>
# @type Mobile: String
# @param Email: 邮箱
# <敏感信息>
# @type Email: String
# @param SubMchId: 子商户id
# @type SubMchId: String
# @param SubAcctNo: 子账户
# @type SubAcctNo: String
# @param SubMerchantMemberType: 子商户会员类型:
# general:普通子账户
# merchant:商户子账户
# 缺省: general
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubMerchantMemberType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SubAppId, :SubMchName, :SubMchType, :ShortName, :Address, :Contact, :Mobile, :Email, :SubMchId, :SubAcctNo, :SubMerchantMemberType, :RequestId
def initialize(subappid=nil, submchname=nil, submchtype=nil, shortname=nil, address=nil, contact=nil, mobile=nil, email=nil, submchid=nil, subacctno=nil, submerchantmembertype=nil, requestid=nil)
@SubAppId = subappid
@SubMchName = submchname
@SubMchType = submchtype
@ShortName = shortname
@Address = address
@Contact = contact
@Mobile = mobile
@Email = email
@SubMchId = submchid
@SubAcctNo = subacctno
@SubMerchantMemberType = submerchantmembertype
@RequestId = requestid
end
def deserialize(params)
@SubAppId = params['SubAppId']
@SubMchName = params['SubMchName']
@SubMchType = params['SubMchType']
@ShortName = params['ShortName']
@Address = params['Address']
@Contact = params['Contact']
@Mobile = params['Mobile']
@Email = params['Email']
@SubMchId = params['SubMchId']
@SubAcctNo = params['SubAcctNo']
@SubMerchantMemberType = params['SubMerchantMemberType']
@RequestId = params['RequestId']
end
end
# 查询账户列表接口
class QueryAcctItem < TencentCloud::Common::AbstractModel
# @param SubMchType: 子商户类型:
# 个人: personal
# 企业:enterprise
# 缺省: enterprise
# @type SubMchType: String
# @param SubMchName: 子商户名称
# @type SubMchName: String
# @param SubAcctNo: 子账号
# @type SubAcctNo: String
# @param ShortName: 不填则默认子商户名称
# @type ShortName: String
# @param SubMchId: 业务平台的子商户Id,唯一
# @type SubMchId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param Contact: 子商户联系人
# <敏感信息>
# @type Contact: String
# @param Address: 子商户地址
# @type Address: String
# @param Mobile: 联系人手机号
# <敏感信息>
# @type Mobile: String
# @param Email: 邮箱
# <敏感信息>
# @type Email: String
# @param SubMerchantMemberType: 子商户会员类型:
# general:普通子账户
# merchant:商户子账户
# 缺省: general
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubMerchantMemberType: String
attr_accessor :SubMchType, :SubMchName, :SubAcctNo, :ShortName, :SubMchId, :SubAppId, :Contact, :Address, :Mobile, :Email, :SubMerchantMemberType
def initialize(submchtype=nil, submchname=nil, subacctno=nil, shortname=nil, submchid=nil, subappid=nil, contact=nil, address=nil, mobile=nil, email=nil, submerchantmembertype=nil)
@SubMchType = submchtype
@SubMchName = submchname
@SubAcctNo = subacctno
@ShortName = shortname
@SubMchId = submchid
@SubAppId = subappid
@Contact = contact
@Address = address
@Mobile = mobile
@Email = email
@SubMerchantMemberType = submerchantmembertype
end
def deserialize(params)
@SubMchType = params['SubMchType']
@SubMchName = params['SubMchName']
@SubAcctNo = params['SubAcctNo']
@ShortName = params['ShortName']
@SubMchId = params['SubMchId']
@SubAppId = params['SubAppId']
@Contact = params['Contact']
@Address = params['Address']
@Mobile = params['Mobile']
@Email = params['Email']
@SubMerchantMemberType = params['SubMerchantMemberType']
end
end
# QueryAgentStatements请求参数结构体
class QueryAgentStatementsRequest < TencentCloud::Common::AbstractModel
# @param Date: 结算单日期,月结算单填每月1日
# @type Date: String
# @param Type: 日结算单:daily
# 月结算单:monthly
# @type Type: String
attr_accessor :Date, :Type
def initialize(date=nil, type=nil)
@Date = date
@Type = type
end
def deserialize(params)
@Date = params['Date']
@Type = params['Type']
end
end
# QueryAgentStatements返回参数结构体
class QueryAgentStatementsResponse < TencentCloud::Common::AbstractModel
# @param FileUrl: 文件下载链接
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FileUrl: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FileUrl, :RequestId
def initialize(fileurl=nil, requestid=nil)
@FileUrl = fileurl
@RequestId = requestid
end
def deserialize(params)
@FileUrl = params['FileUrl']
@RequestId = params['RequestId']
end
end
# QueryAgentTaxPaymentBatch请求参数结构体
class QueryAgentTaxPaymentBatchRequest < TencentCloud::Common::AbstractModel
# @param BatchNum: 批次号
# @type BatchNum: Integer
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :BatchNum, :Profile
def initialize(batchnum=nil, profile=nil)
@BatchNum = batchnum
@Profile = profile
end
def deserialize(params)
@BatchNum = params['BatchNum']
@Profile = params['Profile']
end
end
# QueryAgentTaxPaymentBatch返回参数结构体
class QueryAgentTaxPaymentBatchResponse < TencentCloud::Common::AbstractModel
# @param AgentTaxPaymentBatch: 代理商完税证明批次信息
# @type AgentTaxPaymentBatch: :class:`Tencentcloud::Cpdp.v20190820.models.AgentTaxPaymentBatch`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AgentTaxPaymentBatch, :RequestId
def initialize(agenttaxpaymentbatch=nil, requestid=nil)
@AgentTaxPaymentBatch = agenttaxpaymentbatch
@RequestId = requestid
end
def deserialize(params)
unless params['AgentTaxPaymentBatch'].nil?
@AgentTaxPaymentBatch = AgentTaxPaymentBatch.new
@AgentTaxPaymentBatch.deserialize(params['AgentTaxPaymentBatch'])
end
@RequestId = params['RequestId']
end
end
# QueryAnchorContractInfo请求参数结构体
class QueryAnchorContractInfoRequest < TencentCloud::Common::AbstractModel
# @param BeginTime: 起始时间,格式为yyyy-MM-dd
# @type BeginTime: String
# @param EndTime: 起始时间,格式为yyyy-MM-dd
# @type EndTime: String
attr_accessor :BeginTime, :EndTime
def initialize(begintime=nil, endtime=nil)
@BeginTime = begintime
@EndTime = endtime
end
def deserialize(params)
@BeginTime = params['BeginTime']
@EndTime = params['EndTime']
end
end
# QueryAnchorContractInfo返回参数结构体
class QueryAnchorContractInfoResponse < TencentCloud::Common::AbstractModel
# @param AnchorContractInfoList: 签约主播数据
# @type AnchorContractInfoList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AnchorContractInfoList, :RequestId
def initialize(anchorcontractinfolist=nil, requestid=nil)
@AnchorContractInfoList = anchorcontractinfolist
@RequestId = requestid
end
def deserialize(params)
unless params['AnchorContractInfoList'].nil?
@AnchorContractInfoList = []
params['AnchorContractInfoList'].each do |i|
anchorcontractinfo_tmp = AnchorContractInfo.new
anchorcontractinfo_tmp.deserialize(i)
@AnchorContractInfoList << anchorcontractinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryApplicationMaterial请求参数结构体
class QueryApplicationMaterialRequest < TencentCloud::Common::AbstractModel
# @param DeclareId: 申报流水号
# @type DeclareId: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :DeclareId, :Profile
def initialize(declareid=nil, profile=nil)
@DeclareId = declareid
@Profile = profile
end
def deserialize(params)
@DeclareId = params['DeclareId']
@Profile = params['Profile']
end
end
# QueryApplicationMaterial返回参数结构体
class QueryApplicationMaterialResponse < TencentCloud::Common::AbstractModel
# @param Result: 成功申报材料查询结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryDeclareResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryDeclareResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryAssignment请求参数结构体
class QueryAssignmentRequest < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播ID
# @type AnchorId: String
attr_accessor :AnchorId
def initialize(anchorid=nil)
@AnchorId = anchorid
end
def deserialize(params)
@AnchorId = params['AnchorId']
end
end
# QueryAssignment返回参数结构体
class QueryAssignmentResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMsg: 响应消息
# @type ErrMsg: String
# @param Result: 返回响应
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AssignmentData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMsg, :Result, :RequestId
def initialize(errcode=nil, errmsg=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMsg = errmsg
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMsg = params['ErrMsg']
unless params['Result'].nil?
@Result = AssignmentData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryBalance请求参数结构体
class QueryBalanceRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param QueryFlag: 2:普通会员子账号
# 3:功能子账号
# @type QueryFlag: String
# @param PageOffset: 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后
# @type PageOffset: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :SubAppId, :QueryFlag, :PageOffset, :MidasSecretId, :MidasSignature, :MidasEnvironment
def initialize(midasappid=nil, subappid=nil, queryflag=nil, pageoffset=nil, midassecretid=nil, midassignature=nil, midasenvironment=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@QueryFlag = queryflag
@PageOffset = pageoffset
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@QueryFlag = params['QueryFlag']
@PageOffset = params['PageOffset']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryBalance返回参数结构体
class QueryBalanceResponse < TencentCloud::Common::AbstractModel
# @param ResultCount: 本次交易返回查询结果记录数
# @type ResultCount: String
# @param StartRecordOffset: 起始记录号
# @type StartRecordOffset: String
# @param EndFlag: 结束标志
# @type EndFlag: String
# @param TotalCount: 符合业务查询条件的记录总数
# @type TotalCount: String
# @param QueryItems: 查询结果项
# @type QueryItems: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ResultCount, :StartRecordOffset, :EndFlag, :TotalCount, :QueryItems, :RequestId
def initialize(resultcount=nil, startrecordoffset=nil, endflag=nil, totalcount=nil, queryitems=nil, requestid=nil)
@ResultCount = resultcount
@StartRecordOffset = startrecordoffset
@EndFlag = endflag
@TotalCount = totalcount
@QueryItems = queryitems
@RequestId = requestid
end
def deserialize(params)
@ResultCount = params['ResultCount']
@StartRecordOffset = params['StartRecordOffset']
@EndFlag = params['EndFlag']
@TotalCount = params['TotalCount']
unless params['QueryItems'].nil?
@QueryItems = []
params['QueryItems'].each do |i|
queryitem_tmp = QueryItem.new
queryitem_tmp.deserialize(i)
@QueryItems << queryitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryBankClear请求参数结构体
class QueryBankClearRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1: 全部; 2: 指定时间段)
# @type FunctionFlag: String
# @param PageNum: STRING (10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param StartDate: STRING(8),开始日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式: 20190101)
# @type StartDate: String
# @param EndDate: STRING(8),终止日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式:20190101)
# @type EndDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :PageNum, :StartDate, :EndDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, pagenum=nil, startdate=nil, enddate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@PageNum = pagenum
@StartDate = startdate
@EndDate = enddate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@PageNum = params['PageNum']
@StartDate = params['StartDate']
@EndDate = params['EndDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryBankClear返回参数结构体
class QueryBankClearResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING (10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0: 否; 1: 是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING (10),符合业务查询条件的记录总数(重复次数, 一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :TranItemArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, tranitemarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
clearitem_tmp = ClearItem.new
clearitem_tmp.deserialize(i)
@TranItemArray << clearitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# QueryBankTransactionDetails请求参数结构体
class QueryBankTransactionDetailsRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史)
# @type FunctionFlag: String
# @param SubAcctNo: STRING(50),见证子帐户的帐号
# @type SubAcctNo: String
# @param QueryFlag: STRING(4),查询标志(1: 全部; 2: 转出; 3: 转入 )
# @type QueryFlag: String
# @param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param StartDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101)
# @type StartDate: String
# @param EndDate: STRING(8),终止日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101)
# @type EndDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :SubAcctNo, :QueryFlag, :PageNum, :StartDate, :EndDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, subacctno=nil, queryflag=nil, pagenum=nil, startdate=nil, enddate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@SubAcctNo = subacctno
@QueryFlag = queryflag
@PageNum = pagenum
@StartDate = startdate
@EndDate = enddate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@SubAcctNo = params['SubAcctNo']
@QueryFlag = params['QueryFlag']
@PageNum = params['PageNum']
@StartDate = params['StartDate']
@EndDate = params['EndDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryBankTransactionDetails返回参数结构体
class QueryBankTransactionDetailsResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING(10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0: 否; 1: 是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :TranItemArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, tranitemarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
transactionitem_tmp = TransactionItem.new
transactionitem_tmp.deserialize(i)
@TranItemArray << transactionitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# QueryBankWithdrawCashDetails请求参数结构体
class QueryBankWithdrawCashDetailsRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史)
# @type FunctionFlag: String
# @param SubAcctNo: STRING(50),见证子帐户的帐号
# @type SubAcctNo: String
# @param QueryFlag: STRING(4),查询标志(2: 提现; 3: 清分)
# @type QueryFlag: String
# @param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param BeginDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101)
# @type BeginDate: String
# @param EndDate: STRING(8),结束日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101)
# @type EndDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :SubAcctNo, :QueryFlag, :PageNum, :BeginDate, :EndDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, subacctno=nil, queryflag=nil, pagenum=nil, begindate=nil, enddate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@SubAcctNo = subacctno
@QueryFlag = queryflag
@PageNum = pagenum
@BeginDate = begindate
@EndDate = enddate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@SubAcctNo = params['SubAcctNo']
@QueryFlag = params['QueryFlag']
@PageNum = params['PageNum']
@BeginDate = params['BeginDate']
@EndDate = params['EndDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryBankWithdrawCashDetails返回参数结构体
class QueryBankWithdrawCashDetailsResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING(10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0:否; 1:是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :TranItemArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, tranitemarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
withdrawitem_tmp = WithdrawItem.new
withdrawitem_tmp.deserialize(i)
@TranItemArray << withdrawitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# QueryBatchPaymentResult接口返回响应
class QueryBatchPaymentResultData < TencentCloud::Common::AbstractModel
# @param BatchId: 批次号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchId: String
# @param TotalAmount: 批次总额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalAmount: Integer
# @param TotalCount: 批次总量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param ReqReserved: 批次预留字段
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReqReserved: String
# @param Remark: 批次备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param TransferType: 渠道类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferType: Integer
# @param TransferInfoList: 转账明细
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferInfoList: Array
attr_accessor :BatchId, :TotalAmount, :TotalCount, :ReqReserved, :Remark, :TransferType, :TransferInfoList
def initialize(batchid=nil, totalamount=nil, totalcount=nil, reqreserved=nil, remark=nil, transfertype=nil, transferinfolist=nil)
@BatchId = batchid
@TotalAmount = totalamount
@TotalCount = totalcount
@ReqReserved = reqreserved
@Remark = remark
@TransferType = transfertype
@TransferInfoList = transferinfolist
end
def deserialize(params)
@BatchId = params['BatchId']
@TotalAmount = params['TotalAmount']
@TotalCount = params['TotalCount']
@ReqReserved = params['ReqReserved']
@Remark = params['Remark']
@TransferType = params['TransferType']
unless params['TransferInfoList'].nil?
@TransferInfoList = []
params['TransferInfoList'].each do |i|
querybatchpaymentresultdatainfo_tmp = QueryBatchPaymentResultDataInfo.new
querybatchpaymentresultdatainfo_tmp.deserialize(i)
@TransferInfoList << querybatchpaymentresultdatainfo_tmp
end
end
end
end
# QueryBatchPaymentResultData复杂类型中的TransferInfoList
class QueryBatchPaymentResultDataInfo < TencentCloud::Common::AbstractModel
# @param OrderId: 订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param AgentId: 代理商ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentId: String
# @param AgentName: 代理商名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
# @param Status: 交易状态。
# 0 处理中
# 1 预占成功
# 2 交易成功
# 3 交易失败
# 4 未知渠道异常
# 5 预占额度失败
# 6 提交成功
# 7 提交失败
# 8 订单重复提交
# 99 未知系统异常
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: Integer
# @param StatusDesc: 状态描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StatusDesc: String
# @param TransferAmount: 转账金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferAmount: Integer
attr_accessor :OrderId, :AgentId, :AgentName, :Status, :StatusDesc, :TransferAmount
def initialize(orderid=nil, agentid=nil, agentname=nil, status=nil, statusdesc=nil, transferamount=nil)
@OrderId = orderid
@AgentId = agentid
@AgentName = agentname
@Status = status
@StatusDesc = statusdesc
@TransferAmount = transferamount
end
def deserialize(params)
@OrderId = params['OrderId']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@TransferAmount = params['TransferAmount']
end
end
# QueryBatchPaymentResult请求参数结构体
class QueryBatchPaymentResultRequest < TencentCloud::Common::AbstractModel
# @param BatchId: 批次号
# @type BatchId: String
attr_accessor :BatchId
def initialize(batchid=nil)
@BatchId = batchid
end
def deserialize(params)
@BatchId = params['BatchId']
end
end
# QueryBatchPaymentResult返回参数结构体
class QueryBatchPaymentResultResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 返回响应
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryBatchPaymentResultData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryBatchPaymentResultData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 智能代发-单笔代发转账对账单返回数据
class QueryBillDownloadURLData < TencentCloud::Common::AbstractModel
# @param BillDownloadURL: 统一对账单下载链接
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BillDownloadURL: String
# @param OriginalBillDownloadURL: 渠道原始对账单下载链接
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalBillDownloadURL: String
attr_accessor :BillDownloadURL, :OriginalBillDownloadURL
def initialize(billdownloadurl=nil, originalbilldownloadurl=nil)
@BillDownloadURL = billdownloadurl
@OriginalBillDownloadURL = originalbilldownloadurl
end
def deserialize(params)
@BillDownloadURL = params['BillDownloadURL']
@OriginalBillDownloadURL = params['OriginalBillDownloadURL']
end
end
# QueryBillDownloadURL请求参数结构体
class QueryBillDownloadURLRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TransferType: 代发类型:
# 1、 微信企业付款
# 2、 支付宝转账
# 3、 平安银企直联代发转账
# @type TransferType: Integer
# @param BillDate: 账单日期,格式yyyy-MM-dd
# @type BillDate: String
attr_accessor :MerchantId, :TransferType, :BillDate
def initialize(merchantid=nil, transfertype=nil, billdate=nil)
@MerchantId = merchantid
@TransferType = transfertype
@BillDate = billdate
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TransferType = params['TransferType']
@BillDate = params['BillDate']
end
end
# QueryBillDownloadURL返回参数结构体
class QueryBillDownloadURLResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功
# @type ErrCode: String
# @param ErrMessage: 响应消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryBillDownloadURLData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryBillDownloadURLData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryCityCode请求参数结构体
class QueryCityCodeRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Profile
def initialize(openid=nil, openkey=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Profile = params['Profile']
end
end
# QueryCityCode返回参数结构体
class QueryCityCodeResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询城市编码响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
citycoderesult_tmp = CityCodeResult.new
citycoderesult_tmp.deserialize(i)
@Result << citycoderesult_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryCloudChannelData请求参数结构体
class QueryCloudChannelDataRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param OutOrderNo: 业务订单号,外部订单号
# @type OutOrderNo: String
# @param ExternalChannelDataType: 数据类型
# PAYMENT:支付
# @type ExternalChannelDataType: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
# @param SubAppId: 子应用ID
# @type SubAppId: String
# @param ChannelOrderId: 渠道订单号
# @type ChannelOrderId: String
# @param Channel: 渠道名称,指定渠道查询
# wechat:微信支付
# @type Channel: String
attr_accessor :MidasAppId, :OutOrderNo, :ExternalChannelDataType, :MidasEnvironment, :SubAppId, :ChannelOrderId, :Channel
def initialize(midasappid=nil, outorderno=nil, externalchanneldatatype=nil, midasenvironment=nil, subappid=nil, channelorderid=nil, channel=nil)
@MidasAppId = midasappid
@OutOrderNo = outorderno
@ExternalChannelDataType = externalchanneldatatype
@MidasEnvironment = midasenvironment
@SubAppId = subappid
@ChannelOrderId = channelorderid
@Channel = channel
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@OutOrderNo = params['OutOrderNo']
@ExternalChannelDataType = params['ExternalChannelDataType']
@MidasEnvironment = params['MidasEnvironment']
@SubAppId = params['SubAppId']
@ChannelOrderId = params['ChannelOrderId']
@Channel = params['Channel']
end
end
# QueryCloudChannelData返回参数结构体
class QueryCloudChannelDataResponse < TencentCloud::Common::AbstractModel
# @param OutOrderNo: 外部订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutOrderNo: String
# @param ChannelOrderId: 渠道订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelOrderId: String
# @param ExternalChannelDataType: 第三方渠道数据类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalChannelDataType: String
# @param Channel: 渠道名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Channel: String
# @param ExternalChannelDataList: 第三方渠道数据列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalChannelDataList: Array
# @param SubAppId: 子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAppId: String
# @param AppId: 米大师分配的支付主MidasAppId
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OutOrderNo, :ChannelOrderId, :ExternalChannelDataType, :Channel, :ExternalChannelDataList, :SubAppId, :AppId, :RequestId
def initialize(outorderno=nil, channelorderid=nil, externalchanneldatatype=nil, channel=nil, externalchanneldatalist=nil, subappid=nil, appid=nil, requestid=nil)
@OutOrderNo = outorderno
@ChannelOrderId = channelorderid
@ExternalChannelDataType = externalchanneldatatype
@Channel = channel
@ExternalChannelDataList = externalchanneldatalist
@SubAppId = subappid
@AppId = appid
@RequestId = requestid
end
def deserialize(params)
@OutOrderNo = params['OutOrderNo']
@ChannelOrderId = params['ChannelOrderId']
@ExternalChannelDataType = params['ExternalChannelDataType']
@Channel = params['Channel']
unless params['ExternalChannelDataList'].nil?
@ExternalChannelDataList = []
params['ExternalChannelDataList'].each do |i|
cloudexternalchanneldata_tmp = CloudExternalChannelData.new
cloudexternalchanneldata_tmp.deserialize(i)
@ExternalChannelDataList << cloudexternalchanneldata_tmp
end
end
@SubAppId = params['SubAppId']
@AppId = params['AppId']
@RequestId = params['RequestId']
end
end
# QueryCloudOrder请求参数结构体
class QueryCloudOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param Type: 查询类型
# by_order:根据订单号查订单
# @type Type: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
# @param OutTradeNo: 开发者的主订单号
# @type OutTradeNo: String
attr_accessor :MidasAppId, :UserId, :Type, :MidasEnvironment, :OutTradeNo
def initialize(midasappid=nil, userid=nil, type=nil, midasenvironment=nil, outtradeno=nil)
@MidasAppId = midasappid
@UserId = userid
@Type = type
@MidasEnvironment = midasenvironment
@OutTradeNo = outtradeno
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@Type = params['Type']
@MidasEnvironment = params['MidasEnvironment']
@OutTradeNo = params['OutTradeNo']
end
end
# QueryCloudOrder返回参数结构体
class QueryCloudOrderResponse < TencentCloud::Common::AbstractModel
# @param TotalNum: 订单数量
# @type TotalNum: Integer
# @param OrderList: 订单列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalNum, :OrderList, :RequestId
def initialize(totalnum=nil, orderlist=nil, requestid=nil)
@TotalNum = totalnum
@OrderList = orderlist
@RequestId = requestid
end
def deserialize(params)
@TotalNum = params['TotalNum']
unless params['OrderList'].nil?
@OrderList = []
params['OrderList'].each do |i|
cloudorderreturn_tmp = CloudOrderReturn.new
cloudorderreturn_tmp.deserialize(i)
@OrderList << cloudorderreturn_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryCloudRefundOrder请求参数结构体
class QueryCloudRefundOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type RefundId: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :UserId, :RefundId, :MidasEnvironment
def initialize(midasappid=nil, userid=nil, refundid=nil, midasenvironment=nil)
@MidasAppId = midasappid
@UserId = userid
@RefundId = refundid
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@RefundId = params['RefundId']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryCloudRefundOrder返回参数结构体
class QueryCloudRefundOrderResponse < TencentCloud::Common::AbstractModel
# @param OutTradeNo: 该笔退款订单对应的UnifiedOrder下单时传入的OutTradeNo
# @type OutTradeNo: String
# @param ChannelExternalOrderId: 该笔退款订单对应的支付成功后支付机构返回的支付订单号
# @type ChannelExternalOrderId: String
# @param ChannelExternalRefundId: 该笔退款订单退款后支付机构返回的退款单号
# @type ChannelExternalRefundId: String
# @param ChannelOrderId: 内部请求微信支付、银行等支付机构的订单号
# @type ChannelOrderId: String
# @param RefundId: 请求退款时传的退款ID后查询退款时传的RefundId
# @type RefundId: String
# @param UsedRefundId: 被使用的RefundId,业务可忽略该字段
# @type UsedRefundId: String
# @param TotalRefundAmt: 退款总金额
# @type TotalRefundAmt: Integer
# @param CurrencyType: ISO货币代码
# @type CurrencyType: String
# @param State: 退款状态码,退款提交成功后返回
# 1:退款中
# 2:退款成功
# 3:退款失败
# @type State: String
# @param SubRefundList: 子单退款信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubRefundList: Array
# @param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容
# @type Metadata: String
# @param AppId: 米大师分配的支付主MidasAppId
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppId: String
# @param ChannelRefundId: 该笔退款订单退款后内部返回的退款单号
# @type ChannelRefundId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OutTradeNo, :ChannelExternalOrderId, :ChannelExternalRefundId, :ChannelOrderId, :RefundId, :UsedRefundId, :TotalRefundAmt, :CurrencyType, :State, :SubRefundList, :Metadata, :AppId, :ChannelRefundId, :RequestId
def initialize(outtradeno=nil, channelexternalorderid=nil, channelexternalrefundid=nil, channelorderid=nil, refundid=nil, usedrefundid=nil, totalrefundamt=nil, currencytype=nil, state=nil, subrefundlist=nil, metadata=nil, appid=nil, channelrefundid=nil, requestid=nil)
@OutTradeNo = outtradeno
@ChannelExternalOrderId = channelexternalorderid
@ChannelExternalRefundId = channelexternalrefundid
@ChannelOrderId = channelorderid
@RefundId = refundid
@UsedRefundId = usedrefundid
@TotalRefundAmt = totalrefundamt
@CurrencyType = currencytype
@State = state
@SubRefundList = subrefundlist
@Metadata = metadata
@AppId = appid
@ChannelRefundId = channelrefundid
@RequestId = requestid
end
def deserialize(params)
@OutTradeNo = params['OutTradeNo']
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@ChannelExternalRefundId = params['ChannelExternalRefundId']
@ChannelOrderId = params['ChannelOrderId']
@RefundId = params['RefundId']
@UsedRefundId = params['UsedRefundId']
@TotalRefundAmt = params['TotalRefundAmt']
@CurrencyType = params['CurrencyType']
@State = params['State']
unless params['SubRefundList'].nil?
@SubRefundList = []
params['SubRefundList'].each do |i|
cloudsubrefunditem_tmp = CloudSubRefundItem.new
cloudsubrefunditem_tmp.deserialize(i)
@SubRefundList << cloudsubrefunditem_tmp
end
end
@Metadata = params['Metadata']
@AppId = params['AppId']
@ChannelRefundId = params['ChannelRefundId']
@RequestId = params['RequestId']
end
end
# QueryCommonTransferRecharge请求参数结构体
class QueryCommonTransferRechargeRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1为查询当日数据,0查询历史数据)
# @type FunctionFlag: String
# @param StartDate: STRING(8),开始日期(格式:20190101)
# @type StartDate: String
# @param EndDate: STRING(8),终止日期(格式:20190101)
# @type EndDate: String
# @param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :StartDate, :EndDate, :PageNum, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, startdate=nil, enddate=nil, pagenum=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@StartDate = startdate
@EndDate = enddate
@PageNum = pagenum
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@StartDate = params['StartDate']
@EndDate = params['EndDate']
@PageNum = params['PageNum']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryCommonTransferRecharge返回参数结构体
class QueryCommonTransferRechargeResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING(10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0: 否; 1: 是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :TranItemArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, tranitemarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
transferitem_tmp = TransferItem.new
transferitem_tmp.deserialize(i)
@TranItemArray << transferitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# QueryCompanyTitle请求参数结构体
class QueryCompanyTitleRequest < TencentCloud::Common::AbstractModel
# @param CompanyTitleKeyword: 公司抬头关键字
# @type CompanyTitleKeyword: String
# @param InvoicePlatformId: 开票平台ID。0:高灯,1:票易通
# @type InvoicePlatformId: Integer
# @param SellerTaxpayerNum: 销方纳税人识别号
# @type SellerTaxpayerNum: String
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
attr_accessor :CompanyTitleKeyword, :InvoicePlatformId, :SellerTaxpayerNum, :Profile
def initialize(companytitlekeyword=nil, invoiceplatformid=nil, sellertaxpayernum=nil, profile=nil)
@CompanyTitleKeyword = companytitlekeyword
@InvoicePlatformId = invoiceplatformid
@SellerTaxpayerNum = sellertaxpayernum
@Profile = profile
end
def deserialize(params)
@CompanyTitleKeyword = params['CompanyTitleKeyword']
@InvoicePlatformId = params['InvoicePlatformId']
@SellerTaxpayerNum = params['SellerTaxpayerNum']
@Profile = params['Profile']
end
end
# QueryCompanyTitle返回参数结构体
class QueryCompanyTitleResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 公司抬头结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
companytitleresult_tmp = CompanyTitleResult.new
companytitleresult_tmp.deserialize(i)
@Result << companytitleresult_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryContractPayFee请求参数结构体
class QueryContractPayFeeRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param PaymentId: 支付方式编号
# @type PaymentId: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :PaymentId, :Profile
def initialize(openid=nil, openkey=nil, paymentid=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@PaymentId = paymentid
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@PaymentId = params['PaymentId']
@Profile = params['Profile']
end
end
# QueryContractPayFee返回参数结构体
class QueryContractPayFeeResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param Result: 查询支付方式费率及自定义表单项响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryContractPayFeeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = QueryContractPayFeeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 支付方式费率及自定义表单项
class QueryContractPayFeeResult < TencentCloud::Common::AbstractModel
# @param Pay: pay支付方式json数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Pay: :class:`Tencentcloud::Cpdp.v20190820.models.PayDataResult`
# @param ExtraInput: 合同扩展自定义字段
# @type ExtraInput: Array
# @param PayFee: pay_fee支付方式行业分类费率json数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayFee: Array
attr_accessor :Pay, :ExtraInput, :PayFee
def initialize(pay=nil, extrainput=nil, payfee=nil)
@Pay = pay
@ExtraInput = extrainput
@PayFee = payfee
end
def deserialize(params)
unless params['Pay'].nil?
@Pay = PayDataResult.new
@Pay.deserialize(params['Pay'])
end
@ExtraInput = params['ExtraInput']
unless params['PayFee'].nil?
@PayFee = []
params['PayFee'].each do |i|
payfeedataresult_tmp = PayFeeDataResult.new
payfeedataresult_tmp.deserialize(i)
@PayFee << payfeedataresult_tmp
end
end
end
end
# QueryContractPayWayList请求参数结构体
class QueryContractPayWayListRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Profile
def initialize(openid=nil, openkey=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Profile = params['Profile']
end
end
# QueryContractPayWayList返回参数结构体
class QueryContractPayWayListResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询合同支付方式响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
contractpaylistresult_tmp = ContractPayListResult.new
contractpaylistresult_tmp.deserialize(i)
@Result << contractpaylistresult_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryContractRelateShop请求参数结构体
class QueryContractRelateShopRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param ContractId: 合同主键
# @type ContractId: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :ContractId, :Profile
def initialize(openid=nil, openkey=nil, contractid=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@ContractId = contractid
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@ContractId = params['ContractId']
@Profile = params['Profile']
end
end
# QueryContractRelateShop返回参数结构体
class QueryContractRelateShopResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询合同可关联门店响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
querycontractrelateshopresult_tmp = QueryContractRelateShopResult.new
querycontractrelateshopresult_tmp.deserialize(i)
@Result << querycontractrelateshopresult_tmp
end
end
@RequestId = params['RequestId']
end
end
# 合同可关联门店响应对象
class QueryContractRelateShopResult < TencentCloud::Common::AbstractModel
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param CityId: 城市编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
# @param ShopName: 门店简称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopName: String
# @param TerminalCount: 终端数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TerminalCount: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param ShopStatus: 门店状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopStatus: String
# @param AliPayOnline: 若是支付宝合同,支付宝上线状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AliPayOnline: String
# @param ShopNo: 门店编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopNo: String
# @param Country: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Country: String
# @param AliPayStatus: 若是支付宝合同,支付宝审核状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AliPayStatus: String
# @param IsChecked: 为空或者0表示未关联,大于0表示已关联
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IsChecked: String
# @param Address: 详细地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: String
# @param AliPayDesc: 若是支付宝合同,支付宝审核描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AliPayDesc: String
attr_accessor :Province, :CityId, :ShopName, :TerminalCount, :City, :ShopStatus, :AliPayOnline, :ShopNo, :Country, :AliPayStatus, :IsChecked, :Address, :AliPayDesc
def initialize(province=nil, cityid=nil, shopname=nil, terminalcount=nil, city=nil, shopstatus=nil, alipayonline=nil, shopno=nil, country=nil, alipaystatus=nil, ischecked=nil, address=nil, alipaydesc=nil)
@Province = province
@CityId = cityid
@ShopName = shopname
@TerminalCount = terminalcount
@City = city
@ShopStatus = shopstatus
@AliPayOnline = alipayonline
@ShopNo = shopno
@Country = country
@AliPayStatus = alipaystatus
@IsChecked = ischecked
@Address = address
@AliPayDesc = alipaydesc
end
def deserialize(params)
@Province = params['Province']
@CityId = params['CityId']
@ShopName = params['ShopName']
@TerminalCount = params['TerminalCount']
@City = params['City']
@ShopStatus = params['ShopStatus']
@AliPayOnline = params['AliPayOnline']
@ShopNo = params['ShopNo']
@Country = params['Country']
@AliPayStatus = params['AliPayStatus']
@IsChecked = params['IsChecked']
@Address = params['Address']
@AliPayDesc = params['AliPayDesc']
end
end
# QueryContract请求参数结构体
class QueryContractRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param Channel: 指定渠道: wechat:微信支付 qqwallet:QQ钱包
# bank:网银支付 只有一个渠道时需要指定
# @type Channel: String
# @param ContractQueryMode: 枚举值:
# CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE:按 OutContractCode + ContractSceneId 查询
# CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE:按ChannelContractCode查询
# @type ContractQueryMode: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param OutContractCode: 业务签约合同协议号 当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 ,必填
# @type OutContractCode: String
# @param ContractSceneId: 签约场景ID,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 必填,在米大师侧托管后生成
# @type ContractSceneId: String
# @param ChannelContractCode: 米大师生成的协议号 ,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE 时必填
# @type ChannelContractCode: String
# @param ExternalContractData: 第三方渠道合约数据,为json字符串,与特定渠道有关
# @type ExternalContractData: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param UserType: USER_ID: 用户ID
# ANONYMOUS: 匿名类型 USER_ID
# 默认值为 USER_ID
# @type UserType: String
# @param MigrateMode: 签约代扣穿透查询存量数据迁移模式
# @type MigrateMode: String
# @param ContractMethod: 签约方式
# @type ContractMethod: String
attr_accessor :MidasAppId, :UserId, :Channel, :ContractQueryMode, :MidasSignature, :MidasSecretId, :SubAppId, :OutContractCode, :ContractSceneId, :ChannelContractCode, :ExternalContractData, :MidasEnvironment, :UserType, :MigrateMode, :ContractMethod
def initialize(midasappid=nil, userid=nil, channel=nil, contractquerymode=nil, midassignature=nil, midassecretid=nil, subappid=nil, outcontractcode=nil, contractsceneid=nil, channelcontractcode=nil, externalcontractdata=nil, midasenvironment=nil, usertype=nil, migratemode=nil, contractmethod=nil)
@MidasAppId = midasappid
@UserId = userid
@Channel = channel
@ContractQueryMode = contractquerymode
@MidasSignature = midassignature
@MidasSecretId = midassecretid
@SubAppId = subappid
@OutContractCode = outcontractcode
@ContractSceneId = contractsceneid
@ChannelContractCode = channelcontractcode
@ExternalContractData = externalcontractdata
@MidasEnvironment = midasenvironment
@UserType = usertype
@MigrateMode = migratemode
@ContractMethod = contractmethod
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@Channel = params['Channel']
@ContractQueryMode = params['ContractQueryMode']
@MidasSignature = params['MidasSignature']
@MidasSecretId = params['MidasSecretId']
@SubAppId = params['SubAppId']
@OutContractCode = params['OutContractCode']
@ContractSceneId = params['ContractSceneId']
@ChannelContractCode = params['ChannelContractCode']
@ExternalContractData = params['ExternalContractData']
@MidasEnvironment = params['MidasEnvironment']
@UserType = params['UserType']
@MigrateMode = params['MigrateMode']
@ContractMethod = params['ContractMethod']
end
end
# QueryContract返回参数结构体
class QueryContractResponse < TencentCloud::Common::AbstractModel
# @param ContractData: 签约数据
# @type ContractData: :class:`Tencentcloud::Cpdp.v20190820.models.ResponseQueryContract`
# @param Msg: 请求处理信息
# @type Msg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ContractData, :Msg, :RequestId
def initialize(contractdata=nil, msg=nil, requestid=nil)
@ContractData = contractdata
@Msg = msg
@RequestId = requestid
end
def deserialize(params)
unless params['ContractData'].nil?
@ContractData = ResponseQueryContract.new
@ContractData.deserialize(params['ContractData'])
end
@Msg = params['Msg']
@RequestId = params['RequestId']
end
end
# QueryCustAcctIdBalance请求参数结构体
class QueryCustAcctIdBalanceRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param QueryFlag: STRING(4),查询标志(2: 普通会员子账号; 3: 功能子账号)
# @type QueryFlag: String
# @param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param SubAcctNo: STRING(50),见证子账户的账号(若SelectFlag为2时,子账号必输)
# @type SubAcctNo: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :QueryFlag, :PageNum, :SubAcctNo, :ReservedMsg, :Profile
def initialize(mrchcode=nil, queryflag=nil, pagenum=nil, subacctno=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@QueryFlag = queryflag
@PageNum = pagenum
@SubAcctNo = subacctno
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@QueryFlag = params['QueryFlag']
@PageNum = params['PageNum']
@SubAcctNo = params['SubAcctNo']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryCustAcctIdBalance返回参数结构体
class QueryCustAcctIdBalanceResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING(10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0: 否; 1: 是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param AcctArray: 账户信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AcctArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :AcctArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, acctarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@AcctArray = acctarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['AcctArray'].nil?
@AcctArray = []
params['AcctArray'].each do |i|
acct_tmp = Acct.new
acct_tmp.deserialize(i)
@AcctArray << acct_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 成功申报材料查询数据
class QueryDeclareData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param DeclareId: 申报流水号
# @type DeclareId: String
# @param OriginalDeclareId: 原申报流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalDeclareId: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param SourceCurrency: 源币种
# @type SourceCurrency: String
# @param SourceAmount: 源金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SourceAmount: String
# @param TargetCurrency: 目的币种
# @type TargetCurrency: String
# @param TargetAmount: 目的金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TargetAmount: String
# @param TradeCode: 交易编码
# @type TradeCode: String
# @param Status: 状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
attr_accessor :MerchantId, :TransactionId, :DeclareId, :OriginalDeclareId, :PayerId, :SourceCurrency, :SourceAmount, :TargetCurrency, :TargetAmount, :TradeCode, :Status
def initialize(merchantid=nil, transactionid=nil, declareid=nil, originaldeclareid=nil, payerid=nil, sourcecurrency=nil, sourceamount=nil, targetcurrency=nil, targetamount=nil, tradecode=nil, status=nil)
@MerchantId = merchantid
@TransactionId = transactionid
@DeclareId = declareid
@OriginalDeclareId = originaldeclareid
@PayerId = payerid
@SourceCurrency = sourcecurrency
@SourceAmount = sourceamount
@TargetCurrency = targetcurrency
@TargetAmount = targetamount
@TradeCode = tradecode
@Status = status
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TransactionId = params['TransactionId']
@DeclareId = params['DeclareId']
@OriginalDeclareId = params['OriginalDeclareId']
@PayerId = params['PayerId']
@SourceCurrency = params['SourceCurrency']
@SourceAmount = params['SourceAmount']
@TargetCurrency = params['TargetCurrency']
@TargetAmount = params['TargetAmount']
@TradeCode = params['TradeCode']
@Status = params['Status']
end
end
# 成功申报材料查询结果
class QueryDeclareResult < TencentCloud::Common::AbstractModel
# @param Data: 成功申报材料查询数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryDeclareData`
# @param Code: 错误码
# @type Code: String
attr_accessor :Data, :Code
def initialize(data=nil, code=nil)
@Data = data
@Code = code
end
def deserialize(params)
unless params['Data'].nil?
@Data = QueryDeclareData.new
@Data.deserialize(params['Data'])
end
@Code = params['Code']
end
end
# QueryDownloadBillURL请求参数结构体
class QueryDownloadBillURLRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。
# @type MerchantAppId: String
# @param ChannelCode: 渠道编号。固定值:ZSB2B
# @type ChannelCode: String
# @param BillDate: 对账单日期,格式yyyyMMdd
# @type BillDate: String
attr_accessor :MerchantAppId, :ChannelCode, :BillDate
def initialize(merchantappid=nil, channelcode=nil, billdate=nil)
@MerchantAppId = merchantappid
@ChannelCode = channelcode
@BillDate = billdate
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@ChannelCode = params['ChannelCode']
@BillDate = params['BillDate']
end
end
# QueryDownloadBillURL返回参数结构体
class QueryDownloadBillURLResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。
# @type MerchantAppId: String
# @param DownloadUrl: 对账单下载地址。
# @type DownloadUrl: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :DownloadUrl, :RequestId
def initialize(merchantappid=nil, downloadurl=nil, requestid=nil)
@MerchantAppId = merchantappid
@DownloadUrl = downloadurl
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@DownloadUrl = params['DownloadUrl']
@RequestId = params['RequestId']
end
end
# 超额信息数据
class QueryExceedingInfoData < TencentCloud::Common::AbstractModel
# @param AgentId: 代理商ID。
# @type AgentId: String
# @param AgentName: 代理商名称。
# @type AgentName: String
# @param AnchorId: 主播ID。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AnchorId: String
# @param AnchorName: 主播名称。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AnchorName: String
# @param OrderId: 订单号。当入参Dimension为ORDER时,该字段才会有值。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param ExceedingType: 超额类型。目前支持 AGENT_EXCEED_100 和 ANCHOR_EXCEED_100_12 两种类型。
# @type ExceedingType: String
attr_accessor :AgentId, :AgentName, :AnchorId, :AnchorName, :OrderId, :ExceedingType
def initialize(agentid=nil, agentname=nil, anchorid=nil, anchorname=nil, orderid=nil, exceedingtype=nil)
@AgentId = agentid
@AgentName = agentname
@AnchorId = anchorid
@AnchorName = anchorname
@OrderId = orderid
@ExceedingType = exceedingtype
end
def deserialize(params)
@AgentId = params['AgentId']
@AgentName = params['AgentName']
@AnchorId = params['AnchorId']
@AnchorName = params['AnchorName']
@OrderId = params['OrderId']
@ExceedingType = params['ExceedingType']
end
end
# QueryExceedingInfo请求参数结构体
class QueryExceedingInfoRequest < TencentCloud::Common::AbstractModel
# @param TimeStr: 超额日期。格式为yyyy-MM-dd。
# @type TimeStr: String
# @param Dimension: 维度。目前支持三个维度: AGENT, ANCHOR, ORDER。不填默认使用AGENT维度。
# @type Dimension: String
# @param PageNumber: 分页信息。不填默认Index为1,Count为100。
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
attr_accessor :TimeStr, :Dimension, :PageNumber
def initialize(timestr=nil, dimension=nil, pagenumber=nil)
@TimeStr = timestr
@Dimension = dimension
@PageNumber = pagenumber
end
def deserialize(params)
@TimeStr = params['TimeStr']
@Dimension = params['Dimension']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
end
end
# QueryExceedingInfo返回参数结构体
class QueryExceedingInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 超额信息结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryExceedingInfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryExceedingInfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 超额信息结果
class QueryExceedingInfoResult < TencentCloud::Common::AbstractModel
# @param Count: 记录总数。
# @type Count: Integer
# @param Data: 超额信息数据。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: Array
attr_accessor :Count, :Data
def initialize(count=nil, data=nil)
@Count = count
@Data = data
end
def deserialize(params)
@Count = params['Count']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
queryexceedinginfodata_tmp = QueryExceedingInfoData.new
queryexceedinginfodata_tmp.deserialize(i)
@Data << queryexceedinginfodata_tmp
end
end
end
end
# QueryExchangeRate请求参数结构体
class QueryExchangeRateRequest < TencentCloud::Common::AbstractModel
# @param SourceCurrency: 源币种 (默认CNY)
# @type SourceCurrency: String
# @param TargetCurrency: 目的币种 (见常见问题-汇出币种)
# @type TargetCurrency: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :SourceCurrency, :TargetCurrency, :Profile
def initialize(sourcecurrency=nil, targetcurrency=nil, profile=nil)
@SourceCurrency = sourcecurrency
@TargetCurrency = targetcurrency
@Profile = profile
end
def deserialize(params)
@SourceCurrency = params['SourceCurrency']
@TargetCurrency = params['TargetCurrency']
@Profile = params['Profile']
end
end
# QueryExchangeRate返回参数结构体
class QueryExchangeRateResponse < TencentCloud::Common::AbstractModel
# @param Result: 查询汇率结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryExchangerateResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryExchangerateResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询汇率数据
class QueryExchangerateData < TencentCloud::Common::AbstractModel
# @param Rate: 汇率
# @type Rate: String
# @param SourceCurrency: 源币种
# @type SourceCurrency: String
# @param TargetCurrency: 目的币种
# @type TargetCurrency: String
# @param RateTime: 汇率时间
# @type RateTime: String
# @param BaseCurrency: 基准币种
# @type BaseCurrency: String
attr_accessor :Rate, :SourceCurrency, :TargetCurrency, :RateTime, :BaseCurrency
def initialize(rate=nil, sourcecurrency=nil, targetcurrency=nil, ratetime=nil, basecurrency=nil)
@Rate = rate
@SourceCurrency = sourcecurrency
@TargetCurrency = targetcurrency
@RateTime = ratetime
@BaseCurrency = basecurrency
end
def deserialize(params)
@Rate = params['Rate']
@SourceCurrency = params['SourceCurrency']
@TargetCurrency = params['TargetCurrency']
@RateTime = params['RateTime']
@BaseCurrency = params['BaseCurrency']
end
end
# 查询汇率结果
class QueryExchangerateResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 查询汇率数据数组
# @type Data: Array
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = []
params['Data'].each do |i|
queryexchangeratedata_tmp = QueryExchangerateData.new
queryexchangeratedata_tmp.deserialize(i)
@Data << queryexchangeratedata_tmp
end
end
end
end
# 查询第三方电子记账本余额返回值
class QueryExternalAccountBookResult < TencentCloud::Common::AbstractModel
# @param ChannelAccountBookId: 渠道记账本ID
# @type ChannelAccountBookId: String
# @param AvailableBalance: 可用余额。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AvailableBalance: String
# @param CollectMoneyAccountInfo: 电子记账本对外收款的账户信息。为JSON格式字符串(成功状态下返回)。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CollectMoneyAccountInfo: String
attr_accessor :ChannelAccountBookId, :AvailableBalance, :CollectMoneyAccountInfo
def initialize(channelaccountbookid=nil, availablebalance=nil, collectmoneyaccountinfo=nil)
@ChannelAccountBookId = channelaccountbookid
@AvailableBalance = availablebalance
@CollectMoneyAccountInfo = collectmoneyaccountinfo
end
def deserialize(params)
@ChannelAccountBookId = params['ChannelAccountBookId']
@AvailableBalance = params['AvailableBalance']
@CollectMoneyAccountInfo = params['CollectMoneyAccountInfo']
end
end
# QueryFinancialDataUrl请求参数结构体
class QueryFinancialDataUrlRequest < TencentCloud::Common::AbstractModel
# @param EndTime: 数据查询范围:结束时间 yyyy-MM-dd HH:mm:ss
# @type EndTime: String
# @param StartTime: 数据查询范围:开始时间 yyyy-MM-dd HH:mm:ss
# @type StartTime: String
# @param DataType: 数据类型:ADDED_INVOICE_REPORT 增值税开票数据,NATURAL_FINANCE_REPORT 自然人金融数据,
# NATURAL_FINANCE_REPORT_BY_TIME 按次报税数据导出,
# NATURAL_FINANCE_REPORT_STAT_BY_DAY 按日累计报税数据导出
# @type DataType: String
attr_accessor :EndTime, :StartTime, :DataType
def initialize(endtime=nil, starttime=nil, datatype=nil)
@EndTime = endtime
@StartTime = starttime
@DataType = datatype
end
def deserialize(params)
@EndTime = params['EndTime']
@StartTime = params['StartTime']
@DataType = params['DataType']
end
end
# QueryFinancialDataUrl返回参数结构体
class QueryFinancialDataUrlResponse < TencentCloud::Common::AbstractModel
# @param CosUrl: 下载链接
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CosUrl: String
# @param ExpireTime: 过期时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExpireTime: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CosUrl, :ExpireTime, :RequestId
def initialize(cosurl=nil, expiretime=nil, requestid=nil)
@CosUrl = cosurl
@ExpireTime = expiretime
@RequestId = requestid
end
def deserialize(params)
@CosUrl = params['CosUrl']
@ExpireTime = params['ExpireTime']
@RequestId = params['RequestId']
end
end
# QueryFlexAmountBeforeTax请求参数结构体
class QueryFlexAmountBeforeTaxRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param AmountAfterTax: 税后金额
# @type AmountAfterTax: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :IncomeType, :AmountAfterTax, :Environment
def initialize(payeeid=nil, incometype=nil, amountaftertax=nil, environment=nil)
@PayeeId = payeeid
@IncomeType = incometype
@AmountAfterTax = amountaftertax
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@IncomeType = params['IncomeType']
@AmountAfterTax = params['AmountAfterTax']
@Environment = params['Environment']
end
end
# QueryFlexAmountBeforeTax返回参数结构体
class QueryFlexAmountBeforeTaxResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.AmountBeforeTaxResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = AmountBeforeTaxResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexBillDownloadUrl请求参数结构体
class QueryFlexBillDownloadUrlRequest < TencentCloud::Common::AbstractModel
# @param BillDate: 对账单日期
# @type BillDate: String
# @param BillType: 对账单类型:FREEZE, SETTLEMENT,PAYMENT
# @type BillType: String
# @param ServiceProviderId: 服务商ID,如不填则查询平台级别对账单文件
# @type ServiceProviderId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :BillDate, :BillType, :ServiceProviderId, :Environment
def initialize(billdate=nil, billtype=nil, serviceproviderid=nil, environment=nil)
@BillDate = billdate
@BillType = billtype
@ServiceProviderId = serviceproviderid
@Environment = environment
end
def deserialize(params)
@BillDate = params['BillDate']
@BillType = params['BillType']
@ServiceProviderId = params['ServiceProviderId']
@Environment = params['Environment']
end
end
# QueryFlexBillDownloadUrl返回参数结构体
class QueryFlexBillDownloadUrlResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.FlexBillDownloadUrlResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = FlexBillDownloadUrlResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexFreezeOrderList请求参数结构体
class QueryFlexFreezeOrderListRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OperationType: 操作类型
# FREEZE:冻结
# UNFREEZE:解冻
# @type OperationType: String
# @param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss"
# @type StartTime: String
# @param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss"
# @type EndTime: String
# @param PageNumber: 分页
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :OperationType, :StartTime, :EndTime, :PageNumber, :Environment
def initialize(payeeid=nil, operationtype=nil, starttime=nil, endtime=nil, pagenumber=nil, environment=nil)
@PayeeId = payeeid
@OperationType = operationtype
@StartTime = starttime
@EndTime = endtime
@PageNumber = pagenumber
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@OperationType = params['OperationType']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@Environment = params['Environment']
end
end
# QueryFlexFreezeOrderList返回参数结构体
class QueryFlexFreezeOrderListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.FreezeOrders`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = FreezeOrders.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexOrderSummaryList请求参数结构体
class QueryFlexOrderSummaryListRequest < TencentCloud::Common::AbstractModel
# @param SummaryDate: 汇总日期:yyyy-MM-dd
# @type SummaryDate: String
# @param PageNumber: 分页
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param OrderType: 汇总订单类型:FREEZE, SETTLEMENT,PAYMENT
# @type OrderType: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :SummaryDate, :PageNumber, :OrderType, :PayeeId, :Environment
def initialize(summarydate=nil, pagenumber=nil, ordertype=nil, payeeid=nil, environment=nil)
@SummaryDate = summarydate
@PageNumber = pagenumber
@OrderType = ordertype
@PayeeId = payeeid
@Environment = environment
end
def deserialize(params)
@SummaryDate = params['SummaryDate']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@OrderType = params['OrderType']
@PayeeId = params['PayeeId']
@Environment = params['Environment']
end
end
# QueryFlexOrderSummaryList返回参数结构体
class QueryFlexOrderSummaryListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.OrderSummaries`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = OrderSummaries.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPayeeAccountBalance请求参数结构体
class QueryFlexPayeeAccountBalanceRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param SnapshotDate: 快照日期。格式yyyy-MM-dd
# @type SnapshotDate: String
attr_accessor :PayeeId, :IncomeType, :Environment, :SnapshotDate
def initialize(payeeid=nil, incometype=nil, environment=nil, snapshotdate=nil)
@PayeeId = payeeid
@IncomeType = incometype
@Environment = environment
@SnapshotDate = snapshotdate
end
def deserialize(params)
@PayeeId = params['PayeeId']
@IncomeType = params['IncomeType']
@Environment = params['Environment']
@SnapshotDate = params['SnapshotDate']
end
end
# QueryFlexPayeeAccountBalance返回参数结构体
class QueryFlexPayeeAccountBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PayeeAccountBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPayeeAccountInfo请求参数结构体
class QueryFlexPayeeAccountInfoRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 外部用户ID
# @type OutUserId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :OutUserId, :Environment
def initialize(payeeid=nil, outuserid=nil, environment=nil)
@PayeeId = payeeid
@OutUserId = outuserid
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
@Environment = params['Environment']
end
end
# QueryFlexPayeeAccountInfo返回参数结构体
class QueryFlexPayeeAccountInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountInfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PayeeAccountInfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPayeeAccountList请求参数结构体
class QueryFlexPayeeAccountListRequest < TencentCloud::Common::AbstractModel
# @param PropertyInfo: 账户属性信息
# @type PropertyInfo: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountPropertyInfo`
# @param StartTime: 开始时间
# @type StartTime: String
# @param EndTime: 结束时间
# @type EndTime: String
# @param PageNumber: 分页
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PropertyInfo, :StartTime, :EndTime, :PageNumber, :Environment
def initialize(propertyinfo=nil, starttime=nil, endtime=nil, pagenumber=nil, environment=nil)
@PropertyInfo = propertyinfo
@StartTime = starttime
@EndTime = endtime
@PageNumber = pagenumber
@Environment = environment
end
def deserialize(params)
unless params['PropertyInfo'].nil?
@PropertyInfo = PayeeAccountPropertyInfo.new
@PropertyInfo.deserialize(params['PropertyInfo'])
end
@StartTime = params['StartTime']
@EndTime = params['EndTime']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@Environment = params['Environment']
end
end
# QueryFlexPayeeAccountList返回参数结构体
class QueryFlexPayeeAccountListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeAccountInfos`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PayeeAccountInfos.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPayeeInfo请求参数结构体
class QueryFlexPayeeInfoRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 外部用户ID
# @type OutUserId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :OutUserId, :Environment
def initialize(payeeid=nil, outuserid=nil, environment=nil)
@PayeeId = payeeid
@OutUserId = outuserid
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
@Environment = params['Environment']
end
end
# QueryFlexPayeeInfo返回参数结构体
class QueryFlexPayeeInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayeeInfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PayeeInfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPaymentOrderList请求参数结构体
class QueryFlexPaymentOrderListRequest < TencentCloud::Common::AbstractModel
# @param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss"
# @type StartTime: String
# @param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss"
# @type EndTime: String
# @param PageNumber: 分页
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :StartTime, :EndTime, :PageNumber, :PayeeId, :Environment
def initialize(starttime=nil, endtime=nil, pagenumber=nil, payeeid=nil, environment=nil)
@StartTime = starttime
@EndTime = endtime
@PageNumber = pagenumber
@PayeeId = payeeid
@Environment = environment
end
def deserialize(params)
@StartTime = params['StartTime']
@EndTime = params['EndTime']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@PayeeId = params['PayeeId']
@Environment = params['Environment']
end
end
# QueryFlexPaymentOrderList返回参数结构体
class QueryFlexPaymentOrderListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PaymentOrders`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PaymentOrders.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPaymentOrderStatus请求参数结构体
class QueryFlexPaymentOrderStatusRequest < TencentCloud::Common::AbstractModel
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param OrderId: 订单ID
# @type OrderId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :OutOrderId, :OrderId, :Environment
def initialize(outorderid=nil, orderid=nil, environment=nil)
@OutOrderId = outorderid
@OrderId = orderid
@Environment = environment
end
def deserialize(params)
@OutOrderId = params['OutOrderId']
@OrderId = params['OrderId']
@Environment = params['Environment']
end
end
# QueryFlexPaymentOrderStatus返回参数结构体
class QueryFlexPaymentOrderStatusResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PaymentOrderStatusResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PaymentOrderStatusResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexPlatformAccountBalance请求参数结构体
class QueryFlexPlatformAccountBalanceRequest < TencentCloud::Common::AbstractModel
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
# @param SnapshotDate: 快照日期。格式yyyy-MM-dd
# @type SnapshotDate: String
attr_accessor :IncomeType, :Environment, :SnapshotDate
def initialize(incometype=nil, environment=nil, snapshotdate=nil)
@IncomeType = incometype
@Environment = environment
@SnapshotDate = snapshotdate
end
def deserialize(params)
@IncomeType = params['IncomeType']
@Environment = params['Environment']
@SnapshotDate = params['SnapshotDate']
end
end
# QueryFlexPlatformAccountBalance返回参数结构体
class QueryFlexPlatformAccountBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PlatformAccountBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = PlatformAccountBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexServiceProviderAccountBalance请求参数结构体
class QueryFlexServiceProviderAccountBalanceRequest < TencentCloud::Common::AbstractModel
# @param ServiceProviderId: 服务商ID
# @type ServiceProviderId: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :ServiceProviderId, :Environment
def initialize(serviceproviderid=nil, environment=nil)
@ServiceProviderId = serviceproviderid
@Environment = environment
end
def deserialize(params)
@ServiceProviderId = params['ServiceProviderId']
@Environment = params['Environment']
end
end
# QueryFlexServiceProviderAccountBalance返回参数结构体
class QueryFlexServiceProviderAccountBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ServiceProviderAccountBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = ServiceProviderAccountBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFlexSettlementOrderList请求参数结构体
class QueryFlexSettlementOrderListRequest < TencentCloud::Common::AbstractModel
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss"
# @type StartTime: String
# @param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss"
# @type EndTime: String
# @param PageNumber: 分页
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param OperationType: 操作类型。
# ENABLE_SETTLE: 正常结算
# DISABLE_SETTLE: 停用结算
# UNFREEZE_SETTLE: 解冻结算
# 若需要支持多个操作类型,则以;分隔
# @type OperationType: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# __test__:测试环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :PayeeId, :StartTime, :EndTime, :PageNumber, :OperationType, :Environment
def initialize(payeeid=nil, starttime=nil, endtime=nil, pagenumber=nil, operationtype=nil, environment=nil)
@PayeeId = payeeid
@StartTime = starttime
@EndTime = endtime
@PageNumber = pagenumber
@OperationType = operationtype
@Environment = environment
end
def deserialize(params)
@PayeeId = params['PayeeId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@OperationType = params['OperationType']
@Environment = params['Environment']
end
end
# QueryFlexSettlementOrderList返回参数结构体
class QueryFlexSettlementOrderListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。SUCCESS为成功,其他为失败
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.SettlementOrders`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = SettlementOrders.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryFundsTransactionDetails请求参数结构体
class QueryFundsTransactionDetailsRequest < TencentCloud::Common::AbstractModel
# @param QueryDateType: 查询的交易发生时间类型。
# __1__:当日
# __2__:历史
# @type QueryDateType: String
# @param QueryTranType: 查询的交易类型。
# __2__:提现/退款
# __3__:清分/充值
# @type QueryTranType: String
# @param BankAccountNumber: 父账户账号。
# _平安渠道为资金汇总账号_
# @type BankAccountNumber: String
# @param SubAccountNumber: 子账户账号。
# _平安渠道为见证子账户的账号_
# @type SubAccountNumber: String
# @param PageOffSet: 分页号, 起始值为1。
# @type PageOffSet: String
# @param QueryStartDate: 查询开始日期,格式:yyyyMMdd。
# __若是历史查询,则必输,当日查询时,不起作用;开始日期不能超过当前日期__
# @type QueryStartDate: String
# @param QueryEndDate: 查询终止日期,格式:yyyyMMdd。
# __若是历史查询,则必输,当日查询时,不起作用;终止日期不能超过当前日期__
# @type QueryEndDate: String
# @param MidasEnvironment: 环境名。
# __release__: 现网环境
# __sandbox__: 沙箱环境
# __development__: 开发环境
# _缺省: release_
# @type MidasEnvironment: String
attr_accessor :QueryDateType, :QueryTranType, :BankAccountNumber, :SubAccountNumber, :PageOffSet, :QueryStartDate, :QueryEndDate, :MidasEnvironment
def initialize(querydatetype=nil, querytrantype=nil, bankaccountnumber=nil, subaccountnumber=nil, pageoffset=nil, querystartdate=nil, queryenddate=nil, midasenvironment=nil)
@QueryDateType = querydatetype
@QueryTranType = querytrantype
@BankAccountNumber = bankaccountnumber
@SubAccountNumber = subaccountnumber
@PageOffSet = pageoffset
@QueryStartDate = querystartdate
@QueryEndDate = queryenddate
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@QueryDateType = params['QueryDateType']
@QueryTranType = params['QueryTranType']
@BankAccountNumber = params['BankAccountNumber']
@SubAccountNumber = params['SubAccountNumber']
@PageOffSet = params['PageOffSet']
@QueryStartDate = params['QueryStartDate']
@QueryEndDate = params['QueryEndDate']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryFundsTransactionDetails返回参数结构体
class QueryFundsTransactionDetailsResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryFundsTransactionDetailsResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryFundsTransactionDetailsResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询会员资金交易信息列表结果
class QueryFundsTransactionDetailsResult < TencentCloud::Common::AbstractModel
# @param ResultCount: 本次交易返回查询结果记录数。
# @type ResultCount: Integer
# @param TotalCount: 符合业务查询条件的记录总数。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param EndFlag: 结束标志。
# __0__:否
# __1__:是
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TranItemArray: 会员资金交易信息数组。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
attr_accessor :ResultCount, :TotalCount, :EndFlag, :TranItemArray
def initialize(resultcount=nil, totalcount=nil, endflag=nil, tranitemarray=nil)
@ResultCount = resultcount
@TotalCount = totalcount
@EndFlag = endflag
@TranItemArray = tranitemarray
end
def deserialize(params)
@ResultCount = params['ResultCount']
@TotalCount = params['TotalCount']
@EndFlag = params['EndFlag']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
fundstransactionitem_tmp = FundsTransactionItem.new
fundstransactionitem_tmp.deserialize(i)
@TranItemArray << fundstransactionitem_tmp
end
end
end
end
# QueryInvoice请求参数结构体
class QueryInvoiceRequest < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# 0 : 高灯
# 1 : 票易通
# @type InvoicePlatformId: Integer
# @param OrderId: 订单号
# @type OrderId: String
# @param OrderSn: 业务开票号
# @type OrderSn: String
# @param IsRed: 发票种类:
# 0:蓝票
# 1:红票【该字段默认为0, 如果需要查询红票信息,本字段必须传1,否则可能查询不到需要的发票信息】。
# @type IsRed: Integer
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
# @param InvoiceChannel: 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
# @type InvoiceChannel: Integer
# @param SellerTaxpayerNum: 当渠道为线下渠道时,必填
# @type SellerTaxpayerNum: String
attr_accessor :InvoicePlatformId, :OrderId, :OrderSn, :IsRed, :Profile, :InvoiceChannel, :SellerTaxpayerNum
def initialize(invoiceplatformid=nil, orderid=nil, ordersn=nil, isred=nil, profile=nil, invoicechannel=nil, sellertaxpayernum=nil)
@InvoicePlatformId = invoiceplatformid
@OrderId = orderid
@OrderSn = ordersn
@IsRed = isred
@Profile = profile
@InvoiceChannel = invoicechannel
@SellerTaxpayerNum = sellertaxpayernum
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@OrderId = params['OrderId']
@OrderSn = params['OrderSn']
@IsRed = params['IsRed']
@Profile = params['Profile']
@InvoiceChannel = params['InvoiceChannel']
@SellerTaxpayerNum = params['SellerTaxpayerNum']
end
end
# QueryInvoice返回参数结构体
class QueryInvoiceResponse < TencentCloud::Common::AbstractModel
# @param Result: 发票查询结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryInvoiceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryInvoiceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询发票结果
class QueryInvoiceResult < TencentCloud::Common::AbstractModel
# @param Message: 错误消息
# @type Message: String
# @param Code: 错误码
# @type Code: Integer
# @param Data: 查询发票数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryInvoiceResultData`
# @param Order: 订单数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Order: :class:`Tencentcloud::Cpdp.v20190820.models.Order`
attr_accessor :Message, :Code, :Data, :Order
def initialize(message=nil, code=nil, data=nil, order=nil)
@Message = message
@Code = code
@Data = data
@Order = order
end
def deserialize(params)
@Message = params['Message']
@Code = params['Code']
unless params['Data'].nil?
@Data = QueryInvoiceResultData.new
@Data.deserialize(params['Data'])
end
unless params['Order'].nil?
@Order = Order.new
@Order.deserialize(params['Order'])
end
end
end
# 查询发票结果数据
class QueryInvoiceResultData < TencentCloud::Common::AbstractModel
# @param OrderId: 订单号
# @type OrderId: String
# @param OrderSn: 业务开票号
# @type OrderSn: String
# @param Status: 发票状态
# @type Status: Integer
# @param Message: 开票描述
# @type Message: String
# @param TicketDate: 开票日期
# @type TicketDate: String
# @param TicketSn: 发票号码
# @type TicketSn: String
# @param TicketCode: 发票代码
# @type TicketCode: String
# @param CheckCode: 检验码
# @type CheckCode: String
# @param AmountWithTax: 含税金额(元)
# @type AmountWithTax: String
# @param AmountWithoutTax: 不含税金额(元)
# @type AmountWithoutTax: String
# @param TaxAmount: 税额(元)
# @type TaxAmount: String
# @param IsRedWashed: 是否被红冲
# @type IsRedWashed: Integer
# @param PdfUrl: pdf地址
# @type PdfUrl: String
# @param ImageUrl: png地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ImageUrl: String
attr_accessor :OrderId, :OrderSn, :Status, :Message, :TicketDate, :TicketSn, :TicketCode, :CheckCode, :AmountWithTax, :AmountWithoutTax, :TaxAmount, :IsRedWashed, :PdfUrl, :ImageUrl
def initialize(orderid=nil, ordersn=nil, status=nil, message=nil, ticketdate=nil, ticketsn=nil, ticketcode=nil, checkcode=nil, amountwithtax=nil, amountwithouttax=nil, taxamount=nil, isredwashed=nil, pdfurl=nil, imageurl=nil)
@OrderId = orderid
@OrderSn = ordersn
@Status = status
@Message = message
@TicketDate = ticketdate
@TicketSn = ticketsn
@TicketCode = ticketcode
@CheckCode = checkcode
@AmountWithTax = amountwithtax
@AmountWithoutTax = amountwithouttax
@TaxAmount = taxamount
@IsRedWashed = isredwashed
@PdfUrl = pdfurl
@ImageUrl = imageurl
end
def deserialize(params)
@OrderId = params['OrderId']
@OrderSn = params['OrderSn']
@Status = params['Status']
@Message = params['Message']
@TicketDate = params['TicketDate']
@TicketSn = params['TicketSn']
@TicketCode = params['TicketCode']
@CheckCode = params['CheckCode']
@AmountWithTax = params['AmountWithTax']
@AmountWithoutTax = params['AmountWithoutTax']
@TaxAmount = params['TaxAmount']
@IsRedWashed = params['IsRedWashed']
@PdfUrl = params['PdfUrl']
@ImageUrl = params['ImageUrl']
end
end
# QueryInvoiceV2请求参数结构体
class QueryInvoiceV2Request < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# 0 : 高灯
# 1 : 票易通
# @type InvoicePlatformId: Integer
# @param OrderId: 订单号
# @type OrderId: String
# @param IsRed: 发票种类:
# 0:蓝票
# 1:红票【该字段默认为0, 如果需要查询红票信息,本字段必须传1,否则可能查询不到需要的发票信息】。
# @type IsRed: Integer
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
# @param InvoiceChannel: 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
# @type InvoiceChannel: Integer
# @param SellerTaxpayerNum: 当渠道为线下渠道时,必填
# @type SellerTaxpayerNum: String
attr_accessor :InvoicePlatformId, :OrderId, :IsRed, :Profile, :InvoiceChannel, :SellerTaxpayerNum
def initialize(invoiceplatformid=nil, orderid=nil, isred=nil, profile=nil, invoicechannel=nil, sellertaxpayernum=nil)
@InvoicePlatformId = invoiceplatformid
@OrderId = orderid
@IsRed = isred
@Profile = profile
@InvoiceChannel = invoicechannel
@SellerTaxpayerNum = sellertaxpayernum
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@OrderId = params['OrderId']
@IsRed = params['IsRed']
@Profile = params['Profile']
@InvoiceChannel = params['InvoiceChannel']
@SellerTaxpayerNum = params['SellerTaxpayerNum']
end
end
# QueryInvoiceV2返回参数结构体
class QueryInvoiceV2Response < TencentCloud::Common::AbstractModel
# @param Result: 发票查询结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryInvoiceResultData`
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :ErrCode, :ErrMessage, :RequestId
def initialize(result=nil, errcode=nil, errmessage=nil, requestid=nil)
@Result = result
@ErrCode = errcode
@ErrMessage = errmessage
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryInvoiceResultData.new
@Result.deserialize(params['Result'])
end
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@RequestId = params['RequestId']
end
end
# 聚鑫商户余额查询输出项
class QueryItem < TencentCloud::Common::AbstractModel
# @param SubAcctNo: 子商户账户
# @type SubAcctNo: String
# @param SubAcctProperty: 子账户属性
# 1:普通会员子账号
# 2:挂账子账号
# 3:手续费子账号
# 4:利息子账号
# 5:平台担保子账号
# @type SubAcctProperty: String
# @param SubMchId: 业务平台的子商户Id,唯一
# @type SubMchId: String
# @param SubAcctName: 子账户名称
# @type SubAcctName: String
# @param AcctAvailBal: 账户可用余额
# @type AcctAvailBal: String
# @param CashAmt: 可提现金额
# @type CashAmt: String
# @param MaintenanceDate: 维护日期 开户日期或修改日期
# @type MaintenanceDate: String
attr_accessor :SubAcctNo, :SubAcctProperty, :SubMchId, :SubAcctName, :AcctAvailBal, :CashAmt, :MaintenanceDate
def initialize(subacctno=nil, subacctproperty=nil, submchid=nil, subacctname=nil, acctavailbal=nil, cashamt=nil, maintenancedate=nil)
@SubAcctNo = subacctno
@SubAcctProperty = subacctproperty
@SubMchId = submchid
@SubAcctName = subacctname
@AcctAvailBal = acctavailbal
@CashAmt = cashamt
@MaintenanceDate = maintenancedate
end
def deserialize(params)
@SubAcctNo = params['SubAcctNo']
@SubAcctProperty = params['SubAcctProperty']
@SubMchId = params['SubMchId']
@SubAcctName = params['SubAcctName']
@AcctAvailBal = params['AcctAvailBal']
@CashAmt = params['CashAmt']
@MaintenanceDate = params['MaintenanceDate']
end
end
# QueryMaliciousRegistration请求参数结构体
class QueryMaliciousRegistrationRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户ID,调用方使用的商户号信息,与商户主体一一对应
# @type MerchantId: String
# @param MerchantName: 商户名称
# @type MerchantName: String
# @param CompanyName: 企业工商注册标准名称
# @type CompanyName: String
# @param RegAddress: 注册地址
# @type RegAddress: String
# @param RegTime: 商户进件Unix时间,单位秒(非企业注册工商时间)
# @type RegTime: Integer
# @param USCI: 统一社会信用代码
# @type USCI: String
# @param RegNumber: 工商注册码,匹配优先级为Usci>RegNumber>CompanyName
# @type RegNumber: String
# @param EncryptedPhoneNumber: 手机号码32位MD5加密结果,全大写,格式为0086-13812345678
# @type EncryptedPhoneNumber: String
# @param EncryptedEmailAddress: 邮箱32位MD5加密结果,全大写
# @type EncryptedEmailAddress: String
# @param EncryptedPersonId: 身份证MD5加密结果,最后一位x大写
# @type EncryptedPersonId: String
# @param Ip: 填写信息设备的IP地址
# @type Ip: String
# @param Channel: 进件渠道号,客户自行编码即可
# @type Channel: String
attr_accessor :MerchantId, :MerchantName, :CompanyName, :RegAddress, :RegTime, :USCI, :RegNumber, :EncryptedPhoneNumber, :EncryptedEmailAddress, :EncryptedPersonId, :Ip, :Channel
def initialize(merchantid=nil, merchantname=nil, companyname=nil, regaddress=nil, regtime=nil, usci=nil, regnumber=nil, encryptedphonenumber=nil, encryptedemailaddress=nil, encryptedpersonid=nil, ip=nil, channel=nil)
@MerchantId = merchantid
@MerchantName = merchantname
@CompanyName = companyname
@RegAddress = regaddress
@RegTime = regtime
@USCI = usci
@RegNumber = regnumber
@EncryptedPhoneNumber = encryptedphonenumber
@EncryptedEmailAddress = encryptedemailaddress
@EncryptedPersonId = encryptedpersonid
@Ip = ip
@Channel = channel
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantName = params['MerchantName']
@CompanyName = params['CompanyName']
@RegAddress = params['RegAddress']
@RegTime = params['RegTime']
@USCI = params['USCI']
@RegNumber = params['RegNumber']
@EncryptedPhoneNumber = params['EncryptedPhoneNumber']
@EncryptedEmailAddress = params['EncryptedEmailAddress']
@EncryptedPersonId = params['EncryptedPersonId']
@Ip = params['Ip']
@Channel = params['Channel']
end
end
# QueryMaliciousRegistration返回参数结构体
class QueryMaliciousRegistrationResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMsg: 错误消息
# @type ErrMsg: String
# @param Result: 商户风险信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.MerchantRiskInfo`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMsg, :Result, :RequestId
def initialize(errcode=nil, errmsg=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMsg = errmsg
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMsg = params['ErrMsg']
unless params['Result'].nil?
@Result = MerchantRiskInfo.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryMemberBind请求参数结构体
class QueryMemberBindRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param QueryFlag: STRING(4),查询标志(1: 全部会员; 2: 单个会员; 3: 单个会员的证件信息)
# @type QueryFlag: String
# @param PageNum: STRING (10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后)
# @type PageNum: String
# @param SubAcctNo: STRING(50),见证子账户的账号(若SelectFlag为2或3时,子账户账号必输)
# @type SubAcctNo: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :QueryFlag, :PageNum, :SubAcctNo, :ReservedMsg, :Profile
def initialize(mrchcode=nil, queryflag=nil, pagenum=nil, subacctno=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@QueryFlag = queryflag
@PageNum = pagenum
@SubAcctNo = subacctno
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@QueryFlag = params['QueryFlag']
@PageNum = params['PageNum']
@SubAcctNo = params['SubAcctNo']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryMemberBind返回参数结构体
class QueryMemberBindResponse < TencentCloud::Common::AbstractModel
# @param ResultNum: STRING (10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param StartRecordNo: STRING(30),起始记录号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartRecordNo: String
# @param EndFlag: STRING(2),结束标志(0: 否; 1: 是)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TotalNum: STRING (10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ResultNum, :StartRecordNo, :EndFlag, :TotalNum, :TranItemArray, :ReservedMsg, :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :RequestId
def initialize(resultnum=nil, startrecordno=nil, endflag=nil, totalnum=nil, tranitemarray=nil, reservedmsg=nil, txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, requestid=nil)
@ResultNum = resultnum
@StartRecordNo = startrecordno
@EndFlag = endflag
@TotalNum = totalnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@RequestId = requestid
end
def deserialize(params)
@ResultNum = params['ResultNum']
@StartRecordNo = params['StartRecordNo']
@EndFlag = params['EndFlag']
@TotalNum = params['TotalNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
tranitem_tmp = TranItem.new
tranitem_tmp.deserialize(i)
@TranItemArray << tranitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@RequestId = params['RequestId']
end
end
# QueryMemberTransactionDetails请求参数结构体
class QueryMemberTransactionDetailsRequest < TencentCloud::Common::AbstractModel
# @param QueryDateType: 查询的交易发生时间类型。
# __1__:当日
# __2__:历史
# @type QueryDateType: String
# @param QueryTranType: 查询的交易类型。
# __1__:全部
# __2__:转出
# __3__:转入
# @type QueryTranType: String
# @param BankAccountNumber: 父账户账号。
# _平安渠道为资金汇总账号_
# @type BankAccountNumber: String
# @param SubAccountNumber: 子账户账号。
# _平安渠道为见证子账户的账号_
# @type SubAccountNumber: String
# @param PageOffSet: 分页号, 起始值为1。
# @type PageOffSet: String
# @param QueryStartDate: 查询开始日期,格式:yyyyMMdd。
# __若是历史查询,则必输,当日查询时,不起作用;开始日期不能超过当前日期__
# @type QueryStartDate: String
# @param QueryEndDate: 查询终止日期,格式:yyyyMMdd。
# __若是历史查询,则必输,当日查询时,不起作用;终止日期不能超过当前日期__
# @type QueryEndDate: String
# @param MidasEnvironment: 环境名。
# __release__: 现网环境
# __sandbox__: 沙箱环境
# __development__: 开发环境
# _缺省: release_
# @type MidasEnvironment: String
attr_accessor :QueryDateType, :QueryTranType, :BankAccountNumber, :SubAccountNumber, :PageOffSet, :QueryStartDate, :QueryEndDate, :MidasEnvironment
def initialize(querydatetype=nil, querytrantype=nil, bankaccountnumber=nil, subaccountnumber=nil, pageoffset=nil, querystartdate=nil, queryenddate=nil, midasenvironment=nil)
@QueryDateType = querydatetype
@QueryTranType = querytrantype
@BankAccountNumber = bankaccountnumber
@SubAccountNumber = subaccountnumber
@PageOffSet = pageoffset
@QueryStartDate = querystartdate
@QueryEndDate = queryenddate
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@QueryDateType = params['QueryDateType']
@QueryTranType = params['QueryTranType']
@BankAccountNumber = params['BankAccountNumber']
@SubAccountNumber = params['SubAccountNumber']
@PageOffSet = params['PageOffSet']
@QueryStartDate = params['QueryStartDate']
@QueryEndDate = params['QueryEndDate']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryMemberTransactionDetails返回参数结构体
class QueryMemberTransactionDetailsResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryMemberTransactionDetailsResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryMemberTransactionDetailsResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 聚鑫-查询会员间交易信息列表结果
class QueryMemberTransactionDetailsResult < TencentCloud::Common::AbstractModel
# @param ResultCount: 本次交易返回查询结果记录数。
# @type ResultCount: Integer
# @param TotalCount: 符合业务查询条件的记录总数。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalCount: Integer
# @param EndFlag: 结束标志。
# __0__:否
# __1__:是
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndFlag: String
# @param TranItemArray: 会员间交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
attr_accessor :ResultCount, :TotalCount, :EndFlag, :TranItemArray
def initialize(resultcount=nil, totalcount=nil, endflag=nil, tranitemarray=nil)
@ResultCount = resultcount
@TotalCount = totalcount
@EndFlag = endflag
@TranItemArray = tranitemarray
end
def deserialize(params)
@ResultCount = params['ResultCount']
@TotalCount = params['TotalCount']
@EndFlag = params['EndFlag']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
membertransactionitem_tmp = MemberTransactionItem.new
membertransactionitem_tmp.deserialize(i)
@TranItemArray << membertransactionitem_tmp
end
end
end
end
# QueryMemberTransaction请求参数结构体
class QueryMemberTransactionRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1: 下单预支付; 2: 确认并付款; 3: 退款; 6: 直接支付T+1; 9: 直接支付T+0)
# @type FunctionFlag: String
# @param OutSubAcctNo: STRING(50),转出方的见证子账户的账号(付款方)
# @type OutSubAcctNo: String
# @param OutMemberCode: STRING(32),转出方的交易网会员代码
# @type OutMemberCode: String
# @param OutSubAcctName: STRING(150),转出方的见证子账户的户名(户名是绑卡时上送的账户名称,如果未绑卡,就送OpenCustAcctId接口上送的用户昵称UserNickname)
# @type OutSubAcctName: String
# @param InSubAcctNo: STRING(50),转入方的见证子账户的账号(收款方)
# @type InSubAcctNo: String
# @param InMemberCode: STRING(32),转入方的交易网会员代码
# @type InMemberCode: String
# @param InSubAcctName: STRING(150),转入方的见证子账户的户名(户名是绑卡时上送的账户名称,如果未绑卡,就送OpenCustAcctId接口上送的用户昵称UserNickname)
# @type InSubAcctName: String
# @param TranAmt: STRING(20),交易金额
# @type TranAmt: String
# @param TranFee: STRING(20),交易费用(平台收取交易费用)
# @type TranFee: String
# @param TranType: STRING(20),交易类型(01: 普通交易)
# @type TranType: String
# @param Ccy: STRING(3),币种(默认: RMB)
# @type Ccy: String
# @param OrderNo: STRING(50),订单号(功能标志为1,2,3时必输)
# @type OrderNo: String
# @param OrderContent: STRING(500),订单内容
# @type OrderContent: String
# @param Remark: STRING(300),备注(建议可送订单号,可在对账文件的备注字段获取到)
# @type Remark: String
# @param ReservedMsg: STRING(1027),保留域(若需短信验证码则此项必输短信指令号)
# @type ReservedMsg: String
# @param WebSign: STRING(300),网银签名(若需短信验证码则此项必输)
# @type WebSign: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :OutSubAcctNo, :OutMemberCode, :OutSubAcctName, :InSubAcctNo, :InMemberCode, :InSubAcctName, :TranAmt, :TranFee, :TranType, :Ccy, :OrderNo, :OrderContent, :Remark, :ReservedMsg, :WebSign, :Profile
def initialize(mrchcode=nil, functionflag=nil, outsubacctno=nil, outmembercode=nil, outsubacctname=nil, insubacctno=nil, inmembercode=nil, insubacctname=nil, tranamt=nil, tranfee=nil, trantype=nil, ccy=nil, orderno=nil, ordercontent=nil, remark=nil, reservedmsg=nil, websign=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@OutSubAcctNo = outsubacctno
@OutMemberCode = outmembercode
@OutSubAcctName = outsubacctname
@InSubAcctNo = insubacctno
@InMemberCode = inmembercode
@InSubAcctName = insubacctname
@TranAmt = tranamt
@TranFee = tranfee
@TranType = trantype
@Ccy = ccy
@OrderNo = orderno
@OrderContent = ordercontent
@Remark = remark
@ReservedMsg = reservedmsg
@WebSign = websign
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@OutSubAcctNo = params['OutSubAcctNo']
@OutMemberCode = params['OutMemberCode']
@OutSubAcctName = params['OutSubAcctName']
@InSubAcctNo = params['InSubAcctNo']
@InMemberCode = params['InMemberCode']
@InSubAcctName = params['InSubAcctName']
@TranAmt = params['TranAmt']
@TranFee = params['TranFee']
@TranType = params['TranType']
@Ccy = params['Ccy']
@OrderNo = params['OrderNo']
@OrderContent = params['OrderContent']
@Remark = params['Remark']
@ReservedMsg = params['ReservedMsg']
@WebSign = params['WebSign']
@Profile = params['Profile']
end
end
# QueryMemberTransaction返回参数结构体
class QueryMemberTransactionResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),见证系统流水号(即电商见证宝系统生成的流水号,可关联具体一笔请求)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 对接账户余额查询数据
class QueryMerchantBalanceData < TencentCloud::Common::AbstractModel
# @param Currency: 余额币种
# @type Currency: String
# @param Balance: 账户余额
# @type Balance: String
# @param MerchantId: 商户ID
# @type MerchantId: String
attr_accessor :Currency, :Balance, :MerchantId
def initialize(currency=nil, balance=nil, merchantid=nil)
@Currency = currency
@Balance = balance
@MerchantId = merchantid
end
def deserialize(params)
@Currency = params['Currency']
@Balance = params['Balance']
@MerchantId = params['MerchantId']
end
end
# QueryMerchantBalance请求参数结构体
class QueryMerchantBalanceRequest < TencentCloud::Common::AbstractModel
# @param Currency: 余额币种
# @type Currency: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :Currency, :Profile
def initialize(currency=nil, profile=nil)
@Currency = currency
@Profile = profile
end
def deserialize(params)
@Currency = params['Currency']
@Profile = params['Profile']
end
end
# QueryMerchantBalance返回参数结构体
class QueryMerchantBalanceResponse < TencentCloud::Common::AbstractModel
# @param Result: 对接方账户余额查询结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryMerchantBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryMerchantBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 对接账户余额查询结果
class QueryMerchantBalanceResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 对接账户余额查询数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryMerchantBalanceData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = QueryMerchantBalanceData.new
@Data.deserialize(params['Data'])
end
end
end
# QueryMerchantClassification请求参数结构体
class QueryMerchantClassificationRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Profile
def initialize(openid=nil, openkey=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Profile = params['Profile']
end
end
# QueryMerchantClassification返回参数结构体
class QueryMerchantClassificationResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 查询商户分类响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
merchantclassificationid_tmp = MerchantClassificationId.new
merchantclassificationid_tmp.deserialize(i)
@Result << merchantclassificationid_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryMerchantInfoForManagement请求参数结构体
class QueryMerchantInfoForManagementRequest < TencentCloud::Common::AbstractModel
# @param InvoicePlatformId: 开票平台ID
# @type InvoicePlatformId: Integer
# @param Offset: 页码
# @type Offset: Integer
# @param Limit: 页大小
# @type Limit: Integer
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
attr_accessor :InvoicePlatformId, :Offset, :Limit, :Profile
def initialize(invoiceplatformid=nil, offset=nil, limit=nil, profile=nil)
@InvoicePlatformId = invoiceplatformid
@Offset = offset
@Limit = limit
@Profile = profile
end
def deserialize(params)
@InvoicePlatformId = params['InvoicePlatformId']
@Offset = params['Offset']
@Limit = params['Limit']
@Profile = params['Profile']
end
end
# QueryMerchantInfoForManagement返回参数结构体
class QueryMerchantInfoForManagementResponse < TencentCloud::Common::AbstractModel
# @param Result: 商户结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.MerchantManagementResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = MerchantManagementResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryMerchantOrder请求参数结构体
class QueryMerchantOrderRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的AppId。
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。平台唯一订单号。
# @type OrderNo: String
attr_accessor :MerchantAppId, :OrderNo
def initialize(merchantappid=nil, orderno=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
end
end
# QueryMerchantOrder返回参数结构体
class QueryMerchantOrderResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的AppId。
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。平台唯一订单号。
# @type OrderNo: String
# @param Status: 订单支付状态。0-下单失败 1-下单成功未支付 2-支付成功 3-支付失败 4-退款中 5-退款成功 6-退款失败 7-待付款 8-待确认。
# @type Status: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :OrderNo, :Status, :RequestId
def initialize(merchantappid=nil, orderno=nil, status=nil, requestid=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
@Status = status
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
@Status = params['Status']
@RequestId = params['RequestId']
end
end
# QueryMerchantPayWayList请求参数结构体
class QueryMerchantPayWayListRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param PayType: 支付类型,逗号分隔。1-现金,2-主扫,3-被扫,4-JSAPI。
# @type PayType: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :PayType, :Profile
def initialize(openid=nil, openkey=nil, paytype=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@PayType = paytype
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@PayType = params['PayType']
@Profile = params['Profile']
end
end
# QueryMerchantPayWayList返回参数结构体
class QueryMerchantPayWayListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 查询商户支付方式列表结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = []
params['Result'].each do |i|
merchantpaywaydata_tmp = MerchantPayWayData.new
merchantpaywaydata_tmp.deserialize(i)
@Result << merchantpaywaydata_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryMerchant请求参数结构体
class QueryMerchantRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的 AppId
# @type MerchantAppId: String
attr_accessor :MerchantAppId
def initialize(merchantappid=nil)
@MerchantAppId = merchantappid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
end
end
# QueryMerchant返回参数结构体
class QueryMerchantResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 分配给商户的 AppId,该 AppId 为后续各项 交易的商户标识。
# @type MerchantAppId: String
# @param MerchantName: 收款商户名称。
# @type MerchantName: String
# @param BusinessPayFlag: B2B 支付标志。是否开通 B2B 支付, 1:开通 0:不开通。
# @type BusinessPayFlag: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :MerchantName, :BusinessPayFlag, :RequestId
def initialize(merchantappid=nil, merchantname=nil, businesspayflag=nil, requestid=nil)
@MerchantAppId = merchantappid
@MerchantName = merchantname
@BusinessPayFlag = businesspayflag
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@MerchantName = params['MerchantName']
@BusinessPayFlag = params['BusinessPayFlag']
@RequestId = params['RequestId']
end
end
# QueryOpenBankBankAccountBalance请求参数结构体
class QueryOpenBankBankAccountBalanceRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 云企付渠道子商户号。入驻在渠道商户下的子商户ID,如付款方的商户ID,对应创建支付订单中接口参数中的PayerInfo中的payerId。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式,如
# __EBANK_PAYMENT__:ebank付款
# __OPENBANK_PAYMENT__: openbank付款
# @type PaymentMethod: String
# @param BindSerialNo: 绑卡序列号,银行账户唯一ID,区分多卡或多账户的场景
# @type BindSerialNo: String
# @param Environment: 环境类型
# release:生产环境
# sandbox:沙箱环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :BindSerialNo, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, bindserialno=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BindSerialNo = bindserialno
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BindSerialNo = params['BindSerialNo']
@Environment = params['Environment']
end
end
# QueryOpenBankBankAccountBalance返回参数结构体
class QueryOpenBankBankAccountBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 账户余额查询响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankBankAccountBalanceResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankBankAccountBalanceResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-查询账户余额
class QueryOpenBankBankAccountBalanceResult < TencentCloud::Common::AbstractModel
# @param TotalBalance: 总余额,单位分
# @type TotalBalance: String
# @param YesterdayBalance: 昨日余额,单位分
# @type YesterdayBalance: String
attr_accessor :TotalBalance, :YesterdayBalance
def initialize(totalbalance=nil, yesterdaybalance=nil)
@TotalBalance = totalbalance
@YesterdayBalance = yesterdaybalance
end
def deserialize(params)
@TotalBalance = params['TotalBalance']
@YesterdayBalance = params['YesterdayBalance']
end
end
# QueryOpenBankBankBranchList请求参数结构体
class QueryOpenBankBankBranchListRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# __EBANK_PAYMENT__:ebank付款
# __OPENBANK_PAYMENT__: openbank付款
# @type PaymentMethod: String
# @param BankBranchName: 支行名称。
# @type BankBranchName: String
# @param BankAbbreviation: 银行简称。
# @type BankAbbreviation: String
# @param PageNumber: 页码。Index和Count必须大于等于1。Count建议不超过100。
# @type PageNumber: :class:`Tencentcloud::Cpdp.v20190820.models.Paging`
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PaymentMethod, :BankBranchName, :BankAbbreviation, :PageNumber, :Environment
def initialize(channelmerchantid=nil, channelname=nil, paymentmethod=nil, bankbranchname=nil, bankabbreviation=nil, pagenumber=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BankBranchName = bankbranchname
@BankAbbreviation = bankabbreviation
@PageNumber = pagenumber
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BankBranchName = params['BankBranchName']
@BankAbbreviation = params['BankAbbreviation']
unless params['PageNumber'].nil?
@PageNumber = Paging.new
@PageNumber.deserialize(params['PageNumber'])
end
@Environment = params['Environment']
end
end
# QueryOpenBankBankBranchList返回参数结构体
class QueryOpenBankBankBranchListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankBankBranchListResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankBankBranchListResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询联行号返回结果
class QueryOpenBankBankBranchListResult < TencentCloud::Common::AbstractModel
# @param BankBranchList: 支行列表。
# @type BankBranchList: Array
# @param Count: 列表总数。
# @type Count: Integer
attr_accessor :BankBranchList, :Count
def initialize(bankbranchlist=nil, count=nil)
@BankBranchList = bankbranchlist
@Count = count
end
def deserialize(params)
unless params['BankBranchList'].nil?
@BankBranchList = []
params['BankBranchList'].each do |i|
bankbranchinfo_tmp = BankBranchInfo.new
bankbranchinfo_tmp.deserialize(i)
@BankBranchList << bankbranchinfo_tmp
end
end
@Count = params['Count']
end
end
# 云企付-分页查询对账单数据结果
class QueryOpenBankBillData < TencentCloud::Common::AbstractModel
# @param BillDate: 交易日期
# @type BillDate: String
# @param Channel: 渠道编码
# @type Channel: String
# @param SubChannel: 二级渠道
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubChannel: String
# @param ParentMerchantId: 系统父商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ParentMerchantId: String
# @param OutMerchantId: 外部商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutMerchantId: String
# @param MerchantId: 系统商户号
# @type MerchantId: String
# @param EndMerchantId: 第三方商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndMerchantId: String
# @param OutTradeNo: 外部订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutTradeNo: String
# @param TradeNo: 系统订单号
# @type TradeNo: String
# @param EndTradeNo: 第三方订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndTradeNo: String
# @param PaymentType: 收付类型,PAYMENT:付款,INCOME:收款
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentType: String
# @param BusinessType: 业务类型,WITHDRAW:提现,PAY:支付,RECHARGE:充值,TRANSFER:转账,REFUND:退款
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessType: String
# @param TradeTime: 发起交易时间,格式yyyy-MM-dd HH:mm:ss
# @type TradeTime: String
# @param FinishTime: 交易完成时间,格式yyyy-MM-dd HH:mm:ss
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinishTime: String
# @param TradeStatus: 交易状态,0:未知,1:成功,2:失败
# @type TradeStatus: String
# @param CheckStatus: 对账状态,1:成功,2:失败 3:长账 4:短账
# @type CheckStatus: String
# @param CheckFailReason: 对账失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CheckFailReason: String
# @param OrderAmount: 交易金额(元)
# @type OrderAmount: String
# @param ServiceFee: 服务费(元)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ServiceFee: String
# @param PayeeAccount: 收款人账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayeeAccount: String
# @param PayeeName: 收款人名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayeeName: String
# @param PayerAccount: 付款人账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayerAccount: String
# @param PayerName: 付款人名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayerName: String
# @param Description: 支付信息描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Description: String
attr_accessor :BillDate, :Channel, :SubChannel, :ParentMerchantId, :OutMerchantId, :MerchantId, :EndMerchantId, :OutTradeNo, :TradeNo, :EndTradeNo, :PaymentType, :BusinessType, :TradeTime, :FinishTime, :TradeStatus, :CheckStatus, :CheckFailReason, :OrderAmount, :ServiceFee, :PayeeAccount, :PayeeName, :PayerAccount, :PayerName, :Description
def initialize(billdate=nil, channel=nil, subchannel=nil, parentmerchantid=nil, outmerchantid=nil, merchantid=nil, endmerchantid=nil, outtradeno=nil, tradeno=nil, endtradeno=nil, paymenttype=nil, businesstype=nil, tradetime=nil, finishtime=nil, tradestatus=nil, checkstatus=nil, checkfailreason=nil, orderamount=nil, servicefee=nil, payeeaccount=nil, payeename=nil, payeraccount=nil, payername=nil, description=nil)
@BillDate = billdate
@Channel = channel
@SubChannel = subchannel
@ParentMerchantId = parentmerchantid
@OutMerchantId = outmerchantid
@MerchantId = merchantid
@EndMerchantId = endmerchantid
@OutTradeNo = outtradeno
@TradeNo = tradeno
@EndTradeNo = endtradeno
@PaymentType = paymenttype
@BusinessType = businesstype
@TradeTime = tradetime
@FinishTime = finishtime
@TradeStatus = tradestatus
@CheckStatus = checkstatus
@CheckFailReason = checkfailreason
@OrderAmount = orderamount
@ServiceFee = servicefee
@PayeeAccount = payeeaccount
@PayeeName = payeename
@PayerAccount = payeraccount
@PayerName = payername
@Description = description
end
def deserialize(params)
@BillDate = params['BillDate']
@Channel = params['Channel']
@SubChannel = params['SubChannel']
@ParentMerchantId = params['ParentMerchantId']
@OutMerchantId = params['OutMerchantId']
@MerchantId = params['MerchantId']
@EndMerchantId = params['EndMerchantId']
@OutTradeNo = params['OutTradeNo']
@TradeNo = params['TradeNo']
@EndTradeNo = params['EndTradeNo']
@PaymentType = params['PaymentType']
@BusinessType = params['BusinessType']
@TradeTime = params['TradeTime']
@FinishTime = params['FinishTime']
@TradeStatus = params['TradeStatus']
@CheckStatus = params['CheckStatus']
@CheckFailReason = params['CheckFailReason']
@OrderAmount = params['OrderAmount']
@ServiceFee = params['ServiceFee']
@PayeeAccount = params['PayeeAccount']
@PayeeName = params['PayeeName']
@PayerAccount = params['PayerAccount']
@PayerName = params['PayerName']
@Description = params['Description']
end
end
# QueryOpenBankBillDataPage请求参数结构体
class QueryOpenBankBillDataPageRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号,外部接入平台方入驻云企付平台后下发。
# EBANK_PAYMENT支付方式下,填写渠道商户号;
# SAFT_ISV支付方式下,填写渠道子商户号;
# HELIPAY渠道下,填写渠道子商户号。
# @type ChannelMerchantId: String
# @param BillDate: 账单日期,yyyy-MM-dd。
# @type BillDate: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# HELIPAY:合利宝
# @type ChannelName: String
# @param PageNo: 分页页码。
# @type PageNo: Integer
# @param PageSize: 分页大小,最大1000。
# @type PageSize: Integer
# @param BillType: 账单类型,默认交易账单。
# @type BillType: String
# @param PaymentMethod: 支付方式。详见附录-云企付枚举类说明-PaymentMethod。
# @type PaymentMethod: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :BillDate, :ChannelName, :PageNo, :PageSize, :BillType, :PaymentMethod, :Environment
def initialize(channelmerchantid=nil, billdate=nil, channelname=nil, pageno=nil, pagesize=nil, billtype=nil, paymentmethod=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@BillDate = billdate
@ChannelName = channelname
@PageNo = pageno
@PageSize = pagesize
@BillType = billtype
@PaymentMethod = paymentmethod
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@BillDate = params['BillDate']
@ChannelName = params['ChannelName']
@PageNo = params['PageNo']
@PageSize = params['PageSize']
@BillType = params['BillType']
@PaymentMethod = params['PaymentMethod']
@Environment = params['Environment']
end
end
# QueryOpenBankBillDataPage返回参数结构体
class QueryOpenBankBillDataPageResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankBillDataPageResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankBillDataPageResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-分页查询对账单数据结果
class QueryOpenBankBillDataPageResult < TencentCloud::Common::AbstractModel
# @param PageNo: 页码
# @type PageNo: Integer
# @param PageSize: 分页大小
# @type PageSize: Integer
# @param Count: 总数
# @type Count: Integer
# @param DataList: 账单数据明细
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DataList: Array
attr_accessor :PageNo, :PageSize, :Count, :DataList
def initialize(pageno=nil, pagesize=nil, count=nil, datalist=nil)
@PageNo = pageno
@PageSize = pagesize
@Count = count
@DataList = datalist
end
def deserialize(params)
@PageNo = params['PageNo']
@PageSize = params['PageSize']
@Count = params['Count']
unless params['DataList'].nil?
@DataList = []
params['DataList'].each do |i|
queryopenbankbilldata_tmp = QueryOpenBankBillData.new
queryopenbankbilldata_tmp.deserialize(i)
@DataList << queryopenbankbilldata_tmp
end
end
end
end
# QueryOpenBankBindExternalSubMerchantBankAccount请求参数结构体
class QueryOpenBankBindExternalSubMerchantBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelApplyId: 渠道申请编号,与外部申请编号二者选填其一。
# @type ChannelApplyId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
# @param OutApplyId: 外部申请编号,与渠道申请编号二者选填其一。
# @type OutApplyId: String
attr_accessor :ChannelSubMerchantId, :ChannelMerchantId, :ChannelApplyId, :Environment, :OutApplyId
def initialize(channelsubmerchantid=nil, channelmerchantid=nil, channelapplyid=nil, environment=nil, outapplyid=nil)
@ChannelSubMerchantId = channelsubmerchantid
@ChannelMerchantId = channelmerchantid
@ChannelApplyId = channelapplyid
@Environment = environment
@OutApplyId = outapplyid
end
def deserialize(params)
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelApplyId = params['ChannelApplyId']
@Environment = params['Environment']
@OutApplyId = params['OutApplyId']
end
end
# QueryOpenBankBindExternalSubMerchantBankAccount返回参数结构体
class QueryOpenBankBindExternalSubMerchantBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankBindExternalSubMerchantBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankBindExternalSubMerchantBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户银行卡绑定结果查询返回结果
class QueryOpenBankBindExternalSubMerchantBankAccountResult < TencentCloud::Common::AbstractModel
# @param ExternalSubMerchantBankAccountReturnData: 渠道子商户收款方银行卡信息, 为JSON格式字符串(绑定成功状态下返回)。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalSubMerchantBankAccountReturnData: String
# @param ChannelApplyId: 渠道申请编号。
# @type ChannelApplyId: String
# @param BindStatus: 绑定状态。
# __SUCCESS__: 绑定成功
# __FAILED__: 绑定失败
# __PROCESSING__: 绑定中
# @type BindStatus: String
# @param BindMessage: 绑定返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BindMessage: String
# @param BindSerialNo: 绑卡序列号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BindSerialNo: String
attr_accessor :ExternalSubMerchantBankAccountReturnData, :ChannelApplyId, :BindStatus, :BindMessage, :BindSerialNo
def initialize(externalsubmerchantbankaccountreturndata=nil, channelapplyid=nil, bindstatus=nil, bindmessage=nil, bindserialno=nil)
@ExternalSubMerchantBankAccountReturnData = externalsubmerchantbankaccountreturndata
@ChannelApplyId = channelapplyid
@BindStatus = bindstatus
@BindMessage = bindmessage
@BindSerialNo = bindserialno
end
def deserialize(params)
@ExternalSubMerchantBankAccountReturnData = params['ExternalSubMerchantBankAccountReturnData']
@ChannelApplyId = params['ChannelApplyId']
@BindStatus = params['BindStatus']
@BindMessage = params['BindMessage']
@BindSerialNo = params['BindSerialNo']
end
end
# QueryOpenBankDailyReceiptDownloadUrl请求参数结构体
class QueryOpenBankDailyReceiptDownloadUrlRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 云企付渠道子商户号。入驻在渠道商户下的子商户ID,如付款方的商户ID,对应创建支付订单中接口参数中的PayerInfo中的payerId。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 付款方式。如
# __EBANK_PAYMENT__:ebank付款
# __OPENBANK_PAYMENT__: openbank付款
# @type PaymentMethod: String
# @param BindSerialNo: 绑卡序列号,银行卡唯一标记,资金账户ID,用于区分商户绑定多卡或多账户场景
# @type BindSerialNo: String
# @param QueryDate: 查询日期,D日查询D-1日的回单文件
# @type QueryDate: String
# @param Environment: 环境类型
# release:生产环境
# sandbox:沙箱环境
# 缺省默认为生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :BindSerialNo, :QueryDate, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, bindserialno=nil, querydate=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BindSerialNo = bindserialno
@QueryDate = querydate
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BindSerialNo = params['BindSerialNo']
@QueryDate = params['QueryDate']
@Environment = params['Environment']
end
end
# QueryOpenBankDailyReceiptDownloadUrl返回参数结构体
class QueryOpenBankDailyReceiptDownloadUrlResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 按日期查询回单下载地址响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankDailyReceiptDownloadUrlResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankDailyReceiptDownloadUrlResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-按日期查询回单下载地址
class QueryOpenBankDailyReceiptDownloadUrlResult < TencentCloud::Common::AbstractModel
# @param DownloadUrl: 回单文件下载链接
# @type DownloadUrl: String
# @param ExpireTime: 过期时间
# @type ExpireTime: String
# @param ReceiptStatus: 回单状态
# PENDING: 处理中
# READY: 可以下载
# @type ReceiptStatus: String
attr_accessor :DownloadUrl, :ExpireTime, :ReceiptStatus
def initialize(downloadurl=nil, expiretime=nil, receiptstatus=nil)
@DownloadUrl = downloadurl
@ExpireTime = expiretime
@ReceiptStatus = receiptstatus
end
def deserialize(params)
@DownloadUrl = params['DownloadUrl']
@ExpireTime = params['ExpireTime']
@ReceiptStatus = params['ReceiptStatus']
end
end
# QueryOpenBankDownLoadUrl请求参数结构体
class QueryOpenBankDownLoadUrlRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号,外部接入平台方入驻云企付平台后下发。
# EBANK_PAYMENT支付方式下,填写渠道商户号;
# SAFT_ISV支付方式下,填写渠道子商户号。
# @type ChannelMerchantId: String
# @param BillDate: 账单日期,yyyy-MM-dd。
# @type BillDate: String
# @param BillType: 账单类型,默认交易账单。
# @type BillType: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境。
# @type Environment: String
# @param ChannelName: 渠道名称。不填默认为商企付。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。不填默认为ebank支付。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# __SAFT_ISV__: 人资ISV支付
# @type PaymentMethod: String
attr_accessor :ChannelMerchantId, :BillDate, :BillType, :Environment, :ChannelName, :PaymentMethod
def initialize(channelmerchantid=nil, billdate=nil, billtype=nil, environment=nil, channelname=nil, paymentmethod=nil)
@ChannelMerchantId = channelmerchantid
@BillDate = billdate
@BillType = billtype
@Environment = environment
@ChannelName = channelname
@PaymentMethod = paymentmethod
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@BillDate = params['BillDate']
@BillType = params['BillType']
@Environment = params['Environment']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
end
end
# QueryOpenBankDownLoadUrl返回参数结构体
class QueryOpenBankDownLoadUrlResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# @type ErrMessage: String
# @param Result: 查询对账文件下载响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankDownLoadUrlResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankDownLoadUrlResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-查询对账单文件下载url
class QueryOpenBankDownLoadUrlResult < TencentCloud::Common::AbstractModel
# @param DownloadUrl: 供下一步请求账单文件的下载地址。
# @type DownloadUrl: String
# @param HashValue: 从 download_url 下载的文件的哈希值,用于校验文件的完整性。
# @type HashValue: String
# @param HashType: 从 download_url 下载的文件的哈希类型,用于校验文件的完整性。
# @type HashType: String
attr_accessor :DownloadUrl, :HashValue, :HashType
def initialize(downloadurl=nil, hashvalue=nil, hashtype=nil)
@DownloadUrl = downloadurl
@HashValue = hashvalue
@HashType = hashtype
end
def deserialize(params)
@DownloadUrl = params['DownloadUrl']
@HashValue = params['HashValue']
@HashType = params['HashType']
end
end
# QueryOpenBankExternalSubAccountBookBalance请求参数结构体
class QueryOpenBankExternalSubAccountBookBalanceRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。目前只支持支付宝
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。目前只支持安心发支付
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# __SAFT_ISV__: 安心发支付
# @type PaymentMethod: String
# @param OutAccountBookId: 外部账本号ID。与ChannelAccountBookId二者选填其一。
# @type OutAccountBookId: String
# @param ChannelAccountBookId: 渠道账本号ID。与OutAccountBookId二者选填其一。
# @type ChannelAccountBookId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :OutAccountBookId, :ChannelAccountBookId, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, outaccountbookid=nil, channelaccountbookid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@OutAccountBookId = outaccountbookid
@ChannelAccountBookId = channelaccountbookid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@OutAccountBookId = params['OutAccountBookId']
@ChannelAccountBookId = params['ChannelAccountBookId']
@Environment = params['Environment']
end
end
# QueryOpenBankExternalSubAccountBookBalance返回参数结构体
class QueryOpenBankExternalSubAccountBookBalanceResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryExternalAccountBookResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryExternalAccountBookResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户银行卡列表查询返回数据
class QueryOpenBankExternalSubMerchantBankAccountData < TencentCloud::Common::AbstractModel
# @param AccountBank: 开户银行。
# @type AccountBank: String
# @param BindSerialNo: 绑卡序列号。
# @type BindSerialNo: String
# @param AccountType: 账号类型。
# __COLLECT_MONEY__: 收款卡
# __PAYMENT__: 付款卡
# @type AccountType: String
# @param BankBranchId: 支行号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankBranchId: String
# @param AccountNumberLastFour: 银行卡卡后四位。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountNumberLastFour: String
attr_accessor :AccountBank, :BindSerialNo, :AccountType, :BankBranchId, :AccountNumberLastFour
def initialize(accountbank=nil, bindserialno=nil, accounttype=nil, bankbranchid=nil, accountnumberlastfour=nil)
@AccountBank = accountbank
@BindSerialNo = bindserialno
@AccountType = accounttype
@BankBranchId = bankbranchid
@AccountNumberLastFour = accountnumberlastfour
end
def deserialize(params)
@AccountBank = params['AccountBank']
@BindSerialNo = params['BindSerialNo']
@AccountType = params['AccountType']
@BankBranchId = params['BankBranchId']
@AccountNumberLastFour = params['AccountNumberLastFour']
end
end
# QueryOpenBankExternalSubMerchantBankAccount请求参数结构体
class QueryOpenBankExternalSubMerchantBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# @type PaymentMethod: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@Environment = params['Environment']
end
end
# QueryOpenBankExternalSubMerchantBankAccount返回参数结构体
class QueryOpenBankExternalSubMerchantBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankExternalSubMerchantBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankExternalSubMerchantBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户银行卡列表查询返回结果
class QueryOpenBankExternalSubMerchantBankAccountResult < TencentCloud::Common::AbstractModel
# @param AccountList: 第三方渠道子商户查询银行账户返回。
# @type AccountList: Array
attr_accessor :AccountList
def initialize(accountlist=nil)
@AccountList = accountlist
end
def deserialize(params)
unless params['AccountList'].nil?
@AccountList = []
params['AccountList'].each do |i|
queryopenbankexternalsubmerchantbankaccountdata_tmp = QueryOpenBankExternalSubMerchantBankAccountData.new
queryopenbankexternalsubmerchantbankaccountdata_tmp.deserialize(i)
@AccountList << queryopenbankexternalsubmerchantbankaccountdata_tmp
end
end
end
end
# QueryOpenBankExternalSubMerchantRegistration请求参数结构体
class QueryOpenBankExternalSubMerchantRegistrationRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。
# @type ChannelMerchantId: String
# @param ChannelRegistrationNo: 渠道进件号,与外部进件号二者选填其一。
# @type ChannelRegistrationNo: String
# @param OutRegistrationNo: 外部进件号,与渠道进件号二者选填其一。
# @type OutRegistrationNo: String
# @param Environment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelRegistrationNo, :OutRegistrationNo, :Environment
def initialize(channelmerchantid=nil, channelregistrationno=nil, outregistrationno=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelRegistrationNo = channelregistrationno
@OutRegistrationNo = outregistrationno
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@OutRegistrationNo = params['OutRegistrationNo']
@Environment = params['Environment']
end
end
# QueryOpenBankExternalSubMerchantRegistration返回参数结构体
class QueryOpenBankExternalSubMerchantRegistrationResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankExternalSubMerchantRegistrationResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankExternalSubMerchantRegistrationResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户进件结果查询返回结果
class QueryOpenBankExternalSubMerchantRegistrationResult < TencentCloud::Common::AbstractModel
# @param RegistrationStatus: 进件状态。
# __SUCCESS__: 进件成功
# __FAILED__: 进件失败
# __PROCESSING__: 进件中
# @type RegistrationStatus: String
# @param RegistrationMessage: 进件返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegistrationMessage: String
# @param ChannelRegistrationNo: 渠道进件号。
# @type ChannelRegistrationNo: String
# @param ChannelSubMerchantId: 渠道子商户ID(进件成功返回)。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubMerchantId: String
# @param OutSubMerchantName: 外部子商户名称(进件成功返回)。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutSubMerchantName: String
# @param ChannelName: 渠道名称(进件成功返回)。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelName: String
# @param PaymentMethod: 支付方式(进件成功返回)。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentMethod: String
# @param BusinessLicenseNumber: 社会信用代码。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicenseNumber: String
# @param LegalName: 法人姓名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LegalName: String
# @param ExternalReturnData: 第三方渠道查询进件返回数据。详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
attr_accessor :RegistrationStatus, :RegistrationMessage, :ChannelRegistrationNo, :ChannelSubMerchantId, :OutSubMerchantName, :ChannelName, :PaymentMethod, :BusinessLicenseNumber, :LegalName, :ExternalReturnData
def initialize(registrationstatus=nil, registrationmessage=nil, channelregistrationno=nil, channelsubmerchantid=nil, outsubmerchantname=nil, channelname=nil, paymentmethod=nil, businesslicensenumber=nil, legalname=nil, externalreturndata=nil)
@RegistrationStatus = registrationstatus
@RegistrationMessage = registrationmessage
@ChannelRegistrationNo = channelregistrationno
@ChannelSubMerchantId = channelsubmerchantid
@OutSubMerchantName = outsubmerchantname
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BusinessLicenseNumber = businesslicensenumber
@LegalName = legalname
@ExternalReturnData = externalreturndata
end
def deserialize(params)
@RegistrationStatus = params['RegistrationStatus']
@RegistrationMessage = params['RegistrationMessage']
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@OutSubMerchantName = params['OutSubMerchantName']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BusinessLicenseNumber = params['BusinessLicenseNumber']
@LegalName = params['LegalName']
@ExternalReturnData = params['ExternalReturnData']
end
end
# QueryOpenBankOrderDetailReceiptInfo请求参数结构体
class QueryOpenBankOrderDetailReceiptInfoRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称,目前只支持ALIPAY
# @type ChannelName: String
# @param PaymentMethod: 支付方式,目前只支持SAFT_ISV
# @type PaymentMethod: String
# @param OutApplyId: 外部回单申请ID,与渠道回单申请ID二者选填其一
# @type OutApplyId: String
# @param ChannelApplyId: 渠道回单申请ID,与外部回单申请ID二者选填其一
# @type ChannelApplyId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :OutApplyId, :ChannelApplyId, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, outapplyid=nil, channelapplyid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@OutApplyId = outapplyid
@ChannelApplyId = channelapplyid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@OutApplyId = params['OutApplyId']
@ChannelApplyId = params['ChannelApplyId']
@Environment = params['Environment']
end
end
# QueryOpenBankOrderDetailReceiptInfo返回参数结构体
class QueryOpenBankOrderDetailReceiptInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankOrderDetailReceiptInfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankOrderDetailReceiptInfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 单笔交易回单申请结果查询
class QueryOpenBankOrderDetailReceiptInfoResult < TencentCloud::Common::AbstractModel
# @param ChannelApplyId: 渠道回单申请ID
# @type ChannelApplyId: String
# @param ReceiptStatus: 申请状态。
# SUCCESS:申请成功;
# FAILED:申请失败;
# PROCESSING:申请中。
# 注意:若返回申请中,需要再次调用回单申请结果查询接口,查询结果。
# @type ReceiptStatus: String
# @param ReceiptMessage: 申请返回描述,例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReceiptMessage: String
# @param DownloadUrl: 回单下载链接,申请成功时返回。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DownloadUrl: String
# @param ExpireTime: 过期时间,yyyy-MM-dd HH:mm:ss格式。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExpireTime: String
attr_accessor :ChannelApplyId, :ReceiptStatus, :ReceiptMessage, :DownloadUrl, :ExpireTime
def initialize(channelapplyid=nil, receiptstatus=nil, receiptmessage=nil, downloadurl=nil, expiretime=nil)
@ChannelApplyId = channelapplyid
@ReceiptStatus = receiptstatus
@ReceiptMessage = receiptmessage
@DownloadUrl = downloadurl
@ExpireTime = expiretime
end
def deserialize(params)
@ChannelApplyId = params['ChannelApplyId']
@ReceiptStatus = params['ReceiptStatus']
@ReceiptMessage = params['ReceiptMessage']
@DownloadUrl = params['DownloadUrl']
@ExpireTime = params['ExpireTime']
end
end
# QueryOpenBankPaymentOrder请求参数结构体
class QueryOpenBankPaymentOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。外部接入平台入驻云企付平台下发。
# @type ChannelMerchantId: String
# @param OutOrderId: 外部商户订单号。与ChannelOrderId不能同时为空。若传空串即表示忽略该参数。
# @type OutOrderId: String
# @param ChannelOrderId: 云平台订单号。与OutOrderId不能同时为空。若调用下单接口时,发生异常,无法取到ChannelOrderId,传空串即可
# @type ChannelOrderId: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境。
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutOrderId, :ChannelOrderId, :Environment
def initialize(channelmerchantid=nil, outorderid=nil, channelorderid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@Environment = params['Environment']
end
end
# QueryOpenBankPaymentOrder返回参数结构体
class QueryOpenBankPaymentOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# @type ErrMessage: String
# @param Result: 查询支付结果响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankPaymentOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankPaymentOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-查询订单支付结果
class QueryOpenBankPaymentOrderResult < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。外部接入平台入驻云企付平台下发
# @type ChannelMerchantId: String
# @param OutOrderId: 外部商户订单号
# @type OutOrderId: String
# @param ChannelOrderId: 云企付平台订单号
# @type ChannelOrderId: String
# @param ThirdPayOrderId: 第三方支付平台订单号
# @type ThirdPayOrderId: String
# @param OrderStatus: 订单状态。
# INIT:初始化
# PAYING:支付中
# ACCEPTED:支付受理成功
# SUCCESS:支付成功
# CLOSED:关单
# PAY_FAIL:支付失败
# REVOKE:退票
# PART_REFUND:部分退款
# FULL_REFUND:全部退款
# @type OrderStatus: String
# @param ChannelName: 支付渠道名称,如TENPAY
# @type ChannelName: String
# @param PaymentMethod: 付款方式。如EBANK_PAYMENT
# OPENBANK_PAYMENT
# @type PaymentMethod: String
# @param TotalAmount: 订单金额。单位分
# @type TotalAmount: Integer
# @param PayAmount: 实际支付金额。单位分,支付成功时返回
# @type PayAmount: Integer
# @param FailReason: 失败原因,若失败的返回
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param Attachment: 附加信息,查询时原样透传
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Attachment: String
# @param RedirectInfo: 重定向参数,用于客户端跳转,订单未支付时返回该参数
# 渠道为TENPAY,付款方式为EBANK_PAYMENT时返回
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRedirectInfo`
# @param ExternalReturnData: 第三方渠道返回信息,见渠道特殊说明,详情见附录-复杂类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
# @param BankApprovalGuideInfo: 银行复核指引。当TENPAY下OPENBANT_PAYMENT时,下单受理成功是返回。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankApprovalGuideInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankApprovalGuideInfo`
# @param FeeAmount: 手续费金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FeeAmount: Integer
# @param FeeRate: 手续费费率
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FeeRate: Integer
# @param ProfitShareRespInfoList: 分账信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProfitShareRespInfoList: Array
# @param TimeFinish: 支付完成时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TimeFinish: String
attr_accessor :ChannelMerchantId, :OutOrderId, :ChannelOrderId, :ThirdPayOrderId, :OrderStatus, :ChannelName, :PaymentMethod, :TotalAmount, :PayAmount, :FailReason, :Attachment, :RedirectInfo, :ExternalReturnData, :BankApprovalGuideInfo, :FeeAmount, :FeeRate, :ProfitShareRespInfoList, :TimeFinish
def initialize(channelmerchantid=nil, outorderid=nil, channelorderid=nil, thirdpayorderid=nil, orderstatus=nil, channelname=nil, paymentmethod=nil, totalamount=nil, payamount=nil, failreason=nil, attachment=nil, redirectinfo=nil, externalreturndata=nil, bankapprovalguideinfo=nil, feeamount=nil, feerate=nil, profitsharerespinfolist=nil, timefinish=nil)
@ChannelMerchantId = channelmerchantid
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@ThirdPayOrderId = thirdpayorderid
@OrderStatus = orderstatus
@ChannelName = channelname
@PaymentMethod = paymentmethod
@TotalAmount = totalamount
@PayAmount = payamount
@FailReason = failreason
@Attachment = attachment
@RedirectInfo = redirectinfo
@ExternalReturnData = externalreturndata
@BankApprovalGuideInfo = bankapprovalguideinfo
@FeeAmount = feeamount
@FeeRate = feerate
@ProfitShareRespInfoList = profitsharerespinfolist
@TimeFinish = timefinish
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@ThirdPayOrderId = params['ThirdPayOrderId']
@OrderStatus = params['OrderStatus']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@TotalAmount = params['TotalAmount']
@PayAmount = params['PayAmount']
@FailReason = params['FailReason']
@Attachment = params['Attachment']
unless params['RedirectInfo'].nil?
@RedirectInfo = OpenBankRedirectInfo.new
@RedirectInfo.deserialize(params['RedirectInfo'])
end
@ExternalReturnData = params['ExternalReturnData']
unless params['BankApprovalGuideInfo'].nil?
@BankApprovalGuideInfo = OpenBankApprovalGuideInfo.new
@BankApprovalGuideInfo.deserialize(params['BankApprovalGuideInfo'])
end
@FeeAmount = params['FeeAmount']
@FeeRate = params['FeeRate']
unless params['ProfitShareRespInfoList'].nil?
@ProfitShareRespInfoList = []
params['ProfitShareRespInfoList'].each do |i|
openbankprofitsharerespinfo_tmp = OpenBankProfitShareRespInfo.new
openbankprofitsharerespinfo_tmp.deserialize(i)
@ProfitShareRespInfoList << openbankprofitsharerespinfo_tmp
end
end
@TimeFinish = params['TimeFinish']
end
end
# QueryOpenBankProfitSharePayee请求参数结构体
class QueryOpenBankProfitSharePayeeRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。代理商/集团ID
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户号。商户ID
# @type ChannelSubMerchantId: String
# @param AccountId: 分账方绑定添加返回的AccountId,账户号和账户ID选其一
# @type AccountId: String
# @param AccountNo: 银行账户号要与绑定收款方时保持一致,账户号AccountNo和账户AccoutId选其一
# @type AccountNo: String
# @param Currency: 使用账户号时必选
# @type Currency: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :AccountId, :AccountNo, :Currency, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, accountid=nil, accountno=nil, currency=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@AccountId = accountid
@AccountNo = accountno
@Currency = currency
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@AccountId = params['AccountId']
@AccountNo = params['AccountNo']
@Currency = params['Currency']
@Environment = params['Environment']
end
end
# QueryOpenBankProfitSharePayee返回参数结构体
class QueryOpenBankProfitSharePayeeResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误信息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankProfitSharePayeeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankProfitSharePayeeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 绑定分账收款方查询响应
class QueryOpenBankProfitSharePayeeResult < TencentCloud::Common::AbstractModel
# @param AccountId: 账户ID(受益ID)
# @type AccountId: String
# @param AccountNo: 账户号。通联国际指客户银行账户号
# @type AccountNo: String
# @param Currency: 账户货币。参考附录“币种类型”。
# @type Currency: String
# @param AccountName: 收款人账户名称
# @type AccountName: String
# @param BankName: 银行名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankName: String
# @param Nature: 账户类型。
# 00:借记卡
# 01:存折
# 02:信用卡
# 03:准贷记卡
# 04:预付卡费
# 05:境外卡
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Nature: String
# @param BindState: 状态
# 0-待审核;1-审核通过;2-审核不通过 3-关联实体未审核
# @type BindState: String
# @param StateExplain: 状态描述
# @type StateExplain: String
attr_accessor :AccountId, :AccountNo, :Currency, :AccountName, :BankName, :Nature, :BindState, :StateExplain
def initialize(accountid=nil, accountno=nil, currency=nil, accountname=nil, bankname=nil, nature=nil, bindstate=nil, stateexplain=nil)
@AccountId = accountid
@AccountNo = accountno
@Currency = currency
@AccountName = accountname
@BankName = bankname
@Nature = nature
@BindState = bindstate
@StateExplain = stateexplain
end
def deserialize(params)
@AccountId = params['AccountId']
@AccountNo = params['AccountNo']
@Currency = params['Currency']
@AccountName = params['AccountName']
@BankName = params['BankName']
@Nature = params['Nature']
@BindState = params['BindState']
@StateExplain = params['StateExplain']
end
end
# QueryOpenBankRefundOrder请求参数结构体
class QueryOpenBankRefundOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。
# @type ChannelMerchantId: String
# @param OutRefundId: 外部商户退单号,与渠道退款单号二者选填其一。
# @type OutRefundId: String
# @param ChannelRefundId: 渠道退款订单号,与外部商户退款单号二者选填其一。
# @type ChannelRefundId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :OutRefundId, :ChannelRefundId, :Environment
def initialize(channelmerchantid=nil, outrefundid=nil, channelrefundid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@OutRefundId = outrefundid
@ChannelRefundId = channelrefundid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@OutRefundId = params['OutRefundId']
@ChannelRefundId = params['ChannelRefundId']
@Environment = params['Environment']
end
end
# QueryOpenBankRefundOrder返回参数结构体
class QueryOpenBankRefundOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankQueryRefundOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = OpenBankQueryRefundOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QueryOpenBankSettleOrder请求参数结构体
class QueryOpenBankSettleOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户号
# @type ChannelSubMerchantId: String
# @param OutSettleId: 外部结算流水号,与渠道结算流水号二选一
# @type OutSettleId: String
# @param ChannelSettleId: 渠道结算流水号,与外部结算流水号二选一
# @type ChannelSettleId: String
# @param Environment: 接入环境。沙箱环境填 sandbox。缺省默认调用生产环境
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :OutSettleId, :ChannelSettleId, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, outsettleid=nil, channelsettleid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@OutSettleId = outsettleid
@ChannelSettleId = channelsettleid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@OutSettleId = params['OutSettleId']
@ChannelSettleId = params['ChannelSettleId']
@Environment = params['Environment']
end
end
# QueryOpenBankSettleOrder返回参数结构体
class QueryOpenBankSettleOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankSettleOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankSettleOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付结算查询结果
class QueryOpenBankSettleOrderResult < TencentCloud::Common::AbstractModel
# @param OutSettleId: 外部结算流水号
# @type OutSettleId: String
# @param ChannelSettleId: 渠道结算流水号
# @type ChannelSettleId: String
# @param SettleStatus: 退款状态。
# SUCCESS:结算成功;
# FAILED:结算失败;
# PROCESSING:结算中;
# INIT:初始化;
# ACCEPT_FAILED:受理失败,底层银行返回订单不存在
# ACCEPTED:受理成功
# _UNKNOWN:默认未知
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleStatus: String
# @param SettleAmount: 结算金额
# @type SettleAmount: Integer
# @param SettleDate: 结算日期,格式YYYYMMdd
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleDate: String
# @param SettleType: 结算类型(T1/D1)
# @type SettleType: String
# @param FailReason: 失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param TimeFinish: 完成时间,格式yyyy-MM-dd HH:mm:ss
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TimeFinish: String
# @param SettleFee: 结算手续费
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleFee: String
# @param Currency: 账户货币。参考附录“币种类型”。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Currency: String
attr_accessor :OutSettleId, :ChannelSettleId, :SettleStatus, :SettleAmount, :SettleDate, :SettleType, :FailReason, :TimeFinish, :SettleFee, :Currency
def initialize(outsettleid=nil, channelsettleid=nil, settlestatus=nil, settleamount=nil, settledate=nil, settletype=nil, failreason=nil, timefinish=nil, settlefee=nil, currency=nil)
@OutSettleId = outsettleid
@ChannelSettleId = channelsettleid
@SettleStatus = settlestatus
@SettleAmount = settleamount
@SettleDate = settledate
@SettleType = settletype
@FailReason = failreason
@TimeFinish = timefinish
@SettleFee = settlefee
@Currency = currency
end
def deserialize(params)
@OutSettleId = params['OutSettleId']
@ChannelSettleId = params['ChannelSettleId']
@SettleStatus = params['SettleStatus']
@SettleAmount = params['SettleAmount']
@SettleDate = params['SettleDate']
@SettleType = params['SettleType']
@FailReason = params['FailReason']
@TimeFinish = params['TimeFinish']
@SettleFee = params['SettleFee']
@Currency = params['Currency']
end
end
# QueryOpenBankSubMerchantCredential请求参数结构体
class QueryOpenBankSubMerchantCredentialRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-枚举类型-ChannelName。
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# 合利宝渠道不需要传。
# @type PaymentMethod: String
# @param OutApplyId: 外部申请流水号。
# 外部申请流水号与渠道申请流水号两者选填其一。
# @type OutApplyId: String
# @param ChannelApplyId: 渠道申请流水号。
# 外部申请流水号与渠道申请流水号两者选填其一。
# @type ChannelApplyId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :OutApplyId, :ChannelApplyId, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, outapplyid=nil, channelapplyid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@OutApplyId = outapplyid
@ChannelApplyId = channelapplyid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@OutApplyId = params['OutApplyId']
@ChannelApplyId = params['ChannelApplyId']
@Environment = params['Environment']
end
end
# QueryOpenBankSubMerchantCredential返回参数结构体
class QueryOpenBankSubMerchantCredentialResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankSubMerchantCredentialResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankSubMerchantCredentialResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户资质文件查询
class QueryOpenBankSubMerchantCredentialResult < TencentCloud::Common::AbstractModel
# @param UploadStatus: 上传状态
# @type UploadStatus: String
# @param UploadMessage: 上传描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UploadMessage: String
attr_accessor :UploadStatus, :UploadMessage
def initialize(uploadstatus=nil, uploadmessage=nil)
@UploadStatus = uploadstatus
@UploadMessage = uploadmessage
end
def deserialize(params)
@UploadStatus = params['UploadStatus']
@UploadMessage = params['UploadMessage']
end
end
# QueryOpenBankSubMerchantRateConfigure请求参数结构体
class QueryOpenBankSubMerchantRateConfigureRequest < TencentCloud::Common::AbstractModel
# @param ChannelRegistrationNo: 渠道进件序列号。
# @type ChannelRegistrationNo: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# TENPAY: 商企付
# WECHAT: 微信支付
# ALIPAY: 支付宝
# HELIPAY:合利宝
# @type ChannelName: String
# @param ChannelProductFeeNo: 渠道产品费率序列号。与外部产品费率序列号二者选填其一。
# @type ChannelProductFeeNo: String
# @param OutProductFeeNo: 外部产品费率序列号。与渠道产品费率序列号二者选填其一。
# @type OutProductFeeNo: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelRegistrationNo, :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :ChannelProductFeeNo, :OutProductFeeNo, :Environment
def initialize(channelregistrationno=nil, channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, channelproductfeeno=nil, outproductfeeno=nil, environment=nil)
@ChannelRegistrationNo = channelregistrationno
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@ChannelProductFeeNo = channelproductfeeno
@OutProductFeeNo = outproductfeeno
@Environment = environment
end
def deserialize(params)
@ChannelRegistrationNo = params['ChannelRegistrationNo']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@ChannelProductFeeNo = params['ChannelProductFeeNo']
@OutProductFeeNo = params['OutProductFeeNo']
@Environment = params['Environment']
end
end
# QueryOpenBankSubMerchantRateConfigure返回参数结构体
class QueryOpenBankSubMerchantRateConfigureResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankSubMerchantRateConfigureResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankSubMerchantRateConfigureResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户费率配置查询结果
class QueryOpenBankSubMerchantRateConfigureResult < TencentCloud::Common::AbstractModel
# @param DealStatus: 处理状态
# SUCCESS: 开通成功
# FAILED: 开通失败
# PROCESSING: 开通中
# @type DealStatus: String
# @param DealMessage: 处理描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DealMessage: String
attr_accessor :DealStatus, :DealMessage
def initialize(dealstatus=nil, dealmessage=nil)
@DealStatus = dealstatus
@DealMessage = dealmessage
end
def deserialize(params)
@DealStatus = params['DealStatus']
@DealMessage = params['DealMessage']
end
end
# QueryOpenBankSubMerchantSignOnline请求参数结构体
class QueryOpenBankSubMerchantSignOnlineRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。外部平台接入云企付平台下发。必填。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。详见附录-枚举类型-ChannelName。
# @type ChannelName: String
# @param OutSubMerchantId: 外部子商户ID。
# @type OutSubMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
attr_accessor :ChannelMerchantId, :ChannelName, :OutSubMerchantId, :ChannelSubMerchantId
def initialize(channelmerchantid=nil, channelname=nil, outsubmerchantid=nil, channelsubmerchantid=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@OutSubMerchantId = outsubmerchantid
@ChannelSubMerchantId = channelsubmerchantid
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@OutSubMerchantId = params['OutSubMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
end
end
# QueryOpenBankSubMerchantSignOnline返回参数结构体
class QueryOpenBankSubMerchantSignOnlineResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误信息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankSubMerchantSignOnlineResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankSubMerchantSignOnlineResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 子商户查询签约返回结果
class QueryOpenBankSubMerchantSignOnlineResult < TencentCloud::Common::AbstractModel
# @param SignStatus: 处理状态
# SUCCESS:签约成功
# FAILED:签约失败
# PROCESSING:签约中
# @type SignStatus: String
# @param SignMessage: 上传返回描述,例如失败原因等
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SignMessage: String
attr_accessor :SignStatus, :SignMessage
def initialize(signstatus=nil, signmessage=nil)
@SignStatus = signstatus
@SignMessage = signmessage
end
def deserialize(params)
@SignStatus = params['SignStatus']
@SignMessage = params['SignMessage']
end
end
# QueryOpenBankSupportBankList请求参数结构体
class QueryOpenBankSupportBankListRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# __EBANK_PAYMENT__:ebank付款
# __OPENBANK_PAYMENT__: openbank付款
# @type PaymentMethod: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PaymentMethod, :Environment
def initialize(channelmerchantid=nil, channelname=nil, paymentmethod=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@Environment = params['Environment']
end
end
# QueryOpenBankSupportBankList返回参数结构体
class QueryOpenBankSupportBankListResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankSupportBankListResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankSupportBankListResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询支持的银行列表返回结果
class QueryOpenBankSupportBankListResult < TencentCloud::Common::AbstractModel
# @param SupportBankList: 支持的银行列表
# @type SupportBankList: Array
attr_accessor :SupportBankList
def initialize(supportbanklist=nil)
@SupportBankList = supportbanklist
end
def deserialize(params)
unless params['SupportBankList'].nil?
@SupportBankList = []
params['SupportBankList'].each do |i|
supportbankinfo_tmp = SupportBankInfo.new
supportbankinfo_tmp.deserialize(i)
@SupportBankList << supportbankinfo_tmp
end
end
end
end
# QueryOpenBankUnbindExternalSubMerchantBankAccount请求参数结构体
class QueryOpenBankUnbindExternalSubMerchantBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelApplyId: 渠道申请编号,与外部申请编号二者选填其一。
# @type ChannelApplyId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
# @param OutApplyId: 外部申请编号,与渠道申请编号二者选填其一。
# @type OutApplyId: String
attr_accessor :ChannelSubMerchantId, :ChannelMerchantId, :ChannelApplyId, :Environment, :OutApplyId
def initialize(channelsubmerchantid=nil, channelmerchantid=nil, channelapplyid=nil, environment=nil, outapplyid=nil)
@ChannelSubMerchantId = channelsubmerchantid
@ChannelMerchantId = channelmerchantid
@ChannelApplyId = channelapplyid
@Environment = environment
@OutApplyId = outapplyid
end
def deserialize(params)
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelApplyId = params['ChannelApplyId']
@Environment = params['Environment']
@OutApplyId = params['OutApplyId']
end
end
# QueryOpenBankUnbindExternalSubMerchantBankAccount返回参数结构体
class QueryOpenBankUnbindExternalSubMerchantBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankUnbindExternalSubMerchantBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankUnbindExternalSubMerchantBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户银行卡解绑结果查询返回结果
class QueryOpenBankUnbindExternalSubMerchantBankAccountResult < TencentCloud::Common::AbstractModel
# @param ChannelApplyId: 渠道申请编号。
# @type ChannelApplyId: String
# @param UnbindStatus: 解绑状态。
# __SUCCESS__: 解绑成功
# __FAILED__: 解绑失败
# __PROCESSING__: 解绑中
# @type UnbindStatus: String
# @param UnbindMessage: 解绑返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UnbindMessage: String
attr_accessor :ChannelApplyId, :UnbindStatus, :UnbindMessage
def initialize(channelapplyid=nil, unbindstatus=nil, unbindmessage=nil)
@ChannelApplyId = channelapplyid
@UnbindStatus = unbindstatus
@UnbindMessage = unbindmessage
end
def deserialize(params)
@ChannelApplyId = params['ChannelApplyId']
@UnbindStatus = params['UnbindStatus']
@UnbindMessage = params['UnbindMessage']
end
end
# QueryOpenBankVerificationOrder请求参数结构体
class QueryOpenBankVerificationOrderRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 云企付渠道商户号。外部接入平台入驻云企付平台后下发。
# @type ChannelMerchantId: String
# @param ChannelVerificationId: 云企付渠道核销订单号。与OutVerificationId不能同时为空。
# @type ChannelVerificationId: String
# @param OutVerificationId: 外部核销申请订单号。与ChannelVerificationId不能同时为空。
# @type OutVerificationId: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelVerificationId, :OutVerificationId, :Environment
def initialize(channelmerchantid=nil, channelverificationid=nil, outverificationid=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelVerificationId = channelverificationid
@OutVerificationId = outverificationid
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelVerificationId = params['ChannelVerificationId']
@OutVerificationId = params['OutVerificationId']
@Environment = params['Environment']
end
end
# QueryOpenBankVerificationOrder返回参数结构体
class QueryOpenBankVerificationOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 核销查询响应对象。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOpenBankVerificationResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOpenBankVerificationResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 云企付-查询核销申请结果
class QueryOpenBankVerificationResult < TencentCloud::Common::AbstractModel
# @param ChannelVerificationId: 云企付渠道核销订单号
# @type ChannelVerificationId: String
# @param ThirdVerificationId: 第三方支付渠道核销订单号
# @type ThirdVerificationId: String
# @param VerificationAmount: 核销金额,单位分
# @type VerificationAmount: Integer
# @param VerificationStatus: 核销状态
# INIT("INIT","初始化"),
# SUCCESS("SUCCESS","核销成功"),
# FAILED("FAILED","核销失败"),
# PROCESSING("PROCESSING","核销中");
# @type VerificationStatus: String
# @param FailReason: 失败原因,若核销失败,附上原因。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param ThirdVerificationReturnData: 渠道附加返回信息,一般情况可以不关注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ThirdVerificationReturnData: String
attr_accessor :ChannelVerificationId, :ThirdVerificationId, :VerificationAmount, :VerificationStatus, :FailReason, :ThirdVerificationReturnData
def initialize(channelverificationid=nil, thirdverificationid=nil, verificationamount=nil, verificationstatus=nil, failreason=nil, thirdverificationreturndata=nil)
@ChannelVerificationId = channelverificationid
@ThirdVerificationId = thirdverificationid
@VerificationAmount = verificationamount
@VerificationStatus = verificationstatus
@FailReason = failreason
@ThirdVerificationReturnData = thirdverificationreturndata
end
def deserialize(params)
@ChannelVerificationId = params['ChannelVerificationId']
@ThirdVerificationId = params['ThirdVerificationId']
@VerificationAmount = params['VerificationAmount']
@VerificationStatus = params['VerificationStatus']
@FailReason = params['FailReason']
@ThirdVerificationReturnData = params['ThirdVerificationReturnData']
end
end
# 查询订单接口的出参,订单列表
class QueryOrderOutOrderList < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param Amt: 支付金额,单位:分
# @type Amt: Integer
# @param UserId: 用户Id
# @type UserId: String
# @param CashAmt: 现金支付金额
# @type CashAmt: String
# @param Metadata: 发货标识,由业务在调用聚鑫下单 接口的时候下发
# @type Metadata: String
# @param PayTime: 支付时间unix时间戳
# @type PayTime: String
# @param CouponAmt: 抵扣券金额
# @type CouponAmt: String
# @param OrderTime: 下单时间unix时间戳
# @type OrderTime: String
# @param ProductId: 物品id
# @type ProductId: String
# @param SceneInfo: 高速场景信息
# @type SceneInfo: String
# @param OrderState: 当前订单的订单状态
# 0:初始状态,获取聚鑫交易订单成功;
# 1:拉起聚鑫支付页面成功,用户未 支付;
# 2:用户支付成功,正在发货;
# 3:用户支付成功,发货失败;
# 4:用户支付成功,发货成功;
# 5:聚鑫支付页面正在失效中;
# 6:聚鑫支付页面已经失效;
# @type OrderState: String
# @param Channel: 支付渠道:wechat:微信支付;
# qqwallet:QQ钱包;
# bank:网银
# @type Channel: String
# @param RefundFlag: 是否曾退款
# @type RefundFlag: String
# @param OutTradeNo: 务支付订单号
# @type OutTradeNo: String
# @param ProductName: 商品名称
# @type ProductName: String
# @param CallBackTime: 支付回调时间,unix时间戳
# @type CallBackTime: String
# @param CurrencyType: ISO 货币代码,CNY
# @type CurrencyType: String
# @param AcctSubAppId: 微校场景账户Id
# @type AcctSubAppId: String
# @param TransactionId: 调用下单接口获取的聚鑫交易订单
# @type TransactionId: String
# @param ChannelOrderId: 聚鑫内部渠道订单号
# @type ChannelOrderId: String
# @param SubOrderList: 调用下单接口传进来的 SubOutTradeNoList
# @type SubOrderList: Array
# @param ChannelExternalOrderId: 支付机构订单号
# @type ChannelExternalOrderId: String
# @param SettleCheck: 主单核销状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SettleCheck: Integer
# @param ChannelExternalUserInfoList: 渠道方用户信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalUserInfoList: Array
# @param AttachmentInfoList: 附加项信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttachmentInfoList: Array
attr_accessor :MidasAppId, :Amt, :UserId, :CashAmt, :Metadata, :PayTime, :CouponAmt, :OrderTime, :ProductId, :SceneInfo, :OrderState, :Channel, :RefundFlag, :OutTradeNo, :ProductName, :CallBackTime, :CurrencyType, :AcctSubAppId, :TransactionId, :ChannelOrderId, :SubOrderList, :ChannelExternalOrderId, :SettleCheck, :ChannelExternalUserInfoList, :AttachmentInfoList
def initialize(midasappid=nil, amt=nil, userid=nil, cashamt=nil, metadata=nil, paytime=nil, couponamt=nil, ordertime=nil, productid=nil, sceneinfo=nil, orderstate=nil, channel=nil, refundflag=nil, outtradeno=nil, productname=nil, callbacktime=nil, currencytype=nil, acctsubappid=nil, transactionid=nil, channelorderid=nil, suborderlist=nil, channelexternalorderid=nil, settlecheck=nil, channelexternaluserinfolist=nil, attachmentinfolist=nil)
@MidasAppId = midasappid
@Amt = amt
@UserId = userid
@CashAmt = cashamt
@Metadata = metadata
@PayTime = paytime
@CouponAmt = couponamt
@OrderTime = ordertime
@ProductId = productid
@SceneInfo = sceneinfo
@OrderState = orderstate
@Channel = channel
@RefundFlag = refundflag
@OutTradeNo = outtradeno
@ProductName = productname
@CallBackTime = callbacktime
@CurrencyType = currencytype
@AcctSubAppId = acctsubappid
@TransactionId = transactionid
@ChannelOrderId = channelorderid
@SubOrderList = suborderlist
@ChannelExternalOrderId = channelexternalorderid
@SettleCheck = settlecheck
@ChannelExternalUserInfoList = channelexternaluserinfolist
@AttachmentInfoList = attachmentinfolist
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@Amt = params['Amt']
@UserId = params['UserId']
@CashAmt = params['CashAmt']
@Metadata = params['Metadata']
@PayTime = params['PayTime']
@CouponAmt = params['CouponAmt']
@OrderTime = params['OrderTime']
@ProductId = params['ProductId']
@SceneInfo = params['SceneInfo']
@OrderState = params['OrderState']
@Channel = params['Channel']
@RefundFlag = params['RefundFlag']
@OutTradeNo = params['OutTradeNo']
@ProductName = params['ProductName']
@CallBackTime = params['CallBackTime']
@CurrencyType = params['CurrencyType']
@AcctSubAppId = params['AcctSubAppId']
@TransactionId = params['TransactionId']
@ChannelOrderId = params['ChannelOrderId']
unless params['SubOrderList'].nil?
@SubOrderList = []
params['SubOrderList'].each do |i|
queryorderoutsuborderlist_tmp = QueryOrderOutSubOrderList.new
queryorderoutsuborderlist_tmp.deserialize(i)
@SubOrderList << queryorderoutsuborderlist_tmp
end
end
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@SettleCheck = params['SettleCheck']
unless params['ChannelExternalUserInfoList'].nil?
@ChannelExternalUserInfoList = []
params['ChannelExternalUserInfoList'].each do |i|
oldchannelexternaluserinfo_tmp = OldChannelExternalUserInfo.new
oldchannelexternaluserinfo_tmp.deserialize(i)
@ChannelExternalUserInfoList << oldchannelexternaluserinfo_tmp
end
end
unless params['AttachmentInfoList'].nil?
@AttachmentInfoList = []
params['AttachmentInfoList'].each do |i|
oldattachmentinfo_tmp = OldAttachmentInfo.new
oldattachmentinfo_tmp.deserialize(i)
@AttachmentInfoList << oldattachmentinfo_tmp
end
end
end
end
# 子订单列表
class QueryOrderOutSubOrderList < TencentCloud::Common::AbstractModel
# @param Amt: 子订单支付金额
# @type Amt: Integer
# @param SubMchIncome: 子订单结算应收金额,单位:分
# @type SubMchIncome: Integer
# @param Metadata: 发货标识,由业务在调用Midas下单接口的时候下发。
# @type Metadata: String
# @param OriginalAmt: 子订单原始金额
# @type OriginalAmt: Integer
# @param PlatformIncome: 子订单平台应收金额,单位:分
# @type PlatformIncome: Integer
# @param ProductDetail: 子订单商品详情
# @type ProductDetail: String
# @param ProductName: 子订单商品名称
# @type ProductName: String
# @param SettleCheck: 核销状态,1表示核销,0表示未核销
# @type SettleCheck: Integer
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
attr_accessor :Amt, :SubMchIncome, :Metadata, :OriginalAmt, :PlatformIncome, :ProductDetail, :ProductName, :SettleCheck, :SubAppId, :SubOutTradeNo
def initialize(amt=nil, submchincome=nil, metadata=nil, originalamt=nil, platformincome=nil, productdetail=nil, productname=nil, settlecheck=nil, subappid=nil, subouttradeno=nil)
@Amt = amt
@SubMchIncome = submchincome
@Metadata = metadata
@OriginalAmt = originalamt
@PlatformIncome = platformincome
@ProductDetail = productdetail
@ProductName = productname
@SettleCheck = settlecheck
@SubAppId = subappid
@SubOutTradeNo = subouttradeno
end
def deserialize(params)
@Amt = params['Amt']
@SubMchIncome = params['SubMchIncome']
@Metadata = params['Metadata']
@OriginalAmt = params['OriginalAmt']
@PlatformIncome = params['PlatformIncome']
@ProductDetail = params['ProductDetail']
@ProductName = params['ProductName']
@SettleCheck = params['SettleCheck']
@SubAppId = params['SubAppId']
@SubOutTradeNo = params['SubOutTradeNo']
end
end
# QueryOrder请求参数结构体
class QueryOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主 MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID,长度不小于5位, 仅支持字母和数字的组合
# @type UserId: String
# @param Type: type=by_order根据订单号 查订单;
# type=by_user根据用户id 查订单 。
# @type Type: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param Count: 每页返回的记录数。根据用户 号码查询订单列表时需要传。 用于分页展示。Type=by_order时必填
# @type Count: Integer
# @param Offset: 记录数偏移量,默认从0开 始。根据用户号码查询订单列 表时需要传。用于分页展示。Type=by_order时必填
# @type Offset: Integer
# @param StartTime: 查询开始时间,Unix时间戳。Type=by_order时必填
# @type StartTime: String
# @param EndTime: 查询结束时间,Unix时间戳。Type=by_order时必填
# @type EndTime: String
# @param OutTradeNo: 业务订单号,OutTradeNo与 TransactionId不能同时为 空,都传优先使用 OutTradeNo
# @type OutTradeNo: String
# @param TransactionId: 聚鑫订单号,OutTradeNo与 TransactionId不能同时为 空,都传优先使用 OutTradeNo
# @type TransactionId: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :UserId, :Type, :MidasSecretId, :MidasSignature, :Count, :Offset, :StartTime, :EndTime, :OutTradeNo, :TransactionId, :MidasEnvironment
def initialize(midasappid=nil, userid=nil, type=nil, midassecretid=nil, midassignature=nil, count=nil, offset=nil, starttime=nil, endtime=nil, outtradeno=nil, transactionid=nil, midasenvironment=nil)
@MidasAppId = midasappid
@UserId = userid
@Type = type
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@Count = count
@Offset = offset
@StartTime = starttime
@EndTime = endtime
@OutTradeNo = outtradeno
@TransactionId = transactionid
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@Type = params['Type']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@Count = params['Count']
@Offset = params['Offset']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@OutTradeNo = params['OutTradeNo']
@TransactionId = params['TransactionId']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryOrder返回参数结构体
class QueryOrderResponse < TencentCloud::Common::AbstractModel
# @param TotalNum: 返回订单数
# @type TotalNum: Integer
# @param OrderList: 查询结果的订单列表
# @type OrderList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalNum, :OrderList, :RequestId
def initialize(totalnum=nil, orderlist=nil, requestid=nil)
@TotalNum = totalnum
@OrderList = orderlist
@RequestId = requestid
end
def deserialize(params)
@TotalNum = params['TotalNum']
unless params['OrderList'].nil?
@OrderList = []
params['OrderList'].each do |i|
queryorderoutorderlist_tmp = QueryOrderOutOrderList.new
queryorderoutorderlist_tmp.deserialize(i)
@OrderList << queryorderoutorderlist_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryOrderStatus请求参数结构体
class QueryOrderStatusRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param DeveloperNo: 开发者流水号
# @type DeveloperNo: String
# @param OrderNo: 付款订单号
# @type OrderNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :DeveloperNo, :OrderNo, :Profile
def initialize(openid=nil, openkey=nil, developerno=nil, orderno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@DeveloperNo = developerno
@OrderNo = orderno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@DeveloperNo = params['DeveloperNo']
@OrderNo = params['OrderNo']
@Profile = params['Profile']
end
end
# QueryOrderStatus返回参数结构体
class QueryOrderStatusResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 查询订单付款状态结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOrderStatusResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryOrderStatusResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询订单付款状态响应对象
class QueryOrderStatusResult < TencentCloud::Common::AbstractModel
# @param OrderNo: 付款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
# @param DeveloperNo: 开发者流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeveloperNo: String
# @param TradeDiscountAmount: 交易优惠金额(免充值券)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeDiscountAmount: String
# @param PayName: 付款方式名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayName: String
# @param OrderMerchantId: 商户流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderMerchantId: String
# @param TradeAccount: 交易帐号(银行卡号、支付宝帐号、微信帐号等,某些收单机构没有此数据)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeAccount: String
# @param TradeAmount: 实际交易金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeAmount: String
# @param CurrencySign: 币种签名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CurrencySign: String
# @param TradePayTime: 付款完成时间(以收单机构为准)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradePayTime: String
# @param ShopOrderId: 门店流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopOrderId: String
# @param PayTag: 支付标签
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayTag: String
# @param Status: 订单状态(1交易成功,2待支付,4已取消,9等待用户输入密码确认
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param OrderCurrency: 币种代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderCurrency: String
# @param TradeQrcode: 二维码字符串
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeQrcode: String
# @param TradeTime: 开始交易时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeTime: String
# @param DiscountAmount: 折扣金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DiscountAmount: String
# @param MerchantNo: 商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
# @param Remark: 订单备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param OrderName: 订单标题
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderName: String
# @param OriginalAmount: 原始金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalAmount: String
# @param ShopNo: 门店编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopNo: String
# @param TradeResult: 收单机构原始交易数据,如果返回非标准json数据,请自行转换
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeResult: String
# @param OrderId: 订单流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param OrderType: 订单类型(1消费,2辙单)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderType: String
# @param TradeNo: 收单机构交易号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeNo: String
# @param OriginalOrderNo: 原始订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalOrderNo: String
# @param Tag: 订单标记,订单附加数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Tag: String
# @param AddTime: 下单时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AddTime: String
# @param CashierId: 收银员编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CashierId: String
# @param CashierRealName: 收银员名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CashierRealName: String
# @param ShopFullName: 店铺全称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopFullName: String
# @param ShopName: 店铺名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopName: String
attr_accessor :OrderNo, :DeveloperNo, :TradeDiscountAmount, :PayName, :OrderMerchantId, :TradeAccount, :TradeAmount, :CurrencySign, :TradePayTime, :ShopOrderId, :PayTag, :Status, :OrderCurrency, :TradeQrcode, :TradeTime, :DiscountAmount, :MerchantNo, :Remark, :OrderName, :OriginalAmount, :ShopNo, :TradeResult, :OrderId, :OrderType, :TradeNo, :OriginalOrderNo, :Tag, :AddTime, :CashierId, :CashierRealName, :ShopFullName, :ShopName
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, tradetime=nil, discountamount=nil, merchantno=nil, remark=nil, ordername=nil, originalamount=nil, shopno=nil, traderesult=nil, orderid=nil, ordertype=nil, tradeno=nil, originalorderno=nil, tag=nil, addtime=nil, cashierid=nil, cashierrealname=nil, shopfullname=nil, shopname=nil)
@OrderNo = orderno
@DeveloperNo = developerno
@TradeDiscountAmount = tradediscountamount
@PayName = payname
@OrderMerchantId = ordermerchantid
@TradeAccount = tradeaccount
@TradeAmount = tradeamount
@CurrencySign = currencysign
@TradePayTime = tradepaytime
@ShopOrderId = shoporderid
@PayTag = paytag
@Status = status
@OrderCurrency = ordercurrency
@TradeQrcode = tradeqrcode
@TradeTime = tradetime
@DiscountAmount = discountamount
@MerchantNo = merchantno
@Remark = remark
@OrderName = ordername
@OriginalAmount = originalamount
@ShopNo = shopno
@TradeResult = traderesult
@OrderId = orderid
@OrderType = ordertype
@TradeNo = tradeno
@OriginalOrderNo = originalorderno
@Tag = tag
@AddTime = addtime
@CashierId = cashierid
@CashierRealName = cashierrealname
@ShopFullName = shopfullname
@ShopName = shopname
end
def deserialize(params)
@OrderNo = params['OrderNo']
@DeveloperNo = params['DeveloperNo']
@TradeDiscountAmount = params['TradeDiscountAmount']
@PayName = params['PayName']
@OrderMerchantId = params['OrderMerchantId']
@TradeAccount = params['TradeAccount']
@TradeAmount = params['TradeAmount']
@CurrencySign = params['CurrencySign']
@TradePayTime = params['TradePayTime']
@ShopOrderId = params['ShopOrderId']
@PayTag = params['PayTag']
@Status = params['Status']
@OrderCurrency = params['OrderCurrency']
@TradeQrcode = params['TradeQrcode']
@TradeTime = params['TradeTime']
@DiscountAmount = params['DiscountAmount']
@MerchantNo = params['MerchantNo']
@Remark = params['Remark']
@OrderName = params['OrderName']
@OriginalAmount = params['OriginalAmount']
@ShopNo = params['ShopNo']
@TradeResult = params['TradeResult']
@OrderId = params['OrderId']
@OrderType = params['OrderType']
@TradeNo = params['TradeNo']
@OriginalOrderNo = params['OriginalOrderNo']
@Tag = params['Tag']
@AddTime = params['AddTime']
@CashierId = params['CashierId']
@CashierRealName = params['CashierRealName']
@ShopFullName = params['ShopFullName']
@ShopName = params['ShopName']
end
end
# 查询汇出数据
class QueryOutwardOrderData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param AcctDate: 财务日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AcctDate: String
# @param PricingCurrency: 定价币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PricingCurrency: String
# @param SourceCurrency: 源币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SourceCurrency: String
# @param SourceAmount: 源金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SourceAmount: String
# @param TargetCurrency: 目的币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TargetCurrency: String
# @param TargetAmount: 目的金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TargetAmount: String
# @param FxRate: 汇率
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FxRate: String
# @param Status: 指令状态
# @type Status: String
# @param FailReason: 失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param RefundAmount: 退汇金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundAmount: String
# @param RefundCurrency: 退汇币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundCurrency: String
attr_accessor :MerchantId, :TransactionId, :AcctDate, :PricingCurrency, :SourceCurrency, :SourceAmount, :TargetCurrency, :TargetAmount, :FxRate, :Status, :FailReason, :RefundAmount, :RefundCurrency
def initialize(merchantid=nil, transactionid=nil, acctdate=nil, pricingcurrency=nil, sourcecurrency=nil, sourceamount=nil, targetcurrency=nil, targetamount=nil, fxrate=nil, status=nil, failreason=nil, refundamount=nil, refundcurrency=nil)
@MerchantId = merchantid
@TransactionId = transactionid
@AcctDate = acctdate
@PricingCurrency = pricingcurrency
@SourceCurrency = sourcecurrency
@SourceAmount = sourceamount
@TargetCurrency = targetcurrency
@TargetAmount = targetamount
@FxRate = fxrate
@Status = status
@FailReason = failreason
@RefundAmount = refundamount
@RefundCurrency = refundcurrency
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TransactionId = params['TransactionId']
@AcctDate = params['AcctDate']
@PricingCurrency = params['PricingCurrency']
@SourceCurrency = params['SourceCurrency']
@SourceAmount = params['SourceAmount']
@TargetCurrency = params['TargetCurrency']
@TargetAmount = params['TargetAmount']
@FxRate = params['FxRate']
@Status = params['Status']
@FailReason = params['FailReason']
@RefundAmount = params['RefundAmount']
@RefundCurrency = params['RefundCurrency']
end
end
# QueryOutwardOrder请求参数结构体
class QueryOutwardOrderRequest < TencentCloud::Common::AbstractModel
# @param TransactionId: 对接方汇出指令编号
# @type TransactionId: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :TransactionId, :Profile
def initialize(transactionid=nil, profile=nil)
@TransactionId = transactionid
@Profile = profile
end
def deserialize(params)
@TransactionId = params['TransactionId']
@Profile = params['Profile']
end
end
# QueryOutwardOrder返回参数结构体
class QueryOutwardOrderResponse < TencentCloud::Common::AbstractModel
# @param Result: 查询汇出结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOutwardOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryOutwardOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询汇出结果
class QueryOutwardOrderResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 查询汇出数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryOutwardOrderData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = QueryOutwardOrderData.new
@Data.deserialize(params['Data'])
end
end
end
# QueryPayerInfo请求参数结构体
class QueryPayerInfoRequest < TencentCloud::Common::AbstractModel
# @param PayerId: 付款人ID
# @type PayerId: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :PayerId, :Profile
def initialize(payerid=nil, profile=nil)
@PayerId = payerid
@Profile = profile
end
def deserialize(params)
@PayerId = params['PayerId']
@Profile = params['Profile']
end
end
# QueryPayerInfo返回参数结构体
class QueryPayerInfoResponse < TencentCloud::Common::AbstractModel
# @param Result: 付款人查询结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryPayerinfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryPayerinfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 付款人查询数据
class QueryPayerinfoData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param Status: 审核状态
# @type Status: String
# @param FailReason: 失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param PayerType: 付款人类型
# @type PayerType: String
# @param PayerName: 付款人姓名
# @type PayerName: String
# @param PayerIdType: 付款人证件类型
# @type PayerIdType: String
# @param PayerIdNo: 付款人证件号
# @type PayerIdNo: String
# @param PayerContactNumber: 付款人联系电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayerContactNumber: String
# @param PayerEmailAddress: 付款人联系邮箱
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayerEmailAddress: String
# @param PayerCountryCode: 付款人常驻国家或地区编码
# @type PayerCountryCode: String
# @param PayerContactName: 付款人联系名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayerContactName: String
attr_accessor :MerchantId, :PayerId, :Status, :FailReason, :PayerType, :PayerName, :PayerIdType, :PayerIdNo, :PayerContactNumber, :PayerEmailAddress, :PayerCountryCode, :PayerContactName
def initialize(merchantid=nil, payerid=nil, status=nil, failreason=nil, payertype=nil, payername=nil, payeridtype=nil, payeridno=nil, payercontactnumber=nil, payeremailaddress=nil, payercountrycode=nil, payercontactname=nil)
@MerchantId = merchantid
@PayerId = payerid
@Status = status
@FailReason = failreason
@PayerType = payertype
@PayerName = payername
@PayerIdType = payeridtype
@PayerIdNo = payeridno
@PayerContactNumber = payercontactnumber
@PayerEmailAddress = payeremailaddress
@PayerCountryCode = payercountrycode
@PayerContactName = payercontactname
end
def deserialize(params)
@MerchantId = params['MerchantId']
@PayerId = params['PayerId']
@Status = params['Status']
@FailReason = params['FailReason']
@PayerType = params['PayerType']
@PayerName = params['PayerName']
@PayerIdType = params['PayerIdType']
@PayerIdNo = params['PayerIdNo']
@PayerContactNumber = params['PayerContactNumber']
@PayerEmailAddress = params['PayerEmailAddress']
@PayerCountryCode = params['PayerCountryCode']
@PayerContactName = params['PayerContactName']
end
end
# 付款人查询结果
class QueryPayerinfoResult < TencentCloud::Common::AbstractModel
# @param Code: 错误码
# @type Code: String
# @param Data: 付款人查询数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryPayerinfoData`
attr_accessor :Code, :Data
def initialize(code=nil, data=nil)
@Code = code
@Data = data
end
def deserialize(params)
@Code = params['Code']
unless params['Data'].nil?
@Data = QueryPayerinfoData.new
@Data.deserialize(params['Data'])
end
end
end
# QueryReconciliationDocument请求参数结构体
class QueryReconciliationDocumentRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号
# @type MrchCode: String
# @param FileType: STRING(10),文件类型(充值文件-CZ; 提现文件-TX; 交易文件-JY; 余额文件-YE; 合约文件-HY)
# @type FileType: String
# @param FileDate: STRING(8),文件日期(格式:20190101)
# @type FileDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FileType, :FileDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, filetype=nil, filedate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FileType = filetype
@FileDate = filedate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FileType = params['FileType']
@FileDate = params['FileDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QueryReconciliationDocument返回参数结构体
class QueryReconciliationDocumentResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ResultNum: STRING(10),本次交易返回查询结果记录数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ResultNum: String
# @param TranItemArray: 交易信息数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranItemArray: Array
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ResultNum, :TranItemArray, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, resultnum=nil, tranitemarray=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ResultNum = resultnum
@TranItemArray = tranitemarray
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ResultNum = params['ResultNum']
unless params['TranItemArray'].nil?
@TranItemArray = []
params['TranItemArray'].each do |i|
fileitem_tmp = FileItem.new
fileitem_tmp.deserialize(i)
@TranItemArray << fileitem_tmp
end
end
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# QueryReconciliationFileApplyInfo请求参数结构体
class QueryReconciliationFileApplyInfoRequest < TencentCloud::Common::AbstractModel
# @param ApplyFileId: 申请对账文件的任务ID。
# @type ApplyFileId: String
# @param MidasEnvironment: 环境名。
# __release__: 现网环境
# __sandbox__: 沙箱环境
# __development__: 开发环境
# _缺省: release_
# @type MidasEnvironment: String
attr_accessor :ApplyFileId, :MidasEnvironment
def initialize(applyfileid=nil, midasenvironment=nil)
@ApplyFileId = applyfileid
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@ApplyFileId = params['ApplyFileId']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryReconciliationFileApplyInfo返回参数结构体
class QueryReconciliationFileApplyInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryReconciliationFileApplyInfoResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryReconciliationFileApplyInfoResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 查询对账文件申请结果
class QueryReconciliationFileApplyInfoResult < TencentCloud::Common::AbstractModel
# @param ApplyFileId: 申请对账文件的任务ID。
# @type ApplyFileId: String
# @param ApplyStatus: 对账文件申请状态。
# __I__:申请中
# __S__:申请成功
# __F__:申请失败
# @type ApplyStatus: String
# @param ApplyMessage: 申请结果描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ApplyMessage: String
# @param FileUrlArray: 对账文件下载地址列表。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FileUrlArray: Array
attr_accessor :ApplyFileId, :ApplyStatus, :ApplyMessage, :FileUrlArray
def initialize(applyfileid=nil, applystatus=nil, applymessage=nil, fileurlarray=nil)
@ApplyFileId = applyfileid
@ApplyStatus = applystatus
@ApplyMessage = applymessage
@FileUrlArray = fileurlarray
end
def deserialize(params)
@ApplyFileId = params['ApplyFileId']
@ApplyStatus = params['ApplyStatus']
@ApplyMessage = params['ApplyMessage']
@FileUrlArray = params['FileUrlArray']
end
end
# QueryRefund请求参数结构体
class QueryRefundRequest < TencentCloud::Common::AbstractModel
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合。
# @type UserId: String
# @param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合。
# @type RefundId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :UserId, :RefundId, :MidasAppId, :MidasSecretId, :MidasSignature, :MidasEnvironment
def initialize(userid=nil, refundid=nil, midasappid=nil, midassecretid=nil, midassignature=nil, midasenvironment=nil)
@UserId = userid
@RefundId = refundid
@MidasAppId = midasappid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@UserId = params['UserId']
@RefundId = params['RefundId']
@MidasAppId = params['MidasAppId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@MidasEnvironment = params['MidasEnvironment']
end
end
# QueryRefund返回参数结构体
class QueryRefundResponse < TencentCloud::Common::AbstractModel
# @param State: 退款状态码,退款提交成功后返回 1:退款中; 2:退款成功; 3:退款失败。
# @type State: String
# @param ChannelExternalOrderId: 支付机构订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalOrderId: String
# @param ChannelExternalRefundId: 支付机构退款单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExternalRefundId: String
# @param ChannelOrderId: 渠道订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelOrderId: String
# @param TotalRefundAmt: 退款总金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalRefundAmt: Integer
# @param CurrencyType: 货币类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CurrencyType: String
# @param OutTradeNo: 外部订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutTradeNo: String
# @param RefundId: 退款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RefundId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param UsedRefundId: 指定退款订单号。与RefundId的区别是,UsedRefundId不会再做修饰,而RefundId则可能在查询退款处理时做了如添加前缀等的修饰
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UsedRefundId: String
# @param SubRefundList: 子单退款信息列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubRefundList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :State, :ChannelExternalOrderId, :ChannelExternalRefundId, :ChannelOrderId, :TotalRefundAmt, :CurrencyType, :OutTradeNo, :RefundId, :MidasAppId, :UsedRefundId, :SubRefundList, :RequestId
def initialize(state=nil, channelexternalorderid=nil, channelexternalrefundid=nil, channelorderid=nil, totalrefundamt=nil, currencytype=nil, outtradeno=nil, refundid=nil, midasappid=nil, usedrefundid=nil, subrefundlist=nil, requestid=nil)
@State = state
@ChannelExternalOrderId = channelexternalorderid
@ChannelExternalRefundId = channelexternalrefundid
@ChannelOrderId = channelorderid
@TotalRefundAmt = totalrefundamt
@CurrencyType = currencytype
@OutTradeNo = outtradeno
@RefundId = refundid
@MidasAppId = midasappid
@UsedRefundId = usedrefundid
@SubRefundList = subrefundlist
@RequestId = requestid
end
def deserialize(params)
@State = params['State']
@ChannelExternalOrderId = params['ChannelExternalOrderId']
@ChannelExternalRefundId = params['ChannelExternalRefundId']
@ChannelOrderId = params['ChannelOrderId']
@TotalRefundAmt = params['TotalRefundAmt']
@CurrencyType = params['CurrencyType']
@OutTradeNo = params['OutTradeNo']
@RefundId = params['RefundId']
@MidasAppId = params['MidasAppId']
@UsedRefundId = params['UsedRefundId']
unless params['SubRefundList'].nil?
@SubRefundList = []
params['SubRefundList'].each do |i|
oldsubrefund_tmp = OldSubRefund.new
oldsubrefund_tmp.deserialize(i)
@SubRefundList << oldsubrefund_tmp
end
end
@RequestId = params['RequestId']
end
end
# QueryShopOpenId请求参数结构体
class QueryShopOpenIdRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param ShopNo: 门店编号
# @type ShopNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :ShopNo, :Profile
def initialize(openid=nil, openkey=nil, shopno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@ShopNo = shopno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@ShopNo = params['ShopNo']
@Profile = params['Profile']
end
end
# QueryShopOpenId返回参数结构体
class QueryShopOpenIdResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 获取门店OpenId响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryShopOpenIdResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = QueryShopOpenIdResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 获取门店OpenId响应对象
class QueryShopOpenIdResult < TencentCloud::Common::AbstractModel
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param ShopName: 门店简称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopName: String
# @param MerchantNo: 商户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
# @param CityId: 城市编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
# @param OpenId: open_id
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenId: String
# @param Telephone: 门店电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Telephone: String
# @param ShopNo: 门店编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopNo: String
# @param County: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type County: String
# @param ShopFullName: 门店全称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopFullName: String
# @param BrandName: 品牌名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BrandName: String
# @param Address: 详细地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: String
# @param OpenKey: open_key
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenKey: String
# @param MerchantName: 商户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
attr_accessor :Province, :City, :ShopName, :MerchantNo, :CityId, :OpenId, :Telephone, :ShopNo, :County, :ShopFullName, :BrandName, :Address, :OpenKey, :MerchantName
def initialize(province=nil, city=nil, shopname=nil, merchantno=nil, cityid=nil, openid=nil, telephone=nil, shopno=nil, county=nil, shopfullname=nil, brandname=nil, address=nil, openkey=nil, merchantname=nil)
@Province = province
@City = city
@ShopName = shopname
@MerchantNo = merchantno
@CityId = cityid
@OpenId = openid
@Telephone = telephone
@ShopNo = shopno
@County = county
@ShopFullName = shopfullname
@BrandName = brandname
@Address = address
@OpenKey = openkey
@MerchantName = merchantname
end
def deserialize(params)
@Province = params['Province']
@City = params['City']
@ShopName = params['ShopName']
@MerchantNo = params['MerchantNo']
@CityId = params['CityId']
@OpenId = params['OpenId']
@Telephone = params['Telephone']
@ShopNo = params['ShopNo']
@County = params['County']
@ShopFullName = params['ShopFullName']
@BrandName = params['BrandName']
@Address = params['Address']
@OpenKey = params['OpenKey']
@MerchantName = params['MerchantName']
end
end
# QuerySinglePaymentResult接口返回响应
class QuerySinglePaymentResultData < TencentCloud::Common::AbstractModel
# @param TradeSerialNo: 平台交易流水号,唯一
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeSerialNo: String
# @param OrderId: 订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderId: String
# @param TradeStatus: 交易状态。
# 0 处理中
# 1 预占成功
# 2 交易成功
# 3 交易失败
# 4 未知渠道异常
# 5 预占额度失败
# 6 提交成功
# 7 提交失败
# 8 订单重复提交
# 99 未知系统异常
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeStatus: Integer
# @param Remark: 业务备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param AgentId: 代理商ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentId: String
# @param AgentName: 代理商名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
# @param TradeStatusDesc: 交易状态描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeStatusDesc: String
attr_accessor :TradeSerialNo, :OrderId, :TradeStatus, :Remark, :AgentId, :AgentName, :TradeStatusDesc
def initialize(tradeserialno=nil, orderid=nil, tradestatus=nil, remark=nil, agentid=nil, agentname=nil, tradestatusdesc=nil)
@TradeSerialNo = tradeserialno
@OrderId = orderid
@TradeStatus = tradestatus
@Remark = remark
@AgentId = agentid
@AgentName = agentname
@TradeStatusDesc = tradestatusdesc
end
def deserialize(params)
@TradeSerialNo = params['TradeSerialNo']
@OrderId = params['OrderId']
@TradeStatus = params['TradeStatus']
@Remark = params['Remark']
@AgentId = params['AgentId']
@AgentName = params['AgentName']
@TradeStatusDesc = params['TradeStatusDesc']
end
end
# QuerySinglePaymentResult请求参数结构体
class QuerySinglePaymentResultRequest < TencentCloud::Common::AbstractModel
# @param TransferType: 转账类型
# @type TransferType: Integer
# @param TradeSerialNo: 交易流水流水号,唯一
# @type TradeSerialNo: String
# @param OrderId: 订单号,与TradeSerialNo不能同时为空
# @type OrderId: String
attr_accessor :TransferType, :TradeSerialNo, :OrderId
def initialize(transfertype=nil, tradeserialno=nil, orderid=nil)
@TransferType = transfertype
@TradeSerialNo = tradeserialno
@OrderId = orderid
end
def deserialize(params)
@TransferType = params['TransferType']
@TradeSerialNo = params['TradeSerialNo']
@OrderId = params['OrderId']
end
end
# QuerySinglePaymentResult返回参数结构体
class QuerySinglePaymentResultResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 返回响应
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QuerySinglePaymentResultData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QuerySinglePaymentResultData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# QuerySingleTransactionStatus请求参数结构体
class QuerySingleTransactionStatusRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(2: 会员间交易; 3: 提现; 4: 充值)
# @type FunctionFlag: String
# @param TranNetSeqNo: STRING(52),交易网流水号(提现,充值或会员交易请求时的CnsmrSeqNo值)
# @type TranNetSeqNo: String
# @param SubAcctNo: STRING(50),见证子帐户的帐号(未启用)
# @type SubAcctNo: String
# @param TranDate: STRING(8),交易日期(未启用)
# @type TranDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :TranNetSeqNo, :SubAcctNo, :TranDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, trannetseqno=nil, subacctno=nil, trandate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@TranNetSeqNo = trannetseqno
@SubAcctNo = subacctno
@TranDate = trandate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@TranNetSeqNo = params['TranNetSeqNo']
@SubAcctNo = params['SubAcctNo']
@TranDate = params['TranDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QuerySingleTransactionStatus返回参数结构体
class QuerySingleTransactionStatusResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param BookingFlag: STRING(2),记账标志(记账标志。1: 登记挂账; 2: 支付; 3: 提现; 4: 清分; 5: 下单预支付; 6: 确认并付款; 7: 退款; 8: 支付到平台; N: 其他)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BookingFlag: String
# @param TranStatus: STRING(32),交易状态(0: 成功; 1: 失败; 2: 待确认; 5: 待处理; 6: 处理中。0和1是终态,2、5、6是中间态,其中2是特指提现后待确认提现是否成功,5是银行收到交易等待处理,6是交易正在处理)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranStatus: String
# @param TranAmt: STRING(20),交易金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranAmt: String
# @param TranDate: STRING(8),交易日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranDate: String
# @param TranTime: STRING(20),交易时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranTime: String
# @param InSubAcctNo: STRING(50),转入子账户账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InSubAcctNo: String
# @param OutSubAcctNo: STRING(50),转出子账户账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutSubAcctNo: String
# @param FailMsg: STRING(300),失败信息(当提现失败时,返回交易失败原因)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailMsg: String
# @param OldTranFrontSeqNo: STRING(50),原前置流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OldTranFrontSeqNo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :BookingFlag, :TranStatus, :TranAmt, :TranDate, :TranTime, :InSubAcctNo, :OutSubAcctNo, :FailMsg, :OldTranFrontSeqNo, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, bookingflag=nil, transtatus=nil, tranamt=nil, trandate=nil, trantime=nil, insubacctno=nil, outsubacctno=nil, failmsg=nil, oldtranfrontseqno=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@BookingFlag = bookingflag
@TranStatus = transtatus
@TranAmt = tranamt
@TranDate = trandate
@TranTime = trantime
@InSubAcctNo = insubacctno
@OutSubAcctNo = outsubacctno
@FailMsg = failmsg
@OldTranFrontSeqNo = oldtranfrontseqno
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@BookingFlag = params['BookingFlag']
@TranStatus = params['TranStatus']
@TranAmt = params['TranAmt']
@TranDate = params['TranDate']
@TranTime = params['TranTime']
@InSubAcctNo = params['InSubAcctNo']
@OutSubAcctNo = params['OutSubAcctNo']
@FailMsg = params['FailMsg']
@OldTranFrontSeqNo = params['OldTranFrontSeqNo']
@RequestId = params['RequestId']
end
end
# QuerySmallAmountTransfer请求参数结构体
class QuerySmallAmountTransferRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param OldTranSeqNo: STRING(52),原交易流水号(小额鉴权交易请求时的CnsmrSeqNo值)
# @type OldTranSeqNo: String
# @param TranDate: STRING(8),交易日期(格式:20190101)
# @type TranDate: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :OldTranSeqNo, :TranDate, :ReservedMsg, :Profile
def initialize(mrchcode=nil, oldtranseqno=nil, trandate=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@OldTranSeqNo = oldtranseqno
@TranDate = trandate
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@OldTranSeqNo = params['OldTranSeqNo']
@TranDate = params['TranDate']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# QuerySmallAmountTransfer返回参数结构体
class QuerySmallAmountTransferResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ReturnStatus: STRING(10),返回状态(0: 成功; 1: 失败; 2: 待确认)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReturnStatus: String
# @param ReturnMsg: STRING(512),返回信息(失败返回具体信息)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReturnMsg: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ReturnStatus, :ReturnMsg, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, returnstatus=nil, returnmsg=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ReturnStatus = returnstatus
@ReturnMsg = returnmsg
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ReturnStatus = params['ReturnStatus']
@ReturnMsg = params['ReturnMsg']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 贸易材料明细查询数据
class QueryTradeData < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param TradeFileId: 贸易材料流水号
# @type TradeFileId: String
# @param TradeOrderId: 贸易材料订单号
# @type TradeOrderId: String
# @param Status: 审核状态
# @type Status: String
# @param FailReason: 失败原因
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param PayerId: 付款人ID
# @type PayerId: String
# @param PayeeName: 收款人姓名
# @type PayeeName: String
# @param PayeeCountryCode: 收款人常驻国家或地区编码
# @type PayeeCountryCode: String
# @param TradeType: 交易类型
# @type TradeType: String
# @param TradeTime: 交易日期
# @type TradeTime: String
# @param TradeCurrency: 交易币种
# @type TradeCurrency: String
# @param TradeAmount: 交易金额
# @type TradeAmount: String
# @param TradeName: 交易名称
# @type TradeName: String
# @param TradeCount: 交易数量
# @type TradeCount: Integer
# @param GoodsCarrier: 货贸承运人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type GoodsCarrier: String
# @param ServiceDetail: 服贸交易细节
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ServiceDetail: String
# @param ServiceTime: 服贸服务时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ServiceTime: String
attr_accessor :MerchantId, :TradeFileId, :TradeOrderId, :Status, :FailReason, :PayerId, :PayeeName, :PayeeCountryCode, :TradeType, :TradeTime, :TradeCurrency, :TradeAmount, :TradeName, :TradeCount, :GoodsCarrier, :ServiceDetail, :ServiceTime
def initialize(merchantid=nil, tradefileid=nil, tradeorderid=nil, status=nil, failreason=nil, payerid=nil, payeename=nil, payeecountrycode=nil, tradetype=nil, tradetime=nil, tradecurrency=nil, tradeamount=nil, tradename=nil, tradecount=nil, goodscarrier=nil, servicedetail=nil, servicetime=nil)
@MerchantId = merchantid
@TradeFileId = tradefileid
@TradeOrderId = tradeorderid
@Status = status
@FailReason = failreason
@PayerId = payerid
@PayeeName = payeename
@PayeeCountryCode = payeecountrycode
@TradeType = tradetype
@TradeTime = tradetime
@TradeCurrency = tradecurrency
@TradeAmount = tradeamount
@TradeName = tradename
@TradeCount = tradecount
@GoodsCarrier = goodscarrier
@ServiceDetail = servicedetail
@ServiceTime = servicetime
end
def deserialize(params)
@MerchantId = params['MerchantId']
@TradeFileId = params['TradeFileId']
@TradeOrderId = params['TradeOrderId']
@Status = params['Status']
@FailReason = params['FailReason']
@PayerId = params['PayerId']
@PayeeName = params['PayeeName']
@PayeeCountryCode = params['PayeeCountryCode']
@TradeType = params['TradeType']
@TradeTime = params['TradeTime']
@TradeCurrency = params['TradeCurrency']
@TradeAmount = params['TradeAmount']
@TradeName = params['TradeName']
@TradeCount = params['TradeCount']
@GoodsCarrier = params['GoodsCarrier']
@ServiceDetail = params['ServiceDetail']
@ServiceTime = params['ServiceTime']
end
end
# QueryTrade请求参数结构体
class QueryTradeRequest < TencentCloud::Common::AbstractModel
# @param TradeFileId: 贸易材料流水号
# @type TradeFileId: String
# @param Profile: 接入环境。沙箱环境填sandbox
# @type Profile: String
attr_accessor :TradeFileId, :Profile
def initialize(tradefileid=nil, profile=nil)
@TradeFileId = tradefileid
@Profile = profile
end
def deserialize(params)
@TradeFileId = params['TradeFileId']
@Profile = params['Profile']
end
end
# QueryTrade返回参数结构体
class QueryTradeResponse < TencentCloud::Common::AbstractModel
# @param Result: 贸易材料明细查询结果
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryTradeResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
def deserialize(params)
unless params['Result'].nil?
@Result = QueryTradeResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 贸易材料明细查询结果
class QueryTradeResult < TencentCloud::Common::AbstractModel
# @param Data: 贸易材料明细查询数据
# @type Data: :class:`Tencentcloud::Cpdp.v20190820.models.QueryTradeData`
# @param Code: 错误码
# @type Code: String
attr_accessor :Data, :Code
def initialize(data=nil, code=nil)
@Data = data
@Code = code
end
def deserialize(params)
unless params['Data'].nil?
@Data = QueryTradeData.new
@Data.deserialize(params['Data'])
end
@Code = params['Code']
end
end
# QueryTransferBatch请求参数结构体
class QueryTransferBatchRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号。
# 示例值:129284394
# @type MerchantId: String
# @param NeedQueryDetail: 微信明细单号。
# 微信区分明细单返回的唯一标识。
# 示例值:1030000071100999991182020050700019480101
# @type NeedQueryDetail: Boolean
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param BatchId: 是否查询账单明细。
# true-是;
# false-否,默认否。
# 商户可选择是否查询指定状态的转账明细单,当转账批次单状态为“FINISHED”(已完成)时,才会返回满足条件的转账明细单。
# 示例值:true
# @type BatchId: String
# @param Profile: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type Profile: String
# @param Offset: 请求资源起始位置。
# 从0开始,默认值为0。
# 示例值:20
# @type Offset: Integer
# @param Limit: 最大资源条数。
# 该次请求可返回的最大资源(转账明细单)条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
# 示例值:20
# @type Limit: Integer
# @param DetailStatus: 明细状态。
# ALL:全部,需要同时查询转账成功喝失败的明细单;
# SUCCESS:转账成功,只查询成功的明细单;
# FAIL:转账失败,只查询转账失败的明细单。
# 示例值:FAIL
# @type DetailStatus: String
attr_accessor :MerchantId, :NeedQueryDetail, :MerchantBatchNo, :BatchId, :Profile, :Offset, :Limit, :DetailStatus
def initialize(merchantid=nil, needquerydetail=nil, merchantbatchno=nil, batchid=nil, profile=nil, offset=nil, limit=nil, detailstatus=nil)
@MerchantId = merchantid
@NeedQueryDetail = needquerydetail
@MerchantBatchNo = merchantbatchno
@BatchId = batchid
@Profile = profile
@Offset = offset
@Limit = limit
@DetailStatus = detailstatus
end
def deserialize(params)
@MerchantId = params['MerchantId']
@NeedQueryDetail = params['NeedQueryDetail']
@MerchantBatchNo = params['MerchantBatchNo']
@BatchId = params['BatchId']
@Profile = params['Profile']
@Offset = params['Offset']
@Limit = params['Limit']
@DetailStatus = params['DetailStatus']
end
end
# QueryTransferBatch返回参数结构体
class QueryTransferBatchResponse < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号。
# 示例值:19300009329
# @type MerchantId: String
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param BatchId: 微信批次单号。
# 微信商家转账系统返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type BatchId: String
# @param MerchantAppId: 直连商户appId。
# 商户号绑定的appid。
# 示例值:wxf636efh567hg4356
# @type MerchantAppId: String
# @param BatchStatus: 批次状态。
# ACCEPTED:已受理,批次已受理成功,若发起批量转账的30分钟后,转账批次单仍处于该状态,可能原因是商户账户余额不足等。商户可查询账户资金流水,若该笔转账批次单的扣款已经发生,则表示批次已经进入转账中,请再次查单确认;
# PROCESSING:转账中,已开始处理批次内的转账明细单;
# FINISHED:已完成,批次内的所有转账明细单都已处理完成;
# CLOSED:已关闭,可查询具体的批次关闭原因确认;
# 示例值:ACCEPTED
# @type BatchStatus: String
# @param CloseReason: 批次关闭原因。
# 如果批次单状态为“CLOSED”(已关闭),则有关闭原因;
# MERCHANT_REVOCATION:商户主动撤销;
# OVERDUE_CLOSE:系统超时关闭。
# 示例值:OVERDUE_CLOSE
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CloseReason: String
# @param TotalAmount: 转账总金额。
# 转账金额,单位为分。
# 示例值:4000000
# @type TotalAmount: Integer
# @param TotalNum: 转账总笔数。
# 一个转账批次最多允许发起三千笔转账。
# 示例值:200
# @type TotalNum: Integer
# @param CreateTime: 批次受理成功时返回,遵循rfc3339标准格式。格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
# 示例值:2015-05-20T13:29:35.120+08:00
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param UpdateTime: 批次最近一次更新时间,遵循rfc3339标准格式。格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
# 示例值:2015-05-20T13:29:35.120+08:00
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param SuccessAmount: 转账成功金额。
# 转账成功的金额,单位为分,可能随时变化。
# 示例值:4000000
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SuccessAmount: Integer
# @param SuccessNum: 转账成功的笔数。
# 可能随时变化。
# 示例值:200
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SuccessNum: Integer
# @param FailAmount: 转账失败金额。
# 转账失败的金额,单位为分,可能随时变化。
# 示例值:4000000
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailAmount: Integer
# @param FailNum: 转账失败笔数。
# 可能随时变化。
# 示例值:200
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailNum: Integer
# @param TransferDetails: 转账明细列表。
# 返回明细详情
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferDetails: Array
# @param BatchType: 批次类型。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchType: String
# @param BatchName: 批次名称。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchName: String
# @param BatchRemark: 批次标注。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BatchRemark: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantId, :MerchantBatchNo, :BatchId, :MerchantAppId, :BatchStatus, :CloseReason, :TotalAmount, :TotalNum, :CreateTime, :UpdateTime, :SuccessAmount, :SuccessNum, :FailAmount, :FailNum, :TransferDetails, :BatchType, :BatchName, :BatchRemark, :RequestId
def initialize(merchantid=nil, merchantbatchno=nil, batchid=nil, merchantappid=nil, batchstatus=nil, closereason=nil, totalamount=nil, totalnum=nil, createtime=nil, updatetime=nil, successamount=nil, successnum=nil, failamount=nil, failnum=nil, transferdetails=nil, batchtype=nil, batchname=nil, batchremark=nil, requestid=nil)
@MerchantId = merchantid
@MerchantBatchNo = merchantbatchno
@BatchId = batchid
@MerchantAppId = merchantappid
@BatchStatus = batchstatus
@CloseReason = closereason
@TotalAmount = totalamount
@TotalNum = totalnum
@CreateTime = createtime
@UpdateTime = updatetime
@SuccessAmount = successamount
@SuccessNum = successnum
@FailAmount = failamount
@FailNum = failnum
@TransferDetails = transferdetails
@BatchType = batchtype
@BatchName = batchname
@BatchRemark = batchremark
@RequestId = requestid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantBatchNo = params['MerchantBatchNo']
@BatchId = params['BatchId']
@MerchantAppId = params['MerchantAppId']
@BatchStatus = params['BatchStatus']
@CloseReason = params['CloseReason']
@TotalAmount = params['TotalAmount']
@TotalNum = params['TotalNum']
@CreateTime = params['CreateTime']
@UpdateTime = params['UpdateTime']
@SuccessAmount = params['SuccessAmount']
@SuccessNum = params['SuccessNum']
@FailAmount = params['FailAmount']
@FailNum = params['FailNum']
unless params['TransferDetails'].nil?
@TransferDetails = []
params['TransferDetails'].each do |i|
transferdetailresponse_tmp = TransferDetailResponse.new
transferdetailresponse_tmp.deserialize(i)
@TransferDetails << transferdetailresponse_tmp
end
end
@BatchType = params['BatchType']
@BatchName = params['BatchName']
@BatchRemark = params['BatchRemark']
@RequestId = params['RequestId']
end
end
# QueryTransferDetail请求参数结构体
class QueryTransferDetailRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号。
# 示例值:129284394
# @type MerchantId: String
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param MerchantDetailNo: 商家明细单号。
# 商户系统内部的商家明细单号
# 示例值:plfk2020042013
# @type MerchantDetailNo: String
# @param BatchId: 微信批次单号。
# 微信商家转账系统返回的唯一标识。
# 商家单号(包含批次号和明细单号)和微信单号(包含批次号和明细单号)二者必填其一。
# 示例值:1030000071100999991182020050700019480001
# @type BatchId: String
# @param DetailId: 微信明细单号。
# 微信区分明细单返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type DetailId: String
# @param Profile: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type Profile: String
attr_accessor :MerchantId, :MerchantBatchNo, :MerchantDetailNo, :BatchId, :DetailId, :Profile
def initialize(merchantid=nil, merchantbatchno=nil, merchantdetailno=nil, batchid=nil, detailid=nil, profile=nil)
@MerchantId = merchantid
@MerchantBatchNo = merchantbatchno
@MerchantDetailNo = merchantdetailno
@BatchId = batchid
@DetailId = detailid
@Profile = profile
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantBatchNo = params['MerchantBatchNo']
@MerchantDetailNo = params['MerchantDetailNo']
@BatchId = params['BatchId']
@DetailId = params['DetailId']
@Profile = params['Profile']
end
end
# QueryTransferDetail返回参数结构体
class QueryTransferDetailResponse < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号。
# 示例值:19300009329
# @type MerchantId: String
# @param MerchantBatchNo: 商家批次单号。
# 商户系统内部的商家批次单号,此参数只能由数字、字母组成,商户系统内部唯一,UTF8编码,最多32个字符。
# 示例值:plfk2020042013
# @type MerchantBatchNo: String
# @param BatchId: 微信批次单号。
# 微信商家转账系统返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type BatchId: String
# @param MerchantDetailNo: 商家明细单号。
# 商户系统内部的商家明细单号
# 示例值:plfk2020042013
# @type MerchantDetailNo: String
# @param DetailId: 微信明细单号。
# 微信区分明细单返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type DetailId: String
# @param DetailStatus: 明细状态。
# PROCESSING:转账中,正在处理,结果未明;
# SUCCESS:转账成功;
# FAIL:转账失败,需要确认失败原因以后,再决定是否重新发起地该笔明细的转账。
# 示例值:SUCCESS
# @type DetailStatus: String
# @param TransferAmount: 转账金额。
# 单位为分。
# 示例值:200
# @type TransferAmount: Integer
# @param FailReason: 失败原因。
# 如果转账失败则有失败原因
# ACCOUNT_FROZEN:账户冻结
# REAL_NAME_CHECK_FAIL:用户未实名
# NAME_NOT_CORRECT:用户姓名校验失败
# OPENID_INVALID:Openid校验失败
# TRANSFER_QUOTA_EXCEED:超过用户单笔收款额度
# DAY_RECEIVED_QUOTA_EXCEED:超过用户单日收款额度
# MONTH_RECEIVED_QUOTA_EXCEED:超过用户单月收款额度
# DAY_RECEIVED_COUNT_EXCEED:超过用户单日收款次数
# PRODUCT_AUTH_CHECK_FAIL:产品权限校验失败
# OVERDUE_CLOSE:转账关闭
# ID_CARD_NOT_CORRECT:用户身份证校验失败
# ACCOUNT_NOT_EXIST:用户账户不存在
# TRANSFER_RISK:转账存在风险
# 示例值:ACCOUNT_FROZEN
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailReason: String
# @param InitiateTime: 转账发起时间。
# 遵循rfc3339标准格式。格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
# 示例值:2015-05-20T13:29:35.120+08:00
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InitiateTime: String
# @param UpdateTime: 转账更新时间。
# 遵循rfc3339标准格式。格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
# 示例值:2015-05-20T13:29:35.120+08:00
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param UserName: 用户名。
# 示例值:张三
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserName: String
# @param TransferRemark: 转账备注。
# 单条转账备注(微信用户会收到该备注)。UTF8编码,最多32字符。
# 示例值:2020年4月报销
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferRemark: String
# @param MerchantAppId: 商家绑定公众号APPID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantAppId: String
# @param OpenId: 用户openId。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantId, :MerchantBatchNo, :BatchId, :MerchantDetailNo, :DetailId, :DetailStatus, :TransferAmount, :FailReason, :InitiateTime, :UpdateTime, :UserName, :TransferRemark, :MerchantAppId, :OpenId, :RequestId
def initialize(merchantid=nil, merchantbatchno=nil, batchid=nil, merchantdetailno=nil, detailid=nil, detailstatus=nil, transferamount=nil, failreason=nil, initiatetime=nil, updatetime=nil, username=nil, transferremark=nil, merchantappid=nil, openid=nil, requestid=nil)
@MerchantId = merchantid
@MerchantBatchNo = merchantbatchno
@BatchId = batchid
@MerchantDetailNo = merchantdetailno
@DetailId = detailid
@DetailStatus = detailstatus
@TransferAmount = transferamount
@FailReason = failreason
@InitiateTime = initiatetime
@UpdateTime = updatetime
@UserName = username
@TransferRemark = transferremark
@MerchantAppId = merchantappid
@OpenId = openid
@RequestId = requestid
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantBatchNo = params['MerchantBatchNo']
@BatchId = params['BatchId']
@MerchantDetailNo = params['MerchantDetailNo']
@DetailId = params['DetailId']
@DetailStatus = params['DetailStatus']
@TransferAmount = params['TransferAmount']
@FailReason = params['FailReason']
@InitiateTime = params['InitiateTime']
@UpdateTime = params['UpdateTime']
@UserName = params['UserName']
@TransferRemark = params['TransferRemark']
@MerchantAppId = params['MerchantAppId']
@OpenId = params['OpenId']
@RequestId = params['RequestId']
end
end
# 智能代发-单笔代发转账查询接口返回内容
class QueryTransferResultData < TencentCloud::Common::AbstractModel
# @param TradeSerialNo: 平台交易流水号
# @type TradeSerialNo: String
# @param OrderId: 订单号
# @type OrderId: String
# @param TradeStatus: 交易状态。
# 0 处理中
# 1 提交成功
# 2 交易成功
# 3 交易失败
# 4 未知渠道异常
# 99 未知系统异常
# @type TradeStatus: Integer
# @param Remark: 业务备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :TradeSerialNo, :OrderId, :TradeStatus, :Remark
def initialize(tradeserialno=nil, orderid=nil, tradestatus=nil, remark=nil)
@TradeSerialNo = tradeserialno
@OrderId = orderid
@TradeStatus = tradestatus
@Remark = remark
end
def deserialize(params)
@TradeSerialNo = params['TradeSerialNo']
@OrderId = params['OrderId']
@TradeStatus = params['TradeStatus']
@Remark = params['Remark']
end
end
# QueryTransferResult请求参数结构体
class QueryTransferResultRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param MerchantAppId: 申请商户号的appid或者商户号绑定的appid
# @type MerchantAppId: String
# @param TransferType: 1、 微信企业付款
# 2、 支付宝转账
# 3、 平安银企直联代发转账
# @type TransferType: Integer
# @param TradeSerialNo: 交易流水流水号(与 OrderId 不能同时为空)
# @type TradeSerialNo: String
# @param OrderId: 订单号(与 TradeSerialNo 不能同时为空)
# @type OrderId: String
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
attr_accessor :MerchantId, :MerchantAppId, :TransferType, :TradeSerialNo, :OrderId, :Profile
def initialize(merchantid=nil, merchantappid=nil, transfertype=nil, tradeserialno=nil, orderid=nil, profile=nil)
@MerchantId = merchantid
@MerchantAppId = merchantappid
@TransferType = transfertype
@TradeSerialNo = tradeserialno
@OrderId = orderid
@Profile = profile
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantAppId = params['MerchantAppId']
@TransferType = params['TransferType']
@TradeSerialNo = params['TradeSerialNo']
@OrderId = params['OrderId']
@Profile = params['Profile']
end
end
# QueryTransferResult返回参数结构体
class QueryTransferResultResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功
# @type ErrCode: String
# @param ErrMessage: 响应消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.QueryTransferResultData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = QueryTransferResultData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# RechargeByThirdPay请求参数结构体
class RechargeByThirdPayRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型 此接口固定填:MemberRechargeThirdPayReq
# @type RequestType: String
# @param MerchantCode: 商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OrderId: 交易订单号
# @type OrderId: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param TransSequenceNumber: 交易流水号
# @type TransSequenceNumber: String
# @param BankSubAccountNumber: 子账户账号
# @type BankSubAccountNumber: String
# @param TransFee: 交易手续费,以元为单位
# @type TransFee: String
# @param ThirdPayChannel: 第三方支付渠道类型 0001-微信 0002-支付宝 0003-京东支付
# @type ThirdPayChannel: String
# @param ThirdPayChannelMerchantCode: 第三方渠道商户号
# @type ThirdPayChannelMerchantCode: String
# @param ThirdPayChannelOrderId: 第三方渠道订单号或流水号
# @type ThirdPayChannelOrderId: String
# @param CurrencyAmount: 交易金额
# @type CurrencyAmount: String
# @param CurrencyUnit: 单位,1:元,2:角,3:分
# @type CurrencyUnit: String
# @param CurrencyType: 币种
# @type CurrencyType: String
# @param TransNetMemberCode: 交易网会员代码
# @type TransNetMemberCode: String
# @param MidasEnvironment: midas环境参数
# @type MidasEnvironment: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
# @param Remark: 备注
# @type Remark: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OrderId, :BankAccountNumber, :PlatformShortNumber, :MidasSecretId, :MidasAppId, :MidasSignature, :TransSequenceNumber, :BankSubAccountNumber, :TransFee, :ThirdPayChannel, :ThirdPayChannelMerchantCode, :ThirdPayChannelOrderId, :CurrencyAmount, :CurrencyUnit, :CurrencyType, :TransNetMemberCode, :MidasEnvironment, :ReservedMessage, :Remark
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, orderid=nil, bankaccountnumber=nil, platformshortnumber=nil, midassecretid=nil, midasappid=nil, midassignature=nil, transsequencenumber=nil, banksubaccountnumber=nil, transfee=nil, thirdpaychannel=nil, thirdpaychannelmerchantcode=nil, thirdpaychannelorderid=nil, currencyamount=nil, currencyunit=nil, currencytype=nil, transnetmembercode=nil, midasenvironment=nil, reservedmessage=nil, remark=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OrderId = orderid
@BankAccountNumber = bankaccountnumber
@PlatformShortNumber = platformshortnumber
@MidasSecretId = midassecretid
@MidasAppId = midasappid
@MidasSignature = midassignature
@TransSequenceNumber = transsequencenumber
@BankSubAccountNumber = banksubaccountnumber
@TransFee = transfee
@ThirdPayChannel = thirdpaychannel
@ThirdPayChannelMerchantCode = thirdpaychannelmerchantcode
@ThirdPayChannelOrderId = thirdpaychannelorderid
@CurrencyAmount = currencyamount
@CurrencyUnit = currencyunit
@CurrencyType = currencytype
@TransNetMemberCode = transnetmembercode
@MidasEnvironment = midasenvironment
@ReservedMessage = reservedmessage
@Remark = remark
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OrderId = params['OrderId']
@BankAccountNumber = params['BankAccountNumber']
@PlatformShortNumber = params['PlatformShortNumber']
@MidasSecretId = params['MidasSecretId']
@MidasAppId = params['MidasAppId']
@MidasSignature = params['MidasSignature']
@TransSequenceNumber = params['TransSequenceNumber']
@BankSubAccountNumber = params['BankSubAccountNumber']
@TransFee = params['TransFee']
@ThirdPayChannel = params['ThirdPayChannel']
@ThirdPayChannelMerchantCode = params['ThirdPayChannelMerchantCode']
@ThirdPayChannelOrderId = params['ThirdPayChannelOrderId']
@CurrencyAmount = params['CurrencyAmount']
@CurrencyUnit = params['CurrencyUnit']
@CurrencyType = params['CurrencyType']
@TransNetMemberCode = params['TransNetMemberCode']
@MidasEnvironment = params['MidasEnvironment']
@ReservedMessage = params['ReservedMessage']
@Remark = params['Remark']
end
end
# RechargeByThirdPay返回参数结构体
class RechargeByThirdPayResponse < TencentCloud::Common::AbstractModel
# @param ReservedMessage: 保留字段
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMessage: String
# @param FrontSequenceNumber: 银行流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSequenceNumber: String
# @param RequestType: 请求类型
# @type RequestType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ReservedMessage, :FrontSequenceNumber, :RequestType, :RequestId
def initialize(reservedmessage=nil, frontsequencenumber=nil, requesttype=nil, requestid=nil)
@ReservedMessage = reservedmessage
@FrontSequenceNumber = frontsequencenumber
@RequestType = requesttype
@RequestId = requestid
end
def deserialize(params)
@ReservedMessage = params['ReservedMessage']
@FrontSequenceNumber = params['FrontSequenceNumber']
@RequestType = params['RequestType']
@RequestId = params['RequestId']
end
end
# RechargeMemberThirdPay请求参数结构体
class RechargeMemberThirdPayRequest < TencentCloud::Common::AbstractModel
# @param TranNetMemberCode: STRING(32),交易网会代码
# @type TranNetMemberCode: String
# @param MemberFillAmt: STRING(20),会员充值金额
# @type MemberFillAmt: String
# @param Commission: STRING(20),手续费金额
# @type Commission: String
# @param Ccy: STRING(3),币种。如RMB
# @type Ccy: String
# @param PayChannelType: STRING(20),支付渠道类型。
# 0001-微信
# 0002-支付宝
# 0003-京东支付
# @type PayChannelType: String
# @param PayChannelAssignMerNo: STRING(50),支付渠道所分配的商户号
# @type PayChannelAssignMerNo: String
# @param PayChannelTranSeqNo: STRING(52),支付渠道交易流水号
# @type PayChannelTranSeqNo: String
# @param EjzbOrderNo: STRING(52),电商见证宝订单号
# @type EjzbOrderNo: String
# @param MrchCode: String(22),商户号
# @type MrchCode: String
# @param EjzbOrderContent: STRING(500),电商见证宝订单内容
# @type EjzbOrderContent: String
# @param Remark: STRING(300),备注
# @type Remark: String
# @param ReservedMsgOne: STRING(300),保留域1
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# @type ReservedMsgTwo: String
# @param ReservedMsgThree: STRING(300),保留域3
# @type ReservedMsgThree: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :TranNetMemberCode, :MemberFillAmt, :Commission, :Ccy, :PayChannelType, :PayChannelAssignMerNo, :PayChannelTranSeqNo, :EjzbOrderNo, :MrchCode, :EjzbOrderContent, :Remark, :ReservedMsgOne, :ReservedMsgTwo, :ReservedMsgThree, :Profile
def initialize(trannetmembercode=nil, memberfillamt=nil, commission=nil, ccy=nil, paychanneltype=nil, paychannelassignmerno=nil, paychanneltranseqno=nil, ejzborderno=nil, mrchcode=nil, ejzbordercontent=nil, remark=nil, reservedmsgone=nil, reservedmsgtwo=nil, reservedmsgthree=nil, profile=nil)
@TranNetMemberCode = trannetmembercode
@MemberFillAmt = memberfillamt
@Commission = commission
@Ccy = ccy
@PayChannelType = paychanneltype
@PayChannelAssignMerNo = paychannelassignmerno
@PayChannelTranSeqNo = paychanneltranseqno
@EjzbOrderNo = ejzborderno
@MrchCode = mrchcode
@EjzbOrderContent = ejzbordercontent
@Remark = remark
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@ReservedMsgThree = reservedmsgthree
@Profile = profile
end
def deserialize(params)
@TranNetMemberCode = params['TranNetMemberCode']
@MemberFillAmt = params['MemberFillAmt']
@Commission = params['Commission']
@Ccy = params['Ccy']
@PayChannelType = params['PayChannelType']
@PayChannelAssignMerNo = params['PayChannelAssignMerNo']
@PayChannelTranSeqNo = params['PayChannelTranSeqNo']
@EjzbOrderNo = params['EjzbOrderNo']
@MrchCode = params['MrchCode']
@EjzbOrderContent = params['EjzbOrderContent']
@Remark = params['Remark']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@ReservedMsgThree = params['ReservedMsgThree']
@Profile = params['Profile']
end
end
# RechargeMemberThirdPay返回参数结构体
class RechargeMemberThirdPayResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),前置流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param MemberSubAcctPreAvailBal: STRING(20),会员子账户交易前可用余额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MemberSubAcctPreAvailBal: String
# @param ReservedMsgOne: STRING(300),保留域1
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsgTwo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :MemberSubAcctPreAvailBal, :ReservedMsgOne, :ReservedMsgTwo, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, membersubacctpreavailbal=nil, reservedmsgone=nil, reservedmsgtwo=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@MemberSubAcctPreAvailBal = membersubacctpreavailbal
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@MemberSubAcctPreAvailBal = params['MemberSubAcctPreAvailBal']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@RequestId = params['RequestId']
end
end
# RefundCloudOrder请求参数结构体
class RefundCloudOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type RefundId: String
# @param TotalRefundAmt: 退款金额,单位:分
# 当该字段为空或者为0时,系统会默认使用订单当实付金额作为退款金额
# @type TotalRefundAmt: Integer
# @param OutTradeNo: 商品订单,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type OutTradeNo: String
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
# @param PlatformRefundAmt: 平台应收金额,单位:分
# @type PlatformRefundAmt: Integer
# @param MchRefundAmt: 结算应收金额,单位:分
# @type MchRefundAmt: Integer
# @param SubOrderRefundList: 支持多个子订单批量退款单个子订单退款支持传SubOutTradeNo
# 也支持传SubOrderRefundList,都传的时候以SubOrderRefundList为准。
# 如果传了子单退款细节,外部不需要再传退款金额,平台应退,商户应退金额
# @type SubOrderRefundList: Array
# @param ChannelOrderId: 渠道订单号,当出现重复支付时,可以将重复支付订单的渠道订单号传入,以进行退款(注意:目前该重复支付订单的渠道订单号仅能通过米大师内部获取),更多重复支付订单退款说明,请参考[重复支付订单退款说明](https://dev.tke.midas.qq.com/juxin-doc-next/apidocs/receive-order/Refund.html#%E9%87%8D%E5%A4%8D%E6%94%AF%E4%BB%98%E8%AE%A2%E5%8D%95%E9%80%80%E6%AC%BE%E8%AF%B4%E6%98%8E)
# @type ChannelOrderId: String
# @param RefundNotifyUrl: 通知地址
# @type RefundNotifyUrl: String
# @param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容
# @type Metadata: String
# @param ExternalRefundPromptGroupList: 渠道扩展退款促销列表,可将各个渠道的退款促销信息放于该列表
# @type ExternalRefundPromptGroupList: String
attr_accessor :MidasAppId, :UserId, :RefundId, :TotalRefundAmt, :OutTradeNo, :MidasEnvironment, :PlatformRefundAmt, :MchRefundAmt, :SubOrderRefundList, :ChannelOrderId, :RefundNotifyUrl, :Metadata, :ExternalRefundPromptGroupList
def initialize(midasappid=nil, userid=nil, refundid=nil, totalrefundamt=nil, outtradeno=nil, midasenvironment=nil, platformrefundamt=nil, mchrefundamt=nil, suborderrefundlist=nil, channelorderid=nil, refundnotifyurl=nil, metadata=nil, externalrefundpromptgrouplist=nil)
@MidasAppId = midasappid
@UserId = userid
@RefundId = refundid
@TotalRefundAmt = totalrefundamt
@OutTradeNo = outtradeno
@MidasEnvironment = midasenvironment
@PlatformRefundAmt = platformrefundamt
@MchRefundAmt = mchrefundamt
@SubOrderRefundList = suborderrefundlist
@ChannelOrderId = channelorderid
@RefundNotifyUrl = refundnotifyurl
@Metadata = metadata
@ExternalRefundPromptGroupList = externalrefundpromptgrouplist
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@RefundId = params['RefundId']
@TotalRefundAmt = params['TotalRefundAmt']
@OutTradeNo = params['OutTradeNo']
@MidasEnvironment = params['MidasEnvironment']
@PlatformRefundAmt = params['PlatformRefundAmt']
@MchRefundAmt = params['MchRefundAmt']
unless params['SubOrderRefundList'].nil?
@SubOrderRefundList = []
params['SubOrderRefundList'].each do |i|
cloudsuborderrefund_tmp = CloudSubOrderRefund.new
cloudsuborderrefund_tmp.deserialize(i)
@SubOrderRefundList << cloudsuborderrefund_tmp
end
end
@ChannelOrderId = params['ChannelOrderId']
@RefundNotifyUrl = params['RefundNotifyUrl']
@Metadata = params['Metadata']
@ExternalRefundPromptGroupList = params['ExternalRefundPromptGroupList']
end
end
# RefundCloudOrder返回参数结构体
class RefundCloudOrderResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# RefundMemberTransaction请求参数结构体
class RefundMemberTransactionRequest < TencentCloud::Common::AbstractModel
# @param OutSubAccountName: 转出见证子账户的户名
# @type OutSubAccountName: String
# @param InSubAccountName: 转入见证子账户的户名
# @type InSubAccountName: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OutSubAccountNumber: 转出见证子账户账号
# @type OutSubAccountNumber: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param InSubAccountNumber: 转入见证子账户账号
# @type InSubAccountNumber: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param OldTransSequenceNumber: 原老订单流水号
# @type OldTransSequenceNumber: String
# @param MerchantCode: 银行注册商户号
# @type MerchantCode: String
# @param RequestType: 请求类型,固定为MemberTransactionRefundReq
# @type RequestType: String
# @param CurrencyAmount: 交易金额
# @type CurrencyAmount: String
# @param TransSequenceNumber: 交易流水号
# @type TransSequenceNumber: String
# @param PayChannel: 渠道
# @type PayChannel: String
# @param OldOrderId: 原订单号
# @type OldOrderId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param OrderId: 订单号
# @type OrderId: String
# @param MidasEnvironment: Midas环境标识 release 现网环境 sandbox 沙箱环境
# development 开发环境
# @type MidasEnvironment: String
# @param OutTransNetMemberCode: 转出子账户交易网会员代码
# @type OutTransNetMemberCode: String
# @param InTransNetMemberCode: 转入子账户交易网会员代码
# @type InTransNetMemberCode: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param TransType: 0-登记挂账,1-撤销挂账
# @type TransType: String
# @param TransFee: 交易手续费
# @type TransFee: String
attr_accessor :OutSubAccountName, :InSubAccountName, :PayChannelSubId, :OutSubAccountNumber, :MidasSignature, :InSubAccountNumber, :MidasSecretId, :BankAccountNumber, :OldTransSequenceNumber, :MerchantCode, :RequestType, :CurrencyAmount, :TransSequenceNumber, :PayChannel, :OldOrderId, :MidasAppId, :OrderId, :MidasEnvironment, :OutTransNetMemberCode, :InTransNetMemberCode, :ReservedMessage, :PlatformShortNumber, :TransType, :TransFee
def initialize(outsubaccountname=nil, insubaccountname=nil, paychannelsubid=nil, outsubaccountnumber=nil, midassignature=nil, insubaccountnumber=nil, midassecretid=nil, bankaccountnumber=nil, oldtranssequencenumber=nil, merchantcode=nil, requesttype=nil, currencyamount=nil, transsequencenumber=nil, paychannel=nil, oldorderid=nil, midasappid=nil, orderid=nil, midasenvironment=nil, outtransnetmembercode=nil, intransnetmembercode=nil, reservedmessage=nil, platformshortnumber=nil, transtype=nil, transfee=nil)
@OutSubAccountName = outsubaccountname
@InSubAccountName = insubaccountname
@PayChannelSubId = paychannelsubid
@OutSubAccountNumber = outsubaccountnumber
@MidasSignature = midassignature
@InSubAccountNumber = insubaccountnumber
@MidasSecretId = midassecretid
@BankAccountNumber = bankaccountnumber
@OldTransSequenceNumber = oldtranssequencenumber
@MerchantCode = merchantcode
@RequestType = requesttype
@CurrencyAmount = currencyamount
@TransSequenceNumber = transsequencenumber
@PayChannel = paychannel
@OldOrderId = oldorderid
@MidasAppId = midasappid
@OrderId = orderid
@MidasEnvironment = midasenvironment
@OutTransNetMemberCode = outtransnetmembercode
@InTransNetMemberCode = intransnetmembercode
@ReservedMessage = reservedmessage
@PlatformShortNumber = platformshortnumber
@TransType = transtype
@TransFee = transfee
end
def deserialize(params)
@OutSubAccountName = params['OutSubAccountName']
@InSubAccountName = params['InSubAccountName']
@PayChannelSubId = params['PayChannelSubId']
@OutSubAccountNumber = params['OutSubAccountNumber']
@MidasSignature = params['MidasSignature']
@InSubAccountNumber = params['InSubAccountNumber']
@MidasSecretId = params['MidasSecretId']
@BankAccountNumber = params['BankAccountNumber']
@OldTransSequenceNumber = params['OldTransSequenceNumber']
@MerchantCode = params['MerchantCode']
@RequestType = params['RequestType']
@CurrencyAmount = params['CurrencyAmount']
@TransSequenceNumber = params['TransSequenceNumber']
@PayChannel = params['PayChannel']
@OldOrderId = params['OldOrderId']
@MidasAppId = params['MidasAppId']
@OrderId = params['OrderId']
@MidasEnvironment = params['MidasEnvironment']
@OutTransNetMemberCode = params['OutTransNetMemberCode']
@InTransNetMemberCode = params['InTransNetMemberCode']
@ReservedMessage = params['ReservedMessage']
@PlatformShortNumber = params['PlatformShortNumber']
@TransType = params['TransType']
@TransFee = params['TransFee']
end
end
# RefundMemberTransaction返回参数结构体
class RefundMemberTransactionResponse < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型
# @type RequestType: String
# @param FrontSequenceNumber: 银行流水号
# @type FrontSequenceNumber: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestType, :FrontSequenceNumber, :ReservedMessage, :RequestId
def initialize(requesttype=nil, frontsequencenumber=nil, reservedmessage=nil, requestid=nil)
@RequestType = requesttype
@FrontSequenceNumber = frontsequencenumber
@ReservedMessage = reservedmessage
@RequestId = requestid
end
def deserialize(params)
@RequestType = params['RequestType']
@FrontSequenceNumber = params['FrontSequenceNumber']
@ReservedMessage = params['ReservedMessage']
@RequestId = params['RequestId']
end
end
# RefundOpenBankOrder请求参数结构体
class RefundOpenBankOrderRequest < TencentCloud::Common::AbstractModel
# @param OutRefundId: 外部商户退款单号。
# @type OutRefundId: String
# @param RefundAmount: 退款金额。单位分。
# @type RefundAmount: Integer
# @param ChannelMerchantId: 渠道商户号。外部平台接入云企付平台下发。必填。
# @type ChannelMerchantId: String
# @param OutOrderId: 外部商户订单号,与云企付渠道订单号二者不能同时为空。
# @type OutOrderId: String
# @param ChannelOrderId: 云企付渠道订单号,与外部订单号二者不能同时为空。
# @type ChannelOrderId: String
# @param NotifyUrl: 退款通知地址。
# @type NotifyUrl: String
# @param RefundReason: 退款原因。
# 当EBANK_PAYMENT担保支付订单退款时,此字段必传。
# @type RefundReason: String
# @param ExternalRefundData: 第三方渠道退款附加信息。详见附录-复杂类型。
# 若未作特殊说明,则无需传入。
# @type ExternalRefundData: String
# @param Remark: 备注信息
# @type Remark: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
# @param ProfitShareInfoList: 分账信息列表。
# @type ProfitShareInfoList: Array
attr_accessor :OutRefundId, :RefundAmount, :ChannelMerchantId, :OutOrderId, :ChannelOrderId, :NotifyUrl, :RefundReason, :ExternalRefundData, :Remark, :Environment, :ProfitShareInfoList
def initialize(outrefundid=nil, refundamount=nil, channelmerchantid=nil, outorderid=nil, channelorderid=nil, notifyurl=nil, refundreason=nil, externalrefunddata=nil, remark=nil, environment=nil, profitshareinfolist=nil)
@OutRefundId = outrefundid
@RefundAmount = refundamount
@ChannelMerchantId = channelmerchantid
@OutOrderId = outorderid
@ChannelOrderId = channelorderid
@NotifyUrl = notifyurl
@RefundReason = refundreason
@ExternalRefundData = externalrefunddata
@Remark = remark
@Environment = environment
@ProfitShareInfoList = profitshareinfolist
end
def deserialize(params)
@OutRefundId = params['OutRefundId']
@RefundAmount = params['RefundAmount']
@ChannelMerchantId = params['ChannelMerchantId']
@OutOrderId = params['OutOrderId']
@ChannelOrderId = params['ChannelOrderId']
@NotifyUrl = params['NotifyUrl']
@RefundReason = params['RefundReason']
@ExternalRefundData = params['ExternalRefundData']
@Remark = params['Remark']
@Environment = params['Environment']
unless params['ProfitShareInfoList'].nil?
@ProfitShareInfoList = []
params['ProfitShareInfoList'].each do |i|
openbankprofitshareinfo_tmp = OpenBankProfitShareInfo.new
openbankprofitshareinfo_tmp.deserialize(i)
@ProfitShareInfoList << openbankprofitshareinfo_tmp
end
end
end
end
# RefundOpenBankOrder返回参数结构体
class RefundOpenBankOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码
# @type ErrCode: String
# @param ErrMessage: 错误消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRefundOrderApplyResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = OpenBankRefundOrderApplyResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# RefundOrder请求参数结构体
class RefundOrderRequest < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的AppId
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。消费订单发起成功后,返回的平台唯一订单号。
# @type OrderNo: String
attr_accessor :MerchantAppId, :OrderNo
def initialize(merchantappid=nil, orderno=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
end
end
# RefundOrder返回参数结构体
class RefundOrderResponse < TencentCloud::Common::AbstractModel
# @param MerchantAppId: 进件成功后返给商户方的AppId
# @type MerchantAppId: String
# @param OrderNo: 平台流水号。消费订单发起成功后,返回的平台唯一订单号。
# @type OrderNo: String
# @param Status: 订单退款状态。0-退款失败
# 1-退款成功
# 2-可疑状态
# @type Status: String
# @param Description: 订单退款状态描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Description: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MerchantAppId, :OrderNo, :Status, :Description, :RequestId
def initialize(merchantappid=nil, orderno=nil, status=nil, description=nil, requestid=nil)
@MerchantAppId = merchantappid
@OrderNo = orderno
@Status = status
@Description = description
@RequestId = requestid
end
def deserialize(params)
@MerchantAppId = params['MerchantAppId']
@OrderNo = params['OrderNo']
@Status = params['Status']
@Description = params['Description']
@RequestId = params['RequestId']
end
end
# 订单退款响应对象
class RefundOrderResult < TencentCloud::Common::AbstractModel
# @param OrderNo: 付款订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderNo: String
# @param DeveloperNo: 开发者流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeveloperNo: String
# @param TradeDiscountAmount: 交易优惠金额(免充值券)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeDiscountAmount: String
# @param PayName: 付款方式名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayName: String
# @param OrderMerchantId: 商户流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderMerchantId: String
# @param TradeAmount: 实际交易金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeAmount: String
# @param CurrencySign: 币种签名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CurrencySign: String
# @param TradePayTime: 付款完成时间(以收单机构为准)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradePayTime: String
# @param ShopOrderId: 门店流水号(从1开始自增长不重复)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopOrderId: String
# @param PayTag: 支付标签
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayTag: String
# @param Status: 订单状态(1交易成功,2待支付,4已取消,9等待用户输入密码确认
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param OrderCurrency: 币种代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrderCurrency: String
# @param TradeTime: 开始交易时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TradeTime: String
# @param DiscountAmount: 折扣金额(以分为单位,没有小数点)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DiscountAmount: String
# @param OriginalOrderNo: 原始订单号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalOrderNo: String
attr_accessor :OrderNo, :DeveloperNo, :TradeDiscountAmount, :PayName, :OrderMerchantId, :TradeAmount, :CurrencySign, :TradePayTime, :ShopOrderId, :PayTag, :Status, :OrderCurrency, :TradeTime, :DiscountAmount, :OriginalOrderNo
def initialize(orderno=nil, developerno=nil, tradediscountamount=nil, payname=nil, ordermerchantid=nil, tradeamount=nil, currencysign=nil, tradepaytime=nil, shoporderid=nil, paytag=nil, status=nil, ordercurrency=nil, tradetime=nil, discountamount=nil, originalorderno=nil)
@OrderNo = orderno
@DeveloperNo = developerno
@TradeDiscountAmount = tradediscountamount
@PayName = payname
@OrderMerchantId = ordermerchantid
@TradeAmount = tradeamount
@CurrencySign = currencysign
@TradePayTime = tradepaytime
@ShopOrderId = shoporderid
@PayTag = paytag
@Status = status
@OrderCurrency = ordercurrency
@TradeTime = tradetime
@DiscountAmount = discountamount
@OriginalOrderNo = originalorderno
end
def deserialize(params)
@OrderNo = params['OrderNo']
@DeveloperNo = params['DeveloperNo']
@TradeDiscountAmount = params['TradeDiscountAmount']
@PayName = params['PayName']
@OrderMerchantId = params['OrderMerchantId']
@TradeAmount = params['TradeAmount']
@CurrencySign = params['CurrencySign']
@TradePayTime = params['TradePayTime']
@ShopOrderId = params['ShopOrderId']
@PayTag = params['PayTag']
@Status = params['Status']
@OrderCurrency = params['OrderCurrency']
@TradeTime = params['TradeTime']
@DiscountAmount = params['DiscountAmount']
@OriginalOrderNo = params['OriginalOrderNo']
end
end
# 退款子订单列表
class RefundOutSubOrderRefundList < TencentCloud::Common::AbstractModel
# @param PlatformRefundAmt: 平台应退金额
# @type PlatformRefundAmt: Integer
# @param RefundAmt: 子订单退款金额
# @type RefundAmt: Integer
# @param SubMchRefundAmt: 商家应退金额
# @type SubMchRefundAmt: Integer
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
# @param SubRefundId: 子退款单号,调用方需要保证 全局唯一性
# @type SubRefundId: String
attr_accessor :PlatformRefundAmt, :RefundAmt, :SubMchRefundAmt, :SubOutTradeNo, :SubRefundId
def initialize(platformrefundamt=nil, refundamt=nil, submchrefundamt=nil, subouttradeno=nil, subrefundid=nil)
@PlatformRefundAmt = platformrefundamt
@RefundAmt = refundamt
@SubMchRefundAmt = submchrefundamt
@SubOutTradeNo = subouttradeno
@SubRefundId = subrefundid
end
def deserialize(params)
@PlatformRefundAmt = params['PlatformRefundAmt']
@RefundAmt = params['RefundAmt']
@SubMchRefundAmt = params['SubMchRefundAmt']
@SubOutTradeNo = params['SubOutTradeNo']
@SubRefundId = params['SubRefundId']
end
end
# Refund请求参数结构体
class RefundRequest < TencentCloud::Common::AbstractModel
# @param UserId: 用户ID,长度不小于5位, 仅支持字母和数字的组合
# @type UserId: String
# @param RefundId: 退款订单号,仅支持数字、 字母、下划线(_)、横杠字 符(-)、点(.)的组合
# @type RefundId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param TotalRefundAmt: 退款金额,单位:分。备注:当该字段为空或者为0 时,系统会默认使用订单当 实付金额作为退款金额
# @type TotalRefundAmt: Integer
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param OutTradeNo: 商品订单,仅支持数字、字 母、下划线(_)、横杠字符 (-)、点(.)的组合。 OutTradeNo ,TransactionId 二选一,不能都为空,优先使用 OutTradeNo
# @type OutTradeNo: String
# @param MchRefundAmt: 结算应收金额,单位:分
# @type MchRefundAmt: Integer
# @param TransactionId: 调用下单接口获取的聚鑫交 易订单。 OutTradeNo ,TransactionId 二选一,不能都为空,优先使用 OutTradeNo
# @type TransactionId: String
# @param PlatformRefundAmt: 平台应收金额,单位:分
# @type PlatformRefundAmt: Integer
# @param SubOrderRefundList: 支持多个子订单批量退款单 个子订单退款支持传 SubOutTradeNo ,也支持传 SubOutTradeNoList ,都传的时候以 SubOutTradeNoList 为准。 如果传了子单退款细节,外 部不需要再传退款金额,平 台应退,商户应退金额,我 们可以直接根据子单退款算出来总和。
# @type SubOrderRefundList: Array
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :UserId, :RefundId, :MidasAppId, :TotalRefundAmt, :MidasSecretId, :MidasSignature, :OutTradeNo, :MchRefundAmt, :TransactionId, :PlatformRefundAmt, :SubOrderRefundList, :MidasEnvironment
def initialize(userid=nil, refundid=nil, midasappid=nil, totalrefundamt=nil, midassecretid=nil, midassignature=nil, outtradeno=nil, mchrefundamt=nil, transactionid=nil, platformrefundamt=nil, suborderrefundlist=nil, midasenvironment=nil)
@UserId = userid
@RefundId = refundid
@MidasAppId = midasappid
@TotalRefundAmt = totalrefundamt
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@OutTradeNo = outtradeno
@MchRefundAmt = mchrefundamt
@TransactionId = transactionid
@PlatformRefundAmt = platformrefundamt
@SubOrderRefundList = suborderrefundlist
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@UserId = params['UserId']
@RefundId = params['RefundId']
@MidasAppId = params['MidasAppId']
@TotalRefundAmt = params['TotalRefundAmt']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@OutTradeNo = params['OutTradeNo']
@MchRefundAmt = params['MchRefundAmt']
@TransactionId = params['TransactionId']
@PlatformRefundAmt = params['PlatformRefundAmt']
unless params['SubOrderRefundList'].nil?
@SubOrderRefundList = []
params['SubOrderRefundList'].each do |i|
refundoutsuborderrefundlist_tmp = RefundOutSubOrderRefundList.new
refundoutsuborderrefundlist_tmp.deserialize(i)
@SubOrderRefundList << refundoutsuborderrefundlist_tmp
end
end
@MidasEnvironment = params['MidasEnvironment']
end
end
# Refund返回参数结构体
class RefundResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# RefundTlinxOrder请求参数结构体
class RefundTlinxOrderRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param DeveloperNo: 原始订单的开发者交易流水号
# @type DeveloperNo: String
# @param RefundOutNo: 新退款订单的开发者流水号,同一门店内唯一
# @type RefundOutNo: String
# @param RefundOrderName: 退款订单名称,可以为空
# @type RefundOrderName: String
# @param RefundAmount: 退款金额(以分为单位,没有小数点)
# @type RefundAmount: String
# @param ShopPassword: 主管密码,对密码进行SHA-1加密,默认为123456
# @type ShopPassword: String
# @param Remark: 退款备注
# @type Remark: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :DeveloperNo, :RefundOutNo, :RefundOrderName, :RefundAmount, :ShopPassword, :Remark, :Profile
def initialize(openid=nil, openkey=nil, developerno=nil, refundoutno=nil, refundordername=nil, refundamount=nil, shoppassword=nil, remark=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@DeveloperNo = developerno
@RefundOutNo = refundoutno
@RefundOrderName = refundordername
@RefundAmount = refundamount
@ShopPassword = shoppassword
@Remark = remark
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@DeveloperNo = params['DeveloperNo']
@RefundOutNo = params['RefundOutNo']
@RefundOrderName = params['RefundOrderName']
@RefundAmount = params['RefundAmount']
@ShopPassword = params['ShopPassword']
@Remark = params['Remark']
@Profile = params['Profile']
end
end
# RefundTlinxOrder返回参数结构体
class RefundTlinxOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 退款响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.RefundOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = RefundOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# RegisterBehavior请求参数结构体
class RegisterBehaviorRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param FunctionFlag: 功能标志
# 1:登记行为记录信息
# 2:查询补录信息
# @type FunctionFlag: Integer
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param OperationClickTime: 操作点击时间
# yyyyMMddHHmmss
# 功能标志FunctionFlag=1时必输
# @type OperationClickTime: String
# @param IpAddress: IP地址
# 功能标志FunctionFlag=1时必输
# @type IpAddress: String
# @param MacAddress: MAC地址
# 功能标志FunctionFlag=1时必输
# @type MacAddress: String
# @param SignChannel: 签约渠道
# 1: App
# 2: 平台H5网页
# 3:公众号
# 4:小程序
# 功能标志FunctionFlag=1时必输
# @type SignChannel: Integer
attr_accessor :MidasAppId, :SubAppId, :MidasSecretId, :MidasSignature, :FunctionFlag, :MidasEnvironment, :OperationClickTime, :IpAddress, :MacAddress, :SignChannel
def initialize(midasappid=nil, subappid=nil, midassecretid=nil, midassignature=nil, functionflag=nil, midasenvironment=nil, operationclicktime=nil, ipaddress=nil, macaddress=nil, signchannel=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@FunctionFlag = functionflag
@MidasEnvironment = midasenvironment
@OperationClickTime = operationclicktime
@IpAddress = ipaddress
@MacAddress = macaddress
@SignChannel = signchannel
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@FunctionFlag = params['FunctionFlag']
@MidasEnvironment = params['MidasEnvironment']
@OperationClickTime = params['OperationClickTime']
@IpAddress = params['IpAddress']
@MacAddress = params['MacAddress']
@SignChannel = params['SignChannel']
end
end
# RegisterBehavior返回参数结构体
class RegisterBehaviorResponse < TencentCloud::Common::AbstractModel
# @param ReplenishSuccessFlag: 补录是否成功标志
# 功能标志为2时存在。
# S:成功
# F:失败
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReplenishSuccessFlag: String
# @param RegisterInfo: 签约信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegisterInfo: :class:`Tencentcloud::Cpdp.v20190820.models.RegisterInfo`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ReplenishSuccessFlag, :RegisterInfo, :RequestId
def initialize(replenishsuccessflag=nil, registerinfo=nil, requestid=nil)
@ReplenishSuccessFlag = replenishsuccessflag
@RegisterInfo = registerinfo
@RequestId = requestid
end
def deserialize(params)
@ReplenishSuccessFlag = params['ReplenishSuccessFlag']
unless params['RegisterInfo'].nil?
@RegisterInfo = RegisterInfo.new
@RegisterInfo.deserialize(params['RegisterInfo'])
end
@RequestId = params['RequestId']
end
end
# RegisterBill请求参数结构体
class RegisterBillRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型此接口固定填:RegBillSupportWithdrawReq
# @type RequestType: String
# @param MerchantCode: 商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OrderId: 交易订单号
# @type OrderId: String
# @param BankAccountNo: 父账户账号,资金汇总账号
# @type BankAccountNo: String
# @param PlatformShortNo: 平台短号(银行分配)
# @type PlatformShortNo: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param TransSeqNo: 交易流水号
# @type TransSeqNo: String
# @param TranFee: 暂未使用,默认传0.0
# @type TranFee: String
# @param OrderAmt: 挂账金额,以元为单位
# @type OrderAmt: String
# @param BankSubAccountNo: 子账户账号
# @type BankSubAccountNo: String
# @param TranNetMemberCode: 交易网会员代码
# @type TranNetMemberCode: String
# @param TranType: 0,登记挂账,1,撤销挂账
# @type TranType: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
# @param Remark: 备注
# @type Remark: String
# @param MidasEnvironment: Midas环境参数
# @type MidasEnvironment: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OrderId, :BankAccountNo, :PlatformShortNo, :MidasSecretId, :MidasAppId, :MidasSignature, :TransSeqNo, :TranFee, :OrderAmt, :BankSubAccountNo, :TranNetMemberCode, :TranType, :ReservedMessage, :Remark, :MidasEnvironment
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, orderid=nil, bankaccountno=nil, platformshortno=nil, midassecretid=nil, midasappid=nil, midassignature=nil, transseqno=nil, tranfee=nil, orderamt=nil, banksubaccountno=nil, trannetmembercode=nil, trantype=nil, reservedmessage=nil, remark=nil, midasenvironment=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OrderId = orderid
@BankAccountNo = bankaccountno
@PlatformShortNo = platformshortno
@MidasSecretId = midassecretid
@MidasAppId = midasappid
@MidasSignature = midassignature
@TransSeqNo = transseqno
@TranFee = tranfee
@OrderAmt = orderamt
@BankSubAccountNo = banksubaccountno
@TranNetMemberCode = trannetmembercode
@TranType = trantype
@ReservedMessage = reservedmessage
@Remark = remark
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OrderId = params['OrderId']
@BankAccountNo = params['BankAccountNo']
@PlatformShortNo = params['PlatformShortNo']
@MidasSecretId = params['MidasSecretId']
@MidasAppId = params['MidasAppId']
@MidasSignature = params['MidasSignature']
@TransSeqNo = params['TransSeqNo']
@TranFee = params['TranFee']
@OrderAmt = params['OrderAmt']
@BankSubAccountNo = params['BankSubAccountNo']
@TranNetMemberCode = params['TranNetMemberCode']
@TranType = params['TranType']
@ReservedMessage = params['ReservedMessage']
@Remark = params['Remark']
@MidasEnvironment = params['MidasEnvironment']
end
end
# RegisterBill返回参数结构体
class RegisterBillResponse < TencentCloud::Common::AbstractModel
# @param FrontSeqNo: 银行流水号
# @type FrontSeqNo: String
# @param ReservedMessage: 保留字段
# @type ReservedMessage: String
# @param RequestType: 请求类型
# @type RequestType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FrontSeqNo, :ReservedMessage, :RequestType, :RequestId
def initialize(frontseqno=nil, reservedmessage=nil, requesttype=nil, requestid=nil)
@FrontSeqNo = frontseqno
@ReservedMessage = reservedmessage
@RequestType = requesttype
@RequestId = requestid
end
def deserialize(params)
@FrontSeqNo = params['FrontSeqNo']
@ReservedMessage = params['ReservedMessage']
@RequestType = params['RequestType']
@RequestId = params['RequestId']
end
end
# RegisterBillSupportWithdraw请求参数结构体
class RegisterBillSupportWithdrawRequest < TencentCloud::Common::AbstractModel
# @param TranNetMemberCode: STRING(32),交易网会员代码
# @type TranNetMemberCode: String
# @param OrderNo: STRING(50),订单号
# @type OrderNo: String
# @param SuspendAmt: STRING(20),挂账金额(包含交易费用)
# @type SuspendAmt: String
# @param TranFee: STRING(20),交易费用(暂未使用,默认传0.0)
# @type TranFee: String
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param Remark: STRING(300),备注
# @type Remark: String
# @param ReservedMsgOne: STRING(300),保留域1
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# @type ReservedMsgTwo: String
# @param ReservedMsgThree: STRING(300),保留域3
# @type ReservedMsgThree: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :TranNetMemberCode, :OrderNo, :SuspendAmt, :TranFee, :MrchCode, :Remark, :ReservedMsgOne, :ReservedMsgTwo, :ReservedMsgThree, :Profile
def initialize(trannetmembercode=nil, orderno=nil, suspendamt=nil, tranfee=nil, mrchcode=nil, remark=nil, reservedmsgone=nil, reservedmsgtwo=nil, reservedmsgthree=nil, profile=nil)
@TranNetMemberCode = trannetmembercode
@OrderNo = orderno
@SuspendAmt = suspendamt
@TranFee = tranfee
@MrchCode = mrchcode
@Remark = remark
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@ReservedMsgThree = reservedmsgthree
@Profile = profile
end
def deserialize(params)
@TranNetMemberCode = params['TranNetMemberCode']
@OrderNo = params['OrderNo']
@SuspendAmt = params['SuspendAmt']
@TranFee = params['TranFee']
@MrchCode = params['MrchCode']
@Remark = params['Remark']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@ReservedMsgThree = params['ReservedMsgThree']
@Profile = params['Profile']
end
end
# RegisterBillSupportWithdraw返回参数结构体
class RegisterBillSupportWithdrawResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param CnsmrSeqNo: String(22),交易流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CnsmrSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :FrontSeqNo, :CnsmrSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, frontseqno=nil, cnsmrseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@FrontSeqNo = frontseqno
@CnsmrSeqNo = cnsmrseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@FrontSeqNo = params['FrontSeqNo']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 签约信息
class RegisterInfo < TencentCloud::Common::AbstractModel
# @param LegalPersonIdCode: 法人证件号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LegalPersonIdCode: String
# @param LegalPersonIdType: 法人证件类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LegalPersonIdType: String
# @param LegalPersonName: 法人名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LegalPersonName: String
# @param OrganizationCode: 公司证件号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationCode: String
# @param OrganizationName: 公司名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationName: String
# @param OrganizationType: 公司证件类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationType: String
attr_accessor :LegalPersonIdCode, :LegalPersonIdType, :LegalPersonName, :OrganizationCode, :OrganizationName, :OrganizationType
def initialize(legalpersonidcode=nil, legalpersonidtype=nil, legalpersonname=nil, organizationcode=nil, organizationname=nil, organizationtype=nil)
@LegalPersonIdCode = legalpersonidcode
@LegalPersonIdType = legalpersonidtype
@LegalPersonName = legalpersonname
@OrganizationCode = organizationcode
@OrganizationName = organizationname
@OrganizationType = organizationtype
end
def deserialize(params)
@LegalPersonIdCode = params['LegalPersonIdCode']
@LegalPersonIdType = params['LegalPersonIdType']
@LegalPersonName = params['LegalPersonName']
@OrganizationCode = params['OrganizationCode']
@OrganizationName = params['OrganizationName']
@OrganizationType = params['OrganizationType']
end
end
# 签约数据
class ResponseQueryContract < TencentCloud::Common::AbstractModel
# @param ExternalReturnCode: 第三方渠道错误码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnCode: String
# @param ExternalReturnMessage: 第三方渠道错误信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnMessage: String
# @param ExternalReturnData: 第三方渠道返回的原始数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
# @param ChannelMerchantId: 米大师内部商户号
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 米大师内部子商户号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubMerchantId: String
# @param ChannelAppId: 米大师内部应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelAppId: String
# @param ChannelSubAppId: 米大师内部子应用ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelSubAppId: String
# @param ChannelName: 渠道名称
# @type ChannelName: String
# @param ReturnContractInfo: 返回的合约信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReturnContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ReturnContractInfo`
# @param NotifyUrl: 签约通知地址
# @type NotifyUrl: String
attr_accessor :ExternalReturnCode, :ExternalReturnMessage, :ExternalReturnData, :ChannelMerchantId, :ChannelSubMerchantId, :ChannelAppId, :ChannelSubAppId, :ChannelName, :ReturnContractInfo, :NotifyUrl
def initialize(externalreturncode=nil, externalreturnmessage=nil, externalreturndata=nil, channelmerchantid=nil, channelsubmerchantid=nil, channelappid=nil, channelsubappid=nil, channelname=nil, returncontractinfo=nil, notifyurl=nil)
@ExternalReturnCode = externalreturncode
@ExternalReturnMessage = externalreturnmessage
@ExternalReturnData = externalreturndata
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelAppId = channelappid
@ChannelSubAppId = channelsubappid
@ChannelName = channelname
@ReturnContractInfo = returncontractinfo
@NotifyUrl = notifyurl
end
def deserialize(params)
@ExternalReturnCode = params['ExternalReturnCode']
@ExternalReturnMessage = params['ExternalReturnMessage']
@ExternalReturnData = params['ExternalReturnData']
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelAppId = params['ChannelAppId']
@ChannelSubAppId = params['ChannelSubAppId']
@ChannelName = params['ChannelName']
unless params['ReturnContractInfo'].nil?
@ReturnContractInfo = ReturnContractInfo.new
@ReturnContractInfo.deserialize(params['ReturnContractInfo'])
end
@NotifyUrl = params['NotifyUrl']
end
end
# 解约数据
class ResponseTerminateContract < TencentCloud::Common::AbstractModel
# @param ExternalReturnCode: 第三方渠道错误码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnCode: String
# @param ExternalReturnMessage: 第三方渠道错误信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnMessage: String
# @param ExternalReturnData: 第三方渠道返回的原始数据
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExternalReturnData: String
attr_accessor :ExternalReturnCode, :ExternalReturnMessage, :ExternalReturnData
def initialize(externalreturncode=nil, externalreturnmessage=nil, externalreturndata=nil)
@ExternalReturnCode = externalreturncode
@ExternalReturnMessage = externalreturnmessage
@ExternalReturnData = externalreturndata
end
def deserialize(params)
@ExternalReturnCode = params['ExternalReturnCode']
@ExternalReturnMessage = params['ExternalReturnMessage']
@ExternalReturnData = params['ExternalReturnData']
end
end
# 返回的合约信息
class ReturnContractInfo < TencentCloud::Common::AbstractModel
# @param ContractInfo: 合约信息
# @type ContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ContractInfo`
# @param ChannelReturnContractInfo: 米大师内部生成的合约信息
# @type ChannelReturnContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ChannelReturnContractInfo`
# @param ExternalReturnContractInfo: 第三方渠道合约信息
# @type ExternalReturnContractInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ExternalReturnContractInfo`
attr_accessor :ContractInfo, :ChannelReturnContractInfo, :ExternalReturnContractInfo
def initialize(contractinfo=nil, channelreturncontractinfo=nil, externalreturncontractinfo=nil)
@ContractInfo = contractinfo
@ChannelReturnContractInfo = channelreturncontractinfo
@ExternalReturnContractInfo = externalreturncontractinfo
end
def deserialize(params)
unless params['ContractInfo'].nil?
@ContractInfo = ContractInfo.new
@ContractInfo.deserialize(params['ContractInfo'])
end
unless params['ChannelReturnContractInfo'].nil?
@ChannelReturnContractInfo = ChannelReturnContractInfo.new
@ChannelReturnContractInfo.deserialize(params['ChannelReturnContractInfo'])
end
unless params['ExternalReturnContractInfo'].nil?
@ExternalReturnContractInfo = ExternalReturnContractInfo.new
@ExternalReturnContractInfo.deserialize(params['ExternalReturnContractInfo'])
end
end
end
# RevResigterBillSupportWithdraw请求参数结构体
class RevResigterBillSupportWithdrawRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param TranNetMemberCode: STRING(32),交易网会员代码
# @type TranNetMemberCode: String
# @param OldOrderNo: STRING(30),原订单号(RegisterBillSupportWithdraw接口中的订单号)
# @type OldOrderNo: String
# @param CancelAmt: STRING(20),撤销金额(支持部分撤销,不能大于原订单可用金额,包含交易费用)
# @type CancelAmt: String
# @param TranFee: STRING(20),交易费用(暂未使用,默认传0.0)
# @type TranFee: String
# @param Remark: STRING(300),备注
# @type Remark: String
# @param ReservedMsgOne: STRING(300),保留域1
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# @type ReservedMsgTwo: String
# @param ReservedMsgThree: STRING(300),保留域3
# @type ReservedMsgThree: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :TranNetMemberCode, :OldOrderNo, :CancelAmt, :TranFee, :Remark, :ReservedMsgOne, :ReservedMsgTwo, :ReservedMsgThree, :Profile
def initialize(mrchcode=nil, trannetmembercode=nil, oldorderno=nil, cancelamt=nil, tranfee=nil, remark=nil, reservedmsgone=nil, reservedmsgtwo=nil, reservedmsgthree=nil, profile=nil)
@MrchCode = mrchcode
@TranNetMemberCode = trannetmembercode
@OldOrderNo = oldorderno
@CancelAmt = cancelamt
@TranFee = tranfee
@Remark = remark
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@ReservedMsgThree = reservedmsgthree
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@TranNetMemberCode = params['TranNetMemberCode']
@OldOrderNo = params['OldOrderNo']
@CancelAmt = params['CancelAmt']
@TranFee = params['TranFee']
@Remark = params['Remark']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@ReservedMsgThree = params['ReservedMsgThree']
@Profile = params['Profile']
end
end
# RevResigterBillSupportWithdraw返回参数结构体
class RevResigterBillSupportWithdrawResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# ReviseMbrProperty请求参数结构体
class ReviseMbrPropertyRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param SubAcctNo: STRING(50),见证子账户的账号
# @type SubAcctNo: String
# @param MemberProperty: STRING(10),会员属性(00-普通子账号; SH-商户子账户。暂时只支持00-普通子账号改为SH-商户子账户)
# @type MemberProperty: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :SubAcctNo, :MemberProperty, :ReservedMsg, :Profile
def initialize(mrchcode=nil, subacctno=nil, memberproperty=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@SubAcctNo = subacctno
@MemberProperty = memberproperty
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@SubAcctNo = params['SubAcctNo']
@MemberProperty = params['MemberProperty']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# ReviseMbrProperty返回参数结构体
class ReviseMbrPropertyResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# RevokeMemberRechargeThirdPay请求参数结构体
class RevokeMemberRechargeThirdPayRequest < TencentCloud::Common::AbstractModel
# @param OldFillFrontSeqNo: STRING(52),原充值的前置流水号
# @type OldFillFrontSeqNo: String
# @param OldFillPayChannelType: STRING(20),原充值的支付渠道类型
# @type OldFillPayChannelType: String
# @param OldPayChannelTranSeqNo: STRING(52),原充值的支付渠道交易流水号
# @type OldPayChannelTranSeqNo: String
# @param OldFillEjzbOrderNo: STRING(52),原充值的电商见证宝订单号
# @type OldFillEjzbOrderNo: String
# @param ApplyCancelMemberAmt: STRING(20),申请撤销的会员金额
# @type ApplyCancelMemberAmt: String
# @param ApplyCancelCommission: STRING(20),申请撤销的手续费金额
# @type ApplyCancelCommission: String
# @param MrchCode: String(22),商户号
# @type MrchCode: String
# @param Remark: STRING(300),备注
# @type Remark: String
# @param ReservedMsgOne: STRING(300),保留域1
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# @type ReservedMsgTwo: String
# @param ReservedMsgThree: STRING(300),保留域3
# @type ReservedMsgThree: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :OldFillFrontSeqNo, :OldFillPayChannelType, :OldPayChannelTranSeqNo, :OldFillEjzbOrderNo, :ApplyCancelMemberAmt, :ApplyCancelCommission, :MrchCode, :Remark, :ReservedMsgOne, :ReservedMsgTwo, :ReservedMsgThree, :Profile
def initialize(oldfillfrontseqno=nil, oldfillpaychanneltype=nil, oldpaychanneltranseqno=nil, oldfillejzborderno=nil, applycancelmemberamt=nil, applycancelcommission=nil, mrchcode=nil, remark=nil, reservedmsgone=nil, reservedmsgtwo=nil, reservedmsgthree=nil, profile=nil)
@OldFillFrontSeqNo = oldfillfrontseqno
@OldFillPayChannelType = oldfillpaychanneltype
@OldPayChannelTranSeqNo = oldpaychanneltranseqno
@OldFillEjzbOrderNo = oldfillejzborderno
@ApplyCancelMemberAmt = applycancelmemberamt
@ApplyCancelCommission = applycancelcommission
@MrchCode = mrchcode
@Remark = remark
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@ReservedMsgThree = reservedmsgthree
@Profile = profile
end
def deserialize(params)
@OldFillFrontSeqNo = params['OldFillFrontSeqNo']
@OldFillPayChannelType = params['OldFillPayChannelType']
@OldPayChannelTranSeqNo = params['OldPayChannelTranSeqNo']
@OldFillEjzbOrderNo = params['OldFillEjzbOrderNo']
@ApplyCancelMemberAmt = params['ApplyCancelMemberAmt']
@ApplyCancelCommission = params['ApplyCancelCommission']
@MrchCode = params['MrchCode']
@Remark = params['Remark']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@ReservedMsgThree = params['ReservedMsgThree']
@Profile = params['Profile']
end
end
# RevokeMemberRechargeThirdPay返回参数结构体
class RevokeMemberRechargeThirdPayResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),前置流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param ReservedMsgOne: STRING(300),保留域1
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsgOne: String
# @param ReservedMsgTwo: STRING(300),保留域2
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsgTwo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :ReservedMsgOne, :ReservedMsgTwo, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, reservedmsgone=nil, reservedmsgtwo=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@ReservedMsgOne = reservedmsgone
@ReservedMsgTwo = reservedmsgtwo
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsgOne = params['ReservedMsgOne']
@ReservedMsgTwo = params['ReservedMsgTwo']
@RequestId = params['RequestId']
end
end
# RevokeRechargeByThirdPay请求参数结构体
class RevokeRechargeByThirdPayRequest < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型此接口固定填:RevokeMemberRechargeThirdPayReq
# @type RequestType: String
# @param MerchantCode: 商户号
# @type MerchantCode: String
# @param PayChannel: 支付渠道
# @type PayChannel: String
# @param PayChannelSubId: 子渠道
# @type PayChannelSubId: Integer
# @param OrderId: 原始充值交易订单号
# @type OrderId: String
# @param BankAccountNumber: 父账户账号,资金汇总账号
# @type BankAccountNumber: String
# @param PlatformShortNumber: 平台短号(银行分配)
# @type PlatformShortNumber: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param MidasSignature: 计费签名
# @type MidasSignature: String
# @param TransSequenceNumber: 交易流水号
# @type TransSequenceNumber: String
# @param TransFee: 申请撤销的手续费金额,以元为单位
# @type TransFee: String
# @param ThirdPayChannel: 第三方支付渠道类型 0001-微信 0002-支付宝 0003-京东支付
# @type ThirdPayChannel: String
# @param ThirdPayChannelOrderId: 第三方渠道订单号或流水号
# @type ThirdPayChannelOrderId: String
# @param OldFrontSequenceNumber: 充值接口银行返回的流水号(FrontSeqNo)
# @type OldFrontSequenceNumber: String
# @param CurrencyAmount: 申请撤销的金额
# @type CurrencyAmount: String
# @param CurrencyUnit: 单位,1:元,2:角,3:分 目前固定填1
# @type CurrencyUnit: String
# @param CurrencyType: 币种 目前固定填RMB
# @type CurrencyType: String
# @param MidasEnvironment: Midas环境标识
# @type MidasEnvironment: String
# @param ReservedMessage: 保留域
# @type ReservedMessage: String
# @param Remark: 备注
# @type Remark: String
attr_accessor :RequestType, :MerchantCode, :PayChannel, :PayChannelSubId, :OrderId, :BankAccountNumber, :PlatformShortNumber, :MidasSecretId, :MidasAppId, :MidasSignature, :TransSequenceNumber, :TransFee, :ThirdPayChannel, :ThirdPayChannelOrderId, :OldFrontSequenceNumber, :CurrencyAmount, :CurrencyUnit, :CurrencyType, :MidasEnvironment, :ReservedMessage, :Remark
def initialize(requesttype=nil, merchantcode=nil, paychannel=nil, paychannelsubid=nil, orderid=nil, bankaccountnumber=nil, platformshortnumber=nil, midassecretid=nil, midasappid=nil, midassignature=nil, transsequencenumber=nil, transfee=nil, thirdpaychannel=nil, thirdpaychannelorderid=nil, oldfrontsequencenumber=nil, currencyamount=nil, currencyunit=nil, currencytype=nil, midasenvironment=nil, reservedmessage=nil, remark=nil)
@RequestType = requesttype
@MerchantCode = merchantcode
@PayChannel = paychannel
@PayChannelSubId = paychannelsubid
@OrderId = orderid
@BankAccountNumber = bankaccountnumber
@PlatformShortNumber = platformshortnumber
@MidasSecretId = midassecretid
@MidasAppId = midasappid
@MidasSignature = midassignature
@TransSequenceNumber = transsequencenumber
@TransFee = transfee
@ThirdPayChannel = thirdpaychannel
@ThirdPayChannelOrderId = thirdpaychannelorderid
@OldFrontSequenceNumber = oldfrontsequencenumber
@CurrencyAmount = currencyamount
@CurrencyUnit = currencyunit
@CurrencyType = currencytype
@MidasEnvironment = midasenvironment
@ReservedMessage = reservedmessage
@Remark = remark
end
def deserialize(params)
@RequestType = params['RequestType']
@MerchantCode = params['MerchantCode']
@PayChannel = params['PayChannel']
@PayChannelSubId = params['PayChannelSubId']
@OrderId = params['OrderId']
@BankAccountNumber = params['BankAccountNumber']
@PlatformShortNumber = params['PlatformShortNumber']
@MidasSecretId = params['MidasSecretId']
@MidasAppId = params['MidasAppId']
@MidasSignature = params['MidasSignature']
@TransSequenceNumber = params['TransSequenceNumber']
@TransFee = params['TransFee']
@ThirdPayChannel = params['ThirdPayChannel']
@ThirdPayChannelOrderId = params['ThirdPayChannelOrderId']
@OldFrontSequenceNumber = params['OldFrontSequenceNumber']
@CurrencyAmount = params['CurrencyAmount']
@CurrencyUnit = params['CurrencyUnit']
@CurrencyType = params['CurrencyType']
@MidasEnvironment = params['MidasEnvironment']
@ReservedMessage = params['ReservedMessage']
@Remark = params['Remark']
end
end
# RevokeRechargeByThirdPay返回参数结构体
class RevokeRechargeByThirdPayResponse < TencentCloud::Common::AbstractModel
# @param RequestType: 请求类型
# @type RequestType: String
# @param ReservedMessage: 保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMessage: String
# @param FrontSequenceNumber: 银行流水号
# @type FrontSequenceNumber: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestType, :ReservedMessage, :FrontSequenceNumber, :RequestId
def initialize(requesttype=nil, reservedmessage=nil, frontsequencenumber=nil, requestid=nil)
@RequestType = requesttype
@ReservedMessage = reservedmessage
@FrontSequenceNumber = frontsequencenumber
@RequestId = requestid
end
def deserialize(params)
@RequestType = params['RequestType']
@ReservedMessage = params['ReservedMessage']
@FrontSequenceNumber = params['FrontSequenceNumber']
@RequestId = params['RequestId']
end
end
# 场景信息
class SceneInfo < TencentCloud::Common::AbstractModel
# @param LocaleCode: 语言代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LocaleCode: String
# @param RegionCode: 地区代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegionCode: String
# @param UserClientIp: 用户IP
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserClientIp: String
attr_accessor :LocaleCode, :RegionCode, :UserClientIp
def initialize(localecode=nil, regioncode=nil, userclientip=nil)
@LocaleCode = localecode
@RegionCode = regioncode
@UserClientIp = userclientip
end
def deserialize(params)
@LocaleCode = params['LocaleCode']
@RegionCode = params['RegionCode']
@UserClientIp = params['UserClientIp']
end
end
# 服务商账户余额返回信息
class ServiceProviderAccountBalanceResult < TencentCloud::Common::AbstractModel
# @param Balance: 服务商账户余额
# @type Balance: String
attr_accessor :Balance
def initialize(balance=nil)
@Balance = balance
end
def deserialize(params)
@Balance = params['Balance']
end
end
# 商户结算信息
class SettleInfo < TencentCloud::Common::AbstractModel
# @param SettleAccountType: 结算账户类型
# PRIVATE:对私
# BUSINESS:对公
# HELIPAY渠道必传
# @type SettleAccountType: String
# @param SettleAccountNumber: 结算账号
# HELIPAY渠道必传
# @type SettleAccountNumber: String
# @param SettleAccountName: 结算账户名称
# HELIPAY渠道必传
# @type SettleAccountName: String
# @param BankBranchId: 支行号
# HELIPAY渠道必传
# @type BankBranchId: String
# @param BankBranchName: 支行名称
# @type BankBranchName: String
# @param SettleMode: 结算方式
# AUTO:自动结算
# SELF:自主结算
# HELIPAY渠道必传
# @type SettleMode: String
# @param SettlePeriod: 结算周期
# T1:工作日隔天结算
# D1:自然日隔天结算
# D0:当日结算
# HELIPAY渠道必传
# @type SettlePeriod: String
attr_accessor :SettleAccountType, :SettleAccountNumber, :SettleAccountName, :BankBranchId, :BankBranchName, :SettleMode, :SettlePeriod
def initialize(settleaccounttype=nil, settleaccountnumber=nil, settleaccountname=nil, bankbranchid=nil, bankbranchname=nil, settlemode=nil, settleperiod=nil)
@SettleAccountType = settleaccounttype
@SettleAccountNumber = settleaccountnumber
@SettleAccountName = settleaccountname
@BankBranchId = bankbranchid
@BankBranchName = bankbranchname
@SettleMode = settlemode
@SettlePeriod = settleperiod
end
def deserialize(params)
@SettleAccountType = params['SettleAccountType']
@SettleAccountNumber = params['SettleAccountNumber']
@SettleAccountName = params['SettleAccountName']
@BankBranchId = params['BankBranchId']
@BankBranchName = params['BankBranchName']
@SettleMode = params['SettleMode']
@SettlePeriod = params['SettlePeriod']
end
end
# 结算订单结果
class SettlementOrderResult < TencentCloud::Common::AbstractModel
# @param IncomeType: 收入类型
# LABOR:劳务所得
# OCCASION:偶然所得
# @type IncomeType: String
# @param AmountBeforeTax: 税前金额
# @type AmountBeforeTax: String
# @param AmountAfterTax: 税后金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AmountAfterTax: String
# @param Tax: 税金
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Tax: String
# @param OutOrderId: 外部订单ID
# @type OutOrderId: String
# @param OrderId: 订单ID
# @type OrderId: String
# @param InitiateTime: 发起时间
# @type InitiateTime: String
# @param FinishTime: 完成时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinishTime: String
# @param Status: 状态
# ACCEPTED:已受理
# ACCOUNTED:已记账
# SUCCEED:已成功
# FAILED:已失败
# @type Status: String
# @param StatusDesc: 状态描述
# @type StatusDesc: String
# @param Remark: 备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param PayeeId: 收款用户ID
# @type PayeeId: String
# @param OutUserId: 外部用户ID
# @type OutUserId: String
# @param OperationType: 操作类型
# @type OperationType: String
attr_accessor :IncomeType, :AmountBeforeTax, :AmountAfterTax, :Tax, :OutOrderId, :OrderId, :InitiateTime, :FinishTime, :Status, :StatusDesc, :Remark, :PayeeId, :OutUserId, :OperationType
def initialize(incometype=nil, amountbeforetax=nil, amountaftertax=nil, tax=nil, outorderid=nil, orderid=nil, initiatetime=nil, finishtime=nil, status=nil, statusdesc=nil, remark=nil, payeeid=nil, outuserid=nil, operationtype=nil)
@IncomeType = incometype
@AmountBeforeTax = amountbeforetax
@AmountAfterTax = amountaftertax
@Tax = tax
@OutOrderId = outorderid
@OrderId = orderid
@InitiateTime = initiatetime
@FinishTime = finishtime
@Status = status
@StatusDesc = statusdesc
@Remark = remark
@PayeeId = payeeid
@OutUserId = outuserid
@OperationType = operationtype
end
def deserialize(params)
@IncomeType = params['IncomeType']
@AmountBeforeTax = params['AmountBeforeTax']
@AmountAfterTax = params['AmountAfterTax']
@Tax = params['Tax']
@OutOrderId = params['OutOrderId']
@OrderId = params['OrderId']
@InitiateTime = params['InitiateTime']
@FinishTime = params['FinishTime']
@Status = params['Status']
@StatusDesc = params['StatusDesc']
@Remark = params['Remark']
@PayeeId = params['PayeeId']
@OutUserId = params['OutUserId']
@OperationType = params['OperationType']
end
end
# 结算订单列表
class SettlementOrders < TencentCloud::Common::AbstractModel
# @param List: 列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type List: Array
# @param Count: 总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
attr_accessor :List, :Count
def initialize(list=nil, count=nil)
@List = list
@Count = count
end
def deserialize(params)
unless params['List'].nil?
@List = []
params['List'].each do |i|
settlementorderresult_tmp = SettlementOrderResult.new
settlementorderresult_tmp.deserialize(i)
@List << settlementorderresult_tmp
end
end
@Count = params['Count']
end
end
# 支持的银行信息
class SupportBankInfo < TencentCloud::Common::AbstractModel
# @param BankCode: 银行简称。
# @type BankCode: String
# @param BankName: 银行名称。
# @type BankName: String
# @param MaintainStatus: 状态。
# __MAINTAINING__: 维护中
# __WORKING__: 正常工作
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MaintainStatus: String
# @param BankNotice: 银行渠道维护公告。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankNotice: String
# @param BankId: 支持银行代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankId: String
# @param CardType: 卡类型。
# D:借记卡,C:信用卡,Z:借贷合一卡。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CardType: String
attr_accessor :BankCode, :BankName, :MaintainStatus, :BankNotice, :BankId, :CardType
def initialize(bankcode=nil, bankname=nil, maintainstatus=nil, banknotice=nil, bankid=nil, cardtype=nil)
@BankCode = bankcode
@BankName = bankname
@MaintainStatus = maintainstatus
@BankNotice = banknotice
@BankId = bankid
@CardType = cardtype
end
def deserialize(params)
@BankCode = params['BankCode']
@BankName = params['BankName']
@MaintainStatus = params['MaintainStatus']
@BankNotice = params['BankNotice']
@BankId = params['BankId']
@CardType = params['CardType']
end
end
# SyncContractData请求参数结构体
class SyncContractDataRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param Channel: 签约使用的渠道
# @type Channel: String
# @param OutContractCode: 业务签约合同协议号
# @type OutContractCode: String
# @param ContractStatus: 签约状态,枚举值
# CONTRACT_STATUS_INVALID=无效状态
# CONTRACT_STATUS_SIGNED=已签约
# CONTRACT_STATUS_TERMINATED=已解约
# CONTRACT_STATUS_PENDING=签约进行中
# @type ContractStatus: String
# @param ContractSyncInfo: 签约同步信息
# @type ContractSyncInfo: :class:`Tencentcloud::Cpdp.v20190820.models.ContractSyncInfo`
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param UserType: 用户类型,枚举值
# USER_ID: 用户ID
# ANONYMOUS: 匿名类型 USER_ID
# 默认值为 USER_ID
# @type UserType: String
# @param SceneInfo: 场景信息
# @type SceneInfo: :class:`Tencentcloud::Cpdp.v20190820.models.SceneInfo`
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :UserId, :Channel, :OutContractCode, :ContractStatus, :ContractSyncInfo, :MidasSignature, :MidasSecretId, :SubAppId, :UserType, :SceneInfo, :MidasEnvironment
def initialize(midasappid=nil, userid=nil, channel=nil, outcontractcode=nil, contractstatus=nil, contractsyncinfo=nil, midassignature=nil, midassecretid=nil, subappid=nil, usertype=nil, sceneinfo=nil, midasenvironment=nil)
@MidasAppId = midasappid
@UserId = userid
@Channel = channel
@OutContractCode = outcontractcode
@ContractStatus = contractstatus
@ContractSyncInfo = contractsyncinfo
@MidasSignature = midassignature
@MidasSecretId = midassecretid
@SubAppId = subappid
@UserType = usertype
@SceneInfo = sceneinfo
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@Channel = params['Channel']
@OutContractCode = params['OutContractCode']
@ContractStatus = params['ContractStatus']
unless params['ContractSyncInfo'].nil?
@ContractSyncInfo = ContractSyncInfo.new
@ContractSyncInfo.deserialize(params['ContractSyncInfo'])
end
@MidasSignature = params['MidasSignature']
@MidasSecretId = params['MidasSecretId']
@SubAppId = params['SubAppId']
@UserType = params['UserType']
unless params['SceneInfo'].nil?
@SceneInfo = SceneInfo.new
@SceneInfo.deserialize(params['SceneInfo'])
end
@MidasEnvironment = params['MidasEnvironment']
end
end
# SyncContractData返回参数结构体
class SyncContractDataResponse < TencentCloud::Common::AbstractModel
# @param Msg: 请求处理信息
# @type Msg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Msg, :RequestId
def initialize(msg=nil, requestid=nil)
@Msg = msg
@RequestId = requestid
end
def deserialize(params)
@Msg = params['Msg']
@RequestId = params['RequestId']
end
end
# TerminateContract请求参数结构体
class TerminateContractRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param Channel: 指定渠道: wechat:微信支付 qqwallet:QQ钱包
# bank:网银支付 只有一个渠道时需要指定
# @type Channel: String
# @param TerminateMode: 枚举值:
# CONTRACT_TERMINATION_MODE_BY_OUT_CONTRACT_CODE: 按OutContractCode+ContractSceneId解约
# CONTRACT_TERMINATION_MODE_BY_CHANNEL_CONTRACT_CODE:按ChannelContractCode解约
# @type TerminateMode: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param OutContractCode: 业务签约合同协议号 当TerminateMode=CONTRACT_TERMINATION_MODE_BY_OUT_CONTRACT_CODE 时 必填
# @type OutContractCode: String
# @param ContractSceneId: 签约场景ID,当 TerminateMode=CONTRACT_TERMINATION_MODE_BY_OUT_CONTRACT_CODE 时 必填,在米大师侧托管后生成
# @type ContractSceneId: String
# @param ChannelContractCode: 米大师生成的协议号 当 TerminateMode=CONTRACT_TERMINATION_MODE_BY_CHANNEL_CONTRACT_CODE 时 必填
# @type ChannelContractCode: String
# @param ExternalContractData: 第三方渠道合约数据,json字符串,与特定渠道有关
# @type ExternalContractData: String
# @param TerminationReason: 终止合约原因
# @type TerminationReason: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param UserType: USER_ID: 用户ID
# ANONYMOUS: 匿名类型 USER_ID
# 默认值为 USER_ID
# @type UserType: String
# @param ContractMethod: 签约方式
# @type ContractMethod: String
# @param MigrateMode: 签约代扣穿透查询存量数据迁移模式
# @type MigrateMode: String
attr_accessor :MidasAppId, :UserId, :Channel, :TerminateMode, :MidasSecretId, :MidasSignature, :SubAppId, :OutContractCode, :ContractSceneId, :ChannelContractCode, :ExternalContractData, :TerminationReason, :MidasEnvironment, :UserType, :ContractMethod, :MigrateMode
def initialize(midasappid=nil, userid=nil, channel=nil, terminatemode=nil, midassecretid=nil, midassignature=nil, subappid=nil, outcontractcode=nil, contractsceneid=nil, channelcontractcode=nil, externalcontractdata=nil, terminationreason=nil, midasenvironment=nil, usertype=nil, contractmethod=nil, migratemode=nil)
@MidasAppId = midasappid
@UserId = userid
@Channel = channel
@TerminateMode = terminatemode
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@SubAppId = subappid
@OutContractCode = outcontractcode
@ContractSceneId = contractsceneid
@ChannelContractCode = channelcontractcode
@ExternalContractData = externalcontractdata
@TerminationReason = terminationreason
@MidasEnvironment = midasenvironment
@UserType = usertype
@ContractMethod = contractmethod
@MigrateMode = migratemode
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@Channel = params['Channel']
@TerminateMode = params['TerminateMode']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@SubAppId = params['SubAppId']
@OutContractCode = params['OutContractCode']
@ContractSceneId = params['ContractSceneId']
@ChannelContractCode = params['ChannelContractCode']
@ExternalContractData = params['ExternalContractData']
@TerminationReason = params['TerminationReason']
@MidasEnvironment = params['MidasEnvironment']
@UserType = params['UserType']
@ContractMethod = params['ContractMethod']
@MigrateMode = params['MigrateMode']
end
end
# TerminateContract返回参数结构体
class TerminateContractResponse < TencentCloud::Common::AbstractModel
# @param ContractTerminateData: 解约数据
# @type ContractTerminateData: :class:`Tencentcloud::Cpdp.v20190820.models.ResponseTerminateContract`
# @param Msg: 请求处理信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Msg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ContractTerminateData, :Msg, :RequestId
def initialize(contractterminatedata=nil, msg=nil, requestid=nil)
@ContractTerminateData = contractterminatedata
@Msg = msg
@RequestId = requestid
end
def deserialize(params)
unless params['ContractTerminateData'].nil?
@ContractTerminateData = ResponseTerminateContract.new
@ContractTerminateData.deserialize(params['ContractTerminateData'])
end
@Msg = params['Msg']
@RequestId = params['RequestId']
end
end
# 交易信息
class TranItem < TencentCloud::Common::AbstractModel
# @param FundSummaryAcctNo: STRING(50),资金汇总账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FundSummaryAcctNo: String
# @param SubAcctNo: STRING(50),见证子账户的账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctNo: String
# @param TranNetMemberCode: STRING(32),交易网会员代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranNetMemberCode: String
# @param MemberName: STRING(150),会员名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MemberName: String
# @param MemberGlobalType: STRING(5),会员证件类型(详情见“常见问题”)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MemberGlobalType: String
# @param MemberGlobalId: STRING(32),会员证件号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MemberGlobalId: String
# @param MemberAcctNo: STRING(50),会员绑定账户的账号(提现的银行卡)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MemberAcctNo: String
# @param BankType: STRING(10),会员绑定账户的本他行类型(1: 本行; 2: 他行)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankType: String
# @param AcctOpenBranchName: STRING(150),会员绑定账户的开户行名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AcctOpenBranchName: String
# @param CnapsBranchId: STRING(20),会员绑定账户的开户行的联行号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CnapsBranchId: String
# @param EiconBankBranchId: STRING(20),会员绑定账户的开户行的超级网银行号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EiconBankBranchId: String
# @param Mobile: STRING(30),会员的手机号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Mobile: String
attr_accessor :FundSummaryAcctNo, :SubAcctNo, :TranNetMemberCode, :MemberName, :MemberGlobalType, :MemberGlobalId, :MemberAcctNo, :BankType, :AcctOpenBranchName, :CnapsBranchId, :EiconBankBranchId, :Mobile
def initialize(fundsummaryacctno=nil, subacctno=nil, trannetmembercode=nil, membername=nil, memberglobaltype=nil, memberglobalid=nil, memberacctno=nil, banktype=nil, acctopenbranchname=nil, cnapsbranchid=nil, eiconbankbranchid=nil, mobile=nil)
@FundSummaryAcctNo = fundsummaryacctno
@SubAcctNo = subacctno
@TranNetMemberCode = trannetmembercode
@MemberName = membername
@MemberGlobalType = memberglobaltype
@MemberGlobalId = memberglobalid
@MemberAcctNo = memberacctno
@BankType = banktype
@AcctOpenBranchName = acctopenbranchname
@CnapsBranchId = cnapsbranchid
@EiconBankBranchId = eiconbankbranchid
@Mobile = mobile
end
def deserialize(params)
@FundSummaryAcctNo = params['FundSummaryAcctNo']
@SubAcctNo = params['SubAcctNo']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberName = params['MemberName']
@MemberGlobalType = params['MemberGlobalType']
@MemberGlobalId = params['MemberGlobalId']
@MemberAcctNo = params['MemberAcctNo']
@BankType = params['BankType']
@AcctOpenBranchName = params['AcctOpenBranchName']
@CnapsBranchId = params['CnapsBranchId']
@EiconBankBranchId = params['EiconBankBranchId']
@Mobile = params['Mobile']
end
end
# 交易明细信息
class TransactionItem < TencentCloud::Common::AbstractModel
# @param BookingFlag: STRING(2),记账标志(1: 转出; 2: 转入)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BookingFlag: String
# @param TranStatus: STRING(32),交易状态(0: 成功)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranStatus: String
# @param TranAmt: STRING(20),交易金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranAmt: String
# @param TranDate: STRING(8),交易日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranDate: String
# @param TranTime: STRING(20),交易时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranTime: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param BookingType: STRING(20),记账类型(详情见“常见问题”)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BookingType: String
# @param InSubAcctNo: STRING(50),转入见证子账户的帐号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InSubAcctNo: String
# @param OutSubAcctNo: STRING(50),转出见证子账户的帐号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutSubAcctNo: String
# @param Remark: STRING(300),备注(返回交易订单号)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :BookingFlag, :TranStatus, :TranAmt, :TranDate, :TranTime, :FrontSeqNo, :BookingType, :InSubAcctNo, :OutSubAcctNo, :Remark
def initialize(bookingflag=nil, transtatus=nil, tranamt=nil, trandate=nil, trantime=nil, frontseqno=nil, bookingtype=nil, insubacctno=nil, outsubacctno=nil, remark=nil)
@BookingFlag = bookingflag
@TranStatus = transtatus
@TranAmt = tranamt
@TranDate = trandate
@TranTime = trantime
@FrontSeqNo = frontseqno
@BookingType = bookingtype
@InSubAcctNo = insubacctno
@OutSubAcctNo = outsubacctno
@Remark = remark
end
def deserialize(params)
@BookingFlag = params['BookingFlag']
@TranStatus = params['TranStatus']
@TranAmt = params['TranAmt']
@TranDate = params['TranDate']
@TranTime = params['TranTime']
@FrontSeqNo = params['FrontSeqNo']
@BookingType = params['BookingType']
@InSubAcctNo = params['InSubAcctNo']
@OutSubAcctNo = params['OutSubAcctNo']
@Remark = params['Remark']
end
end
# 批量转账明细实体
class TransferDetailRequest < TencentCloud::Common::AbstractModel
# @param MerchantDetailNo: 商家明细单号。
# 商户系统内部区分转账批次单下不同转账明细单的唯一标识,要求此参数只能由数字、大小写字母组成。
# 示例值:x23zy545Bd5436
# @type MerchantDetailNo: String
# @param TransferAmount: 转账金额。
# 转账金额单位为分。
# 示例值:200000
# @type TransferAmount: Integer
# @param TransferRemark: 转账备注。
# 单条转账备注(微信用户会收到该备注)。UTF8编码,最多32字符。
# 示例值:2020年4月报销
# @type TransferRemark: String
# @param OpenId: 用户在直连商户下的唯一标识。
# 示例值:o-MYE42l80oelYMDE34nYD456Xoy
# @type OpenId: String
# @param UserName: 收款用户姓名。
# 收款方姓名。
# 示例值:张三
# @type UserName: String
attr_accessor :MerchantDetailNo, :TransferAmount, :TransferRemark, :OpenId, :UserName
def initialize(merchantdetailno=nil, transferamount=nil, transferremark=nil, openid=nil, username=nil)
@MerchantDetailNo = merchantdetailno
@TransferAmount = transferamount
@TransferRemark = transferremark
@OpenId = openid
@UserName = username
end
def deserialize(params)
@MerchantDetailNo = params['MerchantDetailNo']
@TransferAmount = params['TransferAmount']
@TransferRemark = params['TransferRemark']
@OpenId = params['OpenId']
@UserName = params['UserName']
end
end
# 批量转账查询返回批次明细实体
class TransferDetailResponse < TencentCloud::Common::AbstractModel
# @param MerchantDetailNo: 商家明细单号。
# 商户系统内部的商家明细单号
# 示例值:plfk2020042013
# @type MerchantDetailNo: String
# @param DetailId: 微信明细单号。
# 微信区分明细单返回的唯一标识。
# 示例值:1030000071100999991182020050700019480001
# @type DetailId: String
# @param DetailStatus: 明细状态。
# PROCESSING:转账中,正在处理,结果未明;
# SUCCESS:转账成功;
# FAIL:转账失败,需要确认失败原因以后,再决定是否重新发起地该笔明细的转账。
# 示例值:SUCCESS
# @type DetailStatus: String
attr_accessor :MerchantDetailNo, :DetailId, :DetailStatus
def initialize(merchantdetailno=nil, detailid=nil, detailstatus=nil)
@MerchantDetailNo = merchantdetailno
@DetailId = detailid
@DetailStatus = detailstatus
end
def deserialize(params)
@MerchantDetailNo = params['MerchantDetailNo']
@DetailId = params['DetailId']
@DetailStatus = params['DetailStatus']
end
end
# 转账充值明细信息
class TransferItem < TencentCloud::Common::AbstractModel
# @param InAcctType: STRING(10),入账类型(02: 会员充值; 03: 资金挂账)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InAcctType: String
# @param TranNetMemberCode: STRING(32),交易网会员代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranNetMemberCode: String
# @param SubAcctNo: STRING(50),见证子帐户的帐号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctNo: String
# @param TranAmt: STRING(20),入金金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranAmt: String
# @param InAcctNo: STRING(50),入金账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InAcctNo: String
# @param InAcctName: STRING(150),入金账户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InAcctName: String
# @param Ccy: STRING(3),币种
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Ccy: String
# @param AccountingDate: STRING(8),会计日期(即银行主机记账日期)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountingDate: String
# @param BankName: STRING(150),银行名称(付款账户银行名称)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankName: String
# @param Remark: STRING(300),转账备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
attr_accessor :InAcctType, :TranNetMemberCode, :SubAcctNo, :TranAmt, :InAcctNo, :InAcctName, :Ccy, :AccountingDate, :BankName, :Remark, :FrontSeqNo
def initialize(inaccttype=nil, trannetmembercode=nil, subacctno=nil, tranamt=nil, inacctno=nil, inacctname=nil, ccy=nil, accountingdate=nil, bankname=nil, remark=nil, frontseqno=nil)
@InAcctType = inaccttype
@TranNetMemberCode = trannetmembercode
@SubAcctNo = subacctno
@TranAmt = tranamt
@InAcctNo = inacctno
@InAcctName = inacctname
@Ccy = ccy
@AccountingDate = accountingdate
@BankName = bankname
@Remark = remark
@FrontSeqNo = frontseqno
end
def deserialize(params)
@InAcctType = params['InAcctType']
@TranNetMemberCode = params['TranNetMemberCode']
@SubAcctNo = params['SubAcctNo']
@TranAmt = params['TranAmt']
@InAcctNo = params['InAcctNo']
@InAcctName = params['InAcctName']
@Ccy = params['Ccy']
@AccountingDate = params['AccountingDate']
@BankName = params['BankName']
@Remark = params['Remark']
@FrontSeqNo = params['FrontSeqNo']
end
end
# 智能代发-单笔代发转账接口返回数据
class TransferSinglePayData < TencentCloud::Common::AbstractModel
# @param TradeSerialNo: 平台交易流水号,唯一
# @type TradeSerialNo: String
attr_accessor :TradeSerialNo
def initialize(tradeserialno=nil)
@TradeSerialNo = tradeserialno
end
def deserialize(params)
@TradeSerialNo = params['TradeSerialNo']
end
end
# TransferSinglePay请求参数结构体
class TransferSinglePayRequest < TencentCloud::Common::AbstractModel
# @param MerchantId: 商户号
# @type MerchantId: String
# @param MerchantAppId: 微信申请商户号的appid或者商户号绑定的appid
# 支付宝、平安填入MerchantId
# @type MerchantAppId: String
# @param TransferType: 1、 微信企业付款
# 2、 支付宝转账
# 3、 平安银企直联代发转账
# @type TransferType: Integer
# @param OrderId: 订单流水号,唯一,不能包含特殊字符,长度最大限制64位,推荐使用字母,数字组合,"_","-"组合
# @type OrderId: String
# @param TransferAmount: 转账金额,单位分
# @type TransferAmount: Integer
# @param PayeeId: 收款方标识。
# 微信为open_id;
# 支付宝为会员alipay_user_id;
# 平安为收款方银行账号
# @type PayeeId: String
# @param PayeeName: 收款方姓名。支付宝可选;微信,平安模式下必传
# @type PayeeName: String
# @param PayeeExtends: 收款方附加信息,平安接入使用。需要以JSON格式提供以下字段:
# PayeeBankName:收款人开户行名称
# CcyCode:货币类型(RMB-人民币)
# UnionFlag:行内跨行标志(1:行内转账,0:跨行转账)。
# @type PayeeExtends: String
# @param ReqReserved: 请求预留字段,原样透传返回
# @type ReqReserved: String
# @param Remark: 业务备注
# @type Remark: String
# @param NotifyUrl: 转账结果回调通知URL。若不填,则不进行回调。
# @type NotifyUrl: String
# @param Profile: 接入环境。沙箱环境填sandbox。
# @type Profile: String
attr_accessor :MerchantId, :MerchantAppId, :TransferType, :OrderId, :TransferAmount, :PayeeId, :PayeeName, :PayeeExtends, :ReqReserved, :Remark, :NotifyUrl, :Profile
def initialize(merchantid=nil, merchantappid=nil, transfertype=nil, orderid=nil, transferamount=nil, payeeid=nil, payeename=nil, payeeextends=nil, reqreserved=nil, remark=nil, notifyurl=nil, profile=nil)
@MerchantId = merchantid
@MerchantAppId = merchantappid
@TransferType = transfertype
@OrderId = orderid
@TransferAmount = transferamount
@PayeeId = payeeid
@PayeeName = payeename
@PayeeExtends = payeeextends
@ReqReserved = reqreserved
@Remark = remark
@NotifyUrl = notifyurl
@Profile = profile
end
def deserialize(params)
@MerchantId = params['MerchantId']
@MerchantAppId = params['MerchantAppId']
@TransferType = params['TransferType']
@OrderId = params['OrderId']
@TransferAmount = params['TransferAmount']
@PayeeId = params['PayeeId']
@PayeeName = params['PayeeName']
@PayeeExtends = params['PayeeExtends']
@ReqReserved = params['ReqReserved']
@Remark = params['Remark']
@NotifyUrl = params['NotifyUrl']
@Profile = params['Profile']
end
end
# TransferSinglePay返回参数结构体
class TransferSinglePayResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功
# @type ErrCode: String
# @param ErrMessage: 响应消息
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.TransferSinglePayData`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = TransferSinglePayData.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# UnBindAcct请求参数结构体
class UnBindAcctRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SettleAcctNo: 用于提现
# <敏感信息>加密详见《商户端接口敏感信息加密说明》
# @type SettleAcctNo: String
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param EncryptType: 敏感信息加密类型:
# RSA: rsa非对称加密,使用RSA-PKCS1-v1_5
# AES: aes对称加密,使用AES256-CBC-PCKS7padding
# 缺省: RSA
# @type EncryptType: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
attr_accessor :MidasAppId, :SubAppId, :SettleAcctNo, :MidasSecretId, :MidasSignature, :EncryptType, :MidasEnvironment
def initialize(midasappid=nil, subappid=nil, settleacctno=nil, midassecretid=nil, midassignature=nil, encrypttype=nil, midasenvironment=nil)
@MidasAppId = midasappid
@SubAppId = subappid
@SettleAcctNo = settleacctno
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@EncryptType = encrypttype
@MidasEnvironment = midasenvironment
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@SubAppId = params['SubAppId']
@SettleAcctNo = params['SettleAcctNo']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@EncryptType = params['EncryptType']
@MidasEnvironment = params['MidasEnvironment']
end
end
# UnBindAcct返回参数结构体
class UnBindAcctResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# UnbindOpenBankExternalSubMerchantBankAccount请求参数结构体
class UnbindOpenBankExternalSubMerchantBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。
# __TENPAY__: 商企付
# __WECHAT__: 微信支付
# __ALIPAY__: 支付宝
# @type ChannelName: String
# @param PaymentMethod: 支付方式。
# __EBANK_PAYMENT__: ebank支付
# __OPENBANK_PAYMENT__: openbank支付
# @type PaymentMethod: String
# @param BindSerialNo: 绑卡序列号。
# @type BindSerialNo: String
# @param OutApplyId: 外部申请编号。
# @type OutApplyId: String
# @param NotifyUrl: 通知地址。
# @type NotifyUrl: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :PaymentMethod, :BindSerialNo, :OutApplyId, :NotifyUrl, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, paymentmethod=nil, bindserialno=nil, outapplyid=nil, notifyurl=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@PaymentMethod = paymentmethod
@BindSerialNo = bindserialno
@OutApplyId = outapplyid
@NotifyUrl = notifyurl
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@PaymentMethod = params['PaymentMethod']
@BindSerialNo = params['BindSerialNo']
@OutApplyId = params['OutApplyId']
@NotifyUrl = params['NotifyUrl']
@Environment = params['Environment']
end
end
# UnbindOpenBankExternalSubMerchantBankAccount返回参数结构体
class UnbindOpenBankExternalSubMerchantBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# __SUCCESS__: 成功
# __其他__: 见附录-错误码表
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.UnbindOpenBankExternalSubMerchantBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = UnbindOpenBankExternalSubMerchantBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 第三方子商户银行卡解绑返回结果
class UnbindOpenBankExternalSubMerchantBankAccountResult < TencentCloud::Common::AbstractModel
# @param ChannelApplyId: 渠道申请编号。
# @type ChannelApplyId: String
# @param UnbindStatus: 解绑状态。
# __SUCCESS__: 解绑成功
# __FAILED__: 解绑失败
# __PROCESSING__: 解绑中
# 注意:若返回解绑中,需要再次调用解绑结果查询接口查询结果。
# @type UnbindStatus: String
# @param UnbindMessage: 解绑返回描述, 例如失败原因等。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UnbindMessage: String
attr_accessor :ChannelApplyId, :UnbindStatus, :UnbindMessage
def initialize(channelapplyid=nil, unbindstatus=nil, unbindmessage=nil)
@ChannelApplyId = channelapplyid
@UnbindStatus = unbindstatus
@UnbindMessage = unbindmessage
end
def deserialize(params)
@ChannelApplyId = params['ChannelApplyId']
@UnbindStatus = params['UnbindStatus']
@UnbindMessage = params['UnbindMessage']
end
end
# UnbindRelateAcct请求参数结构体
class UnbindRelateAcctRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param FunctionFlag: STRING(2),功能标志(1: 解绑)
# @type FunctionFlag: String
# @param TranNetMemberCode: STRING(32),交易网会员代码(若需要把一个待绑定账户关联到两个会员名下,此字段可上送两个会员的交易网代码,并且须用“|::|”(右侧)进行分隔)
# @type TranNetMemberCode: String
# @param MemberAcctNo: STRING(50),待解绑的提现账户的账号(提现账号)
# @type MemberAcctNo: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :FunctionFlag, :TranNetMemberCode, :MemberAcctNo, :ReservedMsg, :Profile
def initialize(mrchcode=nil, functionflag=nil, trannetmembercode=nil, memberacctno=nil, reservedmsg=nil, profile=nil)
@MrchCode = mrchcode
@FunctionFlag = functionflag
@TranNetMemberCode = trannetmembercode
@MemberAcctNo = memberacctno
@ReservedMsg = reservedmsg
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@FunctionFlag = params['FunctionFlag']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberAcctNo = params['MemberAcctNo']
@ReservedMsg = params['ReservedMsg']
@Profile = params['Profile']
end
end
# UnbindRelateAcct返回参数结构体
class UnbindRelateAcctResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),见证系统流水号(即电商见证宝系统生成的流水号,可关联具体一笔请求)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# UnifiedCloudOrder请求参数结构体
class UnifiedCloudOrderRequest < TencentCloud::Common::AbstractModel
# @param MidasAppId: 米大师分配的支付主MidasAppId
# @type MidasAppId: String
# @param UserId: 用户ID
# 长度不小于5位,仅支持字母和数字的组合,长度限制以具体接入渠道为准
# @type UserId: String
# @param OutTradeNo: 开发者主订单号
# 支付订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合,长度供参考,部分渠道存在长度更短的情况接入时请联系开发咨询
# @type OutTradeNo: String
# @param CurrencyType: 货币类型
# ISO货币代码,CNY
# @type CurrencyType: String
# @param ProductId: 商品ID
# 业务自定义的商品id,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合。
# @type ProductId: String
# @param ProductName: 商品名称
# 业务自定义的商品名称,无需URL编码,长度限制以具体所接入渠道为准。
# @type ProductName: String
# @param ProductDetail: 商品详情
# 业务自定义的商品详情,无需URL编码,长度限制以具体所接入渠道为准。
# @type ProductDetail: String
# @param OriginalAmt: 原始金额
# 单位:分,需要注意的是,OriginalAmt>=TotalAmt
# @type OriginalAmt: Integer
# @param TotalAmt: 支付金额
# 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome。
# @type TotalAmt: Integer
# @param MidasEnvironment: 环境类型
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type MidasEnvironment: String
# @param SubAppId: 支付SubAppId
# 米大师计费SubAppId,代表子商户。指定使用该商户的商户号下单时必传。
# @type SubAppId: String
# @param RealChannel: 顶层支付渠道
# 银行收单:
# openbank_ccb: 建设银行
# openbank_icbc: 工商银行
# openbank_cmb: 招商银行
# openbank_ping: 平安银行
# openbank_icbc_jft:工商银行聚付通
# 非银行收单,可以为空
# @type RealChannel: String
# @param Channel: 支付渠道
# wechat:微信支付
# wechat_ecommerce: 微信电商收付通
# open_alipay: 支付宝
# open_quickpass: 银联云闪付
# icbc_epay: 工银e支付
# foreign_cardpay: 外卡支付
# icbc_jft_wechat: 工行聚付通-微信
# icbc_jft_alipay: 工行聚付通-支付宝
# icbc_jft_epay: 工行聚付通-e支付
# 指定渠道下单时必传
# @type Channel: String
# @param Metadata: 透传字段
# 支付成功回调透传给应用,用于开发者透传自定义内容。
# @type Metadata: String
# @param Quantity: 数量
# 购买数量,不传默认为1。
# @type Quantity: Integer
# @param CallbackUrl: Web端回调地址
# Web端网页回调地址,仅当Web端SDK使用页面跳转方式时有效。
# @type CallbackUrl: String
# @param CancelUrl: 支付取消地址
# @type CancelUrl: String
# @param WxAppId: 微信AppId
# wechat渠道或wchat_ecommerce渠道可以指定下单时的wxappid。
# @type WxAppId: String
# @param WxSubAppId: 微信SubAppId
# wechat渠道可以指定下单时的sub_appid。
# @type WxSubAppId: String
# @param WxOpenId: 微信公众号/小程序OpenId
# 微信公众号/小程序支付时为必选,需要传微信下的openid。
# @type WxOpenId: String
# @param WxSubOpenId: 微信公众号/小程序SubOpenId
# 在服务商模式下,微信公众号/小程序支付时wx_sub_openid和wx_openid二选一。
# @type WxSubOpenId: String
# @param TotalPlatformIncome: 平台应收金额
# 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
# @type TotalPlatformIncome: Integer
# @param TotalMchIncome: 结算应收金额
# 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
# @type TotalMchIncome: Integer
# @param SubOrderList: 子订单列表
# 格式:子订单号、子应用Id、金额。压缩后最长不可超过32K字节(去除空格,换行,制表符等无意义字符)。
# @type SubOrderList: Array
# @param SettleInfo: 结算信息
# 例如是否需要分账、是否需要支付确认等,
# 注意:如果子单列表中传入了SettleInfo,在主单中不可再传入SettleInfo字段。
# @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
# @param AttachmentInfoList: 附加项信息列表
# 例如溢价信息、抵扣信息、积分信息、补贴信息
# 通过该字段可以实现渠道方的优惠抵扣补贴等营销功能
# 注意:当传SubOrderList时,请在子单信息中传附加项信息,不要在主单中传该字段。
# @type AttachmentInfoList: Array
# @param PaymentNotifyUrl: 支付通知地址
# 调用方可通过该字段传入自定义支付通知地址。
# @type PaymentNotifyUrl: String
# @param PayScene: 支付场景
# 需要结合 RealChannel和Channel字段使用可选值:
# wechat-app 微信APP支付方式
# wechat-mini 微信小程序支付,示例:当 RealChannel=wechat Channel=wechat PayScene=wechat-mini时,内部会直接以小程序方式调用微信统一下单接口。
# @type PayScene: String
# @param LocaleCode: 语言代码
# 取值请参考[ISO 639-1代码表](https://zh.wikipedia.org/zh-cn/ISO_639-1%E4%BB%A3%E7%A0%81%E8%A1%A8)
# @type LocaleCode: String
# @param RegionCode: 地区代码
# 取值请参考[ISO 3166-1二位字母代码表](https://zh.wikipedia.org/zh-cn/ISO_3166-1%E4%BA%8C%E4%BD%8D%E5%AD%97%E6%AF%8D%E4%BB%A3%E7%A0%81#%E6%AD%A3%E5%BC%8F%E5%88%86%E9%85%8D%E4%BB%A3%E7%A0%81)
# @type RegionCode: String
# @param UserClientIp: 用户IP
# 请求用户的IP地址,特定的渠道或特定的支付方式,此字段为必填
# wechat_ecommerce渠道 - h5支付方式,此字段必填。
# @type UserClientIp: String
# @param ChannelOrderIdMode: 渠道订单号生成模式
# 枚举值。决定请求渠道方时的订单号的生成模式,详情请联系米大师沟通。不指定时默认为由米大师自行生成。
# @type ChannelOrderIdMode: String
# @param GlobalPayTimeInfo: 全局支付时间信息
# @type GlobalPayTimeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudGlobalPayTimeInfo`
# @param ChannelAppIdPolicy: 渠道应用ID取用方式
# USE_APPID 使用渠道应用Id;
# USE_SUB_APPID 使用子渠道应用Id;
# USE_APPID_AND_SUB_APPID 既使用渠道应用Id也使用子渠道应用ID。
# @type ChannelAppIdPolicy: String
# @param StoreInfo: 门店信息
# 特定的渠道或特定的支付方式,此字段为必填
# wechat_ecommerce渠道 - h5支付方式,此字段必填
# @type StoreInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudStoreInfo`
# @param ClientInfo: 客户端信息
# 特定的渠道或特定的支付方式,此字段为必填
# wechat_ecommerce渠道 - h5支付方式,此字段必填
# @type ClientInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudClientInfo`
# @param ExternalPromptGroupList: 渠道扩展促销列表
# 可将各个渠道的促销信息放于该列表。
# @type ExternalPromptGroupList: Array
# @param OrderReceiveMode: 收单模式
# ORDER_RECEIVE_MODE_COMMON - 普通支付
# ORDER_RECEIVE_MODE_COMBINE - 合单支付
# ORDER_RECEIVE_MODE_V_COMBINE - 虚拟合单支付
# 若不传入该字段,则会根据是否传入子单来判断是 普通支付 还是 合单支付
# @type OrderReceiveMode: String
# @param ExternalUserInfoList: 渠道方用户信息列表
# @type ExternalUserInfoList: Array
# @param ExternalAttachmentDataList: 渠道透传数据列表
# @type ExternalAttachmentDataList: Array
attr_accessor :MidasAppId, :UserId, :OutTradeNo, :CurrencyType, :ProductId, :ProductName, :ProductDetail, :OriginalAmt, :TotalAmt, :MidasEnvironment, :SubAppId, :RealChannel, :Channel, :Metadata, :Quantity, :CallbackUrl, :CancelUrl, :WxAppId, :WxSubAppId, :WxOpenId, :WxSubOpenId, :TotalPlatformIncome, :TotalMchIncome, :SubOrderList, :SettleInfo, :AttachmentInfoList, :PaymentNotifyUrl, :PayScene, :LocaleCode, :RegionCode, :UserClientIp, :ChannelOrderIdMode, :GlobalPayTimeInfo, :ChannelAppIdPolicy, :StoreInfo, :ClientInfo, :ExternalPromptGroupList, :OrderReceiveMode, :ExternalUserInfoList, :ExternalAttachmentDataList
def initialize(midasappid=nil, userid=nil, outtradeno=nil, currencytype=nil, productid=nil, productname=nil, productdetail=nil, originalamt=nil, totalamt=nil, midasenvironment=nil, subappid=nil, realchannel=nil, channel=nil, metadata=nil, quantity=nil, callbackurl=nil, cancelurl=nil, wxappid=nil, wxsubappid=nil, wxopenid=nil, wxsubopenid=nil, totalplatformincome=nil, totalmchincome=nil, suborderlist=nil, settleinfo=nil, attachmentinfolist=nil, paymentnotifyurl=nil, payscene=nil, localecode=nil, regioncode=nil, userclientip=nil, channelorderidmode=nil, globalpaytimeinfo=nil, channelappidpolicy=nil, storeinfo=nil, clientinfo=nil, externalpromptgrouplist=nil, orderreceivemode=nil, externaluserinfolist=nil, externalattachmentdatalist=nil)
@MidasAppId = midasappid
@UserId = userid
@OutTradeNo = outtradeno
@CurrencyType = currencytype
@ProductId = productid
@ProductName = productname
@ProductDetail = productdetail
@OriginalAmt = originalamt
@TotalAmt = totalamt
@MidasEnvironment = midasenvironment
@SubAppId = subappid
@RealChannel = realchannel
@Channel = channel
@Metadata = metadata
@Quantity = quantity
@CallbackUrl = callbackurl
@CancelUrl = cancelurl
@WxAppId = wxappid
@WxSubAppId = wxsubappid
@WxOpenId = wxopenid
@WxSubOpenId = wxsubopenid
@TotalPlatformIncome = totalplatformincome
@TotalMchIncome = totalmchincome
@SubOrderList = suborderlist
@SettleInfo = settleinfo
@AttachmentInfoList = attachmentinfolist
@PaymentNotifyUrl = paymentnotifyurl
@PayScene = payscene
@LocaleCode = localecode
@RegionCode = regioncode
@UserClientIp = userclientip
@ChannelOrderIdMode = channelorderidmode
@GlobalPayTimeInfo = globalpaytimeinfo
@ChannelAppIdPolicy = channelappidpolicy
@StoreInfo = storeinfo
@ClientInfo = clientinfo
@ExternalPromptGroupList = externalpromptgrouplist
@OrderReceiveMode = orderreceivemode
@ExternalUserInfoList = externaluserinfolist
@ExternalAttachmentDataList = externalattachmentdatalist
end
def deserialize(params)
@MidasAppId = params['MidasAppId']
@UserId = params['UserId']
@OutTradeNo = params['OutTradeNo']
@CurrencyType = params['CurrencyType']
@ProductId = params['ProductId']
@ProductName = params['ProductName']
@ProductDetail = params['ProductDetail']
@OriginalAmt = params['OriginalAmt']
@TotalAmt = params['TotalAmt']
@MidasEnvironment = params['MidasEnvironment']
@SubAppId = params['SubAppId']
@RealChannel = params['RealChannel']
@Channel = params['Channel']
@Metadata = params['Metadata']
@Quantity = params['Quantity']
@CallbackUrl = params['CallbackUrl']
@CancelUrl = params['CancelUrl']
@WxAppId = params['WxAppId']
@WxSubAppId = params['WxSubAppId']
@WxOpenId = params['WxOpenId']
@WxSubOpenId = params['WxSubOpenId']
@TotalPlatformIncome = params['TotalPlatformIncome']
@TotalMchIncome = params['TotalMchIncome']
unless params['SubOrderList'].nil?
@SubOrderList = []
params['SubOrderList'].each do |i|
cloudsuborder_tmp = CloudSubOrder.new
cloudsuborder_tmp.deserialize(i)
@SubOrderList << cloudsuborder_tmp
end
end
unless params['SettleInfo'].nil?
@SettleInfo = CloudSettleInfo.new
@SettleInfo.deserialize(params['SettleInfo'])
end
unless params['AttachmentInfoList'].nil?
@AttachmentInfoList = []
params['AttachmentInfoList'].each do |i|
cloudattachmentinfo_tmp = CloudAttachmentInfo.new
cloudattachmentinfo_tmp.deserialize(i)
@AttachmentInfoList << cloudattachmentinfo_tmp
end
end
@PaymentNotifyUrl = params['PaymentNotifyUrl']
@PayScene = params['PayScene']
@LocaleCode = params['LocaleCode']
@RegionCode = params['RegionCode']
@UserClientIp = params['UserClientIp']
@ChannelOrderIdMode = params['ChannelOrderIdMode']
unless params['GlobalPayTimeInfo'].nil?
@GlobalPayTimeInfo = CloudGlobalPayTimeInfo.new
@GlobalPayTimeInfo.deserialize(params['GlobalPayTimeInfo'])
end
@ChannelAppIdPolicy = params['ChannelAppIdPolicy']
unless params['StoreInfo'].nil?
@StoreInfo = CloudStoreInfo.new
@StoreInfo.deserialize(params['StoreInfo'])
end
unless params['ClientInfo'].nil?
@ClientInfo = CloudClientInfo.new
@ClientInfo.deserialize(params['ClientInfo'])
end
unless params['ExternalPromptGroupList'].nil?
@ExternalPromptGroupList = []
params['ExternalPromptGroupList'].each do |i|
cloudexternalpromptgroup_tmp = CloudExternalPromptGroup.new
cloudexternalpromptgroup_tmp.deserialize(i)
@ExternalPromptGroupList << cloudexternalpromptgroup_tmp
end
end
@OrderReceiveMode = params['OrderReceiveMode']
unless params['ExternalUserInfoList'].nil?
@ExternalUserInfoList = []
params['ExternalUserInfoList'].each do |i|
cloudexternaluserinfo_tmp = CloudExternalUserInfo.new
cloudexternaluserinfo_tmp.deserialize(i)
@ExternalUserInfoList << cloudexternaluserinfo_tmp
end
end
unless params['ExternalAttachmentDataList'].nil?
@ExternalAttachmentDataList = []
params['ExternalAttachmentDataList'].each do |i|
cloudexternalattachmentdata_tmp = CloudExternalAttachmentData.new
cloudexternalattachmentdata_tmp.deserialize(i)
@ExternalAttachmentDataList << cloudexternalattachmentdata_tmp
end
end
end
end
# UnifiedCloudOrder返回参数结构体
class UnifiedCloudOrderResponse < TencentCloud::Common::AbstractModel
# @param TransactionId: 米大师的交易订单号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransactionId: String
# @param OutTradeNo: 开发者的支付订单号。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutTradeNo: String
# @param PayInfo: SDK的支付参数。
# 支付参数透传给米大师SDK(原文透传给SDK即可,不需要解码)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PayInfo: String
# @param TotalAmt: 支付金额,单位:分。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TotalAmt: Integer
# @param ChannelInfo: 渠道信息,用于拉起渠道支付。j
# son字符串,注意此字段仅会在传入正确的PayScene入参时才会有效。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelInfo: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TransactionId, :OutTradeNo, :PayInfo, :TotalAmt, :ChannelInfo, :RequestId
def initialize(transactionid=nil, outtradeno=nil, payinfo=nil, totalamt=nil, channelinfo=nil, requestid=nil)
@TransactionId = transactionid
@OutTradeNo = outtradeno
@PayInfo = payinfo
@TotalAmt = totalamt
@ChannelInfo = channelinfo
@RequestId = requestid
end
def deserialize(params)
@TransactionId = params['TransactionId']
@OutTradeNo = params['OutTradeNo']
@PayInfo = params['PayInfo']
@TotalAmt = params['TotalAmt']
@ChannelInfo = params['ChannelInfo']
@RequestId = params['RequestId']
end
end
# 子订单列表
class UnifiedOrderInSubOrderList < TencentCloud::Common::AbstractModel
# @param SubMchIncome: 子订单结算应收金额,单位: 分
# @type SubMchIncome: Integer
# @param PlatformIncome: 子订单平台应收金额,单位:分
# @type PlatformIncome: Integer
# @param ProductDetail: 子订单商品详情
# @type ProductDetail: String
# @param ProductName: 子订单商品名称
# @type ProductName: String
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubOutTradeNo: 子订单号
# @type SubOutTradeNo: String
# @param Amt: 子订单支付金额
# @type Amt: Integer
# @param Metadata: 发货标识,由业务在调用聚鑫下单接口的 时候下发
# @type Metadata: String
# @param OriginalAmt: 子订单原始金额
# @type OriginalAmt: Integer
attr_accessor :SubMchIncome, :PlatformIncome, :ProductDetail, :ProductName, :SubAppId, :SubOutTradeNo, :Amt, :Metadata, :OriginalAmt
def initialize(submchincome=nil, platformincome=nil, productdetail=nil, productname=nil, subappid=nil, subouttradeno=nil, amt=nil, metadata=nil, originalamt=nil)
@SubMchIncome = submchincome
@PlatformIncome = platformincome
@ProductDetail = productdetail
@ProductName = productname
@SubAppId = subappid
@SubOutTradeNo = subouttradeno
@Amt = amt
@Metadata = metadata
@OriginalAmt = originalamt
end
def deserialize(params)
@SubMchIncome = params['SubMchIncome']
@PlatformIncome = params['PlatformIncome']
@ProductDetail = params['ProductDetail']
@ProductName = params['ProductName']
@SubAppId = params['SubAppId']
@SubOutTradeNo = params['SubOutTradeNo']
@Amt = params['Amt']
@Metadata = params['Metadata']
@OriginalAmt = params['OriginalAmt']
end
end
# UnifiedOrder请求参数结构体
class UnifiedOrderRequest < TencentCloud::Common::AbstractModel
# @param CurrencyType: ISO 货币代码,CNY
# @type CurrencyType: String
# @param MidasAppId: 聚鑫分配的支付主MidasAppId
# @type MidasAppId: String
# @param OutTradeNo: 支付订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type OutTradeNo: String
# @param ProductDetail: 商品详情,需要URL编码
# @type ProductDetail: String
# @param ProductId: 商品ID,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
# @type ProductId: String
# @param ProductName: 商品名称,需要URL编码
# @type ProductName: String
# @param TotalAmt: 支付金额,单位: 分
# @type TotalAmt: Integer
# @param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合
# @type UserId: String
# @param RealChannel: 银行真实渠道.如:bank_pingan
# @type RealChannel: String
# @param OriginalAmt: 原始金额
# @type OriginalAmt: Integer
# @param MidasSecretId: 聚鑫分配的安全ID
# @type MidasSecretId: String
# @param MidasSignature: 按照聚鑫安全密钥计算的签名
# @type MidasSignature: String
# @param CallbackUrl: Web端回调地址
# @type CallbackUrl: String
# @param Channel: 指定支付渠道: wechat:微信支付 qqwallet:QQ钱包
# bank:网银支付 只有一个渠道时需要指定
# @type Channel: String
# @param Metadata: 透传字段,支付成功回调透传给应用,用于业务透传自定义内容
# @type Metadata: String
# @param Quantity: 购买数量,不传默认为1
# @type Quantity: Integer
# @param SubAppId: 聚鑫计费SubAppId,代表子商户
# @type SubAppId: String
# @param SubOrderList: 子订单信息列表,格式:子订单号、子应用ID、金额。 压缩后最长不可超过65535字节(去除空格,换行,制表符等无意义字符)
# 注:接入银行或其他支付渠道服务商模式下,必传
# @type SubOrderList: Array
# @param TotalMchIncome: 结算应收金额,单位:分
# @type TotalMchIncome: Integer
# @param TotalPlatformIncome: 平台应收金额,单位:分
# @type TotalPlatformIncome: Integer
# @param WxOpenId: 微信公众号/小程序支付时为必选,需要传微信下的openid
# @type WxOpenId: String
# @param WxSubOpenId: 在服务商模式下,微信公众号/小程序支付时wx_sub_openid和wx_openid二选一
# @type WxSubOpenId: String
# @param MidasEnvironment: 环境名:
# release: 现网环境
# sandbox: 沙箱环境
# development: 开发环境
# 缺省: release
# @type MidasEnvironment: String
# @param WxAppId: 微信商户应用ID
# @type WxAppId: String
# @param WxSubAppId: 微信商户子应用ID
# @type WxSubAppId: String
# @param PaymentNotifyUrl: 支付通知地址
# @type PaymentNotifyUrl: String
attr_accessor :CurrencyType, :MidasAppId, :OutTradeNo, :ProductDetail, :ProductId, :ProductName, :TotalAmt, :UserId, :RealChannel, :OriginalAmt, :MidasSecretId, :MidasSignature, :CallbackUrl, :Channel, :Metadata, :Quantity, :SubAppId, :SubOrderList, :TotalMchIncome, :TotalPlatformIncome, :WxOpenId, :WxSubOpenId, :MidasEnvironment, :WxAppId, :WxSubAppId, :PaymentNotifyUrl
def initialize(currencytype=nil, midasappid=nil, outtradeno=nil, productdetail=nil, productid=nil, productname=nil, totalamt=nil, userid=nil, realchannel=nil, originalamt=nil, midassecretid=nil, midassignature=nil, callbackurl=nil, channel=nil, metadata=nil, quantity=nil, subappid=nil, suborderlist=nil, totalmchincome=nil, totalplatformincome=nil, wxopenid=nil, wxsubopenid=nil, midasenvironment=nil, wxappid=nil, wxsubappid=nil, paymentnotifyurl=nil)
@CurrencyType = currencytype
@MidasAppId = midasappid
@OutTradeNo = outtradeno
@ProductDetail = productdetail
@ProductId = productid
@ProductName = productname
@TotalAmt = totalamt
@UserId = userid
@RealChannel = realchannel
@OriginalAmt = originalamt
@MidasSecretId = midassecretid
@MidasSignature = midassignature
@CallbackUrl = callbackurl
@Channel = channel
@Metadata = metadata
@Quantity = quantity
@SubAppId = subappid
@SubOrderList = suborderlist
@TotalMchIncome = totalmchincome
@TotalPlatformIncome = totalplatformincome
@WxOpenId = wxopenid
@WxSubOpenId = wxsubopenid
@MidasEnvironment = midasenvironment
@WxAppId = wxappid
@WxSubAppId = wxsubappid
@PaymentNotifyUrl = paymentnotifyurl
end
def deserialize(params)
@CurrencyType = params['CurrencyType']
@MidasAppId = params['MidasAppId']
@OutTradeNo = params['OutTradeNo']
@ProductDetail = params['ProductDetail']
@ProductId = params['ProductId']
@ProductName = params['ProductName']
@TotalAmt = params['TotalAmt']
@UserId = params['UserId']
@RealChannel = params['RealChannel']
@OriginalAmt = params['OriginalAmt']
@MidasSecretId = params['MidasSecretId']
@MidasSignature = params['MidasSignature']
@CallbackUrl = params['CallbackUrl']
@Channel = params['Channel']
@Metadata = params['Metadata']
@Quantity = params['Quantity']
@SubAppId = params['SubAppId']
unless params['SubOrderList'].nil?
@SubOrderList = []
params['SubOrderList'].each do |i|
unifiedorderinsuborderlist_tmp = UnifiedOrderInSubOrderList.new
unifiedorderinsuborderlist_tmp.deserialize(i)
@SubOrderList << unifiedorderinsuborderlist_tmp
end
end
@TotalMchIncome = params['TotalMchIncome']
@TotalPlatformIncome = params['TotalPlatformIncome']
@WxOpenId = params['WxOpenId']
@WxSubOpenId = params['WxSubOpenId']
@MidasEnvironment = params['MidasEnvironment']
@WxAppId = params['WxAppId']
@WxSubAppId = params['WxSubAppId']
@PaymentNotifyUrl = params['PaymentNotifyUrl']
end
end
# UnifiedOrder返回参数结构体
class UnifiedOrderResponse < TencentCloud::Common::AbstractModel
# @param TotalAmt: 支付金额,单位: 分
# @type TotalAmt: Integer
# @param OutTradeNo: 应用支付订单号
# @type OutTradeNo: String
# @param PayInfo: 支付参数透传给聚鑫SDK(原文透传给SDK即可,不需要解码)
# @type PayInfo: String
# @param TransactionId: 聚鑫的交易订单
# @type TransactionId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalAmt, :OutTradeNo, :PayInfo, :TransactionId, :RequestId
def initialize(totalamt=nil, outtradeno=nil, payinfo=nil, transactionid=nil, requestid=nil)
@TotalAmt = totalamt
@OutTradeNo = outtradeno
@PayInfo = payinfo
@TransactionId = transactionid
@RequestId = requestid
end
def deserialize(params)
@TotalAmt = params['TotalAmt']
@OutTradeNo = params['OutTradeNo']
@PayInfo = params['PayInfo']
@TransactionId = params['TransactionId']
@RequestId = params['RequestId']
end
end
# UnifiedTlinxOrder请求参数结构体
class UnifiedTlinxOrderRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 使用门店OpenId
# @type OpenId: String
# @param OpenKey: 使用门店OpenKey
# @type OpenKey: String
# @param DeveloperNo: 开发者流水号
# @type DeveloperNo: String
# @param PayTag: 支付标签
# @type PayTag: String
# @param TradeAmount: 实际交易金额(以分为单位,没有小数点)
# @type TradeAmount: String
# @param NotifyUrl: 交易结果异步通知url地址
# @type NotifyUrl: String
# @param PayName: 付款方式名称(当PayTag为Diy时,PayName不能为空)
# @type PayName: String
# @param JumpUrl: 公众号支付时,支付成功后跳转url地址
# @type JumpUrl: String
# @param OrderName: 订单名称(描述)
# @type OrderName: String
# @param OriginalAmount: 原始交易金额(以分为单位,没有小数点)
# @type OriginalAmount: String
# @param IgnoreAmount: 抹零金额(以分为单位,没有小数点)
# @type IgnoreAmount: String
# @param DiscountAmount: 折扣金额(以分为单位,没有小数点)
# @type DiscountAmount: String
# @param TradeAccount: 交易帐号(银行卡号)
# @type TradeAccount: String
# @param TradeNo: 交易号(收单机构交易号)
# @type TradeNo: String
# @param AuthCode: 条码支付的授权码(条码抢扫手机扫到的一串数字)
# @type AuthCode: String
# @param Tag: 订单标记,订单附加数据。
# @type Tag: String
# @param Remark: 订单备注
# @type Remark: String
# @param TradeResult: 收单机构原始交易报文,请转换为json
# @type TradeResult: String
# @param Royalty: 0-不分账,1-需分账。为1时标记为待分账订单,待分账订单不会进行清算。不传默认为不分账。
# @type Royalty: String
# @param Jsapi: 小程序支付参数:填默认值 1
# @type Jsapi: String
# @param SubAppId: 小程序支付参数:
# 当前调起支付的小程序APPID
# @type SubAppId: String
# @param SubOpenId: 小程序支付参数:
# 用户在子商户appid下的唯一标识。
# @type SubOpenId: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :DeveloperNo, :PayTag, :TradeAmount, :NotifyUrl, :PayName, :JumpUrl, :OrderName, :OriginalAmount, :IgnoreAmount, :DiscountAmount, :TradeAccount, :TradeNo, :AuthCode, :Tag, :Remark, :TradeResult, :Royalty, :Jsapi, :SubAppId, :SubOpenId, :Profile
def initialize(openid=nil, openkey=nil, developerno=nil, paytag=nil, tradeamount=nil, notifyurl=nil, payname=nil, jumpurl=nil, ordername=nil, originalamount=nil, ignoreamount=nil, discountamount=nil, tradeaccount=nil, tradeno=nil, authcode=nil, tag=nil, remark=nil, traderesult=nil, royalty=nil, jsapi=nil, subappid=nil, subopenid=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@DeveloperNo = developerno
@PayTag = paytag
@TradeAmount = tradeamount
@NotifyUrl = notifyurl
@PayName = payname
@JumpUrl = jumpurl
@OrderName = ordername
@OriginalAmount = originalamount
@IgnoreAmount = ignoreamount
@DiscountAmount = discountamount
@TradeAccount = tradeaccount
@TradeNo = tradeno
@AuthCode = authcode
@Tag = tag
@Remark = remark
@TradeResult = traderesult
@Royalty = royalty
@Jsapi = jsapi
@SubAppId = subappid
@SubOpenId = subopenid
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@DeveloperNo = params['DeveloperNo']
@PayTag = params['PayTag']
@TradeAmount = params['TradeAmount']
@NotifyUrl = params['NotifyUrl']
@PayName = params['PayName']
@JumpUrl = params['JumpUrl']
@OrderName = params['OrderName']
@OriginalAmount = params['OriginalAmount']
@IgnoreAmount = params['IgnoreAmount']
@DiscountAmount = params['DiscountAmount']
@TradeAccount = params['TradeAccount']
@TradeNo = params['TradeNo']
@AuthCode = params['AuthCode']
@Tag = params['Tag']
@Remark = params['Remark']
@TradeResult = params['TradeResult']
@Royalty = params['Royalty']
@Jsapi = params['Jsapi']
@SubAppId = params['SubAppId']
@SubOpenId = params['SubOpenId']
@Profile = params['Profile']
end
end
# UnifiedTlinxOrder返回参数结构体
class UnifiedTlinxOrderResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码,0表示成功,其他表示失败。
# @type ErrCode: String
# @param Result: 统一下单响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.PayOrderResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = PayOrderResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# UploadExternalAnchorInfo请求参数结构体
class UploadExternalAnchorInfoRequest < TencentCloud::Common::AbstractModel
# @param AnchorId: 主播Id
# @type AnchorId: String
# @param IdCardFront: 身份证正面图片下载链接
# @type IdCardFront: String
# @param IdCardReverse: 身份证反面图片下载链接
# @type IdCardReverse: String
attr_accessor :AnchorId, :IdCardFront, :IdCardReverse
def initialize(anchorid=nil, idcardfront=nil, idcardreverse=nil)
@AnchorId = anchorid
@IdCardFront = idcardfront
@IdCardReverse = idcardreverse
end
def deserialize(params)
@AnchorId = params['AnchorId']
@IdCardFront = params['IdCardFront']
@IdCardReverse = params['IdCardReverse']
end
end
# UploadExternalAnchorInfo返回参数结构体
class UploadExternalAnchorInfoResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。
# @type ErrCode: String
# @param ErrMessage: 响应消息。
# @type ErrMessage: String
# @param Result: 该字段为null。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
@Result = params['Result']
@RequestId = params['RequestId']
end
end
# UploadFile请求参数结构体
class UploadFileRequest < TencentCloud::Common::AbstractModel
# @param FileName: 文件名
# @type FileName: String
# @param FileType: 文件类型
# __IdCard__:身份证
# __IdCardCheck__:身份证加验证(只支持人像面)
# @type FileType: String
# @param FileUrl: 文件链接
# __FileUrl和FileContent二选一__
# @type FileUrl: String
# @param FileContent: 文件内容,Base64编码
# __FileUrl和FileContent二选一__
# @type FileContent: String
# @param FileExtendInfo: 文件扩展信息
# @type FileExtendInfo: Array
attr_accessor :FileName, :FileType, :FileUrl, :FileContent, :FileExtendInfo
def initialize(filename=nil, filetype=nil, fileurl=nil, filecontent=nil, fileextendinfo=nil)
@FileName = filename
@FileType = filetype
@FileUrl = fileurl
@FileContent = filecontent
@FileExtendInfo = fileextendinfo
end
def deserialize(params)
@FileName = params['FileName']
@FileType = params['FileType']
@FileUrl = params['FileUrl']
@FileContent = params['FileContent']
unless params['FileExtendInfo'].nil?
@FileExtendInfo = []
params['FileExtendInfo'].each do |i|
anchorextendinfo_tmp = AnchorExtendInfo.new
anchorextendinfo_tmp.deserialize(i)
@FileExtendInfo << anchorextendinfo_tmp
end
end
end
end
# UploadFile返回参数结构体
class UploadFileResponse < TencentCloud::Common::AbstractModel
# @param FileId: 文件ID
# @type FileId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FileId, :RequestId
def initialize(fileid=nil, requestid=nil)
@FileId = fileid
@RequestId = requestid
end
def deserialize(params)
@FileId = params['FileId']
@RequestId = params['RequestId']
end
end
# 上传文件响应对象
class UploadFileResult < TencentCloud::Common::AbstractModel
# @param Storage: 存储区域(0私密区,1公共区),请严格按文件要求,上传到不同的区域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Storage: String
# @param FilePath: 文件路径
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FilePath: String
attr_accessor :Storage, :FilePath
def initialize(storage=nil, filepath=nil)
@Storage = storage
@FilePath = filepath
end
def deserialize(params)
@Storage = params['Storage']
@FilePath = params['FilePath']
end
end
# UploadOpenBankSubMerchantCredential请求参数结构体
class UploadOpenBankSubMerchantCredentialRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户ID。
# @type ChannelMerchantId: String
# @param ChannelSubMerchantId: 渠道子商户ID。
# @type ChannelSubMerchantId: String
# @param ChannelName: 渠道名称。详见附录-枚举类型-ChannelName。
# @type ChannelName: String
# @param OutApplyId: 外部序列进件号。
# @type OutApplyId: String
# @param CredentialType: 资质类型,详见附录-枚举类型-CredentialType。
# @type CredentialType: String
# @param FileType: 文件类型。
# 合利宝渠道,文件类型为PNG/JPG格式。
# @type FileType: String
# @param PaymentMethod: 支付方式。
# 合利宝渠道不需要传。
# @type PaymentMethod: String
# @param CredentialContent: 资质文件内容。Base64编码,资质文件内容和链接二选一。
# 合利宝渠道,文件限制大小5M以内。
# @type CredentialContent: String
# @param CredentialUrl: 资质文件链接。资质文件内容和链接二选一。
# 合利宝渠道,文件限制大小5M以内。
# @type CredentialUrl: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelSubMerchantId, :ChannelName, :OutApplyId, :CredentialType, :FileType, :PaymentMethod, :CredentialContent, :CredentialUrl, :Environment
def initialize(channelmerchantid=nil, channelsubmerchantid=nil, channelname=nil, outapplyid=nil, credentialtype=nil, filetype=nil, paymentmethod=nil, credentialcontent=nil, credentialurl=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelSubMerchantId = channelsubmerchantid
@ChannelName = channelname
@OutApplyId = outapplyid
@CredentialType = credentialtype
@FileType = filetype
@PaymentMethod = paymentmethod
@CredentialContent = credentialcontent
@CredentialUrl = credentialurl
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelSubMerchantId = params['ChannelSubMerchantId']
@ChannelName = params['ChannelName']
@OutApplyId = params['OutApplyId']
@CredentialType = params['CredentialType']
@FileType = params['FileType']
@PaymentMethod = params['PaymentMethod']
@CredentialContent = params['CredentialContent']
@CredentialUrl = params['CredentialUrl']
@Environment = params['Environment']
end
end
# UploadOpenBankSubMerchantCredential返回参数结构体
class UploadOpenBankSubMerchantCredentialResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 错误码。
# @type ErrCode: String
# @param ErrMessage: 错误消息。
# @type ErrMessage: String
# @param Result: 返回结果
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.UploadOpenBankSubMerchantCredentialResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = UploadOpenBankSubMerchantCredentialResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 上传子商户资质文件返回值
class UploadOpenBankSubMerchantCredentialResult < TencentCloud::Common::AbstractModel
# @param UploadStatus: 上传状态
# SUCCESS:上传成功
# FAILED:上传失败
# PROCESSING:上传中
# @type UploadStatus: String
# @param UploadMessage: 上传描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UploadMessage: String
# @param ChannelApplyId: 渠道上传流水号
# @type ChannelApplyId: String
attr_accessor :UploadStatus, :UploadMessage, :ChannelApplyId
def initialize(uploadstatus=nil, uploadmessage=nil, channelapplyid=nil)
@UploadStatus = uploadstatus
@UploadMessage = uploadmessage
@ChannelApplyId = channelapplyid
end
def deserialize(params)
@UploadStatus = params['UploadStatus']
@UploadMessage = params['UploadMessage']
@ChannelApplyId = params['ChannelApplyId']
end
end
# UploadOrgFile请求参数结构体
class UploadOrgFileRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param Storage: 存储区域(0私密区,1公共区),请严格按文件要求,上传到不同的区域
# @type Storage: String
# @param FileMd5: 文件的md5值(为防止平台多次上传重复文件,文件名为文件md5,且不会覆盖,重复上传返回第一次上传成功的文件路径)
# @type FileMd5: String
# @param FileContent: 文件内容(先将图片转换成二进制,再进行base64加密)
# @type FileContent: String
# @param FileExtension: 文件扩展名(png,jpg,gif)
# @type FileExtension: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :Storage, :FileMd5, :FileContent, :FileExtension, :Profile
def initialize(openid=nil, openkey=nil, storage=nil, filemd5=nil, filecontent=nil, fileextension=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@Storage = storage
@FileMd5 = filemd5
@FileContent = filecontent
@FileExtension = fileextension
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@Storage = params['Storage']
@FileMd5 = params['FileMd5']
@FileContent = params['FileContent']
@FileExtension = params['FileExtension']
@Profile = params['Profile']
end
end
# UploadOrgFile返回参数结构体
class UploadOrgFileResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 上传机构文件响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.UploadFileResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = UploadFileResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# UploadTaxList请求参数结构体
class UploadTaxListRequest < TencentCloud::Common::AbstractModel
# @param Channel: 平台渠道
# @type Channel: Integer
# @param BeginMonth: 起始月份,YYYY-MM
# @type BeginMonth: String
# @param EndMonth: 结束月份。如果只上传一个月,结束月份等于起始月份
# @type EndMonth: String
# @param FileUrl: 完税列表下载地址
# @type FileUrl: String
attr_accessor :Channel, :BeginMonth, :EndMonth, :FileUrl
def initialize(channel=nil, beginmonth=nil, endmonth=nil, fileurl=nil)
@Channel = channel
@BeginMonth = beginmonth
@EndMonth = endmonth
@FileUrl = fileurl
end
def deserialize(params)
@Channel = params['Channel']
@BeginMonth = params['BeginMonth']
@EndMonth = params['EndMonth']
@FileUrl = params['FileUrl']
end
end
# UploadTaxList返回参数结构体
class UploadTaxListResponse < TencentCloud::Common::AbstractModel
# @param TaxId: 完税ID
# @type TaxId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TaxId, :RequestId
def initialize(taxid=nil, requestid=nil)
@TaxId = taxid
@RequestId = requestid
end
def deserialize(params)
@TaxId = params['TaxId']
@RequestId = params['RequestId']
end
end
# UploadTaxPayment请求参数结构体
class UploadTaxPaymentRequest < TencentCloud::Common::AbstractModel
# @param Channel: 平台渠道
# @type Channel: Integer
# @param TaxId: 完税ID
# @type TaxId: String
# @param FileUrl: 完税列表下载地址
# @type FileUrl: String
attr_accessor :Channel, :TaxId, :FileUrl
def initialize(channel=nil, taxid=nil, fileurl=nil)
@Channel = channel
@TaxId = taxid
@FileUrl = fileurl
end
def deserialize(params)
@Channel = params['Channel']
@TaxId = params['TaxId']
@FileUrl = params['FileUrl']
end
end
# UploadTaxPayment返回参数结构体
class UploadTaxPaymentResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# VerifyOpenBankAccount请求参数结构体
class VerifyOpenBankAccountRequest < TencentCloud::Common::AbstractModel
# @param ChannelMerchantId: 渠道商户号。外部接入平台入驻云企付平台下发
# @type ChannelMerchantId: String
# @param ChannelName: 渠道名称。详见附录-云企付枚举类说明-ChannelName。
# __TENPAY__: 商企付
# @type ChannelName: String
# @param PayeeInfo: 收款方信息。
# @type PayeeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankPayeeInfo`
# @param NotifyUrl: 通知地址,如www.test.com。
# @type NotifyUrl: String
# @param Environment: 环境类型。
# __release__:生产环境
# __sandbox__:沙箱环境
# _不填默认为生产环境_
# @type Environment: String
attr_accessor :ChannelMerchantId, :ChannelName, :PayeeInfo, :NotifyUrl, :Environment
def initialize(channelmerchantid=nil, channelname=nil, payeeinfo=nil, notifyurl=nil, environment=nil)
@ChannelMerchantId = channelmerchantid
@ChannelName = channelname
@PayeeInfo = payeeinfo
@NotifyUrl = notifyurl
@Environment = environment
end
def deserialize(params)
@ChannelMerchantId = params['ChannelMerchantId']
@ChannelName = params['ChannelName']
unless params['PayeeInfo'].nil?
@PayeeInfo = OpenBankPayeeInfo.new
@PayeeInfo.deserialize(params['PayeeInfo'])
end
@NotifyUrl = params['NotifyUrl']
@Environment = params['Environment']
end
end
# VerifyOpenBankAccount返回参数结构体
class VerifyOpenBankAccountResponse < TencentCloud::Common::AbstractModel
# @param ErrCode: 业务系统返回码,SUCCESS表示成功,其他表示失败。
# @type ErrCode: String
# @param ErrMessage: 业务系统返回消息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param Result: 打款验证结果。前端使用url字段,根据指引完成打款验证动作
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.VerifyOpenBankAccountResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrCode, :ErrMessage, :Result, :RequestId
def initialize(errcode=nil, errmessage=nil, result=nil, requestid=nil)
@ErrCode = errcode
@ErrMessage = errmessage
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrCode = params['ErrCode']
@ErrMessage = params['ErrMessage']
unless params['Result'].nil?
@Result = VerifyOpenBankAccountResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 打款验证响应结果结构体
class VerifyOpenBankAccountResult < TencentCloud::Common::AbstractModel
# @param VerifyState: 打款验证状态。
# INIT("打款中"),
# PENDING("打款成功待验证"),
# VERIFIED("验证成功"),
# FAILED("打款失败"),
# VERIFY_FAILED("验证失败")
# @type VerifyState: String
# @param RedirectInfo: 重定向参数,用于客户端跳转,收款商户未完成打款验证时返回该参数
# @type RedirectInfo: :class:`Tencentcloud::Cpdp.v20190820.models.OpenBankRedirectInfo`
attr_accessor :VerifyState, :RedirectInfo
def initialize(verifystate=nil, redirectinfo=nil)
@VerifyState = verifystate
@RedirectInfo = redirectinfo
end
def deserialize(params)
@VerifyState = params['VerifyState']
unless params['RedirectInfo'].nil?
@RedirectInfo = OpenBankRedirectInfo.new
@RedirectInfo.deserialize(params['RedirectInfo'])
end
end
end
# ViewContract请求参数结构体
class ViewContractRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutContractId: 外部合同主键编号(ContractId或OutContractId必须传一个)
# @type OutContractId: String
# @param ContractId: 合同主键(ContractId或OutContractId必须传一个)
# @type ContractId: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutContractId, :ContractId, :Profile
def initialize(openid=nil, openkey=nil, outcontractid=nil, contractid=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutContractId = outcontractid
@ContractId = contractid
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutContractId = params['OutContractId']
@ContractId = params['ContractId']
@Profile = params['Profile']
end
end
# ViewContract返回参数结构体
class ViewContractResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 合同明细响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ViewContractResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = ViewContractResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 合同明细响应对象
class ViewContractResult < TencentCloud::Common::AbstractModel
# @param PaymentTag: 支付标签(唯一性)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentTag: String
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param AgentNo: 机构编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentNo: String
# @param ContractOptionFour: 合同选项值4
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionFour: String
# @param ContractOptionTwo: 合同选项值2
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionTwo: String
# @param Status: 合同状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param PaymentId: 支付方式编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentId: String
# @param Fee: 商户签约扣率
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Fee: String
# @param PaymentOptionFive: 合同选项名称5
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionFive: String
# @param OutContractId: 机构合同主键
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutContractId: String
# @param ChannelExtJson: 不同的支付方式对于进件有不同的个性化需求,支付方式字段都是以双下划写开头的字段名称,请以支付方式规定的格式传值
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelExtJson: String
# @param ContractOptionFive: 合同选项值5
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionFive: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param StartDate: 生效日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StartDate: String
# @param Address: 详细地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: String
# @param EndDate: 过期日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type EndDate: String
# @param ContractOptionSix: 合同选项值6
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionSix: String
# @param PaymentOptionSeven: 合同选项名称7
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionSeven: String
# @param PictureTwo: 合同照片补充【私密区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureTwo: String
# @param MerchantNo: 商户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
# @param AgentName: 机构名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
# @param ContractOptionOther: 合同选项值8
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionOther: String
# @param ContractOptionThree: 合同选项值3
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionThree: String
# @param Country: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Country: String
# @param ShopCount: 合同关联的门店数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopCount: String
# @param PaymentOptionThree: 合同选项名称3
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionThree: String
# @param PaymentClassificationName: 支付方式行业名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentClassificationName: String
# @param ContractOptionSeven: 合同选项值7
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionSeven: String
# @param PaymentOptionFour: 合同选项名称4
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionFour: String
# @param PaymentClassificationLimit: 商户签约扣率封顶值(分为单位)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentClassificationLimit: String
# @param Remark: 审核备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param PaymentOptionSix: 合同选项名称6
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionSix: String
# @param MerchantName: 品牌名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param ContractOptionOne: 合同选项值1
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionOne: String
# @param PaymentOptionOther: 合同选项名称8
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionOther: String
# @param PaymentOptionTwo: 合同选项名称2
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionTwo: String
# @param PaymentOptionOne: 合同选项名称1
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionOne: String
# @param UpdateTime: 更新时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param ContactTelephone: 联系人电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContactTelephone: String
# @param Contact: 联系人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Contact: String
# @param SignDate: 签约日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SignDate: String
# @param PaymentOptionNine: 合同选项名称9
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionNine: String
# @param PaymentName: 付款方式名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentName: String
# @param PaymentInternalName: 付款方式名称(内部名称)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentInternalName: String
# @param ContractOptionTen: 合同选项值10
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionTen: String
# @param Code: 合同编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Code: String
# @param PictureOne: 合同照片【私密区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureOne: String
# @param SignMan: 签约人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SignMan: String
# @param ChannelNo: 渠道号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ChannelNo: String
# @param AddTime: 添加时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AddTime: String
# @param AutoSign: 是否自动续签(1是,0否)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AutoSign: String
# @param ContractOptionNine: 合同选项值9
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractOptionNine: String
# @param CityId: 城市编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
# @param PaymentType: 交易类型(多个以小写逗号分开,0现金,1刷卡,2主扫,3被扫,4JSPAY,5预授权)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentType: String
# @param PaymentClassificationId: 支付方式行业编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentClassificationId: String
# @param BrandName: 品牌名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BrandName: String
# @param PaymentOptionTen: 合同选项名称10
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PaymentOptionTen: String
# @param ContractId: 合同主键
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractId: String
attr_accessor :PaymentTag, :City, :AgentNo, :ContractOptionFour, :ContractOptionTwo, :Status, :PaymentId, :Fee, :PaymentOptionFive, :OutContractId, :ChannelExtJson, :ContractOptionFive, :Province, :StartDate, :Address, :EndDate, :ContractOptionSix, :PaymentOptionSeven, :PictureTwo, :MerchantNo, :AgentName, :ContractOptionOther, :ContractOptionThree, :Country, :ShopCount, :PaymentOptionThree, :PaymentClassificationName, :ContractOptionSeven, :PaymentOptionFour, :PaymentClassificationLimit, :Remark, :PaymentOptionSix, :MerchantName, :ContractOptionOne, :PaymentOptionOther, :PaymentOptionTwo, :PaymentOptionOne, :UpdateTime, :ContactTelephone, :Contact, :SignDate, :PaymentOptionNine, :PaymentName, :PaymentInternalName, :ContractOptionTen, :Code, :PictureOne, :SignMan, :ChannelNo, :AddTime, :AutoSign, :ContractOptionNine, :CityId, :PaymentType, :PaymentClassificationId, :BrandName, :PaymentOptionTen, :ContractId
def initialize(paymenttag=nil, city=nil, agentno=nil, contractoptionfour=nil, contractoptiontwo=nil, status=nil, paymentid=nil, fee=nil, paymentoptionfive=nil, outcontractid=nil, channelextjson=nil, contractoptionfive=nil, province=nil, startdate=nil, address=nil, enddate=nil, contractoptionsix=nil, paymentoptionseven=nil, picturetwo=nil, merchantno=nil, agentname=nil, contractoptionother=nil, contractoptionthree=nil, country=nil, shopcount=nil, paymentoptionthree=nil, paymentclassificationname=nil, contractoptionseven=nil, paymentoptionfour=nil, paymentclassificationlimit=nil, remark=nil, paymentoptionsix=nil, merchantname=nil, contractoptionone=nil, paymentoptionother=nil, paymentoptiontwo=nil, paymentoptionone=nil, updatetime=nil, contacttelephone=nil, contact=nil, signdate=nil, paymentoptionnine=nil, paymentname=nil, paymentinternalname=nil, contractoptionten=nil, code=nil, pictureone=nil, signman=nil, channelno=nil, addtime=nil, autosign=nil, contractoptionnine=nil, cityid=nil, paymenttype=nil, paymentclassificationid=nil, brandname=nil, paymentoptionten=nil, contractid=nil)
@PaymentTag = paymenttag
@City = city
@AgentNo = agentno
@ContractOptionFour = contractoptionfour
@ContractOptionTwo = contractoptiontwo
@Status = status
@PaymentId = paymentid
@Fee = fee
@PaymentOptionFive = paymentoptionfive
@OutContractId = outcontractid
@ChannelExtJson = channelextjson
@ContractOptionFive = contractoptionfive
@Province = province
@StartDate = startdate
@Address = address
@EndDate = enddate
@ContractOptionSix = contractoptionsix
@PaymentOptionSeven = paymentoptionseven
@PictureTwo = picturetwo
@MerchantNo = merchantno
@AgentName = agentname
@ContractOptionOther = contractoptionother
@ContractOptionThree = contractoptionthree
@Country = country
@ShopCount = shopcount
@PaymentOptionThree = paymentoptionthree
@PaymentClassificationName = paymentclassificationname
@ContractOptionSeven = contractoptionseven
@PaymentOptionFour = paymentoptionfour
@PaymentClassificationLimit = paymentclassificationlimit
@Remark = remark
@PaymentOptionSix = paymentoptionsix
@MerchantName = merchantname
@ContractOptionOne = contractoptionone
@PaymentOptionOther = paymentoptionother
@PaymentOptionTwo = paymentoptiontwo
@PaymentOptionOne = paymentoptionone
@UpdateTime = updatetime
@ContactTelephone = contacttelephone
@Contact = contact
@SignDate = signdate
@PaymentOptionNine = paymentoptionnine
@PaymentName = paymentname
@PaymentInternalName = paymentinternalname
@ContractOptionTen = contractoptionten
@Code = code
@PictureOne = pictureone
@SignMan = signman
@ChannelNo = channelno
@AddTime = addtime
@AutoSign = autosign
@ContractOptionNine = contractoptionnine
@CityId = cityid
@PaymentType = paymenttype
@PaymentClassificationId = paymentclassificationid
@BrandName = brandname
@PaymentOptionTen = paymentoptionten
@ContractId = contractid
end
def deserialize(params)
@PaymentTag = params['PaymentTag']
@City = params['City']
@AgentNo = params['AgentNo']
@ContractOptionFour = params['ContractOptionFour']
@ContractOptionTwo = params['ContractOptionTwo']
@Status = params['Status']
@PaymentId = params['PaymentId']
@Fee = params['Fee']
@PaymentOptionFive = params['PaymentOptionFive']
@OutContractId = params['OutContractId']
@ChannelExtJson = params['ChannelExtJson']
@ContractOptionFive = params['ContractOptionFive']
@Province = params['Province']
@StartDate = params['StartDate']
@Address = params['Address']
@EndDate = params['EndDate']
@ContractOptionSix = params['ContractOptionSix']
@PaymentOptionSeven = params['PaymentOptionSeven']
@PictureTwo = params['PictureTwo']
@MerchantNo = params['MerchantNo']
@AgentName = params['AgentName']
@ContractOptionOther = params['ContractOptionOther']
@ContractOptionThree = params['ContractOptionThree']
@Country = params['Country']
@ShopCount = params['ShopCount']
@PaymentOptionThree = params['PaymentOptionThree']
@PaymentClassificationName = params['PaymentClassificationName']
@ContractOptionSeven = params['ContractOptionSeven']
@PaymentOptionFour = params['PaymentOptionFour']
@PaymentClassificationLimit = params['PaymentClassificationLimit']
@Remark = params['Remark']
@PaymentOptionSix = params['PaymentOptionSix']
@MerchantName = params['MerchantName']
@ContractOptionOne = params['ContractOptionOne']
@PaymentOptionOther = params['PaymentOptionOther']
@PaymentOptionTwo = params['PaymentOptionTwo']
@PaymentOptionOne = params['PaymentOptionOne']
@UpdateTime = params['UpdateTime']
@ContactTelephone = params['ContactTelephone']
@Contact = params['Contact']
@SignDate = params['SignDate']
@PaymentOptionNine = params['PaymentOptionNine']
@PaymentName = params['PaymentName']
@PaymentInternalName = params['PaymentInternalName']
@ContractOptionTen = params['ContractOptionTen']
@Code = params['Code']
@PictureOne = params['PictureOne']
@SignMan = params['SignMan']
@ChannelNo = params['ChannelNo']
@AddTime = params['AddTime']
@AutoSign = params['AutoSign']
@ContractOptionNine = params['ContractOptionNine']
@CityId = params['CityId']
@PaymentType = params['PaymentType']
@PaymentClassificationId = params['PaymentClassificationId']
@BrandName = params['BrandName']
@PaymentOptionTen = params['PaymentOptionTen']
@ContractId = params['ContractId']
end
end
# ViewMerchant请求参数结构体
class ViewMerchantRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutMerchantId: 外部商户主键编号(MerchantNo或OutMerchantId必须传一个)
# @type OutMerchantId: String
# @param MerchantNo: 商户编号(MerchantNo或OutMerchantId必须传一个)
# @type MerchantNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutMerchantId, :MerchantNo, :Profile
def initialize(openid=nil, openkey=nil, outmerchantid=nil, merchantno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutMerchantId = outmerchantid
@MerchantNo = merchantno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutMerchantId = params['OutMerchantId']
@MerchantNo = params['MerchantNo']
@Profile = params['Profile']
end
end
# ViewMerchant返回参数结构体
class ViewMerchantResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 商户明细响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ViewMerchantResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = ViewMerchantResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 商户明细响应对象
class ViewMerchantResult < TencentCloud::Common::AbstractModel
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param TaxCollectionPicture: 税务登记证图片【私密区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TaxCollectionPicture: String
# @param BossIdNo: 法人证件号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossIdNo: String
# @param AccountIdNo: 法人亲属证件号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountIdNo: String
# @param OtherPictureThree: 其他资料3
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OtherPictureThree: String
# @param AccountIdType: 法人亲属证件类型(1居民身份证,2临时居民身份证,3居民户口簿,4护照,5港澳居民来往内地通行证,6回乡证,7军人证,8武警身份证,9其他法定文件)结算账户人身份为法人亲属时必填
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountIdType: String
# @param Status: 商户状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param BusinessLicensePicture: 营业执照图片【私密区】(系统返回的图片路径)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicensePicture: String
# @param BrandName: 品牌名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BrandName: String
# @param BossPositive: 法人身份证正面【私密区】(系统返回的图片路径)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossPositive: String
# @param AppCount: 开通应用数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppCount: String
# @param BossBack: 法人身份证背面【私密区】(系统返回的图片路径)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossBack: String
# @param OrganizationCodePicture: 组织机构代码证图片【私密区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationCodePicture: String
# @param BusinessLicenseEndDate: 营业执照过期时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicenseEndDate: String
# @param OrganizationCodeNo: 组织机构代码证号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationCodeNo: String
# @param AgentNo: 机构编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentNo: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param BossStartDate: 法人证件生效时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossStartDate: String
# @param UpdateTime: 更新时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param BankNo: 清算联行号,开户行行号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankNo: String
# @param TaxCollectionStartDate: 税务登记证生效时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TaxCollectionStartDate: String
# @param BusinessLicenseStartDate: 营业执照生效时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicenseStartDate: String
# @param AccountManagerId: 客户经理用户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountManagerId: String
# @param ClassificationIds: 分类编号(多个以小写逗号分开)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ClassificationIds: String
# @param BusinessLicenseType: 营业执照类型(1三证合一,2非三证合一)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicenseType: String
# @param BossEndDate: 法人证件过期时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossEndDate: String
# @param BusinessLicenseNo: 营业执照编号(系统有唯一性校验)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BusinessLicenseNo: String
# @param AgentName: 机构名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
# @param Intro: 商户简介
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Intro: String
# @param BossIdType: 法人证件类型(1居民身份证,2临时居民身份证,3居民户口簿,4护照,5港澳居民来往内地通行证,6回乡证,7军人证,8武警身份证,9其他法定文件)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossIdType: String
# @param AddTime: 添加时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AddTime: String
# @param ShopCount: 门店数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopCount: String
# @param AccountBoss: 结算账户人身份(1法人,2法人亲属),结算帐户为对私时必填
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountBoss: String
# @param ClassificationNames: 分类名称(多个以小写逗号分开)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ClassificationNames: String
# @param BossTelephone: 法人电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossTelephone: String
# @param AccountManagerName: 客户经理姓名,必须为系统后台的管理员真实姓名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountManagerName: String
# @param TerminalCount: 终端数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TerminalCount: String
# @param Remark: 审核备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param FinancialContact: 财务联系人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinancialContact: String
# @param MerchantName: 商户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param BossSex: 法人性别(1男,2女)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossSex: String
# @param MerchantNo: 商户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
# @param BossAddress: 法人住址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossAddress: String
# @param Country: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Country: String
# @param Address: 详细地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: String
# @param BossJob: 法人职业
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossJob: String
# @param LicencePicture: 许可证图片【私密区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LicencePicture: String
# @param OrganizationCodeEndDate: 组织机构代码证过期时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationCodeEndDate: String
# @param OpenHours: 营业时间,多个以小写逗号分开(9:00-12:00,13:00-18:00)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenHours: String
# @param OtherPictureTwo: 其他资料2
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OtherPictureTwo: String
# @param OtherPictureOne: 其他资料1
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OtherPictureOne: String
# @param AccountName: 银行户名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountName: String
# @param ContractCount: 合同数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContractCount: String
# @param LicencePictureTwo: 授权文件【私密区】(当结算帐户身份为法人亲属时必传)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LicencePictureTwo: String
# @param AccountNo: 银行账号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountNo: String
# @param BossEmail: 法人邮箱
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossEmail: String
# @param AccountType: 结算账户类型(2对私,1对公)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AccountType: String
# @param TaxCollectionEndDate: 税务登记证过期时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TaxCollectionEndDate: String
# @param BankName: 开户行名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BankName: String
# @param Telephone: 联系电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Telephone: String
# @param OutMerchantId: 外部商户主键编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutMerchantId: String
# @param CityId: 城市编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
# @param BossIdCount: 法人证件国别/地区(中国CHN,香港HKG,澳门MAC,台湾CTN)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossIdCount: String
# @param Tag: 商户标记,自定义参数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Tag: String
# @param FinancialTelephone: 财务联系人电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FinancialTelephone: String
# @param BossName: 法人姓名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BossName: String
# @param OrganizationCodeStartDate: 组织机构代码证生效时间(yyyy-mm-dd)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OrganizationCodeStartDate: String
# @param Logo: 商户logo【公共区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Logo: String
# @param OtherPictureFour: 其他资料4
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OtherPictureFour: String
# @param TaxCollectionNo: 税务登记证号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TaxCollectionNo: String
attr_accessor :City, :TaxCollectionPicture, :BossIdNo, :AccountIdNo, :OtherPictureThree, :AccountIdType, :Status, :BusinessLicensePicture, :BrandName, :BossPositive, :AppCount, :BossBack, :OrganizationCodePicture, :BusinessLicenseEndDate, :OrganizationCodeNo, :AgentNo, :Province, :BossStartDate, :UpdateTime, :BankNo, :TaxCollectionStartDate, :BusinessLicenseStartDate, :AccountManagerId, :ClassificationIds, :BusinessLicenseType, :BossEndDate, :BusinessLicenseNo, :AgentName, :Intro, :BossIdType, :AddTime, :ShopCount, :AccountBoss, :ClassificationNames, :BossTelephone, :AccountManagerName, :TerminalCount, :Remark, :FinancialContact, :MerchantName, :BossSex, :MerchantNo, :BossAddress, :Country, :Address, :BossJob, :LicencePicture, :OrganizationCodeEndDate, :OpenHours, :OtherPictureTwo, :OtherPictureOne, :AccountName, :ContractCount, :LicencePictureTwo, :AccountNo, :BossEmail, :AccountType, :TaxCollectionEndDate, :BankName, :Telephone, :OutMerchantId, :CityId, :BossIdCount, :Tag, :FinancialTelephone, :BossName, :OrganizationCodeStartDate, :Logo, :OtherPictureFour, :TaxCollectionNo
def initialize(city=nil, taxcollectionpicture=nil, bossidno=nil, accountidno=nil, otherpicturethree=nil, accountidtype=nil, status=nil, businesslicensepicture=nil, brandname=nil, bosspositive=nil, appcount=nil, bossback=nil, organizationcodepicture=nil, businesslicenseenddate=nil, organizationcodeno=nil, agentno=nil, province=nil, bossstartdate=nil, updatetime=nil, bankno=nil, taxcollectionstartdate=nil, businesslicensestartdate=nil, accountmanagerid=nil, classificationids=nil, businesslicensetype=nil, bossenddate=nil, businesslicenseno=nil, agentname=nil, intro=nil, bossidtype=nil, addtime=nil, shopcount=nil, accountboss=nil, classificationnames=nil, bosstelephone=nil, accountmanagername=nil, terminalcount=nil, remark=nil, financialcontact=nil, merchantname=nil, bosssex=nil, merchantno=nil, bossaddress=nil, country=nil, address=nil, bossjob=nil, licencepicture=nil, organizationcodeenddate=nil, openhours=nil, otherpicturetwo=nil, otherpictureone=nil, accountname=nil, contractcount=nil, licencepicturetwo=nil, accountno=nil, bossemail=nil, accounttype=nil, taxcollectionenddate=nil, bankname=nil, telephone=nil, outmerchantid=nil, cityid=nil, bossidcount=nil, tag=nil, financialtelephone=nil, bossname=nil, organizationcodestartdate=nil, logo=nil, otherpicturefour=nil, taxcollectionno=nil)
@City = city
@TaxCollectionPicture = taxcollectionpicture
@BossIdNo = bossidno
@AccountIdNo = accountidno
@OtherPictureThree = otherpicturethree
@AccountIdType = accountidtype
@Status = status
@BusinessLicensePicture = businesslicensepicture
@BrandName = brandname
@BossPositive = bosspositive
@AppCount = appcount
@BossBack = bossback
@OrganizationCodePicture = organizationcodepicture
@BusinessLicenseEndDate = businesslicenseenddate
@OrganizationCodeNo = organizationcodeno
@AgentNo = agentno
@Province = province
@BossStartDate = bossstartdate
@UpdateTime = updatetime
@BankNo = bankno
@TaxCollectionStartDate = taxcollectionstartdate
@BusinessLicenseStartDate = businesslicensestartdate
@AccountManagerId = accountmanagerid
@ClassificationIds = classificationids
@BusinessLicenseType = businesslicensetype
@BossEndDate = bossenddate
@BusinessLicenseNo = businesslicenseno
@AgentName = agentname
@Intro = intro
@BossIdType = bossidtype
@AddTime = addtime
@ShopCount = shopcount
@AccountBoss = accountboss
@ClassificationNames = classificationnames
@BossTelephone = bosstelephone
@AccountManagerName = accountmanagername
@TerminalCount = terminalcount
@Remark = remark
@FinancialContact = financialcontact
@MerchantName = merchantname
@BossSex = bosssex
@MerchantNo = merchantno
@BossAddress = bossaddress
@Country = country
@Address = address
@BossJob = bossjob
@LicencePicture = licencepicture
@OrganizationCodeEndDate = organizationcodeenddate
@OpenHours = openhours
@OtherPictureTwo = otherpicturetwo
@OtherPictureOne = otherpictureone
@AccountName = accountname
@ContractCount = contractcount
@LicencePictureTwo = licencepicturetwo
@AccountNo = accountno
@BossEmail = bossemail
@AccountType = accounttype
@TaxCollectionEndDate = taxcollectionenddate
@BankName = bankname
@Telephone = telephone
@OutMerchantId = outmerchantid
@CityId = cityid
@BossIdCount = bossidcount
@Tag = tag
@FinancialTelephone = financialtelephone
@BossName = bossname
@OrganizationCodeStartDate = organizationcodestartdate
@Logo = logo
@OtherPictureFour = otherpicturefour
@TaxCollectionNo = taxcollectionno
end
def deserialize(params)
@City = params['City']
@TaxCollectionPicture = params['TaxCollectionPicture']
@BossIdNo = params['BossIdNo']
@AccountIdNo = params['AccountIdNo']
@OtherPictureThree = params['OtherPictureThree']
@AccountIdType = params['AccountIdType']
@Status = params['Status']
@BusinessLicensePicture = params['BusinessLicensePicture']
@BrandName = params['BrandName']
@BossPositive = params['BossPositive']
@AppCount = params['AppCount']
@BossBack = params['BossBack']
@OrganizationCodePicture = params['OrganizationCodePicture']
@BusinessLicenseEndDate = params['BusinessLicenseEndDate']
@OrganizationCodeNo = params['OrganizationCodeNo']
@AgentNo = params['AgentNo']
@Province = params['Province']
@BossStartDate = params['BossStartDate']
@UpdateTime = params['UpdateTime']
@BankNo = params['BankNo']
@TaxCollectionStartDate = params['TaxCollectionStartDate']
@BusinessLicenseStartDate = params['BusinessLicenseStartDate']
@AccountManagerId = params['AccountManagerId']
@ClassificationIds = params['ClassificationIds']
@BusinessLicenseType = params['BusinessLicenseType']
@BossEndDate = params['BossEndDate']
@BusinessLicenseNo = params['BusinessLicenseNo']
@AgentName = params['AgentName']
@Intro = params['Intro']
@BossIdType = params['BossIdType']
@AddTime = params['AddTime']
@ShopCount = params['ShopCount']
@AccountBoss = params['AccountBoss']
@ClassificationNames = params['ClassificationNames']
@BossTelephone = params['BossTelephone']
@AccountManagerName = params['AccountManagerName']
@TerminalCount = params['TerminalCount']
@Remark = params['Remark']
@FinancialContact = params['FinancialContact']
@MerchantName = params['MerchantName']
@BossSex = params['BossSex']
@MerchantNo = params['MerchantNo']
@BossAddress = params['BossAddress']
@Country = params['Country']
@Address = params['Address']
@BossJob = params['BossJob']
@LicencePicture = params['LicencePicture']
@OrganizationCodeEndDate = params['OrganizationCodeEndDate']
@OpenHours = params['OpenHours']
@OtherPictureTwo = params['OtherPictureTwo']
@OtherPictureOne = params['OtherPictureOne']
@AccountName = params['AccountName']
@ContractCount = params['ContractCount']
@LicencePictureTwo = params['LicencePictureTwo']
@AccountNo = params['AccountNo']
@BossEmail = params['BossEmail']
@AccountType = params['AccountType']
@TaxCollectionEndDate = params['TaxCollectionEndDate']
@BankName = params['BankName']
@Telephone = params['Telephone']
@OutMerchantId = params['OutMerchantId']
@CityId = params['CityId']
@BossIdCount = params['BossIdCount']
@Tag = params['Tag']
@FinancialTelephone = params['FinancialTelephone']
@BossName = params['BossName']
@OrganizationCodeStartDate = params['OrganizationCodeStartDate']
@Logo = params['Logo']
@OtherPictureFour = params['OtherPictureFour']
@TaxCollectionNo = params['TaxCollectionNo']
end
end
# ViewShop请求参数结构体
class ViewShopRequest < TencentCloud::Common::AbstractModel
# @param OpenId: 收单系统分配的开放ID
# @type OpenId: String
# @param OpenKey: 收单系统分配的密钥
# @type OpenKey: String
# @param OutShopId: 外部商户主键编号(ShopNo或OutShopId必须传一个)
# @type OutShopId: String
# @param ShopNo: 门店编号(ShopNo或OutShopId必须传一个)
# @type ShopNo: String
# @param Profile: 沙箱环境填sandbox,正式环境不填
# @type Profile: String
attr_accessor :OpenId, :OpenKey, :OutShopId, :ShopNo, :Profile
def initialize(openid=nil, openkey=nil, outshopid=nil, shopno=nil, profile=nil)
@OpenId = openid
@OpenKey = openkey
@OutShopId = outshopid
@ShopNo = shopno
@Profile = profile
end
def deserialize(params)
@OpenId = params['OpenId']
@OpenKey = params['OpenKey']
@OutShopId = params['OutShopId']
@ShopNo = params['ShopNo']
@Profile = params['Profile']
end
end
# ViewShop返回参数结构体
class ViewShopResponse < TencentCloud::Common::AbstractModel
# @param ErrMessage: 业务系统返回消息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMessage: String
# @param ErrCode: 业务系统返回码
# @type ErrCode: String
# @param Result: 门店明细响应对象
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Result: :class:`Tencentcloud::Cpdp.v20190820.models.ViewShopResult`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
@ErrMessage = errmessage
@ErrCode = errcode
@Result = result
@RequestId = requestid
end
def deserialize(params)
@ErrMessage = params['ErrMessage']
@ErrCode = params['ErrCode']
unless params['Result'].nil?
@Result = ViewShopResult.new
@Result.deserialize(params['Result'])
end
@RequestId = params['RequestId']
end
end
# 门店明细响应对象
class ViewShopResult < TencentCloud::Common::AbstractModel
# @param City: 城市
# 注意:此字段可能返回 null,表示取不到有效值。
# @type City: String
# @param ShopName: 门店简称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopName: String
# @param Latitude: 百度地图纬度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Latitude: String
# @param BrandName: 品牌名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BrandName: String
# @param AppCount: 开通应用数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AppCount: String
# @param ContactTelephone: 负责人手机号码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ContactTelephone: String
# @param MerchantName: 商户名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantName: String
# @param Province: 省份
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Province: String
# @param County: 县/区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type County: String
# @param UpdateTime: 更新时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateTime: String
# @param TerminalCount: 终端数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TerminalCount: String
# @param PictureTwo: 收银台图片【公共区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureTwo: String
# @param LatitudeTwo: 高德地图纬度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LatitudeTwo: String
# @param AgentName: 机构名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentName: String
# @param PictureFour: 其他照片【公共区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureFour: String
# @param LongitudeTwo: 高德地图经度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LongitudeTwo: String
# @param Status: 门店状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param Remark: 审核备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
# @param AgentNo: 机构编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AgentNo: String
# @param MerchantNo: 商户编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MerchantNo: String
# @param AddTime: 添加时间(yyyy-mm-dd hh:ii:ss)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AddTime: String
# @param Address: 详细地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: String
# @param Longitude: 百度地图经度
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Longitude: String
# @param ShopNo: 门店编号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopNo: String
# @param ShopFullName: 门店全称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ShopFullName: String
# @param Contact: 门店负责人
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Contact: String
# @param PictureThree: 店内环境图片【公共区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureThree: String
# @param PictureOne: 整体门面(含招牌)图片【公共区】
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PictureOne: String
# @param Telephone: 门店电话
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Telephone: String
# @param OutShopId: 机构门店主键
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OutShopId: String
# @param CityId: 城市编码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CityId: String
attr_accessor :City, :ShopName, :Latitude, :BrandName, :AppCount, :ContactTelephone, :MerchantName, :Province, :County, :UpdateTime, :TerminalCount, :PictureTwo, :LatitudeTwo, :AgentName, :PictureFour, :LongitudeTwo, :Status, :Remark, :AgentNo, :MerchantNo, :AddTime, :Address, :Longitude, :ShopNo, :ShopFullName, :Contact, :PictureThree, :PictureOne, :Telephone, :OutShopId, :CityId
def initialize(city=nil, shopname=nil, latitude=nil, brandname=nil, appcount=nil, contacttelephone=nil, merchantname=nil, province=nil, county=nil, updatetime=nil, terminalcount=nil, picturetwo=nil, latitudetwo=nil, agentname=nil, picturefour=nil, longitudetwo=nil, status=nil, remark=nil, agentno=nil, merchantno=nil, addtime=nil, address=nil, longitude=nil, shopno=nil, shopfullname=nil, contact=nil, picturethree=nil, pictureone=nil, telephone=nil, outshopid=nil, cityid=nil)
@City = city
@ShopName = shopname
@Latitude = latitude
@BrandName = brandname
@AppCount = appcount
@ContactTelephone = contacttelephone
@MerchantName = merchantname
@Province = province
@County = county
@UpdateTime = updatetime
@TerminalCount = terminalcount
@PictureTwo = picturetwo
@LatitudeTwo = latitudetwo
@AgentName = agentname
@PictureFour = picturefour
@LongitudeTwo = longitudetwo
@Status = status
@Remark = remark
@AgentNo = agentno
@MerchantNo = merchantno
@AddTime = addtime
@Address = address
@Longitude = longitude
@ShopNo = shopno
@ShopFullName = shopfullname
@Contact = contact
@PictureThree = picturethree
@PictureOne = pictureone
@Telephone = telephone
@OutShopId = outshopid
@CityId = cityid
end
def deserialize(params)
@City = params['City']
@ShopName = params['ShopName']
@Latitude = params['Latitude']
@BrandName = params['BrandName']
@AppCount = params['AppCount']
@ContactTelephone = params['ContactTelephone']
@MerchantName = params['MerchantName']
@Province = params['Province']
@County = params['County']
@UpdateTime = params['UpdateTime']
@TerminalCount = params['TerminalCount']
@PictureTwo = params['PictureTwo']
@LatitudeTwo = params['LatitudeTwo']
@AgentName = params['AgentName']
@PictureFour = params['PictureFour']
@LongitudeTwo = params['LongitudeTwo']
@Status = params['Status']
@Remark = params['Remark']
@AgentNo = params['AgentNo']
@MerchantNo = params['MerchantNo']
@AddTime = params['AddTime']
@Address = params['Address']
@Longitude = params['Longitude']
@ShopNo = params['ShopNo']
@ShopFullName = params['ShopFullName']
@Contact = params['Contact']
@PictureThree = params['PictureThree']
@PictureOne = params['PictureOne']
@Telephone = params['Telephone']
@OutShopId = params['OutShopId']
@CityId = params['CityId']
end
end
# 聚鑫提现订单内容
class WithdrawBill < TencentCloud::Common::AbstractModel
# @param WithdrawOrderId: 业务提现订单号
# @type WithdrawOrderId: String
# @param Date: 提现日期
# @type Date: String
# @param PayAmt: 提现金额,单位: 分
# @type PayAmt: String
# @param InSubAppId: 聚鑫分配转入账户appid
# @type InSubAppId: String
# @param OutSubAppId: 聚鑫分配转出账户appid
# @type OutSubAppId: String
# @param CurrencyType: ISO货币代码
# @type CurrencyType: String
# @param MetaData: 透传字段
# @type MetaData: String
# @param ExtendFieldData: 扩展字段
# @type ExtendFieldData: String
attr_accessor :WithdrawOrderId, :Date, :PayAmt, :InSubAppId, :OutSubAppId, :CurrencyType, :MetaData, :ExtendFieldData
def initialize(withdraworderid=nil, date=nil, payamt=nil, insubappid=nil, outsubappid=nil, currencytype=nil, metadata=nil, extendfielddata=nil)
@WithdrawOrderId = withdraworderid
@Date = date
@PayAmt = payamt
@InSubAppId = insubappid
@OutSubAppId = outsubappid
@CurrencyType = currencytype
@MetaData = metadata
@ExtendFieldData = extendfielddata
end
def deserialize(params)
@WithdrawOrderId = params['WithdrawOrderId']
@Date = params['Date']
@PayAmt = params['PayAmt']
@InSubAppId = params['InSubAppId']
@OutSubAppId = params['OutSubAppId']
@CurrencyType = params['CurrencyType']
@MetaData = params['MetaData']
@ExtendFieldData = params['ExtendFieldData']
end
end
# WithdrawCashMembership请求参数结构体
class WithdrawCashMembershipRequest < TencentCloud::Common::AbstractModel
# @param MrchCode: String(22),商户号(签约客户号)
# @type MrchCode: String
# @param TranWebName: STRING(150),交易网名称(市场名称)
# @type TranWebName: String
# @param MemberGlobalType: STRING(5),会员证件类型(详情见“常见问题”)
# @type MemberGlobalType: String
# @param MemberGlobalId: STRING(32),会员证件号码
# @type MemberGlobalId: String
# @param TranNetMemberCode: STRING(32),交易网会员代码
# @type TranNetMemberCode: String
# @param MemberName: STRING(150),会员名称
# @type MemberName: String
# @param TakeCashAcctNo: STRING(50),提现账号(银行卡)
# @type TakeCashAcctNo: String
# @param OutAmtAcctName: STRING(150),出金账户名称(银行卡户名)
# @type OutAmtAcctName: String
# @param Ccy: STRING(3),币种(默认为RMB)
# @type Ccy: String
# @param CashAmt: STRING(20),可提现金额
# @type CashAmt: String
# @param Remark: STRING(300),备注(建议可送订单号,可在对账文件的备注字段获取到)
# @type Remark: String
# @param ReservedMsg: STRING(1027),保留域
# @type ReservedMsg: String
# @param WebSign: STRING(300),网银签名
# @type WebSign: String
# @param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod"
# @type Profile: String
attr_accessor :MrchCode, :TranWebName, :MemberGlobalType, :MemberGlobalId, :TranNetMemberCode, :MemberName, :TakeCashAcctNo, :OutAmtAcctName, :Ccy, :CashAmt, :Remark, :ReservedMsg, :WebSign, :Profile
def initialize(mrchcode=nil, tranwebname=nil, memberglobaltype=nil, memberglobalid=nil, trannetmembercode=nil, membername=nil, takecashacctno=nil, outamtacctname=nil, ccy=nil, cashamt=nil, remark=nil, reservedmsg=nil, websign=nil, profile=nil)
@MrchCode = mrchcode
@TranWebName = tranwebname
@MemberGlobalType = memberglobaltype
@MemberGlobalId = memberglobalid
@TranNetMemberCode = trannetmembercode
@MemberName = membername
@TakeCashAcctNo = takecashacctno
@OutAmtAcctName = outamtacctname
@Ccy = ccy
@CashAmt = cashamt
@Remark = remark
@ReservedMsg = reservedmsg
@WebSign = websign
@Profile = profile
end
def deserialize(params)
@MrchCode = params['MrchCode']
@TranWebName = params['TranWebName']
@MemberGlobalType = params['MemberGlobalType']
@MemberGlobalId = params['MemberGlobalId']
@TranNetMemberCode = params['TranNetMemberCode']
@MemberName = params['MemberName']
@TakeCashAcctNo = params['TakeCashAcctNo']
@OutAmtAcctName = params['OutAmtAcctName']
@Ccy = params['Ccy']
@CashAmt = params['CashAmt']
@Remark = params['Remark']
@ReservedMsg = params['ReservedMsg']
@WebSign = params['WebSign']
@Profile = params['Profile']
end
end
# WithdrawCashMembership返回参数结构体
class WithdrawCashMembershipResponse < TencentCloud::Common::AbstractModel
# @param TxnReturnCode: String(20),返回码
# @type TxnReturnCode: String
# @param TxnReturnMsg: String(100),返回信息
# @type TxnReturnMsg: String
# @param CnsmrSeqNo: String(22),交易流水号
# @type CnsmrSeqNo: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param TransferFee: STRING(20),转账手续费(固定返回0.00)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TransferFee: String
# @param ReservedMsg: STRING(1027),保留域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ReservedMsg: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TxnReturnCode, :TxnReturnMsg, :CnsmrSeqNo, :FrontSeqNo, :TransferFee, :ReservedMsg, :RequestId
def initialize(txnreturncode=nil, txnreturnmsg=nil, cnsmrseqno=nil, frontseqno=nil, transferfee=nil, reservedmsg=nil, requestid=nil)
@TxnReturnCode = txnreturncode
@TxnReturnMsg = txnreturnmsg
@CnsmrSeqNo = cnsmrseqno
@FrontSeqNo = frontseqno
@TransferFee = transferfee
@ReservedMsg = reservedmsg
@RequestId = requestid
end
def deserialize(params)
@TxnReturnCode = params['TxnReturnCode']
@TxnReturnMsg = params['TxnReturnMsg']
@CnsmrSeqNo = params['CnsmrSeqNo']
@FrontSeqNo = params['FrontSeqNo']
@TransferFee = params['TransferFee']
@ReservedMsg = params['ReservedMsg']
@RequestId = params['RequestId']
end
end
# 清分提现明细信息
class WithdrawItem < TencentCloud::Common::AbstractModel
# @param BookingFlag: STRING(2),记账标志(01: 提现; 02: 清分 )
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BookingFlag: String
# @param TranStatus: STRING(32),交易状态(0: 成功)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranStatus: String
# @param BookingMsg: STRING(200),记账说明
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BookingMsg: String
# @param TranNetMemberCode: STRING(32),交易网会员代码
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranNetMemberCode: String
# @param SubAcctNo: STRING(50),见证子帐户的帐号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctNo: String
# @param SubAcctName: STRING(150),见证子账户的名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubAcctName: String
# @param TranAmt: STRING(20),交易金额
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranAmt: String
# @param Commission: STRING(20),手续费
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Commission: String
# @param TranDate: STRING(8),交易日期
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranDate: String
# @param TranTime: STRING(20),交易时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TranTime: String
# @param FrontSeqNo: STRING(52),见证系统流水号
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FrontSeqNo: String
# @param Remark: STRING(300),备注
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Remark: String
attr_accessor :BookingFlag, :TranStatus, :BookingMsg, :TranNetMemberCode, :SubAcctNo, :SubAcctName, :TranAmt, :Commission, :TranDate, :TranTime, :FrontSeqNo, :Remark
def initialize(bookingflag=nil, transtatus=nil, bookingmsg=nil, trannetmembercode=nil, subacctno=nil, subacctname=nil, tranamt=nil, commission=nil, trandate=nil, trantime=nil, frontseqno=nil, remark=nil)
@BookingFlag = bookingflag
@TranStatus = transtatus
@BookingMsg = bookingmsg
@TranNetMemberCode = trannetmembercode
@SubAcctNo = subacctno
@SubAcctName = subacctname
@TranAmt = tranamt
@Commission = commission
@TranDate = trandate
@TranTime = trantime
@FrontSeqNo = frontseqno
@Remark = remark
end
def deserialize(params)
@BookingFlag = params['BookingFlag']
@TranStatus = params['TranStatus']
@BookingMsg = params['BookingMsg']
@TranNetMemberCode = params['TranNetMemberCode']
@SubAcctNo = params['SubAcctNo']
@SubAcctName = params['SubAcctName']
@TranAmt = params['TranAmt']
@Commission = params['Commission']
@TranDate = params['TranDate']
@TranTime = params['TranTime']
@FrontSeqNo = params['FrontSeqNo']
@Remark = params['Remark']
end
end
end
end
end