封装pay项目 finance_pass接口
This commit is contained in:
parent
34f70342f4
commit
1d68fb5bdf
@ -124,6 +124,13 @@ func (c *Client) InvoicePass(req *InvoicePassRequest) (response *InvoicePassResp
|
||||
return
|
||||
}
|
||||
|
||||
// InvoiceFinancePass 财务复审通过(客服初审 pass 后进入待财务复审,财务通过才真正入队开票)
|
||||
func (c *Client) InvoiceFinancePass(req *InvoiceFinancePassRequest) (response *InvoiceFinancePassResponse, err error) {
|
||||
response = CreateInvoiceFinancePassResponse()
|
||||
err = c.DoAction(req, response)
|
||||
return
|
||||
}
|
||||
|
||||
// InvoiceRefus 拒绝开发票
|
||||
func (c *Client) InvoiceRefus(req *InvoiceRefusRequest) (response *InvoiceRefusResponse, err error) {
|
||||
response = CreateInvoiceRefusResponse()
|
||||
|
||||
@ -115,6 +115,48 @@ func CreateInvoicePassResponse() *InvoicePassResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// InvoiceFinancePassParam 财务复审通过参数(两级审核:客服初审 pass 后进入待财务复审,财务通过才真正入队开票)
|
||||
type InvoiceFinancePassParam struct {
|
||||
InvoiceRequestId int64 `json:"invoice_request_id"`
|
||||
ReviewUserName string `json:"review_user_name"`
|
||||
ReviewRemark string `json:"review_remark"`
|
||||
}
|
||||
|
||||
// InvoiceFinancePassRequest 财务复审通过请求
|
||||
type InvoiceFinancePassRequest struct {
|
||||
*requests.JsonRequest
|
||||
InvoiceRequestId int64 `position:"Json" field:"invoice_request_id"`
|
||||
ReviewUserName string `position:"Json" field:"review_user_name"`
|
||||
ReviewRemark string `position:"Json" field:"review_remark"`
|
||||
}
|
||||
|
||||
// InvoiceFinancePassResponse 财务复审通过响应
|
||||
type InvoiceFinancePassResponse struct {
|
||||
*responses.BaseResponse
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
|
||||
// CreateInvoiceFinancePassRequest 创建财务复审通过请求
|
||||
func CreateInvoiceFinancePassRequest(param InvoiceFinancePassParam) *InvoiceFinancePassRequest {
|
||||
req := &InvoiceFinancePassRequest{
|
||||
JsonRequest: &requests.JsonRequest{},
|
||||
InvoiceRequestId: param.InvoiceRequestId,
|
||||
ReviewUserName: param.ReviewUserName,
|
||||
ReviewRemark: param.ReviewRemark,
|
||||
}
|
||||
req.InitWithApiInfo(HOST, VERSION, "/api/invoice/finance_pass")
|
||||
req.Method = requests.POST
|
||||
return req
|
||||
}
|
||||
|
||||
// CreateInvoiceFinancePassResponse 创建财务复审通过响应
|
||||
func CreateInvoiceFinancePassResponse() *InvoiceFinancePassResponse {
|
||||
return &InvoiceFinancePassResponse{
|
||||
BaseResponse: &responses.BaseResponse{},
|
||||
}
|
||||
}
|
||||
|
||||
// InvoiceRefusParam 拒绝开发票参数
|
||||
type InvoiceRefusParam struct {
|
||||
InvoiceRequestId int64 `json:"invoice_request_id"`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user