tripletex

package module
v0.0.0-...-4771497 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "tripletex.no",
		Path:   "/v2",
	}
)

Functions

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.

Types

type Account

type Account struct {
	ID                             int       `json:"id,omitempty"`
	Version                        int       `json:"version,omitempty"`
	URL                            string    `json:"url"`
	Number                         int       `json:"number"`
	Name                           string    `json:"name"`
	Description                    string    `json:"description"`
	VATType                        VATType   `json:"vatType"`
	VATLocked                      bool      `json:"vatLocked"`
	Currency                       *Currency `json:"currency,omitempty"`
	IsCloseable                    bool      `json:"isCloseable"`
	IsApplicableForSupplierInvoice bool      `json:"isApplicableForSupplierInvoice"`
	RequireReconciliation          bool      `json:"requireReconciliation"`
	IsInactive                     bool      `json:"isInactive"`
	IsBankAccount                  bool      `json:"isBankAccount"`
	IsInvoiceAccount               bool      `json:"isInvoiceAccount"`
	BankAccountNumber              string    `json:"bankAccountNumber"`
	BankAccountCountry             struct {
		ID      int `json:"id"`
		Version int `json:"version"`
	} `json:"bankAccountCountry"`
	BankName         string `json:"bankName"`
	BankAccountIBAN  string `json:"bankAccountIBAN"`
	BankAccountSWIFT string `json:"bankAccountSWIFT"`
}

func (Account) MarshalJSON

func (a Account) MarshalJSON() ([]byte, error)

type AccountManager

type AccountManager struct {
	ID                       int    `json:"id"`
	Version                  int    `json:"version"`
	URL                      string `json:"url"`
	FirstName                string `json:"firstName"`
	LastName                 string `json:"lastName"`
	EmployeeNumber           string `json:"employeeNumber"`
	DateOfBirth              string `json:"dateOfBirth"`
	Email                    string `json:"email"`
	PhoneNumberMobileCountry struct {
		ID      int `json:"id"`
		Version int `json:"version"`
	} `json:"phoneNumberMobileCountry"`
	PhoneNumberMobile      string `json:"phoneNumberMobile"`
	PhoneNumberHome        string `json:"phoneNumberHome"`
	PhoneNumberWork        string `json:"phoneNumberWork"`
	NationalIdentityNumber string `json:"nationalIdentityNumber"`
	Dnumber                string `json:"dnumber"`
	InternationalID        struct {
		IntAmeldingType string `json:"intAmeldingType"`
		Country         struct {
			ID      int `json:"id"`
			Version int `json:"version"`
		} `json:"country"`
		Number string `json:"number"`
	} `json:"internationalId"`
	BankAccountNumber     string     `json:"bankAccountNumber"`
	Iban                  string     `json:"iban"`
	Bic                   string     `json:"bic"`
	CreditorBankCountryID int        `json:"creditorBankCountryId"`
	UsesAbroadPayment     bool       `json:"usesAbroadPayment"`
	UserType              string     `json:"userType"`
	Comments              string     `json:"comments"`
	Address               Address    `json:"address"`
	Department            Department `json:"department"`
	Employments           []struct {
		ID           int    `json:"id"`
		Version      int    `json:"version"`
		EmploymentID string `json:"employmentId"`
		StartDate    string `json:"startDate"`
		EndDate      string `json:"endDate"`
		Division     struct {
			ID                 int    `json:"id"`
			Version            int    `json:"version"`
			Name               string `json:"name"`
			StartDate          string `json:"startDate"`
			EndDate            string `json:"endDate"`
			OrganizationNumber string `json:"organizationNumber"`
			Municipality       struct {
				ID      int `json:"id"`
				Version int `json:"version"`
			} `json:"municipality"`
		} `json:"division"`
		LastSalaryChangeDate     string `json:"lastSalaryChangeDate"`
		NoEmploymentRelationship bool   `json:"noEmploymentRelationship"`
		IsMainEmployer           bool   `json:"isMainEmployer"`
		TaxDeductionCode         string `json:"taxDeductionCode"`
		EmploymentDetails        []struct {
			ID                 int    `json:"id"`
			Version            int    `json:"version"`
			Date               string `json:"date"`
			EmploymentType     string `json:"employmentType"`
			MaritimeEmployment struct {
				ShipRegister string `json:"shipRegister"`
				ShipType     string `json:"shipType"`
				TradeArea    string `json:"tradeArea"`
			} `json:"maritimeEmployment"`
			RemunerationType   string `json:"remunerationType"`
			WorkingHoursScheme string `json:"workingHoursScheme"`
			ShiftDurationHours int    `json:"shiftDurationHours"`
			OccupationCode     struct {
				ID      int    `json:"id"`
				Version int    `json:"version"`
				NameNO  string `json:"nameNO"`
				Code    string `json:"code"`
			} `json:"occupationCode"`
			PercentageOfFullTimeEquivalent int `json:"percentageOfFullTimeEquivalent"`
			AnnualSalary                   int `json:"annualSalary"`
			HourlyWage                     int `json:"hourlyWage"`
			PayrollTaxMunicipalityID       struct {
				ID      int `json:"id"`
				Version int `json:"version"`
			} `json:"payrollTaxMunicipalityId"`
		} `json:"employmentDetails"`
	} `json:"employments"`
	HolidayAllowanceEarned struct {
		Year                   int     `json:"year"`
		Amount                 float64 `json:"amount"`
		Basis                  float64 `json:"basis"`
		AmountExtraHolidayWeek float64 `json:"amountExtraHolidayWeek"`
	} `json:"holidayAllowanceEarned"`
}

type Accounts

type Accounts []Account

type Address

type Address struct {
	ID           int      `json:"id"`
	Version      int      `json:"version"`
	URL          string   `json:"url"`
	Employee     Employee `json:"employee,omitempty"`
	AddressLine1 string   `json:"addressLine1"`
	AddressLine2 string   `json:"addressLine2"`
	PostalCode   string   `json:"postalCode"`
	City         string   `json:"city"`
	Country      Country  `json:"country"`
	Name         string   `json:"name"`
}

func (Address) IsEmpty

func (a Address) IsEmpty() bool

func (Address) MarshalJSON

func (a Address) MarshalJSON() ([]byte, error)

type Attachment

type Attachment struct {
}

type Attn

type Attn struct {
	ID                       int    `json:"id"`
	Version                  int    `json:"version"`
	URL                      string `json:"url"`
	FirstName                string `json:"firstName"`
	LastName                 string `json:"lastName"`
	Email                    string `json:"email"`
	PhoneNumberMobileCountry struct {
		ID      int `json:"id"`
		Version int `json:"version"`
	} `json:"phoneNumberMobileCountry"`
	PhoneNumberMobile string   `json:"phoneNumberMobile"`
	PhoneNumberWork   string   `json:"phoneNumberWork"`
	Customer          Customer `json:"customer"`
}

type Category

type Category struct {
	ID          int    `json:"id"`
	Version     int    `json:"version"`
	URL         string `json:"url"`
	Name        string `json:"name"`
	Number      string `json:"number"`
	Description string `json:"description"`
	Type        int    `json:"type"`
}

type Client

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

Client manages communication with Exact Globe Client

func NewClient

func NewClient(httpClient *http.Client, consumerToken string, employeeToken string) *Client

NewClient returns a new Exact Globe Client client

func (Client) BaseURL

func (c Client) BaseURL() url.URL

func (Client) Charset

func (c Client) Charset() string

func (Client) CompanyID

func (c Client) CompanyID() int

func (Client) ConsumerToken

func (c Client) ConsumerToken() string

func (Client) Debug

func (c Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, responseBody interface{}) (*http.Response, error)

Do sends an Client request and returns the Client response. The Client response is json decoded and stored in the value pointed to by v, or returned as an error if an Client error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.

func (Client) EmployeeToken

func (c Client) EmployeeToken() string

func (*Client) GetEndpointURL

func (c *Client) GetEndpointURL(path string, pathParams PathParams) url.URL

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewCompanyWithLoginAccessRequest

func (c *Client) NewCompanyWithLoginAccessRequest() CompanyWithLoginAccessRequest

func (*Client) NewContactGetRequest

func (c *Client) NewContactGetRequest() ContactGetRequest

func (*Client) NewCountryGetRequest

func (c *Client) NewCountryGetRequest() CountryGetRequest

func (*Client) NewCustomerGetRequest

func (c *Client) NewCustomerGetRequest() CustomerGetRequest

func (*Client) NewCustomerPostRequest

func (c *Client) NewCustomerPostRequest() CustomerPostRequest

func (*Client) NewDepartmentGetRequest

func (c *Client) NewDepartmentGetRequest() DepartmentGetRequest

func (*Client) NewDepartmentQueryGetRequest

func (c *Client) NewDepartmentQueryGetRequest() DepartmentQueryGetRequest

func (*Client) NewEmployeeGetRequest

func (c *Client) NewEmployeeGetRequest() EmployeeGetRequest

func (*Client) NewInvoceGetRequest

func (c *Client) NewInvoceGetRequest() InvoceGetRequest

func (*Client) NewInvoicePostRequest

func (c *Client) NewInvoicePostRequest() InvoicePostRequest

func (*Client) NewLedgerAccountGetRequest

func (c *Client) NewLedgerAccountGetRequest() LedgerAccountGetRequest

func (*Client) NewLedgerGetRequest

func (c *Client) NewLedgerGetRequest() LedgerGetRequest

func (*Client) NewLedgerPostingIDGetRequest

func (c *Client) NewLedgerPostingIDGetRequest() LedgerPostingIDGetRequest

func (*Client) NewLedgerVATTypeRequest

func (c *Client) NewLedgerVATTypeRequest() LedgerVATTypeRequest

func (*Client) NewLedgerVoucherGetRequest

func (c *Client) NewLedgerVoucherGetRequest() LedgerVoucherGetRequest

func (*Client) NewLedgerVoucherIDGetRequest

func (c *Client) NewLedgerVoucherIDGetRequest() LedgerVoucherIDGetRequest

func (*Client) NewLedgerVoucherNonPostedGetRequest

func (c *Client) NewLedgerVoucherNonPostedGetRequest() LedgerVoucherNonPostedGetRequest

func (*Client) NewLedgerVoucherPostRequest

func (c *Client) NewLedgerVoucherPostRequest() LedgerVoucherPostRequest

func (*Client) NewLedgerVoucherTypeRequest

func (c *Client) NewLedgerVoucherTypeRequest() LedgerVoucherTypeRequest

func (*Client) NewOrderListPostRequest

func (c *Client) NewOrderListPostRequest() OrderListPostRequest

func (*Client) NewOrderSearchRequest

func (c *Client) NewOrderSearchRequest() OrderSearchRequest

func (*Client) NewProductGetRequest

func (c *Client) NewProductGetRequest() ProductGetRequest

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method string, URL url.URL, body interface{}) (*http.Request, error)

func (*Client) NewToken

func (c *Client) NewToken() (string, error)

func (*Client) NewTokenSessionCreateRequest

func (c *Client) NewTokenSessionCreateRequest() TokenSessionCreateRequest

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL url.URL)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetCompanyID

func (c *Client) SetCompanyID(companyID int)

func (*Client) SetConsumerToken

func (c *Client) SetConsumerToken(consumerToken string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetDisallowUnknownFields

func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)

func (*Client) SetEmployeeToken

func (c *Client) SetEmployeeToken(employeeToken string)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (*Client) Unmarshal

func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error

func (Client) UserAgent

func (c Client) UserAgent() string

type CloseGroup

type CloseGroup struct {
}

type CompanyWithLoginAccessPathParams

type CompanyWithLoginAccessPathParams struct {
}

func (*CompanyWithLoginAccessPathParams) Params

type CompanyWithLoginAccessQueryParams

type CompanyWithLoginAccessQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (CompanyWithLoginAccessQueryParams) ToURLValues

type CompanyWithLoginAccessRequest

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

func (*CompanyWithLoginAccessRequest) Do

func (*CompanyWithLoginAccessRequest) Method

func (CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessPathParams

func (r CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessPathParams() *CompanyWithLoginAccessPathParams

func (CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessQueryParams

func (r CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessQueryParams() *CompanyWithLoginAccessQueryParams

func (CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessRequestBody

func (r CompanyWithLoginAccessRequest) NewCompanyWithLoginAccessRequestBody() CompanyWithLoginAccessRequestBody

func (*CompanyWithLoginAccessRequest) NewResponseBody

func (*CompanyWithLoginAccessRequest) PathParams

func (*CompanyWithLoginAccessRequest) QueryParams

func (*CompanyWithLoginAccessRequest) RequestBody

func (*CompanyWithLoginAccessRequest) SetMethod

func (r *CompanyWithLoginAccessRequest) SetMethod(method string)

func (*CompanyWithLoginAccessRequest) SetRequestBody

func (*CompanyWithLoginAccessRequest) URL

type CompanyWithLoginAccessRequestBody

type CompanyWithLoginAccessRequestBody struct{}

type CompanyWithLoginAccessResponseBody

type CompanyWithLoginAccessResponseBody struct {
	FullResultSize int           `json:"fullResultSize"`
	From           int           `json:"from"`
	Count          int           `json:"count"`
	VersionDigest  interface{}   `json:"versionDigest"`
	Values         []interface{} `json:"values"`
}

type Contact

type Contact struct {
	ID                       int    `json:"id"`
	Version                  int    `json:"version"`
	URL                      string `json:"url"`
	FirstName                string `json:"firstName"`
	LastName                 string `json:"lastName"`
	Email                    string `json:"email"`
	PhoneNumberMobileCountry struct {
		ID      int    `json:"id"`
		Version int    `json:"version"`
		URL     string `json:"url"`
	} `json:"phoneNumberMobileCountry"`
	PhoneNumberMobile string   `json:"phoneNumberMobile"`
	PhoneNumberWork   string   `json:"phoneNumberWork"`
	Customer          Customer `json:"customer,omitempty"`
}

func (Contact) IsEmpty

func (c Contact) IsEmpty() bool

func (Contact) MarshalJSON

func (c Contact) MarshalJSON() ([]byte, error)

type ContactGetPathParams

type ContactGetPathParams struct {
}

func (*ContactGetPathParams) Params

func (p *ContactGetPathParams) Params() map[string]string

type ContactGetQueryParams

type ContactGetQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (ContactGetQueryParams) ToURLValues

func (p ContactGetQueryParams) ToURLValues() (url.Values, error)

type ContactGetRequest

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

func (*ContactGetRequest) All

func (*ContactGetRequest) Do

func (*ContactGetRequest) Method

func (r *ContactGetRequest) Method() string

func (ContactGetRequest) NewContactGetPathParams

func (r ContactGetRequest) NewContactGetPathParams() *ContactGetPathParams

func (ContactGetRequest) NewContactGetQueryParams

func (r ContactGetRequest) NewContactGetQueryParams() *ContactGetQueryParams

func (ContactGetRequest) NewContactGetRequestBody

func (r ContactGetRequest) NewContactGetRequestBody() ContactGetRequestBody

func (*ContactGetRequest) NewResponseBody

func (r *ContactGetRequest) NewResponseBody() *ContactGetResponseBody

func (*ContactGetRequest) PathParams

func (r *ContactGetRequest) PathParams() *ContactGetPathParams

func (*ContactGetRequest) QueryParams

func (r *ContactGetRequest) QueryParams() *ContactGetQueryParams

func (*ContactGetRequest) RequestBody

func (r *ContactGetRequest) RequestBody() *ContactGetRequestBody

func (*ContactGetRequest) SetMethod

func (r *ContactGetRequest) SetMethod(method string)

func (*ContactGetRequest) SetRequestBody

func (r *ContactGetRequest) SetRequestBody(body ContactGetRequestBody)

func (*ContactGetRequest) URL

func (r *ContactGetRequest) URL() url.URL

type ContactGetRequestBody

type ContactGetRequestBody struct{}

type ContactGetResponseBody

type ContactGetResponseBody struct {
	FullResultSize int      `json:"fullResultSize"`
	From           int      `json:"from"`
	Count          int      `json:"count"`
	VersionDigest  string   `json:"versionDigest"`
	Values         Contacts `json:"values"`
}

type Contacts

type Contacts []Contact

type Countries

type Countries []Country

type Country

type Country struct {
	ID             int    `json:"id"`
	Version        int    `json:"version"`
	URL            string `json:"url"`
	Name           string `json:"name"`
	DisplayName    string `json:"displayName"`
	ISOAlpha2Code  string `json:"isoAlpha2Code"`
	ISOAlpha3Code  string `json:"isoAlpha3Code"`
	ISONumericCode string `json:"isoNumericCode"`
}

type CountryGetPathParams

type CountryGetPathParams struct {
}

func (*CountryGetPathParams) Params

func (p *CountryGetPathParams) Params() map[string]string

type CountryGetQueryParams

type CountryGetQueryParams struct {
	ID         string `schema:"id,omitempty"`
	Code       string `schema:"code,omitempty"`
	IsDisabled bool   `schema:"isDisabled,omitempty"`
	From       int    `schema:"from,omitempty"`
	Count      int    `schema:"count,omitempty"`
	Sorting    string `schema:"sorting,omitempty"`
	Fields     string `schema:"fields,omitempty"`
}

func (CountryGetQueryParams) ToURLValues

func (p CountryGetQueryParams) ToURLValues() (url.Values, error)

type CountryGetRequest

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

func (*CountryGetRequest) Do

func (*CountryGetRequest) Method

func (r *CountryGetRequest) Method() string

func (CountryGetRequest) NewCountryGetPathParams

func (r CountryGetRequest) NewCountryGetPathParams() *CountryGetPathParams

func (CountryGetRequest) NewCountryGetQueryParams

func (r CountryGetRequest) NewCountryGetQueryParams() *CountryGetQueryParams

func (CountryGetRequest) NewCountryGetRequestBody

func (r CountryGetRequest) NewCountryGetRequestBody() CountryGetRequestBody

func (*CountryGetRequest) NewResponseBody

func (r *CountryGetRequest) NewResponseBody() *CountryGetResponseBody

func (*CountryGetRequest) PathParams

func (r *CountryGetRequest) PathParams() *CountryGetPathParams

func (*CountryGetRequest) QueryParams

func (r *CountryGetRequest) QueryParams() *CountryGetQueryParams

func (*CountryGetRequest) RequestBody

func (r *CountryGetRequest) RequestBody() *CountryGetRequestBody

func (*CountryGetRequest) SetMethod

func (r *CountryGetRequest) SetMethod(method string)

func (*CountryGetRequest) SetRequestBody

func (r *CountryGetRequest) SetRequestBody(body CountryGetRequestBody)

func (*CountryGetRequest) URL

func (r *CountryGetRequest) URL() url.URL

type CountryGetRequestBody

type CountryGetRequestBody struct{}

type CountryGetResponseBody

type CountryGetResponseBody struct {
	FullResultSize int       `json:"fullResultSize"`
	From           int       `json:"from"`
	Count          int       `json:"count"`
	VersionDigest  string    `json:"versionDigest"`
	Values         Countries `json:"values"`
}

type Currency

type Currency struct {
}

func (*Currency) IsEmpty

func (c *Currency) IsEmpty() bool

type Customer

type Customer struct {
	ID                    int             `json:"id,omitempty"`
	Version               int             `json:"version,omitempty"`
	URL                   string          `json:"url"`
	Name                  string          `json:"name"`
	OrganizationNumber    string          `json:"organizationNumber,omitempty"`
	SupplierNumber        int             `json:"supplierNumber,omitempty"`
	CustomerNumber        int             `json:"customerNumber,omitempty"`
	IsSupplier            bool            `json:"isSupplier,omitempty"`
	IsCustomer            bool            `json:"isCustomer,omitempty"`
	IsInactive            bool            `json:"isInactive,omitempty"`
	AccountManager        *AccountManager `json:"accountManager,omitempty"`
	Email                 string          `json:"email,omitempty"`
	InvoiceEmail          string          `json:"invoiceEmail,omitempty"`
	OverdueNoticeEmail    string          `json:"overdueNoticeEmail,omitempty"`
	BankAccounts          []string        `json:"bankAccounts,omitempty"`
	PhoneNumber           string          `json:"phoneNumber,omitempty"`
	PhoneNumberMobile     string          `json:"phoneNumberMobile,omitempty"`
	Description           string          `json:"description,omitempty"`
	IsPrivateIndividual   bool            `json:"isPrivateIndividual,omitempty"`
	SingleCustomerInvoice bool            `json:"singleCustomerInvoice,omitempty"`
	InvoiceSendMethod     string          `json:"invoiceSendMethod,omitempty"`
	EmailAttachmentType   string          `json:"emailAttachmentType,omitempty"`
	PostalAddress         *Address        `json:"postalAddress,omitempty"`
	PhysicalAddress       *Address        `json:"physicalAddress,omitempty"`
	DeliveryAddress       *Address        `json:"deliveryAddress,omitempty"`
	Category1             *Category       `json:"category1,omitempty"`
	Category2             *Category       `json:"category2,omitempty"`
	Category3             *Category       `json:"category3,omitempty"`
	InvoicesDueIn         int             `json:"invoicesDueIn,omitempty"`
	InvoicesDueInType     string          `json:"invoicesDueInType,omitempty"`
}

func (Customer) IsEmpty

func (c Customer) IsEmpty() bool

type CustomerGetPathParams

type CustomerGetPathParams struct {
}

func (*CustomerGetPathParams) Params

func (p *CustomerGetPathParams) Params() map[string]string

type CustomerGetQueryParams

type CustomerGetQueryParams struct {
	CustomerAccountNumber string `schema:"customerAccountNumber,omitempty"`
	OrganizationNumber    string `schema:"organizationNumber,omitempty"`
	Email                 string `schema:"email,omitempty"`
	InvoiceEmail          string `schema:"invoiceEmail,omitempty"`
	IsInactive            bool   `schema:"isInactive,omitempty"`
	AccountManagerID      string `schema:"accountManagerId,omitempty"`
	ChangedSince          Date   `schema:"changedSince,omitempty"`
	From                  int    `schema:"from"`
	Count                 int    `schema:"count"`
}

func (CustomerGetQueryParams) ToURLValues

func (p CustomerGetQueryParams) ToURLValues() (url.Values, error)

type CustomerGetRequest

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

func (*CustomerGetRequest) All

func (*CustomerGetRequest) Do

func (*CustomerGetRequest) Method

func (r *CustomerGetRequest) Method() string

func (CustomerGetRequest) NewCustomerGetPathParams

func (r CustomerGetRequest) NewCustomerGetPathParams() *CustomerGetPathParams

func (CustomerGetRequest) NewCustomerGetQueryParams

func (r CustomerGetRequest) NewCustomerGetQueryParams() *CustomerGetQueryParams

func (CustomerGetRequest) NewCustomerGetRequestBody

func (r CustomerGetRequest) NewCustomerGetRequestBody() CustomerGetRequestBody

func (*CustomerGetRequest) NewResponseBody

func (r *CustomerGetRequest) NewResponseBody() *CustomerGetResponseBody

func (*CustomerGetRequest) PathParams

func (r *CustomerGetRequest) PathParams() *CustomerGetPathParams

func (*CustomerGetRequest) QueryParams

func (r *CustomerGetRequest) QueryParams() *CustomerGetQueryParams

func (*CustomerGetRequest) RequestBody

func (r *CustomerGetRequest) RequestBody() *CustomerGetRequestBody

func (*CustomerGetRequest) SetMethod

func (r *CustomerGetRequest) SetMethod(method string)

func (*CustomerGetRequest) SetRequestBody

func (r *CustomerGetRequest) SetRequestBody(body CustomerGetRequestBody)

func (*CustomerGetRequest) URL

func (r *CustomerGetRequest) URL() url.URL

type CustomerGetRequestBody

type CustomerGetRequestBody struct{}

type CustomerGetResponseBody

type CustomerGetResponseBody struct {
	FullResultSize int       `json:"fullResultSize"`
	From           int       `json:"from"`
	Count          int       `json:"count"`
	VersionDigest  string    `json:"versionDigest"`
	Values         Customers `json:"values"`
}

type CustomerPostPathParams

type CustomerPostPathParams struct {
}

func (*CustomerPostPathParams) Params

func (p *CustomerPostPathParams) Params() map[string]string

type CustomerPostQueryParams

type CustomerPostQueryParams struct{}

func (CustomerPostQueryParams) ToURLValues

func (p CustomerPostQueryParams) ToURLValues() (url.Values, error)

type CustomerPostRequest

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

func (*CustomerPostRequest) Do

func (*CustomerPostRequest) Method

func (r *CustomerPostRequest) Method() string

func (CustomerPostRequest) NewCustomerPostPathParams

func (r CustomerPostRequest) NewCustomerPostPathParams() *CustomerPostPathParams

func (CustomerPostRequest) NewCustomerPostQueryParams

func (r CustomerPostRequest) NewCustomerPostQueryParams() *CustomerPostQueryParams

func (CustomerPostRequest) NewCustomerPostRequestBody

func (r CustomerPostRequest) NewCustomerPostRequestBody() CustomerPostRequestBody

func (*CustomerPostRequest) NewResponseBody

func (r *CustomerPostRequest) NewResponseBody() *CustomerPostResponseBody

func (*CustomerPostRequest) PathParams

func (*CustomerPostRequest) QueryParams

func (r *CustomerPostRequest) QueryParams() *CustomerPostQueryParams

func (*CustomerPostRequest) RequestBody

func (r *CustomerPostRequest) RequestBody() *CustomerPostRequestBody

func (*CustomerPostRequest) SetMethod

func (r *CustomerPostRequest) SetMethod(method string)

func (*CustomerPostRequest) SetRequestBody

func (r *CustomerPostRequest) SetRequestBody(body CustomerPostRequestBody)

func (*CustomerPostRequest) URL

func (r *CustomerPostRequest) URL() url.URL

type CustomerPostRequestBody

type CustomerPostRequestBody Customer

type CustomerPostResponseBody

type CustomerPostResponseBody struct {
	Value Customer `json:"value"`
}

type Customers

type Customers []Customer

type Date

type Date struct {
	time.Time
}

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

type Department

type Department struct {
	ID                int         `json:"id,omitempty"`
	Version           int         `json:"version,omitempty"`
	URL               string      `json:"url,omitempty"`
	Name              string      `json:"name,omitempty"`
	DepartmentNumber  string      `json:"departmentNumber,omitempty"`
	DepartmentManager interface{} `json:"departmentManager,omitempty"`
	DisplayName       string      `json:"displayName,omitempty"`
	IsInactive        bool        `json:"isInactive,omitempty"`
}

func (Department) IsEmpty

func (d Department) IsEmpty() bool

func (Department) MarshalJSON

func (d Department) MarshalJSON() ([]byte, error)

type DepartmentGetPathParams

type DepartmentGetPathParams struct {
}

func (*DepartmentGetPathParams) Params

func (p *DepartmentGetPathParams) Params() map[string]string

type DepartmentGetQueryParams

type DepartmentGetQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (DepartmentGetQueryParams) ToURLValues

func (p DepartmentGetQueryParams) ToURLValues() (url.Values, error)

type DepartmentGetRequest

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

func (*DepartmentGetRequest) All

func (*DepartmentGetRequest) Do

func (*DepartmentGetRequest) Method

func (r *DepartmentGetRequest) Method() string

func (DepartmentGetRequest) NewDepartmentGetPathParams

func (r DepartmentGetRequest) NewDepartmentGetPathParams() *DepartmentGetPathParams

func (DepartmentGetRequest) NewDepartmentGetQueryParams

func (r DepartmentGetRequest) NewDepartmentGetQueryParams() *DepartmentGetQueryParams

func (DepartmentGetRequest) NewDepartmentGetRequestBody

func (r DepartmentGetRequest) NewDepartmentGetRequestBody() DepartmentGetRequestBody

func (*DepartmentGetRequest) NewResponseBody

func (r *DepartmentGetRequest) NewResponseBody() *DepartmentGetResponseBody

func (*DepartmentGetRequest) PathParams

func (*DepartmentGetRequest) QueryParams

func (*DepartmentGetRequest) RequestBody

func (*DepartmentGetRequest) SetMethod

func (r *DepartmentGetRequest) SetMethod(method string)

func (*DepartmentGetRequest) SetRequestBody

func (r *DepartmentGetRequest) SetRequestBody(body DepartmentGetRequestBody)

func (*DepartmentGetRequest) URL

func (r *DepartmentGetRequest) URL() url.URL

type DepartmentGetRequestBody

type DepartmentGetRequestBody struct{}

type DepartmentGetResponseBody

type DepartmentGetResponseBody struct {
	FullResultSize int         `json:"fullResultSize"`
	From           int         `json:"from"`
	Count          int         `json:"count"`
	VersionDigest  string      `json:"versionDigest"`
	Values         Departments `json:"values"`
}

type DepartmentQueryGetPathParams

type DepartmentQueryGetPathParams struct {
}

func (*DepartmentQueryGetPathParams) Params

func (p *DepartmentQueryGetPathParams) Params() map[string]string

type DepartmentQueryGetQueryParams

type DepartmentQueryGetQueryParams struct {
	Query      string `schema:"query,omitempty"`
	Count      int    `schema:"count,omitempty"`
	Fields     string `schema:"fields,omitempty"`
	IsInactive bool   `schema:"isInactive,omitempty"`
	From       int    `schema:"from,omitempty"`
	Sorting    string `schema:"sorting,omitempty"`
}

func (DepartmentQueryGetQueryParams) ToURLValues

func (p DepartmentQueryGetQueryParams) ToURLValues() (url.Values, error)

type DepartmentQueryGetRequest

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

func (*DepartmentQueryGetRequest) All

func (*DepartmentQueryGetRequest) Do

func (*DepartmentQueryGetRequest) Method

func (r *DepartmentQueryGetRequest) Method() string

func (DepartmentQueryGetRequest) NewDepartmentQueryGetPathParams

func (r DepartmentQueryGetRequest) NewDepartmentQueryGetPathParams() *DepartmentQueryGetPathParams

func (DepartmentQueryGetRequest) NewDepartmentQueryGetQueryParams

func (r DepartmentQueryGetRequest) NewDepartmentQueryGetQueryParams() *DepartmentQueryGetQueryParams

func (DepartmentQueryGetRequest) NewDepartmentQueryGetRequestBody

func (r DepartmentQueryGetRequest) NewDepartmentQueryGetRequestBody() DepartmentQueryGetRequestBody

func (*DepartmentQueryGetRequest) NewResponseBody

func (*DepartmentQueryGetRequest) PathParams

func (*DepartmentQueryGetRequest) QueryParams

func (*DepartmentQueryGetRequest) RequestBody

func (*DepartmentQueryGetRequest) SetMethod

func (r *DepartmentQueryGetRequest) SetMethod(method string)

func (*DepartmentQueryGetRequest) SetRequestBody

func (*DepartmentQueryGetRequest) URL

type DepartmentQueryGetRequestBody

type DepartmentQueryGetRequestBody struct{}

type DepartmentQueryGetResponseBody

type DepartmentQueryGetResponseBody struct {
	FullResultSize int         `json:"fullResultSize"`
	From           int         `json:"from"`
	Count          int         `json:"count"`
	VersionDigest  string      `json:"versionDigest"`
	Values         Departments `json:"values"`
}

type Departments

type Departments []Department

type Document

type Document struct {
}

type EDIDocument

type EDIDocument struct {
}

type Employee

type Employee struct {
	ID                       int    `json:"id"`
	Version                  int    `json:"version"`
	URL                      string `json:"url"`
	FirstName                string `json:"firstName"`
	LastName                 string `json:"lastName"`
	EmployeeNumber           string `json:"employeeNumber"`
	DateOfBirth              string `json:"dateOfBirth"`
	Email                    string `json:"email"`
	PhoneNumberMobileCountry struct {
		ID  int    `json:"id"`
		URL string `json:"url"`
	} `json:"phoneNumberMobileCountry"`
	PhoneNumberMobile      string `json:"phoneNumberMobile"`
	PhoneNumberHome        string `json:"phoneNumberHome"`
	PhoneNumberWork        string `json:"phoneNumberWork"`
	NationalIdentityNumber string `json:"nationalIdentityNumber"`
	Dnumber                string `json:"dnumber"`
	InternationalID        struct {
		IntAmeldingType interface{} `json:"intAmeldingType"`
		Country         interface{} `json:"country"`
		Number          string      `json:"number"`
	} `json:"internationalId"`
	BankAccountNumber            string `json:"bankAccountNumber"`
	Iban                         string `json:"iban"`
	Bic                          string `json:"bic"`
	CreditorBankCountryID        int    `json:"creditorBankCountryId"`
	UsesAbroadPayment            bool   `json:"usesAbroadPayment"`
	AllowInformationRegistration bool   `json:"allowInformationRegistration"`
	IsContact                    bool   `json:"isContact"`
	Comments                     string `json:"comments"`
	Address                      struct {
		ID  int    `json:"id"`
		URL string `json:"url"`
	} `json:"address"`
	Department struct {
		ID  int    `json:"id"`
		URL string `json:"url"`
	} `json:"department"`
	Employments []struct {
		ID  int    `json:"id"`
		URL string `json:"url"`
	} `json:"employments"`
	HolidayAllowanceEarned struct {
		Year                   int     `json:"year"`
		Amount                 float64 `json:"amount"`
		Basis                  float64 `json:"basis"`
		AmountExtraHolidayWeek float64 `json:"amountExtraHolidayWeek"`
	} `json:"holidayAllowanceEarned"`
	EmployeeCategory interface{} `json:"employeeCategory"`
}

func (Employee) IsEmpty

func (e Employee) IsEmpty() bool

func (Employee) MarshalJSON

func (e Employee) MarshalJSON() ([]byte, error)

type EmployeeGetPathParams

type EmployeeGetPathParams struct {
}

func (*EmployeeGetPathParams) Params

func (p *EmployeeGetPathParams) Params() map[string]string

type EmployeeGetQueryParams

type EmployeeGetQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (EmployeeGetQueryParams) ToURLValues

func (p EmployeeGetQueryParams) ToURLValues() (url.Values, error)

type EmployeeGetRequest

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

func (*EmployeeGetRequest) All

func (*EmployeeGetRequest) Do

func (*EmployeeGetRequest) Method

func (r *EmployeeGetRequest) Method() string

func (EmployeeGetRequest) NewEmployeeGetPathParams

func (r EmployeeGetRequest) NewEmployeeGetPathParams() *EmployeeGetPathParams

func (EmployeeGetRequest) NewEmployeeGetQueryParams

func (r EmployeeGetRequest) NewEmployeeGetQueryParams() *EmployeeGetQueryParams

func (EmployeeGetRequest) NewEmployeeGetRequestBody

func (r EmployeeGetRequest) NewEmployeeGetRequestBody() EmployeeGetRequestBody

func (*EmployeeGetRequest) NewResponseBody

func (r *EmployeeGetRequest) NewResponseBody() *EmployeeGetResponseBody

func (*EmployeeGetRequest) PathParams

func (r *EmployeeGetRequest) PathParams() *EmployeeGetPathParams

func (*EmployeeGetRequest) QueryParams

func (r *EmployeeGetRequest) QueryParams() *EmployeeGetQueryParams

func (*EmployeeGetRequest) RequestBody

func (r *EmployeeGetRequest) RequestBody() *EmployeeGetRequestBody

func (*EmployeeGetRequest) SetMethod

func (r *EmployeeGetRequest) SetMethod(method string)

func (*EmployeeGetRequest) SetRequestBody

func (r *EmployeeGetRequest) SetRequestBody(body EmployeeGetRequestBody)

func (*EmployeeGetRequest) URL

func (r *EmployeeGetRequest) URL() url.URL

type EmployeeGetRequestBody

type EmployeeGetRequestBody struct{}

type EmployeeGetResponseBody

type EmployeeGetResponseBody struct {
	FullResultSize int       `json:"fullResultSize"`
	From           int       `json:"from"`
	Count          int       `json:"count"`
	VersionDigest  string    `json:"versionDigest"`
	Values         Employees `json:"values"`
}

type Employees

type Employees []Employee

type ErrorResponse

type ErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response

	// HTTP status code
	Status             int                `json:"status"`
	Code               int                `json:"code"`
	Message            string             `json:"message"`
	Link               string             `json:"link"`
	DeveloperMessage   string             `json:"developerMessage"`
	ValidationMessages ValidationMessages `json:"validationMessages"`
	RequestID          string             `json:"requestId"`
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type InvoceGetPathParams

type InvoceGetPathParams struct {
}

func (*InvoceGetPathParams) Params

func (p *InvoceGetPathParams) Params() map[string]string

type InvoceGetQueryParams

type InvoceGetQueryParams struct {
	ID              string `schema:"id,omitempty"`
	InvoiceDateFrom Date   `schema:"invoiceDateFrom"`
	InvoiceDateTo   Date   `schema:"invoiceDateTo"`
	InvoiceNumber   string `schema:"invoiceNumber,omitempty"`
	Kid             string `schema:"kid,omitempty"`
	VoucherID       string `schema:"voucherId,omitempty"`
	CustomerID      string `schema:"customerId,omitempty"`
	From            int    `schema:"from,omitempty"`
	Count           int    `schema:"count,omitempty"`
	Sorting         int    `schema:"sorting,omitempty"`
	Fields          string `schema:"fields,omitempty"`
}

func (InvoceGetQueryParams) ToURLValues

func (p InvoceGetQueryParams) ToURLValues() (url.Values, error)

type InvoceGetRequest

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

func (*InvoceGetRequest) Do

func (*InvoceGetRequest) Method

func (r *InvoceGetRequest) Method() string

func (InvoceGetRequest) NewInvoceGetPathParams

func (r InvoceGetRequest) NewInvoceGetPathParams() *InvoceGetPathParams

func (InvoceGetRequest) NewInvoceGetQueryParams

func (r InvoceGetRequest) NewInvoceGetQueryParams() *InvoceGetQueryParams

func (InvoceGetRequest) NewInvoceGetRequestBody

func (r InvoceGetRequest) NewInvoceGetRequestBody() InvoceGetRequestBody

func (*InvoceGetRequest) NewResponseBody

func (r *InvoceGetRequest) NewResponseBody() *InvoceGetResponseBody

func (*InvoceGetRequest) PathParams

func (r *InvoceGetRequest) PathParams() *InvoceGetPathParams

func (*InvoceGetRequest) QueryParams

func (r *InvoceGetRequest) QueryParams() *InvoceGetQueryParams

func (*InvoceGetRequest) RequestBody

func (r *InvoceGetRequest) RequestBody() *InvoceGetRequestBody

func (*InvoceGetRequest) SetMethod

func (r *InvoceGetRequest) SetMethod(method string)

func (*InvoceGetRequest) SetRequestBody

func (r *InvoceGetRequest) SetRequestBody(body InvoceGetRequestBody)

func (*InvoceGetRequest) URL

func (r *InvoceGetRequest) URL() url.URL

type InvoceGetRequestBody

type InvoceGetRequestBody struct{}

type InvoceGetResponseBody

type InvoceGetResponseBody struct {
	FullResultSize int    `json:"fullResultSize"`
	From           int    `json:"from"`
	Count          int    `json:"count"`
	VersionDigest  string `json:"versionDigest"`
	Values         []struct {
		ID            int    `json:"id"`
		Version       int    `json:"version"`
		URL           string `json:"url"`
		InvoiceNumber int    `json:"invoiceNumber"`
		InvoiceDate   string `json:"invoiceDate"`
		Customer      struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"customer"`
		CreditedInvoice int    `json:"creditedInvoice"`
		IsCredited      bool   `json:"isCredited"`
		InvoiceDueDate  string `json:"invoiceDueDate"`
		Kid             string `json:"kid"`
		InvoiceComment  string `json:"invoiceComment"`
		Comment         string `json:"comment"`
		Orders          []struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"orders"`
		ProjectInvoiceDetails []struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"projectInvoiceDetails"`
		Voucher struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"voucher"`
		DeliveryDate               string  `json:"deliveryDate"`
		Amount                     float64 `json:"amount"`
		AmountCurrency             float64 `json:"amountCurrency"`
		AmountExcludingVat         float64 `json:"amountExcludingVat"`
		AmountExcludingVatCurrency float64 `json:"amountExcludingVatCurrency"`
		AmountRoundoff             float64 `json:"amountRoundoff"`
		AmountRoundoffCurrency     float64 `json:"amountRoundoffCurrency"`
		AmountOutstanding          float64 `json:"amountOutstanding"`
		AmountOutstandingTotal     float64 `json:"amountOutstandingTotal"`
		SumRemits                  int     `json:"sumRemits"`
		Currency                   struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"currency"`
		IsCreditNote bool `json:"isCreditNote"`
		IsCharged    bool `json:"isCharged"`
		IsApproved   bool `json:"isApproved"`
		Postings     []struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"postings"`
		Reminders      []interface{} `json:"reminders"`
		InvoiceRemarks string        `json:"invoiceRemarks"`
	} `json:"values"`
}

type Invoice

type Invoice struct {
	ID             int      `json:"id,omitempty"`
	Version        int      `json:"version,omitempty"`
	URL            string   `json:"url,omitempty"`
	InvoiceNumber  int      `json:"invoiceNumber,omitempty"`
	InvoiceDate    string   `json:"invoiceDate,omitempty"`
	Customer       Customer `json:"customer,omitempty"`
	InvoiceDueDate string   `json:"invoiceDueDate,omitempty"`
	KID            string   `json:"kid,omitempty"`
	Comment        string   `json:"comment,omitempty"`
	Orders         Orders   `json:"orders,omitempty"`
	Voucher        Voucher  `json:"voucher,omitempty"`
	// Currency       Currency `json:"currency"`
	InvoiceRemarks string  `json:"invoiceRemarks,omitempty"`
	PaymentTypeID  int     `json:"paymentTypeId,omitempty"`
	PaidAmount     float64 `json:"paidAmount,omitempty"`
	EhfSendStatus  string  `json:"ehfSendStatus,omitempty"`
}

func (Invoice) IsEmpty

func (i Invoice) IsEmpty() bool

func (Invoice) MarshalJSON

func (i Invoice) MarshalJSON() ([]byte, error)

type InvoicePostPathParams

type InvoicePostPathParams struct {
}

func (*InvoicePostPathParams) Params

func (p *InvoicePostPathParams) Params() map[string]string

type InvoicePostQueryParams

type InvoicePostQueryParams struct {
	SendToCustomer bool `schema:"sendToCustomer"`
}

func (InvoicePostQueryParams) ToURLValues

func (p InvoicePostQueryParams) ToURLValues() (url.Values, error)

type InvoicePostRequest

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

func (*InvoicePostRequest) Do

func (*InvoicePostRequest) Method

func (r *InvoicePostRequest) Method() string

func (InvoicePostRequest) NewInvoicePostPathParams

func (r InvoicePostRequest) NewInvoicePostPathParams() *InvoicePostPathParams

func (InvoicePostRequest) NewInvoicePostQueryParams

func (r InvoicePostRequest) NewInvoicePostQueryParams() *InvoicePostQueryParams

func (InvoicePostRequest) NewInvoicePostRequestBody

func (r InvoicePostRequest) NewInvoicePostRequestBody() InvoicePostRequestBody

func (*InvoicePostRequest) NewResponseBody

func (r *InvoicePostRequest) NewResponseBody() *InvoicePostResponseBody

func (*InvoicePostRequest) PathParams

func (r *InvoicePostRequest) PathParams() *InvoicePostPathParams

func (*InvoicePostRequest) QueryParams

func (r *InvoicePostRequest) QueryParams() *InvoicePostQueryParams

func (*InvoicePostRequest) RequestBody

func (r *InvoicePostRequest) RequestBody() *InvoicePostRequestBody

func (*InvoicePostRequest) SetMethod

func (r *InvoicePostRequest) SetMethod(method string)

func (*InvoicePostRequest) SetRequestBody

func (r *InvoicePostRequest) SetRequestBody(body InvoicePostRequestBody)

func (*InvoicePostRequest) URL

func (r *InvoicePostRequest) URL() url.URL

type InvoicePostRequestBody

type InvoicePostRequestBody Invoice

func (InvoicePostRequestBody) IsEmpty

func (i InvoicePostRequestBody) IsEmpty() bool

func (InvoicePostRequestBody) MarshalJSON

func (i InvoicePostRequestBody) MarshalJSON() ([]byte, error)

type InvoicePostResponseBody

type InvoicePostResponseBody struct{}

type LedgerAccountGetPathParams

type LedgerAccountGetPathParams struct {
}

func (*LedgerAccountGetPathParams) Params

func (p *LedgerAccountGetPathParams) Params() map[string]string

type LedgerAccountGetQueryParams

type LedgerAccountGetQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (LedgerAccountGetQueryParams) ToURLValues

func (p LedgerAccountGetQueryParams) ToURLValues() (url.Values, error)

type LedgerAccountGetRequest

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

func (*LedgerAccountGetRequest) Do

func (*LedgerAccountGetRequest) Method

func (r *LedgerAccountGetRequest) Method() string

func (LedgerAccountGetRequest) NewLedgerAccountGetPathParams

func (r LedgerAccountGetRequest) NewLedgerAccountGetPathParams() *LedgerAccountGetPathParams

func (LedgerAccountGetRequest) NewLedgerAccountGetQueryParams

func (r LedgerAccountGetRequest) NewLedgerAccountGetQueryParams() *LedgerAccountGetQueryParams

func (LedgerAccountGetRequest) NewLedgerAccountGetRequestBody

func (r LedgerAccountGetRequest) NewLedgerAccountGetRequestBody() LedgerAccountGetRequestBody

func (*LedgerAccountGetRequest) NewResponseBody

func (*LedgerAccountGetRequest) PathParams

func (*LedgerAccountGetRequest) QueryParams

func (*LedgerAccountGetRequest) RequestBody

func (*LedgerAccountGetRequest) SetMethod

func (r *LedgerAccountGetRequest) SetMethod(method string)

func (*LedgerAccountGetRequest) SetRequestBody

func (r *LedgerAccountGetRequest) SetRequestBody(body LedgerAccountGetRequestBody)

func (*LedgerAccountGetRequest) URL

func (r *LedgerAccountGetRequest) URL() url.URL

type LedgerAccountGetRequestBody

type LedgerAccountGetRequestBody struct{}

type LedgerAccountGetResponseBody

type LedgerAccountGetResponseBody struct {
	FullResultSize int      `json:"fullResultSize"`
	From           int      `json:"from"`
	Count          int      `json:"count"`
	VersionDigest  string   `json:"versionDigest"`
	Values         Accounts `json:"values"`
}

type LedgerGetPathParams

type LedgerGetPathParams struct {
}

func (*LedgerGetPathParams) Params

func (p *LedgerGetPathParams) Params() map[string]string

type LedgerGetQueryParams

type LedgerGetQueryParams struct {
	DateFrom Date `schema:"dateFrom"`
	DateTo   Date `schema:"dateTo"`
}

func (LedgerGetQueryParams) ToURLValues

func (p LedgerGetQueryParams) ToURLValues() (url.Values, error)

type LedgerGetRequest

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

func (*LedgerGetRequest) Do

func (*LedgerGetRequest) Method

func (r *LedgerGetRequest) Method() string

func (LedgerGetRequest) NewLedgerGetPathParams

func (r LedgerGetRequest) NewLedgerGetPathParams() *LedgerGetPathParams

func (LedgerGetRequest) NewLedgerGetQueryParams

func (r LedgerGetRequest) NewLedgerGetQueryParams() *LedgerGetQueryParams

func (LedgerGetRequest) NewLedgerGetRequestBody

func (r LedgerGetRequest) NewLedgerGetRequestBody() LedgerGetRequestBody

func (*LedgerGetRequest) NewResponseBody

func (r *LedgerGetRequest) NewResponseBody() *LedgerGetResponseBody

func (*LedgerGetRequest) PathParams

func (r *LedgerGetRequest) PathParams() *LedgerGetPathParams

func (*LedgerGetRequest) QueryParams

func (r *LedgerGetRequest) QueryParams() *LedgerGetQueryParams

func (*LedgerGetRequest) RequestBody

func (r *LedgerGetRequest) RequestBody() *LedgerGetRequestBody

func (*LedgerGetRequest) SetMethod

func (r *LedgerGetRequest) SetMethod(method string)

func (*LedgerGetRequest) SetRequestBody

func (r *LedgerGetRequest) SetRequestBody(body LedgerGetRequestBody)

func (*LedgerGetRequest) URL

func (r *LedgerGetRequest) URL() url.URL

type LedgerGetRequestBody

type LedgerGetRequestBody struct{}

type LedgerGetResponseBody

type LedgerGetResponseBody struct {
}

type LedgerPostingIDGetPathParams

type LedgerPostingIDGetPathParams struct {
	ID int
}

func (*LedgerPostingIDGetPathParams) Params

func (p *LedgerPostingIDGetPathParams) Params() map[string]string

type LedgerPostingIDGetQueryParams

type LedgerPostingIDGetQueryParams struct {
}

func (LedgerPostingIDGetQueryParams) ToURLValues

func (p LedgerPostingIDGetQueryParams) ToURLValues() (url.Values, error)

type LedgerPostingIDGetRequest

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

func (*LedgerPostingIDGetRequest) Do

func (*LedgerPostingIDGetRequest) Method

func (r *LedgerPostingIDGetRequest) Method() string

func (LedgerPostingIDGetRequest) NewLedgerPostingIDGetPathParams

func (r LedgerPostingIDGetRequest) NewLedgerPostingIDGetPathParams() *LedgerPostingIDGetPathParams

func (LedgerPostingIDGetRequest) NewLedgerPostingIDGetQueryParams

func (r LedgerPostingIDGetRequest) NewLedgerPostingIDGetQueryParams() *LedgerPostingIDGetQueryParams

func (LedgerPostingIDGetRequest) NewLedgerPostingIDGetRequestBody

func (r LedgerPostingIDGetRequest) NewLedgerPostingIDGetRequestBody() LedgerPostingIDGetRequestBody

func (*LedgerPostingIDGetRequest) NewResponseBody

func (*LedgerPostingIDGetRequest) PathParams

func (*LedgerPostingIDGetRequest) QueryParams

func (*LedgerPostingIDGetRequest) RequestBody

func (*LedgerPostingIDGetRequest) SetMethod

func (r *LedgerPostingIDGetRequest) SetMethod(method string)

func (*LedgerPostingIDGetRequest) SetRequestBody

func (*LedgerPostingIDGetRequest) URL

type LedgerPostingIDGetRequestBody

type LedgerPostingIDGetRequestBody struct{}

type LedgerPostingIDGetResponseBody

type LedgerPostingIDGetResponseBody struct {
	Value struct {
		ID      int    `json:"id"`
		Version int    `json:"version"`
		URL     string `json:"url"`
		Voucher struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"voucher"`
		Date        string `json:"date"`
		Description string `json:"description"`
		Account     struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"account"`
		Customer struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"customer"`
		Supplier interface{} `json:"supplier"`
		Employee struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"employee"`
		Project    interface{} `json:"project"`
		Product    interface{} `json:"product"`
		Department interface{} `json:"department"`
		VatType    struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"vatType"`
		Amount              float64 `json:"amount"`
		AmountCurrency      float64 `json:"amountCurrency"`
		AmountGross         float64 `json:"amountGross"`
		AmountGrossCurrency float64 `json:"amountGrossCurrency"`
		Currency            struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"currency"`
		CloseGroup      interface{} `json:"closeGroup"`
		InvoiceNumber   string      `json:"invoiceNumber"`
		TermOfPayment   string      `json:"termOfPayment"`
		Row             int         `json:"row"`
		SystemGenerated bool        `json:"systemGenerated"`
	} `json:"value"`
}

type LedgerVATTypePathParams

type LedgerVATTypePathParams struct {
}

func (*LedgerVATTypePathParams) Params

func (p *LedgerVATTypePathParams) Params() map[string]string

type LedgerVATTypeQueryParams

type LedgerVATTypeQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (LedgerVATTypeQueryParams) ToURLValues

func (p LedgerVATTypeQueryParams) ToURLValues() (url.Values, error)

type LedgerVATTypeRequest

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

func (*LedgerVATTypeRequest) Do

func (*LedgerVATTypeRequest) Method

func (r *LedgerVATTypeRequest) Method() string

func (LedgerVATTypeRequest) NewLedgerVATTypePathParams

func (r LedgerVATTypeRequest) NewLedgerVATTypePathParams() *LedgerVATTypePathParams

func (LedgerVATTypeRequest) NewLedgerVATTypeQueryParams

func (r LedgerVATTypeRequest) NewLedgerVATTypeQueryParams() *LedgerVATTypeQueryParams

func (LedgerVATTypeRequest) NewLedgerVATTypeRequestBody

func (r LedgerVATTypeRequest) NewLedgerVATTypeRequestBody() LedgerVATTypeRequestBody

func (*LedgerVATTypeRequest) NewResponseBody

func (r *LedgerVATTypeRequest) NewResponseBody() *LedgerVATTypeResponseBody

func (*LedgerVATTypeRequest) PathParams

func (*LedgerVATTypeRequest) QueryParams

func (*LedgerVATTypeRequest) RequestBody

func (*LedgerVATTypeRequest) SetMethod

func (r *LedgerVATTypeRequest) SetMethod(method string)

func (*LedgerVATTypeRequest) SetRequestBody

func (r *LedgerVATTypeRequest) SetRequestBody(body LedgerVATTypeRequestBody)

func (*LedgerVATTypeRequest) URL

func (r *LedgerVATTypeRequest) URL() url.URL

type LedgerVATTypeRequestBody

type LedgerVATTypeRequestBody struct{}

type LedgerVATTypeResponseBody

type LedgerVATTypeResponseBody struct {
	FullResultSize int      `json:"fullResultSize"`
	From           int      `json:"from"`
	Count          int      `json:"count"`
	VersionDigest  string   `json:"versionDigest"`
	Values         VATTypes `json:"values"`
}

type LedgerVoucherGetPathParams

type LedgerVoucherGetPathParams struct {
}

func (*LedgerVoucherGetPathParams) Params

func (p *LedgerVoucherGetPathParams) Params() map[string]string

type LedgerVoucherGetQueryParams

type LedgerVoucherGetQueryParams struct {
	Number   string `schema:"number,omitempty"`
	From     int    `schema:"from"`
	Count    int    `schema:"count"`
	DateFrom Date   `schema:"dateFrom"`
	DateTo   Date   `schema:"dateTo"`
}

func (LedgerVoucherGetQueryParams) ToURLValues

func (p LedgerVoucherGetQueryParams) ToURLValues() (url.Values, error)

type LedgerVoucherGetRequest

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

func (*LedgerVoucherGetRequest) All

func (*LedgerVoucherGetRequest) Do

func (*LedgerVoucherGetRequest) Method

func (r *LedgerVoucherGetRequest) Method() string

func (LedgerVoucherGetRequest) NewLedgerVoucherGetPathParams

func (r LedgerVoucherGetRequest) NewLedgerVoucherGetPathParams() *LedgerVoucherGetPathParams

func (LedgerVoucherGetRequest) NewLedgerVoucherGetQueryParams

func (r LedgerVoucherGetRequest) NewLedgerVoucherGetQueryParams() *LedgerVoucherGetQueryParams

func (LedgerVoucherGetRequest) NewLedgerVoucherGetRequestBody

func (r LedgerVoucherGetRequest) NewLedgerVoucherGetRequestBody() LedgerVoucherGetRequestBody

func (*LedgerVoucherGetRequest) NewResponseBody

func (*LedgerVoucherGetRequest) PathParams

func (*LedgerVoucherGetRequest) QueryParams

func (*LedgerVoucherGetRequest) RequestBody

func (*LedgerVoucherGetRequest) SetMethod

func (r *LedgerVoucherGetRequest) SetMethod(method string)

func (*LedgerVoucherGetRequest) SetRequestBody

func (r *LedgerVoucherGetRequest) SetRequestBody(body LedgerVoucherGetRequestBody)

func (*LedgerVoucherGetRequest) URL

func (r *LedgerVoucherGetRequest) URL() url.URL

type LedgerVoucherGetRequestBody

type LedgerVoucherGetRequestBody struct{}

type LedgerVoucherGetResponseBody

type LedgerVoucherGetResponseBody struct {
	FullResultSize        int    `json:"fullResultSize"`
	From                  int    `json:"from"`
	Count                 int    `json:"count"`
	VersionDigest         string `json:"versionDigest"`
	Values                Vouchers
	TotalNumberOfPostings int `json:"totalNumberOfPostings"`
}

type LedgerVoucherIDGetPathParams

type LedgerVoucherIDGetPathParams struct {
	ID int
}

func (*LedgerVoucherIDGetPathParams) Params

func (p *LedgerVoucherIDGetPathParams) Params() map[string]string

type LedgerVoucherIDGetQueryParams

type LedgerVoucherIDGetQueryParams struct {
}

func (LedgerVoucherIDGetQueryParams) ToURLValues

func (p LedgerVoucherIDGetQueryParams) ToURLValues() (url.Values, error)

type LedgerVoucherIDGetRequest

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

func (*LedgerVoucherIDGetRequest) Do

func (*LedgerVoucherIDGetRequest) Method

func (r *LedgerVoucherIDGetRequest) Method() string

func (LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetPathParams

func (r LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetPathParams() *LedgerVoucherIDGetPathParams

func (LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetQueryParams

func (r LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetQueryParams() *LedgerVoucherIDGetQueryParams

func (LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetRequestBody

func (r LedgerVoucherIDGetRequest) NewLedgerVoucherIDGetRequestBody() LedgerVoucherIDGetRequestBody

func (*LedgerVoucherIDGetRequest) NewResponseBody

func (*LedgerVoucherIDGetRequest) PathParams

func (*LedgerVoucherIDGetRequest) QueryParams

func (*LedgerVoucherIDGetRequest) RequestBody

func (*LedgerVoucherIDGetRequest) SetMethod

func (r *LedgerVoucherIDGetRequest) SetMethod(method string)

func (*LedgerVoucherIDGetRequest) SetRequestBody

func (*LedgerVoucherIDGetRequest) URL

type LedgerVoucherIDGetRequestBody

type LedgerVoucherIDGetRequestBody struct{}

type LedgerVoucherIDGetResponseBody

type LedgerVoucherIDGetResponseBody struct {
	Value struct {
		ID          int    `json:"id"`
		Version     int    `json:"version"`
		URL         string `json:"url"`
		Date        string `json:"date"`
		Number      int    `json:"number"`
		Year        int    `json:"year"`
		Description string `json:"description"`
		VoucherType struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"voucherType"`
		ReverseVoucher interface{} `json:"reverseVoucher"`
		Postings       []struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"postings"`
		Document struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"document"`
		Attachment  interface{} `json:"attachment"`
		EdiDocument struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"ediDocument"`
	} `json:"value"`
}

type LedgerVoucherNonPostedGetPathParams

type LedgerVoucherNonPostedGetPathParams struct {
}

func (*LedgerVoucherNonPostedGetPathParams) Params

type LedgerVoucherNonPostedGetQueryParams

type LedgerVoucherNonPostedGetQueryParams struct {
	From     int  `schema:"from"`
	Count    int  `schema:"count"`
	DateFrom Date `schema:"dateFrom,omitempty"`
	DateTo   Date `schema:"dateTo,omitempty"`
}

func (LedgerVoucherNonPostedGetQueryParams) ToURLValues

type LedgerVoucherNonPostedGetRequest

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

func (*LedgerVoucherNonPostedGetRequest) All

func (*LedgerVoucherNonPostedGetRequest) Do

func (*LedgerVoucherNonPostedGetRequest) Method

func (LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetPathParams

func (r LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetPathParams() *LedgerVoucherNonPostedGetPathParams

func (LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetQueryParams

func (r LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetQueryParams() *LedgerVoucherNonPostedGetQueryParams

func (LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetRequestBody

func (r LedgerVoucherNonPostedGetRequest) NewLedgerVoucherNonPostedGetRequestBody() LedgerVoucherNonPostedGetRequestBody

func (*LedgerVoucherNonPostedGetRequest) NewResponseBody

func (*LedgerVoucherNonPostedGetRequest) PathParams

func (*LedgerVoucherNonPostedGetRequest) QueryParams

func (*LedgerVoucherNonPostedGetRequest) RequestBody

func (*LedgerVoucherNonPostedGetRequest) SetMethod

func (r *LedgerVoucherNonPostedGetRequest) SetMethod(method string)

func (*LedgerVoucherNonPostedGetRequest) SetRequestBody

func (*LedgerVoucherNonPostedGetRequest) URL

type LedgerVoucherNonPostedGetRequestBody

type LedgerVoucherNonPostedGetRequestBody struct{}

type LedgerVoucherNonPostedGetResponseBody

type LedgerVoucherNonPostedGetResponseBody struct {
	FullResultSize int    `json:"fullResultSize"`
	From           int    `json:"from"`
	Count          int    `json:"count"`
	VersionDigest  string `json:"versionDigest"`
	Values         []struct {
		ID          int    `json:"id"`
		Version     int    `json:"version"`
		URL         string `json:"url"`
		Date        string `json:"date"`
		Number      int    `json:"number"`
		Year        int    `json:"year"`
		Description string `json:"description"`
		VoucherType struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"voucherType"`
		ReverseVoucher interface{} `json:"reverseVoucher"`
		Postings       []struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"postings"`
		Document struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"document"`
		Attachment struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"attachment"`
		EdiDocument struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"ediDocument"`
	} `json:"values"`
	TotalNumberOfPostings int `json:"totalNumberOfPostings"`
}

type LedgerVoucherPostPathParams

type LedgerVoucherPostPathParams struct {
}

func (*LedgerVoucherPostPathParams) Params

func (p *LedgerVoucherPostPathParams) Params() map[string]string

type LedgerVoucherPostQueryParams

type LedgerVoucherPostQueryParams struct {
	SendToLedger bool `schema:"sendToLedger"`
}

func (LedgerVoucherPostQueryParams) ToURLValues

func (p LedgerVoucherPostQueryParams) ToURLValues() (url.Values, error)

type LedgerVoucherPostRequest

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

func (*LedgerVoucherPostRequest) Do

func (*LedgerVoucherPostRequest) Method

func (r *LedgerVoucherPostRequest) Method() string

func (LedgerVoucherPostRequest) NewLedgerVoucherPostPathParams

func (r LedgerVoucherPostRequest) NewLedgerVoucherPostPathParams() *LedgerVoucherPostPathParams

func (LedgerVoucherPostRequest) NewLedgerVoucherPostQueryParams

func (r LedgerVoucherPostRequest) NewLedgerVoucherPostQueryParams() *LedgerVoucherPostQueryParams

func (LedgerVoucherPostRequest) NewLedgerVoucherPostRequestBody

func (r LedgerVoucherPostRequest) NewLedgerVoucherPostRequestBody() LedgerVoucherPostRequestBody

func (*LedgerVoucherPostRequest) NewResponseBody

func (*LedgerVoucherPostRequest) PathParams

func (*LedgerVoucherPostRequest) QueryParams

func (*LedgerVoucherPostRequest) RequestBody

func (*LedgerVoucherPostRequest) SetMethod

func (r *LedgerVoucherPostRequest) SetMethod(method string)

func (*LedgerVoucherPostRequest) SetRequestBody

func (*LedgerVoucherPostRequest) URL

func (r *LedgerVoucherPostRequest) URL() url.URL

type LedgerVoucherPostRequestBody

type LedgerVoucherPostRequestBody Voucher

type LedgerVoucherPostResponseBody

type LedgerVoucherPostResponseBody struct{}

type LedgerVoucherTypePathParams

type LedgerVoucherTypePathParams struct {
}

func (*LedgerVoucherTypePathParams) Params

func (p *LedgerVoucherTypePathParams) Params() map[string]string

type LedgerVoucherTypeQueryParams

type LedgerVoucherTypeQueryParams struct {
	From  int `schema:"from"`
	Count int `schema:"count"`
}

func (LedgerVoucherTypeQueryParams) ToURLValues

func (p LedgerVoucherTypeQueryParams) ToURLValues() (url.Values, error)

type LedgerVoucherTypeRequest

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

func (*LedgerVoucherTypeRequest) Do

func (*LedgerVoucherTypeRequest) Method

func (r *LedgerVoucherTypeRequest) Method() string

func (LedgerVoucherTypeRequest) NewLedgerVoucherTypePathParams

func (r LedgerVoucherTypeRequest) NewLedgerVoucherTypePathParams() *LedgerVoucherTypePathParams

func (LedgerVoucherTypeRequest) NewLedgerVoucherTypeQueryParams

func (r LedgerVoucherTypeRequest) NewLedgerVoucherTypeQueryParams() *LedgerVoucherTypeQueryParams

func (LedgerVoucherTypeRequest) NewLedgerVoucherTypeRequestBody

func (r LedgerVoucherTypeRequest) NewLedgerVoucherTypeRequestBody() LedgerVoucherTypeRequestBody

func (*LedgerVoucherTypeRequest) NewResponseBody

func (*LedgerVoucherTypeRequest) PathParams

func (*LedgerVoucherTypeRequest) QueryParams

func (*LedgerVoucherTypeRequest) RequestBody

func (*LedgerVoucherTypeRequest) SetMethod

func (r *LedgerVoucherTypeRequest) SetMethod(method string)

func (*LedgerVoucherTypeRequest) SetRequestBody

func (*LedgerVoucherTypeRequest) URL

func (r *LedgerVoucherTypeRequest) URL() url.URL

type LedgerVoucherTypeRequestBody

type LedgerVoucherTypeRequestBody struct{}

type LedgerVoucherTypeResponseBody

type LedgerVoucherTypeResponseBody struct {
	FullResultSize int    `json:"fullResultSize"`
	From           int    `json:"from"`
	Count          int    `json:"count"`
	VersionDigest  string `json:"versionDigest"`
	Values         []struct {
		ID      int    `json:"id"`
		Version int    `json:"version"`
		URL     string `json:"url"`
		Name    string `json:"name"`
	} `json:"values"`
}

type Order

type Order struct {
	// ID                 int      `json:"id"`
	// Version            int      `json:"version"`
	// URL                string   `json:"url"`
	Customer Customer `json:"customer,omitempty"`
	// Contact            Contact  `json:"contact"`
	// Attn               Attn     `json:"attn"`
	ReceiverEmail      string  `json:"receiverEmail,omitempty"`
	OverdueNoticeEmail string  `json:"overdueNoticeEmail,omitempty"`
	Number             string  `json:"number,omitempty"`
	Reference          string  `json:"reference,omitempty"`
	OurContact         Contact `json:"ourContact,omitempty"`
	OurContactEmployee Contact `json:"ourContactEmployee,omitempty"`
	// Department         struct {
	// 	ID               int    `json:"id"`
	// 	Version          int    `json:"version"`
	// 	Name             string `json:"name"`
	// 	DepartmentNumber string `json:"departmentNumber"`
	// } `json:"department"`
	OrderDate string `json:"orderDate,omitempty"`
	// Project                                     Project    `json:"project"`
	InvoiceComment string `json:"invoiceComment,omitempty"`
	// Currency       Currency `json:"currency"`
	// InvoicesDueIn                               int        `json:"invoicesDueIn"`
	// InvoicesDueInType                           string     `json:"invoicesDueInType"`
	IsShowOpenPostsOnInvoices bool `json:"isShowOpenPostsOnInvoices,omitempty"`
	// IsClosed                                    bool       `json:"isClosed"`
	DeliveryDate string `json:"deliveryDate,omitempty"`
	// DeliveryAddress                             Address    `json:"deliveryAddress"`
	// DeliveryComment                             string     `json:"deliveryComment"`
	IsPrioritizeAmountsIncludingVat bool `json:"isPrioritizeAmountsIncludingVat,omitempty"`
	// OrderLineSorting                            string     `json:"orderLineSorting"`
	OrderLines OrderLines `json:"orderLines,omitempty"`
}

func (Order) IsEmpty

func (o Order) IsEmpty() bool

func (Order) MarshalJSON

func (o Order) MarshalJSON() ([]byte, error)

type OrderLine

type OrderLine struct {
	ID int `json:"id,omitempty"`
	// Version int     `json:"version"`
	// URL     string  `json:"url"`
	Product Product `json:"product,omitempty"`
	// Inventory struct {
	// 	ID              int    `json:"id"`
	// 	Version         int    `json:"version"`
	// 	Name            string `json:"name"`
	// 	Number          string `json:"number"`
	// 	IsMainInventory bool   `json:"isMainInventory"`
	// 	IsInactive      bool   `json:"isInactive"`
	// } `json:"inventory"`
	Description                   string  `json:"description,omitempty"`
	Count                         int     `json:"count,omitempty"`
	UnitCostCurrency              int     `json:"unitCostCurrency,omitempty"`
	UnitPriceExcludingVATCurrency float64 `json:"unitPriceExcludingVatCurrency,omitempty"`
	// Currency                      Currency `json:"currency"`
	// Markup                        int     `json:"markup"`
	// Discount                      int     `json:"discount"`
	VATType                       VATType `json:"vatType,omitempty"`
	UnitPriceIncludingVATCurrency float64 `json:"unitPriceIncludingVatCurrency,omitempty"`
	AmountExcludingVATCurrency    float64 `json:"amountExcludingVatCurrency,omitempty"`
	AmountIncludingVATCurrency    float64 `json:"amountIncludingVatCurrency,omitempty"`
}

type OrderLines

type OrderLines []OrderLine

type OrderListPostPathParams

type OrderListPostPathParams struct {
}

func (*OrderListPostPathParams) Params

func (p *OrderListPostPathParams) Params() map[string]string

type OrderListPostQueryParams

type OrderListPostQueryParams struct{}

func (OrderListPostQueryParams) ToURLValues

func (p OrderListPostQueryParams) ToURLValues() (url.Values, error)

type OrderListPostRequest

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

func (*OrderListPostRequest) Do

func (*OrderListPostRequest) Method

func (r *OrderListPostRequest) Method() string

func (OrderListPostRequest) NewOrderListPostPathParams

func (r OrderListPostRequest) NewOrderListPostPathParams() *OrderListPostPathParams

func (OrderListPostRequest) NewOrderListPostQueryParams

func (r OrderListPostRequest) NewOrderListPostQueryParams() *OrderListPostQueryParams

func (OrderListPostRequest) NewOrderListPostRequestBody

func (r OrderListPostRequest) NewOrderListPostRequestBody() OrderListPostRequestBody

func (*OrderListPostRequest) NewResponseBody

func (r *OrderListPostRequest) NewResponseBody() *OrderListPostResponseBody

func (*OrderListPostRequest) PathParams

func (*OrderListPostRequest) QueryParams

func (*OrderListPostRequest) RequestBody

func (*OrderListPostRequest) SetMethod

func (r *OrderListPostRequest) SetMethod(method string)

func (*OrderListPostRequest) SetRequestBody

func (r *OrderListPostRequest) SetRequestBody(body OrderListPostRequestBody)

func (*OrderListPostRequest) URL

func (r *OrderListPostRequest) URL() url.URL

type OrderListPostRequestBody

type OrderListPostRequestBody Orders

type OrderListPostResponseBody

type OrderListPostResponseBody struct{}

type OrderSearchPathParams

type OrderSearchPathParams struct {
}

func (*OrderSearchPathParams) Params

func (p *OrderSearchPathParams) Params() map[string]string

type OrderSearchQueryParams

type OrderSearchQueryParams struct {
	Number        string `schema:"number,omitempty"`
	From          int    `schema:"from,omitempty"`
	Count         int    `schema:"count,omitempty"`
	OrderDateFrom Date   `schema:"orderDateFrom,omitempty"`
	OrderDateTo   Date   `schema:"orderDateTo,omitempty"`
}

func (OrderSearchQueryParams) ToURLValues

func (p OrderSearchQueryParams) ToURLValues() (url.Values, error)

type OrderSearchRequest

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

func (*OrderSearchRequest) All

func (*OrderSearchRequest) Do

func (*OrderSearchRequest) Method

func (r *OrderSearchRequest) Method() string

func (OrderSearchRequest) NewOrderSearchPathParams

func (r OrderSearchRequest) NewOrderSearchPathParams() *OrderSearchPathParams

func (OrderSearchRequest) NewOrderSearchQueryParams

func (r OrderSearchRequest) NewOrderSearchQueryParams() *OrderSearchQueryParams

func (OrderSearchRequest) NewOrderSearchRequestBody

func (r OrderSearchRequest) NewOrderSearchRequestBody() OrderSearchRequestBody

func (*OrderSearchRequest) NewResponseBody

func (r *OrderSearchRequest) NewResponseBody() *OrderSearchResponseBody

func (*OrderSearchRequest) PathParams

func (r *OrderSearchRequest) PathParams() *OrderSearchPathParams

func (*OrderSearchRequest) QueryParams

func (r *OrderSearchRequest) QueryParams() *OrderSearchQueryParams

func (*OrderSearchRequest) RequestBody

func (r *OrderSearchRequest) RequestBody() *OrderSearchRequestBody

func (*OrderSearchRequest) SetMethod

func (r *OrderSearchRequest) SetMethod(method string)

func (*OrderSearchRequest) SetRequestBody

func (r *OrderSearchRequest) SetRequestBody(body OrderSearchRequestBody)

func (*OrderSearchRequest) URL

func (r *OrderSearchRequest) URL() url.URL

type OrderSearchRequestBody

type OrderSearchRequestBody struct{}

type OrderSearchResponseBody

type OrderSearchResponseBody struct {
	FullResultSize        int    `json:"fullResultSize"`
	From                  int    `json:"from"`
	Count                 int    `json:"count"`
	VersionDigest         string `json:"versionDigest"`
	Values                Orders `json:"values"`
	TotalNumberOfPostings int    `json:"totalNumberOfPostings"`
}

type Orders

type Orders []Order

type PathParams

type PathParams interface {
	Params() map[string]string
}

type Posting

type Posting struct {
	ID                  int         `json:"id,omitempty"`
	Version             int         `json:"version,omitempty"`
	URL                 string      `json:"url"`
	Date                string      `json:"date"`
	Description         string      `json:"description"`
	Account             *Account    `json:"account"`
	Customer            *Customer   `json:"customer,omitempty"`
	Supplier            *Supplier   `json:"supplier,omitempty"`
	Employee            *Employee   `json:"employee,omitempty"`
	Project             *Project    `json:"project,omitempty"`
	Product             *Product    `json:"project,omitempty"`
	Department          *Department `json:"department,omitempty"`
	VATType             *VATType    `json:"vatType,omitempty"`
	Amount              float64     `json:"amount,omitempty"`
	AmountCurrency      float64     `json:"amountCurrency,omitempty"`
	AmountGross         float64     `json:"amountGross"`
	AmountGrossCurrency float64     `json:"amountGrossCurrency"`
	Currency            *Currency   `json:"currency,omitempty"`
	CloseGroup          *CloseGroup `json:"closeGroup,omitempty"`
	InvoiceNumber       string      `json:"invoiceNumber,omitempty"`
	TermOfPayment       string      `json:"termOfPayment,omitempty"`
	Row                 int         `json:"row,omitempty"`
}

func (Posting) IsEmpty

func (p Posting) IsEmpty() bool

func (Posting) MarshalJSON

func (p Posting) MarshalJSON() ([]byte, error)

type Postings

type Postings []Posting

type Product

type Product struct {
	ID     int    `json:"id,omitempty"`
	Number string `json:"number,omitempty"`
}

func (Product) IsEmpty

func (p Product) IsEmpty() bool

func (Product) MarshalJSON

func (p Product) MarshalJSON() ([]byte, error)

type ProductGetPathParams

type ProductGetPathParams struct {
}

func (*ProductGetPathParams) Params

func (p *ProductGetPathParams) Params() map[string]string

type ProductGetQueryParams

type ProductGetQueryParams struct {
	Number                        string `schema:"number,omitempty"`
	IDs                           string `schema:"ids,omitempty"`
	Name                          string `schema:"name,omitempty"`
	EAN                           string `schema:"ean,omitempty"`
	IsInactive                    bool   `schema:"isInactive,omitempty"`
	IsStockItem                   bool   `schema:"isStockItem,omitempty"`
	IsSupplierProduct             string `schema:"isSupplierProduct,omitempty"`
	SupplierID                    string `schema:"supplierId,omitempty"`
	CurrencyID                    string `schema:"currencyId,omitempty"`
	VATTypeID                     string `schema:"vatTypeId,omitempty"`
	ProductUnitID                 string `schema:"productUnitId,omitempty"`
	DepartmentID                  string `schema:"departmentId,omitempty"`
	AccountID                     string `schema:"accountId,omitempty"`
	CostExcludingVATCurrencyFrom  string `schema:"costExcludingVatCurrencyFrom,omitempty"`
	CostExcludingVATCurrencyTo    string `schema:"costExcludingVatCurrencyTo,omitempty"`
	PriceExcludingVatCurrencyFrom string `schema:"priceExcludingVatCurrencyFrom,omitempty"`
	PriceExcludingVatCurrencyTo   string `schema:"priceExcludingVatCurrencyTo,omitempty"`
	PriceIncludingVatCurrencyFrom string `schema:"priceIncludingVatCurrencyFrom,omitempty"`
	PriceIncludingVatCurrencyTo   string `schema:"priceIncludingVatCurrencyTo,omitempty"`
	From                          int    `schema:"from,omitempty"`
	Count                         int    `schema:"count,omitempty"`
}

func (ProductGetQueryParams) ToURLValues

func (p ProductGetQueryParams) ToURLValues() (url.Values, error)

type ProductGetRequest

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

func (*ProductGetRequest) Do

func (*ProductGetRequest) Method

func (r *ProductGetRequest) Method() string

func (ProductGetRequest) NewProductGetPathParams

func (r ProductGetRequest) NewProductGetPathParams() *ProductGetPathParams

func (ProductGetRequest) NewProductGetQueryParams

func (r ProductGetRequest) NewProductGetQueryParams() *ProductGetQueryParams

func (ProductGetRequest) NewProductGetRequestBody

func (r ProductGetRequest) NewProductGetRequestBody() ProductGetRequestBody

func (*ProductGetRequest) NewResponseBody

func (r *ProductGetRequest) NewResponseBody() *ProductGetResponseBody

func (*ProductGetRequest) PathParams

func (r *ProductGetRequest) PathParams() *ProductGetPathParams

func (*ProductGetRequest) QueryParams

func (r *ProductGetRequest) QueryParams() *ProductGetQueryParams

func (*ProductGetRequest) RequestBody

func (r *ProductGetRequest) RequestBody() *ProductGetRequestBody

func (*ProductGetRequest) SetMethod

func (r *ProductGetRequest) SetMethod(method string)

func (*ProductGetRequest) SetRequestBody

func (r *ProductGetRequest) SetRequestBody(body ProductGetRequestBody)

func (*ProductGetRequest) URL

func (r *ProductGetRequest) URL() url.URL

type ProductGetRequestBody

type ProductGetRequestBody struct{}

type ProductGetResponseBody

type ProductGetResponseBody struct {
	FullResultSize int      `json:"fullResultSize"`
	From           int      `json:"from"`
	Count          int      `json:"count"`
	VersionDigest  string   `json:"versionDigest"`
	Values         Products `json:"values"`
}

type Products

type Products []Product

type Project

type Project struct {
}

type RequestCompletionCallback

type RequestCompletionCallback func(*http.Request, *http.Response)

RequestCompletionCallback defines the type of the request callback function

type Supplier

type Supplier struct {
}

type TokenSessionCreatePathParams

type TokenSessionCreatePathParams struct {
}

func (*TokenSessionCreatePathParams) Params

func (p *TokenSessionCreatePathParams) Params() map[string]string

type TokenSessionCreateQueryParams

type TokenSessionCreateQueryParams struct {
	ConsumerToken  string `schema:"consumerToken"`
	EmployeeToken  string `schema:"employeeToken"`
	ExpirationDate Date   `schema:"expirationDate"`
}

func (TokenSessionCreateQueryParams) ToURLValues

func (p TokenSessionCreateQueryParams) ToURLValues() (url.Values, error)

type TokenSessionCreateRequest

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

func (*TokenSessionCreateRequest) Do

func (*TokenSessionCreateRequest) Method

func (r *TokenSessionCreateRequest) Method() string

func (*TokenSessionCreateRequest) NewResponseBody

func (TokenSessionCreateRequest) NewTokenSessionCreatePathParams

func (r TokenSessionCreateRequest) NewTokenSessionCreatePathParams() *TokenSessionCreatePathParams

func (TokenSessionCreateRequest) NewTokenSessionCreateQueryParams

func (r TokenSessionCreateRequest) NewTokenSessionCreateQueryParams() *TokenSessionCreateQueryParams

func (TokenSessionCreateRequest) NewTokenSessionCreateRequestBody

func (r TokenSessionCreateRequest) NewTokenSessionCreateRequestBody() TokenSessionCreateRequestBody

func (*TokenSessionCreateRequest) PathParams

func (*TokenSessionCreateRequest) QueryParams

func (*TokenSessionCreateRequest) RequestBody

func (*TokenSessionCreateRequest) SetMethod

func (r *TokenSessionCreateRequest) SetMethod(method string)

func (*TokenSessionCreateRequest) SetRequestBody

func (*TokenSessionCreateRequest) URL

type TokenSessionCreateRequestBody

type TokenSessionCreateRequestBody struct{}

type TokenSessionCreateResponseBody

type TokenSessionCreateResponseBody struct {
	Value struct {
		ID            int    `json:"id"`
		Version       int    `json:"version"`
		URL           string `json:"url"`
		ConsumerToken struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"consumerToken"`
		EmployeeToken struct {
			ID  int    `json:"id"`
			URL string `json:"url"`
		} `json:"employeeToken"`
		ExpirationDate string      `json:"expirationDate"`
		Token          string      `json:"token"`
		EncryptionKey  interface{} `json:"encryptionKey"`
	} `json:"value"`
}

type VATType

type VATType struct {
	ID         int     `json:"id,omitempty"`
	Version    int     `json:"version,omitempty"`
	URL        string  `json:"url,omitempty"`
	Name       string  `json:"name,omitempty"`
	Number     string  `json:"number,omitempty"`
	Percentage float64 `json:"percentage,omitempty"`
}

func (VATType) IsEmpty

func (t VATType) IsEmpty() bool

func (VATType) MarshalJSON

func (t VATType) MarshalJSON() ([]byte, error)

type VATTypes

type VATTypes []VATType

type ValidationMessage

type ValidationMessage struct {
	Field   string `json:"field"`
	Message string `json:"message"`
	Path    string `json:"path"`
	RootID  string `json:"rootId"`
}

type ValidationMessages

type ValidationMessages []ValidationMessage

type Voucher

type Voucher struct {
	ID          int          `json:"id,omitempty"`
	Version     int          `json:"version,omitempty"`
	Date        string       `json:"date"`
	Description string       `json:"description"`
	VoucherType *VoucherType `json:"voucherType,omitempty"`
	Postings    Postings     `json:"postings"`
	Document    *Document    `json:"document,omitempty"`
	Attachment  *Attachment  `json:"attachment,omitempty"`
	EDIDocument *EDIDocument `json:"ediDocument,omitempty"`
}

func (Voucher) IsEmpty

func (v Voucher) IsEmpty() bool

func (Voucher) MarshalJSON

func (v Voucher) MarshalJSON() ([]byte, error)

type VoucherType

type VoucherType struct {
	ID      int    `json:"id"`
	Version int    `json:"version"`
	Name    string `json:"name"`
}

type Vouchers

type Vouchers []Voucher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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