api

package
v0.0.0-...-f948fb5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

Types

type AddSupportingDocument201JSONResponse

type AddSupportingDocument201JSONResponse InvoiceDocument

func (AddSupportingDocument201JSONResponse) VisitAddSupportingDocumentResponse

func (response AddSupportingDocument201JSONResponse) VisitAddSupportingDocumentResponse(w http.ResponseWriter) error

type AddSupportingDocument400JSONResponse

type AddSupportingDocument400JSONResponse Error

func (AddSupportingDocument400JSONResponse) VisitAddSupportingDocumentResponse

func (response AddSupportingDocument400JSONResponse) VisitAddSupportingDocumentResponse(w http.ResponseWriter) error

type AddSupportingDocument404JSONResponse

type AddSupportingDocument404JSONResponse Error

func (AddSupportingDocument404JSONResponse) VisitAddSupportingDocumentResponse

func (response AddSupportingDocument404JSONResponse) VisitAddSupportingDocumentResponse(w http.ResponseWriter) error

type AddSupportingDocument409JSONResponse

type AddSupportingDocument409JSONResponse Error

func (AddSupportingDocument409JSONResponse) VisitAddSupportingDocumentResponse

func (response AddSupportingDocument409JSONResponse) VisitAddSupportingDocumentResponse(w http.ResponseWriter) error

type AddSupportingDocumentMultipartBody

type AddSupportingDocumentMultipartBody struct {
	Description *string            `json:"description,omitempty"`
	File        openapi_types.File `json:"file"`
	ShowPages   *bool              `json:"show_pages,omitempty"`
}

AddSupportingDocumentMultipartBody defines parameters for AddSupportingDocument.

type AddSupportingDocumentMultipartRequestBody

type AddSupportingDocumentMultipartRequestBody AddSupportingDocumentMultipartBody

AddSupportingDocumentMultipartRequestBody defines body for AddSupportingDocument for multipart/form-data ContentType.

type AddSupportingDocumentRequestObject

type AddSupportingDocumentRequestObject struct {
	Id   ID `json:"id"`
	Body *multipart.Reader
}

type AddSupportingDocumentResponseObject

type AddSupportingDocumentResponseObject interface {
	VisitAddSupportingDocumentResponse(w http.ResponseWriter) error
}

type BankAccount

type BankAccount struct {
	Bic  *string `json:"bic,omitempty"`
	Iban *string `json:"iban,omitempty"`

	// Name Bank name or account holder name
	Name *string `json:"name,omitempty"`
}

BankAccount defines model for BankAccount.

type Banner struct {
	Level BannerLevel `json:"level"`

	// Text Example: Scheduled maintenance on Saturday from 08:00 to 10:00 UTC.
	Text string `json:"text"`
}

Banner Permanent operator notice in the UI, absent when no text is configured

type BannerLevel

type BannerLevel string

BannerLevel defines model for Banner.Level.

const (
	Info    BannerLevel = "info"
	Warning BannerLevel = "warning"
)

Defines values for BannerLevel.

func (BannerLevel) Valid

func (e BannerLevel) Valid() bool

Valid indicates whether the value is a known member of the BannerLevel enum.

type CancelInvoice201JSONResponse

type CancelInvoice201JSONResponse InvoiceDocument

func (CancelInvoice201JSONResponse) VisitCancelInvoiceResponse

func (response CancelInvoice201JSONResponse) VisitCancelInvoiceResponse(w http.ResponseWriter) error

type CancelInvoice404JSONResponse

type CancelInvoice404JSONResponse Error

func (CancelInvoice404JSONResponse) VisitCancelInvoiceResponse

func (response CancelInvoice404JSONResponse) VisitCancelInvoiceResponse(w http.ResponseWriter) error

type CancelInvoice409JSONResponse

type CancelInvoice409JSONResponse Error

func (CancelInvoice409JSONResponse) VisitCancelInvoiceResponse

func (response CancelInvoice409JSONResponse) VisitCancelInvoiceResponse(w http.ResponseWriter) error

type CancelInvoiceRequestObject

type CancelInvoiceRequestObject struct {
	Id ID `json:"id"`
}

type CancelInvoiceResponseObject

type CancelInvoiceResponseObject interface {
	VisitCancelInvoiceResponse(w http.ResponseWriter) error
}

type Chat200JSONResponse

type Chat200JSONResponse struct {
	// Action Action that was performed (e.g. create_product, create_invoice)
	Action *string `json:"action,omitempty"`

	// Choices Disambiguation choices for the user
	Choices *struct {
		Field *string `json:"field,omitempty"`
		Items *[]struct {
			Code  *string `json:"code,omitempty"`
			Label *string `json:"label,omitempty"`
		} `json:"items,omitempty"`

		// Pending Pending request data to retry with selection
		Pending *map[string]interface{} `json:"pending,omitempty"`
	} `json:"choices,omitempty"`

	// Data Created or queried data
	Data interface{} `json:"data,omitempty"`

	// Reply Natural language response
	Reply string `json:"reply"`

	// Results Search results with links
	Results *[]struct {
		Id    *string `json:"id,omitempty"`
		Label *string `json:"label,omitempty"`
		Sub   *string `json:"sub,omitempty"`
		Type  *string `json:"type,omitempty"`
	} `json:"results,omitempty"`
}

func (Chat200JSONResponse) VisitChatResponse

func (response Chat200JSONResponse) VisitChatResponse(w http.ResponseWriter) error

type ChatJSONBody

type ChatJSONBody struct {
	// Message Natural language message from the user
	Message string `json:"message"`
}

ChatJSONBody defines parameters for Chat.

type ChatJSONRequestBody

type ChatJSONRequestBody ChatJSONBody

ChatJSONRequestBody defines body for Chat for application/json ContentType.

type ChatRequestObject

type ChatRequestObject struct {
	Body *ChatJSONRequestBody
}

type ChatResponseObject

type ChatResponseObject interface {
	VisitChatResponse(w http.ResponseWriter) error
}

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type CodePatterns

type CodePatterns struct {
	// CreditNote Credit note code pattern (default depends on locale)
	CreditNote *string `json:"credit_note,omitempty"`

	// Customer Customer code pattern (default depends on locale)
	Customer *string `json:"customer,omitempty"`

	// Invoice Invoice code pattern (default depends on locale)
	Invoice *string `json:"invoice,omitempty"`

	// Product Product code pattern (default depends on locale)
	Product *string `json:"product,omitempty"`

	// StartCreditNote Start value for credit note sequence
	StartCreditNote *int `json:"start_credit_note,omitempty"`

	// StartCustomer Start value for customer sequence
	StartCustomer *int `json:"start_customer,omitempty"`

	// StartInvoice Start value for invoice sequence
	StartInvoice *int `json:"start_invoice,omitempty"`

	// StartProduct Start value for product sequence
	StartProduct *int `json:"start_product,omitempty"`
}

CodePatterns Patterns for auto-generating codes. Variables: %N (4-digit seq), %N6 (6-digit seq), %Y (year), %M (month). Sequence resets per year if %Y is used, per month if %M is used.

type ComponentHealth

type ComponentHealth struct {
	// Message Optional diagnostic message (e.g. error text when status is down)
	Message *string `json:"message,omitempty"`

	// Status ok = reachable and healthy, down = unreachable or unhealthy, disabled = not configured
	Status ComponentHealthStatus `json:"status"`
}

ComponentHealth defines model for ComponentHealth.

type ComponentHealthStatus

type ComponentHealthStatus string

ComponentHealthStatus ok = reachable and healthy, down = unreachable or unhealthy, disabled = not configured

const (
	ComponentHealthStatusDisabled ComponentHealthStatus = "disabled"
	ComponentHealthStatusDown     ComponentHealthStatus = "down"
	ComponentHealthStatusOk       ComponentHealthStatus = "ok"
)

Defines values for ComponentHealthStatus.

func (ComponentHealthStatus) Valid

func (e ComponentHealthStatus) Valid() bool

Valid indicates whether the value is a known member of the ComponentHealthStatus enum.

type CouchDocMeta

type CouchDocMeta struct {
	UnderscoreId  string `json:"_id"`
	UnderscoreRev string `json:"_rev"`
}

CouchDocMeta defines model for CouchDocMeta.

type CreateCustomer201JSONResponse

type CreateCustomer201JSONResponse Customer

func (CreateCustomer201JSONResponse) VisitCreateCustomerResponse

func (response CreateCustomer201JSONResponse) VisitCreateCustomerResponse(w http.ResponseWriter) error

type CreateCustomer409JSONResponse

type CreateCustomer409JSONResponse Error

func (CreateCustomer409JSONResponse) VisitCreateCustomerResponse

func (response CreateCustomer409JSONResponse) VisitCreateCustomerResponse(w http.ResponseWriter) error

type CreateCustomer422JSONResponse

type CreateCustomer422JSONResponse ValidationError

func (CreateCustomer422JSONResponse) VisitCreateCustomerResponse

func (response CreateCustomer422JSONResponse) VisitCreateCustomerResponse(w http.ResponseWriter) error

type CreateCustomerJSONRequestBody

type CreateCustomerJSONRequestBody = CustomerInput

CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.

type CreateCustomerRequestObject

type CreateCustomerRequestObject struct {
	Body *CreateCustomerJSONRequestBody
}

type CreateCustomerResponseObject

type CreateCustomerResponseObject interface {
	VisitCreateCustomerResponse(w http.ResponseWriter) error
}

type CreateInvoice201JSONResponse

type CreateInvoice201JSONResponse InvoiceDocument

func (CreateInvoice201JSONResponse) VisitCreateInvoiceResponse

func (response CreateInvoice201JSONResponse) VisitCreateInvoiceResponse(w http.ResponseWriter) error

type CreateInvoice409JSONResponse

type CreateInvoice409JSONResponse Error

func (CreateInvoice409JSONResponse) VisitCreateInvoiceResponse

func (response CreateInvoice409JSONResponse) VisitCreateInvoiceResponse(w http.ResponseWriter) error

type CreateInvoice422JSONResponse

type CreateInvoice422JSONResponse ValidationError

func (CreateInvoice422JSONResponse) VisitCreateInvoiceResponse

func (response CreateInvoice422JSONResponse) VisitCreateInvoiceResponse(w http.ResponseWriter) error

type CreateInvoiceJSONRequestBody

type CreateInvoiceJSONRequestBody = InvoiceDocumentInput

CreateInvoiceJSONRequestBody defines body for CreateInvoice for application/json ContentType.

type CreateInvoiceRequestObject

type CreateInvoiceRequestObject struct {
	Body *CreateInvoiceJSONRequestBody
}

type CreateInvoiceResponseObject

type CreateInvoiceResponseObject interface {
	VisitCreateInvoiceResponse(w http.ResponseWriter) error
}

type CreateProduct201JSONResponse

type CreateProduct201JSONResponse Product

func (CreateProduct201JSONResponse) VisitCreateProductResponse

func (response CreateProduct201JSONResponse) VisitCreateProductResponse(w http.ResponseWriter) error

type CreateProduct409JSONResponse

type CreateProduct409JSONResponse Error

func (CreateProduct409JSONResponse) VisitCreateProductResponse

func (response CreateProduct409JSONResponse) VisitCreateProductResponse(w http.ResponseWriter) error

type CreateProduct422JSONResponse

type CreateProduct422JSONResponse ValidationError

func (CreateProduct422JSONResponse) VisitCreateProductResponse

func (response CreateProduct422JSONResponse) VisitCreateProductResponse(w http.ResponseWriter) error

type CreateProductJSONRequestBody

type CreateProductJSONRequestBody = ProductInput

CreateProductJSONRequestBody defines body for CreateProduct for application/json ContentType.

type CreateProductRequestObject

type CreateProductRequestObject struct {
	Body *CreateProductJSONRequestBody
}

type CreateProductResponseObject

type CreateProductResponseObject interface {
	VisitCreateProductResponse(w http.ResponseWriter) error
}

type Customer

type Customer struct {
	UnderscoreId  string `json:"_id"`
	UnderscoreRev string `json:"_rev"`

	// BuyerReference Buyer reference (BT-10), e.g. Leitweg-ID. Required for XRechnung, copied to invoice ordering code.
	BuyerReference *string `json:"buyer_reference,omitempty"`

	// Code Internal customer code (not part of GOBL)
	Code string `json:"code"`

	// EinvoiceFormat E-invoice format preference for this customer
	EinvoiceFormat *CustomerEinvoiceFormat `json:"einvoice_format,omitempty"`

	// Party GOBL org.Party representing the customer
	Party org.Party `json:"party"`

	// PaymentTermsDays Payment terms in days for this customer
	PaymentTermsDays *int `json:"payment_terms_days,omitempty"`
}

Customer defines model for Customer.

type CustomerEinvoiceFormat

type CustomerEinvoiceFormat string

CustomerEinvoiceFormat E-invoice format preference for this customer

const (
	CustomerEinvoiceFormatXrechnung CustomerEinvoiceFormat = "xrechnung"
	CustomerEinvoiceFormatZugferd   CustomerEinvoiceFormat = "zugferd"
)

Defines values for CustomerEinvoiceFormat.

func (CustomerEinvoiceFormat) Valid

func (e CustomerEinvoiceFormat) Valid() bool

Valid indicates whether the value is a known member of the CustomerEinvoiceFormat enum.

type CustomerInput

type CustomerInput struct {
	// BuyerReference Buyer reference (BT-10), e.g. Leitweg-ID. Required for XRechnung, copied to invoice ordering code.
	BuyerReference *string `json:"buyer_reference,omitempty"`

	// Code Internal customer code (not part of GOBL)
	Code string `json:"code"`

	// EinvoiceFormat E-invoice format preference for this customer
	EinvoiceFormat *CustomerInputEinvoiceFormat `json:"einvoice_format,omitempty"`

	// Party GOBL org.Party representing the customer
	Party org.Party `json:"party"`

	// PaymentTermsDays Payment terms in days for this customer
	PaymentTermsDays *int `json:"payment_terms_days,omitempty"`
}

CustomerInput defines model for CustomerInput.

type CustomerInputEinvoiceFormat

type CustomerInputEinvoiceFormat string

CustomerInputEinvoiceFormat E-invoice format preference for this customer

const (
	CustomerInputEinvoiceFormatXrechnung CustomerInputEinvoiceFormat = "xrechnung"
	CustomerInputEinvoiceFormatZugferd   CustomerInputEinvoiceFormat = "zugferd"
)

Defines values for CustomerInputEinvoiceFormat.

func (CustomerInputEinvoiceFormat) Valid

Valid indicates whether the value is a known member of the CustomerInputEinvoiceFormat enum.

type CustomerList

type CustomerList struct {
	Items []Customer `json:"items"`
	Total int        `json:"total"`
}

CustomerList defines model for CustomerList.

type DeleteCustomer204Response

type DeleteCustomer204Response struct {
}

func (DeleteCustomer204Response) VisitDeleteCustomerResponse

func (response DeleteCustomer204Response) VisitDeleteCustomerResponse(w http.ResponseWriter) error

type DeleteCustomer404JSONResponse

type DeleteCustomer404JSONResponse Error

func (DeleteCustomer404JSONResponse) VisitDeleteCustomerResponse

func (response DeleteCustomer404JSONResponse) VisitDeleteCustomerResponse(w http.ResponseWriter) error

type DeleteCustomerRequestObject

type DeleteCustomerRequestObject struct {
	Id ID `json:"id"`
}

type DeleteCustomerResponseObject

type DeleteCustomerResponseObject interface {
	VisitDeleteCustomerResponse(w http.ResponseWriter) error
}

type DeleteInvoice204Response

type DeleteInvoice204Response struct {
}

func (DeleteInvoice204Response) VisitDeleteInvoiceResponse

func (response DeleteInvoice204Response) VisitDeleteInvoiceResponse(w http.ResponseWriter) error

type DeleteInvoice404JSONResponse

type DeleteInvoice404JSONResponse Error

func (DeleteInvoice404JSONResponse) VisitDeleteInvoiceResponse

func (response DeleteInvoice404JSONResponse) VisitDeleteInvoiceResponse(w http.ResponseWriter) error

type DeleteInvoice409JSONResponse

type DeleteInvoice409JSONResponse Error

func (DeleteInvoice409JSONResponse) VisitDeleteInvoiceResponse

func (response DeleteInvoice409JSONResponse) VisitDeleteInvoiceResponse(w http.ResponseWriter) error

type DeleteInvoiceRequestObject

type DeleteInvoiceRequestObject struct {
	Id ID `json:"id"`
}

type DeleteInvoiceResponseObject

type DeleteInvoiceResponseObject interface {
	VisitDeleteInvoiceResponse(w http.ResponseWriter) error
}

type DeleteLetterhead204Response

type DeleteLetterhead204Response struct {
}

func (DeleteLetterhead204Response) VisitDeleteLetterheadResponse

func (response DeleteLetterhead204Response) VisitDeleteLetterheadResponse(w http.ResponseWriter) error

type DeleteLetterhead404JSONResponse

type DeleteLetterhead404JSONResponse Error

func (DeleteLetterhead404JSONResponse) VisitDeleteLetterheadResponse

func (response DeleteLetterhead404JSONResponse) VisitDeleteLetterheadResponse(w http.ResponseWriter) error

type DeleteLetterheadRequestObject

type DeleteLetterheadRequestObject struct {
	Filename string `json:"filename"`
}

type DeleteLetterheadResponseObject

type DeleteLetterheadResponseObject interface {
	VisitDeleteLetterheadResponse(w http.ResponseWriter) error
}

type DeleteProduct204Response

type DeleteProduct204Response struct {
}

func (DeleteProduct204Response) VisitDeleteProductResponse

func (response DeleteProduct204Response) VisitDeleteProductResponse(w http.ResponseWriter) error

type DeleteProduct404JSONResponse

type DeleteProduct404JSONResponse Error

func (DeleteProduct404JSONResponse) VisitDeleteProductResponse

func (response DeleteProduct404JSONResponse) VisitDeleteProductResponse(w http.ResponseWriter) error

type DeleteProductRequestObject

type DeleteProductRequestObject struct {
	Id ID `json:"id"`
}

type DeleteProductResponseObject

type DeleteProductResponseObject interface {
	VisitDeleteProductResponse(w http.ResponseWriter) error
}

type DeleteSupportingDocument200JSONResponse

type DeleteSupportingDocument200JSONResponse InvoiceDocument

func (DeleteSupportingDocument200JSONResponse) VisitDeleteSupportingDocumentResponse

func (response DeleteSupportingDocument200JSONResponse) VisitDeleteSupportingDocumentResponse(w http.ResponseWriter) error

type DeleteSupportingDocument404JSONResponse

type DeleteSupportingDocument404JSONResponse Error

func (DeleteSupportingDocument404JSONResponse) VisitDeleteSupportingDocumentResponse

func (response DeleteSupportingDocument404JSONResponse) VisitDeleteSupportingDocumentResponse(w http.ResponseWriter) error

type DeleteSupportingDocument409JSONResponse

type DeleteSupportingDocument409JSONResponse Error

func (DeleteSupportingDocument409JSONResponse) VisitDeleteSupportingDocumentResponse

func (response DeleteSupportingDocument409JSONResponse) VisitDeleteSupportingDocumentResponse(w http.ResponseWriter) error

type DeleteSupportingDocumentRequestObject

type DeleteSupportingDocumentRequestObject struct {
	Id         ID     `json:"id"`
	DocumentId string `json:"documentId"`
}

type DeleteSupportingDocumentResponseObject

type DeleteSupportingDocumentResponseObject interface {
	VisitDeleteSupportingDocumentResponse(w http.ResponseWriter) error
}

type Error

type Error struct {
	Details *string `json:"details,omitempty"`
	Error   string  `json:"error"`
}

Error defines model for Error.

type ExportDatev200TextcsvResponse

type ExportDatev200TextcsvResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (ExportDatev200TextcsvResponse) VisitExportDatevResponse

func (response ExportDatev200TextcsvResponse) VisitExportDatevResponse(w http.ResponseWriter) error

type ExportDatevParams

type ExportDatevParams struct {
	// From Start date (YYYY-MM-DD)
	From openapi_types.Date `form:"from" json:"from"`

	// To End date (YYYY-MM-DD)
	To openapi_types.Date `form:"to" json:"to"`
}

ExportDatevParams defines parameters for ExportDatev.

type ExportDatevRequestObject

type ExportDatevRequestObject struct {
	Params ExportDatevParams
}

type ExportDatevResponseObject

type ExportDatevResponseObject interface {
	VisitExportDatevResponse(w http.ResponseWriter) error
}

type GetCustomer200JSONResponse

type GetCustomer200JSONResponse Customer

func (GetCustomer200JSONResponse) VisitGetCustomerResponse

func (response GetCustomer200JSONResponse) VisitGetCustomerResponse(w http.ResponseWriter) error

type GetCustomer404JSONResponse

type GetCustomer404JSONResponse Error

func (GetCustomer404JSONResponse) VisitGetCustomerResponse

func (response GetCustomer404JSONResponse) VisitGetCustomerResponse(w http.ResponseWriter) error

type GetCustomerByCode200JSONResponse

type GetCustomerByCode200JSONResponse Customer

func (GetCustomerByCode200JSONResponse) VisitGetCustomerByCodeResponse

func (response GetCustomerByCode200JSONResponse) VisitGetCustomerByCodeResponse(w http.ResponseWriter) error

type GetCustomerByCode404JSONResponse

type GetCustomerByCode404JSONResponse Error

func (GetCustomerByCode404JSONResponse) VisitGetCustomerByCodeResponse

func (response GetCustomerByCode404JSONResponse) VisitGetCustomerByCodeResponse(w http.ResponseWriter) error

type GetCustomerByCodeRequestObject

type GetCustomerByCodeRequestObject struct {
	Code string `json:"code"`
}

type GetCustomerByCodeResponseObject

type GetCustomerByCodeResponseObject interface {
	VisitGetCustomerByCodeResponse(w http.ResponseWriter) error
}

type GetCustomerRequestObject

type GetCustomerRequestObject struct {
	Id ID `json:"id"`
}

type GetCustomerResponseObject

type GetCustomerResponseObject interface {
	VisitGetCustomerResponse(w http.ResponseWriter) error
}

type GetHealth200JSONResponse

type GetHealth200JSONResponse HealthResponse

func (GetHealth200JSONResponse) VisitGetHealthResponse

func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetHealthRequestObject

type GetHealthRequestObject struct {
}

type GetHealthResponseObject

type GetHealthResponseObject interface {
	VisitGetHealthResponse(w http.ResponseWriter) error
}

type GetInvoice200JSONResponse

type GetInvoice200JSONResponse InvoiceDocument

func (GetInvoice200JSONResponse) VisitGetInvoiceResponse

func (response GetInvoice200JSONResponse) VisitGetInvoiceResponse(w http.ResponseWriter) error

type GetInvoice404JSONResponse

type GetInvoice404JSONResponse Error

func (GetInvoice404JSONResponse) VisitGetInvoiceResponse

func (response GetInvoice404JSONResponse) VisitGetInvoiceResponse(w http.ResponseWriter) error

type GetInvoiceByCode200JSONResponse

type GetInvoiceByCode200JSONResponse InvoiceDocument

func (GetInvoiceByCode200JSONResponse) VisitGetInvoiceByCodeResponse

func (response GetInvoiceByCode200JSONResponse) VisitGetInvoiceByCodeResponse(w http.ResponseWriter) error

type GetInvoiceByCode404JSONResponse

type GetInvoiceByCode404JSONResponse Error

func (GetInvoiceByCode404JSONResponse) VisitGetInvoiceByCodeResponse

func (response GetInvoiceByCode404JSONResponse) VisitGetInvoiceByCodeResponse(w http.ResponseWriter) error

type GetInvoiceByCodeRequestObject

type GetInvoiceByCodeRequestObject struct {
	Code string `json:"code"`
}

type GetInvoiceByCodeResponseObject

type GetInvoiceByCodeResponseObject interface {
	VisitGetInvoiceByCodeResponse(w http.ResponseWriter) error
}

type GetInvoiceRequestObject

type GetInvoiceRequestObject struct {
	Id ID `json:"id"`
}

type GetInvoiceResponseObject

type GetInvoiceResponseObject interface {
	VisitGetInvoiceResponse(w http.ResponseWriter) error
}

type GetInvoiceStats200JSONResponse

type GetInvoiceStats200JSONResponse InvoiceStats

func (GetInvoiceStats200JSONResponse) VisitGetInvoiceStatsResponse

func (response GetInvoiceStats200JSONResponse) VisitGetInvoiceStatsResponse(w http.ResponseWriter) error

type GetInvoiceStatsRequestObject

type GetInvoiceStatsRequestObject struct {
}

type GetInvoiceStatsResponseObject

type GetInvoiceStatsResponseObject interface {
	VisitGetInvoiceStatsResponse(w http.ResponseWriter) error
}

type GetInvoiceXml200ApplicationxmlResponse

type GetInvoiceXml200ApplicationxmlResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (GetInvoiceXml200ApplicationxmlResponse) VisitGetInvoiceXmlResponse

func (response GetInvoiceXml200ApplicationxmlResponse) VisitGetInvoiceXmlResponse(w http.ResponseWriter) error

type GetInvoiceXml404JSONResponse

type GetInvoiceXml404JSONResponse Error

func (GetInvoiceXml404JSONResponse) VisitGetInvoiceXmlResponse

func (response GetInvoiceXml404JSONResponse) VisitGetInvoiceXmlResponse(w http.ResponseWriter) error

type GetInvoiceXmlParams

type GetInvoiceXmlParams struct {
	// Context CII context (zugferd or xrechnung) for drafts. Issued invoices always return the XML frozen at issue time.
	Context *GetInvoiceXmlParamsContext `form:"context,omitempty" json:"context,omitempty"`
}

GetInvoiceXmlParams defines parameters for GetInvoiceXml.

type GetInvoiceXmlParamsContext

type GetInvoiceXmlParamsContext string

GetInvoiceXmlParamsContext defines parameters for GetInvoiceXml.

const (
	GetInvoiceXmlParamsContextXrechnung GetInvoiceXmlParamsContext = "xrechnung"
	GetInvoiceXmlParamsContextZugferd   GetInvoiceXmlParamsContext = "zugferd"
)

Defines values for GetInvoiceXmlParamsContext.

func (GetInvoiceXmlParamsContext) Valid

func (e GetInvoiceXmlParamsContext) Valid() bool

Valid indicates whether the value is a known member of the GetInvoiceXmlParamsContext enum.

type GetInvoiceXmlRequestObject

type GetInvoiceXmlRequestObject struct {
	Id     ID `json:"id"`
	Params GetInvoiceXmlParams
}

type GetInvoiceXmlResponseObject

type GetInvoiceXmlResponseObject interface {
	VisitGetInvoiceXmlResponse(w http.ResponseWriter) error
}

type GetMonthlyRevenue200JSONResponse

type GetMonthlyRevenue200JSONResponse []struct {
	Month   string  `json:"month"`
	Revenue float32 `json:"revenue"`
}

func (GetMonthlyRevenue200JSONResponse) VisitGetMonthlyRevenueResponse

func (response GetMonthlyRevenue200JSONResponse) VisitGetMonthlyRevenueResponse(w http.ResponseWriter) error

type GetMonthlyRevenueParams

type GetMonthlyRevenueParams struct {
	// From Start month (YYYY-MM)
	From string `form:"from" json:"from"`

	// To End month (YYYY-MM)
	To string `form:"to" json:"to"`
}

GetMonthlyRevenueParams defines parameters for GetMonthlyRevenue.

type GetMonthlyRevenueRequestObject

type GetMonthlyRevenueRequestObject struct {
	Params GetMonthlyRevenueParams
}

type GetMonthlyRevenueResponseObject

type GetMonthlyRevenueResponseObject interface {
	VisitGetMonthlyRevenueResponse(w http.ResponseWriter) error
}

type GetNextCodes200JSONResponse

type GetNextCodes200JSONResponse struct {
	CreditNote *string `json:"credit_note,omitempty"`
	Customer   *string `json:"customer,omitempty"`
	Invoice    *string `json:"invoice,omitempty"`
	Product    *string `json:"product,omitempty"`
}

func (GetNextCodes200JSONResponse) VisitGetNextCodesResponse

func (response GetNextCodes200JSONResponse) VisitGetNextCodesResponse(w http.ResponseWriter) error

type GetNextCodesRequestObject

type GetNextCodesRequestObject struct {
}

type GetNextCodesResponseObject

type GetNextCodesResponseObject interface {
	VisitGetNextCodesResponse(w http.ResponseWriter) error
}

type GetProduct200JSONResponse

type GetProduct200JSONResponse Product

func (GetProduct200JSONResponse) VisitGetProductResponse

func (response GetProduct200JSONResponse) VisitGetProductResponse(w http.ResponseWriter) error

type GetProduct404JSONResponse

type GetProduct404JSONResponse Error

func (GetProduct404JSONResponse) VisitGetProductResponse

func (response GetProduct404JSONResponse) VisitGetProductResponse(w http.ResponseWriter) error

type GetProductByCode200JSONResponse

type GetProductByCode200JSONResponse Product

func (GetProductByCode200JSONResponse) VisitGetProductByCodeResponse

func (response GetProductByCode200JSONResponse) VisitGetProductByCodeResponse(w http.ResponseWriter) error

type GetProductByCode404JSONResponse

type GetProductByCode404JSONResponse Error

func (GetProductByCode404JSONResponse) VisitGetProductByCodeResponse

func (response GetProductByCode404JSONResponse) VisitGetProductByCodeResponse(w http.ResponseWriter) error

type GetProductByCodeRequestObject

type GetProductByCodeRequestObject struct {
	Code string `json:"code"`
}

type GetProductByCodeResponseObject

type GetProductByCodeResponseObject interface {
	VisitGetProductByCodeResponse(w http.ResponseWriter) error
}

type GetProductRequestObject

type GetProductRequestObject struct {
	Id ID `json:"id"`
}

type GetProductResponseObject

type GetProductResponseObject interface {
	VisitGetProductResponse(w http.ResponseWriter) error
}

type GetSupplier200JSONResponse

type GetSupplier200JSONResponse SupplierConfig

func (GetSupplier200JSONResponse) VisitGetSupplierResponse

func (response GetSupplier200JSONResponse) VisitGetSupplierResponse(w http.ResponseWriter) error

type GetSupplier404JSONResponse

type GetSupplier404JSONResponse Error

func (GetSupplier404JSONResponse) VisitGetSupplierResponse

func (response GetSupplier404JSONResponse) VisitGetSupplierResponse(w http.ResponseWriter) error

type GetSupplierRequestObject

type GetSupplierRequestObject struct {
}

type GetSupplierResponseObject

type GetSupplierResponseObject interface {
	VisitGetSupplierResponse(w http.ResponseWriter) error
}

type GetSupportingDocument200ApplicationoctetStreamResponse

type GetSupportingDocument200ApplicationoctetStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (GetSupportingDocument200ApplicationoctetStreamResponse) VisitGetSupportingDocumentResponse

func (response GetSupportingDocument200ApplicationoctetStreamResponse) VisitGetSupportingDocumentResponse(w http.ResponseWriter) error

type GetSupportingDocument404JSONResponse

type GetSupportingDocument404JSONResponse Error

func (GetSupportingDocument404JSONResponse) VisitGetSupportingDocumentResponse

func (response GetSupportingDocument404JSONResponse) VisitGetSupportingDocumentResponse(w http.ResponseWriter) error

type GetSupportingDocumentRequestObject

type GetSupportingDocumentRequestObject struct {
	Id         ID     `json:"id"`
	DocumentId string `json:"documentId"`
}

type GetSupportingDocumentResponseObject

type GetSupportingDocumentResponseObject interface {
	VisitGetSupportingDocumentResponse(w http.ResponseWriter) error
}

type GetUiConfig200JSONResponse

type GetUiConfig200JSONResponse UiConfig

func (GetUiConfig200JSONResponse) VisitGetUiConfigResponse

func (response GetUiConfig200JSONResponse) VisitGetUiConfigResponse(w http.ResponseWriter) error

type GetUiConfigRequestObject

type GetUiConfigRequestObject struct {
}

type GetUiConfigResponseObject

type GetUiConfigResponseObject interface {
	VisitGetUiConfigResponse(w http.ResponseWriter) error
}

type HealthComponents

type HealthComponents struct {
	Api       ComponentHealth `json:"api"`
	Database  ComponentHealth `json:"database"`
	Ollama    ComponentHealth `json:"ollama"`
	Printer   ComponentHealth `json:"printer"`
	Validator ComponentHealth `json:"validator"`
}

HealthComponents Per-component health aggregation

type HealthResponse

type HealthResponse struct {
	// Components Per-component health aggregation
	Components HealthComponents `json:"components"`

	// Status Overall status - ok if every enabled component is ok, degraded otherwise
	//
	// Example: ok
	Status HealthResponseStatus `json:"status"`
}

HealthResponse defines model for HealthResponse.

type HealthResponseStatus

type HealthResponseStatus string

HealthResponseStatus Overall status - ok if every enabled component is ok, degraded otherwise

Example: ok

const (
	HealthResponseStatusDegraded HealthResponseStatus = "degraded"
	HealthResponseStatusOk       HealthResponseStatus = "ok"
)

Defines values for HealthResponseStatus.

func (HealthResponseStatus) Valid

func (e HealthResponseStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthResponseStatus enum.

type ID

type ID = string

ID defines model for ID.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type InvoiceDocument

type InvoiceDocument struct {
	UnderscoreId  string     `json:"_id"`
	UnderscoreRev string     `json:"_rev"`
	CreatedAt     *time.Time `json:"created_at,omitempty"`

	// CreditNoteId Reference to the credit note ID (for canceled invoices)
	CreditNoteId *string `json:"credit_note_id,omitempty"`

	// CustomerId Reference to the customer document ID
	CustomerId *string `json:"customer_id,omitempty"`

	// EinvoiceFormat E-invoice format copied from customer at creation time
	EinvoiceFormat *InvoiceDocumentEinvoiceFormat `json:"einvoice_format,omitempty"`

	// Invoice GOBL bill.Invoice document
	Invoice bill.Invoice `json:"invoice"`

	// InvoiceType Invoice type (standard or credit-note for cancellations)
	InvoiceType *InvoiceDocumentInvoiceType `json:"invoice_type,omitempty"`
	PaidAt      *time.Time                  `json:"paid_at,omitempty"`

	// PrecedingId Reference to the original invoice ID (for credit notes)
	PrecedingId *string       `json:"preceding_id,omitempty"`
	SentAt      *time.Time    `json:"sent_at,omitempty"`
	Status      InvoiceStatus `json:"status"`

	// SupportingDocuments Supporting documents (BG-24), managed via /invoices/{id}/supporting-documents
	SupportingDocuments *[]SupportingDocument `json:"supporting_documents,omitempty"`
	UpdatedAt           *time.Time            `json:"updated_at,omitempty"`

	// Warnings Plausibility warnings for the date of supply, computed on read and not stored
	Warnings *[]InvoiceWarning `json:"warnings,omitempty"`
}

InvoiceDocument defines model for InvoiceDocument.

type InvoiceDocumentEinvoiceFormat

type InvoiceDocumentEinvoiceFormat string

InvoiceDocumentEinvoiceFormat E-invoice format copied from customer at creation time

const (
	InvoiceDocumentEinvoiceFormatXrechnung InvoiceDocumentEinvoiceFormat = "xrechnung"
	InvoiceDocumentEinvoiceFormatZugferd   InvoiceDocumentEinvoiceFormat = "zugferd"
)

Defines values for InvoiceDocumentEinvoiceFormat.

func (InvoiceDocumentEinvoiceFormat) Valid

Valid indicates whether the value is a known member of the InvoiceDocumentEinvoiceFormat enum.

type InvoiceDocumentInput

type InvoiceDocumentInput struct {
	// Invoice GOBL bill.Invoice document
	Invoice bill.Invoice `json:"invoice"`
}

InvoiceDocumentInput defines model for InvoiceDocumentInput.

type InvoiceDocumentInvoiceType

type InvoiceDocumentInvoiceType string

InvoiceDocumentInvoiceType Invoice type (standard or credit-note for cancellations)

const (
	CreditNote InvoiceDocumentInvoiceType = "credit-note"
	Standard   InvoiceDocumentInvoiceType = "standard"
)

Defines values for InvoiceDocumentInvoiceType.

func (InvoiceDocumentInvoiceType) Valid

func (e InvoiceDocumentInvoiceType) Valid() bool

Valid indicates whether the value is a known member of the InvoiceDocumentInvoiceType enum.

type InvoiceDocumentList

type InvoiceDocumentList struct {
	Items []InvoiceDocument `json:"items"`
	Total int               `json:"total"`
}

InvoiceDocumentList defines model for InvoiceDocumentList.

type InvoiceStats

type InvoiceStats struct {
	Canceled *int           `json:"canceled,omitempty"`
	Draft    *int           `json:"draft,omitempty"`
	Overdue  *int           `json:"overdue,omitempty"`
	Paid     *int           `json:"paid,omitempty"`
	Revenue  *float64       `json:"revenue,omitempty"`
	Sent     *int           `json:"sent,omitempty"`
	Yearly   *[]YearlyStats `json:"yearly,omitempty"`
}

InvoiceStats defines model for InvoiceStats.

type InvoiceStatus

type InvoiceStatus string

InvoiceStatus defines model for InvoiceStatus.

const (
	Canceled InvoiceStatus = "canceled"
	Draft    InvoiceStatus = "draft"
	Overdue  InvoiceStatus = "overdue"
	Sent     InvoiceStatus = "sent"
)

Defines values for InvoiceStatus.

func (InvoiceStatus) Valid

func (e InvoiceStatus) Valid() bool

Valid indicates whether the value is a known member of the InvoiceStatus enum.

type InvoiceWarning

type InvoiceWarning struct {
	Code    InvoiceWarningCode `json:"code"`
	Message string             `json:"message"`
}

InvoiceWarning defines model for InvoiceWarning.

type InvoiceWarningCode

type InvoiceWarningCode string

InvoiceWarningCode defines model for InvoiceWarning.Code.

const (
	ServiceAfterIssue         InvoiceWarningCode = "service_after_issue"
	ServiceOlderThanSixMonths InvoiceWarningCode = "service_older_than_six_months"
	ServicePeriodRateChange   InvoiceWarningCode = "service_period_rate_change"
)

Defines values for InvoiceWarningCode.

func (InvoiceWarningCode) Valid

func (e InvoiceWarningCode) Valid() bool

Valid indicates whether the value is a known member of the InvoiceWarningCode enum.

type LetterheadConfig

type LetterheadConfig struct {
	// Enabled Whether letterhead is active by default for PDF rendering
	Enabled *bool `json:"enabled,omitempty"`

	// HasCustomFile Whether a custom letterhead PDF (page 1) has been uploaded
	HasCustomFile *bool `json:"has_custom_file,omitempty"`

	// HasCustomNoheaderFile Whether a custom letterhead PDF (following pages) has been uploaded
	HasCustomNoheaderFile *bool `json:"has_custom_noheader_file,omitempty"`
	ShowFoldmarks         *bool `json:"show_foldmarks,omitempty"`
	ShowFooter            *bool `json:"show_footer,omitempty"`
	ShowSender            *bool `json:"show_sender,omitempty"`
}

LetterheadConfig defines model for LetterheadConfig.

type Limit

type Limit = int

Limit defines model for Limit.

type ListCustomers200JSONResponse

type ListCustomers200JSONResponse CustomerList

func (ListCustomers200JSONResponse) VisitListCustomersResponse

func (response ListCustomers200JSONResponse) VisitListCustomersResponse(w http.ResponseWriter) error

type ListCustomersParams

type ListCustomersParams struct {
	// Limit Items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Page Page number (1-based)
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Sort field (prefix with - for descending)
	Sort *Sort `form:"sort,omitempty" json:"sort,omitempty"`

	// Q Full-text search across code and name fields (case-insensitive)
	Q *Query `form:"q,omitempty" json:"q,omitempty"`

	// Name Filter by name substring (case-insensitive)
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

ListCustomersParams defines parameters for ListCustomers.

type ListCustomersRequestObject

type ListCustomersRequestObject struct {
	Params ListCustomersParams
}

type ListCustomersResponseObject

type ListCustomersResponseObject interface {
	VisitListCustomersResponse(w http.ResponseWriter) error
}

type ListInvoices200JSONResponse

type ListInvoices200JSONResponse InvoiceDocumentList

func (ListInvoices200JSONResponse) VisitListInvoicesResponse

func (response ListInvoices200JSONResponse) VisitListInvoicesResponse(w http.ResponseWriter) error

type ListInvoicesParams

type ListInvoicesParams struct {
	// Limit Items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Page Page number (1-based)
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Sort field (prefix with - for descending)
	Sort *Sort `form:"sort,omitempty" json:"sort,omitempty"`

	// Q Full-text search across code and name fields (case-insensitive)
	Q *Query `form:"q,omitempty" json:"q,omitempty"`

	// Status Filter by invoice status
	Status *InvoiceStatus `form:"status,omitempty" json:"status,omitempty"`

	// CustomerId Filter by customer ID
	CustomerId *string `form:"customer_id,omitempty" json:"customer_id,omitempty"`

	// ProductCode Filter by product code (from invoice line item key)
	ProductCode *string `form:"product_code,omitempty" json:"product_code,omitempty"`
}

ListInvoicesParams defines parameters for ListInvoices.

type ListInvoicesRequestObject

type ListInvoicesRequestObject struct {
	Params ListInvoicesParams
}

type ListInvoicesResponseObject

type ListInvoicesResponseObject interface {
	VisitListInvoicesResponse(w http.ResponseWriter) error
}

type ListProducts200JSONResponse

type ListProducts200JSONResponse ProductList

func (ListProducts200JSONResponse) VisitListProductsResponse

func (response ListProducts200JSONResponse) VisitListProductsResponse(w http.ResponseWriter) error

type ListProductsParams

type ListProductsParams struct {
	// Limit Items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Page Page number (1-based)
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Sort field (prefix with - for descending)
	Sort *Sort `form:"sort,omitempty" json:"sort,omitempty"`

	// Q Full-text search across code and name fields (case-insensitive)
	Q *Query `form:"q,omitempty" json:"q,omitempty"`

	// Name Filter by name substring (case-insensitive)
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

ListProductsParams defines parameters for ListProducts.

type ListProductsRequestObject

type ListProductsRequestObject struct {
	Params ListProductsParams
}

type ListProductsResponseObject

type ListProductsResponseObject interface {
	VisitListProductsResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Page

type Page = int

Page defines model for Page.

type PrintInvoice200ApplicationpdfResponse

type PrintInvoice200ApplicationpdfResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (PrintInvoice200ApplicationpdfResponse) VisitPrintInvoiceResponse

func (response PrintInvoice200ApplicationpdfResponse) VisitPrintInvoiceResponse(w http.ResponseWriter) error

type PrintInvoice200TextResponse

type PrintInvoice200TextResponse string

func (PrintInvoice200TextResponse) VisitPrintInvoiceResponse

func (response PrintInvoice200TextResponse) VisitPrintInvoiceResponse(w http.ResponseWriter) error

type PrintInvoice404JSONResponse

type PrintInvoice404JSONResponse Error

func (PrintInvoice404JSONResponse) VisitPrintInvoiceResponse

func (response PrintInvoice404JSONResponse) VisitPrintInvoiceResponse(w http.ResponseWriter) error

type PrintInvoiceParams

type PrintInvoiceParams struct {
	Format *PrintInvoiceParamsFormat `form:"format,omitempty" json:"format,omitempty"`

	// Letterhead Apply letterhead layout settings (sender, footer, foldmarks)
	Letterhead *bool `form:"letterhead,omitempty" json:"letterhead,omitempty"`

	// Background Include letterhead background PDF (false = for pre-printed stationery)
	Background *bool `form:"background,omitempty" json:"background,omitempty"`
}

PrintInvoiceParams defines parameters for PrintInvoice.

type PrintInvoiceParamsFormat

type PrintInvoiceParamsFormat string

PrintInvoiceParamsFormat defines parameters for PrintInvoice.

const (
	Latex PrintInvoiceParamsFormat = "latex"
	Pdf   PrintInvoiceParamsFormat = "pdf"
)

Defines values for PrintInvoiceParamsFormat.

func (PrintInvoiceParamsFormat) Valid

func (e PrintInvoiceParamsFormat) Valid() bool

Valid indicates whether the value is a known member of the PrintInvoiceParamsFormat enum.

type PrintInvoiceRequestObject

type PrintInvoiceRequestObject struct {
	Id     ID `json:"id"`
	Params PrintInvoiceParams
}

type PrintInvoiceResponseObject

type PrintInvoiceResponseObject interface {
	VisitPrintInvoiceResponse(w http.ResponseWriter) error
}

type Product

type Product struct {
	UnderscoreId  string  `json:"_id"`
	UnderscoreRev string  `json:"_rev"`
	Code          string  `json:"code"`
	Description   *string `json:"description,omitempty"`
	Name          string  `json:"name"`

	// TaxCode GOBL tax rate key (e.g. "standard", "reduced")
	TaxCode string `json:"tax_code"`

	// Unit GOBL org.Unit (e.g. "h", "day", "piece")
	Unit *string `json:"unit,omitempty"`

	// UnitPrice Decimal string, e.g. "100.00"
	UnitPrice string `json:"unit_price"`
}

Product defines model for Product.

type ProductInput

type ProductInput struct {
	Code        string  `json:"code"`
	Description *string `json:"description,omitempty"`
	Name        string  `json:"name"`

	// TaxCode GOBL tax rate key (e.g. "standard", "reduced")
	TaxCode string `json:"tax_code"`

	// Unit GOBL org.Unit (e.g. "h", "day", "piece")
	Unit *string `json:"unit,omitempty"`

	// UnitPrice Decimal string, e.g. "100.00"
	UnitPrice string `json:"unit_price"`
}

ProductInput defines model for ProductInput.

type ProductList

type ProductList struct {
	Items []Product `json:"items"`
	Total int       `json:"total"`
}

ProductList defines model for ProductList.

type PutSupplier200JSONResponse

type PutSupplier200JSONResponse SupplierConfig

func (PutSupplier200JSONResponse) VisitPutSupplierResponse

func (response PutSupplier200JSONResponse) VisitPutSupplierResponse(w http.ResponseWriter) error

type PutSupplier422JSONResponse

type PutSupplier422JSONResponse ValidationError

func (PutSupplier422JSONResponse) VisitPutSupplierResponse

func (response PutSupplier422JSONResponse) VisitPutSupplierResponse(w http.ResponseWriter) error

type PutSupplierJSONRequestBody

type PutSupplierJSONRequestBody = SupplierConfigInput

PutSupplierJSONRequestBody defines body for PutSupplier for application/json ContentType.

type PutSupplierRequestObject

type PutSupplierRequestObject struct {
	Body *PutSupplierJSONRequestBody
}

type PutSupplierResponseObject

type PutSupplierResponseObject interface {
	VisitPutSupplierResponse(w http.ResponseWriter) error
}

type Query

type Query = string

Query defines model for Query.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServerInterface

type ServerInterface interface {
	// Chat Natural language chat interface for creating and querying data
	// (POST /chat)
	Chat(w http.ResponseWriter, r *http.Request)
	// ListCustomers List customers
	// (GET /customers)
	ListCustomers(w http.ResponseWriter, r *http.Request, params ListCustomersParams)
	// CreateCustomer Create a new customer
	// (POST /customers)
	CreateCustomer(w http.ResponseWriter, r *http.Request)
	// GetCustomerByCode Get a customer by code
	// (GET /customers/by-code/{code})
	GetCustomerByCode(w http.ResponseWriter, r *http.Request, code string)
	// DeleteCustomer Delete a customer
	// (DELETE /customers/{id})
	DeleteCustomer(w http.ResponseWriter, r *http.Request, id ID)
	// GetCustomer Get a customer by ID
	// (GET /customers/{id})
	GetCustomer(w http.ResponseWriter, r *http.Request, id ID)
	// UpdateCustomer Update a customer
	// (PUT /customers/{id})
	UpdateCustomer(w http.ResponseWriter, r *http.Request, id ID)
	// GetHealth Health check
	// (GET /health)
	GetHealth(w http.ResponseWriter, r *http.Request)
	// ListInvoices List invoices
	// (GET /invoices)
	ListInvoices(w http.ResponseWriter, r *http.Request, params ListInvoicesParams)
	// CreateInvoice Create a new invoice
	// (POST /invoices)
	CreateInvoice(w http.ResponseWriter, r *http.Request)
	// GetInvoiceByCode Get an invoice by code
	// (GET /invoices/by-code/{code})
	GetInvoiceByCode(w http.ResponseWriter, r *http.Request, code string)
	// ExportDatev Export invoices as DATEV CSV
	// (GET /invoices/export/datev)
	ExportDatev(w http.ResponseWriter, r *http.Request, params ExportDatevParams)
	// GetMonthlyRevenue Get monthly revenue for a date range
	// (GET /invoices/revenue)
	GetMonthlyRevenue(w http.ResponseWriter, r *http.Request, params GetMonthlyRevenueParams)
	// GetInvoiceStats Get aggregated invoice statistics (counts per status and revenue)
	// (GET /invoices/stats)
	GetInvoiceStats(w http.ResponseWriter, r *http.Request)
	// DeleteInvoice Delete an invoice (draft only)
	// (DELETE /invoices/{id})
	DeleteInvoice(w http.ResponseWriter, r *http.Request, id ID)
	// GetInvoice Get an invoice by ID
	// (GET /invoices/{id})
	GetInvoice(w http.ResponseWriter, r *http.Request, id ID)
	// UpdateInvoice Update an invoice (draft only)
	// (PUT /invoices/{id})
	UpdateInvoice(w http.ResponseWriter, r *http.Request, id ID)
	// CancelInvoice Cancel an invoice and create a credit note
	// (POST /invoices/{id}/cancel)
	CancelInvoice(w http.ResponseWriter, r *http.Request, id ID)
	// PrintInvoice Render invoice as PDF or LaTeX
	// (GET /invoices/{id}/print)
	PrintInvoice(w http.ResponseWriter, r *http.Request, id ID, params PrintInvoiceParams)
	// UpdateInvoiceStatus Change invoice status
	// (PATCH /invoices/{id}/status)
	UpdateInvoiceStatus(w http.ResponseWriter, r *http.Request, id ID)
	// AddSupportingDocument Attach a supporting document (BG-24) to a draft invoice
	// (POST /invoices/{id}/supporting-documents)
	AddSupportingDocument(w http.ResponseWriter, r *http.Request, id ID)
	// DeleteSupportingDocument Remove a supporting document from a draft invoice
	// (DELETE /invoices/{id}/supporting-documents/{documentId})
	DeleteSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)
	// GetSupportingDocument Download a supporting document
	// (GET /invoices/{id}/supporting-documents/{documentId})
	GetSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)
	// UpdateSupportingDocument Change description or page display of a supporting document
	// (PATCH /invoices/{id}/supporting-documents/{documentId})
	UpdateSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)
	// GetInvoiceXml Get CII XML for an invoice (ZUGFeRD or XRechnung)
	// (GET /invoices/{id}/xml)
	GetInvoiceXml(w http.ResponseWriter, r *http.Request, id ID, params GetInvoiceXmlParams)
	// ListProducts List products
	// (GET /products)
	ListProducts(w http.ResponseWriter, r *http.Request, params ListProductsParams)
	// CreateProduct Create a new product
	// (POST /products)
	CreateProduct(w http.ResponseWriter, r *http.Request)
	// GetProductByCode Get a product by code
	// (GET /products/by-code/{code})
	GetProductByCode(w http.ResponseWriter, r *http.Request, code string)
	// DeleteProduct Delete a product
	// (DELETE /products/{id})
	DeleteProduct(w http.ResponseWriter, r *http.Request, id ID)
	// GetProduct Get a product by ID
	// (GET /products/{id})
	GetProduct(w http.ResponseWriter, r *http.Request, id ID)
	// UpdateProduct Update a product
	// (PUT /products/{id})
	UpdateProduct(w http.ResponseWriter, r *http.Request, id ID)
	// GetSupplier Get supplier configuration
	// (GET /supplier)
	GetSupplier(w http.ResponseWriter, r *http.Request)
	// PutSupplier Create or update supplier configuration
	// (PUT /supplier)
	PutSupplier(w http.ResponseWriter, r *http.Request)
	// DeleteLetterhead Delete a custom letterhead PDF (reverts to embedded default)
	// (DELETE /supplier/letterhead/{filename})
	DeleteLetterhead(w http.ResponseWriter, r *http.Request, filename string)
	// UploadLetterhead Upload a custom letterhead PDF
	// (PUT /supplier/letterhead/{filename})
	UploadLetterhead(w http.ResponseWriter, r *http.Request, filename string)
	// GetNextCodes Preview the next auto-generated codes (without consuming them)
	// (GET /supplier/next-codes)
	GetNextCodes(w http.ResponseWriter, r *http.Request)
	// GetUiConfig Operator-defined UI settings
	// (GET /ui-config)
	GetUiConfig(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddSupportingDocument

func (siw *ServerInterfaceWrapper) AddSupportingDocument(w http.ResponseWriter, r *http.Request)

AddSupportingDocument operation middleware

func (*ServerInterfaceWrapper) CancelInvoice

func (siw *ServerInterfaceWrapper) CancelInvoice(w http.ResponseWriter, r *http.Request)

CancelInvoice operation middleware

func (*ServerInterfaceWrapper) Chat

Chat operation middleware

func (*ServerInterfaceWrapper) CreateCustomer

func (siw *ServerInterfaceWrapper) CreateCustomer(w http.ResponseWriter, r *http.Request)

CreateCustomer operation middleware

func (*ServerInterfaceWrapper) CreateInvoice

func (siw *ServerInterfaceWrapper) CreateInvoice(w http.ResponseWriter, r *http.Request)

CreateInvoice operation middleware

func (*ServerInterfaceWrapper) CreateProduct

func (siw *ServerInterfaceWrapper) CreateProduct(w http.ResponseWriter, r *http.Request)

CreateProduct operation middleware

func (*ServerInterfaceWrapper) DeleteCustomer

func (siw *ServerInterfaceWrapper) DeleteCustomer(w http.ResponseWriter, r *http.Request)

DeleteCustomer operation middleware

func (*ServerInterfaceWrapper) DeleteInvoice

func (siw *ServerInterfaceWrapper) DeleteInvoice(w http.ResponseWriter, r *http.Request)

DeleteInvoice operation middleware

func (*ServerInterfaceWrapper) DeleteLetterhead

func (siw *ServerInterfaceWrapper) DeleteLetterhead(w http.ResponseWriter, r *http.Request)

DeleteLetterhead operation middleware

func (*ServerInterfaceWrapper) DeleteProduct

func (siw *ServerInterfaceWrapper) DeleteProduct(w http.ResponseWriter, r *http.Request)

DeleteProduct operation middleware

func (*ServerInterfaceWrapper) DeleteSupportingDocument

func (siw *ServerInterfaceWrapper) DeleteSupportingDocument(w http.ResponseWriter, r *http.Request)

DeleteSupportingDocument operation middleware

func (*ServerInterfaceWrapper) ExportDatev

func (siw *ServerInterfaceWrapper) ExportDatev(w http.ResponseWriter, r *http.Request)

ExportDatev operation middleware

func (*ServerInterfaceWrapper) GetCustomer

func (siw *ServerInterfaceWrapper) GetCustomer(w http.ResponseWriter, r *http.Request)

GetCustomer operation middleware

func (*ServerInterfaceWrapper) GetCustomerByCode

func (siw *ServerInterfaceWrapper) GetCustomerByCode(w http.ResponseWriter, r *http.Request)

GetCustomerByCode operation middleware

func (*ServerInterfaceWrapper) GetHealth

func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetInvoice

func (siw *ServerInterfaceWrapper) GetInvoice(w http.ResponseWriter, r *http.Request)

GetInvoice operation middleware

func (*ServerInterfaceWrapper) GetInvoiceByCode

func (siw *ServerInterfaceWrapper) GetInvoiceByCode(w http.ResponseWriter, r *http.Request)

GetInvoiceByCode operation middleware

func (*ServerInterfaceWrapper) GetInvoiceStats

func (siw *ServerInterfaceWrapper) GetInvoiceStats(w http.ResponseWriter, r *http.Request)

GetInvoiceStats operation middleware

func (*ServerInterfaceWrapper) GetInvoiceXml

func (siw *ServerInterfaceWrapper) GetInvoiceXml(w http.ResponseWriter, r *http.Request)

GetInvoiceXml operation middleware

func (*ServerInterfaceWrapper) GetMonthlyRevenue

func (siw *ServerInterfaceWrapper) GetMonthlyRevenue(w http.ResponseWriter, r *http.Request)

GetMonthlyRevenue operation middleware

func (*ServerInterfaceWrapper) GetNextCodes

func (siw *ServerInterfaceWrapper) GetNextCodes(w http.ResponseWriter, r *http.Request)

GetNextCodes operation middleware

func (*ServerInterfaceWrapper) GetProduct

func (siw *ServerInterfaceWrapper) GetProduct(w http.ResponseWriter, r *http.Request)

GetProduct operation middleware

func (*ServerInterfaceWrapper) GetProductByCode

func (siw *ServerInterfaceWrapper) GetProductByCode(w http.ResponseWriter, r *http.Request)

GetProductByCode operation middleware

func (*ServerInterfaceWrapper) GetSupplier

func (siw *ServerInterfaceWrapper) GetSupplier(w http.ResponseWriter, r *http.Request)

GetSupplier operation middleware

func (*ServerInterfaceWrapper) GetSupportingDocument

func (siw *ServerInterfaceWrapper) GetSupportingDocument(w http.ResponseWriter, r *http.Request)

GetSupportingDocument operation middleware

func (*ServerInterfaceWrapper) GetUiConfig

func (siw *ServerInterfaceWrapper) GetUiConfig(w http.ResponseWriter, r *http.Request)

GetUiConfig operation middleware

func (*ServerInterfaceWrapper) ListCustomers

func (siw *ServerInterfaceWrapper) ListCustomers(w http.ResponseWriter, r *http.Request)

ListCustomers operation middleware

func (*ServerInterfaceWrapper) ListInvoices

func (siw *ServerInterfaceWrapper) ListInvoices(w http.ResponseWriter, r *http.Request)

ListInvoices operation middleware

func (*ServerInterfaceWrapper) ListProducts

func (siw *ServerInterfaceWrapper) ListProducts(w http.ResponseWriter, r *http.Request)

ListProducts operation middleware

func (*ServerInterfaceWrapper) PrintInvoice

func (siw *ServerInterfaceWrapper) PrintInvoice(w http.ResponseWriter, r *http.Request)

PrintInvoice operation middleware

func (*ServerInterfaceWrapper) PutSupplier

func (siw *ServerInterfaceWrapper) PutSupplier(w http.ResponseWriter, r *http.Request)

PutSupplier operation middleware

func (*ServerInterfaceWrapper) UpdateCustomer

func (siw *ServerInterfaceWrapper) UpdateCustomer(w http.ResponseWriter, r *http.Request)

UpdateCustomer operation middleware

func (*ServerInterfaceWrapper) UpdateInvoice

func (siw *ServerInterfaceWrapper) UpdateInvoice(w http.ResponseWriter, r *http.Request)

UpdateInvoice operation middleware

func (*ServerInterfaceWrapper) UpdateInvoiceStatus

func (siw *ServerInterfaceWrapper) UpdateInvoiceStatus(w http.ResponseWriter, r *http.Request)

UpdateInvoiceStatus operation middleware

func (*ServerInterfaceWrapper) UpdateProduct

func (siw *ServerInterfaceWrapper) UpdateProduct(w http.ResponseWriter, r *http.Request)

UpdateProduct operation middleware

func (*ServerInterfaceWrapper) UpdateSupportingDocument

func (siw *ServerInterfaceWrapper) UpdateSupportingDocument(w http.ResponseWriter, r *http.Request)

UpdateSupportingDocument operation middleware

func (*ServerInterfaceWrapper) UploadLetterhead

func (siw *ServerInterfaceWrapper) UploadLetterhead(w http.ResponseWriter, r *http.Request)

UploadLetterhead operation middleware

type Sort

type Sort = string

Sort defines model for Sort.

type StatusChange

type StatusChange struct {
	Status InvoiceStatus `json:"status"`
}

StatusChange defines model for StatusChange.

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// Chat Natural language chat interface for creating and querying data
	// (POST /chat)
	Chat(ctx context.Context, request ChatRequestObject) (ChatResponseObject, error)
	// ListCustomers List customers
	// (GET /customers)
	ListCustomers(ctx context.Context, request ListCustomersRequestObject) (ListCustomersResponseObject, error)
	// CreateCustomer Create a new customer
	// (POST /customers)
	CreateCustomer(ctx context.Context, request CreateCustomerRequestObject) (CreateCustomerResponseObject, error)
	// GetCustomerByCode Get a customer by code
	// (GET /customers/by-code/{code})
	GetCustomerByCode(ctx context.Context, request GetCustomerByCodeRequestObject) (GetCustomerByCodeResponseObject, error)
	// DeleteCustomer Delete a customer
	// (DELETE /customers/{id})
	DeleteCustomer(ctx context.Context, request DeleteCustomerRequestObject) (DeleteCustomerResponseObject, error)
	// GetCustomer Get a customer by ID
	// (GET /customers/{id})
	GetCustomer(ctx context.Context, request GetCustomerRequestObject) (GetCustomerResponseObject, error)
	// UpdateCustomer Update a customer
	// (PUT /customers/{id})
	UpdateCustomer(ctx context.Context, request UpdateCustomerRequestObject) (UpdateCustomerResponseObject, error)
	// GetHealth Health check
	// (GET /health)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
	// ListInvoices List invoices
	// (GET /invoices)
	ListInvoices(ctx context.Context, request ListInvoicesRequestObject) (ListInvoicesResponseObject, error)
	// CreateInvoice Create a new invoice
	// (POST /invoices)
	CreateInvoice(ctx context.Context, request CreateInvoiceRequestObject) (CreateInvoiceResponseObject, error)
	// GetInvoiceByCode Get an invoice by code
	// (GET /invoices/by-code/{code})
	GetInvoiceByCode(ctx context.Context, request GetInvoiceByCodeRequestObject) (GetInvoiceByCodeResponseObject, error)
	// ExportDatev Export invoices as DATEV CSV
	// (GET /invoices/export/datev)
	ExportDatev(ctx context.Context, request ExportDatevRequestObject) (ExportDatevResponseObject, error)
	// GetMonthlyRevenue Get monthly revenue for a date range
	// (GET /invoices/revenue)
	GetMonthlyRevenue(ctx context.Context, request GetMonthlyRevenueRequestObject) (GetMonthlyRevenueResponseObject, error)
	// GetInvoiceStats Get aggregated invoice statistics (counts per status and revenue)
	// (GET /invoices/stats)
	GetInvoiceStats(ctx context.Context, request GetInvoiceStatsRequestObject) (GetInvoiceStatsResponseObject, error)
	// DeleteInvoice Delete an invoice (draft only)
	// (DELETE /invoices/{id})
	DeleteInvoice(ctx context.Context, request DeleteInvoiceRequestObject) (DeleteInvoiceResponseObject, error)
	// GetInvoice Get an invoice by ID
	// (GET /invoices/{id})
	GetInvoice(ctx context.Context, request GetInvoiceRequestObject) (GetInvoiceResponseObject, error)
	// UpdateInvoice Update an invoice (draft only)
	// (PUT /invoices/{id})
	UpdateInvoice(ctx context.Context, request UpdateInvoiceRequestObject) (UpdateInvoiceResponseObject, error)
	// CancelInvoice Cancel an invoice and create a credit note
	// (POST /invoices/{id}/cancel)
	CancelInvoice(ctx context.Context, request CancelInvoiceRequestObject) (CancelInvoiceResponseObject, error)
	// PrintInvoice Render invoice as PDF or LaTeX
	// (GET /invoices/{id}/print)
	PrintInvoice(ctx context.Context, request PrintInvoiceRequestObject) (PrintInvoiceResponseObject, error)
	// UpdateInvoiceStatus Change invoice status
	// (PATCH /invoices/{id}/status)
	UpdateInvoiceStatus(ctx context.Context, request UpdateInvoiceStatusRequestObject) (UpdateInvoiceStatusResponseObject, error)
	// AddSupportingDocument Attach a supporting document (BG-24) to a draft invoice
	// (POST /invoices/{id}/supporting-documents)
	AddSupportingDocument(ctx context.Context, request AddSupportingDocumentRequestObject) (AddSupportingDocumentResponseObject, error)
	// DeleteSupportingDocument Remove a supporting document from a draft invoice
	// (DELETE /invoices/{id}/supporting-documents/{documentId})
	DeleteSupportingDocument(ctx context.Context, request DeleteSupportingDocumentRequestObject) (DeleteSupportingDocumentResponseObject, error)
	// GetSupportingDocument Download a supporting document
	// (GET /invoices/{id}/supporting-documents/{documentId})
	GetSupportingDocument(ctx context.Context, request GetSupportingDocumentRequestObject) (GetSupportingDocumentResponseObject, error)
	// UpdateSupportingDocument Change description or page display of a supporting document
	// (PATCH /invoices/{id}/supporting-documents/{documentId})
	UpdateSupportingDocument(ctx context.Context, request UpdateSupportingDocumentRequestObject) (UpdateSupportingDocumentResponseObject, error)
	// GetInvoiceXml Get CII XML for an invoice (ZUGFeRD or XRechnung)
	// (GET /invoices/{id}/xml)
	GetInvoiceXml(ctx context.Context, request GetInvoiceXmlRequestObject) (GetInvoiceXmlResponseObject, error)
	// ListProducts List products
	// (GET /products)
	ListProducts(ctx context.Context, request ListProductsRequestObject) (ListProductsResponseObject, error)
	// CreateProduct Create a new product
	// (POST /products)
	CreateProduct(ctx context.Context, request CreateProductRequestObject) (CreateProductResponseObject, error)
	// GetProductByCode Get a product by code
	// (GET /products/by-code/{code})
	GetProductByCode(ctx context.Context, request GetProductByCodeRequestObject) (GetProductByCodeResponseObject, error)
	// DeleteProduct Delete a product
	// (DELETE /products/{id})
	DeleteProduct(ctx context.Context, request DeleteProductRequestObject) (DeleteProductResponseObject, error)
	// GetProduct Get a product by ID
	// (GET /products/{id})
	GetProduct(ctx context.Context, request GetProductRequestObject) (GetProductResponseObject, error)
	// UpdateProduct Update a product
	// (PUT /products/{id})
	UpdateProduct(ctx context.Context, request UpdateProductRequestObject) (UpdateProductResponseObject, error)
	// GetSupplier Get supplier configuration
	// (GET /supplier)
	GetSupplier(ctx context.Context, request GetSupplierRequestObject) (GetSupplierResponseObject, error)
	// PutSupplier Create or update supplier configuration
	// (PUT /supplier)
	PutSupplier(ctx context.Context, request PutSupplierRequestObject) (PutSupplierResponseObject, error)
	// DeleteLetterhead Delete a custom letterhead PDF (reverts to embedded default)
	// (DELETE /supplier/letterhead/{filename})
	DeleteLetterhead(ctx context.Context, request DeleteLetterheadRequestObject) (DeleteLetterheadResponseObject, error)
	// UploadLetterhead Upload a custom letterhead PDF
	// (PUT /supplier/letterhead/{filename})
	UploadLetterhead(ctx context.Context, request UploadLetterheadRequestObject) (UploadLetterheadResponseObject, error)
	// GetNextCodes Preview the next auto-generated codes (without consuming them)
	// (GET /supplier/next-codes)
	GetNextCodes(ctx context.Context, request GetNextCodesRequestObject) (GetNextCodesResponseObject, error)
	// GetUiConfig Operator-defined UI settings
	// (GET /ui-config)
	GetUiConfig(ctx context.Context, request GetUiConfigRequestObject) (GetUiConfigResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SupplierConfig

type SupplierConfig struct {
	UnderscoreId  string `json:"_id"`
	UnderscoreRev string `json:"_rev"`

	// Accounts Bank accounts for payment instructions
	Accounts *[]BankAccount `json:"accounts,omitempty"`

	// CodePatterns Patterns for auto-generating codes. Variables: %N (4-digit seq),
	// %N6 (6-digit seq), %Y (year), %M (month).
	// Sequence resets per year if %Y is used, per month if %M is used.
	CodePatterns *CodePatterns     `json:"code_patterns,omitempty"`
	Letterhead   *LetterheadConfig `json:"letterhead,omitempty"`

	// Party GOBL org.Party representing the supplier
	Party org.Party `json:"party"`

	// ShowPaymentNote Whether to show automatic payment terms note on invoices
	ShowPaymentNote *bool `json:"show_payment_note,omitempty"`

	// VatCountry VAT country code (e.g. DE)
	VatCountry *string `json:"vat_country,omitempty"`

	// VatHistory VAT rate history
	VatHistory *[]VatRate `json:"vat_history,omitempty"`
}

SupplierConfig defines model for SupplierConfig.

type SupplierConfigInput

type SupplierConfigInput struct {
	// Accounts Bank accounts for payment instructions
	Accounts *[]BankAccount `json:"accounts,omitempty"`

	// CodePatterns Patterns for auto-generating codes. Variables: %N (4-digit seq),
	// %N6 (6-digit seq), %Y (year), %M (month).
	// Sequence resets per year if %Y is used, per month if %M is used.
	CodePatterns *CodePatterns     `json:"code_patterns,omitempty"`
	Letterhead   *LetterheadConfig `json:"letterhead,omitempty"`

	// Party GOBL org.Party representing the supplier
	Party org.Party `json:"party"`

	// ShowPaymentNote Whether to show automatic payment terms note on invoices
	ShowPaymentNote *bool `json:"show_payment_note,omitempty"`

	// VatCountry VAT country code (e.g. DE)
	VatCountry *string `json:"vat_country,omitempty"`

	// VatHistory VAT rate history
	VatHistory *[]VatRate `json:"vat_history,omitempty"`
}

SupplierConfigInput defines model for SupplierConfigInput.

type SupportingDocument

type SupportingDocument struct {
	Description *string                `json:"description,omitempty"`
	Filename    string                 `json:"filename"`
	Id          string                 `json:"id"`
	Mime        SupportingDocumentMime `json:"mime"`

	// ShowPages Append the content as pages to the PDF (PDF, PNG and JPEG only)
	ShowPages bool  `json:"show_pages"`
	Size      int64 `json:"size"`
}

SupportingDocument defines model for SupportingDocument.

type SupportingDocumentMime

type SupportingDocumentMime string

SupportingDocumentMime defines model for SupportingDocument.Mime.

const (
	Applicationpdf                                               SupportingDocumentMime = "application/pdf"
	ApplicationvndOasisOpendocumentSpreadsheet                   SupportingDocumentMime = "application/vnd.oasis.opendocument.spreadsheet"
	ApplicationvndOpenxmlformatsOfficedocumentSpreadsheetmlSheet SupportingDocumentMime = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
	Imagejpeg                                                    SupportingDocumentMime = "image/jpeg"
	Imagepng                                                     SupportingDocumentMime = "image/png"
	Textcsv                                                      SupportingDocumentMime = "text/csv"
)

Defines values for SupportingDocumentMime.

func (SupportingDocumentMime) Valid

func (e SupportingDocumentMime) Valid() bool

Valid indicates whether the value is a known member of the SupportingDocumentMime enum.

type SupportingDocumentUpdate

type SupportingDocumentUpdate struct {
	Description *string `json:"description,omitempty"`
	ShowPages   *bool   `json:"show_pages,omitempty"`
}

SupportingDocumentUpdate defines model for SupportingDocumentUpdate.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UiConfig

type UiConfig struct {
	// Banner Permanent operator notice in the UI, absent when no text is configured
	Banner *Banner `json:"banner,omitempty"`
}

UiConfig defines model for UiConfig.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) AddSupportingDocument

func (_ Unimplemented) AddSupportingDocument(w http.ResponseWriter, r *http.Request, id ID)

AddSupportingDocument Attach a supporting document (BG-24) to a draft invoice (POST /invoices/{id}/supporting-documents)

func (Unimplemented) CancelInvoice

func (_ Unimplemented) CancelInvoice(w http.ResponseWriter, r *http.Request, id ID)

CancelInvoice Cancel an invoice and create a credit note (POST /invoices/{id}/cancel)

func (Unimplemented) Chat

Chat Natural language chat interface for creating and querying data (POST /chat)

func (Unimplemented) CreateCustomer

func (_ Unimplemented) CreateCustomer(w http.ResponseWriter, r *http.Request)

CreateCustomer Create a new customer (POST /customers)

func (Unimplemented) CreateInvoice

func (_ Unimplemented) CreateInvoice(w http.ResponseWriter, r *http.Request)

CreateInvoice Create a new invoice (POST /invoices)

func (Unimplemented) CreateProduct

func (_ Unimplemented) CreateProduct(w http.ResponseWriter, r *http.Request)

CreateProduct Create a new product (POST /products)

func (Unimplemented) DeleteCustomer

func (_ Unimplemented) DeleteCustomer(w http.ResponseWriter, r *http.Request, id ID)

DeleteCustomer Delete a customer (DELETE /customers/{id})

func (Unimplemented) DeleteInvoice

func (_ Unimplemented) DeleteInvoice(w http.ResponseWriter, r *http.Request, id ID)

DeleteInvoice Delete an invoice (draft only) (DELETE /invoices/{id})

func (Unimplemented) DeleteLetterhead

func (_ Unimplemented) DeleteLetterhead(w http.ResponseWriter, r *http.Request, filename string)

DeleteLetterhead Delete a custom letterhead PDF (reverts to embedded default) (DELETE /supplier/letterhead/{filename})

func (Unimplemented) DeleteProduct

func (_ Unimplemented) DeleteProduct(w http.ResponseWriter, r *http.Request, id ID)

DeleteProduct Delete a product (DELETE /products/{id})

func (Unimplemented) DeleteSupportingDocument

func (_ Unimplemented) DeleteSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)

DeleteSupportingDocument Remove a supporting document from a draft invoice (DELETE /invoices/{id}/supporting-documents/{documentId})

func (Unimplemented) ExportDatev

func (_ Unimplemented) ExportDatev(w http.ResponseWriter, r *http.Request, params ExportDatevParams)

ExportDatev Export invoices as DATEV CSV (GET /invoices/export/datev)

func (Unimplemented) GetCustomer

func (_ Unimplemented) GetCustomer(w http.ResponseWriter, r *http.Request, id ID)

GetCustomer Get a customer by ID (GET /customers/{id})

func (Unimplemented) GetCustomerByCode

func (_ Unimplemented) GetCustomerByCode(w http.ResponseWriter, r *http.Request, code string)

GetCustomerByCode Get a customer by code (GET /customers/by-code/{code})

func (Unimplemented) GetHealth

func (_ Unimplemented) GetHealth(w http.ResponseWriter, r *http.Request)

GetHealth Health check (GET /health)

func (Unimplemented) GetInvoice

func (_ Unimplemented) GetInvoice(w http.ResponseWriter, r *http.Request, id ID)

GetInvoice Get an invoice by ID (GET /invoices/{id})

func (Unimplemented) GetInvoiceByCode

func (_ Unimplemented) GetInvoiceByCode(w http.ResponseWriter, r *http.Request, code string)

GetInvoiceByCode Get an invoice by code (GET /invoices/by-code/{code})

func (Unimplemented) GetInvoiceStats

func (_ Unimplemented) GetInvoiceStats(w http.ResponseWriter, r *http.Request)

GetInvoiceStats Get aggregated invoice statistics (counts per status and revenue) (GET /invoices/stats)

func (Unimplemented) GetInvoiceXml

func (_ Unimplemented) GetInvoiceXml(w http.ResponseWriter, r *http.Request, id ID, params GetInvoiceXmlParams)

GetInvoiceXml Get CII XML for an invoice (ZUGFeRD or XRechnung) (GET /invoices/{id}/xml)

func (Unimplemented) GetMonthlyRevenue

func (_ Unimplemented) GetMonthlyRevenue(w http.ResponseWriter, r *http.Request, params GetMonthlyRevenueParams)

GetMonthlyRevenue Get monthly revenue for a date range (GET /invoices/revenue)

func (Unimplemented) GetNextCodes

func (_ Unimplemented) GetNextCodes(w http.ResponseWriter, r *http.Request)

GetNextCodes Preview the next auto-generated codes (without consuming them) (GET /supplier/next-codes)

func (Unimplemented) GetProduct

func (_ Unimplemented) GetProduct(w http.ResponseWriter, r *http.Request, id ID)

GetProduct Get a product by ID (GET /products/{id})

func (Unimplemented) GetProductByCode

func (_ Unimplemented) GetProductByCode(w http.ResponseWriter, r *http.Request, code string)

GetProductByCode Get a product by code (GET /products/by-code/{code})

func (Unimplemented) GetSupplier

func (_ Unimplemented) GetSupplier(w http.ResponseWriter, r *http.Request)

GetSupplier Get supplier configuration (GET /supplier)

func (Unimplemented) GetSupportingDocument

func (_ Unimplemented) GetSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)

GetSupportingDocument Download a supporting document (GET /invoices/{id}/supporting-documents/{documentId})

func (Unimplemented) GetUiConfig

func (_ Unimplemented) GetUiConfig(w http.ResponseWriter, r *http.Request)

GetUiConfig Operator-defined UI settings (GET /ui-config)

func (Unimplemented) ListCustomers

func (_ Unimplemented) ListCustomers(w http.ResponseWriter, r *http.Request, params ListCustomersParams)

ListCustomers List customers (GET /customers)

func (Unimplemented) ListInvoices

func (_ Unimplemented) ListInvoices(w http.ResponseWriter, r *http.Request, params ListInvoicesParams)

ListInvoices List invoices (GET /invoices)

func (Unimplemented) ListProducts

func (_ Unimplemented) ListProducts(w http.ResponseWriter, r *http.Request, params ListProductsParams)

ListProducts List products (GET /products)

func (Unimplemented) PrintInvoice

func (_ Unimplemented) PrintInvoice(w http.ResponseWriter, r *http.Request, id ID, params PrintInvoiceParams)

PrintInvoice Render invoice as PDF or LaTeX (GET /invoices/{id}/print)

func (Unimplemented) PutSupplier

func (_ Unimplemented) PutSupplier(w http.ResponseWriter, r *http.Request)

PutSupplier Create or update supplier configuration (PUT /supplier)

func (Unimplemented) UpdateCustomer

func (_ Unimplemented) UpdateCustomer(w http.ResponseWriter, r *http.Request, id ID)

UpdateCustomer Update a customer (PUT /customers/{id})

func (Unimplemented) UpdateInvoice

func (_ Unimplemented) UpdateInvoice(w http.ResponseWriter, r *http.Request, id ID)

UpdateInvoice Update an invoice (draft only) (PUT /invoices/{id})

func (Unimplemented) UpdateInvoiceStatus

func (_ Unimplemented) UpdateInvoiceStatus(w http.ResponseWriter, r *http.Request, id ID)

UpdateInvoiceStatus Change invoice status (PATCH /invoices/{id}/status)

func (Unimplemented) UpdateProduct

func (_ Unimplemented) UpdateProduct(w http.ResponseWriter, r *http.Request, id ID)

UpdateProduct Update a product (PUT /products/{id})

func (Unimplemented) UpdateSupportingDocument

func (_ Unimplemented) UpdateSupportingDocument(w http.ResponseWriter, r *http.Request, id ID, documentId string)

UpdateSupportingDocument Change description or page display of a supporting document (PATCH /invoices/{id}/supporting-documents/{documentId})

func (Unimplemented) UploadLetterhead

func (_ Unimplemented) UploadLetterhead(w http.ResponseWriter, r *http.Request, filename string)

UploadLetterhead Upload a custom letterhead PDF (PUT /supplier/letterhead/{filename})

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UpdateCustomer200JSONResponse

type UpdateCustomer200JSONResponse Customer

func (UpdateCustomer200JSONResponse) VisitUpdateCustomerResponse

func (response UpdateCustomer200JSONResponse) VisitUpdateCustomerResponse(w http.ResponseWriter) error

type UpdateCustomer404JSONResponse

type UpdateCustomer404JSONResponse Error

func (UpdateCustomer404JSONResponse) VisitUpdateCustomerResponse

func (response UpdateCustomer404JSONResponse) VisitUpdateCustomerResponse(w http.ResponseWriter) error

type UpdateCustomer422JSONResponse

type UpdateCustomer422JSONResponse ValidationError

func (UpdateCustomer422JSONResponse) VisitUpdateCustomerResponse

func (response UpdateCustomer422JSONResponse) VisitUpdateCustomerResponse(w http.ResponseWriter) error

type UpdateCustomerJSONRequestBody

type UpdateCustomerJSONRequestBody = CustomerInput

UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType.

type UpdateCustomerRequestObject

type UpdateCustomerRequestObject struct {
	Id   ID `json:"id"`
	Body *UpdateCustomerJSONRequestBody
}

type UpdateCustomerResponseObject

type UpdateCustomerResponseObject interface {
	VisitUpdateCustomerResponse(w http.ResponseWriter) error
}

type UpdateInvoice200JSONResponse

type UpdateInvoice200JSONResponse InvoiceDocument

func (UpdateInvoice200JSONResponse) VisitUpdateInvoiceResponse

func (response UpdateInvoice200JSONResponse) VisitUpdateInvoiceResponse(w http.ResponseWriter) error

type UpdateInvoice404JSONResponse

type UpdateInvoice404JSONResponse Error

func (UpdateInvoice404JSONResponse) VisitUpdateInvoiceResponse

func (response UpdateInvoice404JSONResponse) VisitUpdateInvoiceResponse(w http.ResponseWriter) error

type UpdateInvoice409JSONResponse

type UpdateInvoice409JSONResponse Error

func (UpdateInvoice409JSONResponse) VisitUpdateInvoiceResponse

func (response UpdateInvoice409JSONResponse) VisitUpdateInvoiceResponse(w http.ResponseWriter) error

type UpdateInvoice422JSONResponse

type UpdateInvoice422JSONResponse ValidationError

func (UpdateInvoice422JSONResponse) VisitUpdateInvoiceResponse

func (response UpdateInvoice422JSONResponse) VisitUpdateInvoiceResponse(w http.ResponseWriter) error

type UpdateInvoiceJSONRequestBody

type UpdateInvoiceJSONRequestBody = InvoiceDocumentInput

UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType.

type UpdateInvoiceRequestObject

type UpdateInvoiceRequestObject struct {
	Id   ID `json:"id"`
	Body *UpdateInvoiceJSONRequestBody
}

type UpdateInvoiceResponseObject

type UpdateInvoiceResponseObject interface {
	VisitUpdateInvoiceResponse(w http.ResponseWriter) error
}

type UpdateInvoiceStatus200JSONResponse

type UpdateInvoiceStatus200JSONResponse InvoiceDocument

func (UpdateInvoiceStatus200JSONResponse) VisitUpdateInvoiceStatusResponse

func (response UpdateInvoiceStatus200JSONResponse) VisitUpdateInvoiceStatusResponse(w http.ResponseWriter) error

type UpdateInvoiceStatus404JSONResponse

type UpdateInvoiceStatus404JSONResponse Error

func (UpdateInvoiceStatus404JSONResponse) VisitUpdateInvoiceStatusResponse

func (response UpdateInvoiceStatus404JSONResponse) VisitUpdateInvoiceStatusResponse(w http.ResponseWriter) error

type UpdateInvoiceStatus409JSONResponse

type UpdateInvoiceStatus409JSONResponse Error

func (UpdateInvoiceStatus409JSONResponse) VisitUpdateInvoiceStatusResponse

func (response UpdateInvoiceStatus409JSONResponse) VisitUpdateInvoiceStatusResponse(w http.ResponseWriter) error

type UpdateInvoiceStatusJSONRequestBody

type UpdateInvoiceStatusJSONRequestBody = StatusChange

UpdateInvoiceStatusJSONRequestBody defines body for UpdateInvoiceStatus for application/json ContentType.

type UpdateInvoiceStatusRequestObject

type UpdateInvoiceStatusRequestObject struct {
	Id   ID `json:"id"`
	Body *UpdateInvoiceStatusJSONRequestBody
}

type UpdateInvoiceStatusResponseObject

type UpdateInvoiceStatusResponseObject interface {
	VisitUpdateInvoiceStatusResponse(w http.ResponseWriter) error
}

type UpdateProduct200JSONResponse

type UpdateProduct200JSONResponse Product

func (UpdateProduct200JSONResponse) VisitUpdateProductResponse

func (response UpdateProduct200JSONResponse) VisitUpdateProductResponse(w http.ResponseWriter) error

type UpdateProduct404JSONResponse

type UpdateProduct404JSONResponse Error

func (UpdateProduct404JSONResponse) VisitUpdateProductResponse

func (response UpdateProduct404JSONResponse) VisitUpdateProductResponse(w http.ResponseWriter) error

type UpdateProduct422JSONResponse

type UpdateProduct422JSONResponse ValidationError

func (UpdateProduct422JSONResponse) VisitUpdateProductResponse

func (response UpdateProduct422JSONResponse) VisitUpdateProductResponse(w http.ResponseWriter) error

type UpdateProductJSONRequestBody

type UpdateProductJSONRequestBody = ProductInput

UpdateProductJSONRequestBody defines body for UpdateProduct for application/json ContentType.

type UpdateProductRequestObject

type UpdateProductRequestObject struct {
	Id   ID `json:"id"`
	Body *UpdateProductJSONRequestBody
}

type UpdateProductResponseObject

type UpdateProductResponseObject interface {
	VisitUpdateProductResponse(w http.ResponseWriter) error
}

type UpdateSupportingDocument200JSONResponse

type UpdateSupportingDocument200JSONResponse InvoiceDocument

func (UpdateSupportingDocument200JSONResponse) VisitUpdateSupportingDocumentResponse

func (response UpdateSupportingDocument200JSONResponse) VisitUpdateSupportingDocumentResponse(w http.ResponseWriter) error

type UpdateSupportingDocument404JSONResponse

type UpdateSupportingDocument404JSONResponse Error

func (UpdateSupportingDocument404JSONResponse) VisitUpdateSupportingDocumentResponse

func (response UpdateSupportingDocument404JSONResponse) VisitUpdateSupportingDocumentResponse(w http.ResponseWriter) error

type UpdateSupportingDocument409JSONResponse

type UpdateSupportingDocument409JSONResponse Error

func (UpdateSupportingDocument409JSONResponse) VisitUpdateSupportingDocumentResponse

func (response UpdateSupportingDocument409JSONResponse) VisitUpdateSupportingDocumentResponse(w http.ResponseWriter) error

type UpdateSupportingDocumentJSONRequestBody

type UpdateSupportingDocumentJSONRequestBody = SupportingDocumentUpdate

UpdateSupportingDocumentJSONRequestBody defines body for UpdateSupportingDocument for application/json ContentType.

type UpdateSupportingDocumentRequestObject

type UpdateSupportingDocumentRequestObject struct {
	Id         ID     `json:"id"`
	DocumentId string `json:"documentId"`
	Body       *UpdateSupportingDocumentJSONRequestBody
}

type UpdateSupportingDocumentResponseObject

type UpdateSupportingDocumentResponseObject interface {
	VisitUpdateSupportingDocumentResponse(w http.ResponseWriter) error
}

type UploadLetterhead204Response

type UploadLetterhead204Response struct {
}

func (UploadLetterhead204Response) VisitUploadLetterheadResponse

func (response UploadLetterhead204Response) VisitUploadLetterheadResponse(w http.ResponseWriter) error

type UploadLetterhead400JSONResponse

type UploadLetterhead400JSONResponse Error

func (UploadLetterhead400JSONResponse) VisitUploadLetterheadResponse

func (response UploadLetterhead400JSONResponse) VisitUploadLetterheadResponse(w http.ResponseWriter) error

type UploadLetterheadRequestObject

type UploadLetterheadRequestObject struct {
	Filename string `json:"filename"`
	Body     io.Reader
}

type UploadLetterheadResponseObject

type UploadLetterheadResponseObject interface {
	VisitUploadLetterheadResponse(w http.ResponseWriter) error
}

type ValidationError

type ValidationError struct {
	// Error Example: Validation failed
	Error  string `json:"error"`
	Fields []struct {
		Code    string `json:"code"`
		Field   string `json:"field"`
		Message string `json:"message"`
	} `json:"fields"`
}

ValidationError defines model for ValidationError.

type VatRate

type VatRate struct {
	Description *string `json:"description,omitempty"`
	IsOngoing   *bool   `json:"is_ongoing,omitempty"`

	// ReducedRate Reduced VAT rate as decimal (e.g. 0.07 for 7%)
	ReducedRate *float64 `json:"reduced_rate,omitempty"`

	// StandardRate Standard VAT rate as decimal (e.g. 0.19 for 19%)
	StandardRate *float64            `json:"standard_rate,omitempty"`
	ValidFrom    *openapi_types.Date `json:"valid_from,omitempty"`
	ValidTo      *openapi_types.Date `json:"valid_to,omitempty"`
}

VatRate defines model for VatRate.

type YearlyStats

type YearlyStats struct {
	Paid *int    `json:"paid,omitempty"`
	Sent *int    `json:"sent,omitempty"`
	Year *string `json:"year,omitempty"`
}

YearlyStats defines model for YearlyStats.

Jump to

Keyboard shortcuts

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