From 1d68fb5bdfd3c172b310cc4d596890ab9a55e3be Mon Sep 17 00:00:00 2001 From: huangqz Date: Thu, 2 Jul 2026 14:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85pay=E9=A1=B9=E7=9B=AE=20finan?= =?UTF-8?q?ce=5Fpass=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pay/client.go | 7 +++++++ services/pay/invoice.go | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/services/pay/client.go b/services/pay/client.go index 94fb309..39dcd76 100644 --- a/services/pay/client.go +++ b/services/pay/client.go @@ -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() diff --git a/services/pay/invoice.go b/services/pay/invoice.go index c5c35f6..db4d8e7 100644 --- a/services/pay/invoice.go +++ b/services/pay/invoice.go @@ -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"`