twentyfour

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

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL string = "https://api.24sevenoffice.com"
)

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 xml response body that maps to ErrorResponse. Any other response body will be silently ignored.

func GenerateNonce

func GenerateNonce() string

nonce returns a unique string.

Types

type APIException

type APIException struct {
	Type    string `xml:"Type"`
	Message string `xml:"Message"`
}

type ActionBody

type ActionBody interface{}

type Address

type Address struct {
	Street     string `xml:"web:Street,omitempty"`
	State      string `xml:"web:State,omitempty"`
	PostalCode string `xml:"web:PostalCode,omitempty"`
	PostalArea string `xml:"web:PostalArea,omitempty"`
	Name       string `xml:"web:Name,omitempty"`
	City       string `xml:"web:City,omitempty"`
	Country    string `xml:"web:Country,omitempty"`
}

func (Address) IsEmpty

func (a Address) IsEmpty() bool

type Addresses

type Addresses struct {
	Post     Address `xml:"Post,omitempty"`
	Delivery Address `xml:"Delivery,omitempty"`
	Visit    Address `xml:"Visit,omitempty"`
	Invoice  Address `xml:"Invoice,omitempty"`
}

func (Addresses) IsEmpty

func (a Addresses) IsEmpty() bool

func (Addresses) MarshalXML

func (a Addresses) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type BeforeRequestDoCallback

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

type Body

type Body struct {
	ActionBody interface{} `xml:",any"`
}

type Bool

type Bool bool

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(text []byte) (err error)

type Bundle

type Bundle struct {
	XMLName xml.Name `xml:"web:Bundle"`

	YearID                 int      `xml:"web:YearId"`
	Sort                   int      `xml:"web:Sort"`
	Name                   string   `xml:"web:Name"`
	BundleDirectAccounting bool     `xml:"web:BundleDirectAccounting"`
	Vouchers               Vouchers `xml:"web:Vouchers>web:Voucher"`
}

type BundleList

type BundleList struct {
	XMLName xml.Name `xml:"web:BundleList"`

	AllowDifference   bool    `xml:"web:AllowDifference"`
	DirectLedger      bool    `xml:"web:DirectLedger"`
	SaveOption        int     `xml:"web:SaveOption"`
	DefaultCustomerId int     `xml:"web:DefaultCustomerId"`
	Bundles           Bundles `xml:"web:Bundles>web:Bundle"`
}

type Bundles

type Bundles []Bundle

type ChangeState

type ChangeState string

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) ApplicationID

func (c Client) ApplicationID() string

func (Client) BaseURL

func (c Client) BaseURL() (*url.URL, error)

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 xml 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) FetchSessionID

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

func (*Client) GetEndpointURL

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

func (*Client) HasSession

func (c *Client) HasSession() (bool, error)

func (Client) IdentityID

func (c Client) IdentityID() string

func (*Client) InitSession

func (c *Client) InitSession(req *http.Request) error

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewGetAccountListRequest

func (c *Client) NewGetAccountListRequest() GetAccountListRequest

func (*Client) NewGetCompaniesRequest

func (c *Client) NewGetCompaniesRequest() GetCompaniesRequest

func (*Client) NewGetCompanySyncListRequest

func (c *Client) NewGetCompanySyncListRequest() GetCompanySyncListRequest

func (*Client) NewGetDataCenterURLsRequest

func (c *Client) NewGetDataCenterURLsRequest() GetDataCenterURLsRequest

func (*Client) NewGetEntryIDRequest

func (c *Client) NewGetEntryIDRequest() GetEntryIDRequest

func (*Client) NewGetIdentitiesRequest

func (c *Client) NewGetIdentitiesRequest() GetIdentitiesRequest

func (*Client) NewGetIdentitiesWithCredentialRequest

func (c *Client) NewGetIdentitiesWithCredentialRequest() GetIdentitiesWithCredentialRequest

func (*Client) NewGetIdentityRequest

func (c *Client) NewGetIdentityRequest() GetIdentityRequest

func (*Client) NewGetInvoicesRequest

func (c *Client) NewGetInvoicesRequest() GetInvoicesRequest

func (*Client) NewGetTaxCodeListRequest

func (c *Client) NewGetTaxCodeListRequest() GetTaxCodeListRequest

func (*Client) NewGetTransactionsRequest

func (c *Client) NewGetTransactionsRequest() GetTransactionsRequest

func (*Client) NewGetTypeGroupListRequest

func (c *Client) NewGetTypeGroupListRequest() GetTypeGroupListRequest

func (*Client) NewGetTypeListRequest

func (c *Client) NewGetTypeListRequest() GetTypeListRequest

func (*Client) NewHasSessionRequest

func (c *Client) NewHasSessionRequest() HasSessionRequest

func (*Client) NewLoginRequest

func (c *Client) NewLoginRequest() LoginRequest

func (*Client) NewRequest

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

func (*Client) NewSaveBundleListRequest

func (c *Client) NewSaveBundleListRequest() SaveBundleListRequest

func (*Client) NewSaveCompaniesRequest

func (c *Client) NewSaveCompaniesRequest() SaveCompaniesRequest

func (*Client) NewSaveInvoicesRequest

func (c *Client) NewSaveInvoicesRequest() SaveInvoicesRequest

func (*Client) NewSetIdentityByIDRequest

func (c *Client) NewSetIdentityByIDRequest() SetIdentityByIDRequest

func (Client) Password

func (c Client) Password() string

func (Client) SessionID

func (c Client) SessionID() string

func (*Client) SetApplicationID

func (c *Client) SetApplicationID(applicationID string)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL string)

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) SetHTTPClient

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

func (*Client) SetIdentityID

func (c *Client) SetIdentityID(identityID string)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetPassword

func (c *Client) SetPassword(password string)

func (*Client) SetSessionCookie

func (c *Client) SetSessionCookie(req *http.Request, sessionID string)

func (*Client) SetSessionID

func (c *Client) SetSessionID(sessionID string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (*Client) SetUsername

func (c *Client) SetUsername(username string)

func (*Client) Unmarshal

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

func (Client) UserAgent

func (c Client) UserAgent() string

func (Client) Username

func (c Client) Username() string

type Companies

type Companies []Company

type Company

type Company struct {
	ID                    int          `xml:"Id,omitempty"`
	ExternalID            string       `xml:"ExternalId,omitempty"`
	OrganizationNumber    string       `xml:"OrganizationNumber,omitempty"`
	Name                  string       `xml:"Name"` // Max length 20 characters
	FirstName             string       `xml:"FirstName,omitempty"`
	Addresses             Addresses    `xml:"Addresses,omitempty"`
	Country               string       `xml:"Country,omitempty"`
	InvoiceLanguage       string       `xml:"InvoiceLanguage,omitempty"`
	Type                  string       `xml:"Type,omitempty"`
	DateCreated           Date         `xml:"DateCreated,omitempty"`
	PriceList             string       `xml:"PriceList,omitempty"`
	Owner                 string       `xml:"Owner,omitempty"`
	TypeGroup             string       `xml:"TypeGroup,omitempty"`
	DateChanged           Date         `xml:"DateChanged,omitempty"`
	Maps                  string       `xml:"Maps,omitempty"`
	PaymentTime           string       `xml:"PaymentTime,omitempty"`
	Factoring             string       `xml:"Factoring,omitempty"`
	LedgerCustomerAccount string       `xml:"LedgerCustomerAccount,omitempty"`
	LedgerSupplierAccount string       `xml:"LedgerSupplierAccount,omitempty"`
	Private               string       `xml:"Private,omitempty"`
	VATNumber             string       `xml:"VatNumber,omitempty"`
	APIException          APIException `xml:"APIException,omitempty"`
}

type Currency

type Currency string

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) MarshalXML

func (d Date) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

func (*Date) UnmarshalJSON

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

func (*Date) UnmarshalXML

func (d *Date) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) IsEmpty

func (dt DateTime) IsEmpty() bool

func (*DateTime) MarshalJSON

func (dt *DateTime) MarshalJSON() ([]byte, error)

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

func (DateTime) MarshalXML

func (dt DateTime) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

func (*DateTime) UnmarshalJSON

func (dt *DateTime) UnmarshalJSON(text []byte) (err error)

type DeliveryMethod

type DeliveryMethod struct {
	ID          int    `xml:"Id,omitempty"`          // DeliveryId
	Description string `xml:"Description,omitempty"` // Description
}

type DistributionMethod

type DistributionMethod interface{}

type Distributor

type Distributor interface{}

type ErrorResponse

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

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type GetAccountListRequest

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

func (*GetAccountListRequest) Do

func (*GetAccountListRequest) Method

func (r *GetAccountListRequest) Method() string

func (GetAccountListRequest) NewPathParams

func (GetAccountListRequest) NewQueryParams

func (GetAccountListRequest) NewRequestBody

func (*GetAccountListRequest) NewResponseBody

func (*GetAccountListRequest) PathParams

func (r *GetAccountListRequest) PathParams() PathParams

func (*GetAccountListRequest) QueryParams

func (r *GetAccountListRequest) QueryParams() QueryParams

func (*GetAccountListRequest) RequestBody

func (*GetAccountListRequest) RequestBodyInterface

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

func (GetAccountListRequest) SOAPAction

func (r GetAccountListRequest) SOAPAction() string

func (*GetAccountListRequest) SetMethod

func (r *GetAccountListRequest) SetMethod(method string)

func (*GetAccountListRequest) SetRequestBody

func (r *GetAccountListRequest) SetRequestBody(body GetAccountListRequestBody)

func (*GetAccountListRequest) URL

func (r *GetAccountListRequest) URL() (*url.URL, error)

type GetAccountListRequestBody

type GetAccountListRequestBody struct {
	XMLName xml.Name `xml:"GetAccountList"`
}

type GetAccountListRequestPathParams

type GetAccountListRequestPathParams struct {
}

func (*GetAccountListRequestPathParams) Params

type GetAccountListRequestQueryParams

type GetAccountListRequestQueryParams struct {
}

func (GetAccountListRequestQueryParams) ToURLValues

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

type GetAccountListRequestResponseBody

type GetAccountListRequestResponseBody struct {
	XMLName xml.Name `xml:"GetAccountListResponse"`

	GetAccountListResult struct {
		AccountData []struct {
			AccountId   string `xml:"AccountId"`
			AccountNo   string `xml:"AccountNo"`
			AccountName string `xml:"AccountName"`
			AccountTax  string `xml:"AccountTax"`
			TaxNo       string `xml:"TaxNo"`
		} `xml:"AccountData"`
	} `xml:"GetAccountListResult"`
}

type GetCompaniesRequest

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

func (*GetCompaniesRequest) Do

func (*GetCompaniesRequest) Method

func (r *GetCompaniesRequest) Method() string

func (GetCompaniesRequest) NewPathParams

func (GetCompaniesRequest) NewQueryParams

func (GetCompaniesRequest) NewRequestBody

func (r GetCompaniesRequest) NewRequestBody() GetCompaniesRequestBody

func (*GetCompaniesRequest) NewResponseBody

func (*GetCompaniesRequest) PathParams

func (r *GetCompaniesRequest) PathParams() PathParams

func (*GetCompaniesRequest) QueryParams

func (r *GetCompaniesRequest) QueryParams() QueryParams

func (*GetCompaniesRequest) RequestBody

func (r *GetCompaniesRequest) RequestBody() *GetCompaniesRequestBody

func (*GetCompaniesRequest) RequestBodyInterface

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

func (GetCompaniesRequest) SOAPAction

func (r GetCompaniesRequest) SOAPAction() string

func (*GetCompaniesRequest) SetMethod

func (r *GetCompaniesRequest) SetMethod(method string)

func (*GetCompaniesRequest) SetRequestBody

func (r *GetCompaniesRequest) SetRequestBody(body GetCompaniesRequestBody)

func (*GetCompaniesRequest) URL

func (r *GetCompaniesRequest) URL() (*url.URL, error)

type GetCompaniesRequestBody

type GetCompaniesRequestBody struct {
	XMLName xml.Name `xml:"web:GetCompanies"`

	SearchParams struct {
		ExternalID string `xml:"web:ExternalId,omitempty"`
		CompanyID  int    `xml:"web:CompanyId,omitempty"`
		// CompanyIDs         []int    `xml:"web:CompanyIds>web:int,omitempty"`
		CompanyName        string   `xml:"web:CompanyName,omitempty"`
		ChangedAfter       DateTime `xml:"web:ChangedAfter,omitempty"`
		CompanyEmail       string   `xml:"web:CompanyEmail,omitempty"`
		CompanyPhone       string   `xml:"web:CompanyPhone,omitempty"`
		OrganizationNumber string   `xml:"web:OrganizationNumber,omitempty"`
	} `xml:"web:searchParams"`
	// CompanyReturnProperties struct {
	// 	String []string `xml:"string"`
	// } `xml:"invoiceReturnProperties"`
	ReturnProperties []string `xml:"web:returnProperties>web:string"`
}

type GetCompaniesRequestPathParams

type GetCompaniesRequestPathParams struct {
}

func (*GetCompaniesRequestPathParams) Params

type GetCompaniesRequestQueryParams

type GetCompaniesRequestQueryParams struct {
}

func (GetCompaniesRequestQueryParams) ToURLValues

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

type GetCompaniesRequestResponseBody

type GetCompaniesRequestResponseBody struct {
	XMLName xml.Name `xml:"GetCompaniesResponse"`

	Companies Companies `xml:"GetCompaniesResult>Company"`
}

type GetCompanySyncListRequest

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

func (*GetCompanySyncListRequest) Do

func (*GetCompanySyncListRequest) Method

func (r *GetCompanySyncListRequest) Method() string

func (GetCompanySyncListRequest) NewPathParams

func (GetCompanySyncListRequest) NewQueryParams

func (GetCompanySyncListRequest) NewRequestBody

func (*GetCompanySyncListRequest) NewResponseBody

func (*GetCompanySyncListRequest) PathParams

func (r *GetCompanySyncListRequest) PathParams() PathParams

func (*GetCompanySyncListRequest) QueryParams

func (r *GetCompanySyncListRequest) QueryParams() QueryParams

func (*GetCompanySyncListRequest) RequestBody

func (*GetCompanySyncListRequest) RequestBodyInterface

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

func (GetCompanySyncListRequest) SOAPAction

func (r GetCompanySyncListRequest) SOAPAction() string

func (*GetCompanySyncListRequest) SetMethod

func (r *GetCompanySyncListRequest) SetMethod(method string)

func (*GetCompanySyncListRequest) SetRequestBody

func (*GetCompanySyncListRequest) URL

func (r *GetCompanySyncListRequest) URL() (*url.URL, error)

type GetCompanySyncListRequestBody

type GetCompanySyncListRequestBody struct {
	XMLName xml.Name `xml:"web:GetCompanySyncList"`

	SyncSearchParameters struct {
		Page         int      `xml:"web:Page,omitempty"`
		ChangedAfter DateTime `xml:"web:ChangedAfter,omitempty"`
	} `xml:"web:syncSearchParameters"`
}

type GetCompanySyncListRequestPathParams

type GetCompanySyncListRequestPathParams struct {
}

func (*GetCompanySyncListRequestPathParams) Params

type GetCompanySyncListRequestQueryParams

type GetCompanySyncListRequestQueryParams struct {
}

func (GetCompanySyncListRequestQueryParams) ToURLValues

type GetCompanySyncListRequestResponseBody

type GetCompanySyncListRequestResponseBody struct {
	XMLName xml.Name `xml:"GetCompanySyncListResponse"`

	GetCompanySyncListResult struct {
		Text         string `xml:",chardata"`
		CurrentPage  string `xml:"CurrentPage"`
		TotalPages   string `xml:"TotalPages"`
		TotalItems   string `xml:"TotalItems"`
		ItemsPerPage string `xml:"ItemsPerPage"`
		Items        struct {
			Text        string `xml:",chardata"`
			SyncCompany struct {
				Text           string `xml:",chardata"`
				CompanyId      string `xml:"CompanyId"`
				DateChanged    string `xml:"DateChanged"`
				DateRegistered string `xml:"DateRegistered"`
				Active         string `xml:"Active"`
			} `xml:"SyncCompany"`
		} `xml:"Items"`
	} `xml:"GetCompanySyncListResult"`
}

type GetDataCenterURLsRequest

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

func (*GetDataCenterURLsRequest) Do

func (*GetDataCenterURLsRequest) Method

func (r *GetDataCenterURLsRequest) Method() string

func (GetDataCenterURLsRequest) NewPathParams

func (GetDataCenterURLsRequest) NewQueryParams

func (GetDataCenterURLsRequest) NewRequestBody

func (*GetDataCenterURLsRequest) NewResponseBody

func (*GetDataCenterURLsRequest) PathParams

func (r *GetDataCenterURLsRequest) PathParams() PathParams

func (*GetDataCenterURLsRequest) QueryParams

func (r *GetDataCenterURLsRequest) QueryParams() QueryParams

func (*GetDataCenterURLsRequest) RequestBody

func (*GetDataCenterURLsRequest) RequestBodyInterface

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

func (GetDataCenterURLsRequest) SOAPAction

func (r GetDataCenterURLsRequest) SOAPAction() string

func (*GetDataCenterURLsRequest) SetMethod

func (r *GetDataCenterURLsRequest) SetMethod(method string)

func (*GetDataCenterURLsRequest) SetRequestBody

func (*GetDataCenterURLsRequest) URL

func (r *GetDataCenterURLsRequest) URL() (*url.URL, error)

type GetDataCenterURLsRequestBody

type GetDataCenterURLsRequestBody struct {
	XMLName xml.Name `xml:"getDataCenterUrls"`

	Account string `xml:"urn:Account"`
}

type GetDataCenterURLsRequestPathParams

type GetDataCenterURLsRequestPathParams struct {
}

func (*GetDataCenterURLsRequestPathParams) Params

type GetDataCenterURLsRequestQueryParams

type GetDataCenterURLsRequestQueryParams struct {
}

func (GetDataCenterURLsRequestQueryParams) ToURLValues

type GetDataCenterURLsRequestResponseBody

type GetDataCenterURLsRequestResponseBody struct {
	XMLName xml.Name `xml:"getDataCenterUrlsResponse"`

	GetDataCenterUrlsResult struct {
		Text         string `xml:",chardata"`
		PlatformCore string `xml:"platformCore,attr"`
		Status       struct {
			Text      string `xml:",chardata"`
			IsSuccess string `xml:"isSuccess,attr"`
		} `xml:"status"`
		DataCenterUrls struct {
			Text              string `xml:",chardata"`
			RestDomain        string `xml:"restDomain"`
			WebservicesDomain string `xml:"webservicesDomain"`
			SystemDomain      string `xml:"systemDomain"`
		} `xml:"dataCenterUrls"`
	} `xml:"getDataCenterUrlsResult"`
}

type GetEntryIDRequest

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

func (*GetEntryIDRequest) Do

func (*GetEntryIDRequest) Method

func (r *GetEntryIDRequest) Method() string

func (GetEntryIDRequest) NewPathParams

func (GetEntryIDRequest) NewQueryParams

func (r GetEntryIDRequest) NewQueryParams() *GetEntryIDRequestQueryParams

func (GetEntryIDRequest) NewRequestBody

func (r GetEntryIDRequest) NewRequestBody() GetEntryIDRequestBody

func (*GetEntryIDRequest) NewResponseBody

func (r *GetEntryIDRequest) NewResponseBody() *GetEntryIDRequestResponseBody

func (*GetEntryIDRequest) PathParams

func (r *GetEntryIDRequest) PathParams() PathParams

func (*GetEntryIDRequest) QueryParams

func (r *GetEntryIDRequest) QueryParams() QueryParams

func (*GetEntryIDRequest) RequestBody

func (r *GetEntryIDRequest) RequestBody() *GetEntryIDRequestBody

func (*GetEntryIDRequest) RequestBodyInterface

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

func (GetEntryIDRequest) SOAPAction

func (r GetEntryIDRequest) SOAPAction() string

func (*GetEntryIDRequest) SetMethod

func (r *GetEntryIDRequest) SetMethod(method string)

func (*GetEntryIDRequest) SetRequestBody

func (r *GetEntryIDRequest) SetRequestBody(body GetEntryIDRequestBody)

func (*GetEntryIDRequest) URL

func (r *GetEntryIDRequest) URL() (*url.URL, error)

type GetEntryIDRequestBody

type GetEntryIDRequestBody struct {
	XMLName xml.Name `xml:"web:GetEntryId"`

	ArgEntryID struct {
		XMLName xml.Name `xml:"web:argEntryId"`
		Date    Date     `xml:"web:Date"`
		SortNo  int      `xml:"web:SortNo"`
		EntryNo int      `xml:"web:EntryNo"`
	} `xml:"web:argEntryId"`
}

type GetEntryIDRequestPathParams

type GetEntryIDRequestPathParams struct {
}

func (*GetEntryIDRequestPathParams) Params

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

type GetEntryIDRequestQueryParams

type GetEntryIDRequestQueryParams struct {
}

func (GetEntryIDRequestQueryParams) ToURLValues

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

type GetEntryIDRequestResponseBody

type GetEntryIDRequestResponseBody struct {
	XMLName xml.Name `xml:"GetEntryIdResponse"`

	GetEntryIdResult struct {
		Date    string `xml:"Date"`
		SortNo  string `xml:"SortNo"`
		EntryNo string `xml:"EntryNo"`
	} `xml:"GetEntryIdResult"`
}

type GetIdentitiesRequest

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

func (*GetIdentitiesRequest) Do

func (*GetIdentitiesRequest) Method

func (r *GetIdentitiesRequest) Method() string

func (GetIdentitiesRequest) NewPathParams

func (GetIdentitiesRequest) NewQueryParams

func (GetIdentitiesRequest) NewRequestBody

func (*GetIdentitiesRequest) NewResponseBody

func (*GetIdentitiesRequest) PathParams

func (r *GetIdentitiesRequest) PathParams() PathParams

func (*GetIdentitiesRequest) QueryParams

func (r *GetIdentitiesRequest) QueryParams() QueryParams

func (*GetIdentitiesRequest) RequestBody

func (*GetIdentitiesRequest) RequestBodyInterface

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

func (GetIdentitiesRequest) SOAPAction

func (r GetIdentitiesRequest) SOAPAction() string

func (*GetIdentitiesRequest) SetMethod

func (r *GetIdentitiesRequest) SetMethod(method string)

func (*GetIdentitiesRequest) SetRequestBody

func (r *GetIdentitiesRequest) SetRequestBody(body GetIdentitiesRequestBody)

func (*GetIdentitiesRequest) URL

func (r *GetIdentitiesRequest) URL() (*url.URL, error)

type GetIdentitiesRequestBody

type GetIdentitiesRequestBody struct {
	XMLName xml.Name `xml:"GetIdentities"`
}

type GetIdentitiesRequestPathParams

type GetIdentitiesRequestPathParams struct {
}

func (*GetIdentitiesRequestPathParams) Params

type GetIdentitiesRequestQueryParams

type GetIdentitiesRequestQueryParams struct {
}

func (GetIdentitiesRequestQueryParams) ToURLValues

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

type GetIdentitiesRequestResponseBody

type GetIdentitiesRequestResponseBody struct {
	XMLName xml.Name `xml:"GetIdentitiesResponse"`

	GetIdentitiesWithCredentialResult struct {
		Identities Identities `xml:"Identity"`
	} `xml:"GetIdentitiesResult"`
}

type GetIdentitiesWithCredentialRequest

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

func (*GetIdentitiesWithCredentialRequest) Do

func (*GetIdentitiesWithCredentialRequest) Method

func (GetIdentitiesWithCredentialRequest) NewPathParams

func (GetIdentitiesWithCredentialRequest) NewQueryParams

func (GetIdentitiesWithCredentialRequest) NewRequestBody

func (*GetIdentitiesWithCredentialRequest) NewResponseBody

func (*GetIdentitiesWithCredentialRequest) PathParams

func (*GetIdentitiesWithCredentialRequest) QueryParams

func (*GetIdentitiesWithCredentialRequest) RequestBody

func (*GetIdentitiesWithCredentialRequest) RequestBodyInterface

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

func (GetIdentitiesWithCredentialRequest) SOAPAction

func (*GetIdentitiesWithCredentialRequest) SetMethod

func (r *GetIdentitiesWithCredentialRequest) SetMethod(method string)

func (*GetIdentitiesWithCredentialRequest) SetRequestBody

func (*GetIdentitiesWithCredentialRequest) URL

type GetIdentitiesWithCredentialRequestBody

type GetIdentitiesWithCredentialRequestBody struct {
	XMLName xml.Name `xml:"web:GetIdentitiesWithCredential"`

	Credential struct {
		ApplicationID string `xml:"web:ApplicationId"`
		IdentidyID    string `xml:"web:IdentidyId,omitempty"`
		Username      string `xml:"web:Username"`
		Password      string `xml:"web:Password"`
	} `xml:"web:credential"`
}

type GetIdentitiesWithCredentialRequestPathParams

type GetIdentitiesWithCredentialRequestPathParams struct {
}

func (*GetIdentitiesWithCredentialRequestPathParams) Params

type GetIdentitiesWithCredentialRequestQueryParams

type GetIdentitiesWithCredentialRequestQueryParams struct {
}

func (GetIdentitiesWithCredentialRequestQueryParams) ToURLValues

type GetIdentitiesWithCredentialRequestResponseBody

type GetIdentitiesWithCredentialRequestResponseBody struct {
	XMLName xml.Name `xml:"GetIdentitiesWithCredentialResponse"`

	GetIdentitiesWithCredentialResult struct {
		Identities Identities `xml:"Identity"`
	} `xml:"GetIdentitiesWithCredentialResult"`
}

type GetIdentityRequest

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

func (*GetIdentityRequest) Do

func (*GetIdentityRequest) Method

func (r *GetIdentityRequest) Method() string

func (GetIdentityRequest) NewPathParams

func (GetIdentityRequest) NewQueryParams

func (GetIdentityRequest) NewRequestBody

func (r GetIdentityRequest) NewRequestBody() GetIdentityRequestBody

func (*GetIdentityRequest) NewResponseBody

func (r *GetIdentityRequest) NewResponseBody() *GetIdentityRequestResponseBody

func (*GetIdentityRequest) PathParams

func (r *GetIdentityRequest) PathParams() PathParams

func (*GetIdentityRequest) QueryParams

func (r *GetIdentityRequest) QueryParams() QueryParams

func (*GetIdentityRequest) RequestBody

func (r *GetIdentityRequest) RequestBody() *GetIdentityRequestBody

func (*GetIdentityRequest) RequestBodyInterface

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

func (GetIdentityRequest) SOAPAction

func (r GetIdentityRequest) SOAPAction() string

func (*GetIdentityRequest) SetMethod

func (r *GetIdentityRequest) SetMethod(method string)

func (*GetIdentityRequest) SetRequestBody

func (r *GetIdentityRequest) SetRequestBody(body GetIdentityRequestBody)

func (*GetIdentityRequest) URL

func (r *GetIdentityRequest) URL() (*url.URL, error)

type GetIdentityRequestBody

type GetIdentityRequestBody struct {
	XMLName xml.Name `xml:"GetIdentity"`
}

type GetIdentityRequestPathParams

type GetIdentityRequestPathParams struct {
}

func (*GetIdentityRequestPathParams) Params

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

type GetIdentityRequestQueryParams

type GetIdentityRequestQueryParams struct {
}

func (GetIdentityRequestQueryParams) ToURLValues

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

type GetIdentityRequestResponseBody

type GetIdentityRequestResponseBody struct {
	XMLName xml.Name `xml:"GetIdentityResponse"`

	GetIdentityWithCredentialResult struct {
		Identities Identities `xml:"Identity"`
	} `xml:"GetIdentityResult"`
}

type GetInvoicesRequest

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

func (*GetInvoicesRequest) Do

func (*GetInvoicesRequest) Method

func (r *GetInvoicesRequest) Method() string

func (GetInvoicesRequest) NewPathParams

func (GetInvoicesRequest) NewQueryParams

func (GetInvoicesRequest) NewRequestBody

func (r GetInvoicesRequest) NewRequestBody() GetInvoicesRequestBody

func (*GetInvoicesRequest) NewResponseBody

func (r *GetInvoicesRequest) NewResponseBody() *GetInvoicesRequestResponseBody

func (*GetInvoicesRequest) PathParams

func (r *GetInvoicesRequest) PathParams() PathParams

func (*GetInvoicesRequest) QueryParams

func (r *GetInvoicesRequest) QueryParams() QueryParams

func (*GetInvoicesRequest) RequestBody

func (r *GetInvoicesRequest) RequestBody() *GetInvoicesRequestBody

func (*GetInvoicesRequest) RequestBodyInterface

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

func (GetInvoicesRequest) SOAPAction

func (r GetInvoicesRequest) SOAPAction() string

func (*GetInvoicesRequest) SetMethod

func (r *GetInvoicesRequest) SetMethod(method string)

func (*GetInvoicesRequest) SetRequestBody

func (r *GetInvoicesRequest) SetRequestBody(body GetInvoicesRequestBody)

func (*GetInvoicesRequest) URL

func (r *GetInvoicesRequest) URL() (*url.URL, error)

type GetInvoicesRequestBody

type GetInvoicesRequestBody struct {
	XMLName xml.Name `xml:"web:GetInvoices"`

	SearchParams struct {
		CustomerIDs  []int    `xml:"web:CustomerIds>int,omitempty"`
		OrderIDs     []int    `xml:"web:OrderIds>int,omitempty"`
		InvoiceIDs   []int    `xml:"web:InvoiceIds>int,omitempty"`
		OrderStates  []int    `xml:"web:OrderStates>int,omitempty"`
		ChangedAfter DateTime `xml:"web:ChangedAfter,omitempty"`
	} `xml:"web:searchParams"`
	// InvoiceReturnProperties struct {
	// 	String []string `xml:"string"`
	// } `xml:"invoiceReturnProperties"`
	InvoiceReturnProperties []string `xml:"web:invoiceReturnProperties>web:string"`
	RowReturnProperties     []string `xml:"web:rowReturnProperties>web:string"`
}

type GetInvoicesRequestPathParams

type GetInvoicesRequestPathParams struct {
}

func (*GetInvoicesRequestPathParams) Params

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

type GetInvoicesRequestQueryParams

type GetInvoicesRequestQueryParams struct {
}

func (GetInvoicesRequestQueryParams) ToURLValues

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

type GetInvoicesRequestResponseBody

type GetInvoicesRequestResponseBody struct {
	XMLName xml.Name `xml:"GetInvoicesResponse"`

	GetInvoicesResult struct {
		InvoiceOrders InvoiceOrders `xml:"InvoiceOrder"`
	} `xml:"GetInvoicesResult"`
}

type GetTaxCodeListRequest

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

func (*GetTaxCodeListRequest) Do

func (*GetTaxCodeListRequest) Method

func (r *GetTaxCodeListRequest) Method() string

func (GetTaxCodeListRequest) NewPathParams

func (GetTaxCodeListRequest) NewQueryParams

func (GetTaxCodeListRequest) NewRequestBody

func (*GetTaxCodeListRequest) NewResponseBody

func (*GetTaxCodeListRequest) PathParams

func (r *GetTaxCodeListRequest) PathParams() PathParams

func (*GetTaxCodeListRequest) QueryParams

func (r *GetTaxCodeListRequest) QueryParams() QueryParams

func (*GetTaxCodeListRequest) RequestBody

func (*GetTaxCodeListRequest) RequestBodyInterface

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

func (GetTaxCodeListRequest) SOAPAction

func (r GetTaxCodeListRequest) SOAPAction() string

func (*GetTaxCodeListRequest) SetMethod

func (r *GetTaxCodeListRequest) SetMethod(method string)

func (*GetTaxCodeListRequest) SetRequestBody

func (r *GetTaxCodeListRequest) SetRequestBody(body GetTaxCodeListRequestBody)

func (*GetTaxCodeListRequest) URL

func (r *GetTaxCodeListRequest) URL() (*url.URL, error)

type GetTaxCodeListRequestBody

type GetTaxCodeListRequestBody struct {
	XMLName xml.Name `xml:"GetTaxCodeList"`
}

type GetTaxCodeListRequestPathParams

type GetTaxCodeListRequestPathParams struct {
}

func (*GetTaxCodeListRequestPathParams) Params

type GetTaxCodeListRequestQueryParams

type GetTaxCodeListRequestQueryParams struct {
}

func (GetTaxCodeListRequestQueryParams) ToURLValues

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

type GetTaxCodeListRequestResponseBody

type GetTaxCodeListRequestResponseBody struct {
	XMLName xml.Name `xml:"GetTaxCodeListResponse"`

	GetTaxCodeListResult struct {
		TaxCodeElement TaxCodes `xml:"TaxCodeElement"`
	} `xml:"GetTaxCodeListResult"`
}

type GetTransactionsRequest

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

func (*GetTransactionsRequest) Do

func (*GetTransactionsRequest) Method

func (r *GetTransactionsRequest) Method() string

func (GetTransactionsRequest) NewPathParams

func (GetTransactionsRequest) NewQueryParams

func (GetTransactionsRequest) NewRequestBody

func (*GetTransactionsRequest) NewResponseBody

func (*GetTransactionsRequest) PathParams

func (r *GetTransactionsRequest) PathParams() PathParams

func (*GetTransactionsRequest) QueryParams

func (r *GetTransactionsRequest) QueryParams() QueryParams

func (*GetTransactionsRequest) RequestBody

func (*GetTransactionsRequest) RequestBodyInterface

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

func (GetTransactionsRequest) SOAPAction

func (r GetTransactionsRequest) SOAPAction() string

func (*GetTransactionsRequest) SetMethod

func (r *GetTransactionsRequest) SetMethod(method string)

func (*GetTransactionsRequest) SetRequestBody

func (r *GetTransactionsRequest) SetRequestBody(body GetTransactionsRequestBody)

func (*GetTransactionsRequest) URL

func (r *GetTransactionsRequest) URL() (*url.URL, error)

type GetTransactionsRequestBody

type GetTransactionsRequestBody struct {
	XMLName xml.Name `xml:"GetTransactions"`
	Xmlns   string   `xml:"xmlns,attr"`

	SearchParams struct {
		DateStart Date `xml:"DateStart,omitempty"`
		DateEnd   Date `xml:"DateEnd,omitempty"`
	} `xml:"searchParams"`
}

type GetTransactionsRequestPathParams

type GetTransactionsRequestPathParams struct {
}

func (*GetTransactionsRequestPathParams) Params

type GetTransactionsRequestQueryParams

type GetTransactionsRequestQueryParams struct {
}

func (GetTransactionsRequestQueryParams) ToURLValues

type GetTransactionsRequestResponseBody

type GetTransactionsRequestResponseBody struct {
	XMLName xml.Name `xml:"GetTransactionsResponse"`

	GetTransactionsResult struct {
	} `xml:"GetTransactionsResult"`
}

type GetTypeGroupListRequest

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

func (*GetTypeGroupListRequest) Do

func (*GetTypeGroupListRequest) Method

func (r *GetTypeGroupListRequest) Method() string

func (GetTypeGroupListRequest) NewPathParams

func (GetTypeGroupListRequest) NewQueryParams

func (GetTypeGroupListRequest) NewRequestBody

func (*GetTypeGroupListRequest) NewResponseBody

func (*GetTypeGroupListRequest) PathParams

func (r *GetTypeGroupListRequest) PathParams() PathParams

func (*GetTypeGroupListRequest) QueryParams

func (r *GetTypeGroupListRequest) QueryParams() QueryParams

func (*GetTypeGroupListRequest) RequestBody

func (*GetTypeGroupListRequest) RequestBodyInterface

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

func (GetTypeGroupListRequest) SOAPAction

func (r GetTypeGroupListRequest) SOAPAction() string

func (*GetTypeGroupListRequest) SetMethod

func (r *GetTypeGroupListRequest) SetMethod(method string)

func (*GetTypeGroupListRequest) SetRequestBody

func (r *GetTypeGroupListRequest) SetRequestBody(body GetTypeGroupListRequestBody)

func (*GetTypeGroupListRequest) URL

func (r *GetTypeGroupListRequest) URL() (*url.URL, error)

type GetTypeGroupListRequestBody

type GetTypeGroupListRequestBody struct {
	XMLName xml.Name `xml:"GetTypeGroupList"`
}

type GetTypeGroupListRequestPathParams

type GetTypeGroupListRequestPathParams struct {
}

func (*GetTypeGroupListRequestPathParams) Params

type GetTypeGroupListRequestQueryParams

type GetTypeGroupListRequestQueryParams struct {
}

func (GetTypeGroupListRequestQueryParams) ToURLValues

type GetTypeGroupListRequestResponseBody

type GetTypeGroupListRequestResponseBody struct {
	XMLName xml.Name `xml:"GetTypeGroupListResponse"`

	GetTypeGroupListResult struct {
		AccountingGroup []struct {
			AccountId string `xml:"AccountId"`
			ID        string `xml:"Id"`
			Name      string `xml:"Name"`
		} `xml:"AccountingGroup"`
	} `xml:"GetTypeGroupListResult"`
}

type GetTypeListRequest

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

func (*GetTypeListRequest) Do

func (*GetTypeListRequest) Method

func (r *GetTypeListRequest) Method() string

func (GetTypeListRequest) NewPathParams

func (GetTypeListRequest) NewQueryParams

func (GetTypeListRequest) NewRequestBody

func (r GetTypeListRequest) NewRequestBody() GetTypeListRequestBody

func (*GetTypeListRequest) NewResponseBody

func (r *GetTypeListRequest) NewResponseBody() *GetTypeListRequestResponseBody

func (*GetTypeListRequest) PathParams

func (r *GetTypeListRequest) PathParams() PathParams

func (*GetTypeListRequest) QueryParams

func (r *GetTypeListRequest) QueryParams() QueryParams

func (*GetTypeListRequest) RequestBody

func (r *GetTypeListRequest) RequestBody() *GetTypeListRequestBody

func (*GetTypeListRequest) RequestBodyInterface

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

func (GetTypeListRequest) SOAPAction

func (r GetTypeListRequest) SOAPAction() string

func (*GetTypeListRequest) SetMethod

func (r *GetTypeListRequest) SetMethod(method string)

func (*GetTypeListRequest) SetRequestBody

func (r *GetTypeListRequest) SetRequestBody(body GetTypeListRequestBody)

func (*GetTypeListRequest) URL

func (r *GetTypeListRequest) URL() (*url.URL, error)

type GetTypeListRequestBody

type GetTypeListRequestBody struct {
	XMLName xml.Name `xml:"GetTypeList"`
}

type GetTypeListRequestPathParams

type GetTypeListRequestPathParams struct {
}

func (*GetTypeListRequestPathParams) Params

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

type GetTypeListRequestQueryParams

type GetTypeListRequestQueryParams struct {
}

func (GetTypeListRequestQueryParams) ToURLValues

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

type GetTypeListRequestResponseBody

type GetTypeListRequestResponseBody struct {
	XMLName xml.Name `xml:"GetTypeListResponse"`

	GetTypeListResult struct {
		Text     string `xml:",chardata"`
		TypeData []struct {
			Text          string `xml:",chardata"`
			TypeId        string `xml:"TypeId"`
			Title         string `xml:"Title"`
			EntrySeriesId string `xml:"EntrySeriesId"`
			TypeNo        string `xml:"TypeNo"`
		} `xml:"TypeData"`
	} `xml:"GetTypeListResult"`
}

type Guid

type Guid string

type HasSessionRequest

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

func (*HasSessionRequest) Do

func (*HasSessionRequest) Method

func (r *HasSessionRequest) Method() string

func (HasSessionRequest) NewPathParams

func (HasSessionRequest) NewQueryParams

func (r HasSessionRequest) NewQueryParams() *HasSessionRequestQueryParams

func (HasSessionRequest) NewRequestBody

func (r HasSessionRequest) NewRequestBody() HasSessionRequestBody

func (*HasSessionRequest) NewResponseBody

func (r *HasSessionRequest) NewResponseBody() *HasSessionRequestResponseBody

func (*HasSessionRequest) PathParams

func (r *HasSessionRequest) PathParams() PathParams

func (*HasSessionRequest) QueryParams

func (r *HasSessionRequest) QueryParams() QueryParams

func (*HasSessionRequest) RequestBody

func (r *HasSessionRequest) RequestBody() *HasSessionRequestBody

func (*HasSessionRequest) RequestBodyInterface

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

func (HasSessionRequest) SOAPAction

func (r HasSessionRequest) SOAPAction() string

func (*HasSessionRequest) SetMethod

func (r *HasSessionRequest) SetMethod(method string)

func (*HasSessionRequest) SetRequestBody

func (r *HasSessionRequest) SetRequestBody(body HasSessionRequestBody)

func (*HasSessionRequest) URL

func (r *HasSessionRequest) URL() (*url.URL, error)

type HasSessionRequestBody

type HasSessionRequestBody struct {
	XMLName xml.Name `xml:"web:HasSession"`
}

type HasSessionRequestPathParams

type HasSessionRequestPathParams struct {
}

func (*HasSessionRequestPathParams) Params

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

type HasSessionRequestQueryParams

type HasSessionRequestQueryParams struct {
}

func (HasSessionRequestQueryParams) ToURLValues

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

type HasSessionRequestResponseBody

type HasSessionRequestResponseBody struct {
	XMLName xml.Name `xml:"HasSessionResponse"`

	HasSessionResult bool `xml:"HasSessionResult"`
}
type Header struct {
}

func NewHeader

func NewHeader() Header

func (Header) IsEmpty

func (h Header) IsEmpty() bool

func (Header) MarshalXML

func (h Header) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Identities

type Identities []Identity

type Identity

type Identity struct {
	ID   string `xml:"Id"`
	User struct {
		ContactId  string `xml:"ContactId"`
		ID         string `xml:"Id"`
		Name       string `xml:"Name"`
		EmployeeId string `xml:"EmployeeId"`
	} `xml:"User"`
	Client struct {
		ID   string `xml:"Id"`
		Name string `xml:"Name"`
	} `xml:"Client"`
	IsCurrent   string `xml:"IsCurrent"`
	IsDefault   string `xml:"IsDefault"`
	IsProtected string `xml:"IsProtected"`
	Servers     struct {
		Server struct {
			ID   string `xml:"Id"`
			Type string `xml:"Type"`
		} `xml:"Server"`
	} `xml:"Servers"`
}

type Invoice

type Invoice struct {
	OrderId               int                   `xml:"OrderId,omitempty"`                // Can be specified in requests to SaveInvoices, otherwise set by the system. If an existing orderId is set the request is treated as an update for an InvoiceOrder. Default value: int.MinValue
	CustomerId            int                   `xml:"CustomerId,omitempty"`             // Required. Must exist in system. Default value: int.MinValue
	CustomerName          string                `xml:"CustomerName,omitempty"`           // Default value: “”. Max length 100 characters.
	CustomerDeliveryName  string                `xml:"CustomerDeliveryName,omitempty"`   // Default value: “”. Use this property when getting the Customer Delivery Name. the Delivery Name property under ‘Addresses’ can also be used for setting the name, but only this property can be used for both getting and setting the Delivery Name. Max length 250 characters
	CustomerDeliveryPhone string                `xml:"CustomerDeliveryPhone,omitempty"`  // Customer Delivery Phone. Max length 25 characters
	DeliveryAlternative   string                `xml:"DeliveryAlternative,omitempty"`    // Default value: “”. Max length 250 characters
	Addresses             Addresses             `xml:"Addresses,omitempty"`              // Default value: null
	OrderStatus           OrderSlipStateType    `xml:"OrderStatus,omitempty"`            // Default value: Web
	InvoiceId             int                   `xml:"InvoiceId,omitempty"`              // Cannot be specified in requests to SaveInvoices, this is always defined by the system. Default value: int.MinValue
	DateOrdered           DateTime              `xml:"DateOrdered,omitempty"`            // Default value: DateTime.MinValue
	DateInvoiced          DateTime              `xml:"DateInvoiced,omitempty"`           // Default value: DateTime.MinValue
	DateChanged           DateTime              `xml:"DateChanged,omitempty"`            // Default value: DateTime.MinValue
	PaymentTime           int                   `xml:"PaymentTime,omitempty"`            // Default (no change): int.MinValue
	CustomerReferenceNo   string                `xml:"CustomerReferenceNo,omitempty"`    // Deprecated
	ProjectId             int                   `xml:"ProjectId,omitempty"`              // If set, must exist in system. Default value: int.MinValue
	OurReference          int                   `xml:"OurReference,omitempty"`           // EmployeeId. If set, must exist in system. Default value: int.MinValue
	IncludeVAT            bool                  `xml:"IncludeVAT,omitempty"`             // Default value: null
	YourReference         string                `xml:"YourReference,omitempty"`          // Default value: “”. Max length 50 characters
	OrderTotalIncVat      Number                `xml:"OrderTotalIncVat,omitempty"`       // Default value: Decimal.MinValue. Read only
	OrderTotalVat         Number                `xml:"OrderTotalVat,omitempty"`          // Default value: Decimal.MinValue. Read only
	InvoiceTitle          string                `xml:"InvoiceTitle,omitempty"`           // Default value: “”. Max length 300 characters. This is the "comment" field of an invoice.
	InvoiceText           string                `xml:"InvoiceText,omitempty"`            // Default value: “”. Max length 750 characters
	Paid                  DateTime              `xml:"Paid,omitempty"`                   // Default value: DateTime.MinValue
	OCR                   string                `xml:"OCR,omitempty"`                    // Default value: “”. This is the invoice KID number. Max length 32 characters
	CustomerOrgNo         string                `xml:"CustomerOrgNo,omitempty"`          // Default value: “”. Max length 20 characters
	Currency              Currency              `xml:"Currency,omitempty"`               // Default value: null
	PaymentMethodId       int                   `xml:"PaymentMethodId,omitempty"`        // Default value: int.MinValue
	PaymentAmount         Number                `xml:"PaymentAmount,omitempty"`          // Write only property. Used for registering payments. Default value: Decimal.MinValue
	ProductionManagerId   int                   `xml:"ProductionManagerId,omitempty"`    // If set, must exist in system. Default value: int.MinValue
	SalesOpportunityId    int                   `xml:"SalesOpportunityId,omitempty"`     // If set, must exist in system. Default value: int.MinValue
	TypeOfSaleId          int                   `xml:"TypeOfSaleId,omitempty"`           // Default value: int.MinValue. You can get the values from GetTypeGroupList in the ClientService
	Distributor           Distributor           `xml:"Distributor,omitempty"`            // Default value: Default
	DistributionMethod    DistributionMethod    `xml:"DistributionMethod,omitempty"`     // Default value: Unchanged
	DepartmentId          int                   `xml:"DepartmentId,omitempty"`           // If set, must exist in system. Default value: int.MinValue
	ExternalStatus        int                   `xml:"ExternalStatus,omitempty"`         // Default value: int.MinValue
	DeliveryDate          DateTime              `xml:"DeliveryDate,omitempty"`           // Default value: DateTime.MinValue
	SkipStock             bool                  `xml:"SkipStock,omitempty"`              // Default value: false
	ProductionNumber      string                `xml:"ProductionNumber,omitempty"`       // Default value: “”. Max length 20 characters
	ReferenceInvoiceId    int                   `xml:"ReferenceInvoiceId,omitempty"`     // Default value: int.MinValue. Used for reference to original invoice when making a credit note.
	ReferenceOrderId      int                   `xml:"ReferenceOrderId,omitempty"`       // Default value: int.MinValue. Used for reference to original order when making a credit note.
	ReferenceNumber       string                `xml:"ReferenceNumber,omitempty"`        // Default value: “”. Max length 50 characters
	InvoiceEmailAddress   string                `xml:"InvoiceEmailAddress,omitempty"`    // Default value: “”. Max length 250 characters
	AccrualDate           DateTime              `xml:"AccrualDate,omitempty"`            // Default value: DateTime.MinValue. Determines the start date for the accrual period(s)
	AccrualLength         int                   `xml:"AccrualLength,omitempty"`          // Default value: int.MinValue. Sets the number of accrual months
	RoundFactor           Number                `xml:"RoundFactor,omitempty"`            // Default value: Decimal.MinValue. May be set to 0.1, 0.5 or 1.0
	InvoiceTemplateId     Guid                  `xml:"InvoiceTemplateId,omitempty"`      // Default value: 00000000-0000-0000-0000-000000000000
	VippsNumber           string                `xml:"VippsNumber,omitempty"`            // Deprecated
	DeliveryMethod        DeliveryMethod        `xml:"DeliveryMethod,omitempty"`         // Default value: null
	SendToFactoring       bool                  `xml:"SendToFactoring,omitempty"`        // Default value: true
	Commission            Number                `xml:"Commission,omitempty"`             // Default value: Decimal.MinValue
	InvoiceRows           InvoiceRows           `xml:"InvoiceRows>InvoiceRow,omitempty"` // Default value: null
	APIException          APIException          `xml:"APIException,omitempty"`           // Default value: null
	UserDefinedDimensions UserDefinedDimensions `xml:"UserDefinedDimensions,omitempty"`  // Dimensions defined by the user
	GLNNumber             string                `xml:"GLNNumber,omitempty"`              // Default value: “”. Uses Customer GLNNumber if default value is used and customer card has GLNNumber. To override this logic and set GLNNumber to the value NULL, the value in your request should be set to the string value NULL. Max length 13 characters
	CustomerDeliveryId    int                   `xml:"CustomerDeliveryId,omitempty"`     // Default value: int.MinValue. CustomerId of recipient, in cases where it differs from CustomerId
}

func (Invoice) IsEmpty

func (i Invoice) IsEmpty() bool

func (Invoice) MarshalXML

func (i Invoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type InvoiceOrder

type InvoiceOrder struct {
	OrderID              string    `xml:"OrderId"`
	CustomerID           string    `xml:"CustomerId"`
	CustomerName         string    `xml:"CustomerName"`
	CustomerDeliveryName string    `xml:"CustomerDeliveryName"`
	Addresses            Addresses `xml:"Addresses"`
	OrderStatus          string    `xml:"OrderStatus"`
	InvoiceID            string    `xml:"InvoiceId"`
	DateOrdered          Date      `xml:"DateOrdered"`
	DateInvoiced         Date      `xml:"DateInvoiced"`
	DateChanged          Date      `xml:"DateChanged"`
	PaymentTime          string    `xml:"PaymentTime"`
	OurReference         string    `xml:"OurReference"`
	IncludeVAT           struct {
		Nil string `xml:"nil,attr"`
	} `xml:"IncludeVAT"`
	OrderTotalIncVat string `xml:"OrderTotalIncVat"`
	OrderTotalVat    string `xml:"OrderTotalVat"`
	CustomerOrgNo    string `xml:"CustomerOrgNo"`
	Currency         struct {
		Symbol string `xml:"Symbol"`
	} `xml:"Currency"`
	TypeOfSaleID        string      `xml:"TypeOfSaleId"`
	InvoiceEmailAddress string      `xml:"InvoiceEmailAddress"`
	InvoiceRows         InvoiceRows `xml:"InvoiceRows>InvoiceRow"`
	AccrualLength       string      `xml:"AccrualLength"`
	RoundFactor         string      `xml:"RoundFactor"`
	InvoiceTemplateID   string      `xml:"InvoiceTemplateId"`
	DeliveryMethod      string      `xml:"DeliveryMethod"`
	SendToFactoring     string      `xml:"SendToFactoring"`
	Commission          string      `xml:"Commission"`
}

type InvoiceOrders

type InvoiceOrders []InvoiceOrder

type InvoiceRow

type InvoiceRow struct {
	ProductId             int                   `xml:"ProductId,omitempty"`             // Required for Row Type Normal. Must exist in system. Default value: int.MinValue
	ProductNo             string                `xml:"ProductNo,omitempty"`             // Read only. When creating orders with SaveInvoices you must use ProductId
	RowId                 int                   `xml:"RowId,omitempty"`                 // Used when editing an existing order. Default value: int.MinValue
	VatRate               Number                `xml:"VatRate,omitempty"`               // Default value: Decimal.MinValue. Read only
	Price                 Number                `xml:"Price,omitempty"`                 // Default value: Decimal.MinValue
	Name                  string                `xml:"Name,omitempty"`                  // Default value: “”. Max length 300 characters
	DiscountRate          Number                `xml:"DiscountRate,omitempty"`          // Default value: Decimal.MinValue
	Quantity              Number                `xml:"Quantity,omitempty"`              // Default value: Decimal.MinValue
	QuantityDelivered     Number                `xml:"QuantityDelivered,omitempty"`     // Default value: Decimal.MinValue
	QuantityOrdered       Number                `xml:"QuantityOrdered,omitempty"`       // Default value: Decimal.MinValue
	QuantityRest          Number                `xml:"QuantityRest,omitempty"`          // -1. This property is used for creating rest orders
	Cost                  Number                `xml:"Cost,omitempty"`                  // Default value: Decimal.MinValue
	InPrice               Number                `xml:"InPrice,omitempty"`               // Default value: Decimal.MinValue
	SequenceNumber        int                   `xml:"SequenceNumber,omitempty"`        // Default value: Int16.MinValue
	Hidden                bool                  `xml:"Hidden,omitempty"`                // Default value: false. Makes the row hidden on the actual invoice statement.
	Type                  RowType               `xml:"Type,omitempty"`                  // Normal or Text. Default value: Normal. Please note that TextBold is deprecated
	AccrualDate           DateTime              `xml:"AccrualDate,omitempty"`           // Default value: DateTime.MinValue
	AccrualLength         int                   `xml:"AccrualLength,omitempty"`         // Default value: int.MinValue
	ChangeState           ChangeState           `xml:"ChangeState,omitempty"`           // This property must be used when editing an already exisiting order. Default value: ChangeState.None
	TypeGroupId           int                   `xml:"TypeGroupId,omitempty"`           //
	AccountProject        bool                  `xml:"AccountProject,omitempty"`        // N/A
	DepartmentId          int                   `xml:"DepartmentId,omitempty"`          //
	ProjectId             int                   `xml:"ProjectId,omitempty"`             //
	UserDefinedDimensions UserDefinedDimensions `xml:"UserDefinedDimensions,omitempty"` // Dimensions defined by the user
	TaxSettings           TaxSettings           `xml:"TaxSettings,omitempty"`           // Override the typegroup tax rate for this invoice row
}

type InvoiceRows

type InvoiceRows []InvoiceRow

type Invoices

type Invoices []Invoice

type LoginRequest

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

func (*LoginRequest) Do

func (*LoginRequest) Method

func (r *LoginRequest) Method() string

func (LoginRequest) NewPathParams

func (r LoginRequest) NewPathParams() *LoginRequestPathParams

func (LoginRequest) NewQueryParams

func (r LoginRequest) NewQueryParams() *LoginRequestQueryParams

func (LoginRequest) NewRequestBody

func (r LoginRequest) NewRequestBody() LoginRequestBody

func (*LoginRequest) NewResponseBody

func (r *LoginRequest) NewResponseBody() *LoginRequestResponseBody

func (*LoginRequest) PathParams

func (r *LoginRequest) PathParams() PathParams

func (*LoginRequest) QueryParams

func (r *LoginRequest) QueryParams() QueryParams

func (*LoginRequest) RequestBody

func (r *LoginRequest) RequestBody() *LoginRequestBody

func (*LoginRequest) RequestBodyInterface

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

func (LoginRequest) SOAPAction

func (r LoginRequest) SOAPAction() string

func (*LoginRequest) SetMethod

func (r *LoginRequest) SetMethod(method string)

func (*LoginRequest) SetRequestBody

func (r *LoginRequest) SetRequestBody(body LoginRequestBody)

func (*LoginRequest) URL

func (r *LoginRequest) URL() (*url.URL, error)

type LoginRequestBody

type LoginRequestBody struct {
	XMLName xml.Name `xml:"web:Login"`

	Credential struct {
		ApplicationID string `xml:"web:ApplicationId"`
		IdentityID    string `xml:"web:IdentityId,omitempty"`
		Username      string `xml:"web:Username"`
		Password      string `xml:"web:Password"`
	} `xml:"web:credential"`
}

type LoginRequestPathParams

type LoginRequestPathParams struct {
}

func (*LoginRequestPathParams) Params

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

type LoginRequestQueryParams

type LoginRequestQueryParams struct {
}

func (LoginRequestQueryParams) ToURLValues

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

type LoginRequestResponseBody

type LoginRequestResponseBody struct {
	XMLName xml.Name `xml:"LoginResponse"`

	LoginResult string `xml:"LoginResult"`
}

type Number

type Number float64

func (Number) MarshalXML

func (n Number) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

type OrderSlipStateType

type OrderSlipStateType string

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
	PathParams() PathParams
	RequestBodyInterface() interface{}
	URL() (*url.URL, error)
	SOAPAction() string
}

type RequestCompletionCallback

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

RequestCompletionCallback defines the type of the request callback function

type RequestEnvelope

type RequestEnvelope struct {
	XMLName xml.Name

	Header Header `xml:"env:Header"`
	Body   Body   `xml:"env:Body"`
}

func NewRequestEnvelope

func NewRequestEnvelope() RequestEnvelope

func (RequestEnvelope) MarshalXML

func (env RequestEnvelope) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ResponseEnvelope

type ResponseEnvelope struct {
	XMLName xml.Name

	Header Header `xml:"Header"`
	Body   Body   `xml:"Body"`
}

type RowType

type RowType string

type SOAPError

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

func (SOAPError) Error

func (e SOAPError) Error() string

type SOAPFault

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

	XMLName     xml.Name `xml:"Fault"`
	Faultcode   string   `xml:"faultcode"`
	Faultstring string   `xml:"faultstring"`
	Detail      struct {
		Fault struct {
			PlatformFaults string `xml:"platformFaults,attr"`
			Code           string `xml:"code"`
			Message        string `xml:"message"`
		} `xml:"any"`
		Hostname struct {
			Ns1 string `xml:"ns1,attr"`
		} `xml:"hostname"`
	} `xml:"detail"`
}

func (SOAPFault) Error

func (f SOAPFault) Error() string

type SaveBundleListRequest

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

func (*SaveBundleListRequest) Do

func (*SaveBundleListRequest) Method

func (r *SaveBundleListRequest) Method() string

func (SaveBundleListRequest) NewPathParams

func (SaveBundleListRequest) NewQueryParams

func (SaveBundleListRequest) NewRequestBody

func (*SaveBundleListRequest) NewResponseBody

func (*SaveBundleListRequest) PathParams

func (r *SaveBundleListRequest) PathParams() PathParams

func (*SaveBundleListRequest) QueryParams

func (r *SaveBundleListRequest) QueryParams() QueryParams

func (*SaveBundleListRequest) RequestBody

func (*SaveBundleListRequest) RequestBodyInterface

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

func (SaveBundleListRequest) SOAPAction

func (r SaveBundleListRequest) SOAPAction() string

func (*SaveBundleListRequest) SetMethod

func (r *SaveBundleListRequest) SetMethod(method string)

func (*SaveBundleListRequest) SetRequestBody

func (r *SaveBundleListRequest) SetRequestBody(body SaveBundleListRequestBody)

func (*SaveBundleListRequest) URL

func (r *SaveBundleListRequest) URL() (*url.URL, error)

type SaveBundleListRequestBody

type SaveBundleListRequestBody struct {
	XMLName xml.Name `xml:"web:SaveBundleList"`

	BundleList BundleList `xml:"web:BundleList"`
}

type SaveBundleListRequestPathParams

type SaveBundleListRequestPathParams struct {
}

func (*SaveBundleListRequestPathParams) Params

type SaveBundleListRequestQueryParams

type SaveBundleListRequestQueryParams struct {
}

func (SaveBundleListRequestQueryParams) ToURLValues

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

type SaveBundleListRequestResponseBody

type SaveBundleListRequestResponseBody struct {
	XMLName xml.Name `xml:"SaveBundleListResponse"`

	SaveBundleListResult struct {
		Type        string `xml:"Type"`
		Description string `xml:"Description"`
	} `xml:"SaveBundleListResult"`
}

type SaveCompaniesRequest

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

func (*SaveCompaniesRequest) Do

func (*SaveCompaniesRequest) Method

func (r *SaveCompaniesRequest) Method() string

func (SaveCompaniesRequest) NewPathParams

func (SaveCompaniesRequest) NewQueryParams

func (SaveCompaniesRequest) NewRequestBody

func (*SaveCompaniesRequest) NewResponseBody

func (*SaveCompaniesRequest) PathParams

func (r *SaveCompaniesRequest) PathParams() PathParams

func (*SaveCompaniesRequest) QueryParams

func (r *SaveCompaniesRequest) QueryParams() QueryParams

func (*SaveCompaniesRequest) RequestBody

func (*SaveCompaniesRequest) RequestBodyInterface

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

func (SaveCompaniesRequest) SOAPAction

func (r SaveCompaniesRequest) SOAPAction() string

func (*SaveCompaniesRequest) SetMethod

func (r *SaveCompaniesRequest) SetMethod(method string)

func (*SaveCompaniesRequest) SetRequestBody

func (r *SaveCompaniesRequest) SetRequestBody(body SaveCompaniesRequestBody)

func (*SaveCompaniesRequest) URL

func (r *SaveCompaniesRequest) URL() (*url.URL, error)

type SaveCompaniesRequestBody

type SaveCompaniesRequestBody struct {
	XMLName xml.Name `xml:"web:SaveCompanies"`

	Companies Companies `xml:"web:companies>web:Company"`
}

func (SaveCompaniesRequestBody) MarshalXML

func (rb SaveCompaniesRequestBody) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type SaveCompaniesRequestPathParams

type SaveCompaniesRequestPathParams struct {
}

func (*SaveCompaniesRequestPathParams) Params

type SaveCompaniesRequestQueryParams

type SaveCompaniesRequestQueryParams struct {
}

func (SaveCompaniesRequestQueryParams) ToURLValues

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

type SaveCompaniesRequestResponseBody

type SaveCompaniesRequestResponseBody struct {
	XMLName xml.Name `xml:"SaveCompaniesResponse"`

	Companies Companies `xml:"SaveCompaniesResult>Company"`
}

type SaveInvoicesRequest

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

func (*SaveInvoicesRequest) Do

func (*SaveInvoicesRequest) Method

func (r *SaveInvoicesRequest) Method() string

func (SaveInvoicesRequest) NewPathParams

func (SaveInvoicesRequest) NewQueryParams

func (SaveInvoicesRequest) NewRequestBody

func (r SaveInvoicesRequest) NewRequestBody() SaveInvoicesRequestBody

func (*SaveInvoicesRequest) NewResponseBody

func (*SaveInvoicesRequest) PathParams

func (r *SaveInvoicesRequest) PathParams() PathParams

func (*SaveInvoicesRequest) QueryParams

func (r *SaveInvoicesRequest) QueryParams() QueryParams

func (*SaveInvoicesRequest) RequestBody

func (r *SaveInvoicesRequest) RequestBody() *SaveInvoicesRequestBody

func (*SaveInvoicesRequest) RequestBodyInterface

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

func (SaveInvoicesRequest) SOAPAction

func (r SaveInvoicesRequest) SOAPAction() string

func (*SaveInvoicesRequest) SetMethod

func (r *SaveInvoicesRequest) SetMethod(method string)

func (*SaveInvoicesRequest) SetRequestBody

func (r *SaveInvoicesRequest) SetRequestBody(body SaveInvoicesRequestBody)

func (*SaveInvoicesRequest) URL

func (r *SaveInvoicesRequest) URL() (*url.URL, error)

type SaveInvoicesRequestBody

type SaveInvoicesRequestBody struct {
	XMLName xml.Name `xml:"web:SaveInvoices"`

	Invoices Invoices `xml:"web:invoices>web:InvoiceOrder"`
}

func (SaveInvoicesRequestBody) MarshalXML

func (rb SaveInvoicesRequestBody) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type SaveInvoicesRequestPathParams

type SaveInvoicesRequestPathParams struct {
}

func (*SaveInvoicesRequestPathParams) Params

type SaveInvoicesRequestQueryParams

type SaveInvoicesRequestQueryParams struct {
}

func (SaveInvoicesRequestQueryParams) ToURLValues

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

type SaveInvoicesRequestResponseBody

type SaveInvoicesRequestResponseBody struct {
	XMLName xml.Name `xml:"SaveInvoicesResponse"`

	Invoices Invoices `xml:"SaveInvoicesResult>Invoice"`
}

type SetIdentityByIDRequest

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

func (*SetIdentityByIDRequest) Do

func (*SetIdentityByIDRequest) Method

func (r *SetIdentityByIDRequest) Method() string

func (SetIdentityByIDRequest) NewPathParams

func (SetIdentityByIDRequest) NewQueryParams

func (SetIdentityByIDRequest) NewRequestBody

func (*SetIdentityByIDRequest) NewResponseBody

func (*SetIdentityByIDRequest) PathParams

func (r *SetIdentityByIDRequest) PathParams() PathParams

func (*SetIdentityByIDRequest) QueryParams

func (r *SetIdentityByIDRequest) QueryParams() QueryParams

func (*SetIdentityByIDRequest) RequestBody

func (*SetIdentityByIDRequest) RequestBodyInterface

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

func (SetIdentityByIDRequest) SOAPAction

func (r SetIdentityByIDRequest) SOAPAction() string

func (*SetIdentityByIDRequest) SetMethod

func (r *SetIdentityByIDRequest) SetMethod(method string)

func (*SetIdentityByIDRequest) SetRequestBody

func (r *SetIdentityByIDRequest) SetRequestBody(body SetIdentityByIDRequestBody)

func (*SetIdentityByIDRequest) URL

func (r *SetIdentityByIDRequest) URL() (*url.URL, error)

type SetIdentityByIDRequestBody

type SetIdentityByIDRequestBody struct {
	XMLName xml.Name `xml:"web:SetIdentityById"`

	IdentityID string `xml:"web:identityId"`
}

type SetIdentityByIDRequestPathParams

type SetIdentityByIDRequestPathParams struct {
}

func (*SetIdentityByIDRequestPathParams) Params

type SetIdentityByIDRequestQueryParams

type SetIdentityByIDRequestQueryParams struct {
}

func (SetIdentityByIDRequestQueryParams) ToURLValues

type SetIdentityByIDRequestResponseBody

type SetIdentityByIDRequestResponseBody struct {
	XMLName xml.Name `xml:"SetIdentityByIdResponse"`

	SetIdentityByIDResult bool `xml:"SetIdentityByIdResult"`
}

type SignatureGenerator

type SignatureGenerator struct {
	// SignatureMethod specifies the method for signing a request.
	SignatureMethod SignatureMethod

	ClientID     string // ConsumerKey
	ClientSecret string // ConsumerSecret
	TokenID      string // Token
	TokenSecret  string // TokenSecret
	AccountID    string

	Nonce     string
	Timestamp int64
}

func (*SignatureGenerator) Generate

func (g *SignatureGenerator) Generate() (string, error)

oauthParams returns the OAuth request parameters for the given credentials, method, URL and application parameters. See http://tools.ietf.org/html/rfc5849#section-3.4 for more information about signatures.

type SignatureMethod

type SignatureMethod int

SignatureMethod identifies a signature method.

const (
	HMACSHA1   SignatureMethod = iota // HMAC-SHA1
	RSASHA1                           // RSA-SHA1
	PLAINTEXT                         // Plain text
	HMACSHA256                        // HMAC-256
	RSASHA256                         // RSA-SHA256
)

func (SignatureMethod) String

func (sm SignatureMethod) String() string

type StatusResponseBody

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

	Node struct {
		Type        string `xml:"Type"`
		Description string `xml:"Description"`
	} `xml:",any"`
}

type TaxCode

type TaxCode struct {
	TaxID     int    `xml:"TaxId"`
	TaxNo     string `xml:"TaxNo"`
	TaxName   string `xml:"TaxName"`
	TaxRate   Number `xml:"TaxRate"`
	AccountNo string `xml:"AccountNo"`
}

type TaxCodes

type TaxCodes []TaxCode

type TaxSettings

type TaxSettings struct {
	TaxAccount int    `xml:"TaxAccount,omitempty"` // The account
	TaxCode    int    `xml:"TaxCode,omitempty"`    // Get this from GetTaxCodeList in the AccountService
	TaxRate    Number `xml:"TaxRate,omitempty"`    // The tax rate you wish to set
}

type UserDefinedDimensions

type UserDefinedDimensions []interface{}

type Voucher

type Voucher struct {
	XMLName xml.Name `xml:"web:Voucher"`

	TransactionNo int            `xml:"web:TransactionNo"`
	Sort          int            `xml:"web:Sort"`
	Entries       VoucherEntries `xml:"web:Entries>web:Entry"`
}

type VoucherEntries

type VoucherEntries []VoucherEntry

type VoucherEntry

type VoucherEntry struct {
	XMLName xml.Name `xml:"web:Entry"`

	AccountNo          string `xml:"web:AccountNo"`
	CustomerID         int    `xml:"web:CustomerId"`
	Date               Date   `xml:"web:Date"`
	DueDate            Date   `xml:"web:DueDate"`
	Amount             Number `xml:"web:Amount"`
	CurrencyID         string `xml:"web:CurrencyId"`
	CurrencyRate       Number `xml:"web:CurrencyRate"`
	CurrencyUnit       int    `xml:"web:CurrencyUnit"`
	DepartmentID       int    `xml:"web:DepartmentId,omitempty"`
	ProjectID          int    `xml:"web:ProjectId,omitempty"`
	InvoiceReferenceNo int    `xml:"web:InvoiceReferenceNo,omitempty"`
	InvoiceOCR         string `xml:"web:InvoiceOcr,omitempty"`
	Comment            string `xml:"web:Comment"`
	LinkId             string `xml:"web:LinkId,omitempty"`
	TaxNo              int    `xml:"web:TaxNo,omitempty"` // actually TaxID
}

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