Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TravelExpenseCostCategoryGet(params *TravelExpenseCostCategoryGetParams, ...) (*TravelExpenseCostCategoryGetOK, error)
- func (a *Client) TravelExpenseCostCategorySearch(params *TravelExpenseCostCategorySearchParams, ...) (*TravelExpenseCostCategorySearchOK, error)
- type ClientService
- type TravelExpenseCostCategoryGetOK
- type TravelExpenseCostCategoryGetParams
- func NewTravelExpenseCostCategoryGetParams() *TravelExpenseCostCategoryGetParams
- func NewTravelExpenseCostCategoryGetParamsWithContext(ctx context.Context) *TravelExpenseCostCategoryGetParams
- func NewTravelExpenseCostCategoryGetParamsWithHTTPClient(client *http.Client) *TravelExpenseCostCategoryGetParams
- func NewTravelExpenseCostCategoryGetParamsWithTimeout(timeout time.Duration) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) SetContext(ctx context.Context)
- func (o *TravelExpenseCostCategoryGetParams) SetFields(fields *string)
- func (o *TravelExpenseCostCategoryGetParams) SetHTTPClient(client *http.Client)
- func (o *TravelExpenseCostCategoryGetParams) SetID(id int32)
- func (o *TravelExpenseCostCategoryGetParams) SetTimeout(timeout time.Duration)
- func (o *TravelExpenseCostCategoryGetParams) WithContext(ctx context.Context) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) WithFields(fields *string) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) WithHTTPClient(client *http.Client) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) WithID(id int32) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) WithTimeout(timeout time.Duration) *TravelExpenseCostCategoryGetParams
- func (o *TravelExpenseCostCategoryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TravelExpenseCostCategoryGetReader
- type TravelExpenseCostCategorySearchOK
- type TravelExpenseCostCategorySearchParams
- func NewTravelExpenseCostCategorySearchParams() *TravelExpenseCostCategorySearchParams
- func NewTravelExpenseCostCategorySearchParamsWithContext(ctx context.Context) *TravelExpenseCostCategorySearchParams
- func NewTravelExpenseCostCategorySearchParamsWithHTTPClient(client *http.Client) *TravelExpenseCostCategorySearchParams
- func NewTravelExpenseCostCategorySearchParamsWithTimeout(timeout time.Duration) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) SetContext(ctx context.Context)
- func (o *TravelExpenseCostCategorySearchParams) SetCount(count *int64)
- func (o *TravelExpenseCostCategorySearchParams) SetDescription(description *string)
- func (o *TravelExpenseCostCategorySearchParams) SetFields(fields *string)
- func (o *TravelExpenseCostCategorySearchParams) SetFrom(from *int64)
- func (o *TravelExpenseCostCategorySearchParams) SetHTTPClient(client *http.Client)
- func (o *TravelExpenseCostCategorySearchParams) SetID(id *string)
- func (o *TravelExpenseCostCategorySearchParams) SetIsInactive(isInactive *bool)
- func (o *TravelExpenseCostCategorySearchParams) SetShowOnEmployeeExpenses(showOnEmployeeExpenses *bool)
- func (o *TravelExpenseCostCategorySearchParams) SetSorting(sorting *string)
- func (o *TravelExpenseCostCategorySearchParams) SetTimeout(timeout time.Duration)
- func (o *TravelExpenseCostCategorySearchParams) WithContext(ctx context.Context) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithCount(count *int64) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithDescription(description *string) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithFields(fields *string) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithFrom(from *int64) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithHTTPClient(client *http.Client) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithID(id *string) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithIsInactive(isInactive *bool) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithShowOnEmployeeExpenses(showOnEmployeeExpenses *bool) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithSorting(sorting *string) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WithTimeout(timeout time.Duration) *TravelExpenseCostCategorySearchParams
- func (o *TravelExpenseCostCategorySearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TravelExpenseCostCategorySearchReader
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 (o *TravelExpenseCostCategoryGetOK) Error() string
func (*TravelExpenseCostCategoryGetOK) GetPayload ¶
func (o *TravelExpenseCostCategoryGetOK) GetPayload() *models.ResponseWrapperTravelCostCategory
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 ¶
func (o *TravelExpenseCostCategoryGetParams) SetContext(ctx context.Context)
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 ¶
func (o *TravelExpenseCostCategoryGetParams) SetID(id int32)
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 ¶
func (o *TravelExpenseCostCategoryGetParams) WithContext(ctx context.Context) *TravelExpenseCostCategoryGetParams
WithContext adds the context to the travel expense cost category get params
func (*TravelExpenseCostCategoryGetParams) WithFields ¶
func (o *TravelExpenseCostCategoryGetParams) WithFields(fields *string) *TravelExpenseCostCategoryGetParams
WithFields adds the fields to the travel expense cost category get params
func (*TravelExpenseCostCategoryGetParams) WithHTTPClient ¶
func (o *TravelExpenseCostCategoryGetParams) WithHTTPClient(client *http.Client) *TravelExpenseCostCategoryGetParams
WithHTTPClient adds the HTTPClient to the travel expense cost category get params
func (*TravelExpenseCostCategoryGetParams) WithID ¶
func (o *TravelExpenseCostCategoryGetParams) WithID(id int32) *TravelExpenseCostCategoryGetParams
WithID adds the id to the travel expense cost category get params
func (*TravelExpenseCostCategoryGetParams) WithTimeout ¶
func (o *TravelExpenseCostCategoryGetParams) WithTimeout(timeout time.Duration) *TravelExpenseCostCategoryGetParams
WithTimeout adds the timeout to the travel expense cost category get params
func (*TravelExpenseCostCategoryGetParams) WriteToRequest ¶
func (o *TravelExpenseCostCategoryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *TravelExpenseCostCategorySearchOK) Error() string
func (*TravelExpenseCostCategorySearchOK) GetPayload ¶
func (o *TravelExpenseCostCategorySearchOK) GetPayload() *models.ListResponseTravelCostCategory
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 ¶
func (o *TravelExpenseCostCategorySearchParams) SetContext(ctx context.Context)
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 ¶
func (o *TravelExpenseCostCategorySearchParams) SetID(id *string)
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 ¶
func (o *TravelExpenseCostCategorySearchParams) WithContext(ctx context.Context) *TravelExpenseCostCategorySearchParams
WithContext adds the context to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithCount ¶
func (o *TravelExpenseCostCategorySearchParams) WithCount(count *int64) *TravelExpenseCostCategorySearchParams
WithCount adds the count to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithDescription ¶
func (o *TravelExpenseCostCategorySearchParams) WithDescription(description *string) *TravelExpenseCostCategorySearchParams
WithDescription adds the description to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithFields ¶
func (o *TravelExpenseCostCategorySearchParams) WithFields(fields *string) *TravelExpenseCostCategorySearchParams
WithFields adds the fields to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithFrom ¶
func (o *TravelExpenseCostCategorySearchParams) WithFrom(from *int64) *TravelExpenseCostCategorySearchParams
WithFrom adds the from to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithHTTPClient ¶
func (o *TravelExpenseCostCategorySearchParams) WithHTTPClient(client *http.Client) *TravelExpenseCostCategorySearchParams
WithHTTPClient adds the HTTPClient to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithID ¶
func (o *TravelExpenseCostCategorySearchParams) WithID(id *string) *TravelExpenseCostCategorySearchParams
WithID adds the id to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithIsInactive ¶
func (o *TravelExpenseCostCategorySearchParams) WithIsInactive(isInactive *bool) *TravelExpenseCostCategorySearchParams
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 ¶
func (o *TravelExpenseCostCategorySearchParams) WithSorting(sorting *string) *TravelExpenseCostCategorySearchParams
WithSorting adds the sorting to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WithTimeout ¶
func (o *TravelExpenseCostCategorySearchParams) WithTimeout(timeout time.Duration) *TravelExpenseCostCategorySearchParams
WithTimeout adds the timeout to the travel expense cost category search params
func (*TravelExpenseCostCategorySearchParams) WriteToRequest ¶
func (o *TravelExpenseCostCategorySearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.