Documentation ¶
Index ¶
- func RegisterProvider(app kernel.ApplicationPaymentInterface) (*Client, *BatchClient, error)
- type BatchClient
- func (comp *BatchClient) Batch(param *request.RequestTransferBatch) (*response.ResponseTrasferBatch, error)
- func (comp *BatchClient) BillReceipt(outBatchNO string) (*response.ResponseTrasferBillReceipt, error)
- func (comp *BatchClient) ElectronicReceipts(acceptType string, outBatchNO string, outDetailNO string) (*response.ResponseTrasferElectronicReceipts, error)
- func (comp *BatchClient) QueryBatch(batchID string, needQueryDetail bool, offset int, limit int, ...) (*response.ResponseTrasferQueryBatch, error)
- func (comp *BatchClient) QueryBatchDetail(batchID string, detailID string) (*response.TransferBatch, error)
- func (comp *BatchClient) QueryBillReceipt(outBatchNO string) (*response.ResponseTrasferBillReceipt, error)
- func (comp *BatchClient) QueryElectronicReceipts(acceptType string, outBatchNO string, outDetailNO string) (*response.ResponseTrasferElectronicReceipts, error)
- func (comp *BatchClient) QueryOutBatchNO(outBatchNO string, needQueryDetail bool, offset int, limit int, ...) (*response.ResponseTrasferQueryOutBatchNO, error)
- func (comp *BatchClient) QueryOutBatchNoDetail(outBatchNO string, outDetailNO string) (*response.ResponseOutBatchNODetail, error)
- type Client
- func (comp *Client) DownloadSignFile(requestDownload *power.RequestDownload, filePath string) (int64, error)
- func (comp *Client) QueryBalanceOrder(partnerTradeNo string) (*response.ResponseGetTransferInfo, error)
- func (comp *Client) QueryBankCardOrder(partnerTradeNo string) (*response.ResponseGetTransferInfo, error)
- func (comp *Client) ToBalance(data *request.RequestTransferToBalance) (*response.ResponseTransferToBalance, error)
- func (comp *Client) ToBankCard(data *request.RequestToBankCard) (*response2.ResponsePayment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationPaymentInterface) (*Client, *BatchClient, error)
Types ¶
type BatchClient ¶
type BatchClient struct { *payment.BaseClient Version string }
func NewBatchClient ¶
func NewBatchClient(app *payment.ApplicationPaymentInterface) (*BatchClient, error)
func (*BatchClient) Batch ¶
func (comp *BatchClient) Batch(param *request.RequestTransferBatch) (*response.ResponseTrasferBatch, error)
发起商家转账API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_1.shtml
func (*BatchClient) BillReceipt ¶
func (comp *BatchClient) BillReceipt(outBatchNO string) (*response.ResponseTrasferBillReceipt, error)
转账电子回单申请受理API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_7.shtml
func (*BatchClient) ElectronicReceipts ¶
func (comp *BatchClient) ElectronicReceipts(acceptType string, outBatchNO string, outDetailNO string) (*response.ResponseTrasferElectronicReceipts, error)
转账明细电子回单受理API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_9.shtml
func (*BatchClient) QueryBatch ¶
func (comp *BatchClient) QueryBatch(batchID string, needQueryDetail bool, offset int, limit int, detailStatus string) (*response.ResponseTrasferQueryBatch, error)
微信批次单号查询批次单AP https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_2.shtml
func (*BatchClient) QueryBatchDetail ¶
func (comp *BatchClient) QueryBatchDetail(batchID string, detailID string) (*response.TransferBatch, error)
微信明细单号查询明细单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_3.shtml
func (*BatchClient) QueryBillReceipt ¶
func (comp *BatchClient) QueryBillReceipt(outBatchNO string) (*response.ResponseTrasferBillReceipt, error)
查询转账电子回单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_8.shtml
func (*BatchClient) QueryElectronicReceipts ¶
func (comp *BatchClient) QueryElectronicReceipts(acceptType string, outBatchNO string, outDetailNO string) (*response.ResponseTrasferElectronicReceipts, error)
查询转账明细电子回单受理结果API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_10.shtml
func (*BatchClient) QueryOutBatchNO ¶
func (comp *BatchClient) QueryOutBatchNO(outBatchNO string, needQueryDetail bool, offset int, limit int, detailStatus string) (*response.ResponseTrasferQueryOutBatchNO, error)
商家批次单号查询批次单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_5.shtml
func (*BatchClient) QueryOutBatchNoDetail ¶
func (comp *BatchClient) QueryOutBatchNoDetail(outBatchNO string, outDetailNO string) (*response.ResponseOutBatchNODetail, error)
商家明细单号查询明细单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_6.shtml
type Client ¶
type Client struct {
*payment.BaseClient
}
func (*Client) DownloadSignFile ¶
func (comp *Client) DownloadSignFile(requestDownload *power.RequestDownload, filePath string) (int64, error)
下载电子回单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_11.shtml
func (*Client) QueryBalanceOrder ¶
func (comp *Client) QueryBalanceOrder(partnerTradeNo string) (*response.ResponseGetTransferInfo, error)
Query MerchantPay to balance. https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_3
func (*Client) QueryBankCardOrder ¶
func (comp *Client) QueryBankCardOrder(partnerTradeNo string) (*response.ResponseGetTransferInfo, error)
Query MerchantPay order to BankCard. https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_3
func (*Client) ToBalance ¶
func (comp *Client) ToBalance(data *request.RequestTransferToBalance) (*response.ResponseTransferToBalance, error)
Send MerchantPay to balance. https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2
func (*Client) ToBankCard ¶
func (comp *Client) ToBankCard(data *request.RequestToBankCard) (*response2.ResponsePayment, error)
Send MerchantPay to BankCard. https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=24_2