cost_category

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 cost category API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TravelExpenseCostCategoryGet

func (a *Client) TravelExpenseCostCategoryGet(params *TravelExpenseCostCategoryGetParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseCostCategoryGetOK, error)

TravelExpenseCostCategoryGet bs e t a get cost category by ID

func (*Client) TravelExpenseCostCategorySearch

func (a *Client) TravelExpenseCostCategorySearch(params *TravelExpenseCostCategorySearchParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseCostCategorySearchOK, error)

TravelExpenseCostCategorySearch bs e t a find cost category corresponding with sent data

type ClientService

type ClientService interface {
	TravelExpenseCostCategoryGet(params *TravelExpenseCostCategoryGetParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseCostCategoryGetOK, error)

	TravelExpenseCostCategorySearch(params *TravelExpenseCostCategorySearchParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseCostCategorySearchOK, 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 cost category API client.

type TravelExpenseCostCategoryGetOK

type TravelExpenseCostCategoryGetOK struct {
	Payload *models.ResponseWrapperTravelCostCategory
}

TravelExpenseCostCategoryGetOK handles this case with default header values.

successful operation

func NewTravelExpenseCostCategoryGetOK

func NewTravelExpenseCostCategoryGetOK() *TravelExpenseCostCategoryGetOK

NewTravelExpenseCostCategoryGetOK creates a TravelExpenseCostCategoryGetOK with default headers values

func (*TravelExpenseCostCategoryGetOK) Error

func (*TravelExpenseCostCategoryGetOK) GetPayload

type TravelExpenseCostCategoryGetParams

type TravelExpenseCostCategoryGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

TravelExpenseCostCategoryGetParams contains all the parameters to send to the API endpoint for the travel expense cost category get operation typically these are written to a http.Request

func NewTravelExpenseCostCategoryGetParams

func NewTravelExpenseCostCategoryGetParams() *TravelExpenseCostCategoryGetParams

NewTravelExpenseCostCategoryGetParams creates a new TravelExpenseCostCategoryGetParams object with the default values initialized.

func NewTravelExpenseCostCategoryGetParamsWithContext

func NewTravelExpenseCostCategoryGetParamsWithContext(ctx context.Context) *TravelExpenseCostCategoryGetParams

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

func NewTravelExpenseCostCategoryGetParamsWithHTTPClient

func NewTravelExpenseCostCategoryGetParamsWithHTTPClient(client *http.Client) *TravelExpenseCostCategoryGetParams

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

func NewTravelExpenseCostCategoryGetParamsWithTimeout

func NewTravelExpenseCostCategoryGetParamsWithTimeout(timeout time.Duration) *TravelExpenseCostCategoryGetParams

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

func (*TravelExpenseCostCategoryGetParams) SetContext

SetContext adds the context to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) SetFields

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

SetFields adds the fields to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) SetID

SetID adds the id to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) SetTimeout

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

SetTimeout adds the timeout to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WithContext

WithContext adds the context to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WithFields

WithFields adds the fields to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WithID

WithID adds the id to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WithTimeout

WithTimeout adds the timeout to the travel expense cost category get params

func (*TravelExpenseCostCategoryGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TravelExpenseCostCategoryGetReader

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

TravelExpenseCostCategoryGetReader is a Reader for the TravelExpenseCostCategoryGet structure.

func (*TravelExpenseCostCategoryGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TravelExpenseCostCategorySearchOK

type TravelExpenseCostCategorySearchOK struct {
	Payload *models.ListResponseTravelCostCategory
}

TravelExpenseCostCategorySearchOK handles this case with default header values.

successful operation

func NewTravelExpenseCostCategorySearchOK

func NewTravelExpenseCostCategorySearchOK() *TravelExpenseCostCategorySearchOK

NewTravelExpenseCostCategorySearchOK creates a TravelExpenseCostCategorySearchOK with default headers values

func (*TravelExpenseCostCategorySearchOK) Error

func (*TravelExpenseCostCategorySearchOK) GetPayload

type TravelExpenseCostCategorySearchParams

type TravelExpenseCostCategorySearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Description
	  Containing

	*/
	Description *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*IsInactive
	  Equals

	*/
	IsInactive *bool
	/*ShowOnEmployeeExpenses
	  Equals

	*/
	ShowOnEmployeeExpenses *bool
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

TravelExpenseCostCategorySearchParams contains all the parameters to send to the API endpoint for the travel expense cost category search operation typically these are written to a http.Request

func NewTravelExpenseCostCategorySearchParams

func NewTravelExpenseCostCategorySearchParams() *TravelExpenseCostCategorySearchParams

NewTravelExpenseCostCategorySearchParams creates a new TravelExpenseCostCategorySearchParams object with the default values initialized.

func NewTravelExpenseCostCategorySearchParamsWithContext

func NewTravelExpenseCostCategorySearchParamsWithContext(ctx context.Context) *TravelExpenseCostCategorySearchParams

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

func NewTravelExpenseCostCategorySearchParamsWithHTTPClient

func NewTravelExpenseCostCategorySearchParamsWithHTTPClient(client *http.Client) *TravelExpenseCostCategorySearchParams

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

func NewTravelExpenseCostCategorySearchParamsWithTimeout

func NewTravelExpenseCostCategorySearchParamsWithTimeout(timeout time.Duration) *TravelExpenseCostCategorySearchParams

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

func (*TravelExpenseCostCategorySearchParams) SetContext

SetContext adds the context to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetCount

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

SetCount adds the count to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetDescription

func (o *TravelExpenseCostCategorySearchParams) SetDescription(description *string)

SetDescription adds the description to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetFields

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

SetFields adds the fields to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetFrom

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

SetFrom adds the from to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetID

SetID adds the id to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetIsInactive

func (o *TravelExpenseCostCategorySearchParams) SetIsInactive(isInactive *bool)

SetIsInactive adds the isInactive to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetShowOnEmployeeExpenses

func (o *TravelExpenseCostCategorySearchParams) SetShowOnEmployeeExpenses(showOnEmployeeExpenses *bool)

SetShowOnEmployeeExpenses adds the showOnEmployeeExpenses to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetSorting

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

SetSorting adds the sorting to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) SetTimeout

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

SetTimeout adds the timeout to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithContext

WithContext adds the context to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithCount

WithCount adds the count to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithDescription

WithDescription adds the description to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithFields

WithFields adds the fields to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithFrom

WithFrom adds the from to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithID

WithID adds the id to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithIsInactive

WithIsInactive adds the isInactive to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithShowOnEmployeeExpenses

func (o *TravelExpenseCostCategorySearchParams) WithShowOnEmployeeExpenses(showOnEmployeeExpenses *bool) *TravelExpenseCostCategorySearchParams

WithShowOnEmployeeExpenses adds the showOnEmployeeExpenses to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithSorting

WithSorting adds the sorting to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WithTimeout

WithTimeout adds the timeout to the travel expense cost category search params

func (*TravelExpenseCostCategorySearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TravelExpenseCostCategorySearchReader

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

TravelExpenseCostCategorySearchReader is a Reader for the TravelExpenseCostCategorySearch structure.

func (*TravelExpenseCostCategorySearchReader) ReadResponse

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