Documentation ¶
Index ¶
- Variables
- func CheckResponse(r *http.Response) error
- func CreateFormFile(w *multipart.Writer, data io.Reader, fieldname, filename string) (io.Writer, error)
- func GetFileContentType(file io.Reader) (string, error)
- type AlternativePaymentType
- type AlternativePaymentTypes
- type AlternativePaymentTypesGetRequest
- func (r *AlternativePaymentTypesGetRequest) All() (AlternativePaymentTypesGetResponseBody, error)
- func (r *AlternativePaymentTypesGetRequest) Do() (AlternativePaymentTypesGetResponseBody, error, *http.Response)
- func (r *AlternativePaymentTypesGetRequest) Method() string
- func (r AlternativePaymentTypesGetRequest) NewPathParams() *AlternativePaymentTypesGetRequestPathParams
- func (r AlternativePaymentTypesGetRequest) NewQueryParams() *AlternativePaymentTypesGetRequestQueryParams
- func (r AlternativePaymentTypesGetRequest) NewRequestBody() AlternativePaymentTypesGetRequestBody
- func (r *AlternativePaymentTypesGetRequest) NewResponseBody() *AlternativePaymentTypesGetResponseBody
- func (r *AlternativePaymentTypesGetRequest) PathParams() *AlternativePaymentTypesGetRequestPathParams
- func (r *AlternativePaymentTypesGetRequest) PathParamsInterface() PathParams
- func (r *AlternativePaymentTypesGetRequest) QueryParams() *AlternativePaymentTypesGetRequestQueryParams
- func (r *AlternativePaymentTypesGetRequest) RequestBody() *AlternativePaymentTypesGetRequestBody
- func (r *AlternativePaymentTypesGetRequest) RequestBodyInterface() interface{}
- func (r *AlternativePaymentTypesGetRequest) SetMethod(method string)
- func (r *AlternativePaymentTypesGetRequest) SetRequestBody(body AlternativePaymentTypesGetRequestBody)
- func (r *AlternativePaymentTypesGetRequest) URL() *url.URL
- type AlternativePaymentTypesGetRequestBody
- type AlternativePaymentTypesGetRequestPathParams
- type AlternativePaymentTypesGetRequestQueryParams
- type AlternativePaymentTypesGetResponseBody
- type AppliedTax
- type AppliedTaxes
- type BeforeRequestDoCallback
- type Client
- func (c Client) BaseURL() url.URL
- func (c Client) Charset() string
- func (c Client) ClientID() string
- func (c Client) ClientSecret() string
- func (c Client) Debug() bool
- func (c *Client) Do(req *http.Request, body interface{}) (*http.Response, error)
- func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
- func (c *Client) GetNextPage(resp *http.Response) (int, error)
- func (c *Client) GetNextURL(resp *http.Response) (string, error)
- func (c *Client) GetPageToken(resp *http.Response) (string, error)
- func (c *Client) InitToken(req *http.Request) error
- func (c Client) MediaType() string
- func (c *Client) NewAlternativePaymentTypesGetRequest() AlternativePaymentTypesGetRequest
- func (c *Client) NewDiningOptionsGetRequest() DiningOptionsGetRequest
- func (c *Client) NewDiscountsGetRequest() DiscountsGetRequest
- func (c *Client) NewFormRequest(ctx context.Context, method string, URL url.URL, form Form) (*http.Request, error)
- func (c *Client) NewLoginPostRequest() LoginPostRequest
- func (c *Client) NewMenuGroupsGetRequest() MenuGroupsGetRequest
- func (c *Client) NewMenuItemGetRequest() MenuItemGetRequest
- func (c *Client) NewMenuItemsGetRequest() MenuItemsGetRequest
- func (c *Client) NewOrdersBulkGetRequest() OrdersBulkGetRequest
- func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)
- func (c *Client) NewRestaurantGetRequest() RestaurantGetRequest
- func (c *Client) NewRevenueCentersGetRequest() RevenueCentersGetRequest
- func (c *Client) NewSalesCategoriesGetRequest() SalesCategoriesGetRequest
- func (c *Client) NewTaxRatesGetRequest() TaxRatesGetRequest
- func (c *Client) SetBaseURL(baseURL url.URL)
- func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
- func (c *Client) SetCharset(charset string)
- func (c *Client) SetClientID(clientID string)
- func (c *Client) SetClientSecret(clientSecret string)
- func (c *Client) SetDebug(debug bool)
- func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) SetMediaType(mediaType string)
- func (c *Client) SetToastRestaurantExternalID(toastRestaurantExternalID string)
- func (c *Client) SetUserAgent(userAgent string)
- func (c Client) ToastRestaurantExternalID() string
- func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error
- func (c Client) UserAgent() string
- type Date
- type DateTime
- type DiningOption
- type DiningOptions
- type DiningOptionsGetRequest
- func (r *DiningOptionsGetRequest) All() (DiningOptionsGetResponseBody, error)
- func (r *DiningOptionsGetRequest) Do() (DiningOptionsGetResponseBody, error, *http.Response)
- func (r *DiningOptionsGetRequest) Method() string
- func (r DiningOptionsGetRequest) NewPathParams() *DiningOptionsGetRequestPathParams
- func (r DiningOptionsGetRequest) NewQueryParams() *DiningOptionsGetRequestQueryParams
- func (r DiningOptionsGetRequest) NewRequestBody() DiningOptionsGetRequestBody
- func (r *DiningOptionsGetRequest) NewResponseBody() *DiningOptionsGetResponseBody
- func (r *DiningOptionsGetRequest) PathParams() *DiningOptionsGetRequestPathParams
- func (r *DiningOptionsGetRequest) PathParamsInterface() PathParams
- func (r *DiningOptionsGetRequest) QueryParams() *DiningOptionsGetRequestQueryParams
- func (r *DiningOptionsGetRequest) RequestBody() *DiningOptionsGetRequestBody
- func (r *DiningOptionsGetRequest) RequestBodyInterface() interface{}
- func (r *DiningOptionsGetRequest) SetMethod(method string)
- func (r *DiningOptionsGetRequest) SetRequestBody(body DiningOptionsGetRequestBody)
- func (r *DiningOptionsGetRequest) URL() *url.URL
- type DiningOptionsGetRequestBody
- type DiningOptionsGetRequestPathParams
- type DiningOptionsGetRequestQueryParams
- type DiningOptionsGetResponseBody
- type Discount
- type Discounts
- type DiscountsGetRequest
- func (r *DiscountsGetRequest) Do() (DiscountsGetResponseBody, error, *http.Response)
- func (r *DiscountsGetRequest) Method() string
- func (r DiscountsGetRequest) NewPathParams() *DiscountsGetRequestPathParams
- func (r DiscountsGetRequest) NewQueryParams() *DiscountsGetRequestQueryParams
- func (r DiscountsGetRequest) NewRequestBody() DiscountsGetRequestBody
- func (r *DiscountsGetRequest) NewResponseBody() *DiscountsGetResponseBody
- func (r *DiscountsGetRequest) PathParams() *DiscountsGetRequestPathParams
- func (r *DiscountsGetRequest) PathParamsInterface() PathParams
- func (r *DiscountsGetRequest) QueryParams() *DiscountsGetRequestQueryParams
- func (r *DiscountsGetRequest) RequestBody() *DiscountsGetRequestBody
- func (r *DiscountsGetRequest) RequestBodyInterface() interface{}
- func (r *DiscountsGetRequest) SetMethod(method string)
- func (r *DiscountsGetRequest) SetRequestBody(body DiscountsGetRequestBody)
- func (r *DiscountsGetRequest) URL() *url.URL
- type DiscountsGetRequestBody
- type DiscountsGetRequestPathParams
- type DiscountsGetRequestQueryParams
- type DiscountsGetResponseBody
- type ErrorResponse
- type Form
- type FormFile
- type LoginPostRequest
- func (r *LoginPostRequest) Do() (LoginPostResponseBody, error)
- func (r *LoginPostRequest) Method() string
- func (r LoginPostRequest) NewPathParams() *LoginPostRequestPathParams
- func (r LoginPostRequest) NewQueryParams() *LoginPostRequestQueryParams
- func (r LoginPostRequest) NewRequestBody() LoginPostRequestBody
- func (r *LoginPostRequest) NewResponseBody() *LoginPostResponseBody
- func (r *LoginPostRequest) PathParams() *LoginPostRequestPathParams
- func (r *LoginPostRequest) PathParamsInterface() PathParams
- func (r *LoginPostRequest) QueryParams() *LoginPostRequestQueryParams
- func (r *LoginPostRequest) RequestBody() *LoginPostRequestBody
- func (r *LoginPostRequest) RequestBodyInterface() interface{}
- func (r *LoginPostRequest) SetMethod(method string)
- func (r *LoginPostRequest) SetRequestBody(body LoginPostRequestBody)
- func (r *LoginPostRequest) URL() *url.URL
- type LoginPostRequestBody
- type LoginPostRequestPathParams
- type LoginPostRequestQueryParams
- type LoginPostResponseBody
- type MenuGroup
- type MenuGroups
- type MenuGroupsGetRequest
- func (r *MenuGroupsGetRequest) All() (MenuGroupsGetResponseBody, error)
- func (r *MenuGroupsGetRequest) Do() (MenuGroupsGetResponseBody, error, *http.Response)
- func (r *MenuGroupsGetRequest) Method() string
- func (r MenuGroupsGetRequest) NewPathParams() *MenuGroupsGetRequestPathParams
- func (r MenuGroupsGetRequest) NewQueryParams() *MenuGroupsGetRequestQueryParams
- func (r MenuGroupsGetRequest) NewRequestBody() MenuGroupsGetRequestBody
- func (r *MenuGroupsGetRequest) NewResponseBody() *MenuGroupsGetResponseBody
- func (r *MenuGroupsGetRequest) PathParams() *MenuGroupsGetRequestPathParams
- func (r *MenuGroupsGetRequest) PathParamsInterface() PathParams
- func (r *MenuGroupsGetRequest) QueryParams() *MenuGroupsGetRequestQueryParams
- func (r *MenuGroupsGetRequest) RequestBody() *MenuGroupsGetRequestBody
- func (r *MenuGroupsGetRequest) RequestBodyInterface() interface{}
- func (r *MenuGroupsGetRequest) SetMethod(method string)
- func (r *MenuGroupsGetRequest) SetRequestBody(body MenuGroupsGetRequestBody)
- func (r *MenuGroupsGetRequest) URL() *url.URL
- type MenuGroupsGetRequestBody
- type MenuGroupsGetRequestPathParams
- type MenuGroupsGetRequestQueryParams
- type MenuGroupsGetResponseBody
- type MenuItem
- type MenuItemGetRequest
- func (r *MenuItemGetRequest) Do() (MenuItemGetResponseBody, error, *http.Response)
- func (r *MenuItemGetRequest) Method() string
- func (r MenuItemGetRequest) NewPathParams() *MenuItemGetRequestPathParams
- func (r MenuItemGetRequest) NewQueryParams() *MenuItemGetRequestQueryParams
- func (r MenuItemGetRequest) NewRequestBody() MenuItemGetRequestBody
- func (r *MenuItemGetRequest) NewResponseBody() *MenuItemGetResponseBody
- func (r *MenuItemGetRequest) PathParams() *MenuItemGetRequestPathParams
- func (r *MenuItemGetRequest) PathParamsInterface() PathParams
- func (r *MenuItemGetRequest) QueryParams() *MenuItemGetRequestQueryParams
- func (r *MenuItemGetRequest) RequestBody() *MenuItemGetRequestBody
- func (r *MenuItemGetRequest) RequestBodyInterface() interface{}
- func (r *MenuItemGetRequest) SetMethod(method string)
- func (r *MenuItemGetRequest) SetRequestBody(body MenuItemGetRequestBody)
- func (r *MenuItemGetRequest) URL() *url.URL
- type MenuItemGetRequestBody
- type MenuItemGetRequestPathParams
- type MenuItemGetRequestQueryParams
- type MenuItemGetResponseBody
- type MenuItems
- type MenuItemsGetRequest
- func (r *MenuItemsGetRequest) All() (MenuItemsGetResponseBody, error)
- func (r *MenuItemsGetRequest) Do() (MenuItemsGetResponseBody, error, *http.Response)
- func (r *MenuItemsGetRequest) Method() string
- func (r MenuItemsGetRequest) NewPathParams() *MenuItemsGetRequestPathParams
- func (r MenuItemsGetRequest) NewQueryParams() *MenuItemsGetRequestQueryParams
- func (r MenuItemsGetRequest) NewRequestBody() MenuItemsGetRequestBody
- func (r *MenuItemsGetRequest) NewResponseBody() *MenuItemsGetResponseBody
- func (r *MenuItemsGetRequest) PathParams() *MenuItemsGetRequestPathParams
- func (r *MenuItemsGetRequest) PathParamsInterface() PathParams
- func (r *MenuItemsGetRequest) QueryParams() *MenuItemsGetRequestQueryParams
- func (r *MenuItemsGetRequest) RequestBody() *MenuItemsGetRequestBody
- func (r *MenuItemsGetRequest) RequestBodyInterface() interface{}
- func (r *MenuItemsGetRequest) SetMethod(method string)
- func (r *MenuItemsGetRequest) SetRequestBody(body MenuItemsGetRequestBody)
- func (r *MenuItemsGetRequest) URL() *url.URL
- type MenuItemsGetRequestBody
- type MenuItemsGetRequestPathParams
- type MenuItemsGetRequestQueryParams
- type MenuItemsGetResponseBody
- type Modifier
- type Modifiers
- type Number
- type Order
- type Orders
- type OrdersBulkGetRequest
- func (r *OrdersBulkGetRequest) All() (OrdersBulkGetResponseBody, error)
- func (r *OrdersBulkGetRequest) Do() (OrdersBulkGetResponseBody, error, *http.Response)
- func (r *OrdersBulkGetRequest) Method() string
- func (r OrdersBulkGetRequest) NewPathParams() *OrdersBulkGetRequestPathParams
- func (r OrdersBulkGetRequest) NewQueryParams() *OrdersBulkGetRequestQueryParams
- func (r OrdersBulkGetRequest) NewRequestBody() OrdersBulkGetRequestBody
- func (r *OrdersBulkGetRequest) NewResponseBody() *OrdersBulkGetResponseBody
- func (r *OrdersBulkGetRequest) PathParams() *OrdersBulkGetRequestPathParams
- func (r *OrdersBulkGetRequest) PathParamsInterface() PathParams
- func (r *OrdersBulkGetRequest) QueryParams() *OrdersBulkGetRequestQueryParams
- func (r *OrdersBulkGetRequest) RequestBody() *OrdersBulkGetRequestBody
- func (r *OrdersBulkGetRequest) RequestBodyInterface() interface{}
- func (r *OrdersBulkGetRequest) SetMethod(method string)
- func (r *OrdersBulkGetRequest) SetRequestBody(body OrdersBulkGetRequestBody)
- func (r *OrdersBulkGetRequest) URL() *url.URL
- type OrdersBulkGetRequestBody
- type OrdersBulkGetRequestPathParams
- type OrdersBulkGetRequestQueryParams
- type OrdersBulkGetResponseBody
- type PathParams
- type QueryParams
- type Request
- type RequestCompletionCallback
- type Restaurant
- type RestaurantGetRequest
- func (r *RestaurantGetRequest) Do() (RestaurantGetResponseBody, error, *http.Response)
- func (r *RestaurantGetRequest) Method() string
- func (r RestaurantGetRequest) NewPathParams() *RestaurantGetRequestPathParams
- func (r RestaurantGetRequest) NewQueryParams() *RestaurantGetRequestQueryParams
- func (r RestaurantGetRequest) NewRequestBody() RestaurantGetRequestBody
- func (r *RestaurantGetRequest) NewResponseBody() *RestaurantGetResponseBody
- func (r *RestaurantGetRequest) PathParams() *RestaurantGetRequestPathParams
- func (r *RestaurantGetRequest) PathParamsInterface() PathParams
- func (r *RestaurantGetRequest) QueryParams() *RestaurantGetRequestQueryParams
- func (r *RestaurantGetRequest) RequestBody() *RestaurantGetRequestBody
- func (r *RestaurantGetRequest) RequestBodyInterface() interface{}
- func (r *RestaurantGetRequest) SetMethod(method string)
- func (r *RestaurantGetRequest) SetRequestBody(body RestaurantGetRequestBody)
- func (r *RestaurantGetRequest) URL() *url.URL
- type RestaurantGetRequestBody
- type RestaurantGetRequestPathParams
- type RestaurantGetRequestQueryParams
- type RestaurantGetResponseBody
- type RevenueCenter
- type RevenueCenters
- type RevenueCentersGetRequest
- func (r *RevenueCentersGetRequest) All() (RevenueCentersGetResponseBody, error)
- func (r *RevenueCentersGetRequest) Do() (RevenueCentersGetResponseBody, error, *http.Response)
- func (r *RevenueCentersGetRequest) Method() string
- func (r RevenueCentersGetRequest) NewPathParams() *RevenueCentersGetRequestPathParams
- func (r RevenueCentersGetRequest) NewQueryParams() *RevenueCentersGetRequestQueryParams
- func (r RevenueCentersGetRequest) NewRequestBody() RevenueCentersGetRequestBody
- func (r *RevenueCentersGetRequest) NewResponseBody() *RevenueCentersGetResponseBody
- func (r *RevenueCentersGetRequest) PathParams() *RevenueCentersGetRequestPathParams
- func (r *RevenueCentersGetRequest) PathParamsInterface() PathParams
- func (r *RevenueCentersGetRequest) QueryParams() *RevenueCentersGetRequestQueryParams
- func (r *RevenueCentersGetRequest) RequestBody() *RevenueCentersGetRequestBody
- func (r *RevenueCentersGetRequest) RequestBodyInterface() interface{}
- func (r *RevenueCentersGetRequest) SetMethod(method string)
- func (r *RevenueCentersGetRequest) SetRequestBody(body RevenueCentersGetRequestBody)
- func (r *RevenueCentersGetRequest) URL() *url.URL
- type RevenueCentersGetRequestBody
- type RevenueCentersGetRequestPathParams
- type RevenueCentersGetRequestQueryParams
- type RevenueCentersGetResponseBody
- type SalesCategories
- type SalesCategoriesGetRequest
- func (r *SalesCategoriesGetRequest) All() (SalesCategoriesGetResponseBody, error)
- func (r *SalesCategoriesGetRequest) Do() (SalesCategoriesGetResponseBody, error, *http.Response)
- func (r *SalesCategoriesGetRequest) Method() string
- func (r SalesCategoriesGetRequest) NewPathParams() *SalesCategoriesGetRequestPathParams
- func (r SalesCategoriesGetRequest) NewQueryParams() *SalesCategoriesGetRequestQueryParams
- func (r SalesCategoriesGetRequest) NewRequestBody() SalesCategoriesGetRequestBody
- func (r *SalesCategoriesGetRequest) NewResponseBody() *SalesCategoriesGetResponseBody
- func (r *SalesCategoriesGetRequest) PathParams() *SalesCategoriesGetRequestPathParams
- func (r *SalesCategoriesGetRequest) PathParamsInterface() PathParams
- func (r *SalesCategoriesGetRequest) QueryParams() *SalesCategoriesGetRequestQueryParams
- func (r *SalesCategoriesGetRequest) RequestBody() *SalesCategoriesGetRequestBody
- func (r *SalesCategoriesGetRequest) RequestBodyInterface() interface{}
- func (r *SalesCategoriesGetRequest) SetMethod(method string)
- func (r *SalesCategoriesGetRequest) SetRequestBody(body SalesCategoriesGetRequestBody)
- func (r *SalesCategoriesGetRequest) URL() *url.URL
- type SalesCategoriesGetRequestBody
- type SalesCategoriesGetRequestPathParams
- type SalesCategoriesGetRequestQueryParams
- type SalesCategoriesGetResponseBody
- type SalesCategory
- type TaxRate
- type TaxRates
- type TaxRatesGetRequest
- func (r *TaxRatesGetRequest) All() (TaxRatesGetResponseBody, error)
- func (r *TaxRatesGetRequest) Do() (TaxRatesGetResponseBody, error, *http.Response)
- func (r *TaxRatesGetRequest) Method() string
- func (r TaxRatesGetRequest) NewPathParams() *TaxRatesGetRequestPathParams
- func (r TaxRatesGetRequest) NewQueryParams() *TaxRatesGetRequestQueryParams
- func (r TaxRatesGetRequest) NewRequestBody() TaxRatesGetRequestBody
- func (r *TaxRatesGetRequest) NewResponseBody() *TaxRatesGetResponseBody
- func (r *TaxRatesGetRequest) PathParams() *TaxRatesGetRequestPathParams
- func (r *TaxRatesGetRequest) PathParamsInterface() PathParams
- func (r *TaxRatesGetRequest) QueryParams() *TaxRatesGetRequestQueryParams
- func (r *TaxRatesGetRequest) RequestBody() *TaxRatesGetRequestBody
- func (r *TaxRatesGetRequest) RequestBodyInterface() interface{}
- func (r *TaxRatesGetRequest) SetMethod(method string)
- func (r *TaxRatesGetRequest) SetRequestBody(body TaxRatesGetRequestBody)
- func (r *TaxRatesGetRequest) URL() *url.URL
- type TaxRatesGetRequestBody
- type TaxRatesGetRequestPathParams
- type TaxRatesGetRequestQueryParams
- type TaxRatesGetResponseBody
- type Token
Constants ¶
This section is empty.
Variables ¶
var (
BaseURL = url.URL{
Scheme: "https",
Host: "ws-api.toasttab.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.
func CreateFormFile ¶
Types ¶
type AlternativePaymentType ¶
type AlternativePaymentTypes ¶
type AlternativePaymentTypes []AlternativePaymentType
type AlternativePaymentTypesGetRequest ¶
type AlternativePaymentTypesGetRequest struct {
// contains filtered or unexported fields
}
func (*AlternativePaymentTypesGetRequest) All ¶
func (r *AlternativePaymentTypesGetRequest) All() (AlternativePaymentTypesGetResponseBody, error)
func (*AlternativePaymentTypesGetRequest) Do ¶
func (r *AlternativePaymentTypesGetRequest) Do() (AlternativePaymentTypesGetResponseBody, error, *http.Response)
func (*AlternativePaymentTypesGetRequest) Method ¶
func (r *AlternativePaymentTypesGetRequest) Method() string
func (AlternativePaymentTypesGetRequest) NewPathParams ¶
func (r AlternativePaymentTypesGetRequest) NewPathParams() *AlternativePaymentTypesGetRequestPathParams
func (AlternativePaymentTypesGetRequest) NewQueryParams ¶
func (r AlternativePaymentTypesGetRequest) NewQueryParams() *AlternativePaymentTypesGetRequestQueryParams
func (AlternativePaymentTypesGetRequest) NewRequestBody ¶
func (r AlternativePaymentTypesGetRequest) NewRequestBody() AlternativePaymentTypesGetRequestBody
func (*AlternativePaymentTypesGetRequest) NewResponseBody ¶
func (r *AlternativePaymentTypesGetRequest) NewResponseBody() *AlternativePaymentTypesGetResponseBody
func (*AlternativePaymentTypesGetRequest) PathParams ¶
func (r *AlternativePaymentTypesGetRequest) PathParams() *AlternativePaymentTypesGetRequestPathParams
func (*AlternativePaymentTypesGetRequest) PathParamsInterface ¶
func (r *AlternativePaymentTypesGetRequest) PathParamsInterface() PathParams
func (*AlternativePaymentTypesGetRequest) QueryParams ¶
func (r *AlternativePaymentTypesGetRequest) QueryParams() *AlternativePaymentTypesGetRequestQueryParams
func (*AlternativePaymentTypesGetRequest) RequestBody ¶
func (r *AlternativePaymentTypesGetRequest) RequestBody() *AlternativePaymentTypesGetRequestBody
func (*AlternativePaymentTypesGetRequest) RequestBodyInterface ¶
func (r *AlternativePaymentTypesGetRequest) RequestBodyInterface() interface{}
func (*AlternativePaymentTypesGetRequest) SetMethod ¶
func (r *AlternativePaymentTypesGetRequest) SetMethod(method string)
func (*AlternativePaymentTypesGetRequest) SetRequestBody ¶
func (r *AlternativePaymentTypesGetRequest) SetRequestBody(body AlternativePaymentTypesGetRequestBody)
func (*AlternativePaymentTypesGetRequest) URL ¶
func (r *AlternativePaymentTypesGetRequest) URL() *url.URL
type AlternativePaymentTypesGetRequestBody ¶
type AlternativePaymentTypesGetRequestBody struct { }
type AlternativePaymentTypesGetRequestPathParams ¶
type AlternativePaymentTypesGetRequestPathParams struct { }
func (*AlternativePaymentTypesGetRequestPathParams) Params ¶
func (p *AlternativePaymentTypesGetRequestPathParams) Params() map[string]string
type AlternativePaymentTypesGetRequestQueryParams ¶
type AlternativePaymentTypesGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (AlternativePaymentTypesGetRequestQueryParams) ToURLValues ¶
func (p AlternativePaymentTypesGetRequestQueryParams) ToURLValues() (url.Values, error)
type AlternativePaymentTypesGetResponseBody ¶
type AlternativePaymentTypesGetResponseBody AlternativePaymentTypes
type AppliedTax ¶
type AppliedTax struct { GUID string `json:"guid"` EntityType string `json:"entityType"` TaxRate struct { GUID string `json:"guid"` EntityType string `json:"entityType"` } `json:"taxRate"` Rate float64 `json:"rate"` Name string `json:"name"` TaxAmount float64 `json:"taxAmount"` Type string `json:"type"` FacilitatorCollectAndRemitTax bool `json:"facilitatorCollectAndRemitTax"` }
type AppliedTaxes ¶
type AppliedTaxes []AppliedTax
type BeforeRequestDoCallback ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with Exact Globe Client
func (Client) ClientSecret ¶
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) GetEndpointURL ¶
func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
func (*Client) NewAlternativePaymentTypesGetRequest ¶
func (c *Client) NewAlternativePaymentTypesGetRequest() AlternativePaymentTypesGetRequest
func (*Client) NewDiningOptionsGetRequest ¶
func (c *Client) NewDiningOptionsGetRequest() DiningOptionsGetRequest
func (*Client) NewDiscountsGetRequest ¶
func (c *Client) NewDiscountsGetRequest() DiscountsGetRequest
func (*Client) NewFormRequest ¶
func (*Client) NewLoginPostRequest ¶
func (c *Client) NewLoginPostRequest() LoginPostRequest
func (*Client) NewMenuGroupsGetRequest ¶
func (c *Client) NewMenuGroupsGetRequest() MenuGroupsGetRequest
func (*Client) NewMenuItemGetRequest ¶
func (c *Client) NewMenuItemGetRequest() MenuItemGetRequest
func (*Client) NewMenuItemsGetRequest ¶
func (c *Client) NewMenuItemsGetRequest() MenuItemsGetRequest
func (*Client) NewOrdersBulkGetRequest ¶
func (c *Client) NewOrdersBulkGetRequest() OrdersBulkGetRequest
func (*Client) NewRequest ¶
func (*Client) NewRestaurantGetRequest ¶
func (c *Client) NewRestaurantGetRequest() RestaurantGetRequest
func (*Client) NewRevenueCentersGetRequest ¶
func (c *Client) NewRevenueCentersGetRequest() RevenueCentersGetRequest
func (*Client) NewSalesCategoriesGetRequest ¶
func (c *Client) NewSalesCategoriesGetRequest() SalesCategoriesGetRequest
func (*Client) NewTaxRatesGetRequest ¶
func (c *Client) NewTaxRatesGetRequest() TaxRatesGetRequest
func (*Client) SetBaseURL ¶
func (*Client) SetBeforeRequestDo ¶
func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
func (*Client) SetCharset ¶
func (*Client) SetClientID ¶
func (*Client) SetClientSecret ¶
func (*Client) SetDisallowUnknownFields ¶
func (*Client) SetHTTPClient ¶
func (*Client) SetMediaType ¶
func (*Client) SetToastRestaurantExternalID ¶
func (*Client) SetUserAgent ¶
func (Client) ToastRestaurantExternalID ¶
type DateTime ¶
func (*DateTime) MarshalJSON ¶
func (DateTime) MarshalSchema ¶
func (*DateTime) UnmarshalJSON ¶
type DiningOption ¶
type DiningOptions ¶
type DiningOptions []DiningOption
type DiningOptionsGetRequest ¶
type DiningOptionsGetRequest struct {
// contains filtered or unexported fields
}
func (*DiningOptionsGetRequest) All ¶
func (r *DiningOptionsGetRequest) All() (DiningOptionsGetResponseBody, error)
func (*DiningOptionsGetRequest) Do ¶
func (r *DiningOptionsGetRequest) Do() (DiningOptionsGetResponseBody, error, *http.Response)
func (*DiningOptionsGetRequest) Method ¶
func (r *DiningOptionsGetRequest) Method() string
func (DiningOptionsGetRequest) NewPathParams ¶
func (r DiningOptionsGetRequest) NewPathParams() *DiningOptionsGetRequestPathParams
func (DiningOptionsGetRequest) NewQueryParams ¶
func (r DiningOptionsGetRequest) NewQueryParams() *DiningOptionsGetRequestQueryParams
func (DiningOptionsGetRequest) NewRequestBody ¶
func (r DiningOptionsGetRequest) NewRequestBody() DiningOptionsGetRequestBody
func (*DiningOptionsGetRequest) NewResponseBody ¶
func (r *DiningOptionsGetRequest) NewResponseBody() *DiningOptionsGetResponseBody
func (*DiningOptionsGetRequest) PathParams ¶
func (r *DiningOptionsGetRequest) PathParams() *DiningOptionsGetRequestPathParams
func (*DiningOptionsGetRequest) PathParamsInterface ¶
func (r *DiningOptionsGetRequest) PathParamsInterface() PathParams
func (*DiningOptionsGetRequest) QueryParams ¶
func (r *DiningOptionsGetRequest) QueryParams() *DiningOptionsGetRequestQueryParams
func (*DiningOptionsGetRequest) RequestBody ¶
func (r *DiningOptionsGetRequest) RequestBody() *DiningOptionsGetRequestBody
func (*DiningOptionsGetRequest) RequestBodyInterface ¶
func (r *DiningOptionsGetRequest) RequestBodyInterface() interface{}
func (*DiningOptionsGetRequest) SetMethod ¶
func (r *DiningOptionsGetRequest) SetMethod(method string)
func (*DiningOptionsGetRequest) SetRequestBody ¶
func (r *DiningOptionsGetRequest) SetRequestBody(body DiningOptionsGetRequestBody)
func (*DiningOptionsGetRequest) URL ¶
func (r *DiningOptionsGetRequest) URL() *url.URL
type DiningOptionsGetRequestBody ¶
type DiningOptionsGetRequestBody struct { }
type DiningOptionsGetRequestPathParams ¶
type DiningOptionsGetRequestPathParams struct { }
func (*DiningOptionsGetRequestPathParams) Params ¶
func (p *DiningOptionsGetRequestPathParams) Params() map[string]string
type DiningOptionsGetRequestQueryParams ¶
type DiningOptionsGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (DiningOptionsGetRequestQueryParams) ToURLValues ¶
func (p DiningOptionsGetRequestQueryParams) ToURLValues() (url.Values, error)
type DiningOptionsGetResponseBody ¶
type DiningOptionsGetResponseBody DiningOptions
type Discount ¶
type Discount struct { GUID string `json:"guid"` EntityType string `json:"entityType"` Amount float64 `json:"amount"` SelectionType string `json:"selectionType"` NonExclusive bool `json:"nonExclusive"` Percentage float64 `json:"percentage"` Name string `json:"name"` Active bool `json:"active"` ItemPickingPriority string `json:"itemPickingPriority"` Type string `json:"type"` FixedTotal interface{} `json:"fixedTotal"` }
type DiscountsGetRequest ¶
type DiscountsGetRequest struct {
// contains filtered or unexported fields
}
func (*DiscountsGetRequest) Do ¶
func (r *DiscountsGetRequest) Do() (DiscountsGetResponseBody, error, *http.Response)
func (*DiscountsGetRequest) Method ¶
func (r *DiscountsGetRequest) Method() string
func (DiscountsGetRequest) NewPathParams ¶
func (r DiscountsGetRequest) NewPathParams() *DiscountsGetRequestPathParams
func (DiscountsGetRequest) NewQueryParams ¶
func (r DiscountsGetRequest) NewQueryParams() *DiscountsGetRequestQueryParams
func (DiscountsGetRequest) NewRequestBody ¶
func (r DiscountsGetRequest) NewRequestBody() DiscountsGetRequestBody
func (*DiscountsGetRequest) NewResponseBody ¶
func (r *DiscountsGetRequest) NewResponseBody() *DiscountsGetResponseBody
func (*DiscountsGetRequest) PathParams ¶
func (r *DiscountsGetRequest) PathParams() *DiscountsGetRequestPathParams
func (*DiscountsGetRequest) PathParamsInterface ¶
func (r *DiscountsGetRequest) PathParamsInterface() PathParams
func (*DiscountsGetRequest) QueryParams ¶
func (r *DiscountsGetRequest) QueryParams() *DiscountsGetRequestQueryParams
func (*DiscountsGetRequest) RequestBody ¶
func (r *DiscountsGetRequest) RequestBody() *DiscountsGetRequestBody
func (*DiscountsGetRequest) RequestBodyInterface ¶
func (r *DiscountsGetRequest) RequestBodyInterface() interface{}
func (*DiscountsGetRequest) SetMethod ¶
func (r *DiscountsGetRequest) SetMethod(method string)
func (*DiscountsGetRequest) SetRequestBody ¶
func (r *DiscountsGetRequest) SetRequestBody(body DiscountsGetRequestBody)
func (*DiscountsGetRequest) URL ¶
func (r *DiscountsGetRequest) URL() *url.URL
type DiscountsGetRequestBody ¶
type DiscountsGetRequestBody struct { }
type DiscountsGetRequestPathParams ¶
type DiscountsGetRequestPathParams struct { }
func (*DiscountsGetRequestPathParams) Params ¶
func (p *DiscountsGetRequestPathParams) Params() map[string]string
type DiscountsGetRequestQueryParams ¶
type DiscountsGetRequestQueryParams struct { StartDate DateTime `schema:"startDate,omitempty"` EndDate DateTime `schema:"endDate,omitempty"` PageSize int `schema:"pageSize,omitempty"` Page int `schema:"page,omitempty"` BusinessDate Date `schema:"businessDate,omitempty"` }
func (DiscountsGetRequestQueryParams) ToURLValues ¶
func (p DiscountsGetRequestQueryParams) ToURLValues() (url.Values, error)
type DiscountsGetResponseBody ¶
type DiscountsGetResponseBody Discounts
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response Status int `json:"status"` Code int `json:"code"` Message string `json:"message"` MessageKey string `json:"messageKey"` FieldName string `json:"fieldName"` Link string `json:"link"` RequestID string `json:"requestId"` DeveloperMessage string `json:"developerMessage"` Errors []string `json:"errors"` CanRetry interface{} `json:"canRetry"` }
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type LoginPostRequest ¶
type LoginPostRequest struct {
// contains filtered or unexported fields
}
func (*LoginPostRequest) Do ¶
func (r *LoginPostRequest) Do() (LoginPostResponseBody, error)
func (*LoginPostRequest) Method ¶
func (r *LoginPostRequest) Method() string
func (LoginPostRequest) NewPathParams ¶
func (r LoginPostRequest) NewPathParams() *LoginPostRequestPathParams
func (LoginPostRequest) NewQueryParams ¶
func (r LoginPostRequest) NewQueryParams() *LoginPostRequestQueryParams
func (LoginPostRequest) NewRequestBody ¶
func (r LoginPostRequest) NewRequestBody() LoginPostRequestBody
func (*LoginPostRequest) NewResponseBody ¶
func (r *LoginPostRequest) NewResponseBody() *LoginPostResponseBody
func (*LoginPostRequest) PathParams ¶
func (r *LoginPostRequest) PathParams() *LoginPostRequestPathParams
func (*LoginPostRequest) PathParamsInterface ¶
func (r *LoginPostRequest) PathParamsInterface() PathParams
func (*LoginPostRequest) QueryParams ¶
func (r *LoginPostRequest) QueryParams() *LoginPostRequestQueryParams
func (*LoginPostRequest) RequestBody ¶
func (r *LoginPostRequest) RequestBody() *LoginPostRequestBody
func (*LoginPostRequest) RequestBodyInterface ¶
func (r *LoginPostRequest) RequestBodyInterface() interface{}
func (*LoginPostRequest) SetMethod ¶
func (r *LoginPostRequest) SetMethod(method string)
func (*LoginPostRequest) SetRequestBody ¶
func (r *LoginPostRequest) SetRequestBody(body LoginPostRequestBody)
func (*LoginPostRequest) URL ¶
func (r *LoginPostRequest) URL() *url.URL
type LoginPostRequestBody ¶
type LoginPostRequestPathParams ¶
type LoginPostRequestPathParams struct { }
func (*LoginPostRequestPathParams) Params ¶
func (p *LoginPostRequestPathParams) Params() map[string]string
type LoginPostRequestQueryParams ¶
type LoginPostRequestQueryParams struct { }
func (LoginPostRequestQueryParams) ToURLValues ¶
func (p LoginPostRequestQueryParams) ToURLValues() (url.Values, error)
type LoginPostResponseBody ¶
type MenuGroup ¶
type MenuGroup struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` Parent interface{} `json:"parent"` Images []interface{} `json:"images"` Visibility string `json:"visibility"` UnitOfMeasure string `json:"unitOfMeasure"` OptionGroups []struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"optionGroups"` Menu struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"menu"` InheritUnitOfMeasure bool `json:"inheritUnitOfMeasure"` Subgroups []interface{} `json:"subgroups"` InheritOptionGroups bool `json:"inheritOptionGroups"` OrderableOnline string `json:"orderableOnline"` Name string `json:"name"` Items []struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"items"` }
type MenuGroups ¶
type MenuGroups []MenuGroup
type MenuGroupsGetRequest ¶
type MenuGroupsGetRequest struct {
// contains filtered or unexported fields
}
func (*MenuGroupsGetRequest) All ¶
func (r *MenuGroupsGetRequest) All() (MenuGroupsGetResponseBody, error)
func (*MenuGroupsGetRequest) Do ¶
func (r *MenuGroupsGetRequest) Do() (MenuGroupsGetResponseBody, error, *http.Response)
func (*MenuGroupsGetRequest) Method ¶
func (r *MenuGroupsGetRequest) Method() string
func (MenuGroupsGetRequest) NewPathParams ¶
func (r MenuGroupsGetRequest) NewPathParams() *MenuGroupsGetRequestPathParams
func (MenuGroupsGetRequest) NewQueryParams ¶
func (r MenuGroupsGetRequest) NewQueryParams() *MenuGroupsGetRequestQueryParams
func (MenuGroupsGetRequest) NewRequestBody ¶
func (r MenuGroupsGetRequest) NewRequestBody() MenuGroupsGetRequestBody
func (*MenuGroupsGetRequest) NewResponseBody ¶
func (r *MenuGroupsGetRequest) NewResponseBody() *MenuGroupsGetResponseBody
func (*MenuGroupsGetRequest) PathParams ¶
func (r *MenuGroupsGetRequest) PathParams() *MenuGroupsGetRequestPathParams
func (*MenuGroupsGetRequest) PathParamsInterface ¶
func (r *MenuGroupsGetRequest) PathParamsInterface() PathParams
func (*MenuGroupsGetRequest) QueryParams ¶
func (r *MenuGroupsGetRequest) QueryParams() *MenuGroupsGetRequestQueryParams
func (*MenuGroupsGetRequest) RequestBody ¶
func (r *MenuGroupsGetRequest) RequestBody() *MenuGroupsGetRequestBody
func (*MenuGroupsGetRequest) RequestBodyInterface ¶
func (r *MenuGroupsGetRequest) RequestBodyInterface() interface{}
func (*MenuGroupsGetRequest) SetMethod ¶
func (r *MenuGroupsGetRequest) SetMethod(method string)
func (*MenuGroupsGetRequest) SetRequestBody ¶
func (r *MenuGroupsGetRequest) SetRequestBody(body MenuGroupsGetRequestBody)
func (*MenuGroupsGetRequest) URL ¶
func (r *MenuGroupsGetRequest) URL() *url.URL
type MenuGroupsGetRequestBody ¶
type MenuGroupsGetRequestBody struct { }
type MenuGroupsGetRequestPathParams ¶
type MenuGroupsGetRequestPathParams struct { }
func (*MenuGroupsGetRequestPathParams) Params ¶
func (p *MenuGroupsGetRequestPathParams) Params() map[string]string
type MenuGroupsGetRequestQueryParams ¶
type MenuGroupsGetRequestQueryParams struct { StartDate DateTime `schema:"startDate,omitempty"` EndDate DateTime `schema:"endDate,omitempty"` PageSize int `schema:"pageSize,omitempty"` Page int `schema:"page,omitempty"` BusinessDate Date `schema:"businessDate,omitempty"` }
func (MenuGroupsGetRequestQueryParams) ToURLValues ¶
func (p MenuGroupsGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuGroupsGetResponseBody ¶
type MenuGroupsGetResponseBody MenuGroups
type MenuItem ¶
type MenuItem struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` Images []interface{} `json:"images"` Visibility string `json:"visibility"` UnitOfMeasure string `json:"unitOfMeasure"` OptionGroups []interface{} `json:"optionGroups"` Calories interface{} `json:"calories"` Type interface{} `json:"type"` InheritUnitOfMeasure bool `json:"inheritUnitOfMeasure"` InheritOptionGroups bool `json:"inheritOptionGroups"` OrderableOnline string `json:"orderableOnline"` Name string `json:"name"` Plu string `json:"plu"` Sku string `json:"sku"` }
type MenuItemGetRequest ¶
type MenuItemGetRequest struct {
// contains filtered or unexported fields
}
func (*MenuItemGetRequest) Do ¶
func (r *MenuItemGetRequest) Do() (MenuItemGetResponseBody, error, *http.Response)
func (*MenuItemGetRequest) Method ¶
func (r *MenuItemGetRequest) Method() string
func (MenuItemGetRequest) NewPathParams ¶
func (r MenuItemGetRequest) NewPathParams() *MenuItemGetRequestPathParams
func (MenuItemGetRequest) NewQueryParams ¶
func (r MenuItemGetRequest) NewQueryParams() *MenuItemGetRequestQueryParams
func (MenuItemGetRequest) NewRequestBody ¶
func (r MenuItemGetRequest) NewRequestBody() MenuItemGetRequestBody
func (*MenuItemGetRequest) NewResponseBody ¶
func (r *MenuItemGetRequest) NewResponseBody() *MenuItemGetResponseBody
func (*MenuItemGetRequest) PathParams ¶
func (r *MenuItemGetRequest) PathParams() *MenuItemGetRequestPathParams
func (*MenuItemGetRequest) PathParamsInterface ¶
func (r *MenuItemGetRequest) PathParamsInterface() PathParams
func (*MenuItemGetRequest) QueryParams ¶
func (r *MenuItemGetRequest) QueryParams() *MenuItemGetRequestQueryParams
func (*MenuItemGetRequest) RequestBody ¶
func (r *MenuItemGetRequest) RequestBody() *MenuItemGetRequestBody
func (*MenuItemGetRequest) RequestBodyInterface ¶
func (r *MenuItemGetRequest) RequestBodyInterface() interface{}
func (*MenuItemGetRequest) SetMethod ¶
func (r *MenuItemGetRequest) SetMethod(method string)
func (*MenuItemGetRequest) SetRequestBody ¶
func (r *MenuItemGetRequest) SetRequestBody(body MenuItemGetRequestBody)
func (*MenuItemGetRequest) URL ¶
func (r *MenuItemGetRequest) URL() *url.URL
type MenuItemGetRequestBody ¶
type MenuItemGetRequestBody struct { }
type MenuItemGetRequestPathParams ¶
type MenuItemGetRequestPathParams struct {
GUID string `schema:"guid"`
}
func (*MenuItemGetRequestPathParams) Params ¶
func (p *MenuItemGetRequestPathParams) Params() map[string]string
type MenuItemGetRequestQueryParams ¶
type MenuItemGetRequestQueryParams struct{}
func (MenuItemGetRequestQueryParams) ToURLValues ¶
func (p MenuItemGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuItemGetResponseBody ¶
type MenuItemGetResponseBody MenuItem
type MenuItemsGetRequest ¶
type MenuItemsGetRequest struct {
// contains filtered or unexported fields
}
func (*MenuItemsGetRequest) All ¶
func (r *MenuItemsGetRequest) All() (MenuItemsGetResponseBody, error)
func (*MenuItemsGetRequest) Do ¶
func (r *MenuItemsGetRequest) Do() (MenuItemsGetResponseBody, error, *http.Response)
func (*MenuItemsGetRequest) Method ¶
func (r *MenuItemsGetRequest) Method() string
func (MenuItemsGetRequest) NewPathParams ¶
func (r MenuItemsGetRequest) NewPathParams() *MenuItemsGetRequestPathParams
func (MenuItemsGetRequest) NewQueryParams ¶
func (r MenuItemsGetRequest) NewQueryParams() *MenuItemsGetRequestQueryParams
func (MenuItemsGetRequest) NewRequestBody ¶
func (r MenuItemsGetRequest) NewRequestBody() MenuItemsGetRequestBody
func (*MenuItemsGetRequest) NewResponseBody ¶
func (r *MenuItemsGetRequest) NewResponseBody() *MenuItemsGetResponseBody
func (*MenuItemsGetRequest) PathParams ¶
func (r *MenuItemsGetRequest) PathParams() *MenuItemsGetRequestPathParams
func (*MenuItemsGetRequest) PathParamsInterface ¶
func (r *MenuItemsGetRequest) PathParamsInterface() PathParams
func (*MenuItemsGetRequest) QueryParams ¶
func (r *MenuItemsGetRequest) QueryParams() *MenuItemsGetRequestQueryParams
func (*MenuItemsGetRequest) RequestBody ¶
func (r *MenuItemsGetRequest) RequestBody() *MenuItemsGetRequestBody
func (*MenuItemsGetRequest) RequestBodyInterface ¶
func (r *MenuItemsGetRequest) RequestBodyInterface() interface{}
func (*MenuItemsGetRequest) SetMethod ¶
func (r *MenuItemsGetRequest) SetMethod(method string)
func (*MenuItemsGetRequest) SetRequestBody ¶
func (r *MenuItemsGetRequest) SetRequestBody(body MenuItemsGetRequestBody)
func (*MenuItemsGetRequest) URL ¶
func (r *MenuItemsGetRequest) URL() *url.URL
type MenuItemsGetRequestBody ¶
type MenuItemsGetRequestBody struct { }
type MenuItemsGetRequestPathParams ¶
type MenuItemsGetRequestPathParams struct { }
func (*MenuItemsGetRequestPathParams) Params ¶
func (p *MenuItemsGetRequestPathParams) Params() map[string]string
type MenuItemsGetRequestQueryParams ¶
type MenuItemsGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (MenuItemsGetRequestQueryParams) ToURLValues ¶
func (p MenuItemsGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuItemsGetResponseBody ¶
type MenuItemsGetResponseBody MenuItems
type Modifier ¶
type Modifier struct { AppliedDiscounts []interface{} `json:"appliedDiscounts"` AppliedTaxes AppliedTaxes `json:"appliedTaxes"` CreatedDate string `json:"createdDate"` Deferred bool `json:"deferred"` DiningOption interface{} `json:"diningOption"` DisplayName string `json:"displayName"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` FulfillmentStatus string `json:"fulfillmentStatus"` GUID string `json:"guid"` Item interface{} `json:"item"` ItemGroup interface{} `json:"itemGroup"` ModifiedDate string `json:"modifiedDate"` // Modifiers Modifiers `json:"modifiers"` OptionGroup interface{} `json:"optionGroup"` OptionGroupPricingMode interface{} `json:"optionGroupPricingMode"` PreDiscountPrice float64 `json:"preDiscountPrice"` PreModifier interface{} `json:"preModifier"` Price float64 `json:"price"` Quantity float64 `json:"quantity"` ReceiptLinePrice float64 `json:"receiptLinePrice"` RefundDetails interface{} `json:"refundDetails"` SalesCategory interface{} `json:"salesCategory"` SeatNumber int `json:"seatNumber"` SelectionType string `json:"selectionType"` StoredValueTransactionID interface{} `json:"storedValueTransactionId"` Tax float64 `json:"tax"` TaxInclusion string `json:"taxInclusion"` ToastGiftCard interface{} `json:"toastGiftCard"` UnitOfMeasure string `json:"unitOfMeasure"` VoidBusinessDate Date `json:"voidBusinessDate"` VoidDate DateTime `json:"voidDate"` VoidReason interface{} `json:"voidReason"` Voided bool `json:"voided"` }
type Order ¶
type Order struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` RevenueCenter RevenueCenter `json:"revenueCenter"` Server struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"server"` LastModifiedDevice struct { ID string `json:"id"` } `json:"lastModifiedDevice"` Source string `json:"source"` VoidDate DateTime `json:"voidDate"` Duration int `json:"duration"` BusinessDate Date `json:"businessDate"` PaidDate DateTime `json:"paidDate"` RestaurantService struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"restaurantService"` Voided bool `json:"voided"` EstimatedFulfillmentDate DateTime `json:"estimatedFulfillmentDate"` Table interface{} `json:"table"` RequiredPrepTime string `json:"requiredPrepTime"` ApprovalStatus string `json:"approvalStatus"` DeliveryInfo interface{} `json:"deliveryInfo"` ServiceArea interface{} `json:"serviceArea"` CurbsidePickupInfo interface{} `json:"curbsidePickupInfo"` NumberOfGuests int `json:"numberOfGuests"` DiningOption DiningOption `json:"diningOption"` OpenedDate DateTime `json:"openedDate"` VoidBusinessDate Date `json:"voidBusinessDate"` Checks []struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` DisplayNumber string `json:"displayNumber"` Payments []struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` OriginalProcessingFee float64 `json:"originalProcessingFee"` Server struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"server"` CashDrawer interface{} `json:"cashDrawer"` LastModifiedDevice struct { ID string `json:"id"` } `json:"lastModifiedDevice"` RefundStatus string `json:"refundStatus"` IsProcessedOffline interface{} `json:"isProcessedOffline"` Type string `json:"type"` VoidInfo interface{} `json:"voidInfo"` CheckGUID string `json:"checkGuid"` OtherPayment struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` } `json:"otherPayment"` PaidDate DateTime `json:"paidDate"` OrderGUID string `json:"orderGuid"` CardEntryMode interface{} `json:"cardEntryMode"` PaymentStatus string `json:"paymentStatus"` Amount float64 `json:"amount"` TipAmount float64 `json:"tipAmount"` AmountTendered float64 `json:"amountTendered"` CardType interface{} `json:"cardType"` HouseAccount interface{} `json:"houseAccount"` McaRepaymentAmount interface{} `json:"mcaRepaymentAmount"` CreatedDevice struct { ID string `json:"id"` } `json:"createdDevice"` PaidBusinessDate Date `json:"paidBusinessDate"` Last4Digits interface{} `json:"last4Digits"` Refund interface{} `json:"refund"` } `json:"payments"` AppliedDiscounts []struct { AppliedPromoCode interface{} `json:"appliedPromoCode"` Approver struct { EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` } `json:"approver"` ComboItems []interface{} `json:"comboItems"` Discount struct { EntityType string `json:"entityType"` GUID string `json:"guid"` } `json:"discount"` DiscountAmount float64 `json:"discountAmount"` DiscountPercent float64 `json:"discountPercent"` DiscountType string `json:"discountType"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` LoyaltyDetails interface{} `json:"loyaltyDetails"` Name string `json:"name"` NonTaxDiscountAmount float64 `json:"nonTaxDiscountAmount"` ProcessingState interface{} `json:"processingState"` Triggers []struct { Quantity float64 `json:"quantity"` Selection struct { EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` } `json:"selection"` } `json:"triggers"` } `json:"AppliedDiscounts"` LastModifiedDevice struct { ID string `json:"id"` } `json:"lastModifiedDevice"` VoidDate DateTime `json:"voidDate"` PaidDate DateTime `json:"paidDate"` AppliedLoyaltyInfo interface{} `json:"appliedLoyaltyInfo"` Voided bool `json:"voided"` PaymentStatus string `json:"paymentStatus"` Amount float64 `json:"amount"` TabName string `json:"tabName"` TaxExempt bool `json:"taxExempt"` OpenedDate DateTime `json:"openedDate"` TotalAmount float64 `json:"totalAmount"` Selections []struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` Deferred bool `json:"deferred"` PreDiscountPrice float64 `json:"preDiscountPrice"` VoidReason interface{} `json:"voidReason"` OptionGroup interface{} `json:"optionGroup"` DisplayName string `json:"displayName"` AppliedDiscounts []struct { AppliedPromoCode interface{} `json:"appliedPromoCode"` Approver struct { EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` } `json:"approver"` ComboItems []interface{} `json:"comboItems"` Discount struct { EntityType string `json:"entityType"` GUID string `json:"guid"` } `json:"discount"` DiscountAmount float64 `json:"discountAmount"` DiscountPercent float64 `json:"discountPercent"` DiscountType string `json:"discountType"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` LoyaltyDetails interface{} `json:"loyaltyDetails"` Name string `json:"name"` NonTaxDiscountAmount float64 `json:"nonTaxDiscountAmount"` ProcessingState interface{} `json:"processingState"` Triggers []struct { Quantity float64 `json:"quantity"` Selection struct { EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` GUID string `json:"guid"` } `json:"selection"` } `json:"triggers"` } `json:"AppliedDiscounts"` Modifiers Modifiers `json:"modifiers"` SeatNumber int `json:"seatNumber"` VoidDate DateTime `json:"voidDate"` FulfillmentStatus string `json:"fulfillmentStatus"` OptionGroupPricingMode interface{} `json:"optionGroupPricingMode"` SalesCategory SalesCategory `json:"salesCategory"` SelectionType string `json:"selectionType"` Price float64 `json:"price"` Voided bool `json:"voided"` AppliedTaxes AppliedTaxes `json:"appliedTaxes"` StoredValueTransactionID interface{} `json:"storedValueTransactionId"` ItemGroup struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` MultiLocationID string `json:"multiLocationId"` } `json:"itemGroup"` Item struct { GUID string `json:"guid"` EntityType string `json:"entityType"` ExternalID interface{} `json:"externalId"` MultiLocationID string `json:"multiLocationId"` } `json:"item"` TaxInclusion string `json:"taxInclusion"` Quantity float64 `json:"quantity"` ReceiptLinePrice float64 `json:"receiptLinePrice"` UnitOfMeasure string `json:"unitOfMeasure"` RefundDetails interface{} `json:"refundDetails"` ToastGiftCard interface{} `json:"toastGiftCard"` Tax float64 `json:"tax"` DiningOption interface{} `json:"diningOption"` VoidBusinessDate Date `json:"voidBusinessDate"` CreatedDate DateTime `json:"createdDate"` PreModifier interface{} `json:"preModifier"` ModifiedDate DateTime `json:"modifiedDate"` } `json:"selections"` VoidBusinessDate Date `json:"voidBusinessDate"` CreatedDate DateTime `json:"createdDate"` Deleted bool `json:"deleted"` CreatedDevice struct { ID string `json:"id"` } `json:"createdDevice"` ClosedDate DateTime `json:"closedDate"` DeletedDate DateTime `json:"deletedDate"` ModifiedDate DateTime `json:"modifiedDate"` TaxAmount float64 `json:"taxAmount"` AppliedServiceCharges []interface{} `json:"appliedServiceCharges"` Customer interface{} `json:"customer"` } `json:"checks"` Deleted bool `json:"deleted"` CreatedDevice struct { ID string `json:"id"` } `json:"createdDevice"` CreatedDate DateTime `json:"createdDate"` ClosedDate DateTime `json:"closedDate"` DeletedDate DateTime `json:"deletedDate"` ModifiedDate DateTime `json:"modifiedDate"` PromisedDate DateTime `json:"promisedDate"` ChannelGUID interface{} `json:"channelGuid"` PricingFeatures []string `json:"pricingFeatures"` }
type OrdersBulkGetRequest ¶
type OrdersBulkGetRequest struct {
// contains filtered or unexported fields
}
func (*OrdersBulkGetRequest) All ¶
func (r *OrdersBulkGetRequest) All() (OrdersBulkGetResponseBody, error)
func (*OrdersBulkGetRequest) Do ¶
func (r *OrdersBulkGetRequest) Do() (OrdersBulkGetResponseBody, error, *http.Response)
func (*OrdersBulkGetRequest) Method ¶
func (r *OrdersBulkGetRequest) Method() string
func (OrdersBulkGetRequest) NewPathParams ¶
func (r OrdersBulkGetRequest) NewPathParams() *OrdersBulkGetRequestPathParams
func (OrdersBulkGetRequest) NewQueryParams ¶
func (r OrdersBulkGetRequest) NewQueryParams() *OrdersBulkGetRequestQueryParams
func (OrdersBulkGetRequest) NewRequestBody ¶
func (r OrdersBulkGetRequest) NewRequestBody() OrdersBulkGetRequestBody
func (*OrdersBulkGetRequest) NewResponseBody ¶
func (r *OrdersBulkGetRequest) NewResponseBody() *OrdersBulkGetResponseBody
func (*OrdersBulkGetRequest) PathParams ¶
func (r *OrdersBulkGetRequest) PathParams() *OrdersBulkGetRequestPathParams
func (*OrdersBulkGetRequest) PathParamsInterface ¶
func (r *OrdersBulkGetRequest) PathParamsInterface() PathParams
func (*OrdersBulkGetRequest) QueryParams ¶
func (r *OrdersBulkGetRequest) QueryParams() *OrdersBulkGetRequestQueryParams
func (*OrdersBulkGetRequest) RequestBody ¶
func (r *OrdersBulkGetRequest) RequestBody() *OrdersBulkGetRequestBody
func (*OrdersBulkGetRequest) RequestBodyInterface ¶
func (r *OrdersBulkGetRequest) RequestBodyInterface() interface{}
func (*OrdersBulkGetRequest) SetMethod ¶
func (r *OrdersBulkGetRequest) SetMethod(method string)
func (*OrdersBulkGetRequest) SetRequestBody ¶
func (r *OrdersBulkGetRequest) SetRequestBody(body OrdersBulkGetRequestBody)
func (*OrdersBulkGetRequest) URL ¶
func (r *OrdersBulkGetRequest) URL() *url.URL
type OrdersBulkGetRequestBody ¶
type OrdersBulkGetRequestBody struct { }
type OrdersBulkGetRequestPathParams ¶
type OrdersBulkGetRequestPathParams struct { }
func (*OrdersBulkGetRequestPathParams) Params ¶
func (p *OrdersBulkGetRequestPathParams) Params() map[string]string
type OrdersBulkGetRequestQueryParams ¶
type OrdersBulkGetRequestQueryParams struct { StartDate DateTime `schema:"startDate,omitempty"` EndDate DateTime `schema:"endDate,omitempty"` PageSize int `schema:"pageSize,omitempty"` Page int `schema:"page,omitempty"` BusinessDate Date `schema:"businessDate,omitempty"` }
func (OrdersBulkGetRequestQueryParams) ToURLValues ¶
func (p OrdersBulkGetRequestQueryParams) ToURLValues() (url.Values, error)
type OrdersBulkGetResponseBody ¶
type OrdersBulkGetResponseBody Orders
type PathParams ¶
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 Restaurant ¶
type Restaurant struct { GUID string `json:"guid"` General struct { Name string `json:"name"` LocationName string `json:"locationName"` LocationCode interface{} `json:"locationCode"` Description string `json:"description"` TimeZone string `json:"timeZone"` CloseoutHour int `json:"closeoutHour"` ManagementGroupGUID string `json:"managementGroupGuid"` } `json:"general"` Urls struct { Website interface{} `json:"website"` Facebook interface{} `json:"facebook"` Twitter string `json:"twitter"` OrderOnline string `json:"orderOnline"` PurchaseGiftCard string `json:"purchaseGiftCard"` CheckGiftCard string `json:"checkGiftCard"` } `json:"urls"` Location struct { Address1 string `json:"address1"` Address2 string `json:"address2"` City string `json:"city"` StateCode string `json:"stateCode"` ZipCode string `json:"zipCode"` Country string `json:"country"` Phone string `json:"phone"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` } `json:"location"` Schedules struct { DaySchedules struct { Num600000000314630485 struct { ScheduleName string `json:"scheduleName"` Services []struct { Name string `json:"name"` Hours struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` } `json:"hours"` Overnight bool `json:"overnight"` } `json:"services"` OpenTime string `json:"openTime"` CloseTime string `json:"closeTime"` } `json:"600000000314630485"` } `json:"daySchedules"` WeekSchedule struct { Monday string `json:"monday"` Tuesday string `json:"tuesday"` Wednesday string `json:"wednesday"` Thursday string `json:"thursday"` Friday string `json:"friday"` Saturday string `json:"saturday"` Sunday string `json:"sunday"` } `json:"weekSchedule"` } `json:"schedules"` Delivery struct { Enabled bool `json:"enabled"` Minimum interface{} `json:"minimum"` Area interface{} `json:"area"` } `json:"delivery"` OnlineOrdering struct { Enabled bool `json:"enabled"` Scheduling bool `json:"scheduling"` SpecialRequests bool `json:"specialRequests"` SpecialRequestsMessage string `json:"specialRequestsMessage"` PaymentOptions struct { Delivery struct { Cash bool `json:"cash"` CcSameDay bool `json:"ccSameDay"` CcFuture bool `json:"ccFuture"` } `json:"delivery"` Takeout struct { Cash bool `json:"cash"` CcSameDay bool `json:"ccSameDay"` CcFuture bool `json:"ccFuture"` CcInStore bool `json:"ccInStore"` } `json:"takeout"` CcTip bool `json:"ccTip"` } `json:"paymentOptions"` } `json:"onlineOrdering"` PrepTimes struct { DeliveryPrepTime int `json:"deliveryPrepTime"` DeliveryTimeAfterOpen int `json:"deliveryTimeAfterOpen"` DeliveryTimeBeforeClose int `json:"deliveryTimeBeforeClose"` TakeoutPrepTime int `json:"takeoutPrepTime"` TakeoutTimeAfterOpen int `json:"takeoutTimeAfterOpen"` TakeoutTimeBeforeClose int `json:"takeoutTimeBeforeClose"` TakeoutThrottlingTime int `json:"takeoutThrottlingTime"` DeliveryThrottlingTime int `json:"deliveryThrottlingTime"` } `json:"prepTimes"` }
type RestaurantGetRequest ¶
type RestaurantGetRequest struct {
// contains filtered or unexported fields
}
func (*RestaurantGetRequest) Do ¶
func (r *RestaurantGetRequest) Do() (RestaurantGetResponseBody, error, *http.Response)
func (*RestaurantGetRequest) Method ¶
func (r *RestaurantGetRequest) Method() string
func (RestaurantGetRequest) NewPathParams ¶
func (r RestaurantGetRequest) NewPathParams() *RestaurantGetRequestPathParams
func (RestaurantGetRequest) NewQueryParams ¶
func (r RestaurantGetRequest) NewQueryParams() *RestaurantGetRequestQueryParams
func (RestaurantGetRequest) NewRequestBody ¶
func (r RestaurantGetRequest) NewRequestBody() RestaurantGetRequestBody
func (*RestaurantGetRequest) NewResponseBody ¶
func (r *RestaurantGetRequest) NewResponseBody() *RestaurantGetResponseBody
func (*RestaurantGetRequest) PathParams ¶
func (r *RestaurantGetRequest) PathParams() *RestaurantGetRequestPathParams
func (*RestaurantGetRequest) PathParamsInterface ¶
func (r *RestaurantGetRequest) PathParamsInterface() PathParams
func (*RestaurantGetRequest) QueryParams ¶
func (r *RestaurantGetRequest) QueryParams() *RestaurantGetRequestQueryParams
func (*RestaurantGetRequest) RequestBody ¶
func (r *RestaurantGetRequest) RequestBody() *RestaurantGetRequestBody
func (*RestaurantGetRequest) RequestBodyInterface ¶
func (r *RestaurantGetRequest) RequestBodyInterface() interface{}
func (*RestaurantGetRequest) SetMethod ¶
func (r *RestaurantGetRequest) SetMethod(method string)
func (*RestaurantGetRequest) SetRequestBody ¶
func (r *RestaurantGetRequest) SetRequestBody(body RestaurantGetRequestBody)
func (*RestaurantGetRequest) URL ¶
func (r *RestaurantGetRequest) URL() *url.URL
type RestaurantGetRequestBody ¶
type RestaurantGetRequestBody struct { }
type RestaurantGetRequestPathParams ¶
type RestaurantGetRequestPathParams struct {
GUID string `schema:"GUID"`
}
func (*RestaurantGetRequestPathParams) Params ¶
func (p *RestaurantGetRequestPathParams) Params() map[string]string
type RestaurantGetRequestQueryParams ¶
type RestaurantGetRequestQueryParams struct { StartDate DateTime `schema:"startDate,omitempty"` EndDate DateTime `schema:"endDate,omitempty"` PageSize int `schema:"pageSize,omitempty"` Page int `schema:"page,omitempty"` BusinessDate Date `schema:"businessDate,omitempty"` }
func (RestaurantGetRequestQueryParams) ToURLValues ¶
func (p RestaurantGetRequestQueryParams) ToURLValues() (url.Values, error)
type RestaurantGetResponseBody ¶
type RestaurantGetResponseBody Restaurant
type RevenueCenter ¶
type RevenueCenters ¶
type RevenueCenters []RevenueCenter
type RevenueCentersGetRequest ¶
type RevenueCentersGetRequest struct {
// contains filtered or unexported fields
}
func (*RevenueCentersGetRequest) All ¶
func (r *RevenueCentersGetRequest) All() (RevenueCentersGetResponseBody, error)
func (*RevenueCentersGetRequest) Do ¶
func (r *RevenueCentersGetRequest) Do() (RevenueCentersGetResponseBody, error, *http.Response)
func (*RevenueCentersGetRequest) Method ¶
func (r *RevenueCentersGetRequest) Method() string
func (RevenueCentersGetRequest) NewPathParams ¶
func (r RevenueCentersGetRequest) NewPathParams() *RevenueCentersGetRequestPathParams
func (RevenueCentersGetRequest) NewQueryParams ¶
func (r RevenueCentersGetRequest) NewQueryParams() *RevenueCentersGetRequestQueryParams
func (RevenueCentersGetRequest) NewRequestBody ¶
func (r RevenueCentersGetRequest) NewRequestBody() RevenueCentersGetRequestBody
func (*RevenueCentersGetRequest) NewResponseBody ¶
func (r *RevenueCentersGetRequest) NewResponseBody() *RevenueCentersGetResponseBody
func (*RevenueCentersGetRequest) PathParams ¶
func (r *RevenueCentersGetRequest) PathParams() *RevenueCentersGetRequestPathParams
func (*RevenueCentersGetRequest) PathParamsInterface ¶
func (r *RevenueCentersGetRequest) PathParamsInterface() PathParams
func (*RevenueCentersGetRequest) QueryParams ¶
func (r *RevenueCentersGetRequest) QueryParams() *RevenueCentersGetRequestQueryParams
func (*RevenueCentersGetRequest) RequestBody ¶
func (r *RevenueCentersGetRequest) RequestBody() *RevenueCentersGetRequestBody
func (*RevenueCentersGetRequest) RequestBodyInterface ¶
func (r *RevenueCentersGetRequest) RequestBodyInterface() interface{}
func (*RevenueCentersGetRequest) SetMethod ¶
func (r *RevenueCentersGetRequest) SetMethod(method string)
func (*RevenueCentersGetRequest) SetRequestBody ¶
func (r *RevenueCentersGetRequest) SetRequestBody(body RevenueCentersGetRequestBody)
func (*RevenueCentersGetRequest) URL ¶
func (r *RevenueCentersGetRequest) URL() *url.URL
type RevenueCentersGetRequestBody ¶
type RevenueCentersGetRequestBody struct { }
type RevenueCentersGetRequestPathParams ¶
type RevenueCentersGetRequestPathParams struct { }
func (*RevenueCentersGetRequestPathParams) Params ¶
func (p *RevenueCentersGetRequestPathParams) Params() map[string]string
type RevenueCentersGetRequestQueryParams ¶
type RevenueCentersGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (RevenueCentersGetRequestQueryParams) ToURLValues ¶
func (p RevenueCentersGetRequestQueryParams) ToURLValues() (url.Values, error)
type RevenueCentersGetResponseBody ¶
type RevenueCentersGetResponseBody RevenueCenters
type SalesCategories ¶
type SalesCategories []SalesCategory
type SalesCategoriesGetRequest ¶
type SalesCategoriesGetRequest struct {
// contains filtered or unexported fields
}
func (*SalesCategoriesGetRequest) All ¶
func (r *SalesCategoriesGetRequest) All() (SalesCategoriesGetResponseBody, error)
func (*SalesCategoriesGetRequest) Do ¶
func (r *SalesCategoriesGetRequest) Do() (SalesCategoriesGetResponseBody, error, *http.Response)
func (*SalesCategoriesGetRequest) Method ¶
func (r *SalesCategoriesGetRequest) Method() string
func (SalesCategoriesGetRequest) NewPathParams ¶
func (r SalesCategoriesGetRequest) NewPathParams() *SalesCategoriesGetRequestPathParams
func (SalesCategoriesGetRequest) NewQueryParams ¶
func (r SalesCategoriesGetRequest) NewQueryParams() *SalesCategoriesGetRequestQueryParams
func (SalesCategoriesGetRequest) NewRequestBody ¶
func (r SalesCategoriesGetRequest) NewRequestBody() SalesCategoriesGetRequestBody
func (*SalesCategoriesGetRequest) NewResponseBody ¶
func (r *SalesCategoriesGetRequest) NewResponseBody() *SalesCategoriesGetResponseBody
func (*SalesCategoriesGetRequest) PathParams ¶
func (r *SalesCategoriesGetRequest) PathParams() *SalesCategoriesGetRequestPathParams
func (*SalesCategoriesGetRequest) PathParamsInterface ¶
func (r *SalesCategoriesGetRequest) PathParamsInterface() PathParams
func (*SalesCategoriesGetRequest) QueryParams ¶
func (r *SalesCategoriesGetRequest) QueryParams() *SalesCategoriesGetRequestQueryParams
func (*SalesCategoriesGetRequest) RequestBody ¶
func (r *SalesCategoriesGetRequest) RequestBody() *SalesCategoriesGetRequestBody
func (*SalesCategoriesGetRequest) RequestBodyInterface ¶
func (r *SalesCategoriesGetRequest) RequestBodyInterface() interface{}
func (*SalesCategoriesGetRequest) SetMethod ¶
func (r *SalesCategoriesGetRequest) SetMethod(method string)
func (*SalesCategoriesGetRequest) SetRequestBody ¶
func (r *SalesCategoriesGetRequest) SetRequestBody(body SalesCategoriesGetRequestBody)
func (*SalesCategoriesGetRequest) URL ¶
func (r *SalesCategoriesGetRequest) URL() *url.URL
type SalesCategoriesGetRequestBody ¶
type SalesCategoriesGetRequestBody struct { }
type SalesCategoriesGetRequestPathParams ¶
type SalesCategoriesGetRequestPathParams struct { }
func (*SalesCategoriesGetRequestPathParams) Params ¶
func (p *SalesCategoriesGetRequestPathParams) Params() map[string]string
type SalesCategoriesGetRequestQueryParams ¶
type SalesCategoriesGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (SalesCategoriesGetRequestQueryParams) ToURLValues ¶
func (p SalesCategoriesGetRequestQueryParams) ToURLValues() (url.Values, error)
type SalesCategoriesGetResponseBody ¶
type SalesCategoriesGetResponseBody SalesCategories
type SalesCategory ¶
type TaxRate ¶
type TaxRate struct { GUID string `json:"guid"` EntityType string `json:"entityType"` IsDefault bool `json:"isDefault"` ConditionalTaxRates []interface{} `json:"conditionalTaxRates"` TaxTable []interface{} `json:"taxTable"` Rate float64 `json:"rate"` RoundingType string `json:"roundingType"` Name string `json:"name"` Type string `json:"type"` }
type TaxRatesGetRequest ¶
type TaxRatesGetRequest struct {
// contains filtered or unexported fields
}
func (*TaxRatesGetRequest) All ¶
func (r *TaxRatesGetRequest) All() (TaxRatesGetResponseBody, error)
func (*TaxRatesGetRequest) Do ¶
func (r *TaxRatesGetRequest) Do() (TaxRatesGetResponseBody, error, *http.Response)
func (*TaxRatesGetRequest) Method ¶
func (r *TaxRatesGetRequest) Method() string
func (TaxRatesGetRequest) NewPathParams ¶
func (r TaxRatesGetRequest) NewPathParams() *TaxRatesGetRequestPathParams
func (TaxRatesGetRequest) NewQueryParams ¶
func (r TaxRatesGetRequest) NewQueryParams() *TaxRatesGetRequestQueryParams
func (TaxRatesGetRequest) NewRequestBody ¶
func (r TaxRatesGetRequest) NewRequestBody() TaxRatesGetRequestBody
func (*TaxRatesGetRequest) NewResponseBody ¶
func (r *TaxRatesGetRequest) NewResponseBody() *TaxRatesGetResponseBody
func (*TaxRatesGetRequest) PathParams ¶
func (r *TaxRatesGetRequest) PathParams() *TaxRatesGetRequestPathParams
func (*TaxRatesGetRequest) PathParamsInterface ¶
func (r *TaxRatesGetRequest) PathParamsInterface() PathParams
func (*TaxRatesGetRequest) QueryParams ¶
func (r *TaxRatesGetRequest) QueryParams() *TaxRatesGetRequestQueryParams
func (*TaxRatesGetRequest) RequestBody ¶
func (r *TaxRatesGetRequest) RequestBody() *TaxRatesGetRequestBody
func (*TaxRatesGetRequest) RequestBodyInterface ¶
func (r *TaxRatesGetRequest) RequestBodyInterface() interface{}
func (*TaxRatesGetRequest) SetMethod ¶
func (r *TaxRatesGetRequest) SetMethod(method string)
func (*TaxRatesGetRequest) SetRequestBody ¶
func (r *TaxRatesGetRequest) SetRequestBody(body TaxRatesGetRequestBody)
func (*TaxRatesGetRequest) URL ¶
func (r *TaxRatesGetRequest) URL() *url.URL
type TaxRatesGetRequestBody ¶
type TaxRatesGetRequestBody struct { }
type TaxRatesGetRequestPathParams ¶
type TaxRatesGetRequestPathParams struct { }
func (*TaxRatesGetRequestPathParams) Params ¶
func (p *TaxRatesGetRequestPathParams) Params() map[string]string
type TaxRatesGetRequestQueryParams ¶
type TaxRatesGetRequestQueryParams struct {
PageToken string `schema:"pageToken,omitempty"`
}
func (TaxRatesGetRequestQueryParams) ToURLValues ¶
func (p TaxRatesGetRequestQueryParams) ToURLValues() (url.Values, error)
type TaxRatesGetResponseBody ¶
type TaxRatesGetResponseBody TaxRates