Help us shape the future of Go! Take the 2026 Go Developer Survey

elorus

package
v1.3.217 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateContactRequest

type CreateContactRequest struct {
	FirstName string `json:"first_name"`
	Active    bool   `json:"active"`
	Company   string `json:"company"`
	VatNumber string `json:"vat_number"`
	IsClient  bool   `json:"is_client"`
	Email     []struct {
		Email   string `json:"email"`
		Primary bool   `json:"primary"`
	} `json:"email"`
	Phones []struct {
		Number  string `json:"number"`
		Primary bool   `json:"primary"`
	} `json:"phones"`
}

type CreateInvoiceRequest

type CreateInvoiceRequest struct {
	Date              string `json:"date"`
	Client            string `json:"client"`
	ClientDisplayName string `json:"client_display_name"`
	ClientVatNumber   string `json:"client_vat_number"`
	ClientEmail       string `json:"client_email"`
	Number            string `json:"number"`
	DueDays           int    `json:"due_days"`
	Items             []struct {
		Product     string   `json:"product"`
		Title       string   `json:"title"`
		Description string   `json:"description"`
		Quantity    string   `json:"quantity"`
		UnitMeasure int      `json:"unit_measure"`
		UnitValue   string   `json:"unit_value"`
		Taxes       []string `json:"Taxes"`
		UnitTotal   string   `json:"unit_total"`
	} `json:"items"`
}

type DownloadInvoiceRequest added in v1.0.54

type DownloadInvoiceRequest struct {
	ID string `json:"id"`
}

type Elorus

type Elorus struct {
	// contains filtered or unexported fields
}

func NewElorus

func NewElorus(url string, token string, organizationID string, appService *app.App) *Elorus

func (*Elorus) CreateContact

func (e *Elorus) CreateContact(request *CreateContactRequest) (*Response, error)

func (*Elorus) CreateInvoice

func (e *Elorus) CreateInvoice(request *CreateInvoiceRequest) (*Response, error)

func (*Elorus) DownloadInvoice added in v1.0.54

func (e *Elorus) DownloadInvoice(request *DownloadInvoiceRequest) (*io.ReadCloser, error)

func (*Elorus) GetInvoiceList added in v1.0.54

func (e *Elorus) GetInvoiceList(request *GetInvoiceListRequest) (*InvoiceListResponse, error)

type GetInvoiceListRequest added in v1.0.54

type GetInvoiceListRequest struct {
	Client   string `json:"client"`
	Status   string `json:"status"`
	Page     string `json:"page"`
	PageSize string `json:"page_size"`
}

type IProvider

type IProvider interface {
	CreateContact(request *CreateContactRequest) (*Response, error)
	CreateInvoice(request *CreateInvoiceRequest) (*Response, error)
	GetInvoiceList(request *GetInvoiceListRequest) (*InvoiceListResponse, error)
	DownloadInvoice(request *DownloadInvoiceRequest) (*io.ReadCloser, error)
}

type InvoiceListResponse added in v1.0.54

type InvoiceListResponse struct {
	Count    int    `json:"count"`
	Next     string `json:"next"`
	Previous string `json:"previous"`
	Results  []struct {
		ID      string `json:"id"`
		Status  string `json:"status"`
		Date    string `json:"date"`
		DueDate string `json:"due_date"`
		Total   string `json:"total"`
	} `json:"results"`
}

type Response

type Response struct {
	ID string `json:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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