Documentation ¶
Index ¶
- type BlueCreateItemParam
- type BlueCreateRequest
- type BlueCreateResponse
- type InvoiceApiService
- func (p *InvoiceApiService) BlueCreate(ctx context.Context, req BlueCreateRequest) (resp *BlueCreateResponse, result *core.APIResult, err error)
- func (p *InvoiceApiService) Query(ctx context.Context, req QueryRequest) (resp *QueryResponse, result *core.APIResult, err error)
- func (p *InvoiceApiService) ReadCreate(ctx context.Context, req RedCreateRequest) (resp *RedCreateResponse, result *core.APIResult, err error)
- type QueryRequest
- type QueryResponse
- type RedCreateRequest
- type RedCreateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueCreateItemParam ¶
type BlueCreateItemParam struct { ItemName string `json:"itemName"` // 开票项目 ItemInTaxAmount int64 `json:"itemInTaxAmount"` // 含税金额 }
BlueCreateItemParam 发票项目
type BlueCreateRequest ¶
type BlueCreateRequest struct { ApplyUuid string `json:"applyUuid"` // 申请唯一标识 ActualPay int64 `json:"actualPay"` // 发票总金额,分 BuyerType int64 `json:"buyerType"` // 购买方类型 1-个人/2-公司 BuyerName string `json:"buyerName"` // 购买方名称 BuyerIdNumber string `json:"buyerIdNumber"` // 购买方识别号 公司必填 BuyerAddress string `json:"buyerAddress"` // 购买方地址 BuyerTel string `json:"buyerTel"` // 购买方电话 BuyerBankName string `json:"buyerBankName"` // 购买方开户行 BuyerBankAccount string `json:"buyerBankAccount"` // 购买方银行账号 BuyerEmail string `json:"buyerEmail"` // 购买方邮箱 Remark string `json:"remark"` // 发票备注信息 ItemList []*BlueCreateItemParam `json:"itemList"` // 发票项目,可不传,默认生成 }
BlueCreateRequest 创建发票请求
type BlueCreateResponse ¶
type BlueCreateResponse struct { WaitCheck bool `json:"waitCheck"` // 等待审核时,以下返回值为空 InvoiceCode string `json:"invoiceCode"` // 发票代码 InvoiceNo string `json:"invoiceNo"` // 发票号码 InvoiceCheckCode string `json:"invoiceCheckCode"` // 发票校验码 PdfUrl string `json:"pdfUrl"` // PDF下载地址 PicUrl string `json:"picUrl"` // 图片预览地址 Result bool `json:"-"` // 请求结果 ResultMsg string `json:"-"` // 异常消息 }
BlueCreateResponse 创建发票响应
type InvoiceApiService ¶
func (*InvoiceApiService) BlueCreate ¶
func (p *InvoiceApiService) BlueCreate(ctx context.Context, req BlueCreateRequest) (resp *BlueCreateResponse, result *core.APIResult, err error)
func (*InvoiceApiService) Query ¶
func (p *InvoiceApiService) Query(ctx context.Context, req QueryRequest) (resp *QueryResponse, result *core.APIResult, err error)
func (*InvoiceApiService) ReadCreate ¶
func (p *InvoiceApiService) ReadCreate(ctx context.Context, req RedCreateRequest) (resp *RedCreateResponse, result *core.APIResult, err error)
type QueryRequest ¶
type QueryRequest struct {
ApplyUuid string `json:"applyUuid"`
}
QueryRequest 查询请求
type QueryResponse ¶
type QueryResponse struct { Result bool `json:"-"` // 请求结果 ResultMsg string `json:"-"` // 异常消息 InvoiceCode string `json:"invoiceCode"` // 发票代码 InvoiceNo string `json:"invoiceNo"` // 发票号码 InvoiceCheckCode string `json:"invoiceCheckCode"` // 发票校验码 PdfUrl string `json:"pdfUrl"` // PDF下载地址 PicUrl string `json:"picUrl"` // 图片预览地址 }
QueryResponse 查询响应
type RedCreateRequest ¶
type RedCreateRequest struct { ApplyUuid string `json:"applyUuid"` // 申请唯一标识 InvoiceNo string `json:"invoiceNo"` }
RedCreateRequest 申请红冲请求
type RedCreateResponse ¶
type RedCreateResponse struct { WaitCheck bool `json:"waitCheck"` // 等待审核时,以下返回值为空 InvoiceCode string `json:"invoiceCode"` // 发票代码 InvoiceNo string `json:"invoiceNo"` // 发票号码 InvoiceCheckCode string `json:"invoiceCheckCode"` // 发票校验码 PdfUrl string `json:"pdfUrl"` // PDF下载地址 PicUrl string `json:"picUrl"` // 图片预览地址 Result bool `json:"-"` // 请求结果 ResultMsg string `json:"-"` // 异常消息 }
RedCreateResponse 申请红冲响应
Click to show internal directories.
Click to hide internal directories.