Documentation ¶
Index ¶
- Variables
- func CheckResponse(r *http.Response) error
- type AccountInfo
- type AccountInfoRequest
- func (r *AccountInfoRequest) Do() (AccountInfoRequestResponseBody, error)
- func (r *AccountInfoRequest) Method() string
- func (r AccountInfoRequest) NewPathParams() *AccountInfoRequestPathParams
- func (r AccountInfoRequest) NewQueryParams() *AccountInfoRequestQueryParams
- func (r AccountInfoRequest) NewRequestBody() AccountInfoRequestBody
- func (r *AccountInfoRequest) NewResponseBody() *AccountInfoRequestResponseBody
- func (r *AccountInfoRequest) PathParams() *AccountInfoRequestPathParams
- func (r *AccountInfoRequest) PathParamsInterface() PathParams
- func (r *AccountInfoRequest) QueryParams() *AccountInfoRequestQueryParams
- func (r *AccountInfoRequest) RequestBody() *AccountInfoRequestBody
- func (r *AccountInfoRequest) RequestBodyInterface() interface{}
- func (r *AccountInfoRequest) SetMethod(method string)
- func (r *AccountInfoRequest) SetRequestBody(body AccountInfoRequestBody)
- func (r *AccountInfoRequest) URL() *url.URL
- type AccountInfoRequestBody
- type AccountInfoRequestPathParams
- type AccountInfoRequestQueryParams
- type AccountInfoRequestResponseBody
- type BeforeRequestDoCallback
- type Client
- func (c Client) AppID() string
- func (c Client) BaseURL() url.URL
- func (c Client) Charset() string
- func (c Client) Debug() bool
- func (c *Client) Do(req *http.Request, body interface{}) (*http.Response, error)
- func (c Client) Environment() string
- func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
- func (c Client) MediaType() string
- func (c *Client) NewAccountInfoRequest() AccountInfoRequest
- func (c *Client) NewPaymodeGroupsRequest() PaymodeGroupsRequest
- func (c *Client) NewPaymodesRequest() PaymodesRequest
- func (c *Client) NewProductGroupsRequest() ProductGroupsRequest
- func (c *Client) NewProductsRequest() ProductsRequest
- func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)
- func (c *Client) NewTicketsRequest() TicketsRequest
- func (c Client) ServiceID() string
- func (c Client) ServiceKey() string
- func (c *Client) SetAppID(appID string)
- func (c *Client) SetBaseURL(baseURL url.URL)
- func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
- func (c *Client) SetCharset(charset string)
- func (c *Client) SetDebug(debug bool)
- func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)
- func (c *Client) SetEnvironment(environment string)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) SetMediaType(mediaType string)
- func (c *Client) SetServiceID(serviceID string)
- func (c *Client) SetServiceKey(serviceKey string)
- func (c *Client) SetSubscriptionKey(subscriptionKey string)
- func (c *Client) SetUserAgent(userAgent string)
- func (c Client) SubscriptionKey() string
- func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error
- func (c Client) UserAgent() string
- type Color
- type ColorKey
- type Date
- type DateTime
- type DxPaymode
- type DxPaymodes
- type DxProdGroup
- type DxProdGroups
- type DxProduct
- type DxProducts
- type DxVAT
- type DxVATs
- type ErrorResponse
- type KDSColorKey
- type Order
- type OrderLine
- type OrderLines
- type Orders
- type PathParams
- type Payment
- type Payments
- type Paymode
- type PaymodeGroup
- type PaymodeGroups
- type PaymodeGroupsRequest
- func (r *PaymodeGroupsRequest) Do() (PaymodeGroupsRequestResponseBody, error)
- func (r *PaymodeGroupsRequest) Method() string
- func (r PaymodeGroupsRequest) NewPathParams() *PaymodeGroupsRequestPathParams
- func (r PaymodeGroupsRequest) NewQueryParams() *PaymodeGroupsRequestQueryParams
- func (r PaymodeGroupsRequest) NewRequestBody() PaymodeGroupsRequestBody
- func (r *PaymodeGroupsRequest) NewResponseBody() *PaymodeGroupsRequestResponseBody
- func (r *PaymodeGroupsRequest) PathParams() *PaymodeGroupsRequestPathParams
- func (r *PaymodeGroupsRequest) PathParamsInterface() PathParams
- func (r *PaymodeGroupsRequest) QueryParams() *PaymodeGroupsRequestQueryParams
- func (r *PaymodeGroupsRequest) RequestBody() *PaymodeGroupsRequestBody
- func (r *PaymodeGroupsRequest) RequestBodyInterface() interface{}
- func (r *PaymodeGroupsRequest) SetMethod(method string)
- func (r *PaymodeGroupsRequest) SetRequestBody(body PaymodeGroupsRequestBody)
- func (r *PaymodeGroupsRequest) URL() *url.URL
- type PaymodeGroupsRequestBody
- type PaymodeGroupsRequestPathParams
- type PaymodeGroupsRequestQueryParams
- type PaymodeGroupsRequestResponseBody
- type Paymodes
- type PaymodesRequest
- func (r *PaymodesRequest) Do() (PaymodesRequestResponseBody, error)
- func (r *PaymodesRequest) Method() string
- func (r PaymodesRequest) NewPathParams() *PaymodesRequestPathParams
- func (r PaymodesRequest) NewQueryParams() *PaymodesRequestQueryParams
- func (r PaymodesRequest) NewRequestBody() PaymodesRequestBody
- func (r *PaymodesRequest) NewResponseBody() *PaymodesRequestResponseBody
- func (r *PaymodesRequest) PathParams() *PaymodesRequestPathParams
- func (r *PaymodesRequest) PathParamsInterface() PathParams
- func (r *PaymodesRequest) QueryParams() *PaymodesRequestQueryParams
- func (r *PaymodesRequest) RequestBody() *PaymodesRequestBody
- func (r *PaymodesRequest) RequestBodyInterface() interface{}
- func (r *PaymodesRequest) SetMethod(method string)
- func (r *PaymodesRequest) SetRequestBody(body PaymodesRequestBody)
- func (r *PaymodesRequest) URL() *url.URL
- type PaymodesRequestBody
- type PaymodesRequestPathParams
- type PaymodesRequestQueryParams
- type PaymodesRequestResponseBody
- type Price
- type Prices
- type ProductGroupsRequest
- func (r *ProductGroupsRequest) Do() (ProductGroupsRequestResponseBody, error)
- func (r *ProductGroupsRequest) Method() string
- func (r ProductGroupsRequest) NewPathParams() *ProductGroupsRequestPathParams
- func (r ProductGroupsRequest) NewQueryParams() *ProductGroupsRequestQueryParams
- func (r ProductGroupsRequest) NewRequestBody() ProductGroupsRequestBody
- func (r *ProductGroupsRequest) NewResponseBody() *ProductGroupsRequestResponseBody
- func (r *ProductGroupsRequest) PathParams() *ProductGroupsRequestPathParams
- func (r *ProductGroupsRequest) PathParamsInterface() PathParams
- func (r *ProductGroupsRequest) QueryParams() *ProductGroupsRequestQueryParams
- func (r *ProductGroupsRequest) RequestBody() *ProductGroupsRequestBody
- func (r *ProductGroupsRequest) RequestBodyInterface() interface{}
- func (r *ProductGroupsRequest) SetMethod(method string)
- func (r *ProductGroupsRequest) SetRequestBody(body ProductGroupsRequestBody)
- func (r *ProductGroupsRequest) URL() *url.URL
- type ProductGroupsRequestBody
- type ProductGroupsRequestPathParams
- type ProductGroupsRequestQueryParams
- type ProductGroupsRequestResponseBody
- type ProductsRequest
- func (r *ProductsRequest) Do() (ProductsRequestResponseBody, error)
- func (r *ProductsRequest) Method() string
- func (r ProductsRequest) NewPathParams() *ProductsRequestPathParams
- func (r ProductsRequest) NewQueryParams() *ProductsRequestQueryParams
- func (r ProductsRequest) NewRequestBody() ProductsRequestBody
- func (r *ProductsRequest) NewResponseBody() *ProductsRequestResponseBody
- func (r *ProductsRequest) PathParams() *ProductsRequestPathParams
- func (r *ProductsRequest) PathParamsInterface() PathParams
- func (r *ProductsRequest) QueryParams() *ProductsRequestQueryParams
- func (r *ProductsRequest) RequestBody() *ProductsRequestBody
- func (r *ProductsRequest) RequestBodyInterface() interface{}
- func (r *ProductsRequest) SetMethod(method string)
- func (r *ProductsRequest) SetRequestBody(body ProductsRequestBody)
- func (r *ProductsRequest) URL() *url.URL
- type ProductsRequestBody
- type ProductsRequestPathParams
- type ProductsRequestQueryParams
- type ProductsRequestResponseBody
- type QueryParams
- type Request
- type RequestCompletionCallback
- type Ticket
- type Tickets
- type TicketsRequest
- func (r *TicketsRequest) Do() (TicketsRequestResponseBody, error)
- func (r *TicketsRequest) Method() string
- func (r TicketsRequest) NewPathParams() *TicketsRequestPathParams
- func (r TicketsRequest) NewQueryParams() *TicketsRequestQueryParams
- func (r TicketsRequest) NewRequestBody() TicketsRequestBody
- func (r *TicketsRequest) NewResponseBody() *TicketsRequestResponseBody
- func (r *TicketsRequest) PathParams() *TicketsRequestPathParams
- func (r *TicketsRequest) PathParamsInterface() PathParams
- func (r *TicketsRequest) QueryParams() *TicketsRequestQueryParams
- func (r *TicketsRequest) RequestBody() *TicketsRequestBody
- func (r *TicketsRequest) RequestBodyInterface() interface{}
- func (r *TicketsRequest) SetMethod(method string)
- func (r *TicketsRequest) SetRequestBody(body TicketsRequestBody)
- func (r *TicketsRequest) URL() *url.URL
- type TicketsRequestBody
- type TicketsRequestPathParams
- type TicketsRequestQueryParams
- type TicketsRequestResponseBody
- type VATCode
Constants ¶
This section is empty.
Variables ¶
var (
BaseURL = url.URL{
Scheme: "https",
Host: "{{.service_id}}.trivecgateway.com",
Path: "",
}
)
Functions ¶
func CheckResponse ¶
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 (r *AccountInfoRequest) Do() (AccountInfoRequestResponseBody, error)
func (*AccountInfoRequest) Method ¶
func (r *AccountInfoRequest) Method() string
func (AccountInfoRequest) NewPathParams ¶
func (r AccountInfoRequest) NewPathParams() *AccountInfoRequestPathParams
func (AccountInfoRequest) NewQueryParams ¶
func (r AccountInfoRequest) NewQueryParams() *AccountInfoRequestQueryParams
func (AccountInfoRequest) NewRequestBody ¶
func (r AccountInfoRequest) NewRequestBody() AccountInfoRequestBody
func (*AccountInfoRequest) NewResponseBody ¶
func (r *AccountInfoRequest) NewResponseBody() *AccountInfoRequestResponseBody
func (*AccountInfoRequest) PathParams ¶
func (r *AccountInfoRequest) PathParams() *AccountInfoRequestPathParams
func (*AccountInfoRequest) PathParamsInterface ¶
func (r *AccountInfoRequest) PathParamsInterface() PathParams
func (*AccountInfoRequest) QueryParams ¶
func (r *AccountInfoRequest) QueryParams() *AccountInfoRequestQueryParams
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 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) Do ¶
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 (*Client) GetEndpointURL ¶
func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
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 (*Client) NewTicketsRequest ¶
func (c *Client) NewTicketsRequest() TicketsRequest
func (Client) ServiceKey ¶
func (*Client) SetBaseURL ¶
func (*Client) SetBeforeRequestDo ¶
func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
func (*Client) SetCharset ¶
func (*Client) SetDisallowUnknownFields ¶
func (*Client) SetEnvironment ¶
func (*Client) SetHTTPClient ¶
func (*Client) SetMediaType ¶
func (*Client) SetServiceID ¶
func (*Client) SetServiceKey ¶
func (*Client) SetSubscriptionKey ¶
func (*Client) SetUserAgent ¶
func (Client) SubscriptionKey ¶
type DateTime ¶
func (DateTime) MarshalSchema ¶
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"` 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 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 PathParams ¶
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 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 PaymodeGroups ¶
type PaymodeGroups []PaymodeGroup
type PaymodeGroupsRequest ¶
type PaymodeGroupsRequest struct {
// contains filtered or unexported fields
}
func (*PaymodeGroupsRequest) Do ¶
func (r *PaymodeGroupsRequest) Do() (PaymodeGroupsRequestResponseBody, error)
func (*PaymodeGroupsRequest) Method ¶
func (r *PaymodeGroupsRequest) Method() string
func (PaymodeGroupsRequest) NewPathParams ¶
func (r PaymodeGroupsRequest) NewPathParams() *PaymodeGroupsRequestPathParams
func (PaymodeGroupsRequest) NewQueryParams ¶
func (r PaymodeGroupsRequest) NewQueryParams() *PaymodeGroupsRequestQueryParams
func (PaymodeGroupsRequest) NewRequestBody ¶
func (r PaymodeGroupsRequest) NewRequestBody() PaymodeGroupsRequestBody
func (*PaymodeGroupsRequest) NewResponseBody ¶
func (r *PaymodeGroupsRequest) NewResponseBody() *PaymodeGroupsRequestResponseBody
func (*PaymodeGroupsRequest) PathParams ¶
func (r *PaymodeGroupsRequest) PathParams() *PaymodeGroupsRequestPathParams
func (*PaymodeGroupsRequest) PathParamsInterface ¶
func (r *PaymodeGroupsRequest) PathParamsInterface() PathParams
func (*PaymodeGroupsRequest) QueryParams ¶
func (r *PaymodeGroupsRequest) QueryParams() *PaymodeGroupsRequestQueryParams
func (*PaymodeGroupsRequest) RequestBody ¶
func (r *PaymodeGroupsRequest) RequestBody() *PaymodeGroupsRequestBody
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 ¶
func (p *PaymodeGroupsRequestPathParams) Params() map[string]string
type PaymodeGroupsRequestQueryParams ¶
type PaymodeGroupsRequestQueryParams struct { }
func (PaymodeGroupsRequestQueryParams) ToURLValues ¶
func (p PaymodeGroupsRequestQueryParams) ToURLValues() (url.Values, error)
type PaymodeGroupsRequestResponseBody ¶
type PaymodeGroupsRequestResponseBody PaymodeGroups
type PaymodesRequest ¶
type PaymodesRequest struct {
// contains filtered or unexported fields
}
func (*PaymodesRequest) Do ¶
func (r *PaymodesRequest) Do() (PaymodesRequestResponseBody, error)
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 ProductGroupsRequest ¶
type ProductGroupsRequest struct {
// contains filtered or unexported fields
}
func (*ProductGroupsRequest) Do ¶
func (r *ProductGroupsRequest) Do() (ProductGroupsRequestResponseBody, error)
func (*ProductGroupsRequest) Method ¶
func (r *ProductGroupsRequest) Method() string
func (ProductGroupsRequest) NewPathParams ¶
func (r ProductGroupsRequest) NewPathParams() *ProductGroupsRequestPathParams
func (ProductGroupsRequest) NewQueryParams ¶
func (r ProductGroupsRequest) NewQueryParams() *ProductGroupsRequestQueryParams
func (ProductGroupsRequest) NewRequestBody ¶
func (r ProductGroupsRequest) NewRequestBody() ProductGroupsRequestBody
func (*ProductGroupsRequest) NewResponseBody ¶
func (r *ProductGroupsRequest) NewResponseBody() *ProductGroupsRequestResponseBody
func (*ProductGroupsRequest) PathParams ¶
func (r *ProductGroupsRequest) PathParams() *ProductGroupsRequestPathParams
func (*ProductGroupsRequest) PathParamsInterface ¶
func (r *ProductGroupsRequest) PathParamsInterface() PathParams
func (*ProductGroupsRequest) QueryParams ¶
func (r *ProductGroupsRequest) QueryParams() *ProductGroupsRequestQueryParams
func (*ProductGroupsRequest) RequestBody ¶
func (r *ProductGroupsRequest) RequestBody() *ProductGroupsRequestBody
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 ¶
func (p *ProductGroupsRequestPathParams) Params() map[string]string
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 (r *ProductsRequest) Do() (ProductsRequestResponseBody, error)
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 Request ¶
type Request interface { Method() string // QueryParams() QueryParams PathParamsInterface() PathParams RequestBodyInterface() interface{} URL() *url.URL }
type RequestCompletionCallback ¶
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 TicketsRequest ¶
type TicketsRequest struct {
// contains filtered or unexported fields
}
func (*TicketsRequest) Do ¶
func (r *TicketsRequest) Do() (TicketsRequestResponseBody, error)
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