Versions in this module Expand all Collapse all v0 v0.2.0 Feb 12, 2022 Changes in this version + const AliOrderURL + const BankCardInfoURL + const BankOrderURL + const BaseURL + const BrokerID + const CancelOrderURL + const CheckExistUserURL + const DealerID + const DownloadBillURL + const DownloadOrderURL + const Element3URL + const Element4ConfirmURL + const Element4RequestURL + const Element4URL + const IDCheckURL + const OrderAccept + const OrderCancel + const OrderDelete + const OrderFailed + const OrderPending + const OrderReadySend + const OrderReturned + const OrderSending + const OrderSuccess + const QueryAccountURL + const QueryInvoiceURL + const QueryOrderURL + const QueryReceiptFileURL + const QueryRechargeURL + const SuccessCode + const UploadUserURL + const WxOrderURL + func BuildHeader(dealerID string) map[string]string + func BuildParams(v interface{}, appKey, des3key, privateKey string) (map[string]string, error) + func Decrypt(data string, des3key string) ([]byte, error) + func Encrypt(originData []byte, des3key string) (string, error) + func Get(uri string, params, header map[string]string) ([]byte, error) + func LoadPrivateKey(data []byte) (priv *rsa.PrivateKey, err error) + func LoadPublicKey(data []byte) (pub *rsa.PublicKey, err error) + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func Post(uri string, params, header map[string]string) ([]byte, error) + func Sign(plaintext, privateKey string) (ciphertext string, err error) + func TripleDesDecrypt(crypt, des3key []byte) ([]byte, error) + func TripleDesEncrypt(originData, des3key []byte) ([]byte, error) + func VerifySign(plaintext, sign, publicKey string) (ok bool, err error) + type AccountBalance struct + AcctBalance string + AlipayBalance string + BankCardBalance string + BrokerID string + IsAlipay bool + IsBankCard bool + IsWxpay bool + RebateFeeBalance string + TotalBalance string + WxpayBalance string + type AliOrderParam struct + CardNo string + CheckName string + type BankCardInfo struct + BankCode string + BankName string + CardType string + IsSupport bool + type BankOrderParam struct + CardNo string + PhoneNo string + type BaseCheckResponse struct + Data struct{ ... } + type BaseResponse struct + Code string + Message string + RequestID string + type Client struct + Appkey string + BrokerID string + DealerID string + Des3Key string + Gateway string + PrivateKey string + YunPublicKey string + func New(brokerID, dealerID, gateway, appkey, des3key, privateKey, publicKey string) *Client + func (c *Client) CancelOrder(orderID, ref, channel string) (ok bool, err error) + func (c *Client) CereateWxOrder(param *WxOrderParam) (ref string, err error) + func (c *Client) CheckUserExist(idCard, realName string) (ok bool, err error) + func (c *Client) CreateAliOrder(param *AliOrderParam) (res CreateOrderResponse, err error) + func (c *Client) CreateBankOrder(param *BankOrderParam) (ref string, err error) + func (c *Client) DownloadBillFile(billDate string) (url string, err error) + func (c *Client) DownloadOrderFile(orderDate string) (url string, err error) + func (c *Client) Element3Check(idCard, realName, cardNo string) (ok bool, err error) + func (c *Client) Element4Check(idCard, realName, cardNo, mobile string) (ok bool, err error) + func (c *Client) ElementVerifyConfirm(idCard, realName, cardNo, mobile, ref, captcha string) (ok bool, err error) + func (c *Client) ElementVerifyRequest(idCard, realName, cardNo, mobile string) (ref string, err error) + func (c *Client) IDCheck(idCard, realName string) (ok bool, err error) + func (c *Client) OrderCallBack(data, mess, timestamp, sign string) (order OrderDetailInfo, err error) + func (c *Client) QueryAccountBalance() (accounts []AccountBalance, err error) + func (c *Client) QueryBankCardInfo(cardNo, bankName string) (cardInfo BankCardInfo, err error) + func (c *Client) QueryInvoice(year int) (invoice InvoiceInfo, err error) + func (c *Client) QueryOrder(orderID, channel, dataType string) (dest OrderInfo, err error) + func (c *Client) QueryReceiptFile(orderID, ref string) (file OrderReceiptFile, err error) + func (c *Client) QueryRechargeRecord(beginAt, endAt string) (records []RechargeRecord, err error) + func (c *Client) UploadUserInfo(param *UserInfoParam) (ok bool, err error) + func (c *Client) UserInfoCallback(data, mess, timestamp, sign string) (user UserCallBackInfo, err error) + type CreateOrderResponse struct + Data struct{ ... } + type DownloadBillFileResponse struct + Data struct{ ... } + type DownloadOrderFileResponse struct + Data struct{ ... } + type ElementVerifyResponse struct + Data struct{ ... } + type InvoiceInfo struct + BrokerID string + DealerID string + Invoiced string + NotInvoiced string + type OrderBaseInfo struct + IDCard string + NotifyURL string + OrderID string + Pay string + PayRemark string + RealName string + type OrderCallBackResponse struct + Data OrderDetailInfo + NotifyID string + NotifyTime string + type OrderDetailInfo struct + AnchorID string + BrokerAmount string + BrokerBankBill string + BrokerFee string + BrokerID string + BrokerWalletRef string + CardNo string + CreatedAt string + DealerID string + FinishedTime string + IDCard string + Notes string + OrderID string + Pay string + PayRemark string + PhoneNo string + RealName string + Ref string + Status string + StatusDetail string + StatusDetailMessage string + StatusMessage string + SysAmount string + SysBankBill string + SysFee string + SysWalletRef string + Tax string + UserFee string + WithdrawPlatform string + type OrderInfo struct + AnchorID string + BrokerAmount string + BrokerBankBill string + BrokerFee string + BrokerID string + CardNo string + CreatedAt string + DealerID string + EncryData string + FeeAmount string + FinishedTime string + IDCard string + Notes string + OrderID string + Pay string + PayRemark string + PhoneNo string + RealName string + Ref string + Status string + StatusDetail string + StatusDetailMessage string + StatusMessage string + SysAmount string + type OrderReceiptFile struct + ExpireTime string + FileName string + URL string + type QueryAccountBalanceResponse struct + Data struct{ ... } + type QueryBankCardResponse struct + Data BankCardInfo + type QueryInvoiceResponse struct + Data InvoiceInfo + type QueryOrderResponse struct + Data OrderInfo + type QueryReceiptFileResponse struct + Data OrderReceiptFile + type QueryRechargeRecordResponse struct + Data []RechargeRecord + type RechargeRecord struct + ActualAmount int + Amount int + BrokerID string + CreatedAt string + DealerID string + RechargeChannel string + RechargeID string + type UserCallBackInfo struct + BrokerID string + Comment string + DealerID string + IDCard string + RealName string + Ref string + Status string + type UserInfoParam struct + Birthday string + CardType string + CommentApply string + Country string + Gender string + IDCard string + NotifyURL string + RealName string + Ref string + UserImages []string + type WxOrderParam struct + Notes string + OpenID string + WxAppID string + WxPayMode string