Documentation ¶
Index ¶
- type CreateContactRequest
- type CreateInvoiceRequest
- type DownloadInvoiceRequest
- type Elorus
- func (e *Elorus) CreateContact(request *CreateContactRequest) (*Response, error)
- func (e *Elorus) CreateInvoice(request *CreateInvoiceRequest) (*Response, error)
- func (e *Elorus) DownloadInvoice(request *DownloadInvoiceRequest) (*io.ReadCloser, error)
- func (e *Elorus) GetInvoiceList(request *GetInvoiceListRequest) (*InvoiceListResponse, error)
- type GetInvoiceListRequest
- type IProvider
- type InvoiceListResponse
- type Response
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 (*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 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
Click to show internal directories.
Click to hide internal directories.