trivec

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

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "{{.service_id}}.trivecgateway.com",
		Path:   "",
	}
)

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 AccountInfo

type AccountInfo struct {
	Type        string `json:"$type"`
	Address     string `json:"Address"`
	City        string `json:"City"`
	ClientNr    string `json:"ClientNr"`
	CompanyName string `json:"CompanyName"`
	Country     string `json:"Country"`
	Data        string `json:"Data"`
	EMail       string `json:"EMail"`
	FirstName   string `json:"FirstName"`
	Gender      string `json:"Gender"`
	GenderID    int    `json:"GenderId"`
	Info        string `json:"Info"`
	Key         string `json:"Key"`
	Language    string `json:"Language"`
	LastName    string `json:"LastName"`
	MiddleName  string `json:"MiddleName"`
	NickName    string `json:"NickName"`
	Phone       string `json:"Phone"`
	State       string `json:"State"`
	VATNumber   string `json:"VATNumber"`
	ZipCode     string `json:"ZipCode"`
}

type AccountInfoRequest

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

func (*AccountInfoRequest) Do

func (*AccountInfoRequest) Method

func (r *AccountInfoRequest) Method() string

func (AccountInfoRequest) NewPathParams

func (AccountInfoRequest) NewQueryParams

func (AccountInfoRequest) NewRequestBody

func (r AccountInfoRequest) NewRequestBody() AccountInfoRequestBody

func (*AccountInfoRequest) NewResponseBody

func (r *AccountInfoRequest) NewResponseBody() *AccountInfoRequestResponseBody

func (*AccountInfoRequest) PathParams

func (*AccountInfoRequest) PathParamsInterface

func (r *AccountInfoRequest) PathParamsInterface() PathParams

func (*AccountInfoRequest) QueryParams

func (*AccountInfoRequest) RequestBody

func (r *AccountInfoRequest) RequestBody() *AccountInfoRequestBody

func (*AccountInfoRequest) RequestBodyInterface

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

func (*AccountInfoRequest) SetMethod

func (r *AccountInfoRequest) SetMethod(method string)

func (*AccountInfoRequest) SetRequestBody

func (r *AccountInfoRequest) SetRequestBody(body AccountInfoRequestBody)

func (*AccountInfoRequest) URL

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

type AccountInfoRequestBody

type AccountInfoRequestBody struct {
}

type AccountInfoRequestPathParams

type AccountInfoRequestPathParams struct {
	AccountKey string
}

func (*AccountInfoRequestPathParams) Params

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

type AccountInfoRequestQueryParams

type AccountInfoRequestQueryParams struct{}

func (AccountInfoRequestQueryParams) ToURLValues

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

type AccountInfoRequestResponseBody

type AccountInfoRequestResponseBody AccountInfo

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, subscriptionKey, serviceKey, serviceID, appID string) *Client

NewClient returns a new Exact Globe Client client

func (Client) AppID

func (c Client) AppID() string

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

func (c Client) Environment() string

func (*Client) GetEndpointURL

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

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewAccountInfoRequest

func (c *Client) NewAccountInfoRequest() AccountInfoRequest

func (*Client) NewPaymodeGroupsRequest

func (c *Client) NewPaymodeGroupsRequest() PaymodeGroupsRequest

func (*Client) NewPaymodesRequest

func (c *Client) NewPaymodesRequest() PaymodesRequest

func (*Client) NewProductGroupsRequest

func (c *Client) NewProductGroupsRequest() ProductGroupsRequest

func (*Client) NewProductsRequest

func (c *Client) NewProductsRequest() ProductsRequest

func (*Client) NewRequest

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

func (*Client) NewTicketsRequest

func (c *Client) NewTicketsRequest() TicketsRequest

func (Client) ServiceID

func (c Client) ServiceID() string

func (Client) ServiceKey

func (c Client) ServiceKey() string

func (*Client) SetAppID

func (c *Client) SetAppID(appID string)

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

func (c *Client) SetEnvironment(environment string)

func (*Client) SetHTTPClient

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

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetServiceID

func (c *Client) SetServiceID(serviceID string)

func (*Client) SetServiceKey

func (c *Client) SetServiceKey(serviceKey string)

func (*Client) SetSubscriptionKey

func (c *Client) SetSubscriptionKey(subscriptionKey string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (Client) SubscriptionKey

func (c Client) SubscriptionKey() string

func (*Client) Unmarshal

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

func (Client) UserAgent

func (c Client) UserAgent() string

type Color

type Color struct {
	Type       string `json:"$type"`
	Background string `json:"Background"`
	Foreground string `json:"Foreground"`
	Key        string `json:"Key"`
}

type ColorKey

type ColorKey struct {
	Type  string `json:"$type"`
	PcKey int    `json:"PcKey"`
	RecNr int    `json:"RecNr"`
}

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

func (d DateTime) MarshalSchema() string

type DxPaymode

type DxPaymode struct {
	Type            string      `json:"$type"`
	AskPrice        bool        `json:"AskPrice,omitempty"`
	Color           Color       `json:"Color"`
	ColorKey        ColorKey    `json:"ColorKey,omitempty"`
	ConnectionID    string      `json:"ConnectionId"`
	Data            string      `json:"Data"`
	DefaultCash     bool        `json:"DefaultCash"`
	Description     string      `json:"Description"`
	Footer          string      `json:"Footer"`
	GroupKey        string      `json:"GroupKey"`
	GroupLeftNr     int         `json:"GroupLeftNr"`
	GroupRightNr    int         `json:"GroupRightNr"`
	Hotel           string      `json:"Hotel"`
	Info            string      `json:"Info"`
	KDSColorKey     KDSColorKey `json:"KDSColorKey"`
	Key             string      `json:"Key"`
	Name            string      `json:"Name"`
	OpenDrawer      bool        `json:"OpenDrawer,omitempty"`
	PrintMemo       bool        `json:"PrintMemo"`
	PrintX          int         `json:"PrintX"`
	ProdNr          int         `json:"ProdNr,omitempty"`
	ShortName       string      `json:"ShortName"`
	ShowInSearch    bool        `json:"ShowInSearch"`
	TerminalName    string      `json:"TerminalName"`
	UnitBase        int         `json:"UnitBase"`
	NoRefundDiffKey string      `json:"NoRefundDiffKey,omitempty"`
	PaymodeType     string      `json:"PaymodeType,omitempty"`
	PaymodeTypeID   int         `json:"PaymodeTypeId,omitempty"`
	AskQty          bool        `json:"AskQty,omitempty"`
	IsCash          bool        `json:"IsCash,omitempty"`
	Price           float64     `json:"Price,omitempty"`
}

type DxPaymodes

type DxPaymodes []DxPaymode

type DxProdGroup

type DxProdGroup struct {
	Type       string   `json:"$type"`
	ColorKey   ColorKey `json:"ColorKey,omitempty"`
	Data       string   `json:"Data"`
	GroupLevel int      `json:"GroupLevel"`
	Key        string   `json:"Key"`
	LeftNr     int      `json:"LeftNr"`
	Name       string   `json:"Name"`
	RightNr    int      `json:"RightNr"`
	VATCode    VATCode  `json:"VatCode,omitempty"`
	VatCodeKey string   `json:"VatCodeKey,omitempty"`
}

type DxProdGroups

type DxProdGroups []DxProdGroup

type DxProduct

type DxProduct struct {
	Type               string        `json:"$type"`
	AllowDiscount      bool          `json:"AllowDiscount,omitempty"`
	AskCourse          bool          `json:"AskCourse"`
	AutoAddons         []interface{} `json:"AutoAddons"`
	AutoWindows        []interface{} `json:"AutoWindows"`
	BarCode            string        `json:"BarCode"`
	CenterKeys         []interface{} `json:"CenterKeys"`
	Color              Color         `json:"Color"`
	ColorKey           ColorKey      `json:"ColorKey,omitempty"`
	Description        string        `json:"Description"`
	Fields             []interface{} `json:"Fields"`
	GroupKey           string        `json:"GroupKey"`
	Info               string        `json:"Info"`
	KDSColorKey        KDSColorKey   `json:"KDSColorKey"`
	Key                string        `json:"Key"`
	Name               string        `json:"Name"`
	Parts              []interface{} `json:"Parts"`
	PAXCode            string        `json:"PAXCode"`
	PieceGood          bool          `json:"PieceGood,omitempty"`
	PreparationInfo    string        `json:"PreparationInfo"`
	PrepGroupKey       string        `json:"PrepGroupKey,omitempty"`
	PrepName           string        `json:"PrepName"`
	PrepPrintAddons    bool          `json:"PrepPrintAddons"`
	Price              float64       `json:"Price,omitempty"`
	Prices             Prices        `json:"Prices"`
	PrintMemo          bool          `json:"PrintMemo"`
	PrintX             int           `json:"PrintX"`
	ProdNr             int           `json:"ProdNr"`
	ProductLinks       []interface{} `json:"ProductLinks"`
	ProductType        string        `json:"ProductType"`
	Promo              string        `json:"Promo"`
	PromoCondition     string        `json:"PromoCondition"`
	ShortName          string        `json:"ShortName"`
	ShowInSearch       bool          `json:"ShowInSearch"`
	Tags               []interface{} `json:"Tags"`
	TimeZoneKeys       []interface{} `json:"TimeZoneKeys"`
	Translations       []interface{} `json:"Translations"`
	UnitBase           int           `json:"UnitBase"`
	Vat                float64       `json:"Vat,omitempty"`
	Vat2               float64       `json:"Vat2,omitempty"`
	AskMemo            bool          `json:"AskMemo,omitempty"`
	AskPrice           bool          `json:"AskPrice,omitempty"`
	AllowZeroPrice     bool          `json:"AllowZeroPrice,omitempty"`
	ImageKey           string        `json:"ImageKey,omitempty"`
	PaymodeKey         string        `json:"PaymodeKey,omitempty"`
	VoucherServiceName string        `json:"VoucherServiceName,omitempty"`
	Paymode            DxPaymode     `json:"Paymode,omitempty"`
}

type DxProducts

type DxProducts []DxProduct

type DxVAT

type DxVAT struct {
	Type        string  `json:"$type"`
	CountryCode string  `json:"CountryCode"`
	FromDate    Date    `json:"FromDate"`
	Key         string  `json:"Key"`
	VAT         float64 `json:"VAT"`
}

type DxVATs

type DxVATs []DxVAT

type ErrorResponse

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

	Errors struct {
		Date []string `json:"date"`
	} `json:"errors"`
	Type    string `json:"type"`
	Title   string `json:"title"`
	Status  int    `json:"status"`
	TraceID string `json:"traceId"`
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type KDSColorKey

type KDSColorKey struct {
	Type string `json:"$type"`
}

type Order

type Order struct {
	Type       string     `json:"$type"`
	ActionID   int        `json:"ActionId"`
	ActualDate Date       `json:"ActualDate"`
	Date       Date       `json:"Date"`
	Key        string     `json:"Key"`
	Lines      OrderLines `json:"Lines"`
	Paymodes   Paymodes   `json:"Paymodes"`
	PcName     string     `json:"PcName"`
	PcNr       int        `json:"PcNr"`
	TicketKey  string     `json:"TicketKey"`
	Time       string     `json:"Time"`
	UserID     string     `json:"UserId"`
	UserKey    string     `json:"UserKey"`
	UserName   string     `json:"UserName"`
	TableNr    int        `json:"TableNr,omitempty"`
}

type OrderLine

type OrderLine struct {
	Type                  string        `json:"$type"`
	Addons                []interface{} `json:"Addons"`
	CourseNr              int           `json:"CourseNr"`
	CourseName            string        `json:"CourseName"`
	GroupKey              string        `json:"GroupKey"`
	GroupLeftNr           int           `json:"GroupLeftNr"`
	GroupName             string        `json:"GroupName"`
	GroupRightNr          int           `json:"GroupRightNr"`
	Key                   string        `json:"Key"`
	Memo                  string        `json:"Memo"`
	MenuID                string        `json:"MenuId"`
	Price                 float64       `json:"Price"`
	ProductKey            string        `json:"ProductKey"`
	ProductName           string        `json:"ProductName"`
	ProductNr             int           `json:"ProductNr"`
	ProductType           string        `json:"ProductType"`
	ProductTypeTranslated string        `json:"ProductTypeTranslated"`
	Qty                   float64       `json:"Qty"`
	TotalDisc             float64       `json:"TotalDisc"`
	TotalEx               float64       `json:"TotalEx"`
	TotalInc              float64       `json:"TotalInc"`
	VatNr                 int           `json:"VatNr"`
	VatPerc               float64       `json:"VatPerc"`
}

type OrderLines

type OrderLines []OrderLine

type Orders

type Orders []Order

type PathParams

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

type Payment

type Payment struct {
	Name             string    `json:"name"`
	TotalPrice       float64   `json:"totalPrice"`
	TransactionID    string    `json:"transactionId"`
	TransactionError string    `json:"transactionError"`
	Quantity         float64   `json:"quantity"`
	Units            int       `json:"units"`
	Price            float64   `json:"price"`
	CreateDT         time.Time `json:"createDT"`
	Key              string    `json:"key"`
}

type Payments

type Payments []Payment

type Paymode

type Paymode struct {
	Type          string  `json:"$type"`
	GroupKey      string  `json:"GroupKey"`
	GroupLeftNr   int     `json:"GroupLeftNr"`
	GroupName     string  `json:"GroupName"`
	GroupNr       int     `json:"GroupNr"`
	GroupRightNr  int     `json:"GroupRightNr"`
	Key           string  `json:"Key"`
	Memo          string  `json:"Memo"`
	PaymodeKey    string  `json:"PaymodeKey"`
	PaymodeName   string  `json:"PaymodeName"`
	PaymodeNr     int     `json:"PaymodeNr"`
	PaymodeType   string  `json:"PaymodeType"`
	Price         float64 `json:"Price"`
	Qty           float64 `json:"Qty"`
	TerminalID    string  `json:"TerminalId"`
	Tip           float64 `json:"Tip"`
	Total         float64 `json:"Total"`
	TransactionID string  `json:"TransactionId"`
}

type PaymodeGroup

type PaymodeGroup struct {
	Type       string   `json:"$type"`
	Data       string   `json:"Data"`
	GroupLevel int      `json:"GroupLevel"`
	Key        string   `json:"Key"`
	LeftNr     int      `json:"LeftNr"`
	Name       string   `json:"Name"`
	RightNr    int      `json:"RightNr"`
	ColorKey   ColorKey `json:"ColorKey,omitempty"`
}

type PaymodeGroups

type PaymodeGroups []PaymodeGroup

type PaymodeGroupsRequest

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

func (*PaymodeGroupsRequest) Do

func (*PaymodeGroupsRequest) Method

func (r *PaymodeGroupsRequest) Method() string

func (PaymodeGroupsRequest) NewPathParams

func (PaymodeGroupsRequest) NewQueryParams

func (PaymodeGroupsRequest) NewRequestBody

func (*PaymodeGroupsRequest) NewResponseBody

func (*PaymodeGroupsRequest) PathParams

func (*PaymodeGroupsRequest) PathParamsInterface

func (r *PaymodeGroupsRequest) PathParamsInterface() PathParams

func (*PaymodeGroupsRequest) QueryParams

func (*PaymodeGroupsRequest) RequestBody

func (*PaymodeGroupsRequest) RequestBodyInterface

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

func (*PaymodeGroupsRequest) SetMethod

func (r *PaymodeGroupsRequest) SetMethod(method string)

func (*PaymodeGroupsRequest) SetRequestBody

func (r *PaymodeGroupsRequest) SetRequestBody(body PaymodeGroupsRequestBody)

func (*PaymodeGroupsRequest) URL

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

type PaymodeGroupsRequestBody

type PaymodeGroupsRequestBody struct {
}

type PaymodeGroupsRequestPathParams

type PaymodeGroupsRequestPathParams struct{}

func (*PaymodeGroupsRequestPathParams) Params

type PaymodeGroupsRequestQueryParams

type PaymodeGroupsRequestQueryParams struct {
}

func (PaymodeGroupsRequestQueryParams) ToURLValues

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

type PaymodeGroupsRequestResponseBody

type PaymodeGroupsRequestResponseBody PaymodeGroups

type Paymodes

type Paymodes []Paymode

type PaymodesRequest

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

func (*PaymodesRequest) Do

func (*PaymodesRequest) Method

func (r *PaymodesRequest) Method() string

func (PaymodesRequest) NewPathParams

func (r PaymodesRequest) NewPathParams() *PaymodesRequestPathParams

func (PaymodesRequest) NewQueryParams

func (r PaymodesRequest) NewQueryParams() *PaymodesRequestQueryParams

func (PaymodesRequest) NewRequestBody

func (r PaymodesRequest) NewRequestBody() PaymodesRequestBody

func (*PaymodesRequest) NewResponseBody

func (r *PaymodesRequest) NewResponseBody() *PaymodesRequestResponseBody

func (*PaymodesRequest) PathParams

func (r *PaymodesRequest) PathParams() *PaymodesRequestPathParams

func (*PaymodesRequest) PathParamsInterface

func (r *PaymodesRequest) PathParamsInterface() PathParams

func (*PaymodesRequest) QueryParams

func (r *PaymodesRequest) QueryParams() *PaymodesRequestQueryParams

func (*PaymodesRequest) RequestBody

func (r *PaymodesRequest) RequestBody() *PaymodesRequestBody

func (*PaymodesRequest) RequestBodyInterface

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

func (*PaymodesRequest) SetMethod

func (r *PaymodesRequest) SetMethod(method string)

func (*PaymodesRequest) SetRequestBody

func (r *PaymodesRequest) SetRequestBody(body PaymodesRequestBody)

func (*PaymodesRequest) URL

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

type PaymodesRequestBody

type PaymodesRequestBody struct {
}

type PaymodesRequestPathParams

type PaymodesRequestPathParams struct{}

func (*PaymodesRequestPathParams) Params

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

type PaymodesRequestQueryParams

type PaymodesRequestQueryParams struct {
}

func (PaymodesRequestQueryParams) ToURLValues

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

type PaymodesRequestResponseBody

type PaymodesRequestResponseBody DxPaymodes

type Price

type Price struct {
	Type         string  `json:"$type"`
	SeqNr        int     `json:"seqNr"`
	Price        float64 `json:"price"`
	PriceCodeKey string  `json:"PriceCodeKey"`
	Key          string  `json:"key"`
}

type Prices

type Prices []Price

type ProductGroupsRequest

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

func (*ProductGroupsRequest) Do

func (*ProductGroupsRequest) Method

func (r *ProductGroupsRequest) Method() string

func (ProductGroupsRequest) NewPathParams

func (ProductGroupsRequest) NewQueryParams

func (ProductGroupsRequest) NewRequestBody

func (*ProductGroupsRequest) NewResponseBody

func (*ProductGroupsRequest) PathParams

func (*ProductGroupsRequest) PathParamsInterface

func (r *ProductGroupsRequest) PathParamsInterface() PathParams

func (*ProductGroupsRequest) QueryParams

func (*ProductGroupsRequest) RequestBody

func (*ProductGroupsRequest) RequestBodyInterface

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

func (*ProductGroupsRequest) SetMethod

func (r *ProductGroupsRequest) SetMethod(method string)

func (*ProductGroupsRequest) SetRequestBody

func (r *ProductGroupsRequest) SetRequestBody(body ProductGroupsRequestBody)

func (*ProductGroupsRequest) URL

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

type ProductGroupsRequestBody

type ProductGroupsRequestBody struct {
}

type ProductGroupsRequestPathParams

type ProductGroupsRequestPathParams struct{}

func (*ProductGroupsRequestPathParams) Params

type ProductGroupsRequestQueryParams

type ProductGroupsRequestQueryParams struct {
}

func (ProductGroupsRequestQueryParams) ToURLValues

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

type ProductGroupsRequestResponseBody

type ProductGroupsRequestResponseBody DxProdGroups

type ProductsRequest

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

func (*ProductsRequest) Do

func (*ProductsRequest) Method

func (r *ProductsRequest) Method() string

func (ProductsRequest) NewPathParams

func (r ProductsRequest) NewPathParams() *ProductsRequestPathParams

func (ProductsRequest) NewQueryParams

func (r ProductsRequest) NewQueryParams() *ProductsRequestQueryParams

func (ProductsRequest) NewRequestBody

func (r ProductsRequest) NewRequestBody() ProductsRequestBody

func (*ProductsRequest) NewResponseBody

func (r *ProductsRequest) NewResponseBody() *ProductsRequestResponseBody

func (*ProductsRequest) PathParams

func (r *ProductsRequest) PathParams() *ProductsRequestPathParams

func (*ProductsRequest) PathParamsInterface

func (r *ProductsRequest) PathParamsInterface() PathParams

func (*ProductsRequest) QueryParams

func (r *ProductsRequest) QueryParams() *ProductsRequestQueryParams

func (*ProductsRequest) RequestBody

func (r *ProductsRequest) RequestBody() *ProductsRequestBody

func (*ProductsRequest) RequestBodyInterface

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

func (*ProductsRequest) SetMethod

func (r *ProductsRequest) SetMethod(method string)

func (*ProductsRequest) SetRequestBody

func (r *ProductsRequest) SetRequestBody(body ProductsRequestBody)

func (*ProductsRequest) URL

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

type ProductsRequestBody

type ProductsRequestBody struct {
}

type ProductsRequestPathParams

type ProductsRequestPathParams struct {
}

func (*ProductsRequestPathParams) Params

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

type ProductsRequestQueryParams

type ProductsRequestQueryParams struct {
}

func (ProductsRequestQueryParams) ToURLValues

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

type ProductsRequestResponseBody

type ProductsRequestResponseBody DxProducts

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 Ticket

type Ticket struct {
	Type          string  `json:"$type"`
	ActualDate    Date    `json:"ActualDate"`
	CenterKey     string  `json:"CenterKey"`
	CenterLeftNr  int     `json:"CenterLeftNr"`
	CenterName    string  `json:"CenterName"`
	CenterNr      string  `json:"CenterNr"`
	CenterRightNr int     `json:"CenterRightNr"`
	Date          Date    `json:"Date,omitempty"`
	Key           string  `json:"Key"`
	AccountKey    string  `json:"AccountKey"`
	AccountName   string  `json:"AccountName"`
	AccountNr     string  `json:"AccountNr"`
	Orders        Orders  `json:"Orders"`
	PcName        string  `json:"PcName"`
	PcNr          int     `json:"PcNr"`
	PrepStatus    string  `json:"PrepStatus"`
	TableName     string  `json:"TableName"`
	TicketNr      int     `json:"TicketNr,omitempty"`
	Time          string  `json:"Time"`
	TotalPrice    float64 `json:"TotalPrice"`
	TotalToPay    float64 `json:"TotalToPay"`
	UserID        string  `json:"UserId"`
	UserKey       string  `json:"UserKey"`
	UserName      string  `json:"UserName"`
	ZNumber       int     `json:"ZNumber,omitempty"`
	Covers        int     `json:"Covers,omitempty"`
	TableNr       int     `json:"TableNr,omitempty"`
}

type Tickets

type Tickets []Ticket

type TicketsRequest

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

func (*TicketsRequest) Do

func (*TicketsRequest) Method

func (r *TicketsRequest) Method() string

func (TicketsRequest) NewPathParams

func (r TicketsRequest) NewPathParams() *TicketsRequestPathParams

func (TicketsRequest) NewQueryParams

func (r TicketsRequest) NewQueryParams() *TicketsRequestQueryParams

func (TicketsRequest) NewRequestBody

func (r TicketsRequest) NewRequestBody() TicketsRequestBody

func (*TicketsRequest) NewResponseBody

func (r *TicketsRequest) NewResponseBody() *TicketsRequestResponseBody

func (*TicketsRequest) PathParams

func (r *TicketsRequest) PathParams() *TicketsRequestPathParams

func (*TicketsRequest) PathParamsInterface

func (r *TicketsRequest) PathParamsInterface() PathParams

func (*TicketsRequest) QueryParams

func (r *TicketsRequest) QueryParams() *TicketsRequestQueryParams

func (*TicketsRequest) RequestBody

func (r *TicketsRequest) RequestBody() *TicketsRequestBody

func (*TicketsRequest) RequestBodyInterface

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

func (*TicketsRequest) SetMethod

func (r *TicketsRequest) SetMethod(method string)

func (*TicketsRequest) SetRequestBody

func (r *TicketsRequest) SetRequestBody(body TicketsRequestBody)

func (*TicketsRequest) URL

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

type TicketsRequestBody

type TicketsRequestBody struct {
}

type TicketsRequestPathParams

type TicketsRequestPathParams struct {
	Date Date
}

func (*TicketsRequestPathParams) Params

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

type TicketsRequestQueryParams

type TicketsRequestQueryParams struct {
	IncOpen     bool `schema:"incOpen"`
	IncInternal bool `schema:"incInternal"`
	IncTraining bool `schema:"incTraining"`
}

func (TicketsRequestQueryParams) ToURLValues

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

type TicketsRequestResponseBody

type TicketsRequestResponseBody Tickets

type VATCode

type VATCode struct {
	Type     string `json:"$type"`
	Code     int    `json:"Code"`
	Default  bool   `json:"Default"`
	Default2 bool   `json:"Default2"`
	Key      string `json:"Key"`
	Name     string `json:"Name"`
	Vats     DxVATs `json:"Vats"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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