Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadQPayHb ¶ added in v1.2.0
DownloadQPayHb notify
func (*DownloadQPayHb) GetDownloadURL ¶ added in v1.2.0
func (d *DownloadQPayHb) GetDownloadURL(date int) string
GetDownloadURL get download's url
type NotifyQPayHb ¶
type NotifyQPayHb struct {
AppSecret string
}
NotifyQPayHb notify
func (*NotifyQPayHb) CheckSign ¶ added in v1.2.0
func (n *NotifyQPayHb) CheckSign(params *ParseNotify) bool
CheckSign check sign
func (*NotifyQPayHb) Parse ¶
func (n *NotifyQPayHb) Parse(b []byte) (*ParseNotify, error)
Parse parse notify params
func (*NotifyQPayHb) Response ¶
func (n *NotifyQPayHb) Response(code, msg string) string
Response response
type ParamsQPayHbDetail ¶ added in v1.2.0
type ParamsQPayHbDetail struct {
ListID string
SendType int // default 0
SubMchID string // default empty
MchBillNo string // default empty
}
ParamsQPayHbDetail params of envelop
type ParamsSendQPayHb ¶
type ParamsSendQPayHb struct {
TotalAmount int
Wishing string
ActName string
IconID int
TotalNum int // default 1
BannerID int // default empty
NotSendMsg int // default 0
MinValue int // default TotalAmount
MaxValue int // default TotalAmount
}
ParamsSendQPayHb params of envelop
type ParseNotify ¶
type ParseNotify struct {
AppID string `xml:"appid"`
MchID string `xml:"mch_id"`
OutTradeNo string `xml:"out_trade_no"`
TransactionID string `xml:"transaction_id"`
OpenID string `xml:"openid"`
TotalFee int `xml:"total_fee"`
ListID string `xml:"listid"`
RecvUin string `xml:"recv_uin"`
TimeEnd string `xml:"time_end"`
State int `xml:"state"`
Sign string `xml:"sign"`
SignType string `xml:"sign_type"`
Attach string `xml:"attach"`
}
ParseNotify parse
type QPayHbDetail ¶ added in v1.2.0
type QPayHbDetail struct {
MchID string
AppSecret string
HTTPRequest *utils.HTTPClient
}
QPayHbDetail detail
func (*QPayHbDetail) GetDetail ¶ added in v1.2.0
func (q *QPayHbDetail) GetDetail(attributes ParamsQPayHbDetail) (*RespQPayHbDetail, error)
GetDetail get red envelop detail Doc: https://mp.qpay.tenpay.com/buss/wiki/221/2174
type RespQPayHbDetail ¶ added in v1.2.0
type RespQPayHbDetail struct {
RetCode string `json:"retcode"`
RetMsg string `json:"retmsg"`
ListID string `json:"listid"`
State string `json:"state"`
TotalNum string `json:"total_num"`
RecvNum string `json:"recv_num"`
TotalAmount string `json:"total_amount"`
RecvAmount string `json:"recv_amount"`
RecvDetails []RespQPayHbRecvDetail `json:"recv_details"`
}
RespQPayHbDetail response
type RespQPayHbRecvDetail ¶ added in v1.2.0
RespQPayHbRecvDetail detail
type RespSendQPayHb ¶
type RespSendQPayHb struct {
RetCode string `json:"retcode"`
RetMsg string `json:"retmsg"`
ReturnCode string `json:"return_code"`
ReturnMsg string `json:"return_msg"`
ListID string `json:"listid"`
}
RespSendQPayHb response
type SendQPayHb ¶
type SendQPayHb struct {
MchID string
MchName string
AppSecret string
HTTPRequest *utils.HTTPClient
QqAppID string // default empty
NotifyURL string // default empty
Charset int // default utf8
}
SendQPayHb model
func (*SendQPayHb) SendQPayHb ¶
func (s *SendQPayHb) SendQPayHb(OpenID string, attributes ParamsSendQPayHb) (*RespSendQPayHb, error)
SendQPayHb send red envelop Doc: https://mp.qpay.tenpay.com/buss/wiki/221/1220
Click to show internal directories.
Click to hide internal directories.