Documentation ¶
Index ¶
- Variables
- func CheckResponse(r *http.Response) error
- type AccountingGroup
- type AccountingGroupList
- type AccountingGroupsGetRequest
- func (r *AccountingGroupsGetRequest) Do() (AccountingGroupsGetResponseBody, error)
- func (r *AccountingGroupsGetRequest) Method() string
- func (r AccountingGroupsGetRequest) NewPathParams() *AccountingGroupsGetRequestPathParams
- func (r AccountingGroupsGetRequest) NewQueryParams() *AccountingGroupsGetRequestQueryParams
- func (r AccountingGroupsGetRequest) NewRequestBody() AccountingGroupsGetRequestBody
- func (r *AccountingGroupsGetRequest) NewResponseBody() *AccountingGroupsGetResponseBody
- func (r *AccountingGroupsGetRequest) PathParams() *AccountingGroupsGetRequestPathParams
- func (r *AccountingGroupsGetRequest) PathParamsInterface() PathParams
- func (r *AccountingGroupsGetRequest) QueryParams() *AccountingGroupsGetRequestQueryParams
- func (r *AccountingGroupsGetRequest) RequestBody() *AccountingGroupsGetRequestBody
- func (r *AccountingGroupsGetRequest) RequestBodyInterface() interface{}
- func (r *AccountingGroupsGetRequest) SetMethod(method string)
- func (r *AccountingGroupsGetRequest) SetRequestBody(body AccountingGroupsGetRequestBody)
- func (r *AccountingGroupsGetRequest) URL() *url.URL
- type AccountingGroupsGetRequestBody
- type AccountingGroupsGetRequestPathParams
- type AccountingGroupsGetRequestQueryParams
- type AccountingGroupsGetResponseBody
- type AutoGenerated
- type BeforeRequestDoCallback
- type Business
- type BusinessList
- type BusinessesGetRequest
- func (r *BusinessesGetRequest) Do() (BusinessesGetResponseBody, error)
- func (r *BusinessesGetRequest) Method() string
- func (r BusinessesGetRequest) NewPathParams() *BusinessesGetRequestPathParams
- func (r BusinessesGetRequest) NewQueryParams() *BusinessesGetRequestQueryParams
- func (r BusinessesGetRequest) NewRequestBody() BusinessesGetRequestBody
- func (r *BusinessesGetRequest) NewResponseBody() *BusinessesGetResponseBody
- func (r *BusinessesGetRequest) PathParams() *BusinessesGetRequestPathParams
- func (r *BusinessesGetRequest) PathParamsInterface() PathParams
- func (r *BusinessesGetRequest) QueryParams() *BusinessesGetRequestQueryParams
- func (r *BusinessesGetRequest) RequestBody() *BusinessesGetRequestBody
- func (r *BusinessesGetRequest) RequestBodyInterface() interface{}
- func (r *BusinessesGetRequest) SetMethod(method string)
- func (r *BusinessesGetRequest) SetRequestBody(body BusinessesGetRequestBody)
- func (r *BusinessesGetRequest) URL() *url.URL
- type BusinessesGetRequestBody
- type BusinessesGetRequestPathParams
- type BusinessesGetRequestQueryParams
- type BusinessesGetResponseBody
- type Client
- 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) GetEndpointURL(p string, pathParams PathParams) url.URL
- func (c Client) MediaType() string
- func (c *Client) NewAccountingGroupsGetRequest() AccountingGroupsGetRequest
- func (c *Client) NewBusinessesGetRequest() BusinessesGetRequest
- func (c *Client) NewDailyFinancialsGetRequest() DailyFinancialsGetRequest
- func (c *Client) NewFinancialsGetRequest() FinancialsGetRequest
- func (c *Client) NewPaymentMethodsGetRequest() PaymentMethodsGetRequest
- func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)
- 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) SetHTTPClient(client *http.Client)
- func (c *Client) SetMediaType(mediaType string)
- func (c *Client) SetUserAgent(userAgent string)
- func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error
- func (c Client) UserAgent() string
- type DailyFinancialsGetRequest
- func (r *DailyFinancialsGetRequest) Do() (DailyFinancialsGetResponseBody, error)
- func (r *DailyFinancialsGetRequest) Method() string
- func (r DailyFinancialsGetRequest) NewPathParams() *DailyFinancialsGetRequestPathParams
- func (r DailyFinancialsGetRequest) NewQueryParams() *DailyFinancialsGetRequestQueryParams
- func (r DailyFinancialsGetRequest) NewRequestBody() DailyFinancialsGetRequestBody
- func (r *DailyFinancialsGetRequest) NewResponseBody() *DailyFinancialsGetResponseBody
- func (r *DailyFinancialsGetRequest) PathParams() *DailyFinancialsGetRequestPathParams
- func (r *DailyFinancialsGetRequest) PathParamsInterface() PathParams
- func (r *DailyFinancialsGetRequest) QueryParams() *DailyFinancialsGetRequestQueryParams
- func (r *DailyFinancialsGetRequest) RequestBody() *DailyFinancialsGetRequestBody
- func (r *DailyFinancialsGetRequest) RequestBodyInterface() interface{}
- func (r *DailyFinancialsGetRequest) SetMethod(method string)
- func (r *DailyFinancialsGetRequest) SetRequestBody(body DailyFinancialsGetRequestBody)
- func (r *DailyFinancialsGetRequest) URL() *url.URL
- type DailyFinancialsGetRequestBody
- type DailyFinancialsGetRequestPathParams
- type DailyFinancialsGetRequestQueryParams
- type DailyFinancialsGetResponseBody
- type Date
- type DateTime
- type ErrorResponse
- type ErrorsResponse
- type FinancialsGetRequest
- func (r *FinancialsGetRequest) All() (FinancialsGetResponseBody, error)
- func (r *FinancialsGetRequest) Do() (FinancialsGetResponseBody, error)
- func (r *FinancialsGetRequest) Method() string
- func (r FinancialsGetRequest) NewPathParams() *FinancialsGetRequestPathParams
- func (r FinancialsGetRequest) NewQueryParams() *FinancialsGetRequestQueryParams
- func (r FinancialsGetRequest) NewRequestBody() FinancialsGetRequestBody
- func (r *FinancialsGetRequest) NewResponseBody() *FinancialsGetResponseBody
- func (r *FinancialsGetRequest) PathParams() *FinancialsGetRequestPathParams
- func (r *FinancialsGetRequest) PathParamsInterface() PathParams
- func (r *FinancialsGetRequest) QueryParams() *FinancialsGetRequestQueryParams
- func (r *FinancialsGetRequest) RequestBody() *FinancialsGetRequestBody
- func (r *FinancialsGetRequest) RequestBodyInterface() interface{}
- func (r *FinancialsGetRequest) SetMethod(method string)
- func (r *FinancialsGetRequest) SetRequestBody(body FinancialsGetRequestBody)
- func (r *FinancialsGetRequest) URL() *url.URL
- type FinancialsGetRequestBody
- type FinancialsGetRequestPathParams
- type FinancialsGetRequestQueryParams
- type FinancialsGetResponseBody
- type Includes
- type Links
- type Number
- type Oauth2Config
- type PathParams
- type Payment
- type PaymentMethod
- type PaymentMethodList
- type PaymentMethodsGetRequest
- func (r *PaymentMethodsGetRequest) Do() (PaymentMethodsGetResponseBody, error)
- func (r *PaymentMethodsGetRequest) Method() string
- func (r PaymentMethodsGetRequest) NewPathParams() *PaymentMethodsGetRequestPathParams
- func (r PaymentMethodsGetRequest) NewQueryParams() *PaymentMethodsGetRequestQueryParams
- func (r PaymentMethodsGetRequest) NewRequestBody() PaymentMethodsGetRequestBody
- func (r *PaymentMethodsGetRequest) NewResponseBody() *PaymentMethodsGetResponseBody
- func (r *PaymentMethodsGetRequest) PathParams() *PaymentMethodsGetRequestPathParams
- func (r *PaymentMethodsGetRequest) PathParamsInterface() PathParams
- func (r *PaymentMethodsGetRequest) QueryParams() *PaymentMethodsGetRequestQueryParams
- func (r *PaymentMethodsGetRequest) RequestBody() *PaymentMethodsGetRequestBody
- func (r *PaymentMethodsGetRequest) RequestBodyInterface() interface{}
- func (r *PaymentMethodsGetRequest) SetMethod(method string)
- func (r *PaymentMethodsGetRequest) SetRequestBody(body PaymentMethodsGetRequestBody)
- func (r *PaymentMethodsGetRequest) URL() *url.URL
- type PaymentMethodsGetRequestBody
- type PaymentMethodsGetRequestPathParams
- type PaymentMethodsGetRequestQueryParams
- type PaymentMethodsGetResponseBody
- type Payments
- type QueryParams
- type Request
- type RequestCompletionCallback
- type Sale
- type Sales
Constants ¶
This section is empty.
Variables ¶
var (
BaseURL = url.URL{
Scheme: "https",
Host: "api.ikentoo.com",
Path: "/f",
}
)
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 AccountingGroup ¶
type AccountingGroupList ¶
type AccountingGroupList []AccountingGroup
type AccountingGroupsGetRequest ¶
type AccountingGroupsGetRequest struct {
// contains filtered or unexported fields
}
func (*AccountingGroupsGetRequest) Do ¶
func (r *AccountingGroupsGetRequest) Do() (AccountingGroupsGetResponseBody, error)
func (*AccountingGroupsGetRequest) Method ¶
func (r *AccountingGroupsGetRequest) Method() string
func (AccountingGroupsGetRequest) NewPathParams ¶
func (r AccountingGroupsGetRequest) NewPathParams() *AccountingGroupsGetRequestPathParams
func (AccountingGroupsGetRequest) NewQueryParams ¶
func (r AccountingGroupsGetRequest) NewQueryParams() *AccountingGroupsGetRequestQueryParams
func (AccountingGroupsGetRequest) NewRequestBody ¶
func (r AccountingGroupsGetRequest) NewRequestBody() AccountingGroupsGetRequestBody
func (*AccountingGroupsGetRequest) NewResponseBody ¶
func (r *AccountingGroupsGetRequest) NewResponseBody() *AccountingGroupsGetResponseBody
func (*AccountingGroupsGetRequest) PathParams ¶
func (r *AccountingGroupsGetRequest) PathParams() *AccountingGroupsGetRequestPathParams
func (*AccountingGroupsGetRequest) PathParamsInterface ¶
func (r *AccountingGroupsGetRequest) PathParamsInterface() PathParams
func (*AccountingGroupsGetRequest) QueryParams ¶
func (r *AccountingGroupsGetRequest) QueryParams() *AccountingGroupsGetRequestQueryParams
func (*AccountingGroupsGetRequest) RequestBody ¶
func (r *AccountingGroupsGetRequest) RequestBody() *AccountingGroupsGetRequestBody
func (*AccountingGroupsGetRequest) RequestBodyInterface ¶
func (r *AccountingGroupsGetRequest) RequestBodyInterface() interface{}
func (*AccountingGroupsGetRequest) SetMethod ¶
func (r *AccountingGroupsGetRequest) SetMethod(method string)
func (*AccountingGroupsGetRequest) SetRequestBody ¶
func (r *AccountingGroupsGetRequest) SetRequestBody(body AccountingGroupsGetRequestBody)
func (*AccountingGroupsGetRequest) URL ¶
func (r *AccountingGroupsGetRequest) URL() *url.URL
type AccountingGroupsGetRequestBody ¶
type AccountingGroupsGetRequestBody struct { }
type AccountingGroupsGetRequestPathParams ¶
func (*AccountingGroupsGetRequestPathParams) Params ¶
func (p *AccountingGroupsGetRequestPathParams) Params() map[string]string
type AccountingGroupsGetRequestQueryParams ¶
type AccountingGroupsGetRequestQueryParams struct { Include Includes `schema:"include,omitempty"` PageSize int `schema:"pageSize,omitempty"` NextPageToken string `schema:"nextPageToken,omitempty"` }
func (AccountingGroupsGetRequestQueryParams) ToURLValues ¶
func (p AccountingGroupsGetRequestQueryParams) ToURLValues() (url.Values, error)
type AccountingGroupsGetResponseBody ¶
type AccountingGroupsGetResponseBody struct { Embedded struct { AccountingGroupList AccountingGroupList `json:"accountingGroupList"` } `json:"_embedded"` Links Links `json:"_links"` }
type AutoGenerated ¶
type AutoGenerated struct { Embedded struct { PaymentMethodList []struct { } `json:"paymentMethodList"` } `json:"_embedded"` Links struct { Self struct { Href string `json:"href"` } `json:"self"` } `json:"_links"` }
type BeforeRequestDoCallback ¶
type Business ¶
type Business struct { BusinessName string `json:"businessName"` BusinessID int `json:"businessId"` CurrencyCode string `json:"currencyCode"` BusinessLocations []struct { BlName string `json:"blName"` BlID int64 `json:"blId"` Country string `json:"country"` Timezone string `json:"timezone"` } `json:"businessLocations"` }
type BusinessList ¶
type BusinessList []Business
type BusinessesGetRequest ¶
type BusinessesGetRequest struct {
// contains filtered or unexported fields
}
func (*BusinessesGetRequest) Do ¶
func (r *BusinessesGetRequest) Do() (BusinessesGetResponseBody, error)
func (*BusinessesGetRequest) Method ¶
func (r *BusinessesGetRequest) Method() string
func (BusinessesGetRequest) NewPathParams ¶
func (r BusinessesGetRequest) NewPathParams() *BusinessesGetRequestPathParams
func (BusinessesGetRequest) NewQueryParams ¶
func (r BusinessesGetRequest) NewQueryParams() *BusinessesGetRequestQueryParams
func (BusinessesGetRequest) NewRequestBody ¶
func (r BusinessesGetRequest) NewRequestBody() BusinessesGetRequestBody
func (*BusinessesGetRequest) NewResponseBody ¶
func (r *BusinessesGetRequest) NewResponseBody() *BusinessesGetResponseBody
func (*BusinessesGetRequest) PathParams ¶
func (r *BusinessesGetRequest) PathParams() *BusinessesGetRequestPathParams
func (*BusinessesGetRequest) PathParamsInterface ¶
func (r *BusinessesGetRequest) PathParamsInterface() PathParams
func (*BusinessesGetRequest) QueryParams ¶
func (r *BusinessesGetRequest) QueryParams() *BusinessesGetRequestQueryParams
func (*BusinessesGetRequest) RequestBody ¶
func (r *BusinessesGetRequest) RequestBody() *BusinessesGetRequestBody
func (*BusinessesGetRequest) RequestBodyInterface ¶
func (r *BusinessesGetRequest) RequestBodyInterface() interface{}
func (*BusinessesGetRequest) SetMethod ¶
func (r *BusinessesGetRequest) SetMethod(method string)
func (*BusinessesGetRequest) SetRequestBody ¶
func (r *BusinessesGetRequest) SetRequestBody(body BusinessesGetRequestBody)
func (*BusinessesGetRequest) URL ¶
func (r *BusinessesGetRequest) URL() *url.URL
type BusinessesGetRequestBody ¶
type BusinessesGetRequestBody struct { }
type BusinessesGetRequestPathParams ¶
type BusinessesGetRequestPathParams struct { }
func (*BusinessesGetRequestPathParams) Params ¶
func (p *BusinessesGetRequestPathParams) Params() map[string]string
type BusinessesGetRequestQueryParams ¶
type BusinessesGetRequestQueryParams struct{}
func (BusinessesGetRequestQueryParams) ToURLValues ¶
func (p BusinessesGetRequestQueryParams) ToURLValues() (url.Values, error)
type BusinessesGetResponseBody ¶
type BusinessesGetResponseBody struct { Embedded struct { BusinessList BusinessList `json:"businessList"` } `json:"_embedded"` Links Links `json:"_links"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with Exact Globe 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) GetEndpointURL ¶
func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL
func (*Client) NewAccountingGroupsGetRequest ¶
func (c *Client) NewAccountingGroupsGetRequest() AccountingGroupsGetRequest
func (*Client) NewBusinessesGetRequest ¶
func (c *Client) NewBusinessesGetRequest() BusinessesGetRequest
func (*Client) NewDailyFinancialsGetRequest ¶
func (c *Client) NewDailyFinancialsGetRequest() DailyFinancialsGetRequest
func (*Client) NewFinancialsGetRequest ¶
func (c *Client) NewFinancialsGetRequest() FinancialsGetRequest
func (*Client) NewPaymentMethodsGetRequest ¶
func (c *Client) NewPaymentMethodsGetRequest() PaymentMethodsGetRequest
func (*Client) NewRequest ¶
func (*Client) SetBaseURL ¶
func (*Client) SetBeforeRequestDo ¶
func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)
func (*Client) SetCharset ¶
func (*Client) SetDisallowUnknownFields ¶
func (*Client) SetHTTPClient ¶
func (*Client) SetMediaType ¶
func (*Client) SetUserAgent ¶
type DailyFinancialsGetRequest ¶
type DailyFinancialsGetRequest struct {
// contains filtered or unexported fields
}
func (*DailyFinancialsGetRequest) Do ¶
func (r *DailyFinancialsGetRequest) Do() (DailyFinancialsGetResponseBody, error)
func (*DailyFinancialsGetRequest) Method ¶
func (r *DailyFinancialsGetRequest) Method() string
func (DailyFinancialsGetRequest) NewPathParams ¶
func (r DailyFinancialsGetRequest) NewPathParams() *DailyFinancialsGetRequestPathParams
func (DailyFinancialsGetRequest) NewQueryParams ¶
func (r DailyFinancialsGetRequest) NewQueryParams() *DailyFinancialsGetRequestQueryParams
func (DailyFinancialsGetRequest) NewRequestBody ¶
func (r DailyFinancialsGetRequest) NewRequestBody() DailyFinancialsGetRequestBody
func (*DailyFinancialsGetRequest) NewResponseBody ¶
func (r *DailyFinancialsGetRequest) NewResponseBody() *DailyFinancialsGetResponseBody
func (*DailyFinancialsGetRequest) PathParams ¶
func (r *DailyFinancialsGetRequest) PathParams() *DailyFinancialsGetRequestPathParams
func (*DailyFinancialsGetRequest) PathParamsInterface ¶
func (r *DailyFinancialsGetRequest) PathParamsInterface() PathParams
func (*DailyFinancialsGetRequest) QueryParams ¶
func (r *DailyFinancialsGetRequest) QueryParams() *DailyFinancialsGetRequestQueryParams
func (*DailyFinancialsGetRequest) RequestBody ¶
func (r *DailyFinancialsGetRequest) RequestBody() *DailyFinancialsGetRequestBody
func (*DailyFinancialsGetRequest) RequestBodyInterface ¶
func (r *DailyFinancialsGetRequest) RequestBodyInterface() interface{}
func (*DailyFinancialsGetRequest) SetMethod ¶
func (r *DailyFinancialsGetRequest) SetMethod(method string)
func (*DailyFinancialsGetRequest) SetRequestBody ¶
func (r *DailyFinancialsGetRequest) SetRequestBody(body DailyFinancialsGetRequestBody)
func (*DailyFinancialsGetRequest) URL ¶
func (r *DailyFinancialsGetRequest) URL() *url.URL
type DailyFinancialsGetRequestBody ¶
type DailyFinancialsGetRequestBody struct { }
type DailyFinancialsGetRequestPathParams ¶
type DailyFinancialsGetRequestPathParams struct {
BusinessID int
}
func (*DailyFinancialsGetRequestPathParams) Params ¶
func (p *DailyFinancialsGetRequestPathParams) Params() map[string]string
type DailyFinancialsGetRequestQueryParams ¶
type DailyFinancialsGetRequestQueryParams struct { Date Date `schema:"date,omitempty"` IncludeConsumers bool `schema:"includeConsumers,omitempty"` Include Includes `schema:"include,omitempty"` }
func (DailyFinancialsGetRequestQueryParams) ToURLValues ¶
func (p DailyFinancialsGetRequestQueryParams) ToURLValues() (url.Values, error)
type DailyFinancialsGetResponseBody ¶
type DailyFinancialsGetResponseBody struct { BusinessName string `json:"businessName"` NextStartOfDayAsIso8601 time.Time `json:"nextStartOfDayAsIso8601"` BusinessLocationID int64 `json:"businessLocationId"` Sales Sales `json:"sales"` DataComplete bool `json:"dataComplete"` Links Links `json:"_links"` }
type DateTime ¶
func (*DateTime) MarshalJSON ¶
func (DateTime) MarshalSchema ¶
func (*DateTime) UnmarshalJSON ¶
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response // Timestamp DateTime `json:"timestamp"` Status int `json:"status"` Err string `json:"error"` Exception string `json:"exception"` Message string `json:"message"` Path string `json:"path"` }
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type ErrorsResponse ¶
type ErrorsResponse struct { // HTTP response that caused this error Response *http.Response // Timestamp DateTime `json:"timestamp"` Errors []struct { Code string `json:"code"` Title string `json:"title"` } }
func (*ErrorsResponse) Error ¶
func (r *ErrorsResponse) Error() string
type FinancialsGetRequest ¶
type FinancialsGetRequest struct {
// contains filtered or unexported fields
}
func (*FinancialsGetRequest) All ¶
func (r *FinancialsGetRequest) All() (FinancialsGetResponseBody, error)
func (*FinancialsGetRequest) Do ¶
func (r *FinancialsGetRequest) Do() (FinancialsGetResponseBody, error)
func (*FinancialsGetRequest) Method ¶
func (r *FinancialsGetRequest) Method() string
func (FinancialsGetRequest) NewPathParams ¶
func (r FinancialsGetRequest) NewPathParams() *FinancialsGetRequestPathParams
func (FinancialsGetRequest) NewQueryParams ¶
func (r FinancialsGetRequest) NewQueryParams() *FinancialsGetRequestQueryParams
func (FinancialsGetRequest) NewRequestBody ¶
func (r FinancialsGetRequest) NewRequestBody() FinancialsGetRequestBody
func (*FinancialsGetRequest) NewResponseBody ¶
func (r *FinancialsGetRequest) NewResponseBody() *FinancialsGetResponseBody
func (*FinancialsGetRequest) PathParams ¶
func (r *FinancialsGetRequest) PathParams() *FinancialsGetRequestPathParams
func (*FinancialsGetRequest) PathParamsInterface ¶
func (r *FinancialsGetRequest) PathParamsInterface() PathParams
func (*FinancialsGetRequest) QueryParams ¶
func (r *FinancialsGetRequest) QueryParams() *FinancialsGetRequestQueryParams
func (*FinancialsGetRequest) RequestBody ¶
func (r *FinancialsGetRequest) RequestBody() *FinancialsGetRequestBody
func (*FinancialsGetRequest) RequestBodyInterface ¶
func (r *FinancialsGetRequest) RequestBodyInterface() interface{}
func (*FinancialsGetRequest) SetMethod ¶
func (r *FinancialsGetRequest) SetMethod(method string)
func (*FinancialsGetRequest) SetRequestBody ¶
func (r *FinancialsGetRequest) SetRequestBody(body FinancialsGetRequestBody)
func (*FinancialsGetRequest) URL ¶
func (r *FinancialsGetRequest) URL() *url.URL
type FinancialsGetRequestBody ¶
type FinancialsGetRequestBody struct { }
type FinancialsGetRequestPathParams ¶
func (*FinancialsGetRequestPathParams) Params ¶
func (p *FinancialsGetRequestPathParams) Params() map[string]string
type FinancialsGetRequestQueryParams ¶
type FinancialsGetRequestQueryParams struct { Include Includes `schema:"include,omitempty"` PageSize int `schema:"pageSize,omitempty"` NextPageToken string `schema:"nextPageToken,omitempty"` }
func (FinancialsGetRequestQueryParams) ToURLValues ¶
func (p FinancialsGetRequestQueryParams) ToURLValues() (url.Values, error)
type Oauth2Config ¶
func NewOauth2Config ¶
func NewOauth2Config() *Oauth2Config
type PathParams ¶
type Payment ¶
type Payment struct { Code string `json:"code"` Description string `json:"description"` PaymentMethodID int `json:"paymentMethodId"` NetAmountWithTax Number `json:"netAmountWithTax"` Currency string `json:"currency"` Tip Number `json:"tip"` Type string `json:"type"` DeviceID int `json:"deviceId"` DeviceName string `json:"deviceName"` }
type PaymentMethod ¶
type PaymentMethodList ¶
type PaymentMethodList []PaymentMethod
type PaymentMethodsGetRequest ¶
type PaymentMethodsGetRequest struct {
// contains filtered or unexported fields
}
func (*PaymentMethodsGetRequest) Do ¶
func (r *PaymentMethodsGetRequest) Do() (PaymentMethodsGetResponseBody, error)
func (*PaymentMethodsGetRequest) Method ¶
func (r *PaymentMethodsGetRequest) Method() string
func (PaymentMethodsGetRequest) NewPathParams ¶
func (r PaymentMethodsGetRequest) NewPathParams() *PaymentMethodsGetRequestPathParams
func (PaymentMethodsGetRequest) NewQueryParams ¶
func (r PaymentMethodsGetRequest) NewQueryParams() *PaymentMethodsGetRequestQueryParams
func (PaymentMethodsGetRequest) NewRequestBody ¶
func (r PaymentMethodsGetRequest) NewRequestBody() PaymentMethodsGetRequestBody
func (*PaymentMethodsGetRequest) NewResponseBody ¶
func (r *PaymentMethodsGetRequest) NewResponseBody() *PaymentMethodsGetResponseBody
func (*PaymentMethodsGetRequest) PathParams ¶
func (r *PaymentMethodsGetRequest) PathParams() *PaymentMethodsGetRequestPathParams
func (*PaymentMethodsGetRequest) PathParamsInterface ¶
func (r *PaymentMethodsGetRequest) PathParamsInterface() PathParams
func (*PaymentMethodsGetRequest) QueryParams ¶
func (r *PaymentMethodsGetRequest) QueryParams() *PaymentMethodsGetRequestQueryParams
func (*PaymentMethodsGetRequest) RequestBody ¶
func (r *PaymentMethodsGetRequest) RequestBody() *PaymentMethodsGetRequestBody
func (*PaymentMethodsGetRequest) RequestBodyInterface ¶
func (r *PaymentMethodsGetRequest) RequestBodyInterface() interface{}
func (*PaymentMethodsGetRequest) SetMethod ¶
func (r *PaymentMethodsGetRequest) SetMethod(method string)
func (*PaymentMethodsGetRequest) SetRequestBody ¶
func (r *PaymentMethodsGetRequest) SetRequestBody(body PaymentMethodsGetRequestBody)
func (*PaymentMethodsGetRequest) URL ¶
func (r *PaymentMethodsGetRequest) URL() *url.URL
type PaymentMethodsGetRequestBody ¶
type PaymentMethodsGetRequestBody struct { }
type PaymentMethodsGetRequestPathParams ¶
type PaymentMethodsGetRequestPathParams struct {
BusinessID int
}
func (*PaymentMethodsGetRequestPathParams) Params ¶
func (p *PaymentMethodsGetRequestPathParams) Params() map[string]string
type PaymentMethodsGetRequestQueryParams ¶
type PaymentMethodsGetRequestQueryParams struct { Date Date `schema:"date,omitempty"` IncludeConsumers bool `schema:"includeConsumers,omitempty"` Include Includes `schema:"include,omitempty"` }
func (PaymentMethodsGetRequestQueryParams) ToURLValues ¶
func (p PaymentMethodsGetRequestQueryParams) ToURLValues() (url.Values, error)
type PaymentMethodsGetResponseBody ¶
type PaymentMethodsGetResponseBody struct { Embedded struct { PaymentMethodList PaymentMethodList `json:"paymentMethodList"` } `json:"_embedded"` Links Links `json:"_links"` }
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 Sale ¶
type Sale struct { AccountReference string `json:"accountReference"` AccountFiscID string `json:"accountFiscId"` Source struct { InitialAccountID string `json:"initialAccountId"` PreviousAccountID string `json:"previousAccountId"` } `json:"source,omitempty"` SalesLines []struct { ID string `json:"id"` TotalNetAmountWithTax Number `json:"totalNetAmountWithTax"` TotalNetAmountWithoutTax Number `json:"totalNetAmountWithoutTax"` MenuListPrice Number `json:"menuListPrice"` UnitCostPrice Number `json:"unitCostPrice"` ServiceCharge Number `json:"serviceCharge"` ServiceChargeRate Number `json:"serviceChargeRate"` DiscountAmount Number `json:"discountAmount"` TaxAmount Number `json:"taxAmount"` DiscountType string `json:"discountType"` DiscountCode string `json:"discountCode"` DiscountName string `json:"discountName"` AccountDiscountAmount Number `json:"accountDiscountAmount"` TotalDiscountAmount Number `json:"totalDiscountAmount"` AccountDiscountType string `json:"accountDiscountType"` AccountDiscountCode string `json:"accountDiscountCode"` AccountDiscountName string `json:"accountDiscountName"` Sku string `json:"sku"` Name string `json:"name"` StatisticGroup string `json:"statisticGroup"` Quantity Number `json:"quantity"` TaxRatePercentage Number `json:"taxRatePercentage"` AccountingGroup struct { AccountingGroupID int64 `json:"accountingGroupId"` Name string `json:"name"` Code string `json:"code"` } `json:"accountingGroup"` Currency string `json:"currency"` Tags []interface{} `json:"tags"` Categories []struct { Category string `json:"category"` Value string `json:"value"` } `json:"categories"` TimeOfSale time.Time `json:"timeOfSale"` DeviceID int `json:"deviceId"` DeviceName string `json:"deviceName"` VoidReason string `json:"voidReason"` ParentLineID string `json:"parentLineId,omitempty"` } `json:"salesLines"` Payments Payments `json:"payments"` TimeOfOpening time.Time `json:"timeOfOpening"` TimeOfCloseAndPaid time.Time `json:"timeOfCloseAndPaid"` TableName string `json:"tableName"` Type string `json:"type"` ExternalReferences []string `json:"externalReferences,omitempty"` NbCovers float64 `json:"nbCovers"` DineIn bool `json:"dineIn"` DeviceID int `json:"deviceId"` DeviceName string `json:"deviceName"` VoidReason string `json:"voidReason"` ReceiptID string `json:"receiptId,omitempty"` }