vismaonline

package module
v0.0.0-...-2f62c71 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "eaccountingapi.vismaonline.com",
		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 {
	Name                      string   `json:"Name"`
	Number                    string   `json:"Number"`
	VATCodeID                 int      `json:"VatCodeId"`
	VATCodeDescription        string   `json:"VatCodeDescription"`
	FiscalYearID              string   `json:"FiscalYearId"`
	ReferenceCode             string   `json:"ReferenceCode"`
	Type                      int      `json:"Type"`
	TypeDescription           string   `json:"TypeDescription"`
	ModifiedUTC               DateTime `json:"ModifiedUTC"`
	IsActive                  bool     `json:"IsActive"`
	IsProjectAllowed          bool     `json:"IsProjectAllowed"`
	IsCostCenterAllowed       bool     `json:"IsCostCenterAllowed"`
	IsBlockedForManualBooking bool     `json:"IsBlockedForManualBooking"`
}

type Accounts

type Accounts []Account

type AccountsGet

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

func (*AccountsGet) Do

func (*AccountsGet) Method

func (r *AccountsGet) Method() string

func (AccountsGet) NewPathParams

func (r AccountsGet) NewPathParams() *AccountsGetPathParams

func (AccountsGet) NewQueryParams

func (r AccountsGet) NewQueryParams() *AccountsGetQueryParams

func (AccountsGet) NewRequestBody

func (r AccountsGet) NewRequestBody() AccountsGetBody

func (*AccountsGet) NewResponseBody

func (r *AccountsGet) NewResponseBody() *AccountsGetResponseBody

func (*AccountsGet) PathParams

func (r *AccountsGet) PathParams() *AccountsGetPathParams

func (*AccountsGet) PathParamsInterface

func (r *AccountsGet) PathParamsInterface() PathParams

func (*AccountsGet) QueryParams

func (r *AccountsGet) QueryParams() QueryParams

func (*AccountsGet) RequestBody

func (r *AccountsGet) RequestBody() *AccountsGetBody

func (*AccountsGet) RequestBodyInterface

func (r *AccountsGet) RequestBodyInterface() interface{}

func (*AccountsGet) SetMethod

func (r *AccountsGet) SetMethod(method string)

func (*AccountsGet) SetRequestBody

func (r *AccountsGet) SetRequestBody(body AccountsGetBody)

func (*AccountsGet) URL

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

type AccountsGetBody

type AccountsGetBody struct {
}

type AccountsGetPathParams

type AccountsGetPathParams struct {
}

func (*AccountsGetPathParams) Params

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

type AccountsGetQueryParams

type AccountsGetQueryParams struct {
}

func (AccountsGetQueryParams) ToURLValues

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

type AccountsGetResponseBody

type AccountsGetResponseBody struct {
	Meta Meta     `json:"Meta"`
	Data Accounts `json:"Data"`
}

type Article

type Article struct {
	ID                              string        `json:"Id,omitempty"`
	IsActive                        bool          `json:"IsActive"`
	Number                          string        `json:"Number"`
	Name                            string        `json:"Name"`
	NameEnglish                     *string       `json:"NameEnglish,omitempty"`
	NetPrice                        float64       `json:"NetPrice"`
	NetPriceWithDiscount            float64       `json:"NetPriceWithDiscount"`
	GrossPrice                      float64       `json:"GrossPrice"`
	CodingID                        string        `json:"CodingId"`
	CodingName                      string        `json:"CodingName"`
	UnitID                          string        `json:"UnitId"`
	UnitName                        string        `json:"UnitName"`
	UnitAbbreviation                string        `json:"UnitAbbreviation"`
	StockBalance                    float64       `json:"StockBalance"`
	StockBalanceManuallyChangedUtc  *DateTime     `json:"StockBalanceManuallyChangedUtc,omitempty"`
	StockBalanceReserved            float64       `json:"StockBalanceReserved"`
	StockBalanceAvailable           float64       `json:"StockBalanceAvailable"`
	CreatedUtc                      DateTime      `json:"CreatedUtc"`
	ChangedUtc                      DateTime      `json:"ChangedUtc"`
	HouseWorkType                   int           `json:"HouseWorkType"`
	PurchasePrice                   float64       `json:"PurchasePrice"`
	PurchasePriceManuallyChangedUtc *DateTime     `json:"PurchasePriceManuallyChangedUtc,omitempty"`
	SendToWebshop                   bool          `json:"SendToWebshop"`
	UsesMoss                        bool          `json:"UsesMoss"`
	ArticleLabels                   []interface{} `json:"ArticleLabels"`
	IsStock                         bool          `json:"IsStock"`
	IsServiceArticle                bool          `json:"IsServiceArticle"`
	StockLocationReference          string        `json:"StockLocationReference"`
	FreightCosts                    float64       `json:"FreightCosts"`
	FreightCostsManuallyChangedUtc  *DateTime     `json:"FreightCostsManuallyChangedUtc,omitempty"`
	UpdateStockPrices               bool          `json:"UpdateStockPrices"`
	Barcodes                        []interface{} `json:"Barcodes,omitempty"`
	StockValue                      float64       `json:"StockValue"`
	GreenTechnologyType             int           `json:"GreenTechnologyType"`
	MessageThreads                  []string      `json:"MessageThreads,omitempty"`
	Notes                           []string      `json:"Notes,omitempty"`
	Note                            string        `json:"Note,omitempty"`
	ShowStockInformation            bool          `json:"ShowStockInformation"`
	DiscountPercentage              float64       `json:"DiscountPercentage"`
	CurrencyCode                    *string       `json:"CurrencyCode"`
	PurchasePriceWithCurrency       float64       `json:"PurchasePriceWithCurrency"`
	FreightCostWithCurrency         float64       `json:"FreightCostWithCurrency"`
	OrderingPoint                   *float64      `json:"OrderingPoint,omitempty"`
	SupplierID                      *string       `json:"SupplierId,omitempty"`
	SupplierArticleNumber           *string       `json:"SupplierArticleNumber,omitempty"`
}

func (Article) IsEmpty

func (a Article) IsEmpty() bool

func (Article) MarshalJSON

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

type ArticleAccountCoding

type ArticleAccountCoding struct {
	ID                                                         string   `json:"Id"`
	Name                                                       *string  `json:"Name"`
	NameEnglish                                                *string  `json:"NameEnglish"`
	Type                                                       *string  `json:"Type"`
	VatRate                                                    *string  `json:"VatRate"`
	IsActive                                                   bool     `json:"IsActive"`
	VatRatePercent                                             float64  `json:"VatRatePercent"`
	DomesticSalesSubjectToReversedConstructionVatAccountNumber *int     `json:"DomesticSalesSubjectToReversedConstructionVatAccountNumber"`
	DomesticSalesSubjectToVatAccountNumber                     *int     `json:"DomesticSalesSubjectToVatAccountNumber"`
	DomesticSalesVatExemptAccountNumber                        *int     `json:"DomesticSalesVatExemptAccountNumber"`
	ForeignSalesSubjectToMossAccountNumber                     *int     `json:"ForeignSalesSubjectToMossAccountNumber"`
	ForeignSalesSubjectToThirdPartySalesAccountNumber          *int     `json:"ForeignSalesSubjectToThirdPartySalesAccountNumber"`
	ForeignSalesSubjectToVatWithinEuAccountNumber              *int     `json:"ForeignSalesSubjectToVatWithinEuAccountNumber"`
	ForeignSalesVatExemptOutsideEuAccountNumber                *int     `json:"ForeignSalesVatExemptOutsideEuAccountNumber"`
	ForeignSalesVatExemptWithinEuAccountNumber                 *int     `json:"ForeignSalesVatExemptWithinEuAccountNumber"`
	DomesticSalesVatCodeExemptAccountNumber                    *int     `json:"DomesticSalesVatCodeExemptAccountNumber"`
	ChangedUtc                                                 DateTime `json:"ChangedUtc"`
}

type ArticleAccountCodings

type ArticleAccountCodings []ArticleAccountCoding

type ArticleAccountCodingsGet

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

func (*ArticleAccountCodingsGet) Do

func (*ArticleAccountCodingsGet) Method

func (r *ArticleAccountCodingsGet) Method() string

func (ArticleAccountCodingsGet) NewPathParams

func (ArticleAccountCodingsGet) NewQueryParams

func (ArticleAccountCodingsGet) NewRequestBody

func (*ArticleAccountCodingsGet) NewResponseBody

func (*ArticleAccountCodingsGet) PathParams

func (*ArticleAccountCodingsGet) PathParamsInterface

func (r *ArticleAccountCodingsGet) PathParamsInterface() PathParams

func (*ArticleAccountCodingsGet) QueryParams

func (*ArticleAccountCodingsGet) RequestBody

func (*ArticleAccountCodingsGet) RequestBodyInterface

func (r *ArticleAccountCodingsGet) RequestBodyInterface() interface{}

func (*ArticleAccountCodingsGet) SetMethod

func (r *ArticleAccountCodingsGet) SetMethod(method string)

func (*ArticleAccountCodingsGet) SetRequestBody

func (*ArticleAccountCodingsGet) URL

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

type ArticleAccountCodingsGetBody

type ArticleAccountCodingsGetBody struct {
}

type ArticleAccountCodingsGetPathParams

type ArticleAccountCodingsGetPathParams struct {
}

func (*ArticleAccountCodingsGetPathParams) Params

type ArticleAccountCodingsGetQueryParams

type ArticleAccountCodingsGetQueryParams struct {
	VatRateDate Date `schema:"vatRateDate,omitempty"`
	Page        int  `schema:"$page,omitempty"`
	PageSize    int  `schema:"$pagesize,omitempty"`
}

func (ArticleAccountCodingsGetQueryParams) ToURLValues

type ArticleAccountCodingsGetResponseBody

type ArticleAccountCodingsGetResponseBody struct {
	Meta Meta                  `json:"Meta"`
	Data ArticleAccountCodings `json:"Data"`
}

type Articles

type Articles []Article

type ArticlesGet

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

func (*ArticlesGet) Do

func (*ArticlesGet) Method

func (r *ArticlesGet) Method() string

func (ArticlesGet) NewPathParams

func (r ArticlesGet) NewPathParams() *ArticlesGetPathParams

func (ArticlesGet) NewQueryParams

func (r ArticlesGet) NewQueryParams() *ArticlesGetQueryParams

func (ArticlesGet) NewRequestBody

func (r ArticlesGet) NewRequestBody() ArticlesGetBody

func (*ArticlesGet) NewResponseBody

func (r *ArticlesGet) NewResponseBody() *ArticlesGetResponseBody

func (*ArticlesGet) PathParams

func (r *ArticlesGet) PathParams() *ArticlesGetPathParams

func (*ArticlesGet) PathParamsInterface

func (r *ArticlesGet) PathParamsInterface() PathParams

func (*ArticlesGet) QueryParams

func (r *ArticlesGet) QueryParams() *ArticlesGetQueryParams

func (*ArticlesGet) RequestBody

func (r *ArticlesGet) RequestBody() *ArticlesGetBody

func (*ArticlesGet) RequestBodyInterface

func (r *ArticlesGet) RequestBodyInterface() interface{}

func (*ArticlesGet) SetMethod

func (r *ArticlesGet) SetMethod(method string)

func (*ArticlesGet) SetRequestBody

func (r *ArticlesGet) SetRequestBody(body ArticlesGetBody)

func (*ArticlesGet) URL

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

type ArticlesGetBody

type ArticlesGetBody struct {
}

type ArticlesGetPathParams

type ArticlesGetPathParams struct {
}

func (*ArticlesGetPathParams) Params

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

type ArticlesGetQueryParams

type ArticlesGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (ArticlesGetQueryParams) ToURLValues

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

type ArticlesGetResponseBody

type ArticlesGetResponseBody struct {
	Meta Meta     `json:"Meta"`
	Data Articles `json:"Data"`
}

type ArticlesPost

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

func (*ArticlesPost) Do

func (*ArticlesPost) Method

func (r *ArticlesPost) Method() string

func (ArticlesPost) NewPathParams

func (r ArticlesPost) NewPathParams() *ArticlesPostPathParams

func (ArticlesPost) NewQueryParams

func (r ArticlesPost) NewQueryParams() *ArticlesPostQueryParams

func (ArticlesPost) NewRequestBody

func (r ArticlesPost) NewRequestBody() ArticlesPostBody

func (*ArticlesPost) NewResponseBody

func (r *ArticlesPost) NewResponseBody() *ArticlesPostResponseBody

func (*ArticlesPost) PathParams

func (r *ArticlesPost) PathParams() *ArticlesPostPathParams

func (*ArticlesPost) PathParamsInterface

func (r *ArticlesPost) PathParamsInterface() PathParams

func (*ArticlesPost) QueryParams

func (r *ArticlesPost) QueryParams() *ArticlesPostQueryParams

func (*ArticlesPost) RequestBody

func (r *ArticlesPost) RequestBody() *ArticlesPostBody

func (*ArticlesPost) RequestBodyInterface

func (r *ArticlesPost) RequestBodyInterface() interface{}

func (*ArticlesPost) SetMethod

func (r *ArticlesPost) SetMethod(method string)

func (*ArticlesPost) SetRequestBody

func (r *ArticlesPost) SetRequestBody(body ArticlesPostBody)

func (*ArticlesPost) URL

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

type ArticlesPostBody

type ArticlesPostBody Article

func (ArticlesPostBody) MarshalJSON

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

type ArticlesPostPathParams

type ArticlesPostPathParams struct {
}

func (*ArticlesPostPathParams) Params

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

type ArticlesPostQueryParams

type ArticlesPostQueryParams struct {
}

func (ArticlesPostQueryParams) ToURLValues

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

type ArticlesPostResponseBody

type ArticlesPostResponseBody Article

type BeforeRequestDoCallback

type BeforeRequestDoCallback func(*http.Client, *http.Request, interface{})

type Client

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

Client manages communication with Exact Globe Client

func NewClient

func NewClient(httpClient *http.Client) *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) Debug

func (c Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, body 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) GetEndpointURL

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

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewAccountsGet

func (c *Client) NewAccountsGet() AccountsGet

func (*Client) NewArticleAccountCodingsGet

func (c *Client) NewArticleAccountCodingsGet() ArticleAccountCodingsGet

func (*Client) NewArticlesGet

func (c *Client) NewArticlesGet() ArticlesGet

func (*Client) NewArticlesPost

func (c *Client) NewArticlesPost() ArticlesPost

func (*Client) NewCompanysettingsGet

func (c *Client) NewCompanysettingsGet() CompanysettingsGet

func (*Client) NewCostCentersGet

func (c *Client) NewCostCentersGet() CostCenterGet

func (*Client) NewCustomerinvoicesGet

func (c *Client) NewCustomerinvoicesGet() CustomerinvoicesGet

func (*Client) NewCustomerinvoicesPost

func (c *Client) NewCustomerinvoicesPost() CustomerinvoicesPost

func (*Client) NewCustomerledgeritemsGet

func (c *Client) NewCustomerledgeritemsGet() CustomerledgeritemsGet

func (*Client) NewCustomerledgeritemsPost

func (c *Client) NewCustomerledgeritemsPost() CustomerledgeritemsPost

func (*Client) NewCustomerledgeritemswithvoucherPost

func (c *Client) NewCustomerledgeritemswithvoucherPost() CustomerledgeritemswithvoucherPost

func (*Client) NewCustomersGet

func (c *Client) NewCustomersGet() CustomersGet

func (*Client) NewCustomersPost

func (c *Client) NewCustomersPost() CustomersPost

func (*Client) NewOrdersGet

func (c *Client) NewOrdersGet() OrdersGet

func (*Client) NewOrdersPost

func (c *Client) NewOrdersPost() OrdersPost

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)

func (*Client) NewTermsofpaymentsGet

func (c *Client) NewTermsofpaymentsGet() TermsofpaymentsGet

func (*Client) NewUnitsGet

func (c *Client) NewUnitsGet() UnitsGet

func (*Client) NewVatcodesGet

func (c *Client) NewVatcodesGet() VatcodesGet

func (*Client) NewVouchersGet

func (c *Client) NewVouchersGet() VouchersGet

func (*Client) NewVouchersPost

func (c *Client) NewVouchersPost() VouchersPost

func (*Client) SetBaseURL

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

func (*Client) SetBeforeRequestDo

func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetDisallowUnknownFields

func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)

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 Companysettings

type Companysettings struct {
	Name                    string      `json:"Name"`
	Email                   string      `json:"Email"`
	Phone                   string      `json:"Phone"`
	MobilePhone             string      `json:"MobilePhone"`
	Address1                string      `json:"Address1"`
	Address2                string      `json:"Address2"`
	CountryCode             string      `json:"CountryCode"`
	PostalCode              string      `json:"PostalCode"`
	City                    string      `json:"City"`
	Website                 interface{} `json:"Website"`
	OurReference            interface{} `json:"OurReference"`
	CurrencyCode            string      `json:"CurrencyCode"`
	TermsOfPaymentID        string      `json:"TermsOfPaymentId"`
	CorporateIdentityNumber string      `json:"CorporateIdentityNumber"`
	VATCode                 string      `json:"VatCode"`
	BankGiro                string      `json:"BankGiro"`
	PlusGiro                string      `json:"PlusGiro"`
	BankAccount             interface{} `json:"BankAccount"`
	Iban                    string      `json:"Iban"`
	AccountNumberDigits     int         `json:"AccountNumberDigits"`
	AccountingLockedTo      DateTime    `json:"AccountingLockedTo"`
	AccountingLockInterval  int         `json:"AccountingLockInterval"`
	TaxDeclarationDate      Date        `json:"TaxDeclarationDate"`
	Gln                     interface{} `json:"Gln"`
	ProductVariant          int         `json:"ProductVariant"`
	TypeOfBusiness          int         `json:"TypeOfBusiness"`
	VatPeriod               int         `json:"VatPeriod"`
	ActivatedModules        []string    `json:"ActivatedModules"`
	CompanyText             struct {
		CustomerInvoiceTextDomestic interface{} `json:"CustomerInvoiceTextDomestic"`
		CustomerInvoiceTextForeign  interface{} `json:"CustomerInvoiceTextForeign"`
		OrderTextDomestic           interface{} `json:"OrderTextDomestic"`
		OrderTextForeign            interface{} `json:"OrderTextForeign"`
		OverDueTextDomestic         string      `json:"OverDueTextDomestic"`
		OverDueTextForeign          string      `json:"OverDueTextForeign"`
	} `json:"CompanyText"`
	NextCustomerNumber         int  `json:"NextCustomerNumber"`
	NextSupplierNumber         int  `json:"NextSupplierNumber"`
	NextCustomerInvoiceNumber  int  `json:"NextCustomerInvoiceNumber"`
	NextQuoteNumber            int  `json:"NextQuoteNumber"`
	ShowPricesExclVatPC        bool `json:"ShowPricesExclVatPC"`
	IsPayslipActivated         bool `json:"IsPayslipActivated"`
	UsesMoss                   bool `json:"UsesMoss"`
	UsesPaymentReferenceNumber bool `json:"UsesPaymentReferenceNumber"`
	DomesticCurrencyRounding   int  `json:"DomesticCurrencyRounding"`
	AutoInvoice                struct {
		AutoInvoiceActivationStatus int `json:"AutoInvoiceActivationStatus"`
		AutoInvoiceB2CStatus        int `json:"AutoInvoiceB2CStatus"`
		AutoInvoiceInboundStatus    int `json:"AutoInvoiceInboundStatus"`
	} `json:"AutoInvoice"`
	ApprovalSettings struct {
		UsesSupplierInvoiceApproval bool `json:"UsesSupplierInvoiceApproval"`
		UsesVatReportApproval       bool `json:"UsesVatReportApproval"`
	} `json:"ApprovalSettings"`
	UsesReverseConstructionVat bool `json:"UsesReverseConstructionVat"`
	UsesRotReducedInvoicing    bool `json:"UsesRotReducedInvoicing"`
	CompanyRotRutSettings      struct {
		RutMaxAmountForPersBelow65Year float64 `json:"RutMaxAmountForPersBelow65Year"`
		RutMaxAmountForPersOver65Year  float64 `json:"RutMaxAmountForPersOver65Year"`
		RutReducedInvoicingPercent     float64 `json:"RutReducedInvoicingPercent"`
		RotReducedInvoicingMaxAmount   float64 `json:"RotReducedInvoicingMaxAmount"`
		RotReducedInvoicingPercent     float64 `json:"RotReducedInvoicingPercent"`
	} `json:"CompanyRotRutSettings"`
	CompanyStatus                      int         `json:"CompanyStatus"`
	CompanyIdentifier                  string      `json:"CompanyIdentifier"`
	BankgiroNumberPrint                interface{} `json:"BankgiroNumberPrint"`
	KeepOriginalDraftDate              Date        `json:"KeepOriginalDraftDate"`
	UsePaymentFilesForOutgoingPayments bool        `json:"UsePaymentFilesForOutgoingPayments"`
	UseAutomaticVatCalculation         bool        `json:"UseAutomaticVatCalculation"`
	ShowCostCenterReminder             bool        `json:"ShowCostCenterReminder"`
	ShowProjectReminder                bool        `json:"ShowProjectReminder"`
}

type CompanysettingsGet

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

func (*CompanysettingsGet) Do

func (*CompanysettingsGet) Method

func (r *CompanysettingsGet) Method() string

func (CompanysettingsGet) NewPathParams

func (CompanysettingsGet) NewQueryParams

func (CompanysettingsGet) NewRequestBody

func (r CompanysettingsGet) NewRequestBody() CompanysettingsGetBody

func (*CompanysettingsGet) NewResponseBody

func (r *CompanysettingsGet) NewResponseBody() *CompanysettingsGetResponseBody

func (*CompanysettingsGet) PathParams

func (*CompanysettingsGet) PathParamsInterface

func (r *CompanysettingsGet) PathParamsInterface() PathParams

func (*CompanysettingsGet) QueryParams

func (r *CompanysettingsGet) QueryParams() QueryParams

func (*CompanysettingsGet) RequestBody

func (r *CompanysettingsGet) RequestBody() *CompanysettingsGetBody

func (*CompanysettingsGet) RequestBodyInterface

func (r *CompanysettingsGet) RequestBodyInterface() interface{}

func (*CompanysettingsGet) SetMethod

func (r *CompanysettingsGet) SetMethod(method string)

func (*CompanysettingsGet) SetRequestBody

func (r *CompanysettingsGet) SetRequestBody(body CompanysettingsGetBody)

func (*CompanysettingsGet) URL

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

type CompanysettingsGetBody

type CompanysettingsGetBody struct {
}

type CompanysettingsGetPathParams

type CompanysettingsGetPathParams struct {
}

func (*CompanysettingsGetPathParams) Params

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

type CompanysettingsGetQueryParams

type CompanysettingsGetQueryParams struct {
}

func (CompanysettingsGetQueryParams) ToURLValues

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

type CompanysettingsGetResponseBody

type CompanysettingsGetResponseBody Companysettings

type CostCenter

type CostCenter struct {
	ID       string          `json:"Id"`
	Name     string          `json:"Name"`
	Number   int             `json:"Number"`
	IsActive bool            `json:"IsActive"`
	Items    CostCenterItems `json:"Items,omitempty"`
}

type CostCenterGet

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

func (*CostCenterGet) Do

func (*CostCenterGet) Method

func (r *CostCenterGet) Method() string

func (CostCenterGet) NewPathParams

func (r CostCenterGet) NewPathParams() *CostCenterGetPathParams

func (CostCenterGet) NewQueryParams

func (r CostCenterGet) NewQueryParams() *CostCenterGetQueryParams

func (CostCenterGet) NewRequestBody

func (r CostCenterGet) NewRequestBody() CostCenterGetBody

func (*CostCenterGet) NewResponseBody

func (r *CostCenterGet) NewResponseBody() *CostCenterGetResponseBody

func (*CostCenterGet) PathParams

func (r *CostCenterGet) PathParams() *CostCenterGetPathParams

func (*CostCenterGet) PathParamsInterface

func (r *CostCenterGet) PathParamsInterface() PathParams

func (*CostCenterGet) QueryParams

func (r *CostCenterGet) QueryParams() *CostCenterGetQueryParams

func (*CostCenterGet) RequestBody

func (r *CostCenterGet) RequestBody() *CostCenterGetBody

func (*CostCenterGet) RequestBodyInterface

func (r *CostCenterGet) RequestBodyInterface() interface{}

func (*CostCenterGet) SetMethod

func (r *CostCenterGet) SetMethod(method string)

func (*CostCenterGet) SetRequestBody

func (r *CostCenterGet) SetRequestBody(body CostCenterGetBody)

func (*CostCenterGet) URL

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

type CostCenterGetBody

type CostCenterGetBody struct {
}

type CostCenterGetPathParams

type CostCenterGetPathParams struct {
}

func (*CostCenterGetPathParams) Params

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

type CostCenterGetQueryParams

type CostCenterGetQueryParams struct {
	Page     int `schema:"$page,omitempty"`
	PageSize int `schema:"$pagesize:omitempty"`
}

func (CostCenterGetQueryParams) ToURLValues

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

type CostCenterGetResponseBody

type CostCenterGetResponseBody struct {
	Meta Meta        `json:"Meta"`
	Data CostCenters `json:"Data"`
}

type CostCenterItem

type CostCenterItem struct {
	ID           string   `json:"Id"`
	CostCenterID string   `json:"CostCenterId"`
	Name         string   `json:"Name"`
	ShortName    string   `json:"ShortName"`
	IsActive     bool     `json:"IsActive"`
	CreatedUTC   DateTime `json:"CreatedUtc"`
}

type CostCenterItems

type CostCenterItems []CostCenterItem

type CostCenters

type CostCenters []CostCenter

type Customer

type Customer struct {
	ID                                     string         `json:"Id,omitempty"`
	CustomerNumber                         string         `json:"CustomerNumber,omitempty"`
	CorporateIdentityNumber                string         `json:"CorporateIdentityNumber,omitempty"`
	ContactPersonEmail                     string         `json:"ContactPersonEmail,omitempty"`
	ContactPersonMobile                    string         `json:"ContactPersonMobile,omitempty"`
	ContactPersonName                      string         `json:"ContactPersonName,omitempty"`
	ContactPersonPhone                     string         `json:"ContactPersonPhone,omitempty"`
	CurrencyCode                           string         `json:"CurrencyCode,omitempty"`
	GLN                                    interface{}    `json:"GLN,omitempty"`
	EmailAddress                           string         `json:"EmailAddress,omitempty"`
	InvoiceAddress1                        string         `json:"InvoiceAddress1,omitempty"`
	InvoiceAddress2                        string         `json:"InvoiceAddress2,omitempty"`
	InvoiceCity                            string         `json:"InvoiceCity,omitempty"`
	InvoiceCountryCode                     string         `json:"InvoiceCountryCode,omitempty"`
	InvoicePostalCode                      string         `json:"InvoicePostalCode,omitempty"`
	DeliveryCustomerName                   interface{}    `json:"DeliveryCustomerName,omitempty"`
	DeliveryAddress1                       interface{}    `json:"DeliveryAddress1,omitempty"`
	DeliveryAddress2                       interface{}    `json:"DeliveryAddress2,omitempty"`
	DeliveryCity                           interface{}    `json:"DeliveryCity,omitempty"`
	DeliveryCountryCode                    interface{}    `json:"DeliveryCountryCode,omitempty"`
	DeliveryPostalCode                     interface{}    `json:"DeliveryPostalCode,omitempty"`
	DeliveryMethodID                       interface{}    `json:"DeliveryMethodId,omitempty"`
	DeliveryTermID                         interface{}    `json:"DeliveryTermId,omitempty"`
	PayToAccountID                         string         `json:"PayToAccountId,omitempty"`
	Name                                   string         `json:"Name,omitempty"`
	Note                                   string         `json:"Note,omitempty"`
	ReverseChargeOnConstructionServices    bool           `json:"ReverseChargeOnConstructionServices,omitempty"`
	WebshopCustomerNumber                  interface{}    `json:"WebshopCustomerNumber,omitempty"`
	MobilePhone                            string         `json:"MobilePhone,omitempty"`
	Telephone                              string         `json:"Telephone,omitempty"`
	TermsOfPaymentID                       string         `json:"TermsOfPaymentId,omitempty"`
	TermsOfPayment                         TermsOfPayment `json:"TermsOfPayment,omitempty"`
	VatNumber                              string         `json:"VatNumber,omitempty"`
	WwwAddress                             string         `json:"WwwAddress,omitempty"`
	LastInvoiceDate                        Date           `json:"LastInvoiceDate,omitempty"`
	IsPrivatePerson                        bool           `json:"IsPrivatePerson"`
	IsNorthernIreland                      bool           `json:"IsNorthernIreland,omitempty"`
	DiscountPercentage                     float64        `json:"DiscountPercentage,omitempty"`
	PropertyReference                      string         `json:"PropertyReference,omitempty"`
	ChangedUtc                             DateTime       `json:"ChangedUtc,omitempty"`
	IsActive                               bool           `json:"IsActive,omitempty"`
	ForceBookkeepVat                       bool           `json:"ForceBookkeepVat,omitempty"`
	EdiGlnNumber                           string         `json:"EdiGlnNumber,omitempty"`
	SalesDocumentLanguage                  string         `json:"SalesDocumentLanguage,omitempty"`
	ElectronicAddress                      interface{}    `json:"ElectronicAddress,omitempty"`
	ElectronicReference                    interface{}    `json:"ElectronicReference,omitempty"`
	EdiServiceDelivererID                  interface{}    `json:"EdiServiceDelivererId,omitempty"`
	AutoInvoiceActivationEmailSentDate     interface{}    `json:"AutoInvoiceActivationEmailSentDate,omitempty"`
	AutoInvoiceRegistrationRequestSentDate interface{}    `json:"AutoInvoiceRegistrationRequestSentDate,omitempty"`
	EmailAddresses                         []interface{}  `json:"EmailAddresses,omitempty"`
	CustomerLabels                         interface{}    `json:"CustomerLabels,omitempty"`
	IsFutureInvoiceDateAllowed             bool           `json:"IsFutureInvoiceDateAllowed,omitempty"`
	DeliveryBasedVat                       bool           `json:"DeliveryBasedVat,omitempty"`
}

func (Customer) IsEmpty

func (c Customer) IsEmpty() bool

func (Customer) MarshalJSON

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

type CustomerInvoice

type CustomerInvoice struct {
	ID                            string              `json:"Id,omitempty"`
	EuThirdParty                  bool                `json:"EuThirdParty"`
	IsCreditInvoice               bool                `json:"IsCreditInvoice,omitempty"`
	CurrencyCode                  string              `json:"CurrencyCode,omitempty"`
	CurrencyRate                  float64             `json:"CurrencyRate,omitempty"`
	CreatedByUserID               string              `json:"CreatedByUserId,omitempty"`
	TotalAmount                   float64             `json:"TotalAmount,omitempty"`
	TotalVatAmount                float64             `json:"TotalVatAmount,omitempty"`
	TotalRoundings                float64             `json:"TotalRoundings,omitempty"`
	TotalAmountInvoiceCurrency    float64             `json:"TotalAmountInvoiceCurrency,omitempty"`
	TotalVatAmountInvoiceCurrency float64             `json:"TotalVatAmountInvoiceCurrency,omitempty"`
	SetOffAmountInvoiceCurrency   float64             `json:"SetOffAmountInvoiceCurrency,omitempty"`
	CustomerID                    string              `json:"CustomerId,omitempty"`
	Rows                          CustomerInvoiceRows `json:"Rows,omitempty"`
	VatSpecification              []struct {
		AmountInvoiceCurrency    float64 `json:"AmountInvoiceCurrency,omitempty"`
		VatAmountInvoiceCurrency float64 `json:"VatAmountInvoiceCurrency,omitempty"`
		VatPercent               float64 `json:"VatPercent,omitempty"`
	} `json:"VatSpecification,omitempty"`
	InvoiceDate                              Date          `json:"InvoiceDate,omitempty"`
	DueDate                                  Date          `json:"DueDate,omitempty"`
	DeliveryDate                             Date          `json:"DeliveryDate,omitempty"`
	RotReducedInvoicingType                  int           `json:"RotReducedInvoicingType"`
	RotReducedInvoicingAmount                float64       `json:"RotReducedInvoicingAmount,omitempty"`
	RotReducedInvoicingPercent               float64       `json:"RotReducedInvoicingPercent,omitempty"`
	RotReducedInvoicingPropertyName          interface{}   `json:"RotReducedInvoicingPropertyName,omitempty"`
	RotReducedInvoicingOrgNumber             interface{}   `json:"RotReducedInvoicingOrgNumber,omitempty"`
	Persons                                  []interface{} `json:"Persons,omitempty"`
	RotReducedInvoicingAutomaticDistribution bool          `json:"RotReducedInvoicingAutomaticDistribution,omitempty"`
	ElectronicReference                      interface{}   `json:"ElectronicReference,omitempty"`
	ElectronicAddress                        interface{}   `json:"ElectronicAddress,omitempty"`
	EdiServiceDelivererID                    interface{}   `json:"EdiServiceDelivererId,omitempty"`
	OurReference                             interface{}   `json:"OurReference,omitempty"`
	YourReference                            string        `json:"YourReference,omitempty"`
	BuyersOrderReference                     string        `json:"BuyersOrderReference,omitempty"`
	InvoiceCustomerName                      string        `json:"InvoiceCustomerName,omitempty"`
	InvoiceAddress1                          string        `json:"InvoiceAddress1,omitempty"`
	InvoiceAddress2                          string        `json:"InvoiceAddress2,omitempty"`
	InvoicePostalCode                        string        `json:"InvoicePostalCode,omitempty"`
	InvoiceCity                              string        `json:"InvoiceCity,omitempty"`
	InvoiceCountryCode                       string        `json:"InvoiceCountryCode,omitempty"`
	DeliveryCustomerName                     interface{}   `json:"DeliveryCustomerName,omitempty"`
	DeliveryAddress1                         interface{}   `json:"DeliveryAddress1,omitempty"`
	DeliveryAddress2                         interface{}   `json:"DeliveryAddress2,omitempty"`
	DeliveryPostalCode                       interface{}   `json:"DeliveryPostalCode,omitempty"`
	DeliveryCity                             interface{}   `json:"DeliveryCity,omitempty"`
	DeliveryCountryCode                      interface{}   `json:"DeliveryCountryCode,omitempty"`
	DeliveryMethodName                       interface{}   `json:"DeliveryMethodName,omitempty"`
	DeliveryTermName                         interface{}   `json:"DeliveryTermName,omitempty"`
	DeliveryMethodCode                       interface{}   `json:"DeliveryMethodCode,omitempty"`
	DeliveryTermCode                         interface{}   `json:"DeliveryTermCode,omitempty"`
	CustomerIsPrivatePerson                  bool          `json:"CustomerIsPrivatePerson,omitempty"`
	TermsOfPaymentID                         string        `json:"TermsOfPaymentId,omitempty"`
	CustomerEmail                            string        `json:"CustomerEmail,omitempty"`
	InvoiceNumber                            int           `json:"InvoiceNumber,omitempty"`
	CustomerNumber                           string        `json:"CustomerNumber,omitempty"`
	PaymentReferenceNumber                   interface{}   `json:"PaymentReferenceNumber,omitempty"`
	RotPropertyType                          interface{}   `json:"RotPropertyType,omitempty"`
	SalesDocumentAttachments                 []interface{} `json:"SalesDocumentAttachments,omitempty"`
	MessageThreads                           []interface{} `json:"MessageThreads,omitempty"`
	Notes                                    []interface{} `json:"Notes,omitempty"`
	HasAutoInvoiceError                      bool          `json:"HasAutoInvoiceError,omitempty"`
	IsNotDelivered                           bool          `json:"IsNotDelivered,omitempty"`
	ReverseChargeOnConstructionServices      bool          `json:"ReverseChargeOnConstructionServices,omitempty"`
	WorkHouseOtherCosts                      interface{}   `json:"WorkHouseOtherCosts,omitempty"`
	RemainingAmount                          float64       `json:"RemainingAmount,omitempty"`
	RemainingAmountInvoiceCurrency           float64       `json:"RemainingAmountInvoiceCurrency,omitempty"`
	ReferringInvoiceID                       interface{}   `json:"ReferringInvoiceId,omitempty"`
	CreatedFromOrderID                       interface{}   `json:"CreatedFromOrderId,omitempty"`
	CreatedFromDraftID                       interface{}   `json:"CreatedFromDraftId,omitempty"`
	VoucherNumber                            string        `json:"VoucherNumber,omitempty"`
	VoucherID                                string        `json:"VoucherId,omitempty"`
	CreatedUtc                               DateTime      `json:"CreatedUtc,omitempty"`
	ModifiedUtc                              DateTime      `json:"ModifiedUtc,omitempty"`
	ReversedConstructionVatInvoicing         bool          `json:"ReversedConstructionVatInvoicing,omitempty"`
	IncludesVat                              bool          `json:"IncludesVat,omitempty"`
	SendType                                 interface{}   `json:"SendType,omitempty"`
	PaymentReminderIssued                    bool          `json:"PaymentReminderIssued,omitempty"`
	UsesGreenTechnology                      bool          `json:"UsesGreenTechnology,omitempty"`
	IsSold                                   bool          `json:"IsSold,omitempty"`
	FactoringInvoiceStatus                   int           `json:"FactoringInvoiceStatus,omitempty"`
	PaymentDate                              interface{}   `json:"PaymentDate,omitempty"`
	PaymentStatus                            int           `json:"PaymentStatus,omitempty"`
	CreditedBy                               []interface{} `json:"CreditedBy,omitempty"`
}

func (CustomerInvoice) IsEmpty

func (c CustomerInvoice) IsEmpty() bool

func (CustomerInvoice) MarshalJSON

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

type CustomerInvoiceRow

type CustomerInvoiceRow struct {
	ID                      string      `json:"Id,omitempty"`
	ArticleNumber           string      `json:"ArticleNumber,omitempty"`
	ArticleID               string      `json:"ArticleId,omitempty"`
	IsServiceArticle        bool        `json:"IsServiceArticle,omitempty"`
	AmountNoVat             float64     `json:"AmountNoVat,omitempty"`
	PercentVat              float64     `json:"PercentVat,omitempty"`
	LineNumber              int         `json:"LineNumber,omitempty"`
	IsTextRow               bool        `json:"IsTextRow"`
	Text                    string      `json:"Text,omitempty"`
	UnitPrice               float64     `json:"UnitPrice,omitempty"`
	UnitAbbreviation        string      `json:"UnitAbbreviation,omitempty"`
	UnitAbbreviationEnglish string      `json:"UnitAbbreviationEnglish,omitempty"`
	DiscountPercentage      float64     `json:"DiscountPercentage,omitempty"`
	Quantity                float64     `json:"Quantity,omitempty"`
	IsWorkCost              bool        `json:"IsWorkCost,omitempty"`
	IsVatFree               bool        `json:"IsVatFree,omitempty"`
	CostCenterItemID1       interface{} `json:"CostCenterItemId1,omitempty"`
	CostCenterItemID2       interface{} `json:"CostCenterItemId2,omitempty"`
	CostCenterItemID3       interface{} `json:"CostCenterItemId3,omitempty"`
	UnitID                  string      `json:"UnitId,omitempty"`
	ProjectID               interface{} `json:"ProjectId,omitempty"`
	WorkCostType            int         `json:"WorkCostType,omitempty"`
	WorkHours               float64     `json:"WorkHours,omitempty"`
	MaterialCosts           float64     `json:"MaterialCosts,omitempty"`
	GreenTechnologyType     int         `json:"GreenTechnologyType,omitempty"`
}

func (CustomerInvoiceRow) IsEmpty

func (r CustomerInvoiceRow) IsEmpty() bool

func (CustomerInvoiceRow) MarshalJSON

func (r CustomerInvoiceRow) MarshalJSON() ([]byte, error)

type CustomerInvoiceRows

type CustomerInvoiceRows []CustomerInvoiceRow

type CustomerInvoices

type CustomerInvoices []CustomerInvoice

type CustomerLedgerItem

type CustomerLedgerItem struct {
	CurrencyCode                   string   `json:"CurrencyCode"`
	CurrencyRate                   float64  `json:"CurrencyRate"`
	CurrencyRateUnit               float64  `json:"CurrencyRateUnit"`
	CustomerID                     string   `json:"CustomerId"`
	DueDate                        Date     `json:"DueDate"`
	ID                             string   `json:"Id,omitempty"`
	InvoiceDate                    Date     `json:"InvoiceDate"`
	InvoiceNumber                  int      `json:"InvoiceNumber"`
	IsCreditInvoice                bool     `json:"IsCreditInvoice"`
	PaymentReferenceNumber         string   `json:"PaymentReferenceNumber"`
	RemainingAmountInvoiceCurrency float64  `json:"RemainingAmountInvoiceCurrency"`
	RoundingsAmountInvoiceCurrency float64  `json:"RoundingsAmountInvoiceCurrency"`
	TotalAmountInvoiceCurrency     float64  `json:"TotalAmountInvoiceCurrency"`
	VATAmountInvoiceCurrency       float64  `json:"VATAmountInvoiceCurrency"`
	VoucherID                      string   `json:"VoucherId,omitempty"`
	ModifiedUTC                    DateTime `json:"ModifiedUtc,omitempty"`
	Voucher                        Voucher  `json:"Voucher,omitempty"`
}

func (CustomerLedgerItem) IsEmpty

func (i CustomerLedgerItem) IsEmpty() bool

func (CustomerLedgerItem) MarshalJSON

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

type CustomerLedgerItems

type CustomerLedgerItems []CustomerLedgerItem

type CustomerinvoicesGet

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

func (*CustomerinvoicesGet) Do

func (*CustomerinvoicesGet) Method

func (r *CustomerinvoicesGet) Method() string

func (CustomerinvoicesGet) NewPathParams

func (CustomerinvoicesGet) NewQueryParams

func (CustomerinvoicesGet) NewRequestBody

func (r CustomerinvoicesGet) NewRequestBody() CustomerinvoicesGetBody

func (*CustomerinvoicesGet) NewResponseBody

func (*CustomerinvoicesGet) PathParams

func (*CustomerinvoicesGet) PathParamsInterface

func (r *CustomerinvoicesGet) PathParamsInterface() PathParams

func (*CustomerinvoicesGet) QueryParams

func (*CustomerinvoicesGet) RequestBody

func (r *CustomerinvoicesGet) RequestBody() *CustomerinvoicesGetBody

func (*CustomerinvoicesGet) RequestBodyInterface

func (r *CustomerinvoicesGet) RequestBodyInterface() interface{}

func (*CustomerinvoicesGet) SetMethod

func (r *CustomerinvoicesGet) SetMethod(method string)

func (*CustomerinvoicesGet) SetRequestBody

func (r *CustomerinvoicesGet) SetRequestBody(body CustomerinvoicesGetBody)

func (*CustomerinvoicesGet) URL

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

type CustomerinvoicesGetBody

type CustomerinvoicesGetBody struct {
}

type CustomerinvoicesGetPathParams

type CustomerinvoicesGetPathParams struct {
}

func (*CustomerinvoicesGetPathParams) Params

type CustomerinvoicesGetQueryParams

type CustomerinvoicesGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (CustomerinvoicesGetQueryParams) ToURLValues

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

type CustomerinvoicesGetResponseBody

type CustomerinvoicesGetResponseBody struct {
	Meta Meta             `json:"Meta"`
	Data CustomerInvoices `json:"Data"`
}

type CustomerinvoicesPost

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

func (*CustomerinvoicesPost) Do

func (*CustomerinvoicesPost) Method

func (r *CustomerinvoicesPost) Method() string

func (CustomerinvoicesPost) NewPathParams

func (CustomerinvoicesPost) NewQueryParams

func (CustomerinvoicesPost) NewRequestBody

func (*CustomerinvoicesPost) NewResponseBody

func (*CustomerinvoicesPost) PathParams

func (*CustomerinvoicesPost) PathParamsInterface

func (r *CustomerinvoicesPost) PathParamsInterface() PathParams

func (*CustomerinvoicesPost) QueryParams

func (*CustomerinvoicesPost) RequestBody

func (*CustomerinvoicesPost) RequestBodyInterface

func (r *CustomerinvoicesPost) RequestBodyInterface() interface{}

func (*CustomerinvoicesPost) SetMethod

func (r *CustomerinvoicesPost) SetMethod(method string)

func (*CustomerinvoicesPost) SetRequestBody

func (r *CustomerinvoicesPost) SetRequestBody(body CustomerinvoicesPostBody)

func (*CustomerinvoicesPost) URL

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

type CustomerinvoicesPostBody

type CustomerinvoicesPostBody CustomerInvoice

func (CustomerinvoicesPostBody) MarshalJSON

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

type CustomerinvoicesPostPathParams

type CustomerinvoicesPostPathParams struct {
}

func (*CustomerinvoicesPostPathParams) Params

type CustomerinvoicesPostQueryParams

type CustomerinvoicesPostQueryParams struct {
}

func (CustomerinvoicesPostQueryParams) ToURLValues

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

type CustomerinvoicesPostResponseBody

type CustomerinvoicesPostResponseBody CustomerInvoice

type CustomerledgeritemsGet

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

func (*CustomerledgeritemsGet) Do

func (*CustomerledgeritemsGet) Method

func (r *CustomerledgeritemsGet) Method() string

func (CustomerledgeritemsGet) NewPathParams

func (CustomerledgeritemsGet) NewQueryParams

func (CustomerledgeritemsGet) NewRequestBody

func (*CustomerledgeritemsGet) NewResponseBody

func (*CustomerledgeritemsGet) PathParams

func (*CustomerledgeritemsGet) PathParamsInterface

func (r *CustomerledgeritemsGet) PathParamsInterface() PathParams

func (*CustomerledgeritemsGet) QueryParams

func (*CustomerledgeritemsGet) RequestBody

func (*CustomerledgeritemsGet) RequestBodyInterface

func (r *CustomerledgeritemsGet) RequestBodyInterface() interface{}

func (*CustomerledgeritemsGet) SetMethod

func (r *CustomerledgeritemsGet) SetMethod(method string)

func (*CustomerledgeritemsGet) SetRequestBody

func (r *CustomerledgeritemsGet) SetRequestBody(body CustomerledgeritemsGetBody)

func (*CustomerledgeritemsGet) URL

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

type CustomerledgeritemsGetBody

type CustomerledgeritemsGetBody struct {
}

type CustomerledgeritemsGetPathParams

type CustomerledgeritemsGetPathParams struct {
}

func (*CustomerledgeritemsGetPathParams) Params

type CustomerledgeritemsGetQueryParams

type CustomerledgeritemsGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (CustomerledgeritemsGetQueryParams) ToURLValues

type CustomerledgeritemsGetResponseBody

type CustomerledgeritemsGetResponseBody struct {
	Meta Meta                `json:"Meta"`
	Data CustomerLedgerItems `json:"Data"`
}

type CustomerledgeritemsPost

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

func (*CustomerledgeritemsPost) Do

func (*CustomerledgeritemsPost) Method

func (r *CustomerledgeritemsPost) Method() string

func (CustomerledgeritemsPost) NewPathParams

func (CustomerledgeritemsPost) NewQueryParams

func (CustomerledgeritemsPost) NewRequestBody

func (*CustomerledgeritemsPost) NewResponseBody

func (*CustomerledgeritemsPost) PathParams

func (*CustomerledgeritemsPost) PathParamsInterface

func (r *CustomerledgeritemsPost) PathParamsInterface() PathParams

func (*CustomerledgeritemsPost) QueryParams

func (*CustomerledgeritemsPost) RequestBody

func (*CustomerledgeritemsPost) RequestBodyInterface

func (r *CustomerledgeritemsPost) RequestBodyInterface() interface{}

func (*CustomerledgeritemsPost) SetMethod

func (r *CustomerledgeritemsPost) SetMethod(method string)

func (*CustomerledgeritemsPost) SetRequestBody

func (r *CustomerledgeritemsPost) SetRequestBody(body CustomerledgeritemsPostBody)

func (*CustomerledgeritemsPost) URL

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

type CustomerledgeritemsPostBody

type CustomerledgeritemsPostBody CustomerLedgerItem

func (CustomerledgeritemsPostBody) MarshalJSON

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

type CustomerledgeritemsPostPathParams

type CustomerledgeritemsPostPathParams struct {
}

func (*CustomerledgeritemsPostPathParams) Params

type CustomerledgeritemsPostQueryParams

type CustomerledgeritemsPostQueryParams struct {
}

func (CustomerledgeritemsPostQueryParams) ToURLValues

type CustomerledgeritemsPostResponseBody

type CustomerledgeritemsPostResponseBody CustomerLedgerItem

type CustomerledgeritemswithvoucherPost

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

func (*CustomerledgeritemswithvoucherPost) Do

func (*CustomerledgeritemswithvoucherPost) Method

func (CustomerledgeritemswithvoucherPost) NewPathParams

func (CustomerledgeritemswithvoucherPost) NewQueryParams

func (CustomerledgeritemswithvoucherPost) NewRequestBody

func (*CustomerledgeritemswithvoucherPost) NewResponseBody

func (*CustomerledgeritemswithvoucherPost) PathParams

func (*CustomerledgeritemswithvoucherPost) PathParamsInterface

func (r *CustomerledgeritemswithvoucherPost) PathParamsInterface() PathParams

func (*CustomerledgeritemswithvoucherPost) QueryParams

func (*CustomerledgeritemswithvoucherPost) RequestBody

func (*CustomerledgeritemswithvoucherPost) RequestBodyInterface

func (r *CustomerledgeritemswithvoucherPost) RequestBodyInterface() interface{}

func (*CustomerledgeritemswithvoucherPost) SetMethod

func (r *CustomerledgeritemswithvoucherPost) SetMethod(method string)

func (*CustomerledgeritemswithvoucherPost) SetRequestBody

func (*CustomerledgeritemswithvoucherPost) URL

type CustomerledgeritemswithvoucherPostBody

type CustomerledgeritemswithvoucherPostBody CustomerLedgerItem

func (CustomerledgeritemswithvoucherPostBody) MarshalJSON

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

type CustomerledgeritemswithvoucherPostPathParams

type CustomerledgeritemswithvoucherPostPathParams struct {
}

func (*CustomerledgeritemswithvoucherPostPathParams) Params

type CustomerledgeritemswithvoucherPostQueryParams

type CustomerledgeritemswithvoucherPostQueryParams struct {
	UseAutomaticVATCalculation bool `schema:"useAutomaticVatCalculation"`
	UseDefaultVATCodes         bool `schema:"useDefaultVatCodes"`
	UseDefaultVoucherSeries    bool `schema:"useDefaultVoucherSeries"`
}

func (CustomerledgeritemswithvoucherPostQueryParams) ToURLValues

type CustomerledgeritemswithvoucherPostResponseBody

type CustomerledgeritemswithvoucherPostResponseBody CustomerLedgerItem

type Customers

type Customers []Customer

type CustomersGet

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

func (*CustomersGet) Do

func (*CustomersGet) Method

func (r *CustomersGet) Method() string

func (CustomersGet) NewPathParams

func (r CustomersGet) NewPathParams() *CustomersGetPathParams

func (CustomersGet) NewQueryParams

func (r CustomersGet) NewQueryParams() *CustomersGetQueryParams

func (CustomersGet) NewRequestBody

func (r CustomersGet) NewRequestBody() CustomersGetBody

func (*CustomersGet) NewResponseBody

func (r *CustomersGet) NewResponseBody() *CustomersGetResponseBody

func (*CustomersGet) PathParams

func (r *CustomersGet) PathParams() *CustomersGetPathParams

func (*CustomersGet) PathParamsInterface

func (r *CustomersGet) PathParamsInterface() PathParams

func (*CustomersGet) QueryParams

func (r *CustomersGet) QueryParams() *CustomersGetQueryParams

func (*CustomersGet) RequestBody

func (r *CustomersGet) RequestBody() *CustomersGetBody

func (*CustomersGet) RequestBodyInterface

func (r *CustomersGet) RequestBodyInterface() interface{}

func (*CustomersGet) SetMethod

func (r *CustomersGet) SetMethod(method string)

func (*CustomersGet) SetRequestBody

func (r *CustomersGet) SetRequestBody(body CustomersGetBody)

func (*CustomersGet) URL

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

type CustomersGetBody

type CustomersGetBody struct {
}

type CustomersGetPathParams

type CustomersGetPathParams struct {
}

func (*CustomersGetPathParams) Params

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

type CustomersGetQueryParams

type CustomersGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (CustomersGetQueryParams) ToURLValues

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

type CustomersGetResponseBody

type CustomersGetResponseBody struct {
	Meta Meta      `json:"Meta"`
	Data Customers `json:"Data"`
}

type CustomersPost

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

func (*CustomersPost) Do

func (*CustomersPost) Method

func (r *CustomersPost) Method() string

func (CustomersPost) NewPathParams

func (r CustomersPost) NewPathParams() *CustomersPostPathParams

func (CustomersPost) NewQueryParams

func (r CustomersPost) NewQueryParams() *CustomersPostQueryParams

func (CustomersPost) NewRequestBody

func (r CustomersPost) NewRequestBody() CustomersPostBody

func (*CustomersPost) NewResponseBody

func (r *CustomersPost) NewResponseBody() *CustomersPostResponseBody

func (*CustomersPost) PathParams

func (r *CustomersPost) PathParams() *CustomersPostPathParams

func (*CustomersPost) PathParamsInterface

func (r *CustomersPost) PathParamsInterface() PathParams

func (*CustomersPost) QueryParams

func (r *CustomersPost) QueryParams() *CustomersPostQueryParams

func (*CustomersPost) RequestBody

func (r *CustomersPost) RequestBody() *CustomersPostBody

func (*CustomersPost) RequestBodyInterface

func (r *CustomersPost) RequestBodyInterface() interface{}

func (*CustomersPost) SetMethod

func (r *CustomersPost) SetMethod(method string)

func (*CustomersPost) SetRequestBody

func (r *CustomersPost) SetRequestBody(body CustomersPostBody)

func (*CustomersPost) URL

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

type CustomersPostBody

type CustomersPostBody Customer

func (CustomersPostBody) MarshalJSON

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

type CustomersPostPathParams

type CustomersPostPathParams struct {
}

func (*CustomersPostPathParams) Params

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

type CustomersPostQueryParams

type CustomersPostQueryParams struct {
}

func (CustomersPostQueryParams) ToURLValues

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

type CustomersPostResponseBody

type CustomersPostResponseBody Customer

type Date

type Date struct {
	time.Time
}

func (Date) IsEmpty

func (d Date) IsEmpty() bool

func (Date) MarshalJSON

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

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(text []byte) (err error)

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) IsEmpty

func (d DateTime) IsEmpty() bool

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

type ErrorResponse

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

	ErrorCode             int         `json:"ErrorCode"`
	DeveloperErrorMessage string      `json:"DeveloperErrorMessage"`
	ErrorID               string      `json:"ErrorId"`
	Errors                interface{} `json:"Errors"`
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type ExceptionResponse

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

	ExceptionType      string `json:"ExceptionType"`
	ExceptionMessage   string `json:"ExceptionMessage"`
	ExceptionFaultCode string `json:"ExceptionFaultCode"`
	ExceptionMessageID string `json:"ExceptionMessageID"`
	ExceptionDetails   string `json:"ExceptionDetails"`
}

func (*ExceptionResponse) Error

func (r *ExceptionResponse) Error() string

type Meta

type Meta struct {
	CurrentPage          int      `json:"CurrentPage"`
	PageSize             int      `json:"PageSize"`
	TotalNumberOfPages   int      `json:"TotalNumberOfPages"`
	TotalNumberOfResults int      `json:"TotalNumberOfResults"`
	ServerTimeUTC        DateTime `json:"ServerTimeUTC"`
}

type Oauth2Config

type Oauth2Config struct {
	oauth2.Config
}

func NewOauth2Config

func NewOauth2Config() *Oauth2Config

type Order

type Order struct {
	ID                               string        `json:"Id,omitempty"`
	Amount                           float64       `json:"Amount,omitempty"`
	CustomerID                       string        `json:"CustomerId,omitempty"`
	CurrencyCode                     string        `json:"CurrencyCode,omitempty"`
	CreatedUtc                       DateTime      `json:"CreatedUtc,omitempty"`
	VatAmount                        float64       `json:"VatAmount,omitempty"`
	RoundingsAmount                  float64       `json:"RoundingsAmount,omitempty"`
	DeliveredAmount                  float64       `json:"DeliveredAmount,omitempty"`
	DeliveredVatAmount               float64       `json:"DeliveredVatAmount,omitempty"`
	DeliveredRoundingsAmount         float64       `json:"DeliveredRoundingsAmount,omitempty"`
	DeliveryCustomerName             *string       `json:"DeliveryCustomerName,omitempty"`
	DeliveryAddress1                 *string       `json:"DeliveryAddress1,omitempty"`
	DeliveryAddress2                 *string       `json:"DeliveryAddress2,omitempty"`
	DeliveryPostalCode               *string       `json:"DeliveryPostalCode,omitempty"`
	DeliveryCity                     *string       `json:"DeliveryCity,omitempty"`
	DeliveryCountryCode              *string       `json:"DeliveryCountryCode,omitempty"`
	YourReference                    string        `json:"YourReference,omitempty"`
	OurReference                     string        `json:"OurReference,omitempty"`
	BuyersOrderReference             string        `json:"BuyersOrderReference,omitempty"`
	InvoiceAddress1                  string        `json:"InvoiceAddress1,omitempty"`
	InvoiceAddress2                  string        `json:"InvoiceAddress2,omitempty"`
	InvoiceCity                      string        `json:"InvoiceCity,omitempty"`
	InvoiceCountryCode               string        `json:"InvoiceCountryCode,omitempty"`
	InvoiceCustomerName              string        `json:"InvoiceCustomerName,omitempty"`
	CustomerNumber                   string        `json:"CustomerNumber,omitempty"`
	CustomerName                     string        `json:"CustomerName,omitempty"`
	InvoicePostalCode                string        `json:"InvoicePostalCode,omitempty"`
	DeliveryMethodName               *string       `json:"DeliveryMethodName,omitempty"`
	DeliveryMethodCode               *string       `json:"DeliveryMethodCode,omitempty"`
	DeliveryTermName                 *string       `json:"DeliveryTermName,omitempty"`
	DeliveryTermID                   *string       `json:"DeliveryTermId,omitempty"`
	DeliveryMethodID                 *string       `json:"DeliveryMethodId,omitempty"`
	DeliveryTermCode                 *string       `json:"DeliveryTermCode,omitempty"`
	TermsOfPaymentID                 string        `json:"TermsOfPaymentId,omitempty"`
	EuThirdParty                     bool          `json:"EuThirdParty"`
	CustomerIsPrivatePerson          bool          `json:"CustomerIsPrivatePerson"`
	IncludesVat                      bool          `json:"IncludesVat"`
	OrderDate                        string        `json:"OrderDate,omitempty"`
	Status                           int           `json:"Status,omitempty"`
	Number                           *int          `json:"Number,omitempty"`
	ModifiedUtc                      DateTime      `json:"ModifiedUtc,omitempty"`
	DeliveryDate                     Date          `json:"DeliveryDate,omitempty"`
	HouseWorkAmount                  float64       `json:"HouseWorkAmount,omitempty"`
	HouseWorkAutomaticDistribution   bool          `json:"HouseWorkAutomaticDistribution"`
	HouseWorkCorporateIdentityNumber *string       `json:"HouseWorkCorporateIdentityNumber,omitempty"`
	HouseWorkPropertyName            *string       `json:"HouseWorkPropertyName,omitempty"`
	SalesDocumentAttachments         []interface{} `json:"SalesDocumentAttachments,omitempty"`
	MessageThreads                   []interface{} `json:"MessageThreads,omitempty"`
	Notes                            []interface{} `json:"Notes,omitempty"`
	Rows                             []struct {
		ID                            string   `json:"Id,omitempty"`
		LineNumber                    int      `json:"LineNumber,omitempty"`
		DeliveredQuantity             float64  `json:"DeliveredQuantity,omitempty"`
		ArticleID                     string   `json:"ArticleId,omitempty"`
		IsServiceArticle              bool     `json:"IsServiceArticle,omitempty"`
		UnitID                        string   `json:"UnitId,omitempty"`
		ArticleNumber                 string   `json:"ArticleNumber,omitempty"`
		IsTextRow                     bool     `json:"IsTextRow,omitempty"`
		Text                          string   `json:"Text,omitempty"`
		UnitPrice                     float64  `json:"UnitPrice,omitempty"`
		Amount                        float64  `json:"Amount,omitempty"`
		IsDiscountInFixedAmount       bool     `json:"IsDiscountInFixedAmount"`
		DiscountFixedAmount           float64  `json:"DiscountFixedAmount,omitempty"`
		DiscountPercentage            float64  `json:"DiscountPercentage,omitempty"`
		Quantity                      float64  `json:"Quantity,omitempty"`
		WorkCostType                  int      `json:"WorkCostType,omitempty"`
		IsWorkCost                    bool     `json:"IsWorkCost"`
		WorkHours                     *float64 `json:"WorkHours,omitempty"`
		MaterialCosts                 *float64 `json:"MaterialCosts,omitempty"`
		EligibleForReverseChargeOnVat bool     `json:"EligibleForReverseChargeOnVat"`
		VatRate                       float64  `json:"VatRate,omitempty"`
		CostCenterItemID1             *string  `json:"CostCenterItemId1,omitempty"`
		CostCenterItemID2             *string  `json:"CostCenterItemId2,omitempty"`
		CostCenterItemID3             *string  `json:"CostCenterItemId3,omitempty"`
		ProjectID                     *string  `json:"ProjectId,omitempty"`
		GreenTechnologyType           int      `json:"GreenTechnologyType,omitempty"`
		ContributionMargin            *struct {
			Amount     *float64 `json:"Amount,omitempty"`
			Percentage *float64 `json:"Percentage,omitempty"`
		} `json:"ContributionMargin,omitempty"`
		PurchasePrice float64 `json:"PurchasePrice,omitempty"`
		FreightCosts  float64 `json:"FreightCosts,omitempty"`
	} `json:"Rows,omitempty"`
	ShippedDateTime                     *DateTime     `json:"ShippedDateTime,omitempty"`
	RotReducedInvoicingType             int           `json:"RotReducedInvoicingType,omitempty"`
	MaxAllowedTaxReductionAmount        float64       `json:"MaxAllowedTaxReductionAmount,omitempty"`
	RotReducedInvoicingPercent          float64       `json:"RotReducedInvoicingPercent,omitempty"`
	RotPropertyType                     *int          `json:"RotPropertyType,omitempty"`
	Persons                             []interface{} `json:"Persons,omitempty"`
	ReverseChargeOnConstructionServices bool          `json:"ReverseChargeOnConstructionServices"`
	UsesGreenTechnology                 bool          `json:"UsesGreenTechnology"`
	IsNotDelivered                      bool          `json:"IsNotDelivered"`
	ContributionMargin                  *struct {
		Amount     *float64 `json:"Amount,omitempty"`
		Percentage *float64 `json:"Percentage,omitempty"`
	} `json:"ContributionMargin,omitempty"`
	CreatedFromQuoteID *string `json:"CreatedFromQuoteId,omitempty"`
	BackgroundID       *string `json:"BackgroundId,omitempty"`
}

type Orders

type Orders []Order

type OrdersGet

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

func (*OrdersGet) Do

func (*OrdersGet) Method

func (r *OrdersGet) Method() string

func (OrdersGet) NewPathParams

func (r OrdersGet) NewPathParams() *OrdersGetPathParams

func (OrdersGet) NewQueryParams

func (r OrdersGet) NewQueryParams() *OrdersGetQueryParams

func (OrdersGet) NewRequestBody

func (r OrdersGet) NewRequestBody() OrdersGetBody

func (*OrdersGet) NewResponseBody

func (r *OrdersGet) NewResponseBody() *OrdersGetResponseBody

func (*OrdersGet) PathParams

func (r *OrdersGet) PathParams() *OrdersGetPathParams

func (*OrdersGet) PathParamsInterface

func (r *OrdersGet) PathParamsInterface() PathParams

func (*OrdersGet) QueryParams

func (r *OrdersGet) QueryParams() *OrdersGetQueryParams

func (*OrdersGet) RequestBody

func (r *OrdersGet) RequestBody() *OrdersGetBody

func (*OrdersGet) RequestBodyInterface

func (r *OrdersGet) RequestBodyInterface() interface{}

func (*OrdersGet) SetMethod

func (r *OrdersGet) SetMethod(method string)

func (*OrdersGet) SetRequestBody

func (r *OrdersGet) SetRequestBody(body OrdersGetBody)

func (*OrdersGet) URL

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

type OrdersGetBody

type OrdersGetBody struct {
}

type OrdersGetPathParams

type OrdersGetPathParams struct {
}

func (*OrdersGetPathParams) Params

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

type OrdersGetQueryParams

type OrdersGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (OrdersGetQueryParams) ToURLValues

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

type OrdersGetResponseBody

type OrdersGetResponseBody struct {
	Meta Meta   `json:"Meta"`
	Data Orders `json:"Data"`
}

type OrdersPost

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

func (*OrdersPost) Do

func (*OrdersPost) Method

func (r *OrdersPost) Method() string

func (OrdersPost) NewPathParams

func (r OrdersPost) NewPathParams() *OrdersPostPathParams

func (OrdersPost) NewQueryParams

func (r OrdersPost) NewQueryParams() *OrdersPostQueryParams

func (OrdersPost) NewRequestBody

func (r OrdersPost) NewRequestBody() OrdersPostBody

func (*OrdersPost) NewResponseBody

func (r *OrdersPost) NewResponseBody() *OrdersPostResponseBody

func (*OrdersPost) PathParams

func (r *OrdersPost) PathParams() *OrdersPostPathParams

func (*OrdersPost) PathParamsInterface

func (r *OrdersPost) PathParamsInterface() PathParams

func (*OrdersPost) QueryParams

func (r *OrdersPost) QueryParams() *OrdersPostQueryParams

func (*OrdersPost) RequestBody

func (r *OrdersPost) RequestBody() *OrdersPostBody

func (*OrdersPost) RequestBodyInterface

func (r *OrdersPost) RequestBodyInterface() interface{}

func (*OrdersPost) SetMethod

func (r *OrdersPost) SetMethod(method string)

func (*OrdersPost) SetRequestBody

func (r *OrdersPost) SetRequestBody(body OrdersPostBody)

func (*OrdersPost) URL

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

type OrdersPostBody

type OrdersPostBody Order

type OrdersPostPathParams

type OrdersPostPathParams struct {
}

func (*OrdersPostPathParams) Params

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

type OrdersPostQueryParams

type OrdersPostQueryParams struct {
}

func (OrdersPostQueryParams) ToURLValues

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

type OrdersPostResponseBody

type OrdersPostResponseBody Order

type PathParams

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

type QueryParams

type QueryParams interface {
	ToURLValues() (url.Values, error)
}

type Request

type Request interface {
	Method() string
	// QueryParams() QueryParams
	PathParamsInterface() PathParams
	RequestBodyInterface() interface{}
	URL() *url.URL
}

type RequestCompletionCallback

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

RequestCompletionCallback defines the type of the request callback function

type TermsOfPayment

type TermsOfPayment struct {
	ID                     string      `json:"Id"`
	Name                   string      `json:"Name"`
	NameEnglish            string      `json:"NameEnglish"`
	NumberOfDays           int         `json:"NumberOfDays"`
	TermsOfPaymentTypeID   int         `json:"TermsOfPaymentTypeId"`
	TermsOfPaymentTypeText interface{} `json:"TermsOfPaymentTypeText"`
	AvailableForSales      bool        `json:"AvailableForSales"`
	AvailableForPurchase   bool        `json:"AvailableForPurchase"`
}

func (TermsOfPayment) IsEmpty

func (t TermsOfPayment) IsEmpty() bool

func (TermsOfPayment) MarshalJSON

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

type TermsOfPayments

type TermsOfPayments []TermsOfPayment

type TermsofpaymentsGet

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

func (*TermsofpaymentsGet) Do

func (*TermsofpaymentsGet) Method

func (r *TermsofpaymentsGet) Method() string

func (TermsofpaymentsGet) NewPathParams

func (TermsofpaymentsGet) NewQueryParams

func (TermsofpaymentsGet) NewRequestBody

func (r TermsofpaymentsGet) NewRequestBody() TermsofpaymentsGetBody

func (*TermsofpaymentsGet) NewResponseBody

func (r *TermsofpaymentsGet) NewResponseBody() *TermsofpaymentsGetResponseBody

func (*TermsofpaymentsGet) PathParams

func (*TermsofpaymentsGet) PathParamsInterface

func (r *TermsofpaymentsGet) PathParamsInterface() PathParams

func (*TermsofpaymentsGet) QueryParams

func (r *TermsofpaymentsGet) QueryParams() QueryParams

func (*TermsofpaymentsGet) RequestBody

func (r *TermsofpaymentsGet) RequestBody() *TermsofpaymentsGetBody

func (*TermsofpaymentsGet) RequestBodyInterface

func (r *TermsofpaymentsGet) RequestBodyInterface() interface{}

func (*TermsofpaymentsGet) SetMethod

func (r *TermsofpaymentsGet) SetMethod(method string)

func (*TermsofpaymentsGet) SetRequestBody

func (r *TermsofpaymentsGet) SetRequestBody(body TermsofpaymentsGetBody)

func (*TermsofpaymentsGet) URL

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

type TermsofpaymentsGetBody

type TermsofpaymentsGetBody struct {
}

type TermsofpaymentsGetPathParams

type TermsofpaymentsGetPathParams struct {
}

func (*TermsofpaymentsGetPathParams) Params

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

type TermsofpaymentsGetQueryParams

type TermsofpaymentsGetQueryParams struct {
}

func (TermsofpaymentsGetQueryParams) ToURLValues

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

type TermsofpaymentsGetResponseBody

type TermsofpaymentsGetResponseBody struct {
	Meta Meta            `json:"Meta"`
	Data TermsOfPayments `json:"Data"`
}

type Unit

type Unit struct {
	ID                  string  `json:"Id"`
	Name                *string `json:"Name"`
	Code                *string `json:"Code"`
	Abbreviation        *string `json:"Abbreviation"`
	AbbreviationEnglish *string `json:"AbbreviationEnglish"`
}

type Units

type Units []Unit

type UnitsGet

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

func (*UnitsGet) Do

func (r *UnitsGet) Do() (UnitsGetResponseBody, error)

func (*UnitsGet) Method

func (r *UnitsGet) Method() string

func (UnitsGet) NewPathParams

func (r UnitsGet) NewPathParams() *UnitsGetPathParams

func (UnitsGet) NewQueryParams

func (r UnitsGet) NewQueryParams() *UnitsGetQueryParams

func (UnitsGet) NewRequestBody

func (r UnitsGet) NewRequestBody() UnitsGetBody

func (*UnitsGet) NewResponseBody

func (r *UnitsGet) NewResponseBody() *UnitsGetResponseBody

func (*UnitsGet) PathParams

func (r *UnitsGet) PathParams() *UnitsGetPathParams

func (*UnitsGet) PathParamsInterface

func (r *UnitsGet) PathParamsInterface() PathParams

func (*UnitsGet) QueryParams

func (r *UnitsGet) QueryParams() *UnitsGetQueryParams

func (*UnitsGet) RequestBody

func (r *UnitsGet) RequestBody() *UnitsGetBody

func (*UnitsGet) RequestBodyInterface

func (r *UnitsGet) RequestBodyInterface() interface{}

func (*UnitsGet) SetMethod

func (r *UnitsGet) SetMethod(method string)

func (*UnitsGet) SetRequestBody

func (r *UnitsGet) SetRequestBody(body UnitsGetBody)

func (*UnitsGet) URL

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

type UnitsGetBody

type UnitsGetBody struct {
}

type UnitsGetPathParams

type UnitsGetPathParams struct {
}

func (*UnitsGetPathParams) Params

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

type UnitsGetQueryParams

type UnitsGetQueryParams struct {
	Page     int `schema:"$page,omitempty"`
	PageSize int `schema:"$pagesize,omitempty"`
}

func (UnitsGetQueryParams) ToURLValues

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

type UnitsGetResponseBody

type UnitsGetResponseBody struct {
	Meta Meta  `json:"Meta"`
	Data Units `json:"Data"`
}

type VATCode

type VATCode struct {
	ID              string  `json:"Id"`
	Code            string  `json:"Code"`
	Description     string  `json:"Description"`
	VatRate         float64 `json:"VatRate"`
	OssCodeType     int     `json:"OssCodeType"`
	RelatedAccounts struct {
		AccountNumber1 int         `json:"AccountNumber1"`
		AccountNumber2 interface{} `json:"AccountNumber2"`
		AccountNumber3 interface{} `json:"AccountNumber3"`
	} `json:"RelatedAccounts"`
}

type VATCodes

type VATCodes []VATCode

type VatcodesGet

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

func (*VatcodesGet) Do

func (*VatcodesGet) Method

func (r *VatcodesGet) Method() string

func (VatcodesGet) NewPathParams

func (r VatcodesGet) NewPathParams() *VatcodesGetPathParams

func (VatcodesGet) NewQueryParams

func (r VatcodesGet) NewQueryParams() *VatcodesGetQueryParams

func (VatcodesGet) NewRequestBody

func (r VatcodesGet) NewRequestBody() VatcodesGetBody

func (*VatcodesGet) NewResponseBody

func (r *VatcodesGet) NewResponseBody() *VatcodesGetResponseBody

func (*VatcodesGet) PathParams

func (r *VatcodesGet) PathParams() *VatcodesGetPathParams

func (*VatcodesGet) PathParamsInterface

func (r *VatcodesGet) PathParamsInterface() PathParams

func (*VatcodesGet) QueryParams

func (r *VatcodesGet) QueryParams() QueryParams

func (*VatcodesGet) RequestBody

func (r *VatcodesGet) RequestBody() *VatcodesGetBody

func (*VatcodesGet) RequestBodyInterface

func (r *VatcodesGet) RequestBodyInterface() interface{}

func (*VatcodesGet) SetMethod

func (r *VatcodesGet) SetMethod(method string)

func (*VatcodesGet) SetRequestBody

func (r *VatcodesGet) SetRequestBody(body VatcodesGetBody)

func (*VatcodesGet) URL

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

type VatcodesGetBody

type VatcodesGetBody struct {
}

type VatcodesGetPathParams

type VatcodesGetPathParams struct {
}

func (*VatcodesGetPathParams) Params

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

type VatcodesGetQueryParams

type VatcodesGetQueryParams struct {
}

func (VatcodesGetQueryParams) ToURLValues

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

type VatcodesGetResponseBody

type VatcodesGetResponseBody struct {
	Meta Meta     `json:"Meta"`
	Data VATCodes `json:"Data"`
}

type Voucher

type Voucher struct {
	ID                    string      `json:"Id,omitempty,omitempty"`
	VoucherDate           Date        `json:"VoucherDate,omitempty"`
	VoucherText           string      `json:"VoucherText,omitempty"`
	Rows                  VoucherRows `json:"Rows,omitempty"`
	NumberAndNumberSeries string      `json:"NumberAndNumberSeries,omitempty"`
	NumberSeries          string      `json:"NumberSeries,omitempty"`
	Attachments           interface{} `json:"Attachments,omitempty"`
	ModifiedUTC           DateTime    `json:"ModifiedUTC,omitempty"`
	VoucherType           int         `json:"VoucherType,omitempty"`
	SourceID              string      `json:"SourceId,omitempty"`
	CreatedUTC            DateTime    `json:"CreatedUTC,omitempty"`
}

func (Voucher) MarshalJSON

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

type VoucherRow

type VoucherRow struct {
	AccountNumber      int         `json:"AccountNumber,omitempty"`
	AccountDescription string      `json:"AccountDescription,omitempty"`
	DebitAmount        float64     `json:"DebitAmount,omitempty"`
	CreditAmount       float64     `json:"CreditAmount,omitempty"`
	TransactionText    string      `json:"TransactionText,omitempty"`
	CostCenterItemID1  interface{} `json:"CostCenterItemId1,omitempty"`
	CostCenterItemID2  interface{} `json:"CostCenterItemId2,omitempty"`
	CostCenterItemID3  interface{} `json:"CostCenterItemId3,omitempty"`
	VATCodeID          string      `json:"VatCodeId,omitempty"`
	VATCodeAndPercent  string      `json:"VatCodeAndPercent,omitempty"`
	VATAmount          float64     `json:"VatAmount,omitempty"`
	Quantity           int         `json:"Quantity,omitempty"`
	Weight             float64     `json:"Weight,omitempty"`
	DeliveryDate       Date        `json:"DeliveryDate,omitempty"`
	HarvestYear        interface{} `json:"HarvestYear,omitempty"`
	ProjectID          interface{} `json:"ProjectId,omitempty"`
}

func (VoucherRow) MarshalJSON

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

type VoucherRows

type VoucherRows []VoucherRow

type Vouchers

type Vouchers []Voucher

type VouchersGet

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

func (*VouchersGet) Do

func (*VouchersGet) Method

func (r *VouchersGet) Method() string

func (VouchersGet) NewPathParams

func (r VouchersGet) NewPathParams() *VouchersGetPathParams

func (VouchersGet) NewQueryParams

func (r VouchersGet) NewQueryParams() *VouchersGetQueryParams

func (VouchersGet) NewRequestBody

func (r VouchersGet) NewRequestBody() VouchersGetBody

func (*VouchersGet) NewResponseBody

func (r *VouchersGet) NewResponseBody() *VouchersGetResponseBody

func (*VouchersGet) PathParams

func (r *VouchersGet) PathParams() *VouchersGetPathParams

func (*VouchersGet) PathParamsInterface

func (r *VouchersGet) PathParamsInterface() PathParams

func (*VouchersGet) QueryParams

func (r *VouchersGet) QueryParams() *VouchersGetQueryParams

func (*VouchersGet) RequestBody

func (r *VouchersGet) RequestBody() *VouchersGetBody

func (*VouchersGet) RequestBodyInterface

func (r *VouchersGet) RequestBodyInterface() interface{}

func (*VouchersGet) SetMethod

func (r *VouchersGet) SetMethod(method string)

func (*VouchersGet) SetRequestBody

func (r *VouchersGet) SetRequestBody(body VouchersGetBody)

func (*VouchersGet) URL

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

type VouchersGetBody

type VouchersGetBody struct {
}

type VouchersGetPathParams

type VouchersGetPathParams struct {
}

func (*VouchersGetPathParams) Params

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

type VouchersGetQueryParams

type VouchersGetQueryParams struct {
	Select *odata.Select `schema:"$select,omitempty"`
	Expand *odata.Expand `schema:"$expand,omitempty"`
	Filter *odata.Filter `schema:"$filter,omitempty"`
	Top    *odata.Top    `schema:"$top,omitempty"`
	Skip   *odata.Skip   `schema:"$skip,omitempty"`
}

func (VouchersGetQueryParams) ToURLValues

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

type VouchersGetResponseBody

type VouchersGetResponseBody struct {
	Meta Meta     `json:"Meta"`
	Data Vouchers `json:"Data"`
}

type VouchersPost

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

func (*VouchersPost) Do

func (*VouchersPost) Method

func (r *VouchersPost) Method() string

func (VouchersPost) NewPathParams

func (r VouchersPost) NewPathParams() *VouchersPostPathParams

func (VouchersPost) NewQueryParams

func (r VouchersPost) NewQueryParams() *VouchersPostQueryParams

func (VouchersPost) NewRequestBody

func (r VouchersPost) NewRequestBody() VouchersPostBody

func (*VouchersPost) NewResponseBody

func (r *VouchersPost) NewResponseBody() *VouchersPostResponseBody

func (*VouchersPost) PathParams

func (r *VouchersPost) PathParams() *VouchersPostPathParams

func (*VouchersPost) PathParamsInterface

func (r *VouchersPost) PathParamsInterface() PathParams

func (*VouchersPost) QueryParams

func (r *VouchersPost) QueryParams() *VouchersPostQueryParams

func (*VouchersPost) RequestBody

func (r *VouchersPost) RequestBody() *VouchersPostBody

func (*VouchersPost) RequestBodyInterface

func (r *VouchersPost) RequestBodyInterface() interface{}

func (*VouchersPost) SetMethod

func (r *VouchersPost) SetMethod(method string)

func (*VouchersPost) SetRequestBody

func (r *VouchersPost) SetRequestBody(body VouchersPostBody)

func (*VouchersPost) URL

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

type VouchersPostBody

type VouchersPostBody Voucher

func (VouchersPostBody) MarshalJSON

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

type VouchersPostPathParams

type VouchersPostPathParams struct {
}

func (*VouchersPostPathParams) Params

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

type VouchersPostQueryParams

type VouchersPostQueryParams struct {
	UseAutomaticVATCalculation bool `schema:"useAutomaticVatCalculation"`
	UseDefaultVATCodes         bool `schema:"useDefaultVatCodes"`
	UseDefaultVoucherSeries    bool `schema:"useDefaultVoucherSeries"`
}

func (VouchersPostQueryParams) ToURLValues

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

type VouchersPostResponseBody

type VouchersPostResponseBody Voucher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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