bookings

package
v0.0.0-...-dc3cc4a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelBookingOK

type CancelBookingOK struct {
	Payload *models.CancelBookingResponse
}
CancelBookingOK describes a response with status code 200, with default header values.

Success

func NewCancelBookingOK

func NewCancelBookingOK() *CancelBookingOK

NewCancelBookingOK creates a CancelBookingOK with default headers values

func (*CancelBookingOK) Error

func (o *CancelBookingOK) Error() string

func (*CancelBookingOK) GetPayload

func (o *CancelBookingOK) GetPayload() *models.CancelBookingResponse

type CancelBookingParams

type CancelBookingParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CancelBookingRequest

	/* BookingID.

	   The ID of the `Booking` object representing the to-be-cancelled booking.
	*/
	BookingID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CancelBookingParams contains all the parameters to send to the API endpoint

for the cancel booking operation.

Typically these are written to a http.Request.

func NewCancelBookingParams

func NewCancelBookingParams() *CancelBookingParams

NewCancelBookingParams creates a new CancelBookingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCancelBookingParamsWithContext

func NewCancelBookingParamsWithContext(ctx context.Context) *CancelBookingParams

NewCancelBookingParamsWithContext creates a new CancelBookingParams object with the ability to set a context for a request.

func NewCancelBookingParamsWithHTTPClient

func NewCancelBookingParamsWithHTTPClient(client *http.Client) *CancelBookingParams

NewCancelBookingParamsWithHTTPClient creates a new CancelBookingParams object with the ability to set a custom HTTPClient for a request.

func NewCancelBookingParamsWithTimeout

func NewCancelBookingParamsWithTimeout(timeout time.Duration) *CancelBookingParams

NewCancelBookingParamsWithTimeout creates a new CancelBookingParams object with the ability to set a timeout on a request.

func (*CancelBookingParams) SetBody

SetBody adds the body to the cancel booking params

func (*CancelBookingParams) SetBookingID

func (o *CancelBookingParams) SetBookingID(bookingID string)

SetBookingID adds the bookingId to the cancel booking params

func (*CancelBookingParams) SetContext

func (o *CancelBookingParams) SetContext(ctx context.Context)

SetContext adds the context to the cancel booking params

func (*CancelBookingParams) SetDefaults

func (o *CancelBookingParams) SetDefaults()

SetDefaults hydrates default values in the cancel booking params (not the query body).

All values with no default are reset to their zero value.

func (*CancelBookingParams) SetHTTPClient

func (o *CancelBookingParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cancel booking params

func (*CancelBookingParams) SetTimeout

func (o *CancelBookingParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cancel booking params

func (*CancelBookingParams) WithBody

WithBody adds the body to the cancel booking params

func (*CancelBookingParams) WithBookingID

func (o *CancelBookingParams) WithBookingID(bookingID string) *CancelBookingParams

WithBookingID adds the bookingID to the cancel booking params

func (*CancelBookingParams) WithContext

WithContext adds the context to the cancel booking params

func (*CancelBookingParams) WithDefaults

func (o *CancelBookingParams) WithDefaults() *CancelBookingParams

WithDefaults hydrates default values in the cancel booking params (not the query body).

All values with no default are reset to their zero value.

func (*CancelBookingParams) WithHTTPClient

func (o *CancelBookingParams) WithHTTPClient(client *http.Client) *CancelBookingParams

WithHTTPClient adds the HTTPClient to the cancel booking params

func (*CancelBookingParams) WithTimeout

func (o *CancelBookingParams) WithTimeout(timeout time.Duration) *CancelBookingParams

WithTimeout adds the timeout to the cancel booking params

func (*CancelBookingParams) WriteToRequest

func (o *CancelBookingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CancelBookingReader

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

CancelBookingReader is a Reader for the CancelBooking structure.

func (*CancelBookingReader) ReadResponse

func (o *CancelBookingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for bookings API

func (*Client) CancelBooking

func (a *Client) CancelBooking(params *CancelBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelBookingOK, error)

CancelBooking cancels booking

Cancels an existing booking.

func (*Client) CreateBooking

func (a *Client) CreateBooking(params *CreateBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBookingOK, error)

CreateBooking creates booking

Creates a booking.

func (*Client) ListTeamMemberBookingProfiles

func (a *Client) ListTeamMemberBookingProfiles(params *ListTeamMemberBookingProfilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamMemberBookingProfilesOK, error)

ListTeamMemberBookingProfiles lists team member booking profiles

Lists booking profiles for team members.

func (*Client) RetrieveBooking

func (a *Client) RetrieveBooking(params *RetrieveBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveBookingOK, error)

RetrieveBooking retrieves booking

Retrieves a booking.

func (*Client) RetrieveBusinessBookingProfile

func (a *Client) RetrieveBusinessBookingProfile(params *RetrieveBusinessBookingProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveBusinessBookingProfileOK, error)

RetrieveBusinessBookingProfile retrieves business booking profile

Retrieves a seller's booking profile.

func (*Client) RetrieveTeamMemberBookingProfile

func (a *Client) RetrieveTeamMemberBookingProfile(params *RetrieveTeamMemberBookingProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveTeamMemberBookingProfileOK, error)

RetrieveTeamMemberBookingProfile retrieves team member booking profile

Retrieves a team member's booking profile.

func (*Client) SearchAvailability

func (a *Client) SearchAvailability(params *SearchAvailabilityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchAvailabilityOK, error)

SearchAvailability searches availability

Searches for availabilities for booking.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateBooking

func (a *Client) UpdateBooking(params *UpdateBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBookingOK, error)

UpdateBooking updates booking

Updates a booking.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CancelBooking(params *CancelBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelBookingOK, error)

	CreateBooking(params *CreateBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBookingOK, error)

	ListTeamMemberBookingProfiles(params *ListTeamMemberBookingProfilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamMemberBookingProfilesOK, error)

	RetrieveBooking(params *RetrieveBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveBookingOK, error)

	RetrieveBusinessBookingProfile(params *RetrieveBusinessBookingProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveBusinessBookingProfileOK, error)

	RetrieveTeamMemberBookingProfile(params *RetrieveTeamMemberBookingProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveTeamMemberBookingProfileOK, error)

	SearchAvailability(params *SearchAvailabilityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchAvailabilityOK, error)

	UpdateBooking(params *UpdateBookingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBookingOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new bookings API client.

type CreateBookingOK

type CreateBookingOK struct {
	Payload *models.CreateBookingResponse
}
CreateBookingOK describes a response with status code 200, with default header values.

Success

func NewCreateBookingOK

func NewCreateBookingOK() *CreateBookingOK

NewCreateBookingOK creates a CreateBookingOK with default headers values

func (*CreateBookingOK) Error

func (o *CreateBookingOK) Error() string

func (*CreateBookingOK) GetPayload

func (o *CreateBookingOK) GetPayload() *models.CreateBookingResponse

type CreateBookingParams

type CreateBookingParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CreateBookingRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateBookingParams contains all the parameters to send to the API endpoint

for the create booking operation.

Typically these are written to a http.Request.

func NewCreateBookingParams

func NewCreateBookingParams() *CreateBookingParams

NewCreateBookingParams creates a new CreateBookingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateBookingParamsWithContext

func NewCreateBookingParamsWithContext(ctx context.Context) *CreateBookingParams

NewCreateBookingParamsWithContext creates a new CreateBookingParams object with the ability to set a context for a request.

func NewCreateBookingParamsWithHTTPClient

func NewCreateBookingParamsWithHTTPClient(client *http.Client) *CreateBookingParams

NewCreateBookingParamsWithHTTPClient creates a new CreateBookingParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBookingParamsWithTimeout

func NewCreateBookingParamsWithTimeout(timeout time.Duration) *CreateBookingParams

NewCreateBookingParamsWithTimeout creates a new CreateBookingParams object with the ability to set a timeout on a request.

func (*CreateBookingParams) SetBody

SetBody adds the body to the create booking params

func (*CreateBookingParams) SetContext

func (o *CreateBookingParams) SetContext(ctx context.Context)

SetContext adds the context to the create booking params

func (*CreateBookingParams) SetDefaults

func (o *CreateBookingParams) SetDefaults()

SetDefaults hydrates default values in the create booking params (not the query body).

All values with no default are reset to their zero value.

func (*CreateBookingParams) SetHTTPClient

func (o *CreateBookingParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create booking params

func (*CreateBookingParams) SetTimeout

func (o *CreateBookingParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create booking params

func (*CreateBookingParams) WithBody

WithBody adds the body to the create booking params

func (*CreateBookingParams) WithContext

WithContext adds the context to the create booking params

func (*CreateBookingParams) WithDefaults

func (o *CreateBookingParams) WithDefaults() *CreateBookingParams

WithDefaults hydrates default values in the create booking params (not the query body).

All values with no default are reset to their zero value.

func (*CreateBookingParams) WithHTTPClient

func (o *CreateBookingParams) WithHTTPClient(client *http.Client) *CreateBookingParams

WithHTTPClient adds the HTTPClient to the create booking params

func (*CreateBookingParams) WithTimeout

func (o *CreateBookingParams) WithTimeout(timeout time.Duration) *CreateBookingParams

WithTimeout adds the timeout to the create booking params

func (*CreateBookingParams) WriteToRequest

func (o *CreateBookingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateBookingReader

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

CreateBookingReader is a Reader for the CreateBooking structure.

func (*CreateBookingReader) ReadResponse

func (o *CreateBookingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListTeamMemberBookingProfilesOK

type ListTeamMemberBookingProfilesOK struct {
	Payload *models.ListTeamMemberBookingProfilesResponse
}
ListTeamMemberBookingProfilesOK describes a response with status code 200, with default header values.

Success

func NewListTeamMemberBookingProfilesOK

func NewListTeamMemberBookingProfilesOK() *ListTeamMemberBookingProfilesOK

NewListTeamMemberBookingProfilesOK creates a ListTeamMemberBookingProfilesOK with default headers values

func (*ListTeamMemberBookingProfilesOK) Error

func (*ListTeamMemberBookingProfilesOK) GetPayload

type ListTeamMemberBookingProfilesParams

type ListTeamMemberBookingProfilesParams struct {

	/* BookableOnly.

	   Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).
	*/
	BookableOnly *bool

	/* Cursor.

	   The cursor for paginating through the results.
	*/
	Cursor *string

	/* Limit.

	   The maximum number of results to return.
	*/
	Limit *int64

	/* LocationID.

	   Indicates whether to include only team members enabled at the given location in the returned result.
	*/
	LocationID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListTeamMemberBookingProfilesParams contains all the parameters to send to the API endpoint

for the list team member booking profiles operation.

Typically these are written to a http.Request.

func NewListTeamMemberBookingProfilesParams

func NewListTeamMemberBookingProfilesParams() *ListTeamMemberBookingProfilesParams

NewListTeamMemberBookingProfilesParams creates a new ListTeamMemberBookingProfilesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListTeamMemberBookingProfilesParamsWithContext

func NewListTeamMemberBookingProfilesParamsWithContext(ctx context.Context) *ListTeamMemberBookingProfilesParams

NewListTeamMemberBookingProfilesParamsWithContext creates a new ListTeamMemberBookingProfilesParams object with the ability to set a context for a request.

func NewListTeamMemberBookingProfilesParamsWithHTTPClient

func NewListTeamMemberBookingProfilesParamsWithHTTPClient(client *http.Client) *ListTeamMemberBookingProfilesParams

NewListTeamMemberBookingProfilesParamsWithHTTPClient creates a new ListTeamMemberBookingProfilesParams object with the ability to set a custom HTTPClient for a request.

func NewListTeamMemberBookingProfilesParamsWithTimeout

func NewListTeamMemberBookingProfilesParamsWithTimeout(timeout time.Duration) *ListTeamMemberBookingProfilesParams

NewListTeamMemberBookingProfilesParamsWithTimeout creates a new ListTeamMemberBookingProfilesParams object with the ability to set a timeout on a request.

func (*ListTeamMemberBookingProfilesParams) SetBookableOnly

func (o *ListTeamMemberBookingProfilesParams) SetBookableOnly(bookableOnly *bool)

SetBookableOnly adds the bookableOnly to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetContext

SetContext adds the context to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetCursor

func (o *ListTeamMemberBookingProfilesParams) SetCursor(cursor *string)

SetCursor adds the cursor to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetDefaults

func (o *ListTeamMemberBookingProfilesParams) SetDefaults()

SetDefaults hydrates default values in the list team member booking profiles params (not the query body).

All values with no default are reset to their zero value.

func (*ListTeamMemberBookingProfilesParams) SetHTTPClient

func (o *ListTeamMemberBookingProfilesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetLimit

func (o *ListTeamMemberBookingProfilesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetLocationID

func (o *ListTeamMemberBookingProfilesParams) SetLocationID(locationID *string)

SetLocationID adds the locationId to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) SetTimeout

func (o *ListTeamMemberBookingProfilesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithBookableOnly

WithBookableOnly adds the bookableOnly to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithContext

WithContext adds the context to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithCursor

WithCursor adds the cursor to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithDefaults

WithDefaults hydrates default values in the list team member booking profiles params (not the query body).

All values with no default are reset to their zero value.

func (*ListTeamMemberBookingProfilesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithLimit

WithLimit adds the limit to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithLocationID

WithLocationID adds the locationID to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WithTimeout

WithTimeout adds the timeout to the list team member booking profiles params

func (*ListTeamMemberBookingProfilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTeamMemberBookingProfilesReader

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

ListTeamMemberBookingProfilesReader is a Reader for the ListTeamMemberBookingProfiles structure.

func (*ListTeamMemberBookingProfilesReader) ReadResponse

func (o *ListTeamMemberBookingProfilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RetrieveBookingOK

type RetrieveBookingOK struct {
	Payload *models.RetrieveBookingResponse
}
RetrieveBookingOK describes a response with status code 200, with default header values.

Success

func NewRetrieveBookingOK

func NewRetrieveBookingOK() *RetrieveBookingOK

NewRetrieveBookingOK creates a RetrieveBookingOK with default headers values

func (*RetrieveBookingOK) Error

func (o *RetrieveBookingOK) Error() string

func (*RetrieveBookingOK) GetPayload

type RetrieveBookingParams

type RetrieveBookingParams struct {

	/* BookingID.

	   The ID of the `Booking` object representing the to-be-retrieved booking.
	*/
	BookingID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RetrieveBookingParams contains all the parameters to send to the API endpoint

for the retrieve booking operation.

Typically these are written to a http.Request.

func NewRetrieveBookingParams

func NewRetrieveBookingParams() *RetrieveBookingParams

NewRetrieveBookingParams creates a new RetrieveBookingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRetrieveBookingParamsWithContext

func NewRetrieveBookingParamsWithContext(ctx context.Context) *RetrieveBookingParams

NewRetrieveBookingParamsWithContext creates a new RetrieveBookingParams object with the ability to set a context for a request.

func NewRetrieveBookingParamsWithHTTPClient

func NewRetrieveBookingParamsWithHTTPClient(client *http.Client) *RetrieveBookingParams

NewRetrieveBookingParamsWithHTTPClient creates a new RetrieveBookingParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveBookingParamsWithTimeout

func NewRetrieveBookingParamsWithTimeout(timeout time.Duration) *RetrieveBookingParams

NewRetrieveBookingParamsWithTimeout creates a new RetrieveBookingParams object with the ability to set a timeout on a request.

func (*RetrieveBookingParams) SetBookingID

func (o *RetrieveBookingParams) SetBookingID(bookingID string)

SetBookingID adds the bookingId to the retrieve booking params

func (*RetrieveBookingParams) SetContext

func (o *RetrieveBookingParams) SetContext(ctx context.Context)

SetContext adds the context to the retrieve booking params

func (*RetrieveBookingParams) SetDefaults

func (o *RetrieveBookingParams) SetDefaults()

SetDefaults hydrates default values in the retrieve booking params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveBookingParams) SetHTTPClient

func (o *RetrieveBookingParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the retrieve booking params

func (*RetrieveBookingParams) SetTimeout

func (o *RetrieveBookingParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the retrieve booking params

func (*RetrieveBookingParams) WithBookingID

func (o *RetrieveBookingParams) WithBookingID(bookingID string) *RetrieveBookingParams

WithBookingID adds the bookingID to the retrieve booking params

func (*RetrieveBookingParams) WithContext

WithContext adds the context to the retrieve booking params

func (*RetrieveBookingParams) WithDefaults

func (o *RetrieveBookingParams) WithDefaults() *RetrieveBookingParams

WithDefaults hydrates default values in the retrieve booking params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveBookingParams) WithHTTPClient

func (o *RetrieveBookingParams) WithHTTPClient(client *http.Client) *RetrieveBookingParams

WithHTTPClient adds the HTTPClient to the retrieve booking params

func (*RetrieveBookingParams) WithTimeout

func (o *RetrieveBookingParams) WithTimeout(timeout time.Duration) *RetrieveBookingParams

WithTimeout adds the timeout to the retrieve booking params

func (*RetrieveBookingParams) WriteToRequest

func (o *RetrieveBookingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RetrieveBookingReader

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

RetrieveBookingReader is a Reader for the RetrieveBooking structure.

func (*RetrieveBookingReader) ReadResponse

func (o *RetrieveBookingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RetrieveBusinessBookingProfileOK

type RetrieveBusinessBookingProfileOK struct {
	Payload *models.RetrieveBusinessBookingProfileResponse
}
RetrieveBusinessBookingProfileOK describes a response with status code 200, with default header values.

Success

func NewRetrieveBusinessBookingProfileOK

func NewRetrieveBusinessBookingProfileOK() *RetrieveBusinessBookingProfileOK

NewRetrieveBusinessBookingProfileOK creates a RetrieveBusinessBookingProfileOK with default headers values

func (*RetrieveBusinessBookingProfileOK) Error

func (*RetrieveBusinessBookingProfileOK) GetPayload

type RetrieveBusinessBookingProfileParams

type RetrieveBusinessBookingProfileParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RetrieveBusinessBookingProfileParams contains all the parameters to send to the API endpoint

for the retrieve business booking profile operation.

Typically these are written to a http.Request.

func NewRetrieveBusinessBookingProfileParams

func NewRetrieveBusinessBookingProfileParams() *RetrieveBusinessBookingProfileParams

NewRetrieveBusinessBookingProfileParams creates a new RetrieveBusinessBookingProfileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRetrieveBusinessBookingProfileParamsWithContext

func NewRetrieveBusinessBookingProfileParamsWithContext(ctx context.Context) *RetrieveBusinessBookingProfileParams

NewRetrieveBusinessBookingProfileParamsWithContext creates a new RetrieveBusinessBookingProfileParams object with the ability to set a context for a request.

func NewRetrieveBusinessBookingProfileParamsWithHTTPClient

func NewRetrieveBusinessBookingProfileParamsWithHTTPClient(client *http.Client) *RetrieveBusinessBookingProfileParams

NewRetrieveBusinessBookingProfileParamsWithHTTPClient creates a new RetrieveBusinessBookingProfileParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveBusinessBookingProfileParamsWithTimeout

func NewRetrieveBusinessBookingProfileParamsWithTimeout(timeout time.Duration) *RetrieveBusinessBookingProfileParams

NewRetrieveBusinessBookingProfileParamsWithTimeout creates a new RetrieveBusinessBookingProfileParams object with the ability to set a timeout on a request.

func (*RetrieveBusinessBookingProfileParams) SetContext

SetContext adds the context to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) SetDefaults

func (o *RetrieveBusinessBookingProfileParams) SetDefaults()

SetDefaults hydrates default values in the retrieve business booking profile params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveBusinessBookingProfileParams) SetHTTPClient

func (o *RetrieveBusinessBookingProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) SetTimeout

func (o *RetrieveBusinessBookingProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) WithContext

WithContext adds the context to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) WithDefaults

WithDefaults hydrates default values in the retrieve business booking profile params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveBusinessBookingProfileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) WithTimeout

WithTimeout adds the timeout to the retrieve business booking profile params

func (*RetrieveBusinessBookingProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveBusinessBookingProfileReader

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

RetrieveBusinessBookingProfileReader is a Reader for the RetrieveBusinessBookingProfile structure.

func (*RetrieveBusinessBookingProfileReader) ReadResponse

func (o *RetrieveBusinessBookingProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RetrieveTeamMemberBookingProfileOK

type RetrieveTeamMemberBookingProfileOK struct {
	Payload *models.RetrieveTeamMemberBookingProfileResponse
}
RetrieveTeamMemberBookingProfileOK describes a response with status code 200, with default header values.

Success

func NewRetrieveTeamMemberBookingProfileOK

func NewRetrieveTeamMemberBookingProfileOK() *RetrieveTeamMemberBookingProfileOK

NewRetrieveTeamMemberBookingProfileOK creates a RetrieveTeamMemberBookingProfileOK with default headers values

func (*RetrieveTeamMemberBookingProfileOK) Error

func (*RetrieveTeamMemberBookingProfileOK) GetPayload

type RetrieveTeamMemberBookingProfileParams

type RetrieveTeamMemberBookingProfileParams struct {

	/* TeamMemberID.

	   The ID of the team member to retrieve.
	*/
	TeamMemberID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RetrieveTeamMemberBookingProfileParams contains all the parameters to send to the API endpoint

for the retrieve team member booking profile operation.

Typically these are written to a http.Request.

func NewRetrieveTeamMemberBookingProfileParams

func NewRetrieveTeamMemberBookingProfileParams() *RetrieveTeamMemberBookingProfileParams

NewRetrieveTeamMemberBookingProfileParams creates a new RetrieveTeamMemberBookingProfileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRetrieveTeamMemberBookingProfileParamsWithContext

func NewRetrieveTeamMemberBookingProfileParamsWithContext(ctx context.Context) *RetrieveTeamMemberBookingProfileParams

NewRetrieveTeamMemberBookingProfileParamsWithContext creates a new RetrieveTeamMemberBookingProfileParams object with the ability to set a context for a request.

func NewRetrieveTeamMemberBookingProfileParamsWithHTTPClient

func NewRetrieveTeamMemberBookingProfileParamsWithHTTPClient(client *http.Client) *RetrieveTeamMemberBookingProfileParams

NewRetrieveTeamMemberBookingProfileParamsWithHTTPClient creates a new RetrieveTeamMemberBookingProfileParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveTeamMemberBookingProfileParamsWithTimeout

func NewRetrieveTeamMemberBookingProfileParamsWithTimeout(timeout time.Duration) *RetrieveTeamMemberBookingProfileParams

NewRetrieveTeamMemberBookingProfileParamsWithTimeout creates a new RetrieveTeamMemberBookingProfileParams object with the ability to set a timeout on a request.

func (*RetrieveTeamMemberBookingProfileParams) SetContext

SetContext adds the context to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) SetDefaults

func (o *RetrieveTeamMemberBookingProfileParams) SetDefaults()

SetDefaults hydrates default values in the retrieve team member booking profile params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveTeamMemberBookingProfileParams) SetHTTPClient

func (o *RetrieveTeamMemberBookingProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) SetTeamMemberID

func (o *RetrieveTeamMemberBookingProfileParams) SetTeamMemberID(teamMemberID string)

SetTeamMemberID adds the teamMemberId to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) SetTimeout

func (o *RetrieveTeamMemberBookingProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) WithContext

WithContext adds the context to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) WithDefaults

WithDefaults hydrates default values in the retrieve team member booking profile params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveTeamMemberBookingProfileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) WithTeamMemberID

WithTeamMemberID adds the teamMemberID to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) WithTimeout

WithTimeout adds the timeout to the retrieve team member booking profile params

func (*RetrieveTeamMemberBookingProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveTeamMemberBookingProfileReader

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

RetrieveTeamMemberBookingProfileReader is a Reader for the RetrieveTeamMemberBookingProfile structure.

func (*RetrieveTeamMemberBookingProfileReader) ReadResponse

func (o *RetrieveTeamMemberBookingProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchAvailabilityOK

type SearchAvailabilityOK struct {
	Payload *models.SearchAvailabilityResponse
}
SearchAvailabilityOK describes a response with status code 200, with default header values.

Success

func NewSearchAvailabilityOK

func NewSearchAvailabilityOK() *SearchAvailabilityOK

NewSearchAvailabilityOK creates a SearchAvailabilityOK with default headers values

func (*SearchAvailabilityOK) Error

func (o *SearchAvailabilityOK) Error() string

func (*SearchAvailabilityOK) GetPayload

type SearchAvailabilityParams

type SearchAvailabilityParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchAvailabilityRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchAvailabilityParams contains all the parameters to send to the API endpoint

for the search availability operation.

Typically these are written to a http.Request.

func NewSearchAvailabilityParams

func NewSearchAvailabilityParams() *SearchAvailabilityParams

NewSearchAvailabilityParams creates a new SearchAvailabilityParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchAvailabilityParamsWithContext

func NewSearchAvailabilityParamsWithContext(ctx context.Context) *SearchAvailabilityParams

NewSearchAvailabilityParamsWithContext creates a new SearchAvailabilityParams object with the ability to set a context for a request.

func NewSearchAvailabilityParamsWithHTTPClient

func NewSearchAvailabilityParamsWithHTTPClient(client *http.Client) *SearchAvailabilityParams

NewSearchAvailabilityParamsWithHTTPClient creates a new SearchAvailabilityParams object with the ability to set a custom HTTPClient for a request.

func NewSearchAvailabilityParamsWithTimeout

func NewSearchAvailabilityParamsWithTimeout(timeout time.Duration) *SearchAvailabilityParams

NewSearchAvailabilityParamsWithTimeout creates a new SearchAvailabilityParams object with the ability to set a timeout on a request.

func (*SearchAvailabilityParams) SetBody

SetBody adds the body to the search availability params

func (*SearchAvailabilityParams) SetContext

func (o *SearchAvailabilityParams) SetContext(ctx context.Context)

SetContext adds the context to the search availability params

func (*SearchAvailabilityParams) SetDefaults

func (o *SearchAvailabilityParams) SetDefaults()

SetDefaults hydrates default values in the search availability params (not the query body).

All values with no default are reset to their zero value.

func (*SearchAvailabilityParams) SetHTTPClient

func (o *SearchAvailabilityParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search availability params

func (*SearchAvailabilityParams) SetTimeout

func (o *SearchAvailabilityParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search availability params

func (*SearchAvailabilityParams) WithBody

WithBody adds the body to the search availability params

func (*SearchAvailabilityParams) WithContext

WithContext adds the context to the search availability params

func (*SearchAvailabilityParams) WithDefaults

WithDefaults hydrates default values in the search availability params (not the query body).

All values with no default are reset to their zero value.

func (*SearchAvailabilityParams) WithHTTPClient

func (o *SearchAvailabilityParams) WithHTTPClient(client *http.Client) *SearchAvailabilityParams

WithHTTPClient adds the HTTPClient to the search availability params

func (*SearchAvailabilityParams) WithTimeout

WithTimeout adds the timeout to the search availability params

func (*SearchAvailabilityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchAvailabilityReader

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

SearchAvailabilityReader is a Reader for the SearchAvailability structure.

func (*SearchAvailabilityReader) ReadResponse

func (o *SearchAvailabilityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateBookingOK

type UpdateBookingOK struct {
	Payload *models.UpdateBookingResponse
}
UpdateBookingOK describes a response with status code 200, with default header values.

Success

func NewUpdateBookingOK

func NewUpdateBookingOK() *UpdateBookingOK

NewUpdateBookingOK creates a UpdateBookingOK with default headers values

func (*UpdateBookingOK) Error

func (o *UpdateBookingOK) Error() string

func (*UpdateBookingOK) GetPayload

func (o *UpdateBookingOK) GetPayload() *models.UpdateBookingResponse

type UpdateBookingParams

type UpdateBookingParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.UpdateBookingRequest

	/* BookingID.

	   The ID of the `Booking` object representing the to-be-updated booking.
	*/
	BookingID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateBookingParams contains all the parameters to send to the API endpoint

for the update booking operation.

Typically these are written to a http.Request.

func NewUpdateBookingParams

func NewUpdateBookingParams() *UpdateBookingParams

NewUpdateBookingParams creates a new UpdateBookingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateBookingParamsWithContext

func NewUpdateBookingParamsWithContext(ctx context.Context) *UpdateBookingParams

NewUpdateBookingParamsWithContext creates a new UpdateBookingParams object with the ability to set a context for a request.

func NewUpdateBookingParamsWithHTTPClient

func NewUpdateBookingParamsWithHTTPClient(client *http.Client) *UpdateBookingParams

NewUpdateBookingParamsWithHTTPClient creates a new UpdateBookingParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBookingParamsWithTimeout

func NewUpdateBookingParamsWithTimeout(timeout time.Duration) *UpdateBookingParams

NewUpdateBookingParamsWithTimeout creates a new UpdateBookingParams object with the ability to set a timeout on a request.

func (*UpdateBookingParams) SetBody

SetBody adds the body to the update booking params

func (*UpdateBookingParams) SetBookingID

func (o *UpdateBookingParams) SetBookingID(bookingID string)

SetBookingID adds the bookingId to the update booking params

func (*UpdateBookingParams) SetContext

func (o *UpdateBookingParams) SetContext(ctx context.Context)

SetContext adds the context to the update booking params

func (*UpdateBookingParams) SetDefaults

func (o *UpdateBookingParams) SetDefaults()

SetDefaults hydrates default values in the update booking params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateBookingParams) SetHTTPClient

func (o *UpdateBookingParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update booking params

func (*UpdateBookingParams) SetTimeout

func (o *UpdateBookingParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update booking params

func (*UpdateBookingParams) WithBody

WithBody adds the body to the update booking params

func (*UpdateBookingParams) WithBookingID

func (o *UpdateBookingParams) WithBookingID(bookingID string) *UpdateBookingParams

WithBookingID adds the bookingID to the update booking params

func (*UpdateBookingParams) WithContext

WithContext adds the context to the update booking params

func (*UpdateBookingParams) WithDefaults

func (o *UpdateBookingParams) WithDefaults() *UpdateBookingParams

WithDefaults hydrates default values in the update booking params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateBookingParams) WithHTTPClient

func (o *UpdateBookingParams) WithHTTPClient(client *http.Client) *UpdateBookingParams

WithHTTPClient adds the HTTPClient to the update booking params

func (*UpdateBookingParams) WithTimeout

func (o *UpdateBookingParams) WithTimeout(timeout time.Duration) *UpdateBookingParams

WithTimeout adds the timeout to the update booking params

func (*UpdateBookingParams) WriteToRequest

func (o *UpdateBookingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateBookingReader

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

UpdateBookingReader is a Reader for the UpdateBooking structure.

func (*UpdateBookingReader) ReadResponse

func (o *UpdateBookingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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