Documentation ¶
Index ¶
- type Client
- func (r *Client) GetInvoiceInfo(req *GetInvoiceInfoRequest) (*GetInvoiceInfoResponse, error)
- func (r *Client) GetInvoiceInfoBatch(req *GetInvoiceInfoBatchRequest) (*GetInvoiceInfoBatchResponse, error)
- func (r *Client) UpdateInvoiceStatus(req *UpdateInvoiceStatusRequest) error
- func (r *Client) UpdateStatusBatch(req *UpdateStatusBatchRequest) error
- type GetInvoiceInfoBatchRequest
- type GetInvoiceInfoBatchResponse
- type GetInvoiceInfoRequest
- type GetInvoiceInfoResponse
- type Info
- type Invoice
- type Item
- type UpdateInvoiceStatusRequest
- type UpdateStatusBatchRequest
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client 电子发票接口实例
func (*Client) GetInvoiceInfo ¶
func (r *Client) GetInvoiceInfo(req *GetInvoiceInfoRequest) (*GetInvoiceInfoResponse, error)
GetInvoiceInfo 查询电子发票 see https://developer.work.weixin.qq.com/document/path/90284
func (*Client) GetInvoiceInfoBatch ¶
func (r *Client) GetInvoiceInfoBatch(req *GetInvoiceInfoBatchRequest) (*GetInvoiceInfoBatchResponse, error)
GetInvoiceInfoBatch 批量查询电子发票 see https://developer.work.weixin.qq.com/document/path/90287
func (*Client) UpdateInvoiceStatus ¶
func (r *Client) UpdateInvoiceStatus(req *UpdateInvoiceStatusRequest) error
UpdateInvoiceStatus 更新发票状态 see https://developer.work.weixin.qq.com/document/path/90285
func (*Client) UpdateStatusBatch ¶
func (r *Client) UpdateStatusBatch(req *UpdateStatusBatchRequest) error
UpdateStatusBatch 批量更新发票状态 see https://developer.work.weixin.qq.com/document/path/90286
type GetInvoiceInfoBatchRequest ¶
type GetInvoiceInfoBatchRequest struct {
ItemList []Invoice `json:"item_list"`
}
GetInvoiceInfoBatchRequest 批量查询电子发票请求
type GetInvoiceInfoBatchResponse ¶
type GetInvoiceInfoBatchResponse struct { util.CommonError ItemList []Item `json:"item_list"` }
GetInvoiceInfoBatchResponse 批量查询电子发票响应
type GetInvoiceInfoRequest ¶
type GetInvoiceInfoRequest struct { CardID string `json:"card_id"` EncryptCode string `json:"encrypt_code"` }
GetInvoiceInfoRequest 查询电子发票请求
type GetInvoiceInfoResponse ¶
type GetInvoiceInfoResponse struct { util.CommonError CardID string `json:"card_id"` BeginTime int64 `json:"begin_time"` EndTime int64 `json:"end_time"` OpenID string `json:"openid"` Type string `json:"type"` Payee string `json:"payee"` Detail string `json:"detail"` UserInfo UserInfo `json:"user_info"` }
GetInvoiceInfoResponse 查询电子发票响应
type Info ¶
type Info struct { Name string `json:"name"` Num int64 `json:"num"` Unit string `json:"unit"` Fee int64 `json:"fee"` Price int64 `json:"price"` }
Info 商品信息结构
type Item ¶
type Item struct { CardID string `json:"card_id"` BeginTime int64 `json:"begin_time"` EndTime int64 `json:"end_time"` OpenID string `json:"openid"` Type string `json:"type"` Payee string `json:"payee"` Detail string `json:"detail"` UserInfo UserInfo `json:"user_info"` }
Item 电子发票的结构化信息
type UpdateInvoiceStatusRequest ¶
type UpdateInvoiceStatusRequest struct { CardID string `json:"card_id"` EncryptCode string `json:"encrypt_code"` ReimburseStatus string `json:"reimburse_status"` }
UpdateInvoiceStatusRequest 更新发票状态请求
type UpdateStatusBatchRequest ¶
type UpdateStatusBatchRequest struct { OpenID string `json:"openid"` ReimburseStatus string `json:"reimburse_status"` InvoiceList []Invoice `json:"invoice_list"` }
UpdateStatusBatchRequest 批量更新发票状态
type UserInfo ¶
type UserInfo struct { Fee int64 `json:"fee"` Title string `json:"title"` BillingTime int64 `json:"billing_time"` BillingNo string `json:"billing_no"` BillingCode string `json:"billing_code"` Info []Info `json:"info"` FeeWithoutTax int64 `json:"fee_without_tax"` Tax int64 `json:"tax"` Detail string `json:"detail"` PdfURL string `json:"pdf_url"` TripPdfURL string `json:"trip_pdf_url"` ReimburseStatus string `json:"reimburse_status"` CheckCode string `json:"check_code"` BuyerNumber string `json:"buyer_number"` BuyerAddressAndPhone string `json:"buyer_address_and_phone"` BuyerBankAccount string `json:"buyer_bank_account"` SellerNumber string `json:"seller_number"` SellerAddressAndPhone string `json:"seller_address_and_phone"` SellerBankAccount string `json:"seller_bank_account"` Remarks string `json:"remarks"` Cashier string `json:"cashier"` Maker string `json:"maker"` }
UserInfo 发票的用户信息
Click to show internal directories.
Click to hide internal directories.