Documentation ¶
Index ¶
- Variables
- func CheckResponse(r *http.Response) error
- type AccessTokenPathParams
- type BookerSummary
- 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) CompanyID() int
- func (c Client) Debug() bool
- func (c *Client) DefaultClient() *http.Client
- func (c *Client) Do(req *http.Request, responseBody interface{}) (*http.Response, error)
- func (c *Client) GetEndpointURL(path string, pathParams PathParams) url.URL
- func (c Client) MediaType() string
- func (c *Client) NewDeleteEventReservationsRequest() DeleteEventReservationsRequest
- func (c *Client) NewGetEventReservationsRequest() GetEventReservationsRequest
- func (c *Client) NewGetPersonsRequest() GetPersonsRequest
- func (c *Client) NewPostEventReservationsRequest() PostEventReservationsRequest
- func (c *Client) NewRequest(ctx context.Context, method string, URL url.URL, body interface{}) (*http.Request, error)
- func (c *Client) Scopes() []string
- func (c *Client) SetBaseURL(baseURL url.URL)
- func (c *Client) SetCharset(charset string)
- func (c *Client) SetClientID(ClientID string)
- func (c *Client) SetClientSecret(ClientSecret string)
- func (c *Client) SetCompanyID(companyID int)
- 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 Date
- type DateTime
- type DeleteEventReservationsPathParams
- type DeleteEventReservationsQueryParams
- type DeleteEventReservationsRequest
- func (r *DeleteEventReservationsRequest) Do() (DeleteEventReservationsResponseBody, error)
- func (r *DeleteEventReservationsRequest) Method() string
- func (r DeleteEventReservationsRequest) NewDeleteEventReservationsPathParams() *DeleteEventReservationsPathParams
- func (r DeleteEventReservationsRequest) NewDeleteEventReservationsQueryParams() *DeleteEventReservationsQueryParams
- func (r DeleteEventReservationsRequest) NewDeleteEventReservationsRequestBody() DeleteEventReservationsRequestBody
- func (r *DeleteEventReservationsRequest) NewResponseBody() *DeleteEventReservationsResponseBody
- func (r *DeleteEventReservationsRequest) PathParams() *DeleteEventReservationsPathParams
- func (r *DeleteEventReservationsRequest) QueryParams() *DeleteEventReservationsQueryParams
- func (r *DeleteEventReservationsRequest) RequestBody() *DeleteEventReservationsRequestBody
- func (r *DeleteEventReservationsRequest) SetMethod(method string)
- func (r *DeleteEventReservationsRequest) SetRequestBody(body DeleteEventReservationsRequestBody)
- func (r *DeleteEventReservationsRequest) URL() url.URL
- type DeleteEventReservationsRequestBody
- type DeleteEventReservationsResponseBody
- type ErrorResponse
- type Errors
- type EventReservation
- type EventReservations
- type GetEventReservationsPathParams
- type GetEventReservationsQueryParams
- type GetEventReservationsRequest
- func (r *GetEventReservationsRequest) Do() (GetEventReservationsResponseBody, error)
- func (r *GetEventReservationsRequest) Method() string
- func (r GetEventReservationsRequest) NewGetEventReservationsPathParams() *GetEventReservationsPathParams
- func (r GetEventReservationsRequest) NewGetEventReservationsQueryParams() *GetEventReservationsQueryParams
- func (r GetEventReservationsRequest) NewGetEventReservationsRequestBody() GetEventReservationsRequestBody
- func (r *GetEventReservationsRequest) NewResponseBody() *GetEventReservationsResponseBody
- func (r *GetEventReservationsRequest) PathParams() *GetEventReservationsPathParams
- func (r *GetEventReservationsRequest) QueryParams() *GetEventReservationsQueryParams
- func (r *GetEventReservationsRequest) RequestBody() *GetEventReservationsRequestBody
- func (r *GetEventReservationsRequest) SetMethod(method string)
- func (r *GetEventReservationsRequest) SetRequestBody(body GetEventReservationsRequestBody)
- func (r *GetEventReservationsRequest) URL() url.URL
- type GetEventReservationsRequestBody
- type GetEventReservationsResponseBody
- type GetPersonsPathParams
- type GetPersonsQueryParams
- type GetPersonsRequest
- func (r *GetPersonsRequest) Do() (GetPersonsResponseBody, error)
- func (r *GetPersonsRequest) Method() string
- func (r GetPersonsRequest) NewGetPersonsPathParams() *GetPersonsPathParams
- func (r GetPersonsRequest) NewGetPersonsQueryParams() *GetPersonsQueryParams
- func (r GetPersonsRequest) NewGetPersonsRequestBody() GetPersonsRequestBody
- func (r *GetPersonsRequest) NewResponseBody() *GetPersonsResponseBody
- func (r *GetPersonsRequest) PathParams() *GetPersonsPathParams
- func (r *GetPersonsRequest) QueryParams() *GetPersonsQueryParams
- func (r *GetPersonsRequest) RequestBody() *GetPersonsRequestBody
- func (r *GetPersonsRequest) SetMethod(method string)
- func (r *GetPersonsRequest) SetRequestBody(body GetPersonsRequestBody)
- func (r *GetPersonsRequest) URL() url.URL
- type GetPersonsRequestBody
- type GetPersonsResponseBody
- type GuestRemark
- type GuestRemarks
- type GuestSummary
- type LocalTime
- type MetaInformation
- type Number
- type PathParams
- type Person
- type Persons
- type PostEventReservationsPathParams
- type PostEventReservationsQueryParams
- type PostEventReservationsRequest
- func (r *PostEventReservationsRequest) Do() (PostEventReservationsResponseBody, error)
- func (r *PostEventReservationsRequest) Method() string
- func (r PostEventReservationsRequest) NewPostEventReservationsPathParams() *PostEventReservationsPathParams
- func (r PostEventReservationsRequest) NewPostEventReservationsQueryParams() *PostEventReservationsQueryParams
- func (r PostEventReservationsRequest) NewPostEventReservationsRequestBody() PostEventReservationsRequestBody
- func (r *PostEventReservationsRequest) NewResponseBody() *PostEventReservationsResponseBody
- func (r *PostEventReservationsRequest) PathParams() *PostEventReservationsPathParams
- func (r *PostEventReservationsRequest) QueryParams() *PostEventReservationsQueryParams
- func (r *PostEventReservationsRequest) RequestBody() *PostEventReservationsRequestBody
- func (r *PostEventReservationsRequest) SetMethod(method string)
- func (r *PostEventReservationsRequest) SetRequestBody(body PostEventReservationsRequestBody)
- func (r *PostEventReservationsRequest) URL() url.URL
- type PostEventReservationsRequestBody
- type PostEventReservationsResponseBody
- type RequestCompletionCallback
- type Resource
- type Resources
Constants ¶
This section is empty.
Variables ¶
var (
BaseURL = url.URL{
Scheme: "https",
Host: "{{.api}}.resengo.com",
Path: "",
}
)
Functions ¶
func CheckResponse ¶
CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.
Types ¶
type AccessTokenPathParams ¶
type AccessTokenPathParams struct{}
func (AccessTokenPathParams) Params ¶
func (pp AccessTokenPathParams) Params() map[string]string
type BookerSummary ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with Exact Globe Client
func NewClient ¶
func NewClient(httpClient *http.Client, companyID int, clientID string, clientSecret string) *Client
NewClient returns a new Exact Globe Client client
func (Client) ClientSecret ¶
func (*Client) DefaultClient ¶
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(path string, pathParams PathParams) url.URL
func (*Client) NewDeleteEventReservationsRequest ¶
func (c *Client) NewDeleteEventReservationsRequest() DeleteEventReservationsRequest
func (*Client) NewGetEventReservationsRequest ¶
func (c *Client) NewGetEventReservationsRequest() GetEventReservationsRequest
func (*Client) NewGetPersonsRequest ¶
func (c *Client) NewGetPersonsRequest() GetPersonsRequest
func (*Client) NewPostEventReservationsRequest ¶
func (c *Client) NewPostEventReservationsRequest() PostEventReservationsRequest
func (*Client) NewRequest ¶
func (*Client) SetBaseURL ¶
func (*Client) SetCharset ¶
func (*Client) SetClientID ¶
func (*Client) SetClientSecret ¶
func (*Client) SetCompanyID ¶
func (*Client) SetDisallowUnknownFields ¶
func (*Client) SetHTTPClient ¶
func (*Client) SetMediaType ¶
func (*Client) SetUserAgent ¶
type DeleteEventReservationsPathParams ¶
type DeleteEventReservationsPathParams struct {
EventReservationID int `schema:"eventreservation_id"`
}
func (*DeleteEventReservationsPathParams) Params ¶
func (p *DeleteEventReservationsPathParams) Params() map[string]string
type DeleteEventReservationsQueryParams ¶
type DeleteEventReservationsQueryParams struct{}
func (DeleteEventReservationsQueryParams) ToURLValues ¶
func (p DeleteEventReservationsQueryParams) ToURLValues() (url.Values, error)
type DeleteEventReservationsRequest ¶
type DeleteEventReservationsRequest struct {
// contains filtered or unexported fields
}
func (*DeleteEventReservationsRequest) Do ¶
func (r *DeleteEventReservationsRequest) Do() (DeleteEventReservationsResponseBody, error)
func (*DeleteEventReservationsRequest) Method ¶
func (r *DeleteEventReservationsRequest) Method() string
func (DeleteEventReservationsRequest) NewDeleteEventReservationsPathParams ¶
func (r DeleteEventReservationsRequest) NewDeleteEventReservationsPathParams() *DeleteEventReservationsPathParams
func (DeleteEventReservationsRequest) NewDeleteEventReservationsQueryParams ¶
func (r DeleteEventReservationsRequest) NewDeleteEventReservationsQueryParams() *DeleteEventReservationsQueryParams
func (DeleteEventReservationsRequest) NewDeleteEventReservationsRequestBody ¶
func (r DeleteEventReservationsRequest) NewDeleteEventReservationsRequestBody() DeleteEventReservationsRequestBody
func (*DeleteEventReservationsRequest) NewResponseBody ¶
func (r *DeleteEventReservationsRequest) NewResponseBody() *DeleteEventReservationsResponseBody
func (*DeleteEventReservationsRequest) PathParams ¶
func (r *DeleteEventReservationsRequest) PathParams() *DeleteEventReservationsPathParams
func (*DeleteEventReservationsRequest) QueryParams ¶
func (r *DeleteEventReservationsRequest) QueryParams() *DeleteEventReservationsQueryParams
func (*DeleteEventReservationsRequest) RequestBody ¶
func (r *DeleteEventReservationsRequest) RequestBody() *DeleteEventReservationsRequestBody
func (*DeleteEventReservationsRequest) SetMethod ¶
func (r *DeleteEventReservationsRequest) SetMethod(method string)
func (*DeleteEventReservationsRequest) SetRequestBody ¶
func (r *DeleteEventReservationsRequest) SetRequestBody(body DeleteEventReservationsRequestBody)
func (*DeleteEventReservationsRequest) URL ¶
func (r *DeleteEventReservationsRequest) URL() url.URL
type DeleteEventReservationsRequestBody ¶
type DeleteEventReservationsRequestBody struct{}
type DeleteEventReservationsResponseBody ¶
type DeleteEventReservationsResponseBody struct{}
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response `json:"-"` Errors error `json:"errors"` Type string `json:"type"` Title string `json:"title"` Status int `json:"status"` TraceID string `json:"traceId"` }
func (ErrorResponse) Error ¶
func (r ErrorResponse) Error() string
type Errors ¶
type EventReservation ¶
type EventReservation struct { ID int `json:"id"` CompanyID int `json:"companyId,omitempty"` TimeZone string `json:"timeZone"` StartTimeLocal LocalTime `json:"startTimeLocal"` EventCategoryID int `json:"eventCategoryId"` PartnerID int `json:"partnerId"` NumberOfPersons int `json:"numberOfPersons"` StatusID int `json:"statusId"` Index int `json:"index"` EventID int `json:"eventId"` ResourceIdsAreFixedChoice bool `json:"resourceIdsAreFixedChoice"` WaitingListPosition int `json:"waitingListPosition"` EndTimeLocal LocalTime `json:"endTimeLocal"` InternalRemark string `json:"internalRemark"` KitchenRemark string `json:"kitchenRemark"` Passage bool `json:"passage"` LastGuestRemarkTreatDateUtc time.Time `json:"lastGuestRemarkTreatDateUtc"` ExternalReservationID string `json:"externalReservationId"` CommunicationStatus string `json:"communicationStatus"` EmailReceptionStatus string `json:"emailReceptionStatus"` SMSReceptionStatus string `json:"smsReceptionStatus"` InsertDateUtc time.Time `json:"insertDateUtc"` UpdateDateUtc time.Time `json:"updateDateUtc"` GuestSummary GuestSummary `json:"guestSummary"` BookerSummary BookerSummary `json:"bookerSummary"` GuestRemarks GuestRemarks `json:"guestRemarks"` Includes struct { Resources Resources `json:"resources"` } `json:"includes"` ManualAssignedResources bool `json:"manualAssignedResources"` }
type EventReservations ¶
type EventReservations []EventReservation
type GetEventReservationsPathParams ¶
type GetEventReservationsPathParams struct { }
func (*GetEventReservationsPathParams) Params ¶
func (p *GetEventReservationsPathParams) Params() map[string]string
type GetEventReservationsQueryParams ¶
type GetEventReservationsQueryParams struct { Page int `schema:"Page,omitempty"` PageSize int `schema:"PageSize,omitempty"` GuestName string }
func (GetEventReservationsQueryParams) ToURLValues ¶
func (p GetEventReservationsQueryParams) ToURLValues() (url.Values, error)
type GetEventReservationsRequest ¶
type GetEventReservationsRequest struct {
// contains filtered or unexported fields
}
func (*GetEventReservationsRequest) Do ¶
func (r *GetEventReservationsRequest) Do() (GetEventReservationsResponseBody, error)
func (*GetEventReservationsRequest) Method ¶
func (r *GetEventReservationsRequest) Method() string
func (GetEventReservationsRequest) NewGetEventReservationsPathParams ¶
func (r GetEventReservationsRequest) NewGetEventReservationsPathParams() *GetEventReservationsPathParams
func (GetEventReservationsRequest) NewGetEventReservationsQueryParams ¶
func (r GetEventReservationsRequest) NewGetEventReservationsQueryParams() *GetEventReservationsQueryParams
func (GetEventReservationsRequest) NewGetEventReservationsRequestBody ¶
func (r GetEventReservationsRequest) NewGetEventReservationsRequestBody() GetEventReservationsRequestBody
func (*GetEventReservationsRequest) NewResponseBody ¶
func (r *GetEventReservationsRequest) NewResponseBody() *GetEventReservationsResponseBody
func (*GetEventReservationsRequest) PathParams ¶
func (r *GetEventReservationsRequest) PathParams() *GetEventReservationsPathParams
func (*GetEventReservationsRequest) QueryParams ¶
func (r *GetEventReservationsRequest) QueryParams() *GetEventReservationsQueryParams
func (*GetEventReservationsRequest) RequestBody ¶
func (r *GetEventReservationsRequest) RequestBody() *GetEventReservationsRequestBody
func (*GetEventReservationsRequest) SetMethod ¶
func (r *GetEventReservationsRequest) SetMethod(method string)
func (*GetEventReservationsRequest) SetRequestBody ¶
func (r *GetEventReservationsRequest) SetRequestBody(body GetEventReservationsRequestBody)
func (*GetEventReservationsRequest) URL ¶
func (r *GetEventReservationsRequest) URL() url.URL
type GetEventReservationsRequestBody ¶
type GetEventReservationsRequestBody struct{}
type GetEventReservationsResponseBody ¶
type GetEventReservationsResponseBody EventReservations
type GetPersonsPathParams ¶
type GetPersonsPathParams struct { }
func (*GetPersonsPathParams) Params ¶
func (p *GetPersonsPathParams) Params() map[string]string
type GetPersonsQueryParams ¶
type GetPersonsQueryParams struct { Page int `schema:"Page,omitempty"` PageSize int `schema:"PageSize,omitempty"` GuestName string `schema:"GuestName,omitempty"` }
func (GetPersonsQueryParams) ToURLValues ¶
func (p GetPersonsQueryParams) ToURLValues() (url.Values, error)
type GetPersonsRequest ¶
type GetPersonsRequest struct {
// contains filtered or unexported fields
}
func (*GetPersonsRequest) Do ¶
func (r *GetPersonsRequest) Do() (GetPersonsResponseBody, error)
func (*GetPersonsRequest) Method ¶
func (r *GetPersonsRequest) Method() string
func (GetPersonsRequest) NewGetPersonsPathParams ¶
func (r GetPersonsRequest) NewGetPersonsPathParams() *GetPersonsPathParams
func (GetPersonsRequest) NewGetPersonsQueryParams ¶
func (r GetPersonsRequest) NewGetPersonsQueryParams() *GetPersonsQueryParams
func (GetPersonsRequest) NewGetPersonsRequestBody ¶
func (r GetPersonsRequest) NewGetPersonsRequestBody() GetPersonsRequestBody
func (*GetPersonsRequest) NewResponseBody ¶
func (r *GetPersonsRequest) NewResponseBody() *GetPersonsResponseBody
func (*GetPersonsRequest) PathParams ¶
func (r *GetPersonsRequest) PathParams() *GetPersonsPathParams
func (*GetPersonsRequest) QueryParams ¶
func (r *GetPersonsRequest) QueryParams() *GetPersonsQueryParams
func (*GetPersonsRequest) RequestBody ¶
func (r *GetPersonsRequest) RequestBody() *GetPersonsRequestBody
func (*GetPersonsRequest) SetMethod ¶
func (r *GetPersonsRequest) SetMethod(method string)
func (*GetPersonsRequest) SetRequestBody ¶
func (r *GetPersonsRequest) SetRequestBody(body GetPersonsRequestBody)
func (*GetPersonsRequest) URL ¶
func (r *GetPersonsRequest) URL() url.URL
type GetPersonsRequestBody ¶
type GetPersonsRequestBody struct{}
type GetPersonsResponseBody ¶
type GetPersonsResponseBody Persons
type GuestRemark ¶
type GuestRemarks ¶
type GuestRemarks []GuestRemark
type GuestSummary ¶
type MetaInformation ¶
type PathParams ¶
type PostEventReservationsPathParams ¶
type PostEventReservationsPathParams struct { }
func (*PostEventReservationsPathParams) Params ¶
func (p *PostEventReservationsPathParams) Params() map[string]string
type PostEventReservationsQueryParams ¶
type PostEventReservationsQueryParams struct { }
func (PostEventReservationsQueryParams) ToURLValues ¶
func (p PostEventReservationsQueryParams) ToURLValues() (url.Values, error)
type PostEventReservationsRequest ¶
type PostEventReservationsRequest struct {
// contains filtered or unexported fields
}
func (*PostEventReservationsRequest) Do ¶
func (r *PostEventReservationsRequest) Do() (PostEventReservationsResponseBody, error)
func (*PostEventReservationsRequest) Method ¶
func (r *PostEventReservationsRequest) Method() string
func (PostEventReservationsRequest) NewPostEventReservationsPathParams ¶
func (r PostEventReservationsRequest) NewPostEventReservationsPathParams() *PostEventReservationsPathParams
func (PostEventReservationsRequest) NewPostEventReservationsQueryParams ¶
func (r PostEventReservationsRequest) NewPostEventReservationsQueryParams() *PostEventReservationsQueryParams
func (PostEventReservationsRequest) NewPostEventReservationsRequestBody ¶
func (r PostEventReservationsRequest) NewPostEventReservationsRequestBody() PostEventReservationsRequestBody
func (*PostEventReservationsRequest) NewResponseBody ¶
func (r *PostEventReservationsRequest) NewResponseBody() *PostEventReservationsResponseBody
func (*PostEventReservationsRequest) PathParams ¶
func (r *PostEventReservationsRequest) PathParams() *PostEventReservationsPathParams
func (*PostEventReservationsRequest) QueryParams ¶
func (r *PostEventReservationsRequest) QueryParams() *PostEventReservationsQueryParams
func (*PostEventReservationsRequest) RequestBody ¶
func (r *PostEventReservationsRequest) RequestBody() *PostEventReservationsRequestBody
func (*PostEventReservationsRequest) SetMethod ¶
func (r *PostEventReservationsRequest) SetMethod(method string)
func (*PostEventReservationsRequest) SetRequestBody ¶
func (r *PostEventReservationsRequest) SetRequestBody(body PostEventReservationsRequestBody)
func (*PostEventReservationsRequest) URL ¶
func (r *PostEventReservationsRequest) URL() url.URL
type PostEventReservationsRequestBody ¶
type PostEventReservationsRequestBody EventReservation
type PostEventReservationsResponseBody ¶
type PostEventReservationsResponseBody EventReservation
type RequestCompletionCallback ¶
RequestCompletionCallback defines the type of the request callback function