rate

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 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 rate API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TravelExpenseRateGet

func (a *Client) TravelExpenseRateGet(params *TravelExpenseRateGetParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseRateGetOK, error)

TravelExpenseRateGet bs e t a get travel expense rate by ID

func (*Client) TravelExpenseRateSearch

func (a *Client) TravelExpenseRateSearch(params *TravelExpenseRateSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseRateSearchOK, error)

TravelExpenseRateSearch bs e t a find rates corresponding with sent data

type ClientService

type ClientService interface {
	TravelExpenseRateGet(params *TravelExpenseRateGetParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseRateGetOK, error)

	TravelExpenseRateSearch(params *TravelExpenseRateSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TravelExpenseRateSearchOK, 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 rate API client.

type TravelExpenseRateGetOK

type TravelExpenseRateGetOK struct {
	Payload *models.ResponseWrapperTravelExpenseRate
}

TravelExpenseRateGetOK handles this case with default header values.

successful operation

func NewTravelExpenseRateGetOK

func NewTravelExpenseRateGetOK() *TravelExpenseRateGetOK

NewTravelExpenseRateGetOK creates a TravelExpenseRateGetOK with default headers values

func (*TravelExpenseRateGetOK) Error

func (o *TravelExpenseRateGetOK) Error() string

func (*TravelExpenseRateGetOK) GetPayload

type TravelExpenseRateGetParams

type TravelExpenseRateGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewTravelExpenseRateGetParams

func NewTravelExpenseRateGetParams() *TravelExpenseRateGetParams

NewTravelExpenseRateGetParams creates a new TravelExpenseRateGetParams object with the default values initialized.

func NewTravelExpenseRateGetParamsWithContext

func NewTravelExpenseRateGetParamsWithContext(ctx context.Context) *TravelExpenseRateGetParams

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

func NewTravelExpenseRateGetParamsWithHTTPClient

func NewTravelExpenseRateGetParamsWithHTTPClient(client *http.Client) *TravelExpenseRateGetParams

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

func NewTravelExpenseRateGetParamsWithTimeout

func NewTravelExpenseRateGetParamsWithTimeout(timeout time.Duration) *TravelExpenseRateGetParams

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

func (*TravelExpenseRateGetParams) SetContext

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

SetContext adds the context to the travel expense rate get params

func (*TravelExpenseRateGetParams) SetFields

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

SetFields adds the fields to the travel expense rate get params

func (*TravelExpenseRateGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the travel expense rate get params

func (*TravelExpenseRateGetParams) SetID

func (o *TravelExpenseRateGetParams) SetID(id int32)

SetID adds the id to the travel expense rate get params

func (*TravelExpenseRateGetParams) SetTimeout

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

SetTimeout adds the timeout to the travel expense rate get params

func (*TravelExpenseRateGetParams) WithContext

WithContext adds the context to the travel expense rate get params

func (*TravelExpenseRateGetParams) WithFields

WithFields adds the fields to the travel expense rate get params

func (*TravelExpenseRateGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the travel expense rate get params

func (*TravelExpenseRateGetParams) WithID

WithID adds the id to the travel expense rate get params

func (*TravelExpenseRateGetParams) WithTimeout

WithTimeout adds the timeout to the travel expense rate get params

func (*TravelExpenseRateGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TravelExpenseRateGetReader

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

TravelExpenseRateGetReader is a Reader for the TravelExpenseRateGet structure.

func (*TravelExpenseRateGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TravelExpenseRateSearchOK

type TravelExpenseRateSearchOK struct {
	Payload *models.ListResponseTravelExpenseRate
}

TravelExpenseRateSearchOK handles this case with default header values.

successful operation

func NewTravelExpenseRateSearchOK

func NewTravelExpenseRateSearchOK() *TravelExpenseRateSearchOK

NewTravelExpenseRateSearchOK creates a TravelExpenseRateSearchOK with default headers values

func (*TravelExpenseRateSearchOK) Error

func (o *TravelExpenseRateSearchOK) Error() string

func (*TravelExpenseRateSearchOK) GetPayload

type TravelExpenseRateSearchParams

type TravelExpenseRateSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*DateFrom
	  From and including

	*/
	DateFrom *string
	/*DateTo
	  To and excluding

	*/
	DateTo *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*IsValidAccommodation
	  Equals

	*/
	IsValidAccommodation *bool
	/*IsValidDayTrip
	  Equals

	*/
	IsValidDayTrip *bool
	/*IsValidDomestic
	  Equals

	*/
	IsValidDomestic *bool
	/*IsValidForeignTravel
	  Equals

	*/
	IsValidForeignTravel *bool
	/*RateCategoryID
	  Equals

	*/
	RateCategoryID *string
	/*RequiresOvernightAccommodation
	  Equals

	*/
	RequiresOvernightAccommodation *bool
	/*RequiresZone
	  Equals

	*/
	RequiresZone *bool
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*Type
	  Equals

	*/
	Type *string

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

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

func NewTravelExpenseRateSearchParams

func NewTravelExpenseRateSearchParams() *TravelExpenseRateSearchParams

NewTravelExpenseRateSearchParams creates a new TravelExpenseRateSearchParams object with the default values initialized.

func NewTravelExpenseRateSearchParamsWithContext

func NewTravelExpenseRateSearchParamsWithContext(ctx context.Context) *TravelExpenseRateSearchParams

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

func NewTravelExpenseRateSearchParamsWithHTTPClient

func NewTravelExpenseRateSearchParamsWithHTTPClient(client *http.Client) *TravelExpenseRateSearchParams

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

func NewTravelExpenseRateSearchParamsWithTimeout

func NewTravelExpenseRateSearchParamsWithTimeout(timeout time.Duration) *TravelExpenseRateSearchParams

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

func (*TravelExpenseRateSearchParams) SetContext

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

SetContext adds the context to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetCount

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

SetCount adds the count to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetDateFrom

func (o *TravelExpenseRateSearchParams) SetDateFrom(dateFrom *string)

SetDateFrom adds the dateFrom to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetDateTo

func (o *TravelExpenseRateSearchParams) SetDateTo(dateTo *string)

SetDateTo adds the dateTo to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetFields

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

SetFields adds the fields to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetFrom

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

SetFrom adds the from to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetIsValidAccommodation

func (o *TravelExpenseRateSearchParams) SetIsValidAccommodation(isValidAccommodation *bool)

SetIsValidAccommodation adds the isValidAccommodation to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetIsValidDayTrip

func (o *TravelExpenseRateSearchParams) SetIsValidDayTrip(isValidDayTrip *bool)

SetIsValidDayTrip adds the isValidDayTrip to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetIsValidDomestic

func (o *TravelExpenseRateSearchParams) SetIsValidDomestic(isValidDomestic *bool)

SetIsValidDomestic adds the isValidDomestic to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetIsValidForeignTravel

func (o *TravelExpenseRateSearchParams) SetIsValidForeignTravel(isValidForeignTravel *bool)

SetIsValidForeignTravel adds the isValidForeignTravel to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetRateCategoryID

func (o *TravelExpenseRateSearchParams) SetRateCategoryID(rateCategoryID *string)

SetRateCategoryID adds the rateCategoryId to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetRequiresOvernightAccommodation

func (o *TravelExpenseRateSearchParams) SetRequiresOvernightAccommodation(requiresOvernightAccommodation *bool)

SetRequiresOvernightAccommodation adds the requiresOvernightAccommodation to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetRequiresZone

func (o *TravelExpenseRateSearchParams) SetRequiresZone(requiresZone *bool)

SetRequiresZone adds the requiresZone to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetSorting

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

SetSorting adds the sorting to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetTimeout

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

SetTimeout adds the timeout to the travel expense rate search params

func (*TravelExpenseRateSearchParams) SetType

func (o *TravelExpenseRateSearchParams) SetType(typeVar *string)

SetType adds the type to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithContext

WithContext adds the context to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithCount

WithCount adds the count to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithDateFrom

WithDateFrom adds the dateFrom to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithDateTo

WithDateTo adds the dateTo to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithFields

WithFields adds the fields to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithFrom

WithFrom adds the from to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithIsValidAccommodation

func (o *TravelExpenseRateSearchParams) WithIsValidAccommodation(isValidAccommodation *bool) *TravelExpenseRateSearchParams

WithIsValidAccommodation adds the isValidAccommodation to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithIsValidDayTrip

func (o *TravelExpenseRateSearchParams) WithIsValidDayTrip(isValidDayTrip *bool) *TravelExpenseRateSearchParams

WithIsValidDayTrip adds the isValidDayTrip to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithIsValidDomestic

func (o *TravelExpenseRateSearchParams) WithIsValidDomestic(isValidDomestic *bool) *TravelExpenseRateSearchParams

WithIsValidDomestic adds the isValidDomestic to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithIsValidForeignTravel

func (o *TravelExpenseRateSearchParams) WithIsValidForeignTravel(isValidForeignTravel *bool) *TravelExpenseRateSearchParams

WithIsValidForeignTravel adds the isValidForeignTravel to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithRateCategoryID

func (o *TravelExpenseRateSearchParams) WithRateCategoryID(rateCategoryID *string) *TravelExpenseRateSearchParams

WithRateCategoryID adds the rateCategoryID to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithRequiresOvernightAccommodation

func (o *TravelExpenseRateSearchParams) WithRequiresOvernightAccommodation(requiresOvernightAccommodation *bool) *TravelExpenseRateSearchParams

WithRequiresOvernightAccommodation adds the requiresOvernightAccommodation to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithRequiresZone

func (o *TravelExpenseRateSearchParams) WithRequiresZone(requiresZone *bool) *TravelExpenseRateSearchParams

WithRequiresZone adds the requiresZone to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithSorting

WithSorting adds the sorting to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithTimeout

WithTimeout adds the timeout to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WithType

WithType adds the typeVar to the travel expense rate search params

func (*TravelExpenseRateSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TravelExpenseRateSearchReader

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

TravelExpenseRateSearchReader is a Reader for the TravelExpenseRateSearch structure.

func (*TravelExpenseRateSearchReader) ReadResponse

func (o *TravelExpenseRateSearchReader) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL