Documentation ¶
Index ¶
- type Client
- func (comp *Client) Info(ctx context.Context, mchBillNO string) (*response.ResponseSendNormal, error)
- func (comp *Client) SendGroup(ctx context.Context, data *request.RequestSendGroupRedPack) (*response.ResponseSendGroupRedPack, error)
- func (comp *Client) SendMiniProgramNormal(ctx context.Context, data *request.RequestSendMiniProgramNormal) (*response.ResponseSendMiniProgramNormal, error)
- func (comp *Client) SendNormal(ctx context.Context, data *request.RequestSendRedPack) (*response.ResponseSendNormal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*payment.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationPaymentInterface) (*Client, error)
func (*Client) Info ¶
func (comp *Client) Info(ctx context.Context, mchBillNO string) (*response.ResponseSendNormal, error)
Query Red Pack. https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_6&index=5
func (*Client) SendGroup ¶
func (comp *Client) SendGroup(ctx context.Context, data *request.RequestSendGroupRedPack) (*response.ResponseSendGroupRedPack, error)
Send Group redpack. https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_5&index=4
func (*Client) SendMiniProgramNormal ¶
func (comp *Client) SendMiniProgramNormal(ctx context.Context, data *request.RequestSendMiniProgramNormal) (*response.ResponseSendMiniProgramNormal, error)
Send Miniprogram Normal redpack. https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=18_2&index=2
func (*Client) SendNormal ¶
func (comp *Client) SendNormal(ctx context.Context, data *request.RequestSendRedPack) (*response.ResponseSendNormal, error)
Send Normal redpack. https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3
Click to show internal directories.
Click to hide internal directories.