corpaccount

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URL 接口地址
	URL = "https://verifycorp.market.alicloudapi.com/lianzhuo/verifyCorpAccount"

	// MsgSuccess 认证成功消息
	MsgSuccess = "认证信息匹配"
	// MsgFailure 认证失败消息
	MsgFailure = "认证失败,请稍后再试"
)

Variables

View Source
var MockTransAmt = 5

MockTransAmt 模拟打款金额,单位(分)

Functions

This section is empty.

Types

type AuthenticateRequest

type AuthenticateRequest struct {
	CardNo   string `validate:"required,corpaccount" label:"企业账号"` // 企业账号
	AcctName string `validate:"required" label:"企业名称"`             // 企业名称
	BankName string `validate:"required" label:"开户行名称"`            // 开户行名称(要和银行列表里名称完全一致:http://lundroid.com/basedata/3.xlsx?spm=5176.product-detail.detail.7.5d11386fyiwyaW&file=3.xlsx
}

AuthenticateRequest 企业银行卡账户认证请求

type AuthenticateResponse

type AuthenticateResponse struct {
	RequestNo int64  // 请求编号
	TransAmt  int    // 打款随机金额,单位(分)
	Abstract  string // 打款摘要
}

AuthenticateResponse 企业银行卡账户认证响应

type Config

type Config struct {
	IsMock       bool   `json:",optional"` // 是否模拟通过
	AppKey       string `json:",optional"` // 应用Key
	AppKeySecret string `json:",optional"` // 应用密钥
}

Config 企业银行卡账户认证配置

type CorpAccount

type CorpAccount struct {
	// contains filtered or unexported fields
}

CorpAccount 企业银行卡账户认证器

func MustNewCorpAccount

func MustNewCorpAccount(c Config) *CorpAccount

MustNewCorpAccount 新建企业银行卡账户认证器

func NewCorpAccount

func NewCorpAccount(c Config) (*CorpAccount, error)

NewCorpAccount 新建企业银行卡账户认证器

func (*CorpAccount) Authenticate

Authenticate 企业银行卡账户认证

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL