Documentation ¶
Index ¶
- type Client
- func (comp *Client) AddReceiver(ctx context.Context, receiverType string, account string, name string, ...) (*response.ResponseProfitSharingAddReceiver, error)
- func (comp *Client) DeleteReceiver(ctx context.Context, receiverType string, account string) (*response.ResponseProfitSharingDeleteReceiver, error)
- func (comp *Client) GetBills(ctx context.Context, subMchID string, billDate string, tarType string) (*response.ResponseProfitSharingGetBills, error)
- func (comp *Client) Query(ctx context.Context, transactionID string, outOrderNO string) (*response.ResponseProfitSharingOrder, error)
- func (comp *Client) QueryReturn(ctx context.Context, outOrderNO string, outReturnNO string) (*response.ResponseProfitSharingReturnOrder, error)
- func (comp *Client) QueryTransactions(ctx context.Context, transactionID string) (*response.ResponseProfitSharingTransaction, error)
- func (comp *Client) Return(ctx context.Context, data *request.RequestShareReturn) (*response.ResponseProfitSharingReturn, error)
- func (comp *Client) Share(ctx context.Context, param *request.RequestShare) (*response.ResponseProfitSharingOrder, error)
- func (comp *Client) UnfreezeOrders(ctx context.Context, transactionID string, outOrderNO string, ...) (*response.ResponseProfitSharingOrder, 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) AddReceiver ¶
func (*Client) DeleteReceiver ¶
func (*Client) Query ¶
func (comp *Client) Query(ctx context.Context, transactionID string, outOrderNO string) (*response.ResponseProfitSharingOrder, error)
Query Profit Sharing Result. https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_2.shtml
func (*Client) QueryReturn ¶
func (*Client) QueryTransactions ¶
func (*Client) Return ¶
func (comp *Client) Return(ctx context.Context, data *request.RequestShareReturn) (*response.ResponseProfitSharingReturn, error)
Share Return. https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_7&index=8
func (*Client) Share ¶
func (comp *Client) Share(ctx context.Context, param *request.RequestShare) (*response.ResponseProfitSharingOrder, error)
Share Orders. https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_1.shtml
Click to show internal directories.
Click to hide internal directories.