next_of_kin

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 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 next of kin API

func (*Client) EmployeeNextOfKinGet

func (a *Client) EmployeeNextOfKinGet(params *EmployeeNextOfKinGetParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinGetOK, error)

EmployeeNextOfKinGet bs e t a find next of kin by ID

func (*Client) EmployeeNextOfKinPost

func (a *Client) EmployeeNextOfKinPost(params *EmployeeNextOfKinPostParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinPostCreated, error)

EmployeeNextOfKinPost bs e t a create next of kin

func (*Client) EmployeeNextOfKinPut

func (a *Client) EmployeeNextOfKinPut(params *EmployeeNextOfKinPutParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinPutOK, error)

EmployeeNextOfKinPut bs e t a update next of kin

func (*Client) EmployeeNextOfKinSearch

func (a *Client) EmployeeNextOfKinSearch(params *EmployeeNextOfKinSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinSearchOK, error)

EmployeeNextOfKinSearch finds all next of kin for employee

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	EmployeeNextOfKinGet(params *EmployeeNextOfKinGetParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinGetOK, error)

	EmployeeNextOfKinPost(params *EmployeeNextOfKinPostParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinPostCreated, error)

	EmployeeNextOfKinPut(params *EmployeeNextOfKinPutParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinPutOK, error)

	EmployeeNextOfKinSearch(params *EmployeeNextOfKinSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeNextOfKinSearchOK, 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 next of kin API client.

type EmployeeNextOfKinGetOK

type EmployeeNextOfKinGetOK struct {
	Payload *models.ResponseWrapperNextOfKin
}

EmployeeNextOfKinGetOK handles this case with default header values.

successful operation

func NewEmployeeNextOfKinGetOK

func NewEmployeeNextOfKinGetOK() *EmployeeNextOfKinGetOK

NewEmployeeNextOfKinGetOK creates a EmployeeNextOfKinGetOK with default headers values

func (*EmployeeNextOfKinGetOK) Error

func (o *EmployeeNextOfKinGetOK) Error() string

func (*EmployeeNextOfKinGetOK) GetPayload

type EmployeeNextOfKinGetParams

type EmployeeNextOfKinGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

EmployeeNextOfKinGetParams contains all the parameters to send to the API endpoint for the employee next of kin get operation typically these are written to a http.Request

func NewEmployeeNextOfKinGetParams

func NewEmployeeNextOfKinGetParams() *EmployeeNextOfKinGetParams

NewEmployeeNextOfKinGetParams creates a new EmployeeNextOfKinGetParams object with the default values initialized.

func NewEmployeeNextOfKinGetParamsWithContext

func NewEmployeeNextOfKinGetParamsWithContext(ctx context.Context) *EmployeeNextOfKinGetParams

NewEmployeeNextOfKinGetParamsWithContext creates a new EmployeeNextOfKinGetParams object with the default values initialized, and the ability to set a context for a request

func NewEmployeeNextOfKinGetParamsWithHTTPClient

func NewEmployeeNextOfKinGetParamsWithHTTPClient(client *http.Client) *EmployeeNextOfKinGetParams

NewEmployeeNextOfKinGetParamsWithHTTPClient creates a new EmployeeNextOfKinGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmployeeNextOfKinGetParamsWithTimeout

func NewEmployeeNextOfKinGetParamsWithTimeout(timeout time.Duration) *EmployeeNextOfKinGetParams

NewEmployeeNextOfKinGetParamsWithTimeout creates a new EmployeeNextOfKinGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmployeeNextOfKinGetParams) SetContext

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

SetContext adds the context to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) SetFields

func (o *EmployeeNextOfKinGetParams) SetFields(fields *string)

SetFields adds the fields to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) SetID

func (o *EmployeeNextOfKinGetParams) SetID(id int32)

SetID adds the id to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) SetTimeout

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

SetTimeout adds the timeout to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WithContext

WithContext adds the context to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WithFields

WithFields adds the fields to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WithID

WithID adds the id to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WithTimeout

WithTimeout adds the timeout to the employee next of kin get params

func (*EmployeeNextOfKinGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmployeeNextOfKinGetReader

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

EmployeeNextOfKinGetReader is a Reader for the EmployeeNextOfKinGet structure.

func (*EmployeeNextOfKinGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeeNextOfKinPostCreated

type EmployeeNextOfKinPostCreated struct {
	Payload *models.ResponseWrapperNextOfKin
}

EmployeeNextOfKinPostCreated handles this case with default header values.

successfully created

func NewEmployeeNextOfKinPostCreated

func NewEmployeeNextOfKinPostCreated() *EmployeeNextOfKinPostCreated

NewEmployeeNextOfKinPostCreated creates a EmployeeNextOfKinPostCreated with default headers values

func (*EmployeeNextOfKinPostCreated) Error

func (*EmployeeNextOfKinPostCreated) GetPayload

type EmployeeNextOfKinPostParams

type EmployeeNextOfKinPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.NextOfKin

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

EmployeeNextOfKinPostParams contains all the parameters to send to the API endpoint for the employee next of kin post operation typically these are written to a http.Request

func NewEmployeeNextOfKinPostParams

func NewEmployeeNextOfKinPostParams() *EmployeeNextOfKinPostParams

NewEmployeeNextOfKinPostParams creates a new EmployeeNextOfKinPostParams object with the default values initialized.

func NewEmployeeNextOfKinPostParamsWithContext

func NewEmployeeNextOfKinPostParamsWithContext(ctx context.Context) *EmployeeNextOfKinPostParams

NewEmployeeNextOfKinPostParamsWithContext creates a new EmployeeNextOfKinPostParams object with the default values initialized, and the ability to set a context for a request

func NewEmployeeNextOfKinPostParamsWithHTTPClient

func NewEmployeeNextOfKinPostParamsWithHTTPClient(client *http.Client) *EmployeeNextOfKinPostParams

NewEmployeeNextOfKinPostParamsWithHTTPClient creates a new EmployeeNextOfKinPostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmployeeNextOfKinPostParamsWithTimeout

func NewEmployeeNextOfKinPostParamsWithTimeout(timeout time.Duration) *EmployeeNextOfKinPostParams

NewEmployeeNextOfKinPostParamsWithTimeout creates a new EmployeeNextOfKinPostParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmployeeNextOfKinPostParams) SetBody

func (o *EmployeeNextOfKinPostParams) SetBody(body *models.NextOfKin)

SetBody adds the body to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) SetContext

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

SetContext adds the context to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) SetTimeout

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

SetTimeout adds the timeout to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) WithBody

WithBody adds the body to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) WithContext

WithContext adds the context to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) WithTimeout

WithTimeout adds the timeout to the employee next of kin post params

func (*EmployeeNextOfKinPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmployeeNextOfKinPostReader

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

EmployeeNextOfKinPostReader is a Reader for the EmployeeNextOfKinPost structure.

func (*EmployeeNextOfKinPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeeNextOfKinPutOK

type EmployeeNextOfKinPutOK struct {
	Payload *models.ResponseWrapperNextOfKin
}

EmployeeNextOfKinPutOK handles this case with default header values.

successful operation

func NewEmployeeNextOfKinPutOK

func NewEmployeeNextOfKinPutOK() *EmployeeNextOfKinPutOK

NewEmployeeNextOfKinPutOK creates a EmployeeNextOfKinPutOK with default headers values

func (*EmployeeNextOfKinPutOK) Error

func (o *EmployeeNextOfKinPutOK) Error() string

func (*EmployeeNextOfKinPutOK) GetPayload

type EmployeeNextOfKinPutParams

type EmployeeNextOfKinPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.NextOfKin
	/*ID
	  Element ID

	*/
	ID int32

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

EmployeeNextOfKinPutParams contains all the parameters to send to the API endpoint for the employee next of kin put operation typically these are written to a http.Request

func NewEmployeeNextOfKinPutParams

func NewEmployeeNextOfKinPutParams() *EmployeeNextOfKinPutParams

NewEmployeeNextOfKinPutParams creates a new EmployeeNextOfKinPutParams object with the default values initialized.

func NewEmployeeNextOfKinPutParamsWithContext

func NewEmployeeNextOfKinPutParamsWithContext(ctx context.Context) *EmployeeNextOfKinPutParams

NewEmployeeNextOfKinPutParamsWithContext creates a new EmployeeNextOfKinPutParams object with the default values initialized, and the ability to set a context for a request

func NewEmployeeNextOfKinPutParamsWithHTTPClient

func NewEmployeeNextOfKinPutParamsWithHTTPClient(client *http.Client) *EmployeeNextOfKinPutParams

NewEmployeeNextOfKinPutParamsWithHTTPClient creates a new EmployeeNextOfKinPutParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmployeeNextOfKinPutParamsWithTimeout

func NewEmployeeNextOfKinPutParamsWithTimeout(timeout time.Duration) *EmployeeNextOfKinPutParams

NewEmployeeNextOfKinPutParamsWithTimeout creates a new EmployeeNextOfKinPutParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmployeeNextOfKinPutParams) SetBody

func (o *EmployeeNextOfKinPutParams) SetBody(body *models.NextOfKin)

SetBody adds the body to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) SetContext

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

SetContext adds the context to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) SetID

func (o *EmployeeNextOfKinPutParams) SetID(id int32)

SetID adds the id to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) SetTimeout

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

SetTimeout adds the timeout to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WithBody

WithBody adds the body to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WithContext

WithContext adds the context to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WithID

WithID adds the id to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WithTimeout

WithTimeout adds the timeout to the employee next of kin put params

func (*EmployeeNextOfKinPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmployeeNextOfKinPutReader

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

EmployeeNextOfKinPutReader is a Reader for the EmployeeNextOfKinPut structure.

func (*EmployeeNextOfKinPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeeNextOfKinSearchOK

type EmployeeNextOfKinSearchOK struct {
	Payload *models.ListResponseNextOfKin
}

EmployeeNextOfKinSearchOK handles this case with default header values.

successful operation

func NewEmployeeNextOfKinSearchOK

func NewEmployeeNextOfKinSearchOK() *EmployeeNextOfKinSearchOK

NewEmployeeNextOfKinSearchOK creates a EmployeeNextOfKinSearchOK with default headers values

func (*EmployeeNextOfKinSearchOK) Error

func (o *EmployeeNextOfKinSearchOK) Error() string

func (*EmployeeNextOfKinSearchOK) GetPayload

type EmployeeNextOfKinSearchParams

type EmployeeNextOfKinSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*EmployeeID
	  Employee ID. Defaults to ID of token owner.

	*/
	EmployeeID *int32
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

EmployeeNextOfKinSearchParams contains all the parameters to send to the API endpoint for the employee next of kin search operation typically these are written to a http.Request

func NewEmployeeNextOfKinSearchParams

func NewEmployeeNextOfKinSearchParams() *EmployeeNextOfKinSearchParams

NewEmployeeNextOfKinSearchParams creates a new EmployeeNextOfKinSearchParams object with the default values initialized.

func NewEmployeeNextOfKinSearchParamsWithContext

func NewEmployeeNextOfKinSearchParamsWithContext(ctx context.Context) *EmployeeNextOfKinSearchParams

NewEmployeeNextOfKinSearchParamsWithContext creates a new EmployeeNextOfKinSearchParams object with the default values initialized, and the ability to set a context for a request

func NewEmployeeNextOfKinSearchParamsWithHTTPClient

func NewEmployeeNextOfKinSearchParamsWithHTTPClient(client *http.Client) *EmployeeNextOfKinSearchParams

NewEmployeeNextOfKinSearchParamsWithHTTPClient creates a new EmployeeNextOfKinSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmployeeNextOfKinSearchParamsWithTimeout

func NewEmployeeNextOfKinSearchParamsWithTimeout(timeout time.Duration) *EmployeeNextOfKinSearchParams

NewEmployeeNextOfKinSearchParamsWithTimeout creates a new EmployeeNextOfKinSearchParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmployeeNextOfKinSearchParams) SetContext

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

SetContext adds the context to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetCount

func (o *EmployeeNextOfKinSearchParams) SetCount(count *int64)

SetCount adds the count to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetEmployeeID

func (o *EmployeeNextOfKinSearchParams) SetEmployeeID(employeeID *int32)

SetEmployeeID adds the employeeId to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetFields

func (o *EmployeeNextOfKinSearchParams) SetFields(fields *string)

SetFields adds the fields to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetFrom

func (o *EmployeeNextOfKinSearchParams) SetFrom(from *int64)

SetFrom adds the from to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetSorting

func (o *EmployeeNextOfKinSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) SetTimeout

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

SetTimeout adds the timeout to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithContext

WithContext adds the context to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithCount

WithCount adds the count to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithEmployeeID

func (o *EmployeeNextOfKinSearchParams) WithEmployeeID(employeeID *int32) *EmployeeNextOfKinSearchParams

WithEmployeeID adds the employeeID to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithFields

WithFields adds the fields to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithFrom

WithFrom adds the from to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithSorting

WithSorting adds the sorting to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WithTimeout

WithTimeout adds the timeout to the employee next of kin search params

func (*EmployeeNextOfKinSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmployeeNextOfKinSearchReader

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

EmployeeNextOfKinSearchReader is a Reader for the EmployeeNextOfKinSearch structure.

func (*EmployeeNextOfKinSearchReader) ReadResponse

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