Documentation
¶
Index ¶
- type AcctAgreementJson
- type AcctInfo
- type Agreement
- type AuthPerAgreeInfo
- type AuthPerInfo
- type BalanceDetail
- type BindPhoneJson
- type EnterpriseInfo
- type FileUploadOption
- type FileUploadResult
- type M
- type MemberControlInfo
- type OcrResultJson
- type Option
- type PayAcctAuditJson
- type PayAcctOpenJson
- type PayAgreementJson
- type PersonInfo
- type ResponseBody
- type SettleAcctInfo
- type Tm1010Dto
- func (x *Tm1010Dto) SetAcctNum(v string) *Tm1010Dto
- func (x *Tm1010Dto) SetBindType(v string) *Tm1010Dto
- func (x *Tm1010Dto) SetCvv2(v string) *Tm1010Dto
- func (x *Tm1010Dto) SetMemberRole(v string) *Tm1010Dto
- func (x *Tm1010Dto) SetPhone(v string) *Tm1010Dto
- func (x *Tm1010Dto) SetValidDate(v string) *Tm1010Dto
- type Tm1010Result
- type Tm1011Dto
- type Tm1011Result
- type Tm1020BankAcctDetail
- func (t *Tm1020BankAcctDetail) SetAcctAttr(acctAttr string) *Tm1020BankAcctDetail
- func (t *Tm1020BankAcctDetail) SetBankReservePhone(bankReservePhone string) *Tm1020BankAcctDetail
- func (t *Tm1020BankAcctDetail) SetOpenBankBranchName(openBankBranchName string) *Tm1020BankAcctDetail
- func (t *Tm1020BankAcctDetail) SetOpenBankNo(openBankNo string) *Tm1020BankAcctDetail
- func (t *Tm1020BankAcctDetail) SetPayBankNumber(payBankNumber string) *Tm1020BankAcctDetail
- type Tm1020Dto
- type Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetBusLicenseValidate(busLicenseValidate string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetEnterpriseNature(enterpriseNature string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetIdValidateEnd(idValidateEnd string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetIdValidateStart(idValidateStart string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetLegpCerBackFileId(legpCerBackFileId string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetLegpCerFrontFileId(legpCerFrontFileId string) *Tm1020EnterpriseBaseInfo
- func (t *Tm1020EnterpriseBaseInfo) SetUnifiedSocialCreditFileId(unifiedSocialCreditFileId string) *Tm1020EnterpriseBaseInfo
- type Tm1020Result
- type Tm1022Dto
- type Tm1022Result
- type Tm1023Dto
- type Tm1023Result
- type Tm1025Attachments
- func (t *Tm1025Attachments) SetBeneficiaryFile(beneficiaryFile string) *Tm1025Attachments
- func (t *Tm1025Attachments) SetLegalFacePhoto(legalFacePhoto string) *Tm1025Attachments
- func (t *Tm1025Attachments) SetLegalNationalEmblemPhoto(legalNationalEmblemPhoto string) *Tm1025Attachments
- func (t *Tm1025Attachments) SetUnifiedSocialCreditPhoto(unifiedSocialCreditPhoto string) *Tm1025Attachments
- type Tm1025BankAcctDetail
- func (t *Tm1025BankAcctDetail) SetAcctAttr(acctAttr string) *Tm1025BankAcctDetail
- func (t *Tm1025BankAcctDetail) SetBankReservePhone(bankReservePhone string) *Tm1025BankAcctDetail
- func (t *Tm1025BankAcctDetail) SetOpenBankBranchName(openBankBranchName string) *Tm1025BankAcctDetail
- func (t *Tm1025BankAcctDetail) SetOpenBankNo(openBankNo string) *Tm1025BankAcctDetail
- func (t *Tm1025BankAcctDetail) SetPayBankNumber(payBankNumber string) *Tm1025BankAcctDetail
- type Tm1025Dto
- type Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetAddressCode(addressCode string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetEnterpriseAdress(enterpriseAdress string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetEnterpriseName(enterpriseName string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonCerNum(legalPersonCerNum string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonCerType(legalPersonCerType string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonName(legalPersonName string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonPhone(legalPersonPhone string) *Tm1025EnterpriseBaseInfo
- func (t *Tm1025EnterpriseBaseInfo) SetUnifiedSocialCredit(unifiedSocialCredit string) *Tm1025EnterpriseBaseInfo
- type Tm1025LegAndBeneficiaryInfo
- type Tm1025Result
- type Tm1026Dto
- type Tm1026Result
- type Tm1027Dto
- type Tm1027Result
- type Tm1030Dto
- type Tm1030Result
- type Tm1031Dto
- type Tm1031Result
- type Tm1032Dto
- type Tm1032Result
- type Tm1050Dto
- type Tm1050Result
- type Tm1051Dto
- type Tm1051Result
- type Tq3004Dto
- type Tq3004Result
- type Yst2Ka
- func (x *Yst2Ka) Debug()
- func (x *Yst2Ka) FileUpload(ctx context.Context, opt FileUploadOption) (_ *FileUploadResult, err error)
- func (x *Yst2Ka) GetAcctInfos(ctx context.Context, signNum string) (infos []AcctInfo, err error)
- func (x *Yst2Ka) GetAgreements(ctx context.Context, signNum string) (agreements []Agreement, err error)
- func (x *Yst2Ka) GetBindPhoneJson(ctx context.Context, signNum string) (bindPhone BindPhoneJson, err error)
- func (x *Yst2Ka) GetEnterpriseInfo(ctx context.Context, signNum string) (info EnterpriseInfo, err error)
- func (x *Yst2Ka) GetMemberBalanceDetails(ctx context.Context, signNum string) (details []BalanceDetail, err error)
- func (x *Yst2Ka) GetMemberControlInfo(ctx context.Context, signNum string) (info MemberControlInfo, err error)
- func (x *Yst2Ka) GetNow(ctx context.Context) time.Time
- func (x *Yst2Ka) GetOcrResultJson(ctx context.Context, signNum string) (ocr OcrResultJson, err error)
- func (x *Yst2Ka) GetPayAcctAuditJson(ctx context.Context, signNum string) (info PayAcctAuditJson, err error)
- func (x *Yst2Ka) GetPayAcctOpenJson(ctx context.Context, signNum string) (info PayAcctOpenJson, err error)
- func (x *Yst2Ka) GetPersonInfo(ctx context.Context, signNum string) (info PersonInfo, err error)
- func (x *Yst2Ka) GetPlatformBalanceDetail(ctx context.Context) (detail BalanceDetail, err error)
- func (x *Yst2Ka) GetPrivateKey() *sm2.PrivateKey
- func (x *Yst2Ka) GetPublicKey() *ecdsa.PublicKey
- func (x *Yst2Ka) GetSettleAcctInfo(ctx context.Context, signNum string) (info SettleAcctInfo, err error)
- func (x *Yst2Ka) GetbankSubAcctInfo(ctx context.Context, signNum string) (info M, err error)
- func (x *Yst2Ka) Request(ctx context.Context, path string, code string, data string) (_ string, err error)
- func (x *Yst2Ka) SetNow(ctx context.Context, ts time.Time) context.Context
- func (x *Yst2Ka) Tm1010(ctx context.Context, dto *Tm1010Dto) (_ *Tm1010Result, err error)
- func (x *Yst2Ka) Tm1011(ctx context.Context, dto *Tm1011Dto) (_ *Tm1011Result, err error)
- func (x *Yst2Ka) Tm1020(ctx context.Context, dto *Tm1020Dto) (_ *Tm1020Result, err error)
- func (x *Yst2Ka) Tm1022(ctx context.Context, dto *Tm1022Dto) (_ *Tm1022Result, err error)
- func (x *Yst2Ka) Tm1023(ctx context.Context, dto *Tm1023Dto, i any) (err error)
- func (x *Yst2Ka) Tm1025(ctx context.Context, dto *Tm1025Dto) (_ *Tm1025Result, err error)
- func (x *Yst2Ka) Tm1026(ctx context.Context, dto *Tm1026Dto) (_ *Tm1026Result, err error)
- func (x *Yst2Ka) Tm1027(ctx context.Context, dto *Tm1027Dto, i any) (err error)
- func (x *Yst2Ka) Tm1030(ctx context.Context, dto *Tm1030Dto) (_ *Tm1030Result, err error)
- func (x *Yst2Ka) Tm1031(ctx context.Context, dto *Tm1031Dto) (_ *Tm1031Result, err error)
- func (x *Yst2Ka) Tm1032(ctx context.Context, dto *Tm1032Dto) (_ *Tm1032Result, err error)
- func (x *Yst2Ka) Tm1050(ctx context.Context, dto *Tm1050Dto) (_ *Tm1050Result, err error)
- func (x *Yst2Ka) Tm1051(ctx context.Context, dto any) (_ *Tm1051Result, err error)
- func (x *Yst2Ka) Tm3004(ctx context.Context, dto *Tq3004Dto) (_ *Tq3004Result, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcctAgreementJson ¶
type AcctAgreementJson struct {
PayeeAgreeToken string `json:"payeeAgreeToken,omitempty"` // 签约会员的收款协议文件token 收款方协议
WithdrawAgreeToken string `json:"withdrawAgreeToken,omitempty"` // 签约会员的账户提现协议文件token 若会员需要按照企业/个人主体签账户提现协议,则上送文件token
AuthPerAgreeInfo *AuthPerAgreeInfo `json:"authPerAgreeInfo,omitempty"` // 签约会员的授权委托协议信息 上送,则进行签约 具体字段见【线下授权委托协议(绑定手机号)信息】
}
func NewAcctAgreementJson ¶
func NewAcctAgreementJson() *AcctAgreementJson
func (*AcctAgreementJson) SetAuthPerAgreeInfo ¶
func (x *AcctAgreementJson) SetAuthPerAgreeInfo(v *AuthPerAgreeInfo) *AcctAgreementJson
func (*AcctAgreementJson) SetPayeeAgreeToken ¶
func (x *AcctAgreementJson) SetPayeeAgreeToken(v string) *AcctAgreementJson
func (*AcctAgreementJson) SetWithdrawAgreeToken ¶
func (x *AcctAgreementJson) SetWithdrawAgreeToken(v string) *AcctAgreementJson
type AcctInfo ¶
type AcctInfo struct {
BankCardNo string `json:"bankCardNo"` // 银行卡号
BankAccountName string `json:"bankAccountName"` // 银行户名
BankName string `json:"bankName"` // 银行名称
BindTime string `json:"bindTime"` // 绑定时间
CardType string `json:"cardType"` // 银行卡类型
BindStatus string `json:"bindStatus"` // 绑定状态
BankReservePhone string `json:"bankReservePhone"` // 银行预留手机号码
BindType string `json:"bindType"` // 绑卡方式
AcctAttr string `json:"acctAttr"` // 银行卡/账户属性
OpenBankBranchName string `json:"openBankBranchName"` // 开户行支行名称
PayBankNumber string `json:"payBankNumber"` // 支付行号
OpenBankProvince string `json:"openBankProvince"` // 开户行所在省
OpenBankCity string `json:"openBankCity"` // 开户行所在市
IsSpecifyAcct string `json:"isSpecifyAcct"` // 是否为支付账户指定出入金银行账户
}
type Agreement ¶
type Agreement struct {
SignAccount string `json:"signAccount"` // 签约户名
AgreementType string `json:"agreementType"` // 协议类型
SignResult string `json:"signResult"` // 签约结果
AgreeNo string `json:"agreeNo"` // 协议编号
SignTime string `json:"signTime"` // 签约时间
AnotherMemberInfo map[string]string `json:"anotherMemberInfo"` // 另一方(收款方/分账方)签约信息
}
type AuthPerAgreeInfo ¶
type AuthPerAgreeInfo struct {
AuthPhone string `json:"authPhone"` // 被授权人手机号
AuthPerName string `json:"authPerName"` // 被授权人姓名
AuthPerCerNum string `json:"authPerCerNum"` // 被授权人证件号 SM4 加密
AuthPerCerType string `json:"authPerCerType"` // 被授权人证件类型 见枚举值,支持多种证件类型
AuthPerAgreeToken string `json:"authPerAgreeToken"` // 签约会员的授权委托协议文件token
}
func NewAuthPerAgreeInfo ¶
type AuthPerInfo ¶
type BalanceDetail ¶
type BalanceDetail struct {
AcctNum string `json:"acctNum"` // 账户号
AcctType string `json:"acctType"` // 账户类型 01-簿记账户 11-支付账户 02-应用营销账户 03-应用担保账户 04-应用预充手续费 09-应用储值卡账户 10-储值卡待结算户
TotalAmt int64 `json:"totalAmt"` // 总余额 可用+在途
TransitAmt int64 `json:"transitAmt"` // 在途余额
AvailableAmt int64 `json:"availableAmt"` // 可用余额 日终零点将"在途余额"更新至"可用余额"
YesAmt int64 `json:"yesAmt"` // 昨日期末余额 可用+在途
RetentionLimitAmt int64 `json:"retentionLimitAmt,omitempty"` // 账户留存额度 通过1043-账户留存额度管理接口设置后返回
}
type BindPhoneJson ¶
type EnterpriseInfo ¶
type EnterpriseInfo struct {
MemberRole string `json:"memberRole"`
MemberType string `json:"memberType"`
EnterpriseName string `json:"enterpriseName"`
AddressCode string `json:"addressCode"`
EnterpriseAdress string `json:"enterpriseAdress"`
EnterpriseNature string `json:"enterpriseNature"`
UnifiedSocialCredit string `json:"unifiedSocialCredit"`
BusLicenseValidDate string `json:"busLicenseValidDate"`
Phone string `json:"phone"`
LegalPersonName string `json:"legalPersonName"`
LegalPersonCerType string `json:"legalPersonCerType"`
LegalPersonCerNum string `json:"legalPersonCerNum"`
IdValidStartDate string `json:"idValidStartDate"`
IdValidEndDate string `json:"idValidEndDate"`
LegalPersonPhone string `json:"legalPersonPhone"`
MemberStatus string `json:"memberStatus"`
AuditTime string `json:"auditTime"`
IsWithdraw string `json:"isWithdraw"`
RespMsg string `json:"respMsg"`
}
type FileUploadOption ¶
type FileUploadResult ¶
type MemberControlInfo ¶
type OcrResultJson ¶
type Option ¶
type Option struct {
BaseURL string `yaml:"base_url" env:"BASE_URL"`
PrivateKey string `yaml:"private_key" env:"PRIVATE_KEY"`
AllinpayPublicKey string `yaml:"allinpay_public_key" env:"ALLINPAY_PUBLIC_KEY"`
AppID string `yaml:"app_id" env:"APP_ID"`
SpAppID string `json:"sp_app_id" env:"SP_APP_ID"`
SecretKey string `yaml:"secret_key" env:"SECRET_KEY"`
}
type PayAcctAuditJson ¶
type PayAcctAuditJson struct {
EnterpriseVerifyResult string `json:"enterpriseVerifyResult"` // 工商验证
LegalIdCardVerifyResult string `json:"legalIdCardVerifyResult"` // 法人验证
BankAcctVerifyResult string `json:"bankAcctVerifyResult"` // 银行结算账户验证
UnifiedCreditPhotoResult string `json:"unifiedCreditPhotoResult"` // 统一信用证照片验证
LegalCerPhotoResult string `json:"legalCerPhotoResult"` // 法人证件照片验证
SettleAcctPhotoResult string `json:"settleAcctPhotoResult"` // 结算账户照
BusOutdoorPhotoResult string `json:"busOutdoorPhotoResult"` // 经营门头照片
BusInnerPhotoResult string `json:"busInnerPhotoResult"` // 经营内景照
AcctManOutdoorPhotoResult string `json:"acctManOutdoorPhotoResult"` // 客户经理与门头照
AcctManWithIdPhotoResult string `json:"acctManWithIdPhotoResult"` // 客户经理手持身份证照片
BusCoopConfirmResult string `json:"busCoopConfirmResult"` // 客户业务合作确认函
NonNatBenfitInfoResult string `json:"nonNatBenfitInfoResult"` // 非自然人客户受益所有人信息登记表
TlPayAcctNoAgreeResult string `json:"tlPayAcctNoAgreeResult"` // 通联单位支付账户服务协议
}
type PayAcctOpenJson ¶
type PayAgreementJson ¶
type PayAgreementJson struct {
PayAcctNoOpenAgreeToken string `json:"payAcctNoOpenAgreeToken"` // 通联支付账户服务协议文件token
CoopConfirmToken string `json:"coopConfirmToken"` // 客户业务合作确认函文件token
NonNatureCusBenefitToken string `json:"nonNatureCusBenefitToken"` // 非自然人客户受益所有人信息登记表文件token
}
func NewPayAgreementJson ¶
func NewPayAgreementJson(payAcctNoOpenAgreeToken string, coopConfirmToken string, nonNatureCusBenefitToken string) *PayAgreementJson
type PersonInfo ¶
type PersonInfo struct {
Name string `json:"name"` // 姓名
CerType string `json:"cerType"` // 证件类型
CerNum string `json:"cerNum"` // 身份证号码
IsWithdraw string `json:"isWithdraw"` // 是否可提现
Phone string `json:"phone"` // 绑定手机
IdValidStartDate string `json:"idValidStartDate"` // 证件有效开始日期
IdValidEndDate string `json:"idValidEndDate"` // 证件有效截止日期
RegisterTime string `json:"registerTime"` // 注册时间
IsRealNameAuth string `json:"isRealNameAuth"` // 是否实名认证
RealNameAuthTime string `json:"realNameAuthTime"` // 实名认证时间
MemberStatus string `json:"memberStatus"` // 会员状态
MemberRole string `json:"memberRole"` // 会员角色
MemberType string `json:"memberType"` // 会员类型
}
type ResponseBody ¶
type SettleAcctInfo ¶
type Tm1010Dto ¶
type Tm1010Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
SignNum string `json:"signNum"` // 商户会员编号
MemberRole string `json:"memberRole"` // 会员角色
Name string `json:"name"` // 姓名
CerType string `json:"cerType"` // 证件类型
CerNum string `json:"cerNum"` // 证件号码
AcctNum string `json:"acctNum"` // 银行卡号
Phone string `json:"phone"` // 银行预留手机
BindType string `json:"bindType"` // 绑卡方式
ValidDate string `json:"validDate"` // 有效期,格式为月年
Cvv2 string `json:"cvv2"` // CVV2
}
func NewTm1010Dto ¶
func (*Tm1010Dto) SetAcctNum ¶
func (*Tm1010Dto) SetBindType ¶
func (*Tm1010Dto) SetMemberRole ¶
func (*Tm1010Dto) SetValidDate ¶
type Tm1010Result ¶
type Tm1011Dto ¶
type Tm1011Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 请求流水号
SignNum string `json:"signNum"` // 商户会员编号
ApplyRespTraceNum string `json:"applyRespTraceNum"` // 申请响应业务关联流水号
Phone string `json:"phone"` // 银行预留手机号
ValidDate string `json:"validDate"` // 有效期
Cvv2 string `json:"cvv2"` // CVV2
VerifyCode string `json:"verifyCode"` // 短信验证码
}
func NewTm1011Dto ¶
func (*Tm1011Dto) SetValidDate ¶
type Tm1011Result ¶
type Tm1020BankAcctDetail ¶
type Tm1020BankAcctDetail struct {
AcctAttr string `json:"acctAttr"` // 账户类型
AcctNum string `json:"acctNum"` // 账号
BankReservePhone string `json:"bankReservePhone"` // 银行预留手机
OpenBankNo string `json:"openBankNo"` // 银行代码
OpenBankBranchName string `json:"openBankBranchName"` // 开户行支行名称
PayBankNumber string `json:"payBankNumber"` // 支付行号,12位数字
OpenBankProvince string `json:"openBankProvince"` // 开户行所在省
OpenBankCity string `json:"openBankCity"` // 开户行所在市
}
func NewTm1020BankAcctDetail ¶
func NewTm1020BankAcctDetail( acctNum string, openBankProvince string, openBankCity string, ) *Tm1020BankAcctDetail
func (*Tm1020BankAcctDetail) SetAcctAttr ¶
func (t *Tm1020BankAcctDetail) SetAcctAttr(acctAttr string) *Tm1020BankAcctDetail
func (*Tm1020BankAcctDetail) SetBankReservePhone ¶
func (t *Tm1020BankAcctDetail) SetBankReservePhone(bankReservePhone string) *Tm1020BankAcctDetail
func (*Tm1020BankAcctDetail) SetOpenBankBranchName ¶
func (t *Tm1020BankAcctDetail) SetOpenBankBranchName(openBankBranchName string) *Tm1020BankAcctDetail
func (*Tm1020BankAcctDetail) SetOpenBankNo ¶
func (t *Tm1020BankAcctDetail) SetOpenBankNo(openBankNo string) *Tm1020BankAcctDetail
func (*Tm1020BankAcctDetail) SetPayBankNumber ¶
func (t *Tm1020BankAcctDetail) SetPayBankNumber(payBankNumber string) *Tm1020BankAcctDetail
type Tm1020Dto ¶
type Tm1020Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
SignNum string `json:"signNum"` // 商户会员编号
MemberRole string `json:"memberRole"` // 会员角色
NotifyUrl string `json:"notifyUrl"` // 企业会员审核结果通知地址
EnterpriseBaseInfo Tm1020EnterpriseBaseInfo `json:"enterpriseBaseInfo"` // 企业基本信息
BankAcctDetail Tm1020BankAcctDetail `json:"bankAcctDetail"` // 银行账户信息
}
func NewTm1020Dto ¶
func (*Tm1020Dto) SetBankAcctDetail ¶
func (x *Tm1020Dto) SetBankAcctDetail(v Tm1020BankAcctDetail) *Tm1020Dto
func (*Tm1020Dto) SetEnterpriseBaseInfo ¶
func (x *Tm1020Dto) SetEnterpriseBaseInfo(v Tm1020EnterpriseBaseInfo) *Tm1020Dto
func (*Tm1020Dto) SetMemberRole ¶
type Tm1020EnterpriseBaseInfo ¶
type Tm1020EnterpriseBaseInfo struct {
EnterpriseName string `json:"enterpriseName"` // 企业名称
EnterpriseNature string `json:"enterpriseNature"` // 企业性质
AddressCode string `json:"addressCode"` // 省市地区码
EnterpriseAdress string `json:"enterpriseAdress"` // 企业注册地址
UnifiedSocialCredit string `json:"unifiedSocialCredit"` // 统一社会信用
BusLicenseValidate string `json:"busLicenseValidate"` // 营业证件有效期
LegalPersonName string `json:"legalPersonName"` // 法人姓名
LegalPersonCerType string `json:"legalPersonCerType"` // 法人证件类型
LegalPersonCerNum string `json:"legalPersonCerNum"` // 法人证件号码
IdValidateStart string `json:"idValidateStart"` // 法人证件有效开始日期
IdValidateEnd string `json:"idValidateEnd"` // 法人证件有效截止日期
LegalPersonPhone string `json:"legalPersonPhone"` // 法人手机号码
LegpCerFrontFileId string `json:"legpCerFrontFileId"` // 法人身份证(肖像面)
LegpCerBackFileId string `json:"legpCerBackFileId"` // 法人身份证(国徽面)
UnifiedSocialCreditFileId string `json:"unifiedSocialCreditFileId"` // 统一信用证
}
func (*Tm1020EnterpriseBaseInfo) SetBusLicenseValidate ¶
func (t *Tm1020EnterpriseBaseInfo) SetBusLicenseValidate(busLicenseValidate string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetEnterpriseNature ¶
func (t *Tm1020EnterpriseBaseInfo) SetEnterpriseNature(enterpriseNature string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetIdValidateEnd ¶
func (t *Tm1020EnterpriseBaseInfo) SetIdValidateEnd(idValidateEnd string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetIdValidateStart ¶
func (t *Tm1020EnterpriseBaseInfo) SetIdValidateStart(idValidateStart string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetLegpCerBackFileId ¶
func (t *Tm1020EnterpriseBaseInfo) SetLegpCerBackFileId(legpCerBackFileId string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetLegpCerFrontFileId ¶
func (t *Tm1020EnterpriseBaseInfo) SetLegpCerFrontFileId(legpCerFrontFileId string) *Tm1020EnterpriseBaseInfo
func (*Tm1020EnterpriseBaseInfo) SetUnifiedSocialCreditFileId ¶
func (t *Tm1020EnterpriseBaseInfo) SetUnifiedSocialCreditFileId(unifiedSocialCreditFileId string) *Tm1020EnterpriseBaseInfo
type Tm1020Result ¶
type Tm1022Dto ¶
type Tm1022Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
SignNum string `json:"signNum"` // 商户会员编号
NotifyUrl string `json:"notifyUrl"` // 企业会员审核结果通知地址
LegpCerFront string `json:"legpCerFront"` // 法人身份证(肖像面)
LegpCerBack string `json:"legpCerBack"` // 法人身份证(国徽面)
UnifiedSocialCredit string `json:"unifiedSocialCredit"` // 统一信用证
OtherPhotocopyType string `json:"otherPhotocopyType"` // 其他影印件类型
PhotocopyToken string `json:"photocopyToken"` // 影印件图片文件
}
func NewTm1022Dto ¶
func (*Tm1022Dto) SetLegpCerBack ¶
func (*Tm1022Dto) SetLegpCerFront ¶
func (*Tm1022Dto) SetOtherPhotocopyType ¶
func (*Tm1022Dto) SetPhotocopyToken ¶
func (*Tm1022Dto) SetUnifiedSocialCredit ¶
type Tm1022Result ¶
type Tm1023Dto ¶
type Tm1023Dto struct {
SignNum string `json:"signNum"` // 商户会员编号
AcctType string `json:"acctType"` // 账户类型
}
func NewTm1023Dto ¶
func (*Tm1023Dto) SetAcctType ¶
type Tm1023Result ¶
type Tm1025Attachments ¶
type Tm1025Attachments struct {
UnifiedSocialCreditPhoto string `json:"unifiedSocialCreditPhoto"` // 统一信用证照片
LegalNationalEmblemPhoto string `json:"legalNationalEmblemPhoto"` // 法人证件(国徽面)
LegalFacePhoto string `json:"legalFacePhoto"` // 法人证件(肤像面)
SettleAcctPhoto string `json:"settleAcctPhoto"` // 结算账户照
BusinessDoorHeadPhoto string `json:"businessDoorHeadPhoto"` // 经营门头照片
BusinessInteriorPhoto string `json:"businessInteriorPhoto"` // 经营内景照片
AccountManagerWithDoorPhoto string `json:"accountManagerWithDoorPhoto"` // 客户经理与门头照
AccountManagerHoldingIdCardPhoto string `json:"accountManagerHoldingIdCardPhoto"` // 客户经理手持身份证照片
BeneficiaryFile string `json:"beneficiaryFile"` // 受益所有人证明材料
}
func NewTm1025Attachments ¶
func (*Tm1025Attachments) SetBeneficiaryFile ¶
func (t *Tm1025Attachments) SetBeneficiaryFile(beneficiaryFile string) *Tm1025Attachments
func (*Tm1025Attachments) SetLegalFacePhoto ¶
func (t *Tm1025Attachments) SetLegalFacePhoto(legalFacePhoto string) *Tm1025Attachments
func (*Tm1025Attachments) SetLegalNationalEmblemPhoto ¶
func (t *Tm1025Attachments) SetLegalNationalEmblemPhoto(legalNationalEmblemPhoto string) *Tm1025Attachments
func (*Tm1025Attachments) SetUnifiedSocialCreditPhoto ¶
func (t *Tm1025Attachments) SetUnifiedSocialCreditPhoto(unifiedSocialCreditPhoto string) *Tm1025Attachments
type Tm1025BankAcctDetail ¶
type Tm1025BankAcctDetail struct {
AcctAttr string `json:"acctAttr"` // 账户类型
AcctNum string `json:"acctNum"` // 账号
BankReservePhone string `json:"bankReservePhone"` // 银行预留手机
OpenBankNo string `json:"openBankNo"` // 银行代码
OpenBankBranchName string `json:"openBankBranchName"` // 开户行支行名称
PayBankNumber string `json:"payBankNumber"` // 支付行号
OpenBankProvince string `json:"openBankProvince"` // 开户行所在省
OpenBankCity string `json:"openBankCity"` // 开户行所在市
}
func NewTm1025BankAcctDetail ¶
func NewTm1025BankAcctDetail( acctNum string, openBankProvince string, openBankCity string, ) *Tm1025BankAcctDetail
func (*Tm1025BankAcctDetail) SetAcctAttr ¶
func (t *Tm1025BankAcctDetail) SetAcctAttr(acctAttr string) *Tm1025BankAcctDetail
func (*Tm1025BankAcctDetail) SetBankReservePhone ¶
func (t *Tm1025BankAcctDetail) SetBankReservePhone(bankReservePhone string) *Tm1025BankAcctDetail
func (*Tm1025BankAcctDetail) SetOpenBankBranchName ¶
func (t *Tm1025BankAcctDetail) SetOpenBankBranchName(openBankBranchName string) *Tm1025BankAcctDetail
func (*Tm1025BankAcctDetail) SetOpenBankNo ¶
func (t *Tm1025BankAcctDetail) SetOpenBankNo(openBankNo string) *Tm1025BankAcctDetail
func (*Tm1025BankAcctDetail) SetPayBankNumber ¶
func (t *Tm1025BankAcctDetail) SetPayBankNumber(payBankNumber string) *Tm1025BankAcctDetail
type Tm1025Dto ¶
type Tm1025Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 请求流水号
SignNum string `json:"signNum"` // 商户会员编号
MemberRole string `json:"memberRole"` // 会员角色
EnterpriseNature string `json:"enterpriseNature"` // 企业性质
NotifyUrl string `json:"notifyUrl"` // 企业会员审核结果通知地址
EnterpriseBaseInfo *Tm1025EnterpriseBaseInfo `json:"enterpriseBaseInfo"` // 企业基本信息
LegaAndBeneficiaryInfo *Tm1025LegAndBeneficiaryInfo `json:"legaAndBeneficiaryInfo"` // 受益人信息
BankAcctDetail *Tm1025BankAcctDetail `json:"bankAcctDetail"` // 银行账户信息
Attachments *Tm1025Attachments `json:"attachments"` // 开户附件材料
}
func NewTm1025Dto ¶
func NewTm1025Dto( reqTraceNum string, signNum string, notifyUrl string, enterpriseBaseInfo *Tm1025EnterpriseBaseInfo, legaAndBeneficiaryInfo *Tm1025LegAndBeneficiaryInfo, bankAcctDetail *Tm1025BankAcctDetail, attachments *Tm1025Attachments, ) *Tm1025Dto
func (*Tm1025Dto) SetEnterpriseNature ¶
func (*Tm1025Dto) SetMemberRole ¶
type Tm1025EnterpriseBaseInfo ¶
type Tm1025EnterpriseBaseInfo struct {
EnterpriseName string `json:"enterpriseName"` // 企业名称
AddressCode string `json:"addressCode"` // 地区码
EnterpriseAdress string `json:"enterpriseAdress"` // 企业地址
UnifiedSocialCredit string `json:"unifiedSocialCredit"` // 统一社会信用
BusLicenseValidate string `json:"busLicenseValidate"` // 营业证件有效期
LegalPersonName string `json:"legalPersonName"` // 法人姓名
LegalPersonCerType string `json:"legalPersonCerType"` // 法人证件类型
LegalPersonCerNum string `json:"legalPersonCerNum"` // 法人证件号码
IdValidateStart string `json:"idValidateStart"` // 法人证件有效开始日期
IdValidateEnd string `json:"idValidateEnd"` // 法人证件有效截止日期
LegalPersonPhone string `json:"legalPersonPhone"` // 法人手机号码
BusiScope string `json:"busiScope"` // 经营内容
}
func NewTm1025EnterpriseBaseInfo ¶
func NewTm1025EnterpriseBaseInfo( busLicenseValidate string, idValidateStart string, idValidateEnd string, busiScope string, ) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetAddressCode ¶
func (t *Tm1025EnterpriseBaseInfo) SetAddressCode(addressCode string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetEnterpriseAdress ¶
func (t *Tm1025EnterpriseBaseInfo) SetEnterpriseAdress(enterpriseAdress string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetEnterpriseName ¶
func (t *Tm1025EnterpriseBaseInfo) SetEnterpriseName(enterpriseName string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetLegalPersonCerNum ¶
func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonCerNum(legalPersonCerNum string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetLegalPersonCerType ¶
func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonCerType(legalPersonCerType string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetLegalPersonName ¶
func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonName(legalPersonName string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetLegalPersonPhone ¶
func (t *Tm1025EnterpriseBaseInfo) SetLegalPersonPhone(legalPersonPhone string) *Tm1025EnterpriseBaseInfo
func (*Tm1025EnterpriseBaseInfo) SetUnifiedSocialCredit ¶
func (t *Tm1025EnterpriseBaseInfo) SetUnifiedSocialCredit(unifiedSocialCredit string) *Tm1025EnterpriseBaseInfo
type Tm1025LegAndBeneficiaryInfo ¶
type Tm1025LegAndBeneficiaryInfo struct {
LegalCountry string `json:"legalCountry"` // 法人国籍
LegalSex string `json:"legalSex"` // 法人性别
LegalCareer string `json:"legalCareer"` // 法人职业
LegalAddress string `json:"legalAddress"` // 法人住址
MerchantType string `json:"merchantType"` // 商户类型
BeneficiaryJudgmentCriteria string `json:"beneficiaryJudgmentCriteria"` // 受益所有人判定标准
BeneficiaryJudgmentFile string `json:"beneficiaryJudgmentFile"` // 受益所有人证明材料类型
LegalIsBeneficiary string `json:"legalIsBeneficiary"` // 法人是否受益人
BeneficiaryCerType string `json:"beneficiaryCerType"` // 受益人证件类型
BeneficiaryName string `json:"beneficiaryName"` // 受益人姓名
BeneficiaryCerNum string `json:"beneficiaryCerNum"` // 受益人证件号码
BeneficiaryCerValidate string `json:"beneficiaryCerValidate"` // 受益人证件有效期
IsSeniorManagement string `json:"isSeniorManagement"` // 是否为高管
BeneficiaryAddress string `json:"beneficiaryAddress"` // 受益人住址
}
func NewTm1025LegAndBeneficiaryInfo ¶
func NewTm1025LegAndBeneficiaryInfo( legalCountry string, legalSex string, legalCareer string, legalAddress string, merchantType string, legalIsBeneficiary string, legalIsShareholder string, beneficiaryCerType string, beneficiaryName string, beneficiaryCerNum string, beneficiaryCerValidate string, isSeniorManagement string, beneficiaryAddress string, shareholderName string, shareholderCerNum string, shareholderCerValidate string, ) *Tm1025LegAndBeneficiaryInfo
func (*Tm1025LegAndBeneficiaryInfo) SetBeneficiaryJudgmentCriteria ¶
func (t *Tm1025LegAndBeneficiaryInfo) SetBeneficiaryJudgmentCriteria(beneficiaryJudgmentCriteria string) *Tm1025LegAndBeneficiaryInfo
func (*Tm1025LegAndBeneficiaryInfo) SetBeneficiaryJudgmentFile ¶
func (t *Tm1025LegAndBeneficiaryInfo) SetBeneficiaryJudgmentFile(beneficiaryJudgmentFile string) *Tm1025LegAndBeneficiaryInfo
type Tm1025Result ¶
type Tm1026Dto ¶
type Tm1026Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
QryType string `json:"qryType,omitempty"` // 查询类型
CusId string `json:"cusId,omitempty"` // 商户号 查询类型为2-商户带结算资金时必填, 用于查询指定收银宝商户的带结算资金
QryDate string `json:"qryDate,omitempty"` // 期末余额查询日期 qryType=4时上送 格式为yyyyMMdd 不送默认今天,D日查询D-1日的期末余额
}
func NewTm1026Dto ¶
func (*Tm1026Dto) SetQryDate ¶
func (*Tm1026Dto) SetQryType ¶
type Tm1026Result ¶
type Tm1026Result struct {
TotalAmt string `json:"totalAmt,omitempty"` // 通联头寸余额,单位:分 查询成功,返回
CusId string `json:"cusId,omitempty"` // 通联头寸账户号 查询类型1:返回收付通商户号 查询类型2:返回请求的商户号
BankCardNo string `json:"bankCardNo,omitempty"` // 银行账号 资金管理模式为银行管理、银行托管、自主管理时返回
BankTotalAmt string `json:"bankTotalAmt,omitempty"` // 银行头寸余额,单位分 qryType=4时返回
YesterdayBalance string `json:"yesterdayBalance,omitempty"` // 银行期末余额 资金管理模式为银行管理、自主管理、银行托管时返回
RespCode string `json:"respCode"` // 业务返回码 00000:代表成功
RespMsg string `json:"respMsg,omitempty"` // 业务返回说明
}
type Tm1027Dto ¶
type Tm1027Dto struct {
SignNum string `json:"signNum"` // 商户会员编号
InfoType string `json:"InfoType"` // 查询信息类型
}
func NewTm1027Dto ¶
type Tm1027Result ¶
type Tm1027Result[T PersonInfo | EnterpriseInfo | M] struct { RespCode string `json:"respCode"` // 业务返回码 RespMsg string `json:"respMsg"` // 业务返回说明 SignNum string `json:"signNum"` // 商户会员编号 MemberBasicInfo T `json:"memberBasicInfo,omitempty"` // 会员基本信息 AcctInfo []AcctInfo `json:"acctInfo,omitempty"` // 银行账户信息 AgreementArray []Agreement `json:"agreementArray,omitempty"` // 协议信息 OcrResultJson OcrResultJson `json:"ocrResultJson,omitempty"` // 影印件OCR核对结果 BindPhoneJson BindPhoneJson `json:"bindPhoneJson,omitempty"` // 绑定手机号信息 PayAcctOpenJson PayAcctOpenJson `json:"payAcctOpenJson,omitempty"` // 支付账户开户信息 PayAcctAuditJson PayAcctAuditJson `json:"payAcctAuditJson,omitempty"` // 支付账户审核结果详情 BankSubAcctInfo M `json:"bankSubAcctInfo,omitempty"` // 银行子账户信息 SettleAcctInfo SettleAcctInfo `json:"settleAcctInfo,omitempty"` // 待结算户信息 MemberControlInfo MemberControlInfo `json:"memberControlInfo,omitempty"` // 会员交易控制类型 }
type Tm1030Dto ¶
type Tm1030Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
SignNum string `json:"signNum"` // 商户会员编号
Phone string `json:"phone"` // 绑定手机号
PhoneType string `json:"phoneType"` // 绑定手机类型
JumpUrl string `json:"jumpUrl"` // 前端跳转地址
NotifyUrl string `json:"notifyUrl"` // 签约结果通知地址
AuthPerInfo map[string]any `json:"authPerInfo"` // 被授权人信息
}
func (*Tm1030Dto) SetJumpUrl ¶
func (*Tm1030Dto) SetNotifyUrl ¶
func (*Tm1030Dto) SetPhoneType ¶
type Tm1030Result ¶
type Tm1031Dto ¶
type Tm1031Result ¶
type Tm1032Dto ¶
type Tm1032Result ¶
type Tm1050Dto ¶
type Tm1050Dto struct {
ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号
SignNum string `json:"signNum"` // 签约会员编号
MemberName string `json:"memberName"` // 签约会员名称
AgreementType string `json:"agreementType"` // 协议类型
JumpPageType string `json:"jumpPageType"` // 跳转页面类型
JumpUrl string `json:"jumpUrl"` // 前台跳转地址
NotifyUrl string `json:"notifyUrl"` // 签约结果通知地址
}
type Tm1050Result ¶
type Tm1051Dto ¶
type Tm1051Dto[T AcctAgreementJson | PayAgreementJson] struct { ReqTraceNum string `json:"reqTraceNum"` // 商户请求流水号 SignNum string `json:"signNum"` // 签约会员编号 MemberName string `json:"memberName"` // 签约会员名称 AgreementType string `json:"agreementType"` // 协议类型 AgreementJson T `json:"agreementJson"` // 签约协议信息 NotifyUrl string `json:"notifyUrl"` // 签约结果通知地址 }
func NewTm1051Dto ¶
func NewTm1051Dto[T AcctAgreementJson | PayAgreementJson](reqTraceNum string, signNum string, memberName string, agreementType string, agreementJson T, notifyUrl string) *Tm1051Dto[T]
type Tm1051Result ¶
type Tq3004Result ¶
type Tq3004Result struct {
}
type Yst2Ka ¶
type Yst2Ka struct {
Option *Option
Client *resty.Client
// contains filtered or unexported fields
}
func (*Yst2Ka) FileUpload ¶
func (x *Yst2Ka) FileUpload(ctx context.Context, opt FileUploadOption) (_ *FileUploadResult, err error)
func (*Yst2Ka) GetAcctInfos ¶
func (*Yst2Ka) GetAgreements ¶
func (*Yst2Ka) GetBindPhoneJson ¶
func (*Yst2Ka) GetEnterpriseInfo ¶
func (*Yst2Ka) GetMemberBalanceDetails ¶
func (*Yst2Ka) GetMemberControlInfo ¶
func (*Yst2Ka) GetOcrResultJson ¶
func (*Yst2Ka) GetPayAcctAuditJson ¶
func (*Yst2Ka) GetPayAcctOpenJson ¶
func (*Yst2Ka) GetPersonInfo ¶
func (*Yst2Ka) GetPlatformBalanceDetail ¶
func (x *Yst2Ka) GetPlatformBalanceDetail(ctx context.Context) (detail BalanceDetail, err error)
func (*Yst2Ka) GetPrivateKey ¶
func (x *Yst2Ka) GetPrivateKey() *sm2.PrivateKey
func (*Yst2Ka) GetPublicKey ¶
func (*Yst2Ka) GetSettleAcctInfo ¶
func (*Yst2Ka) GetbankSubAcctInfo ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.