invoice

package
v0.0.0-...-4a54426 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchGetInvoiceInfo

func BatchGetInvoiceInfo(invoices []*ParamsInvoice, result *ResultInvoiceBatchInfo) wx.Action

BatchGetInvoiceInfo 批量查询电子发票

func BatchUpdateInvoiceStatus

func BatchUpdateInvoiceStatus(openID string, status ReimburseStatus, invoices ...*ParamsInvoice) wx.Action

BatchUpdateInvoiceStatus 批量更新发票状态

func GetInvoiceInfo

func GetInvoiceInfo(cardID, encryptCode string, result *ResultInvoiceInfo) wx.Action

GetInvoiceInfo 查询电子发票

func UpdateInvoiceStatus

func UpdateInvoiceStatus(cardID, encryptCode string, status ReimburseStatus) wx.Action

UpdateInvoiceStatus 更新发票状态

Types

type InvoiceProductInfo

type InvoiceProductInfo struct {
	Name  string `json:"name"`
	Num   int    `json:"num"`
	Unit  string `json:"unit"`
	Fee   int    `json:"fee"`
	Price int    `json:"price"`
}

type InvoiceUserInfo

type InvoiceUserInfo struct {
	Fee                   int                   `json:"fee"`
	Title                 string                `json:"title"`
	BillingTime           int64                 `json:"billing_time"`
	BillingNO             string                `json:"billing_no"`
	BillingCode           string                `json:"billing_code"`
	Tax                   int                   `json:"tax"`
	FeeWithoutTax         int                   `json:"fee_without_tax"`
	Detail                string                `json:"detail"`
	PdfURL                string                `json:"pdf_url"`
	TriPdfUrl             string                `json:"tri_pdf_url"`
	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"`
	ReimburseStatus       ReimburseStatus       `json:"reimburse_status"`
	OrderID               string                `json:"order_id"`
	Info                  []*InvoiceProductInfo `json:"info"`
}

type ParamsInvoice

type ParamsInvoice struct {
	CardID      string `json:"card_id"`
	EncryptCode string `json:"encrypt_code"`
}

type ParamsInvoiceBatchInfo

type ParamsInvoiceBatchInfo struct {
	ItemList []*ParamsInvoice `json:"item_list"`
}

type ParamsInvoiceStatusBatchUpdate

type ParamsInvoiceStatusBatchUpdate struct {
	OpenID          string           `json:"openid"`
	ReimburseStatus ReimburseStatus  `json:"reimburse_status"`
	InvoiceList     []*ParamsInvoice `json:"invoice_list"`
}

type ParamsInvoiceStatusUpdate

type ParamsInvoiceStatusUpdate struct {
	CardID          string          `json:"card_id"`
	EncryptCode     string          `json:"encrypt_code"`
	ReimburseStatus ReimburseStatus `json:"reimburse_status"`
}

type ReimburseStatus

type ReimburseStatus string

ReimburseStatus 发票报销状态

const (
	InvioceReimburseInit    ReimburseStatus = "INVOICE_REIMBURSE_INIT"    // 发票初始状态,未锁定
	InvioceReimburseLock    ReimburseStatus = "INVOICE_REIMBURSE_LOCK"    // 发票已锁定,无法重复提交报销
	InvioceReimburseClosure ReimburseStatus = "INVOICE_REIMBURSE_CLOSURE" // 发票已核销,从用户卡包中移除
)

type ResultInvoiceBatchInfo

type ResultInvoiceBatchInfo struct {
	ItemList []*ResultInvoiceInfo `json:"item_list"`
}

type ResultInvoiceInfo

type ResultInvoiceInfo 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  *InvoiceUserInfo `json:"user_info"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL