labor

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 Client

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

Client for labor API

func (*Client) CreateBreakType

func (a *Client) CreateBreakType(params *CreateBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBreakTypeOK, error)
CreateBreakType creates break type

Creates a new `BreakType`.

A `BreakType` is a template for creating `Break` objects. You must provide the following values in your request to this endpoint:

- `location_id` - `break_name` - `expected_duration` - `is_paid`

You can only have 3 `BreakType` instances per location. If you attempt to add a 4th `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location." is returned.

func (*Client) CreateShift

func (a *Client) CreateShift(params *CreateShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateShiftOK, error)
CreateShift creates shift

Creates a new `Shift`.

A `Shift` represents a complete work day for a single employee. You must provide the following values in your request to this endpoint:

- `location_id` - `employee_id` - `start_at`

An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift with an `OPEN` status. - The `start_at` date is in the future - the `start_at` or `end_at` overlaps another shift for the same employee - If `Break`s are set in the request, a break `start_at` must not be before the `Shift.start_at`. A break `end_at` must not be after the `Shift.end_at`

func (*Client) DeleteBreakType

func (a *Client) DeleteBreakType(params *DeleteBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBreakTypeOK, error)
DeleteBreakType deletes break type

Deletes an existing `BreakType`.

A `BreakType` can be deleted even if it is referenced from a `Shift`.

func (*Client) DeleteShift

func (a *Client) DeleteShift(params *DeleteShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteShiftOK, error)

DeleteShift deletes shift

Deletes a `Shift`.

func (*Client) GetBreakType

func (a *Client) GetBreakType(params *GetBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBreakTypeOK, error)

GetBreakType gets break type

Returns a single `BreakType` specified by id.

func (*Client) GetEmployeeWage

func (a *Client) GetEmployeeWage(params *GetEmployeeWageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEmployeeWageOK, error)

GetEmployeeWage gets employee wage

Returns a single `EmployeeWage` specified by id.

func (*Client) GetShift

func (a *Client) GetShift(params *GetShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetShiftOK, error)

GetShift gets shift

Returns a single `Shift` specified by id.

func (*Client) GetTeamMemberWage

func (a *Client) GetTeamMemberWage(params *GetTeamMemberWageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTeamMemberWageOK, error)

GetTeamMemberWage gets team member wage

Returns a single `TeamMemberWage` specified by id.

func (*Client) ListBreakTypes

func (a *Client) ListBreakTypes(params *ListBreakTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListBreakTypesOK, error)

ListBreakTypes lists break types

Returns a paginated list of `BreakType` instances for a business.

func (*Client) ListEmployeeWages

func (a *Client) ListEmployeeWages(params *ListEmployeeWagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEmployeeWagesOK, error)

ListEmployeeWages lists employee wages

Returns a paginated list of `EmployeeWage` instances for a business.

func (*Client) ListTeamMemberWages

func (a *Client) ListTeamMemberWages(params *ListTeamMemberWagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamMemberWagesOK, error)

ListTeamMemberWages lists team member wages

Returns a paginated list of `TeamMemberWage` instances for a business.

func (*Client) ListWorkweekConfigs

func (a *Client) ListWorkweekConfigs(params *ListWorkweekConfigsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWorkweekConfigsOK, error)

ListWorkweekConfigs lists workweek configs

Returns a list of `WorkweekConfig` instances for a business.

func (*Client) SearchShifts

func (a *Client) SearchShifts(params *SearchShiftsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchShiftsOK, error)
SearchShifts searches shifts

Returns a paginated list of `Shift` records for a business.

The list to be returned can be filtered by: - Location IDs **and** - employee IDs **and** - shift status (`OPEN`, `CLOSED`) **and** - shift start **and** - shift end **and** - work day details

The list can be sorted by: - `start_at` - `end_at` - `created_at` - `updated_at`

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateBreakType

func (a *Client) UpdateBreakType(params *UpdateBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBreakTypeOK, error)

UpdateBreakType updates break type

Updates an existing `BreakType`.

func (*Client) UpdateShift

func (a *Client) UpdateShift(params *UpdateShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateShiftOK, error)
UpdateShift updates shift

Updates an existing `Shift`.

When adding a `Break` to a `Shift`, any earlier `Breaks` in the `Shift` have the `end_at` property set to a valid RFC-3339 datetime string.

When closing a `Shift`, all `Break` instances in the shift must be complete with `end_at` set on each `Break`.

func (*Client) UpdateWorkweekConfig

func (a *Client) UpdateWorkweekConfig(params *UpdateWorkweekConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkweekConfigOK, error)

UpdateWorkweekConfig updates workweek config

Updates a `WorkweekConfig`.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateBreakType(params *CreateBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBreakTypeOK, error)

	CreateShift(params *CreateShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateShiftOK, error)

	DeleteBreakType(params *DeleteBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBreakTypeOK, error)

	DeleteShift(params *DeleteShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteShiftOK, error)

	GetBreakType(params *GetBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBreakTypeOK, error)

	GetEmployeeWage(params *GetEmployeeWageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEmployeeWageOK, error)

	GetShift(params *GetShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetShiftOK, error)

	GetTeamMemberWage(params *GetTeamMemberWageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTeamMemberWageOK, error)

	ListBreakTypes(params *ListBreakTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListBreakTypesOK, error)

	ListEmployeeWages(params *ListEmployeeWagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEmployeeWagesOK, error)

	ListTeamMemberWages(params *ListTeamMemberWagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamMemberWagesOK, error)

	ListWorkweekConfigs(params *ListWorkweekConfigsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWorkweekConfigsOK, error)

	SearchShifts(params *SearchShiftsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchShiftsOK, error)

	UpdateBreakType(params *UpdateBreakTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBreakTypeOK, error)

	UpdateShift(params *UpdateShiftParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateShiftOK, error)

	UpdateWorkweekConfig(params *UpdateWorkweekConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkweekConfigOK, 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 labor API client.

type CreateBreakTypeOK

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

Success

func NewCreateBreakTypeOK

func NewCreateBreakTypeOK() *CreateBreakTypeOK

NewCreateBreakTypeOK creates a CreateBreakTypeOK with default headers values

func (*CreateBreakTypeOK) Error

func (o *CreateBreakTypeOK) Error() string

func (*CreateBreakTypeOK) GetPayload

type CreateBreakTypeParams

type CreateBreakTypeParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

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

CreateBreakTypeParams contains all the parameters to send to the API endpoint

for the create break type operation.

Typically these are written to a http.Request.

func NewCreateBreakTypeParams

func NewCreateBreakTypeParams() *CreateBreakTypeParams

NewCreateBreakTypeParams creates a new CreateBreakTypeParams 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 NewCreateBreakTypeParamsWithContext

func NewCreateBreakTypeParamsWithContext(ctx context.Context) *CreateBreakTypeParams

NewCreateBreakTypeParamsWithContext creates a new CreateBreakTypeParams object with the ability to set a context for a request.

func NewCreateBreakTypeParamsWithHTTPClient

func NewCreateBreakTypeParamsWithHTTPClient(client *http.Client) *CreateBreakTypeParams

NewCreateBreakTypeParamsWithHTTPClient creates a new CreateBreakTypeParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBreakTypeParamsWithTimeout

func NewCreateBreakTypeParamsWithTimeout(timeout time.Duration) *CreateBreakTypeParams

NewCreateBreakTypeParamsWithTimeout creates a new CreateBreakTypeParams object with the ability to set a timeout on a request.

func (*CreateBreakTypeParams) SetBody

SetBody adds the body to the create break type params

func (*CreateBreakTypeParams) SetContext

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

SetContext adds the context to the create break type params

func (*CreateBreakTypeParams) SetDefaults

func (o *CreateBreakTypeParams) SetDefaults()

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

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

func (*CreateBreakTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create break type params

func (*CreateBreakTypeParams) SetTimeout

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

SetTimeout adds the timeout to the create break type params

func (*CreateBreakTypeParams) WithBody

WithBody adds the body to the create break type params

func (*CreateBreakTypeParams) WithContext

WithContext adds the context to the create break type params

func (*CreateBreakTypeParams) WithDefaults

func (o *CreateBreakTypeParams) WithDefaults() *CreateBreakTypeParams

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

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

func (*CreateBreakTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create break type params

func (*CreateBreakTypeParams) WithTimeout

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

WithTimeout adds the timeout to the create break type params

func (*CreateBreakTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateBreakTypeReader

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

CreateBreakTypeReader is a Reader for the CreateBreakType structure.

func (*CreateBreakTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateShiftOK

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

Success

func NewCreateShiftOK

func NewCreateShiftOK() *CreateShiftOK

NewCreateShiftOK creates a CreateShiftOK with default headers values

func (*CreateShiftOK) Error

func (o *CreateShiftOK) Error() string

func (*CreateShiftOK) GetPayload

func (o *CreateShiftOK) GetPayload() *models.CreateShiftResponse

type CreateShiftParams

type CreateShiftParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

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

CreateShiftParams contains all the parameters to send to the API endpoint

for the create shift operation.

Typically these are written to a http.Request.

func NewCreateShiftParams

func NewCreateShiftParams() *CreateShiftParams

NewCreateShiftParams creates a new CreateShiftParams 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 NewCreateShiftParamsWithContext

func NewCreateShiftParamsWithContext(ctx context.Context) *CreateShiftParams

NewCreateShiftParamsWithContext creates a new CreateShiftParams object with the ability to set a context for a request.

func NewCreateShiftParamsWithHTTPClient

func NewCreateShiftParamsWithHTTPClient(client *http.Client) *CreateShiftParams

NewCreateShiftParamsWithHTTPClient creates a new CreateShiftParams object with the ability to set a custom HTTPClient for a request.

func NewCreateShiftParamsWithTimeout

func NewCreateShiftParamsWithTimeout(timeout time.Duration) *CreateShiftParams

NewCreateShiftParamsWithTimeout creates a new CreateShiftParams object with the ability to set a timeout on a request.

func (*CreateShiftParams) SetBody

func (o *CreateShiftParams) SetBody(body *models.CreateShiftRequest)

SetBody adds the body to the create shift params

func (*CreateShiftParams) SetContext

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

SetContext adds the context to the create shift params

func (*CreateShiftParams) SetDefaults

func (o *CreateShiftParams) SetDefaults()

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

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

func (*CreateShiftParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create shift params

func (*CreateShiftParams) SetTimeout

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

SetTimeout adds the timeout to the create shift params

func (*CreateShiftParams) WithBody

WithBody adds the body to the create shift params

func (*CreateShiftParams) WithContext

func (o *CreateShiftParams) WithContext(ctx context.Context) *CreateShiftParams

WithContext adds the context to the create shift params

func (*CreateShiftParams) WithDefaults

func (o *CreateShiftParams) WithDefaults() *CreateShiftParams

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

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

func (*CreateShiftParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create shift params

func (*CreateShiftParams) WithTimeout

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

WithTimeout adds the timeout to the create shift params

func (*CreateShiftParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateShiftReader

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

CreateShiftReader is a Reader for the CreateShift structure.

func (*CreateShiftReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBreakTypeOK

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

Success

func NewDeleteBreakTypeOK

func NewDeleteBreakTypeOK() *DeleteBreakTypeOK

NewDeleteBreakTypeOK creates a DeleteBreakTypeOK with default headers values

func (*DeleteBreakTypeOK) Error

func (o *DeleteBreakTypeOK) Error() string

func (*DeleteBreakTypeOK) GetPayload

type DeleteBreakTypeParams

type DeleteBreakTypeParams struct {

	/* ID.

	   UUID for the `BreakType` being deleted.
	*/
	ID string

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

DeleteBreakTypeParams contains all the parameters to send to the API endpoint

for the delete break type operation.

Typically these are written to a http.Request.

func NewDeleteBreakTypeParams

func NewDeleteBreakTypeParams() *DeleteBreakTypeParams

NewDeleteBreakTypeParams creates a new DeleteBreakTypeParams 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 NewDeleteBreakTypeParamsWithContext

func NewDeleteBreakTypeParamsWithContext(ctx context.Context) *DeleteBreakTypeParams

NewDeleteBreakTypeParamsWithContext creates a new DeleteBreakTypeParams object with the ability to set a context for a request.

func NewDeleteBreakTypeParamsWithHTTPClient

func NewDeleteBreakTypeParamsWithHTTPClient(client *http.Client) *DeleteBreakTypeParams

NewDeleteBreakTypeParamsWithHTTPClient creates a new DeleteBreakTypeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBreakTypeParamsWithTimeout

func NewDeleteBreakTypeParamsWithTimeout(timeout time.Duration) *DeleteBreakTypeParams

NewDeleteBreakTypeParamsWithTimeout creates a new DeleteBreakTypeParams object with the ability to set a timeout on a request.

func (*DeleteBreakTypeParams) SetContext

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

SetContext adds the context to the delete break type params

func (*DeleteBreakTypeParams) SetDefaults

func (o *DeleteBreakTypeParams) SetDefaults()

SetDefaults hydrates default values in the delete break type params (not the query body).

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

func (*DeleteBreakTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete break type params

func (*DeleteBreakTypeParams) SetID

func (o *DeleteBreakTypeParams) SetID(id string)

SetID adds the id to the delete break type params

func (*DeleteBreakTypeParams) SetTimeout

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

SetTimeout adds the timeout to the delete break type params

func (*DeleteBreakTypeParams) WithContext

WithContext adds the context to the delete break type params

func (*DeleteBreakTypeParams) WithDefaults

func (o *DeleteBreakTypeParams) WithDefaults() *DeleteBreakTypeParams

WithDefaults hydrates default values in the delete break type params (not the query body).

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

func (*DeleteBreakTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete break type params

func (*DeleteBreakTypeParams) WithID

WithID adds the id to the delete break type params

func (*DeleteBreakTypeParams) WithTimeout

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

WithTimeout adds the timeout to the delete break type params

func (*DeleteBreakTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteBreakTypeReader

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

DeleteBreakTypeReader is a Reader for the DeleteBreakType structure.

func (*DeleteBreakTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteShiftOK

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

Success

func NewDeleteShiftOK

func NewDeleteShiftOK() *DeleteShiftOK

NewDeleteShiftOK creates a DeleteShiftOK with default headers values

func (*DeleteShiftOK) Error

func (o *DeleteShiftOK) Error() string

func (*DeleteShiftOK) GetPayload

func (o *DeleteShiftOK) GetPayload() *models.DeleteShiftResponse

type DeleteShiftParams

type DeleteShiftParams struct {

	/* ID.

	   UUID for the `Shift` being deleted.
	*/
	ID string

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

DeleteShiftParams contains all the parameters to send to the API endpoint

for the delete shift operation.

Typically these are written to a http.Request.

func NewDeleteShiftParams

func NewDeleteShiftParams() *DeleteShiftParams

NewDeleteShiftParams creates a new DeleteShiftParams 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 NewDeleteShiftParamsWithContext

func NewDeleteShiftParamsWithContext(ctx context.Context) *DeleteShiftParams

NewDeleteShiftParamsWithContext creates a new DeleteShiftParams object with the ability to set a context for a request.

func NewDeleteShiftParamsWithHTTPClient

func NewDeleteShiftParamsWithHTTPClient(client *http.Client) *DeleteShiftParams

NewDeleteShiftParamsWithHTTPClient creates a new DeleteShiftParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteShiftParamsWithTimeout

func NewDeleteShiftParamsWithTimeout(timeout time.Duration) *DeleteShiftParams

NewDeleteShiftParamsWithTimeout creates a new DeleteShiftParams object with the ability to set a timeout on a request.

func (*DeleteShiftParams) SetContext

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

SetContext adds the context to the delete shift params

func (*DeleteShiftParams) SetDefaults

func (o *DeleteShiftParams) SetDefaults()

SetDefaults hydrates default values in the delete shift params (not the query body).

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

func (*DeleteShiftParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete shift params

func (*DeleteShiftParams) SetID

func (o *DeleteShiftParams) SetID(id string)

SetID adds the id to the delete shift params

func (*DeleteShiftParams) SetTimeout

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

SetTimeout adds the timeout to the delete shift params

func (*DeleteShiftParams) WithContext

func (o *DeleteShiftParams) WithContext(ctx context.Context) *DeleteShiftParams

WithContext adds the context to the delete shift params

func (*DeleteShiftParams) WithDefaults

func (o *DeleteShiftParams) WithDefaults() *DeleteShiftParams

WithDefaults hydrates default values in the delete shift params (not the query body).

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

func (*DeleteShiftParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete shift params

func (*DeleteShiftParams) WithID

WithID adds the id to the delete shift params

func (*DeleteShiftParams) WithTimeout

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

WithTimeout adds the timeout to the delete shift params

func (*DeleteShiftParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteShiftReader

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

DeleteShiftReader is a Reader for the DeleteShift structure.

func (*DeleteShiftReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBreakTypeOK

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

Success

func NewGetBreakTypeOK

func NewGetBreakTypeOK() *GetBreakTypeOK

NewGetBreakTypeOK creates a GetBreakTypeOK with default headers values

func (*GetBreakTypeOK) Error

func (o *GetBreakTypeOK) Error() string

func (*GetBreakTypeOK) GetPayload

func (o *GetBreakTypeOK) GetPayload() *models.GetBreakTypeResponse

type GetBreakTypeParams

type GetBreakTypeParams struct {

	/* ID.

	   UUID for the `BreakType` being retrieved.
	*/
	ID string

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

GetBreakTypeParams contains all the parameters to send to the API endpoint

for the get break type operation.

Typically these are written to a http.Request.

func NewGetBreakTypeParams

func NewGetBreakTypeParams() *GetBreakTypeParams

NewGetBreakTypeParams creates a new GetBreakTypeParams 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 NewGetBreakTypeParamsWithContext

func NewGetBreakTypeParamsWithContext(ctx context.Context) *GetBreakTypeParams

NewGetBreakTypeParamsWithContext creates a new GetBreakTypeParams object with the ability to set a context for a request.

func NewGetBreakTypeParamsWithHTTPClient

func NewGetBreakTypeParamsWithHTTPClient(client *http.Client) *GetBreakTypeParams

NewGetBreakTypeParamsWithHTTPClient creates a new GetBreakTypeParams object with the ability to set a custom HTTPClient for a request.

func NewGetBreakTypeParamsWithTimeout

func NewGetBreakTypeParamsWithTimeout(timeout time.Duration) *GetBreakTypeParams

NewGetBreakTypeParamsWithTimeout creates a new GetBreakTypeParams object with the ability to set a timeout on a request.

func (*GetBreakTypeParams) SetContext

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

SetContext adds the context to the get break type params

func (*GetBreakTypeParams) SetDefaults

func (o *GetBreakTypeParams) SetDefaults()

SetDefaults hydrates default values in the get break type params (not the query body).

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

func (*GetBreakTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get break type params

func (*GetBreakTypeParams) SetID

func (o *GetBreakTypeParams) SetID(id string)

SetID adds the id to the get break type params

func (*GetBreakTypeParams) SetTimeout

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

SetTimeout adds the timeout to the get break type params

func (*GetBreakTypeParams) WithContext

WithContext adds the context to the get break type params

func (*GetBreakTypeParams) WithDefaults

func (o *GetBreakTypeParams) WithDefaults() *GetBreakTypeParams

WithDefaults hydrates default values in the get break type params (not the query body).

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

func (*GetBreakTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get break type params

func (*GetBreakTypeParams) WithID

WithID adds the id to the get break type params

func (*GetBreakTypeParams) WithTimeout

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

WithTimeout adds the timeout to the get break type params

func (*GetBreakTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBreakTypeReader

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

GetBreakTypeReader is a Reader for the GetBreakType structure.

func (*GetBreakTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEmployeeWageOK

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

Success

func NewGetEmployeeWageOK

func NewGetEmployeeWageOK() *GetEmployeeWageOK

NewGetEmployeeWageOK creates a GetEmployeeWageOK with default headers values

func (*GetEmployeeWageOK) Error

func (o *GetEmployeeWageOK) Error() string

func (*GetEmployeeWageOK) GetPayload

type GetEmployeeWageParams

type GetEmployeeWageParams struct {

	/* ID.

	   UUID for the `EmployeeWage` being retrieved.
	*/
	ID string

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

GetEmployeeWageParams contains all the parameters to send to the API endpoint

for the get employee wage operation.

Typically these are written to a http.Request.

func NewGetEmployeeWageParams

func NewGetEmployeeWageParams() *GetEmployeeWageParams

NewGetEmployeeWageParams creates a new GetEmployeeWageParams 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 NewGetEmployeeWageParamsWithContext

func NewGetEmployeeWageParamsWithContext(ctx context.Context) *GetEmployeeWageParams

NewGetEmployeeWageParamsWithContext creates a new GetEmployeeWageParams object with the ability to set a context for a request.

func NewGetEmployeeWageParamsWithHTTPClient

func NewGetEmployeeWageParamsWithHTTPClient(client *http.Client) *GetEmployeeWageParams

NewGetEmployeeWageParamsWithHTTPClient creates a new GetEmployeeWageParams object with the ability to set a custom HTTPClient for a request.

func NewGetEmployeeWageParamsWithTimeout

func NewGetEmployeeWageParamsWithTimeout(timeout time.Duration) *GetEmployeeWageParams

NewGetEmployeeWageParamsWithTimeout creates a new GetEmployeeWageParams object with the ability to set a timeout on a request.

func (*GetEmployeeWageParams) SetContext

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

SetContext adds the context to the get employee wage params

func (*GetEmployeeWageParams) SetDefaults

func (o *GetEmployeeWageParams) SetDefaults()

SetDefaults hydrates default values in the get employee wage params (not the query body).

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

func (*GetEmployeeWageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get employee wage params

func (*GetEmployeeWageParams) SetID

func (o *GetEmployeeWageParams) SetID(id string)

SetID adds the id to the get employee wage params

func (*GetEmployeeWageParams) SetTimeout

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

SetTimeout adds the timeout to the get employee wage params

func (*GetEmployeeWageParams) WithContext

WithContext adds the context to the get employee wage params

func (*GetEmployeeWageParams) WithDefaults

func (o *GetEmployeeWageParams) WithDefaults() *GetEmployeeWageParams

WithDefaults hydrates default values in the get employee wage params (not the query body).

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

func (*GetEmployeeWageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get employee wage params

func (*GetEmployeeWageParams) WithID

WithID adds the id to the get employee wage params

func (*GetEmployeeWageParams) WithTimeout

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

WithTimeout adds the timeout to the get employee wage params

func (*GetEmployeeWageParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetEmployeeWageReader

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

GetEmployeeWageReader is a Reader for the GetEmployeeWage structure.

func (*GetEmployeeWageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetShiftOK

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

Success

func NewGetShiftOK

func NewGetShiftOK() *GetShiftOK

NewGetShiftOK creates a GetShiftOK with default headers values

func (*GetShiftOK) Error

func (o *GetShiftOK) Error() string

func (*GetShiftOK) GetPayload

func (o *GetShiftOK) GetPayload() *models.GetShiftResponse

type GetShiftParams

type GetShiftParams struct {

	/* ID.

	   UUID for the `Shift` being retrieved.
	*/
	ID string

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

GetShiftParams contains all the parameters to send to the API endpoint

for the get shift operation.

Typically these are written to a http.Request.

func NewGetShiftParams

func NewGetShiftParams() *GetShiftParams

NewGetShiftParams creates a new GetShiftParams 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 NewGetShiftParamsWithContext

func NewGetShiftParamsWithContext(ctx context.Context) *GetShiftParams

NewGetShiftParamsWithContext creates a new GetShiftParams object with the ability to set a context for a request.

func NewGetShiftParamsWithHTTPClient

func NewGetShiftParamsWithHTTPClient(client *http.Client) *GetShiftParams

NewGetShiftParamsWithHTTPClient creates a new GetShiftParams object with the ability to set a custom HTTPClient for a request.

func NewGetShiftParamsWithTimeout

func NewGetShiftParamsWithTimeout(timeout time.Duration) *GetShiftParams

NewGetShiftParamsWithTimeout creates a new GetShiftParams object with the ability to set a timeout on a request.

func (*GetShiftParams) SetContext

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

SetContext adds the context to the get shift params

func (*GetShiftParams) SetDefaults

func (o *GetShiftParams) SetDefaults()

SetDefaults hydrates default values in the get shift params (not the query body).

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

func (*GetShiftParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get shift params

func (*GetShiftParams) SetID

func (o *GetShiftParams) SetID(id string)

SetID adds the id to the get shift params

func (*GetShiftParams) SetTimeout

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

SetTimeout adds the timeout to the get shift params

func (*GetShiftParams) WithContext

func (o *GetShiftParams) WithContext(ctx context.Context) *GetShiftParams

WithContext adds the context to the get shift params

func (*GetShiftParams) WithDefaults

func (o *GetShiftParams) WithDefaults() *GetShiftParams

WithDefaults hydrates default values in the get shift params (not the query body).

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

func (*GetShiftParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get shift params

func (*GetShiftParams) WithID

func (o *GetShiftParams) WithID(id string) *GetShiftParams

WithID adds the id to the get shift params

func (*GetShiftParams) WithTimeout

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

WithTimeout adds the timeout to the get shift params

func (*GetShiftParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetShiftReader

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

GetShiftReader is a Reader for the GetShift structure.

func (*GetShiftReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeamMemberWageOK

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

Success

func NewGetTeamMemberWageOK

func NewGetTeamMemberWageOK() *GetTeamMemberWageOK

NewGetTeamMemberWageOK creates a GetTeamMemberWageOK with default headers values

func (*GetTeamMemberWageOK) Error

func (o *GetTeamMemberWageOK) Error() string

func (*GetTeamMemberWageOK) GetPayload

type GetTeamMemberWageParams

type GetTeamMemberWageParams struct {

	/* ID.

	   UUID for the `TeamMemberWage` being retrieved.
	*/
	ID string

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

GetTeamMemberWageParams contains all the parameters to send to the API endpoint

for the get team member wage operation.

Typically these are written to a http.Request.

func NewGetTeamMemberWageParams

func NewGetTeamMemberWageParams() *GetTeamMemberWageParams

NewGetTeamMemberWageParams creates a new GetTeamMemberWageParams 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 NewGetTeamMemberWageParamsWithContext

func NewGetTeamMemberWageParamsWithContext(ctx context.Context) *GetTeamMemberWageParams

NewGetTeamMemberWageParamsWithContext creates a new GetTeamMemberWageParams object with the ability to set a context for a request.

func NewGetTeamMemberWageParamsWithHTTPClient

func NewGetTeamMemberWageParamsWithHTTPClient(client *http.Client) *GetTeamMemberWageParams

NewGetTeamMemberWageParamsWithHTTPClient creates a new GetTeamMemberWageParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeamMemberWageParamsWithTimeout

func NewGetTeamMemberWageParamsWithTimeout(timeout time.Duration) *GetTeamMemberWageParams

NewGetTeamMemberWageParamsWithTimeout creates a new GetTeamMemberWageParams object with the ability to set a timeout on a request.

func (*GetTeamMemberWageParams) SetContext

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

SetContext adds the context to the get team member wage params

func (*GetTeamMemberWageParams) SetDefaults

func (o *GetTeamMemberWageParams) SetDefaults()

SetDefaults hydrates default values in the get team member wage params (not the query body).

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

func (*GetTeamMemberWageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get team member wage params

func (*GetTeamMemberWageParams) SetID

func (o *GetTeamMemberWageParams) SetID(id string)

SetID adds the id to the get team member wage params

func (*GetTeamMemberWageParams) SetTimeout

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

SetTimeout adds the timeout to the get team member wage params

func (*GetTeamMemberWageParams) WithContext

WithContext adds the context to the get team member wage params

func (*GetTeamMemberWageParams) WithDefaults

WithDefaults hydrates default values in the get team member wage params (not the query body).

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

func (*GetTeamMemberWageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get team member wage params

func (*GetTeamMemberWageParams) WithID

WithID adds the id to the get team member wage params

func (*GetTeamMemberWageParams) WithTimeout

WithTimeout adds the timeout to the get team member wage params

func (*GetTeamMemberWageParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTeamMemberWageReader

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

GetTeamMemberWageReader is a Reader for the GetTeamMemberWage structure.

func (*GetTeamMemberWageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListBreakTypesOK

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

Success

func NewListBreakTypesOK

func NewListBreakTypesOK() *ListBreakTypesOK

NewListBreakTypesOK creates a ListBreakTypesOK with default headers values

func (*ListBreakTypesOK) Error

func (o *ListBreakTypesOK) Error() string

func (*ListBreakTypesOK) GetPayload

type ListBreakTypesParams

type ListBreakTypesParams struct {

	/* Cursor.

	   Pointer to the next page of Break Type results to fetch.
	*/
	Cursor *string

	/* Limit.

	     Maximum number of Break Types to return per page. Can range between 1
	and 200. The default is the maximum at 200.
	*/
	Limit *int64

	/* LocationID.

	     Filter Break Types returned to only those that are associated with the
	specified location.
	*/
	LocationID *string

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

ListBreakTypesParams contains all the parameters to send to the API endpoint

for the list break types operation.

Typically these are written to a http.Request.

func NewListBreakTypesParams

func NewListBreakTypesParams() *ListBreakTypesParams

NewListBreakTypesParams creates a new ListBreakTypesParams 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 NewListBreakTypesParamsWithContext

func NewListBreakTypesParamsWithContext(ctx context.Context) *ListBreakTypesParams

NewListBreakTypesParamsWithContext creates a new ListBreakTypesParams object with the ability to set a context for a request.

func NewListBreakTypesParamsWithHTTPClient

func NewListBreakTypesParamsWithHTTPClient(client *http.Client) *ListBreakTypesParams

NewListBreakTypesParamsWithHTTPClient creates a new ListBreakTypesParams object with the ability to set a custom HTTPClient for a request.

func NewListBreakTypesParamsWithTimeout

func NewListBreakTypesParamsWithTimeout(timeout time.Duration) *ListBreakTypesParams

NewListBreakTypesParamsWithTimeout creates a new ListBreakTypesParams object with the ability to set a timeout on a request.

func (*ListBreakTypesParams) SetContext

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

SetContext adds the context to the list break types params

func (*ListBreakTypesParams) SetCursor

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

SetCursor adds the cursor to the list break types params

func (*ListBreakTypesParams) SetDefaults

func (o *ListBreakTypesParams) SetDefaults()

SetDefaults hydrates default values in the list break types params (not the query body).

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

func (*ListBreakTypesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list break types params

func (*ListBreakTypesParams) SetLimit

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

SetLimit adds the limit to the list break types params

func (*ListBreakTypesParams) SetLocationID

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

SetLocationID adds the locationId to the list break types params

func (*ListBreakTypesParams) SetTimeout

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

SetTimeout adds the timeout to the list break types params

func (*ListBreakTypesParams) WithContext

WithContext adds the context to the list break types params

func (*ListBreakTypesParams) WithCursor

func (o *ListBreakTypesParams) WithCursor(cursor *string) *ListBreakTypesParams

WithCursor adds the cursor to the list break types params

func (*ListBreakTypesParams) WithDefaults

func (o *ListBreakTypesParams) WithDefaults() *ListBreakTypesParams

WithDefaults hydrates default values in the list break types params (not the query body).

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

func (*ListBreakTypesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list break types params

func (*ListBreakTypesParams) WithLimit

func (o *ListBreakTypesParams) WithLimit(limit *int64) *ListBreakTypesParams

WithLimit adds the limit to the list break types params

func (*ListBreakTypesParams) WithLocationID

func (o *ListBreakTypesParams) WithLocationID(locationID *string) *ListBreakTypesParams

WithLocationID adds the locationID to the list break types params

func (*ListBreakTypesParams) WithTimeout

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

WithTimeout adds the timeout to the list break types params

func (*ListBreakTypesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListBreakTypesReader

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

ListBreakTypesReader is a Reader for the ListBreakTypes structure.

func (*ListBreakTypesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListEmployeeWagesOK

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

Success

func NewListEmployeeWagesOK

func NewListEmployeeWagesOK() *ListEmployeeWagesOK

NewListEmployeeWagesOK creates a ListEmployeeWagesOK with default headers values

func (*ListEmployeeWagesOK) Error

func (o *ListEmployeeWagesOK) Error() string

func (*ListEmployeeWagesOK) GetPayload

type ListEmployeeWagesParams

type ListEmployeeWagesParams struct {

	/* Cursor.

	   Pointer to the next page of Employee Wage results to fetch.
	*/
	Cursor *string

	/* EmployeeID.

	   Filter wages returned to only those that are associated with the specified employee.
	*/
	EmployeeID *string

	/* Limit.

	     Maximum number of Employee Wages to return per page. Can range between
	1 and 200. The default is the maximum at 200.
	*/
	Limit *int64

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

ListEmployeeWagesParams contains all the parameters to send to the API endpoint

for the list employee wages operation.

Typically these are written to a http.Request.

func NewListEmployeeWagesParams

func NewListEmployeeWagesParams() *ListEmployeeWagesParams

NewListEmployeeWagesParams creates a new ListEmployeeWagesParams 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 NewListEmployeeWagesParamsWithContext

func NewListEmployeeWagesParamsWithContext(ctx context.Context) *ListEmployeeWagesParams

NewListEmployeeWagesParamsWithContext creates a new ListEmployeeWagesParams object with the ability to set a context for a request.

func NewListEmployeeWagesParamsWithHTTPClient

func NewListEmployeeWagesParamsWithHTTPClient(client *http.Client) *ListEmployeeWagesParams

NewListEmployeeWagesParamsWithHTTPClient creates a new ListEmployeeWagesParams object with the ability to set a custom HTTPClient for a request.

func NewListEmployeeWagesParamsWithTimeout

func NewListEmployeeWagesParamsWithTimeout(timeout time.Duration) *ListEmployeeWagesParams

NewListEmployeeWagesParamsWithTimeout creates a new ListEmployeeWagesParams object with the ability to set a timeout on a request.

func (*ListEmployeeWagesParams) SetContext

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

SetContext adds the context to the list employee wages params

func (*ListEmployeeWagesParams) SetCursor

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

SetCursor adds the cursor to the list employee wages params

func (*ListEmployeeWagesParams) SetDefaults

func (o *ListEmployeeWagesParams) SetDefaults()

SetDefaults hydrates default values in the list employee wages params (not the query body).

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

func (*ListEmployeeWagesParams) SetEmployeeID

func (o *ListEmployeeWagesParams) SetEmployeeID(employeeID *string)

SetEmployeeID adds the employeeId to the list employee wages params

func (*ListEmployeeWagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list employee wages params

func (*ListEmployeeWagesParams) SetLimit

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

SetLimit adds the limit to the list employee wages params

func (*ListEmployeeWagesParams) SetTimeout

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

SetTimeout adds the timeout to the list employee wages params

func (*ListEmployeeWagesParams) WithContext

WithContext adds the context to the list employee wages params

func (*ListEmployeeWagesParams) WithCursor

func (o *ListEmployeeWagesParams) WithCursor(cursor *string) *ListEmployeeWagesParams

WithCursor adds the cursor to the list employee wages params

func (*ListEmployeeWagesParams) WithDefaults

WithDefaults hydrates default values in the list employee wages params (not the query body).

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

func (*ListEmployeeWagesParams) WithEmployeeID

func (o *ListEmployeeWagesParams) WithEmployeeID(employeeID *string) *ListEmployeeWagesParams

WithEmployeeID adds the employeeID to the list employee wages params

func (*ListEmployeeWagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list employee wages params

func (*ListEmployeeWagesParams) WithLimit

WithLimit adds the limit to the list employee wages params

func (*ListEmployeeWagesParams) WithTimeout

WithTimeout adds the timeout to the list employee wages params

func (*ListEmployeeWagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListEmployeeWagesReader

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

ListEmployeeWagesReader is a Reader for the ListEmployeeWages structure.

func (*ListEmployeeWagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTeamMemberWagesOK

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

Success

func NewListTeamMemberWagesOK

func NewListTeamMemberWagesOK() *ListTeamMemberWagesOK

NewListTeamMemberWagesOK creates a ListTeamMemberWagesOK with default headers values

func (*ListTeamMemberWagesOK) Error

func (o *ListTeamMemberWagesOK) Error() string

func (*ListTeamMemberWagesOK) GetPayload

type ListTeamMemberWagesParams

type ListTeamMemberWagesParams struct {

	/* Cursor.

	   Pointer to the next page of Employee Wage results to fetch.
	*/
	Cursor *string

	/* Limit.

	     Maximum number of Team Member Wages to return per page. Can range between
	1 and 200. The default is the maximum at 200.
	*/
	Limit *int64

	/* TeamMemberID.

	     Filter wages returned to only those that are associated with the
	specified team member.
	*/
	TeamMemberID *string

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

ListTeamMemberWagesParams contains all the parameters to send to the API endpoint

for the list team member wages operation.

Typically these are written to a http.Request.

func NewListTeamMemberWagesParams

func NewListTeamMemberWagesParams() *ListTeamMemberWagesParams

NewListTeamMemberWagesParams creates a new ListTeamMemberWagesParams 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 NewListTeamMemberWagesParamsWithContext

func NewListTeamMemberWagesParamsWithContext(ctx context.Context) *ListTeamMemberWagesParams

NewListTeamMemberWagesParamsWithContext creates a new ListTeamMemberWagesParams object with the ability to set a context for a request.

func NewListTeamMemberWagesParamsWithHTTPClient

func NewListTeamMemberWagesParamsWithHTTPClient(client *http.Client) *ListTeamMemberWagesParams

NewListTeamMemberWagesParamsWithHTTPClient creates a new ListTeamMemberWagesParams object with the ability to set a custom HTTPClient for a request.

func NewListTeamMemberWagesParamsWithTimeout

func NewListTeamMemberWagesParamsWithTimeout(timeout time.Duration) *ListTeamMemberWagesParams

NewListTeamMemberWagesParamsWithTimeout creates a new ListTeamMemberWagesParams object with the ability to set a timeout on a request.

func (*ListTeamMemberWagesParams) SetContext

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

SetContext adds the context to the list team member wages params

func (*ListTeamMemberWagesParams) SetCursor

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

SetCursor adds the cursor to the list team member wages params

func (*ListTeamMemberWagesParams) SetDefaults

func (o *ListTeamMemberWagesParams) SetDefaults()

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

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

func (*ListTeamMemberWagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list team member wages params

func (*ListTeamMemberWagesParams) SetLimit

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

SetLimit adds the limit to the list team member wages params

func (*ListTeamMemberWagesParams) SetTeamMemberID

func (o *ListTeamMemberWagesParams) SetTeamMemberID(teamMemberID *string)

SetTeamMemberID adds the teamMemberId to the list team member wages params

func (*ListTeamMemberWagesParams) SetTimeout

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

SetTimeout adds the timeout to the list team member wages params

func (*ListTeamMemberWagesParams) WithContext

WithContext adds the context to the list team member wages params

func (*ListTeamMemberWagesParams) WithCursor

WithCursor adds the cursor to the list team member wages params

func (*ListTeamMemberWagesParams) WithDefaults

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

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

func (*ListTeamMemberWagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list team member wages params

func (*ListTeamMemberWagesParams) WithLimit

WithLimit adds the limit to the list team member wages params

func (*ListTeamMemberWagesParams) WithTeamMemberID

func (o *ListTeamMemberWagesParams) WithTeamMemberID(teamMemberID *string) *ListTeamMemberWagesParams

WithTeamMemberID adds the teamMemberID to the list team member wages params

func (*ListTeamMemberWagesParams) WithTimeout

WithTimeout adds the timeout to the list team member wages params

func (*ListTeamMemberWagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTeamMemberWagesReader

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

ListTeamMemberWagesReader is a Reader for the ListTeamMemberWages structure.

func (*ListTeamMemberWagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWorkweekConfigsOK

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

Success

func NewListWorkweekConfigsOK

func NewListWorkweekConfigsOK() *ListWorkweekConfigsOK

NewListWorkweekConfigsOK creates a ListWorkweekConfigsOK with default headers values

func (*ListWorkweekConfigsOK) Error

func (o *ListWorkweekConfigsOK) Error() string

func (*ListWorkweekConfigsOK) GetPayload

type ListWorkweekConfigsParams

type ListWorkweekConfigsParams struct {

	/* Cursor.

	   Pointer to the next page of Workweek Config results to fetch.
	*/
	Cursor *string

	/* Limit.

	   Maximum number of Workweek Configs to return per page.
	*/
	Limit *int64

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

ListWorkweekConfigsParams contains all the parameters to send to the API endpoint

for the list workweek configs operation.

Typically these are written to a http.Request.

func NewListWorkweekConfigsParams

func NewListWorkweekConfigsParams() *ListWorkweekConfigsParams

NewListWorkweekConfigsParams creates a new ListWorkweekConfigsParams 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 NewListWorkweekConfigsParamsWithContext

func NewListWorkweekConfigsParamsWithContext(ctx context.Context) *ListWorkweekConfigsParams

NewListWorkweekConfigsParamsWithContext creates a new ListWorkweekConfigsParams object with the ability to set a context for a request.

func NewListWorkweekConfigsParamsWithHTTPClient

func NewListWorkweekConfigsParamsWithHTTPClient(client *http.Client) *ListWorkweekConfigsParams

NewListWorkweekConfigsParamsWithHTTPClient creates a new ListWorkweekConfigsParams object with the ability to set a custom HTTPClient for a request.

func NewListWorkweekConfigsParamsWithTimeout

func NewListWorkweekConfigsParamsWithTimeout(timeout time.Duration) *ListWorkweekConfigsParams

NewListWorkweekConfigsParamsWithTimeout creates a new ListWorkweekConfigsParams object with the ability to set a timeout on a request.

func (*ListWorkweekConfigsParams) SetContext

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

SetContext adds the context to the list workweek configs params

func (*ListWorkweekConfigsParams) SetCursor

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

SetCursor adds the cursor to the list workweek configs params

func (*ListWorkweekConfigsParams) SetDefaults

func (o *ListWorkweekConfigsParams) SetDefaults()

SetDefaults hydrates default values in the list workweek configs params (not the query body).

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

func (*ListWorkweekConfigsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list workweek configs params

func (*ListWorkweekConfigsParams) SetLimit

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

SetLimit adds the limit to the list workweek configs params

func (*ListWorkweekConfigsParams) SetTimeout

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

SetTimeout adds the timeout to the list workweek configs params

func (*ListWorkweekConfigsParams) WithContext

WithContext adds the context to the list workweek configs params

func (*ListWorkweekConfigsParams) WithCursor

WithCursor adds the cursor to the list workweek configs params

func (*ListWorkweekConfigsParams) WithDefaults

WithDefaults hydrates default values in the list workweek configs params (not the query body).

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

func (*ListWorkweekConfigsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list workweek configs params

func (*ListWorkweekConfigsParams) WithLimit

WithLimit adds the limit to the list workweek configs params

func (*ListWorkweekConfigsParams) WithTimeout

WithTimeout adds the timeout to the list workweek configs params

func (*ListWorkweekConfigsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListWorkweekConfigsReader

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

ListWorkweekConfigsReader is a Reader for the ListWorkweekConfigs structure.

func (*ListWorkweekConfigsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchShiftsOK

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

Success

func NewSearchShiftsOK

func NewSearchShiftsOK() *SearchShiftsOK

NewSearchShiftsOK creates a SearchShiftsOK with default headers values

func (*SearchShiftsOK) Error

func (o *SearchShiftsOK) Error() string

func (*SearchShiftsOK) GetPayload

func (o *SearchShiftsOK) GetPayload() *models.SearchShiftsResponse

type SearchShiftsParams

type SearchShiftsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

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

SearchShiftsParams contains all the parameters to send to the API endpoint

for the search shifts operation.

Typically these are written to a http.Request.

func NewSearchShiftsParams

func NewSearchShiftsParams() *SearchShiftsParams

NewSearchShiftsParams creates a new SearchShiftsParams 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 NewSearchShiftsParamsWithContext

func NewSearchShiftsParamsWithContext(ctx context.Context) *SearchShiftsParams

NewSearchShiftsParamsWithContext creates a new SearchShiftsParams object with the ability to set a context for a request.

func NewSearchShiftsParamsWithHTTPClient

func NewSearchShiftsParamsWithHTTPClient(client *http.Client) *SearchShiftsParams

NewSearchShiftsParamsWithHTTPClient creates a new SearchShiftsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchShiftsParamsWithTimeout

func NewSearchShiftsParamsWithTimeout(timeout time.Duration) *SearchShiftsParams

NewSearchShiftsParamsWithTimeout creates a new SearchShiftsParams object with the ability to set a timeout on a request.

func (*SearchShiftsParams) SetBody

func (o *SearchShiftsParams) SetBody(body *models.SearchShiftsRequest)

SetBody adds the body to the search shifts params

func (*SearchShiftsParams) SetContext

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

SetContext adds the context to the search shifts params

func (*SearchShiftsParams) SetDefaults

func (o *SearchShiftsParams) SetDefaults()

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

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

func (*SearchShiftsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search shifts params

func (*SearchShiftsParams) SetTimeout

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

SetTimeout adds the timeout to the search shifts params

func (*SearchShiftsParams) WithBody

WithBody adds the body to the search shifts params

func (*SearchShiftsParams) WithContext

WithContext adds the context to the search shifts params

func (*SearchShiftsParams) WithDefaults

func (o *SearchShiftsParams) WithDefaults() *SearchShiftsParams

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

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

func (*SearchShiftsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search shifts params

func (*SearchShiftsParams) WithTimeout

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

WithTimeout adds the timeout to the search shifts params

func (*SearchShiftsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchShiftsReader

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

SearchShiftsReader is a Reader for the SearchShifts structure.

func (*SearchShiftsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateBreakTypeOK

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

Success

func NewUpdateBreakTypeOK

func NewUpdateBreakTypeOK() *UpdateBreakTypeOK

NewUpdateBreakTypeOK creates a UpdateBreakTypeOK with default headers values

func (*UpdateBreakTypeOK) Error

func (o *UpdateBreakTypeOK) Error() string

func (*UpdateBreakTypeOK) GetPayload

type UpdateBreakTypeParams

type UpdateBreakTypeParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

	/* ID.

	   UUID for the `BreakType` being updated.
	*/
	ID string

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

UpdateBreakTypeParams contains all the parameters to send to the API endpoint

for the update break type operation.

Typically these are written to a http.Request.

func NewUpdateBreakTypeParams

func NewUpdateBreakTypeParams() *UpdateBreakTypeParams

NewUpdateBreakTypeParams creates a new UpdateBreakTypeParams 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 NewUpdateBreakTypeParamsWithContext

func NewUpdateBreakTypeParamsWithContext(ctx context.Context) *UpdateBreakTypeParams

NewUpdateBreakTypeParamsWithContext creates a new UpdateBreakTypeParams object with the ability to set a context for a request.

func NewUpdateBreakTypeParamsWithHTTPClient

func NewUpdateBreakTypeParamsWithHTTPClient(client *http.Client) *UpdateBreakTypeParams

NewUpdateBreakTypeParamsWithHTTPClient creates a new UpdateBreakTypeParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBreakTypeParamsWithTimeout

func NewUpdateBreakTypeParamsWithTimeout(timeout time.Duration) *UpdateBreakTypeParams

NewUpdateBreakTypeParamsWithTimeout creates a new UpdateBreakTypeParams object with the ability to set a timeout on a request.

func (*UpdateBreakTypeParams) SetBody

SetBody adds the body to the update break type params

func (*UpdateBreakTypeParams) SetContext

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

SetContext adds the context to the update break type params

func (*UpdateBreakTypeParams) SetDefaults

func (o *UpdateBreakTypeParams) SetDefaults()

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

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

func (*UpdateBreakTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update break type params

func (*UpdateBreakTypeParams) SetID

func (o *UpdateBreakTypeParams) SetID(id string)

SetID adds the id to the update break type params

func (*UpdateBreakTypeParams) SetTimeout

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

SetTimeout adds the timeout to the update break type params

func (*UpdateBreakTypeParams) WithBody

WithBody adds the body to the update break type params

func (*UpdateBreakTypeParams) WithContext

WithContext adds the context to the update break type params

func (*UpdateBreakTypeParams) WithDefaults

func (o *UpdateBreakTypeParams) WithDefaults() *UpdateBreakTypeParams

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

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

func (*UpdateBreakTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update break type params

func (*UpdateBreakTypeParams) WithID

WithID adds the id to the update break type params

func (*UpdateBreakTypeParams) WithTimeout

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

WithTimeout adds the timeout to the update break type params

func (*UpdateBreakTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateBreakTypeReader

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

UpdateBreakTypeReader is a Reader for the UpdateBreakType structure.

func (*UpdateBreakTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateShiftOK

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

Success

func NewUpdateShiftOK

func NewUpdateShiftOK() *UpdateShiftOK

NewUpdateShiftOK creates a UpdateShiftOK with default headers values

func (*UpdateShiftOK) Error

func (o *UpdateShiftOK) Error() string

func (*UpdateShiftOK) GetPayload

func (o *UpdateShiftOK) GetPayload() *models.UpdateShiftResponse

type UpdateShiftParams

type UpdateShiftParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

	/* ID.

	   ID of the object being updated.
	*/
	ID string

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

UpdateShiftParams contains all the parameters to send to the API endpoint

for the update shift operation.

Typically these are written to a http.Request.

func NewUpdateShiftParams

func NewUpdateShiftParams() *UpdateShiftParams

NewUpdateShiftParams creates a new UpdateShiftParams 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 NewUpdateShiftParamsWithContext

func NewUpdateShiftParamsWithContext(ctx context.Context) *UpdateShiftParams

NewUpdateShiftParamsWithContext creates a new UpdateShiftParams object with the ability to set a context for a request.

func NewUpdateShiftParamsWithHTTPClient

func NewUpdateShiftParamsWithHTTPClient(client *http.Client) *UpdateShiftParams

NewUpdateShiftParamsWithHTTPClient creates a new UpdateShiftParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateShiftParamsWithTimeout

func NewUpdateShiftParamsWithTimeout(timeout time.Duration) *UpdateShiftParams

NewUpdateShiftParamsWithTimeout creates a new UpdateShiftParams object with the ability to set a timeout on a request.

func (*UpdateShiftParams) SetBody

func (o *UpdateShiftParams) SetBody(body *models.UpdateShiftRequest)

SetBody adds the body to the update shift params

func (*UpdateShiftParams) SetContext

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

SetContext adds the context to the update shift params

func (*UpdateShiftParams) SetDefaults

func (o *UpdateShiftParams) SetDefaults()

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

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

func (*UpdateShiftParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update shift params

func (*UpdateShiftParams) SetID

func (o *UpdateShiftParams) SetID(id string)

SetID adds the id to the update shift params

func (*UpdateShiftParams) SetTimeout

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

SetTimeout adds the timeout to the update shift params

func (*UpdateShiftParams) WithBody

WithBody adds the body to the update shift params

func (*UpdateShiftParams) WithContext

func (o *UpdateShiftParams) WithContext(ctx context.Context) *UpdateShiftParams

WithContext adds the context to the update shift params

func (*UpdateShiftParams) WithDefaults

func (o *UpdateShiftParams) WithDefaults() *UpdateShiftParams

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

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

func (*UpdateShiftParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update shift params

func (*UpdateShiftParams) WithID

WithID adds the id to the update shift params

func (*UpdateShiftParams) WithTimeout

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

WithTimeout adds the timeout to the update shift params

func (*UpdateShiftParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateShiftReader

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

UpdateShiftReader is a Reader for the UpdateShift structure.

func (*UpdateShiftReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateWorkweekConfigOK

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

Success

func NewUpdateWorkweekConfigOK

func NewUpdateWorkweekConfigOK() *UpdateWorkweekConfigOK

NewUpdateWorkweekConfigOK creates a UpdateWorkweekConfigOK with default headers values

func (*UpdateWorkweekConfigOK) Error

func (o *UpdateWorkweekConfigOK) Error() string

func (*UpdateWorkweekConfigOK) GetPayload

type UpdateWorkweekConfigParams

type UpdateWorkweekConfigParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

	/* ID.

	   UUID for the `WorkweekConfig` object being updated.
	*/
	ID string

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

UpdateWorkweekConfigParams contains all the parameters to send to the API endpoint

for the update workweek config operation.

Typically these are written to a http.Request.

func NewUpdateWorkweekConfigParams

func NewUpdateWorkweekConfigParams() *UpdateWorkweekConfigParams

NewUpdateWorkweekConfigParams creates a new UpdateWorkweekConfigParams 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 NewUpdateWorkweekConfigParamsWithContext

func NewUpdateWorkweekConfigParamsWithContext(ctx context.Context) *UpdateWorkweekConfigParams

NewUpdateWorkweekConfigParamsWithContext creates a new UpdateWorkweekConfigParams object with the ability to set a context for a request.

func NewUpdateWorkweekConfigParamsWithHTTPClient

func NewUpdateWorkweekConfigParamsWithHTTPClient(client *http.Client) *UpdateWorkweekConfigParams

NewUpdateWorkweekConfigParamsWithHTTPClient creates a new UpdateWorkweekConfigParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateWorkweekConfigParamsWithTimeout

func NewUpdateWorkweekConfigParamsWithTimeout(timeout time.Duration) *UpdateWorkweekConfigParams

NewUpdateWorkweekConfigParamsWithTimeout creates a new UpdateWorkweekConfigParams object with the ability to set a timeout on a request.

func (*UpdateWorkweekConfigParams) SetBody

SetBody adds the body to the update workweek config params

func (*UpdateWorkweekConfigParams) SetContext

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

SetContext adds the context to the update workweek config params

func (*UpdateWorkweekConfigParams) SetDefaults

func (o *UpdateWorkweekConfigParams) SetDefaults()

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

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

func (*UpdateWorkweekConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update workweek config params

func (*UpdateWorkweekConfigParams) SetID

func (o *UpdateWorkweekConfigParams) SetID(id string)

SetID adds the id to the update workweek config params

func (*UpdateWorkweekConfigParams) SetTimeout

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

SetTimeout adds the timeout to the update workweek config params

func (*UpdateWorkweekConfigParams) WithBody

WithBody adds the body to the update workweek config params

func (*UpdateWorkweekConfigParams) WithContext

WithContext adds the context to the update workweek config params

func (*UpdateWorkweekConfigParams) WithDefaults

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

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

func (*UpdateWorkweekConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update workweek config params

func (*UpdateWorkweekConfigParams) WithID

WithID adds the id to the update workweek config params

func (*UpdateWorkweekConfigParams) WithTimeout

WithTimeout adds the timeout to the update workweek config params

func (*UpdateWorkweekConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateWorkweekConfigReader

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

UpdateWorkweekConfigReader is a Reader for the UpdateWorkweekConfig structure.

func (*UpdateWorkweekConfigReader) ReadResponse

func (o *UpdateWorkweekConfigReader) 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