yunzhanghu

package module
v0.0.0-...-de859a2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 24 Imported by: 0

README

云账户Api第三方实现

fork from github.com/kaiiak/yunzhanghu

Documentation

Index

Constants

View Source
const (
	ORDER_CHANNEL_BANK   = "银行卡"
	ORDER_CHANNEL_ALIPAY = "支付宝"
	ORDER_CHANNEL_WEIXIN = "微信"

	WITHDRAW_PLATFORM_BANKPAY = "bankpay"
	WITHDRAW_PLATFORM_ALIPAY  = "alipay"
	WITHDRAW_PLATFORM_WXPAY   = "wxpay"
)
View Source
const (
	SIGN_CERT_TYPE_IDCARD      = 0 //身份证
	SIGN_CERT_TYPE_HK_PASSPORT = 2 //港澳居民来往内地通行证
	SIGN_CERT_TYPE_PASSPORT    = 3 //护照
	SIGN_CERT_TYPE_TW_PASSPORT = 5 //台湾居民来往大陆通行证
)
View Source
const (
	SIGN_STATUS_NO        = 0 //未签约
	SIGN_STATUS_YES       = 1 //已签约
	SIGN_STATUS_CANCEL    = 2 //已解约
	SIGN_STATUS_NOT_FOUND = 9 //不存在签约关系
)
View Source
const (
	RESP_STR_FAILD   = "fail"
	RESP_STR_SUCCESS = "success"
)
View Source
const BankCardQueryURI = "/api/payment/v1/card"
View Source
const BillDownloadURI = "/api/dataservice/v2/bill/downloadurl"
View Source
const DownloadOrderDayURI = "/api/dataservice/v1/order/day/url"
View Source
const InvoiceAmountURI = "/api/invoice/v2/invoice-amount"
View Source
const InvoiceApplyURI = "/api/invoice/v2/apply"
View Source
const InvoicePDFDownloadURI = "/api/invoice/v2/invoice/invoice-pdf"
View Source
const InvoiceReminderEmailURI = "/api/invoice/v2/invoice/reminder/email"
View Source
const InvoiceStatURI = ""
View Source
const InvoiceStatusURI = "/api/invoice/v2/invoice/invoice-status"
View Source
const OrderDownloadURI = "/api/dataservice/v1/order/downloadurl"
View Source
const QueryBillURI = "/api/dataservice/v1/bills"
View Source
const QueryOrderURI = "/api/dataservice/v1/orders"
View Source
const RechargeRecordURI = "/api/dataservice/v2/recharge-record"
View Source
const TaxFileDownloadURI = ""
View Source
const UserCrossURI = "/api/tax/v1/user/cross"
View Source
const UserWhiteCheckURI = "/api/payment/v1/user/white/check"
View Source
const VerifyBankCardFourFactorURI = "/authentication/verify-bankcard-four-factor"
View Source
const VerifyBankCardThreeFactorURI = "/authentication/verify-bankcard-three-factor"
View Source
const VerifyConfirmURI = ""
View Source
const VerifyIdCardURI = "/authentication/verify-id"
View Source
const VerifyRequestURI = "/authentication/verify-request"

Variables

View Source
var (
	ShangHaiTimeLocation, _ = time.LoadLocation("Asia/Shanghai")
)

Functions

func DecryptB64TriDesTo

func DecryptB64TriDesTo(crypted string, des3key []byte, result interface{}) error

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func TripleDesDecrypt

func TripleDesDecrypt(crypted, des3key []byte) ([]byte, error)

3DES解密

func TripleDesEncrypt

func TripleDesEncrypt(origData, des3key []byte) ([]byte, error)

3DES加密

Types

type AccountBalanceData

type AccountBalanceData struct {
	BrokerID         string  `json:"broker_id"`                 // 综合服务主体 ID
	AcctBalance      float64 `json:"acct_balance,string"`       // 余额账户余额
	AlipayBalance    float64 `json:"alipay_balance,string"`     // 支付宝余额
	BankCardBalance  float64 `json:"bank_card_balance,string"`  // 银行卡余额
	WxpayBalance     float64 `json:"wxpay_balance,string"`      // 微信余额
	IsAlipay         bool    `json:"is_alipay"`                 // 是否开通支付宝通道
	IsBankCard       bool    `json:"is_bank_card"`              // 是否开通银行卡通道
	IsWxpay          bool    `json:"is_wxpay"`                  // 是否开通微信通道
	RebateFeeBalance float64 `json:"rebate_fee_balance,string"` // 服务费返点余额
	TotalBalance     float64 `json:"total_balance,string"`      // 总余额
}

type AliPayOrderReq

type AliPayOrderReq struct {
	OrderId   string  //订单ID
	RealName  string  //姓名
	IdCard    string  //身份证号
	CardNo    string  //银行卡号
	PhoneNo   string  //手机号
	Pay       float64 //付款金额
	PayRemark string  //备注
}

type BankCardOrderReq

type BankCardOrderReq struct {
	OrderId   string  //订单ID
	RealName  string  //姓名
	IdCard    string  //身份证号
	CardNo    string  //银行卡号
	PhoneNo   string  //手机号
	Pay       float64 //付款金额
	PayRemark string  //备注
}

type BankCardQueryData

type BankCardQueryData struct {
	BankCode  string `json:"bank_code"`
	BankName  string `json:"bank_name"`
	CardType  string `json:"card_type"`
	IsSupport bool   `json:"is_support"`
}

type BankNameAccount

type BankNameAccount struct {
	Item    string `json:"item"`
	Default bool   `json:"default"`
}

type BillDownloadData

type BillDownloadData struct {
	BillDownloadUrl string `json:"bill_download_url"` //日流水文件下载地址
}

type CallbackResponse

type CallbackResponse struct {
	Data      string `form:"data"`
	Mess      string `form:"mess"`
	Timestamp string `form:"timestamp"`
	Sign      string `form:"sign"`
	SignType  string `form:"sign_type"`
}

回调响应通用结构

type CancelOrderData

type CancelOrderData struct {
	Ok bool `json:"ok,string"` // true
}

type CommonResponse

type CommonResponse struct {
	Code      StatusCode `json:"code"`
	Message   string     `json:"message"`
	RequestId string     `json:"request_id"`
}

主动请求响应通用结构

func (*CommonResponse) GetCode

func (r *CommonResponse) GetCode() StatusCode

func (*CommonResponse) GetMessage

func (r *CommonResponse) GetMessage() string

func (*CommonResponse) GetRequestId

func (r *CommonResponse) GetRequestId() string

type DownloadOrderDayData

type DownloadOrderDayData struct {
	Url string `json:"url"`
}

type Error

type Error struct {
	Code      StatusCode
	Message   string
	RequestId string
	ApiName   string
}

func (*Error) Error

func (e *Error) Error() string

type FileInfo

type FileInfo struct {
	Name string `json:"name"`
	Url  string `json:"url"`
	Pwd  string `json:"pwd"`
}

type GoodsServicesName

type GoodsServicesName struct {
	Item    string `json:"item"`
	Default bool   `json:"default"`
}

type H5PreSignData

type H5PreSignData struct {
	Uid    string `json:"uid"`
	Token  string `json:"token"`
	Status int64  `json:"status"`
}

type H5SignData

type H5SignData struct {
	URL string `json:"url"` //h5 签约页面 url
}

type H5SignNotify

type H5SignNotify struct {
	BrokerID string `json:"broker_id"` // yiyun
	DealerID string `json:"dealer_id"` // 01720374
	IDCard   string `json:"id_card"`   // 360232199009115318
	Phone    string `json:"phone"`     //
	RealName string `json:"real_name"` // 王小明
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

type H5SignStatusData

type H5SignStatusData struct {
	SignedAt string `json:"signed_at"` // 2020-07-05 15:15:15
	Status   int64  `json:"status"`    // 1
}

type IResponse

type IResponse interface {
	GetCode() StatusCode
	GetMessage() string
	GetRequestId() string
}

type InvoiceAmountData

type InvoiceAmountData struct {
	Amount            string               `json:"amount"`
	BankNameAccount   []*BankNameAccount   `json:"bank_name_account"`
	GoodsServicesName []*GoodsServicesName `json:"goods_services_name"`
}

type InvoiceApplyData

type InvoiceApplyData struct {
	ApplicationId string `json:"application_id"`
	Count         int    `json:"count"`
}

type InvoicePDFDownloadData

type InvoicePDFDownloadData struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

type InvoiceStatData

type InvoiceStatData struct {
	BrokerId    string `json:"broker_id"`
	DealerId    string `json:"dealer_id"`
	Invoiced    string `json:"invoiced"`
	NotInvoiced string `json:"not_invoiced"`
}

type InvoiceStatusData

type InvoiceStatusData struct {
	Status             string   `json:"status"`
	Count              int      `json:"count"`
	PriceTaxAmount     string   `json:"price_tax_amount"`
	PriceAmount        string   `json:"price_amount"`
	TaxAmount          string   `json:"tax_amount"`
	InvoiceType        string   `json:"invoice_type"`
	CustomerName       string   `json:"customer_name"`
	CustomerTaxNum     string   `json:"customer_tax_num"`
	CustomerAddressTel string   `json:"customer_address_tel"`
	BankNameAccount    string   `json:"bank_name_account"`
	GoodsServiceName   string   `json:"goods_service_name"`
	Remark             string   `json:"remark"`
	PostType           string   `json:"post_type"`
	WaybillNumber      []string `json:"waybill_number"`
}

type Order

type Order struct {
	OrderId             string            `json:"order_id"`                 //  商户订单号,由商户保持唯⼀一性
	Pay                 float64           `json:"pay,string"`               //  金额
	BrokerId            string            `json:"broker_id"`                //  经纪公司
	DealerId            string            `json:"dealer_id"`                //  商户代码
	RealName            string            `json:"real_name"`                //  姓名
	CardNo              string            `json:"card_no"`                  //  卡号
	IdCard              string            `json:"id_card"`                  //  身份证号
	PhoneNo             string            `json:"phone_no"`                 //  手机号
	Status              OrderStatus       `json:"status"`                   //  订单状态码,详⻅见:附录1订单状态码
	StatusDetail        OrderStatusDetail `json:"status_detail"`            //  订单详细状态码,详⻅见:附录2订单详细状态码
	StatusMessage       string            `json:"status_message"`           //  状态码说明,详⻅见:附录1订单状态码
	StatusDetailMessage string            `json:"status_detail_message"`    //  状态详细状态码说明,详⻅见:附录2订单详细状态码
	BrokerAmount        string            `json:"broker_amount"`            //  综合服务主体打款金额
	Ref                 string            `json:"ref"`                      //  综合服务平台流水号,唯一
	BrokerBankBill      string            `json:"broker_bank_bill"`         //  综合服务平台打款交易流水号
	WithdrawPlatform    string            `json:"withdraw_platform"`        //  bankpay:银行卡 alipay:支付宝 wxpay:微信
	BrokerFee           float64           `json:"broker_fee,string"`        //  综合服务主体服务费
	BrokerRealFee       float64           `json:"broker_real_fee,string"`   //  余额账户支出服务费
	BrokerDeductFee     float64           `json:"broker_deduct_fee,string"` //  抵扣账户支出服务费
	UserFee             float64           `json:"user_fee,string"`          //  用户服务费
	BankName            string            `json:"bank_name"`                //  银行名称
	PayRemark           string            `json:"pay_remark"`               //  打款备注(选填,最⼤大20个字符,⼀一个汉字占2个字符,不不允许特殊字符:' " & | @ % * ( ) - : # ¥)
	CreatedAt           Time              `json:"created_at"`               //  订单接收时间
	FinishedTime        Time              `json:"finished_time"`            //  订单处理理时间
}

func (Order) GetOrderStatus

func (o Order) GetOrderStatus() string

func (Order) GetOrderStatusDetail

func (o Order) GetOrderStatusDetail() string

type OrderAlipayData

type OrderAlipayData struct {
	OrderID string  `json:"order_id"`   // 商户订单号,原值返回
	Ref     string  `json:"ref"`        // 综合服务平台流水号,唯一
	Pay     float64 `json:"pay,string"` // 打款金额
}

type OrderDownloadData

type OrderDownloadData struct {
	OrderDownloadUrl string `json:"order_download_url"` //订单文件下载地址
}

type OrderRealtimeData

type OrderRealtimeData struct {
	OrderID string  `json:"order_id"`   // 商户订单号,原值返回
	Ref     string  `json:"ref"`        // 综合服务平台流水号,唯一
	Pay     float64 `json:"pay,string"` // 打款金额
}

type OrderStatus

type OrderStatus int

func (OrderStatus) Message

func (s OrderStatus) Message() string

type OrderStatusDetail

type OrderStatusDetail int

func (OrderStatusDetail) Message

func (d OrderStatusDetail) Message() string

type OrderWxpayData

type OrderWxpayData struct {
	OrderID string  `json:"order_id"`   // 商户订单号,原值返回
	Ref     string  `json:"ref"`        // 综合服务平台流水号,唯一
	Pay     float64 `json:"pay,string"` // 打款金额
}

type Page

type Page struct {
	Offset int `json:"offset"` //偏移量,最小从 0 开始
	Length int `json:"length"` //每页最多返回条数,最大为 200
}

type PaymentNotify

type PaymentNotify struct {
	Data       Order  `json:"data"`
	NotifyID   string `json:"notify_id"`   // 14732279660721952
	NotifyTime string `json:"notify_time"` // 2020-05-25 11:49:34
}

type QueryBill

type QueryBill struct {
	BrokerId          string `json:"broker_id"`
	DealerId          string `json:"dealer_id"`
	OrderId           string `json:"order_id"`
	Ref               string `json:"ref"`
	BrokerProductName string `json:"broker_product_name"`
	DealerProductName string `json:"dealer_product_name"`
	BizRef            string `json:"biz_ref"`
	AcctType          string `json:"acct_type"`
	Amount            string `json:"amount"`
	Balance           string `json:"balance"`
	BusinessCategory  string `json:"business_category"`
	BusinessType      string `json:"business_type"`
	ConsumptionType   string `json:"consumption_type"`
	CreateAt          string `json:"create_at"`
	Remark            string `json:"remark"`
}

type QueryBillData

type QueryBillData struct {
	TotalNum int          `json:"total_num"`
	List     []*QueryBill `json:"list"`
}

type QueryOrder

type QueryOrder struct {
	BrokerId            string `json:"broker_id"`
	DealerId            string `json:"dealer_id"`
	OrderId             string `json:"order_id"`
	Ref                 string `json:"ref"`
	BatchId             string `json:"batch_id"`
	RealName            string `json:"real_name"`
	CardNo              string `json:"card_no"`
	BrokerAmount        string `json:"broker_amount"`
	BrokerFree          string `json:"broker_free"`
	Bill                string `json:"bill"`
	Status              string `json:"status"`
	StatusDetail        string `json:"status_detail"`
	StatusMessage       string `json:"status_message"`
	StatusDetailMessage string `json:"status_detail_message"`
	StatementId         string `json:"statement_id"`
	FeeStatmentId       string `json:"fee_statment_id"`
	BalStatmentId       string `json:"bal_statment_id"`
	Channel             string `json:"channel"`
	CreateAt            string `json:"create_at"`
	FinishedTime        string `json:"finished_time"`
}

type QueryOrderData

type QueryOrderData struct {
	TotalNum int           `json:"total_num"`
	List     []*QueryOrder `json:"list"`
}

type ReceiptFileData

type ReceiptFileData struct {
	ExpireTime string `json:"expire_time"` // 精确到秒 2020-09-05 18:36:37
	FileName   string `json:"file_name"`   // 电子回单名称 w_140_receipt_20180726.png
	URL        string `json:"url"`         // 电子回单的下载链接 https://xxxx
}

type RechargeRecordData

type RechargeRecordData struct {
	RechargeId        string `json:"recharge_id"`         // 充值记录 ID
	ActualAmount      string `json:"actual_amount"`       //单位:元,支持小数点后两位
	Amount            string `json:"amount"`              //单位:元,支持小数点后两位
	CreateAt          string `json:"create_at"`           //创建时间
	Remark            string `json:"remark"`              //备注
	RechargeChannel   string `json:"recharge_channel"`    //资金用途
	RechargeAccountNo string `json:"recharge_account_no"` //商户充值使用的付款银行账号
}

type ReqBankCardQuery

type ReqBankCardQuery struct {
	CardNo   string `json:"card_no"`
	BankName string `json:"bank_name"`
}

type ReqBillDownload

type ReqBillDownload struct {
	BillDate string `json:"bill_date"` //格式:yyyy-MM-dd
}

type ReqDownloadOrderDay

type ReqDownloadOrderDay struct {
	OrderDate string `json:"order_date"`
}

type ReqInvoiceAmount

type ReqInvoiceAmount struct {
	BrokerId string `json:"broker_id"`
	DealerId string `json:"dealer_id"`
}

type ReqInvoiceApply

type ReqInvoiceApply struct {
	InvoiceApplyId  string `json:"invoice_apply_id"`
	BrokerId        string `json:"broker_id"`
	DealerId        string `json:"dealer_id"`
	Amount          string `json:"amount"`
	InvoiceType     string `json:"invoice_type"`
	BankNameAccount string `json:"bank_name_account"`
	Remark          string `json:"remark"`
}

type ReqInvoicePDFDownload

type ReqInvoicePDFDownload struct {
	InvoiceApplyId string `json:"invoice_apply_id"`
	Application    string `json:"application"`
}

type ReqInvoiceReminderEmail

type ReqInvoiceReminderEmail struct {
	InvoiceApplyId string `json:"invoice_apply_id"`
	ApplicationId  string `json:"application_id"`
}

type ReqInvoiceStat

type ReqInvoiceStat struct {
	BrokerId string `json:"broker_id"`
	DealerId string `json:"dealer_id"`
	Year     int    `json:"year"`
}

type ReqInvoiceStatus

type ReqInvoiceStatus struct {
	InvoiceApplyId string `json:"invoice_apply_id"`
	ApplicationId  string `json:"application_id"`
}

type ReqOrderDownload

type ReqOrderDownload struct {
	OrderDate string `json:"order_date"` //格式:yyyy-MM-dd
}

type ReqQueryBill

type ReqQueryBill struct {
	BillDate string `json:"bill_date"`
	DataType string `json:"data_type"` //如果为 encryption,则对返回的 data 进行加密
	Page
}

type ReqQueryOrder

type ReqQueryOrder struct {
	OrderDate string `json:"order_date"`
	Channel   string `json:"channel"`
	DataType  string `json:"data_type"`
	Page
}

type ReqRechargeRecord

type ReqRechargeRecord struct {
	BeginAt string `json:"begin_at"` //格式:yyyy-MM-dd
	EndAt   string `json:"end_at"`   //格式:yyyy-MM-dd
}

type ReqTaxFileDownload

type ReqTaxFileDownload struct {
	DealerId  string `json:"dealer_id"`
	EntId     string `json:"ent_id"`
	YearMonth string `json:"year_month"`
}

type ReqUserCross

type ReqUserCross struct {
	DealerId string `json:"dealer_id"`
	Year     string `json:"year"`
	IdCard   string `json:"id_card"`
	EntId    string `json:"ent_id"`
}

type ReqUserWhiteCheck

type ReqUserWhiteCheck struct {
	RealName string `json:"real_name"`
	IdCard   string `json:"id_card"`
}

type ReqVerifyBankCardFourFactor

type ReqVerifyBankCardFourFactor struct {
	CardNo   string `json:"card_no"`
	IdCard   string `json:"id_card"`
	RealName string `json:"real_name"`
	Mobile   string `json:"mobile"`
}

type ReqVerifyBankCardThreeFactor

type ReqVerifyBankCardThreeFactor struct {
	CardNo   string `json:"card_no"`
	IdCard   string `json:"id_card"`
	RealName string `json:"real_name"`
}

type ReqVerifyConfirm

type ReqVerifyConfirm struct {
	CardNo   string `json:"card_no"`
	IdCard   string `json:"id_card"`
	RealName string `json:"real_name"`
	Mobile   string `json:"mobile"`
	Captcha  string `json:"captcha"`
	Ref      string `json:"ref"`
}

type ReqVerifyIdCard

type ReqVerifyIdCard struct {
	IdCard   string `json:"id_card"`
	RealName string `json:"real_name"`
}

type ReqVerifyRequest

type ReqVerifyRequest struct {
	CardNo   string `json:"card_no"`
	IdCard   string `json:"id_card"`
	RealName string `json:"real_name"`
	Mobile   string `json:"mobile"`
}

type SignReleaseData

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

type StatusCode

type StatusCode string

func (StatusCode) Message

func (s StatusCode) Message() string

type TaxFileDownloadData

type TaxFileDownloadData struct {
	FileInfo []*FileInfo `json:"file_info"`
}

type Time

type Time struct{ time.Time }

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) UnmarshalJson

func (t *Time) UnmarshalJson(data []byte) (err error)

type UserCrossData

type UserCrossData struct {
	IsCross bool `json:"is_cross"`
}

type UserWhiteCheckData

type UserWhiteCheckData struct {
	Ok string `json:"ok"`
}

type VaAccountData

type VaAccountData struct {
	AcctName       string `json:"acct_name"`        // 云账户
	AcctNo         string `json:"acct_no"`          // 2772510300399876543210
	BankName       string `json:"bank_name"`        // 中国银行
	DealerAcctName string `json:"dealer_acct_name"` // 企业测试名称
}

type VerifyBankCardThreeFactorData

type VerifyBankCardThreeFactorData struct {
}

type VerifyRequestData

type VerifyRequestData struct {
	Ref string `json:"ref"`
}

type WxPayOrderReq

type WxPayOrderReq struct {
	OrderID   string  // 商户订单号,由商户保持唯⼀一性(必填)
	RealName  string  // 姓名(必填)
	IDCard    string  // 身份证(必填)
	Openid    string  // wx2319u9jk231ad21
	PhoneNo   string  // 用户或联系⼈人⼿手机号
	Pay       float64 // 金额
	PayRemark string  // 打款备注
}

type Yunzhanghu

type Yunzhanghu struct {
	DesKey  string
	Appkey  string
	Dealer  string
	Broker  string
	ApiAddr string
	WxAppID string // 商户微信 AppID

	//白名单IP
	//120.55.214.118 、 116.62.0.220 、 118.31.31.71 、 120.55.214.49 、 49.4.23.21 、 117.78.48.61 、
	//39.98.185.242 、 39.98.236.201
	PayNotifyUrl      string
	PayNotifyCallback func(context.Context, *PaymentNotify) bool

	H5SignNotifyUrl      string
	H5SignNotifyCallback func(context.Context, *H5SignNotify) bool
	H5SignRedirectURL    string
}

func NewDefault

func NewDefault() *Yunzhanghu

func (*Yunzhanghu) BankCardQuery

func (y *Yunzhanghu) BankCardQuery(ctx context.Context, req ReqBankCardQuery) (*BankCardQueryData, error)

func (*Yunzhanghu) BillDownload

func (y *Yunzhanghu) BillDownload(ctx context.Context, date string) (*BillDownloadData, error)

func (*Yunzhanghu) CancelOrder

func (y *Yunzhanghu) CancelOrder(ctx context.Context, orderId, ref, channel string) (*CancelOrderData, error)

func (*Yunzhanghu) DownloadOrderDay

func (y *Yunzhanghu) DownloadOrderDay(ctx context.Context, date string) (*DownloadOrderDayData, error)

func (*Yunzhanghu) H5PreSign

func (y *Yunzhanghu) H5PreSign(ctx context.Context, realName, idCard string, certType int) (*H5PreSignData, error)

func (*Yunzhanghu) H5Sign

func (y *Yunzhanghu) H5Sign(ctx context.Context, token, color string) (*H5SignData, error)

func (*Yunzhanghu) H5SignCallbackHandler

func (y *Yunzhanghu) H5SignCallbackHandler(ctx *gin.Context)

func (*Yunzhanghu) H5SignRelease

func (y *Yunzhanghu) H5SignRelease(ctx context.Context, realName, idCard string, certType int) (*SignReleaseData, error)

H5 对接测试解约接口

func (*Yunzhanghu) H5SignStatus

func (y *Yunzhanghu) H5SignStatus(ctx context.Context, realName, idCard string) (*H5SignStatusData, error)

func (*Yunzhanghu) InvoiceAmount

func (y *Yunzhanghu) InvoiceAmount(ctx context.Context, req *ReqInvoiceAmount) (*InvoiceAmountData, error)

func (*Yunzhanghu) InvoiceApply

func (y *Yunzhanghu) InvoiceApply(ctx context.Context, req *ReqInvoiceApply) (*InvoiceApplyData, error)

func (*Yunzhanghu) InvoicePDFDownload

func (y *Yunzhanghu) InvoicePDFDownload(ctx context.Context, req *ReqInvoicePDFDownload) (*InvoicePDFDownloadData, error)

func (*Yunzhanghu) InvoiceReminderEmail

func (y *Yunzhanghu) InvoiceReminderEmail(ctx context.Context, req *ReqInvoiceReminderEmail) error

func (*Yunzhanghu) InvoiceStat

func (y *Yunzhanghu) InvoiceStat(ctx context.Context, req ReqInvoiceStat) (*InvoiceStatData, error)

func (*Yunzhanghu) InvoiceStatus

func (y *Yunzhanghu) InvoiceStatus(ctx context.Context, req *ReqInvoiceStatus) (*InvoiceStatusData, error)

func (*Yunzhanghu) NotifyCallbackHandler

func (y *Yunzhanghu) NotifyCallbackHandler(ctx *gin.Context)

func (*Yunzhanghu) OrderAlipay

func (y *Yunzhanghu) OrderAlipay(ctx context.Context, order AliPayOrderReq) (*OrderAlipayData, error)

func (*Yunzhanghu) OrderDownload

func (y *Yunzhanghu) OrderDownload(ctx context.Context, date string) (*OrderDownloadData, error)

func (*Yunzhanghu) OrderRealTime

func (y *Yunzhanghu) OrderRealTime(ctx context.Context, order BankCardOrderReq) (*OrderRealtimeData, error)

func (*Yunzhanghu) OrderWxpay

func (y *Yunzhanghu) OrderWxpay(ctx context.Context, order *WxPayOrderReq) (*OrderWxpayData, error)

func (*Yunzhanghu) QueryAccounts

func (y *Yunzhanghu) QueryAccounts(ctx context.Context) ([]*AccountBalanceData, error)

func (*Yunzhanghu) QueryBill

func (y *Yunzhanghu) QueryBill(ctx context.Context, req ReqQueryBill) ([]*QueryBill, error)

func (*Yunzhanghu) QueryOrder

func (y *Yunzhanghu) QueryOrder(ctx context.Context, req ReqQueryOrder) ([]*QueryOrder, error)

func (*Yunzhanghu) QueryRealtimeOrder

func (y *Yunzhanghu) QueryRealtimeOrder(ctx context.Context, orderId, channel string) (*Order, error)

func (*Yunzhanghu) QueryVaAccount

func (y *Yunzhanghu) QueryVaAccount(ctx context.Context) (*VaAccountData, error)

func (*Yunzhanghu) ReceiptFile

func (y *Yunzhanghu) ReceiptFile(ctx context.Context, orderId, ref string) (*ReceiptFileData, error)

func (*Yunzhanghu) RechargeRecord

func (y *Yunzhanghu) RechargeRecord(ctx context.Context, begin string, end string) (*RechargeRecordData, error)

func (*Yunzhanghu) TaxFileDownload

func (y *Yunzhanghu) TaxFileDownload(ctx context.Context, req *ReqTaxFileDownload) ([]*FileInfo, error)

func (*Yunzhanghu) UserCross

func (y *Yunzhanghu) UserCross(ctx context.Context, req *ReqUserCross) (*UserCrossData, error)

func (*Yunzhanghu) UserWhiteCheck

func (y *Yunzhanghu) UserWhiteCheck(ctx context.Context, req *ReqUserWhiteCheck) (*UserWhiteCheckData, error)

func (*Yunzhanghu) VerifyBankCardFourFactor

func (y *Yunzhanghu) VerifyBankCardFourFactor(ctx context.Context, req *ReqVerifyBankCardFourFactor) error

func (*Yunzhanghu) VerifyBankCardThreeFactor

func (y *Yunzhanghu) VerifyBankCardThreeFactor(ctx context.Context, req *ReqVerifyBankCardThreeFactor) error

func (*Yunzhanghu) VerifyConfirm

func (y *Yunzhanghu) VerifyConfirm(ctx context.Context, req *ReqVerifyConfirm) error

func (*Yunzhanghu) VerifyIdCard

func (y *Yunzhanghu) VerifyIdCard(ctx context.Context, req *ReqVerifyIdCard) error

func (*Yunzhanghu) VerifyRequest

func (y *Yunzhanghu) VerifyRequest(ctx context.Context, req *ReqVerifyRequest) (*VerifyRequestData, error)

Jump to

Keyboard shortcuts

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