8
0

封装pay项目 finance_pass接口

This commit is contained in:
huangqz 2026-07-02 14:28:31 +08:00
parent 34f70342f4
commit 1d68fb5bdf
2 changed files with 49 additions and 0 deletions

View File

@ -124,6 +124,13 @@ func (c *Client) InvoicePass(req *InvoicePassRequest) (response *InvoicePassResp
return return
} }
// InvoiceFinancePass 财务复审通过(客服初审 pass 后进入待财务复审,财务通过才真正入队开票)
func (c *Client) InvoiceFinancePass(req *InvoiceFinancePassRequest) (response *InvoiceFinancePassResponse, err error) {
response = CreateInvoiceFinancePassResponse()
err = c.DoAction(req, response)
return
}
// InvoiceRefus 拒绝开发票 // InvoiceRefus 拒绝开发票
func (c *Client) InvoiceRefus(req *InvoiceRefusRequest) (response *InvoiceRefusResponse, err error) { func (c *Client) InvoiceRefus(req *InvoiceRefusRequest) (response *InvoiceRefusResponse, err error) {
response = CreateInvoiceRefusResponse() response = CreateInvoiceRefusResponse()

View File

@ -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 拒绝开发票参数 // InvoiceRefusParam 拒绝开发票参数
type InvoiceRefusParam struct { type InvoiceRefusParam struct {
InvoiceRequestId int64 `json:"invoice_request_id"` InvoiceRequestId int64 `json:"invoice_request_id"`