elorus

package
v1.0.53 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: GPL-3.0 Imports: 4 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"`
	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"`
	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"`
		MydataClassificationCategory string   `json:"mydata_classification_category"`
		MydataClassificationType     string   `json:"mydata_classification_type"`
	} `json:"items"`
}

type Elorus

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

func NewElorus

func NewElorus(url string, token string, organizationID string, environment string) *Elorus

func (*Elorus) CreateContact

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

func (*Elorus) CreateInvoice

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

type IProvider

type IProvider interface {
	CreateContact(request *CreateContactRequest) (*Response, error)
	CreateInvoice(request *CreateInvoiceRequest) (*Response, error)
}

type Response

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

Jump to

Keyboard shortcuts

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