Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteAPIExpensesID(params *DeleteAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAPIExpensesIDNoContent, error)
- func (a *Client) GetAPIExpenses(params *GetAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIExpensesOK, error)
- func (a *Client) GetAPIExpensesID(params *GetAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIExpensesIDOK, error)
- func (a *Client) PatchAPIExpensesID(params *PatchAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPIExpensesIDOK, error)
- func (a *Client) PatchAPIExpensesIDDuplicate(params *PatchAPIExpensesIDDuplicateParams, ...) (*PatchAPIExpensesIDDuplicateOK, error)
- func (a *Client) PatchAPIExpensesIDMeta(params *PatchAPIExpensesIDMetaParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPIExpensesIDMetaOK, error)
- func (a *Client) PostAPIExpenses(params *PostAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPIExpensesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPIExpensesIDNoContent
- func (o *DeleteAPIExpensesIDNoContent) Error() string
- func (o *DeleteAPIExpensesIDNoContent) IsClientError() bool
- func (o *DeleteAPIExpensesIDNoContent) IsCode(code int) bool
- func (o *DeleteAPIExpensesIDNoContent) IsRedirect() bool
- func (o *DeleteAPIExpensesIDNoContent) IsServerError() bool
- func (o *DeleteAPIExpensesIDNoContent) IsSuccess() bool
- func (o *DeleteAPIExpensesIDNoContent) String() string
- type DeleteAPIExpensesIDParams
- func NewDeleteAPIExpensesIDParams() *DeleteAPIExpensesIDParams
- func NewDeleteAPIExpensesIDParamsWithContext(ctx context.Context) *DeleteAPIExpensesIDParams
- func NewDeleteAPIExpensesIDParamsWithHTTPClient(client *http.Client) *DeleteAPIExpensesIDParams
- func NewDeleteAPIExpensesIDParamsWithTimeout(timeout time.Duration) *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) SetContext(ctx context.Context)
- func (o *DeleteAPIExpensesIDParams) SetDefaults()
- func (o *DeleteAPIExpensesIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPIExpensesIDParams) SetID(id int64)
- func (o *DeleteAPIExpensesIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPIExpensesIDParams) WithContext(ctx context.Context) *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) WithDefaults() *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) WithHTTPClient(client *http.Client) *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) WithID(id int64) *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) WithTimeout(timeout time.Duration) *DeleteAPIExpensesIDParams
- func (o *DeleteAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPIExpensesIDReader
- type GetAPIExpensesIDOK
- func (o *GetAPIExpensesIDOK) Error() string
- func (o *GetAPIExpensesIDOK) GetPayload() *models.ExpenseEntity
- func (o *GetAPIExpensesIDOK) IsClientError() bool
- func (o *GetAPIExpensesIDOK) IsCode(code int) bool
- func (o *GetAPIExpensesIDOK) IsRedirect() bool
- func (o *GetAPIExpensesIDOK) IsServerError() bool
- func (o *GetAPIExpensesIDOK) IsSuccess() bool
- func (o *GetAPIExpensesIDOK) String() string
- type GetAPIExpensesIDParams
- func NewGetAPIExpensesIDParams() *GetAPIExpensesIDParams
- func NewGetAPIExpensesIDParamsWithContext(ctx context.Context) *GetAPIExpensesIDParams
- func NewGetAPIExpensesIDParamsWithHTTPClient(client *http.Client) *GetAPIExpensesIDParams
- func NewGetAPIExpensesIDParamsWithTimeout(timeout time.Duration) *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) SetContext(ctx context.Context)
- func (o *GetAPIExpensesIDParams) SetDefaults()
- func (o *GetAPIExpensesIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIExpensesIDParams) SetID(id int64)
- func (o *GetAPIExpensesIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIExpensesIDParams) WithContext(ctx context.Context) *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) WithDefaults() *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) WithHTTPClient(client *http.Client) *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) WithID(id int64) *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) WithTimeout(timeout time.Duration) *GetAPIExpensesIDParams
- func (o *GetAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIExpensesIDReader
- type GetAPIExpensesOK
- func (o *GetAPIExpensesOK) Error() string
- func (o *GetAPIExpensesOK) GetPayload() []*models.ExpenseEntity
- func (o *GetAPIExpensesOK) IsClientError() bool
- func (o *GetAPIExpensesOK) IsCode(code int) bool
- func (o *GetAPIExpensesOK) IsRedirect() bool
- func (o *GetAPIExpensesOK) IsServerError() bool
- func (o *GetAPIExpensesOK) IsSuccess() bool
- func (o *GetAPIExpensesOK) String() string
- type GetAPIExpensesParams
- func NewGetAPIExpensesParams() *GetAPIExpensesParams
- func NewGetAPIExpensesParamsWithContext(ctx context.Context) *GetAPIExpensesParams
- func NewGetAPIExpensesParamsWithHTTPClient(client *http.Client) *GetAPIExpensesParams
- func NewGetAPIExpensesParamsWithTimeout(timeout time.Duration) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) SetBegin(begin string)
- func (o *GetAPIExpensesParams) SetContext(ctx context.Context)
- func (o *GetAPIExpensesParams) SetDefaults()
- func (o *GetAPIExpensesParams) SetEnd(end string)
- func (o *GetAPIExpensesParams) SetExported(exported string)
- func (o *GetAPIExpensesParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIExpensesParams) SetOrder(order string)
- func (o *GetAPIExpensesParams) SetOrderBy(orderBy string)
- func (o *GetAPIExpensesParams) SetPage(page string)
- func (o *GetAPIExpensesParams) SetRefundable(refundable string)
- func (o *GetAPIExpensesParams) SetSize(size string)
- func (o *GetAPIExpensesParams) SetTerm(term string)
- func (o *GetAPIExpensesParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIExpensesParams) WithBegin(begin string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithContext(ctx context.Context) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithDefaults() *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithEnd(end string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithExported(exported string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithHTTPClient(client *http.Client) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithOrder(order string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithOrderBy(orderBy string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithPage(page string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithRefundable(refundable string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithSize(size string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithTerm(term string) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WithTimeout(timeout time.Duration) *GetAPIExpensesParams
- func (o *GetAPIExpensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIExpensesReader
- type PatchAPIExpensesIDDuplicateOK
- func (o *PatchAPIExpensesIDDuplicateOK) Error() string
- func (o *PatchAPIExpensesIDDuplicateOK) GetPayload() *models.ExpenseEntity
- func (o *PatchAPIExpensesIDDuplicateOK) IsClientError() bool
- func (o *PatchAPIExpensesIDDuplicateOK) IsCode(code int) bool
- func (o *PatchAPIExpensesIDDuplicateOK) IsRedirect() bool
- func (o *PatchAPIExpensesIDDuplicateOK) IsServerError() bool
- func (o *PatchAPIExpensesIDDuplicateOK) IsSuccess() bool
- func (o *PatchAPIExpensesIDDuplicateOK) String() string
- type PatchAPIExpensesIDDuplicateParams
- func NewPatchAPIExpensesIDDuplicateParams() *PatchAPIExpensesIDDuplicateParams
- func NewPatchAPIExpensesIDDuplicateParamsWithContext(ctx context.Context) *PatchAPIExpensesIDDuplicateParams
- func NewPatchAPIExpensesIDDuplicateParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDDuplicateParams
- func NewPatchAPIExpensesIDDuplicateParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) SetContext(ctx context.Context)
- func (o *PatchAPIExpensesIDDuplicateParams) SetDefaults()
- func (o *PatchAPIExpensesIDDuplicateParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPIExpensesIDDuplicateParams) SetID(id int64)
- func (o *PatchAPIExpensesIDDuplicateParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPIExpensesIDDuplicateParams) WithContext(ctx context.Context) *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) WithDefaults() *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) WithID(id int64) *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDDuplicateParams
- func (o *PatchAPIExpensesIDDuplicateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPIExpensesIDDuplicateReader
- type PatchAPIExpensesIDMetaBody
- func (o *PatchAPIExpensesIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchAPIExpensesIDMetaBody) MarshalBinary() ([]byte, error)
- func (o *PatchAPIExpensesIDMetaBody) UnmarshalBinary(b []byte) error
- func (o *PatchAPIExpensesIDMetaBody) Validate(formats strfmt.Registry) error
- type PatchAPIExpensesIDMetaOK
- func (o *PatchAPIExpensesIDMetaOK) Error() string
- func (o *PatchAPIExpensesIDMetaOK) GetPayload() *models.ExpenseEntity
- func (o *PatchAPIExpensesIDMetaOK) IsClientError() bool
- func (o *PatchAPIExpensesIDMetaOK) IsCode(code int) bool
- func (o *PatchAPIExpensesIDMetaOK) IsRedirect() bool
- func (o *PatchAPIExpensesIDMetaOK) IsServerError() bool
- func (o *PatchAPIExpensesIDMetaOK) IsSuccess() bool
- func (o *PatchAPIExpensesIDMetaOK) String() string
- type PatchAPIExpensesIDMetaParams
- func NewPatchAPIExpensesIDMetaParams() *PatchAPIExpensesIDMetaParams
- func NewPatchAPIExpensesIDMetaParamsWithContext(ctx context.Context) *PatchAPIExpensesIDMetaParams
- func NewPatchAPIExpensesIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDMetaParams
- func NewPatchAPIExpensesIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) SetBody(body PatchAPIExpensesIDMetaBody)
- func (o *PatchAPIExpensesIDMetaParams) SetContext(ctx context.Context)
- func (o *PatchAPIExpensesIDMetaParams) SetDefaults()
- func (o *PatchAPIExpensesIDMetaParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPIExpensesIDMetaParams) SetID(id int64)
- func (o *PatchAPIExpensesIDMetaParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPIExpensesIDMetaParams) WithBody(body PatchAPIExpensesIDMetaBody) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WithContext(ctx context.Context) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WithDefaults() *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WithID(id int64) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDMetaParams
- func (o *PatchAPIExpensesIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPIExpensesIDMetaReader
- type PatchAPIExpensesIDOK
- func (o *PatchAPIExpensesIDOK) Error() string
- func (o *PatchAPIExpensesIDOK) GetPayload() *models.ExpenseEntity
- func (o *PatchAPIExpensesIDOK) IsClientError() bool
- func (o *PatchAPIExpensesIDOK) IsCode(code int) bool
- func (o *PatchAPIExpensesIDOK) IsRedirect() bool
- func (o *PatchAPIExpensesIDOK) IsServerError() bool
- func (o *PatchAPIExpensesIDOK) IsSuccess() bool
- func (o *PatchAPIExpensesIDOK) String() string
- type PatchAPIExpensesIDParams
- func NewPatchAPIExpensesIDParams() *PatchAPIExpensesIDParams
- func NewPatchAPIExpensesIDParamsWithContext(ctx context.Context) *PatchAPIExpensesIDParams
- func NewPatchAPIExpensesIDParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDParams
- func NewPatchAPIExpensesIDParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) SetBody(body *models.ExpenseEditForm)
- func (o *PatchAPIExpensesIDParams) SetContext(ctx context.Context)
- func (o *PatchAPIExpensesIDParams) SetDefaults()
- func (o *PatchAPIExpensesIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPIExpensesIDParams) SetID(id int64)
- func (o *PatchAPIExpensesIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPIExpensesIDParams) WithBody(body *models.ExpenseEditForm) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WithContext(ctx context.Context) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WithDefaults() *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WithID(id int64) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDParams
- func (o *PatchAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPIExpensesIDReader
- type PostAPIExpensesOK
- func (o *PostAPIExpensesOK) Error() string
- func (o *PostAPIExpensesOK) GetPayload() *models.ExpenseEntity
- func (o *PostAPIExpensesOK) IsClientError() bool
- func (o *PostAPIExpensesOK) IsCode(code int) bool
- func (o *PostAPIExpensesOK) IsRedirect() bool
- func (o *PostAPIExpensesOK) IsServerError() bool
- func (o *PostAPIExpensesOK) IsSuccess() bool
- func (o *PostAPIExpensesOK) String() string
- type PostAPIExpensesParams
- func NewPostAPIExpensesParams() *PostAPIExpensesParams
- func NewPostAPIExpensesParamsWithContext(ctx context.Context) *PostAPIExpensesParams
- func NewPostAPIExpensesParamsWithHTTPClient(client *http.Client) *PostAPIExpensesParams
- func NewPostAPIExpensesParamsWithTimeout(timeout time.Duration) *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) SetBody(body *models.ExpenseEditForm)
- func (o *PostAPIExpensesParams) SetContext(ctx context.Context)
- func (o *PostAPIExpensesParams) SetDefaults()
- func (o *PostAPIExpensesParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIExpensesParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIExpensesParams) WithBody(body *models.ExpenseEditForm) *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) WithContext(ctx context.Context) *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) WithDefaults() *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) WithHTTPClient(client *http.Client) *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) WithTimeout(timeout time.Duration) *PostAPIExpensesParams
- func (o *PostAPIExpensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIExpensesReader
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 expense API
func (*Client) DeleteAPIExpensesID ¶
func (a *Client) DeleteAPIExpensesID(params *DeleteAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIExpensesIDNoContent, error)
DeleteAPIExpensesID deletes an existing expense record
func (*Client) GetAPIExpenses ¶
func (a *Client) GetAPIExpenses(params *GetAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIExpensesOK, error)
GetAPIExpenses returns a collection of expenses
func (*Client) GetAPIExpensesID ¶
func (a *Client) GetAPIExpensesID(params *GetAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIExpensesIDOK, error)
GetAPIExpensesID returns one expense
func (*Client) PatchAPIExpensesID ¶
func (a *Client) PatchAPIExpensesID(params *PatchAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDOK, error)
PatchAPIExpensesID updates an existing expense
Update an existing expense, you can pass all or just a subset of all attributes
func (*Client) PatchAPIExpensesIDDuplicate ¶
func (a *Client) PatchAPIExpensesIDDuplicate(params *PatchAPIExpensesIDDuplicateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDDuplicateOK, error)
PatchAPIExpensesIDDuplicate duplicates an existing expense record
func (*Client) PatchAPIExpensesIDMeta ¶
func (a *Client) PatchAPIExpensesIDMeta(params *PatchAPIExpensesIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDMetaOK, error)
PatchAPIExpensesIDMeta sets the value of a meta field for an existing expense
func (*Client) PostAPIExpenses ¶
func (a *Client) PostAPIExpenses(params *PostAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIExpensesOK, error)
PostAPIExpenses creates a new expense
Creates a new expense and returns it afterwards
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteAPIExpensesID(params *DeleteAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIExpensesIDNoContent, error) GetAPIExpenses(params *GetAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIExpensesOK, error) GetAPIExpensesID(params *GetAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIExpensesIDOK, error) PatchAPIExpensesID(params *PatchAPIExpensesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDOK, error) PatchAPIExpensesIDDuplicate(params *PatchAPIExpensesIDDuplicateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDDuplicateOK, error) PatchAPIExpensesIDMeta(params *PatchAPIExpensesIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIExpensesIDMetaOK, error) PostAPIExpenses(params *PostAPIExpensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIExpensesOK, 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 expense API client.
type DeleteAPIExpensesIDNoContent ¶
type DeleteAPIExpensesIDNoContent struct { }
DeleteAPIExpensesIDNoContent describes a response with status code 204, with default header values.
Delete one expense record
func NewDeleteAPIExpensesIDNoContent ¶
func NewDeleteAPIExpensesIDNoContent() *DeleteAPIExpensesIDNoContent
NewDeleteAPIExpensesIDNoContent creates a DeleteAPIExpensesIDNoContent with default headers values
func (*DeleteAPIExpensesIDNoContent) Error ¶
func (o *DeleteAPIExpensesIDNoContent) Error() string
func (*DeleteAPIExpensesIDNoContent) IsClientError ¶
func (o *DeleteAPIExpensesIDNoContent) IsClientError() bool
IsClientError returns true when this delete Api expenses Id no content response has a 4xx status code
func (*DeleteAPIExpensesIDNoContent) IsCode ¶
func (o *DeleteAPIExpensesIDNoContent) IsCode(code int) bool
IsCode returns true when this delete Api expenses Id no content response a status code equal to that given
func (*DeleteAPIExpensesIDNoContent) IsRedirect ¶
func (o *DeleteAPIExpensesIDNoContent) IsRedirect() bool
IsRedirect returns true when this delete Api expenses Id no content response has a 3xx status code
func (*DeleteAPIExpensesIDNoContent) IsServerError ¶
func (o *DeleteAPIExpensesIDNoContent) IsServerError() bool
IsServerError returns true when this delete Api expenses Id no content response has a 5xx status code
func (*DeleteAPIExpensesIDNoContent) IsSuccess ¶
func (o *DeleteAPIExpensesIDNoContent) IsSuccess() bool
IsSuccess returns true when this delete Api expenses Id no content response has a 2xx status code
func (*DeleteAPIExpensesIDNoContent) String ¶
func (o *DeleteAPIExpensesIDNoContent) String() string
type DeleteAPIExpensesIDParams ¶
type DeleteAPIExpensesIDParams struct { /* ID. Expense record ID to delete */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteAPIExpensesIDParams contains all the parameters to send to the API endpoint
for the delete API expenses ID operation. Typically these are written to a http.Request.
func NewDeleteAPIExpensesIDParams ¶
func NewDeleteAPIExpensesIDParams() *DeleteAPIExpensesIDParams
NewDeleteAPIExpensesIDParams creates a new DeleteAPIExpensesIDParams 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 NewDeleteAPIExpensesIDParamsWithContext ¶
func NewDeleteAPIExpensesIDParamsWithContext(ctx context.Context) *DeleteAPIExpensesIDParams
NewDeleteAPIExpensesIDParamsWithContext creates a new DeleteAPIExpensesIDParams object with the ability to set a context for a request.
func NewDeleteAPIExpensesIDParamsWithHTTPClient ¶
func NewDeleteAPIExpensesIDParamsWithHTTPClient(client *http.Client) *DeleteAPIExpensesIDParams
NewDeleteAPIExpensesIDParamsWithHTTPClient creates a new DeleteAPIExpensesIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAPIExpensesIDParamsWithTimeout ¶
func NewDeleteAPIExpensesIDParamsWithTimeout(timeout time.Duration) *DeleteAPIExpensesIDParams
NewDeleteAPIExpensesIDParamsWithTimeout creates a new DeleteAPIExpensesIDParams object with the ability to set a timeout on a request.
func (*DeleteAPIExpensesIDParams) SetContext ¶
func (o *DeleteAPIExpensesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) SetDefaults ¶
func (o *DeleteAPIExpensesIDParams) SetDefaults()
SetDefaults hydrates default values in the delete API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIExpensesIDParams) SetHTTPClient ¶
func (o *DeleteAPIExpensesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) SetID ¶
func (o *DeleteAPIExpensesIDParams) SetID(id int64)
SetID adds the id to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) SetTimeout ¶
func (o *DeleteAPIExpensesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) WithContext ¶
func (o *DeleteAPIExpensesIDParams) WithContext(ctx context.Context) *DeleteAPIExpensesIDParams
WithContext adds the context to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) WithDefaults ¶
func (o *DeleteAPIExpensesIDParams) WithDefaults() *DeleteAPIExpensesIDParams
WithDefaults hydrates default values in the delete API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIExpensesIDParams) WithHTTPClient ¶
func (o *DeleteAPIExpensesIDParams) WithHTTPClient(client *http.Client) *DeleteAPIExpensesIDParams
WithHTTPClient adds the HTTPClient to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) WithID ¶
func (o *DeleteAPIExpensesIDParams) WithID(id int64) *DeleteAPIExpensesIDParams
WithID adds the id to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) WithTimeout ¶
func (o *DeleteAPIExpensesIDParams) WithTimeout(timeout time.Duration) *DeleteAPIExpensesIDParams
WithTimeout adds the timeout to the delete API expenses ID params
func (*DeleteAPIExpensesIDParams) WriteToRequest ¶
func (o *DeleteAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAPIExpensesIDReader ¶
type DeleteAPIExpensesIDReader struct {
// contains filtered or unexported fields
}
DeleteAPIExpensesIDReader is a Reader for the DeleteAPIExpensesID structure.
func (*DeleteAPIExpensesIDReader) ReadResponse ¶
func (o *DeleteAPIExpensesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIExpensesIDOK ¶
type GetAPIExpensesIDOK struct {
Payload *models.ExpenseEntity
}
GetAPIExpensesIDOK describes a response with status code 200, with default header values.
Returns one expense entity
func NewGetAPIExpensesIDOK ¶
func NewGetAPIExpensesIDOK() *GetAPIExpensesIDOK
NewGetAPIExpensesIDOK creates a GetAPIExpensesIDOK with default headers values
func (*GetAPIExpensesIDOK) Error ¶
func (o *GetAPIExpensesIDOK) Error() string
func (*GetAPIExpensesIDOK) GetPayload ¶
func (o *GetAPIExpensesIDOK) GetPayload() *models.ExpenseEntity
func (*GetAPIExpensesIDOK) IsClientError ¶
func (o *GetAPIExpensesIDOK) IsClientError() bool
IsClientError returns true when this get Api expenses Id o k response has a 4xx status code
func (*GetAPIExpensesIDOK) IsCode ¶
func (o *GetAPIExpensesIDOK) IsCode(code int) bool
IsCode returns true when this get Api expenses Id o k response a status code equal to that given
func (*GetAPIExpensesIDOK) IsRedirect ¶
func (o *GetAPIExpensesIDOK) IsRedirect() bool
IsRedirect returns true when this get Api expenses Id o k response has a 3xx status code
func (*GetAPIExpensesIDOK) IsServerError ¶
func (o *GetAPIExpensesIDOK) IsServerError() bool
IsServerError returns true when this get Api expenses Id o k response has a 5xx status code
func (*GetAPIExpensesIDOK) IsSuccess ¶
func (o *GetAPIExpensesIDOK) IsSuccess() bool
IsSuccess returns true when this get Api expenses Id o k response has a 2xx status code
func (*GetAPIExpensesIDOK) String ¶
func (o *GetAPIExpensesIDOK) String() string
type GetAPIExpensesIDParams ¶
type GetAPIExpensesIDParams struct { /* ID. Expense ID to fetch */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIExpensesIDParams contains all the parameters to send to the API endpoint
for the get API expenses ID operation. Typically these are written to a http.Request.
func NewGetAPIExpensesIDParams ¶
func NewGetAPIExpensesIDParams() *GetAPIExpensesIDParams
NewGetAPIExpensesIDParams creates a new GetAPIExpensesIDParams 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 NewGetAPIExpensesIDParamsWithContext ¶
func NewGetAPIExpensesIDParamsWithContext(ctx context.Context) *GetAPIExpensesIDParams
NewGetAPIExpensesIDParamsWithContext creates a new GetAPIExpensesIDParams object with the ability to set a context for a request.
func NewGetAPIExpensesIDParamsWithHTTPClient ¶
func NewGetAPIExpensesIDParamsWithHTTPClient(client *http.Client) *GetAPIExpensesIDParams
NewGetAPIExpensesIDParamsWithHTTPClient creates a new GetAPIExpensesIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIExpensesIDParamsWithTimeout ¶
func NewGetAPIExpensesIDParamsWithTimeout(timeout time.Duration) *GetAPIExpensesIDParams
NewGetAPIExpensesIDParamsWithTimeout creates a new GetAPIExpensesIDParams object with the ability to set a timeout on a request.
func (*GetAPIExpensesIDParams) SetContext ¶
func (o *GetAPIExpensesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get API expenses ID params
func (*GetAPIExpensesIDParams) SetDefaults ¶
func (o *GetAPIExpensesIDParams) SetDefaults()
SetDefaults hydrates default values in the get API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIExpensesIDParams) SetHTTPClient ¶
func (o *GetAPIExpensesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API expenses ID params
func (*GetAPIExpensesIDParams) SetID ¶
func (o *GetAPIExpensesIDParams) SetID(id int64)
SetID adds the id to the get API expenses ID params
func (*GetAPIExpensesIDParams) SetTimeout ¶
func (o *GetAPIExpensesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API expenses ID params
func (*GetAPIExpensesIDParams) WithContext ¶
func (o *GetAPIExpensesIDParams) WithContext(ctx context.Context) *GetAPIExpensesIDParams
WithContext adds the context to the get API expenses ID params
func (*GetAPIExpensesIDParams) WithDefaults ¶
func (o *GetAPIExpensesIDParams) WithDefaults() *GetAPIExpensesIDParams
WithDefaults hydrates default values in the get API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIExpensesIDParams) WithHTTPClient ¶
func (o *GetAPIExpensesIDParams) WithHTTPClient(client *http.Client) *GetAPIExpensesIDParams
WithHTTPClient adds the HTTPClient to the get API expenses ID params
func (*GetAPIExpensesIDParams) WithID ¶
func (o *GetAPIExpensesIDParams) WithID(id int64) *GetAPIExpensesIDParams
WithID adds the id to the get API expenses ID params
func (*GetAPIExpensesIDParams) WithTimeout ¶
func (o *GetAPIExpensesIDParams) WithTimeout(timeout time.Duration) *GetAPIExpensesIDParams
WithTimeout adds the timeout to the get API expenses ID params
func (*GetAPIExpensesIDParams) WriteToRequest ¶
func (o *GetAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIExpensesIDReader ¶
type GetAPIExpensesIDReader struct {
// contains filtered or unexported fields
}
GetAPIExpensesIDReader is a Reader for the GetAPIExpensesID structure.
func (*GetAPIExpensesIDReader) ReadResponse ¶
func (o *GetAPIExpensesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIExpensesOK ¶
type GetAPIExpensesOK struct {
Payload []*models.ExpenseEntity
}
GetAPIExpensesOK describes a response with status code 200, with default header values.
Returns a collection of expense entities
func NewGetAPIExpensesOK ¶
func NewGetAPIExpensesOK() *GetAPIExpensesOK
NewGetAPIExpensesOK creates a GetAPIExpensesOK with default headers values
func (*GetAPIExpensesOK) Error ¶
func (o *GetAPIExpensesOK) Error() string
func (*GetAPIExpensesOK) GetPayload ¶
func (o *GetAPIExpensesOK) GetPayload() []*models.ExpenseEntity
func (*GetAPIExpensesOK) IsClientError ¶
func (o *GetAPIExpensesOK) IsClientError() bool
IsClientError returns true when this get Api expenses o k response has a 4xx status code
func (*GetAPIExpensesOK) IsCode ¶
func (o *GetAPIExpensesOK) IsCode(code int) bool
IsCode returns true when this get Api expenses o k response a status code equal to that given
func (*GetAPIExpensesOK) IsRedirect ¶
func (o *GetAPIExpensesOK) IsRedirect() bool
IsRedirect returns true when this get Api expenses o k response has a 3xx status code
func (*GetAPIExpensesOK) IsServerError ¶
func (o *GetAPIExpensesOK) IsServerError() bool
IsServerError returns true when this get Api expenses o k response has a 5xx status code
func (*GetAPIExpensesOK) IsSuccess ¶
func (o *GetAPIExpensesOK) IsSuccess() bool
IsSuccess returns true when this get Api expenses o k response has a 2xx status code
func (*GetAPIExpensesOK) String ¶
func (o *GetAPIExpensesOK) String() string
type GetAPIExpensesParams ¶
type GetAPIExpensesParams struct { /* Begin. Only records after this date will be included (format: HTML5) Format: DateTime */ Begin string /* End. Only records before this date will be included (format: HTML5) Format: DateTime */ End string /* Exported. Use this flag if you want to filter for export state. Allowed values: 0=not exported, 1=exported (default: all) */ Exported string /* Order. The result order. Allowed values: ASC, DESC (default: DESC) */ Order string /* OrderBy. The field by which results will be ordered. Allowed values: begin, end, duration, total, category, cost, user, customer, project, activity, description, exported, refundable, multiplier (default: begin) */ OrderBy string /* Page. The page to display, renders a 404 if not found (default: 1) */ Page string /* Refundable. Use this flag if you want to filter for refundable expenses. Allowed values: 0=not refundable, 1=refundable (default: all) */ Refundable string /* Size. The amount of entries for each page (default: 50) */ Size string /* Term. Free search term */ Term string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIExpensesParams contains all the parameters to send to the API endpoint
for the get API expenses operation. Typically these are written to a http.Request.
func NewGetAPIExpensesParams ¶
func NewGetAPIExpensesParams() *GetAPIExpensesParams
NewGetAPIExpensesParams creates a new GetAPIExpensesParams 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 NewGetAPIExpensesParamsWithContext ¶
func NewGetAPIExpensesParamsWithContext(ctx context.Context) *GetAPIExpensesParams
NewGetAPIExpensesParamsWithContext creates a new GetAPIExpensesParams object with the ability to set a context for a request.
func NewGetAPIExpensesParamsWithHTTPClient ¶
func NewGetAPIExpensesParamsWithHTTPClient(client *http.Client) *GetAPIExpensesParams
NewGetAPIExpensesParamsWithHTTPClient creates a new GetAPIExpensesParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIExpensesParamsWithTimeout ¶
func NewGetAPIExpensesParamsWithTimeout(timeout time.Duration) *GetAPIExpensesParams
NewGetAPIExpensesParamsWithTimeout creates a new GetAPIExpensesParams object with the ability to set a timeout on a request.
func (*GetAPIExpensesParams) SetBegin ¶
func (o *GetAPIExpensesParams) SetBegin(begin string)
SetBegin adds the begin to the get API expenses params
func (*GetAPIExpensesParams) SetContext ¶
func (o *GetAPIExpensesParams) SetContext(ctx context.Context)
SetContext adds the context to the get API expenses params
func (*GetAPIExpensesParams) SetDefaults ¶
func (o *GetAPIExpensesParams) SetDefaults()
SetDefaults hydrates default values in the get API expenses params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIExpensesParams) SetEnd ¶
func (o *GetAPIExpensesParams) SetEnd(end string)
SetEnd adds the end to the get API expenses params
func (*GetAPIExpensesParams) SetExported ¶
func (o *GetAPIExpensesParams) SetExported(exported string)
SetExported adds the exported to the get API expenses params
func (*GetAPIExpensesParams) SetHTTPClient ¶
func (o *GetAPIExpensesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API expenses params
func (*GetAPIExpensesParams) SetOrder ¶
func (o *GetAPIExpensesParams) SetOrder(order string)
SetOrder adds the order to the get API expenses params
func (*GetAPIExpensesParams) SetOrderBy ¶
func (o *GetAPIExpensesParams) SetOrderBy(orderBy string)
SetOrderBy adds the orderBy to the get API expenses params
func (*GetAPIExpensesParams) SetPage ¶
func (o *GetAPIExpensesParams) SetPage(page string)
SetPage adds the page to the get API expenses params
func (*GetAPIExpensesParams) SetRefundable ¶
func (o *GetAPIExpensesParams) SetRefundable(refundable string)
SetRefundable adds the refundable to the get API expenses params
func (*GetAPIExpensesParams) SetSize ¶
func (o *GetAPIExpensesParams) SetSize(size string)
SetSize adds the size to the get API expenses params
func (*GetAPIExpensesParams) SetTerm ¶
func (o *GetAPIExpensesParams) SetTerm(term string)
SetTerm adds the term to the get API expenses params
func (*GetAPIExpensesParams) SetTimeout ¶
func (o *GetAPIExpensesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API expenses params
func (*GetAPIExpensesParams) WithBegin ¶
func (o *GetAPIExpensesParams) WithBegin(begin string) *GetAPIExpensesParams
WithBegin adds the begin to the get API expenses params
func (*GetAPIExpensesParams) WithContext ¶
func (o *GetAPIExpensesParams) WithContext(ctx context.Context) *GetAPIExpensesParams
WithContext adds the context to the get API expenses params
func (*GetAPIExpensesParams) WithDefaults ¶
func (o *GetAPIExpensesParams) WithDefaults() *GetAPIExpensesParams
WithDefaults hydrates default values in the get API expenses params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIExpensesParams) WithEnd ¶
func (o *GetAPIExpensesParams) WithEnd(end string) *GetAPIExpensesParams
WithEnd adds the end to the get API expenses params
func (*GetAPIExpensesParams) WithExported ¶
func (o *GetAPIExpensesParams) WithExported(exported string) *GetAPIExpensesParams
WithExported adds the exported to the get API expenses params
func (*GetAPIExpensesParams) WithHTTPClient ¶
func (o *GetAPIExpensesParams) WithHTTPClient(client *http.Client) *GetAPIExpensesParams
WithHTTPClient adds the HTTPClient to the get API expenses params
func (*GetAPIExpensesParams) WithOrder ¶
func (o *GetAPIExpensesParams) WithOrder(order string) *GetAPIExpensesParams
WithOrder adds the order to the get API expenses params
func (*GetAPIExpensesParams) WithOrderBy ¶
func (o *GetAPIExpensesParams) WithOrderBy(orderBy string) *GetAPIExpensesParams
WithOrderBy adds the orderBy to the get API expenses params
func (*GetAPIExpensesParams) WithPage ¶
func (o *GetAPIExpensesParams) WithPage(page string) *GetAPIExpensesParams
WithPage adds the page to the get API expenses params
func (*GetAPIExpensesParams) WithRefundable ¶
func (o *GetAPIExpensesParams) WithRefundable(refundable string) *GetAPIExpensesParams
WithRefundable adds the refundable to the get API expenses params
func (*GetAPIExpensesParams) WithSize ¶
func (o *GetAPIExpensesParams) WithSize(size string) *GetAPIExpensesParams
WithSize adds the size to the get API expenses params
func (*GetAPIExpensesParams) WithTerm ¶
func (o *GetAPIExpensesParams) WithTerm(term string) *GetAPIExpensesParams
WithTerm adds the term to the get API expenses params
func (*GetAPIExpensesParams) WithTimeout ¶
func (o *GetAPIExpensesParams) WithTimeout(timeout time.Duration) *GetAPIExpensesParams
WithTimeout adds the timeout to the get API expenses params
func (*GetAPIExpensesParams) WriteToRequest ¶
func (o *GetAPIExpensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIExpensesReader ¶
type GetAPIExpensesReader struct {
// contains filtered or unexported fields
}
GetAPIExpensesReader is a Reader for the GetAPIExpenses structure.
func (*GetAPIExpensesReader) ReadResponse ¶
func (o *GetAPIExpensesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPIExpensesIDDuplicateOK ¶
type PatchAPIExpensesIDDuplicateOK struct {
Payload *models.ExpenseEntity
}
PatchAPIExpensesIDDuplicateOK describes a response with status code 200, with default header values.
Duplicates a expense record, resetting the export state only.
func NewPatchAPIExpensesIDDuplicateOK ¶
func NewPatchAPIExpensesIDDuplicateOK() *PatchAPIExpensesIDDuplicateOK
NewPatchAPIExpensesIDDuplicateOK creates a PatchAPIExpensesIDDuplicateOK with default headers values
func (*PatchAPIExpensesIDDuplicateOK) Error ¶
func (o *PatchAPIExpensesIDDuplicateOK) Error() string
func (*PatchAPIExpensesIDDuplicateOK) GetPayload ¶
func (o *PatchAPIExpensesIDDuplicateOK) GetPayload() *models.ExpenseEntity
func (*PatchAPIExpensesIDDuplicateOK) IsClientError ¶
func (o *PatchAPIExpensesIDDuplicateOK) IsClientError() bool
IsClientError returns true when this patch Api expenses Id duplicate o k response has a 4xx status code
func (*PatchAPIExpensesIDDuplicateOK) IsCode ¶
func (o *PatchAPIExpensesIDDuplicateOK) IsCode(code int) bool
IsCode returns true when this patch Api expenses Id duplicate o k response a status code equal to that given
func (*PatchAPIExpensesIDDuplicateOK) IsRedirect ¶
func (o *PatchAPIExpensesIDDuplicateOK) IsRedirect() bool
IsRedirect returns true when this patch Api expenses Id duplicate o k response has a 3xx status code
func (*PatchAPIExpensesIDDuplicateOK) IsServerError ¶
func (o *PatchAPIExpensesIDDuplicateOK) IsServerError() bool
IsServerError returns true when this patch Api expenses Id duplicate o k response has a 5xx status code
func (*PatchAPIExpensesIDDuplicateOK) IsSuccess ¶
func (o *PatchAPIExpensesIDDuplicateOK) IsSuccess() bool
IsSuccess returns true when this patch Api expenses Id duplicate o k response has a 2xx status code
func (*PatchAPIExpensesIDDuplicateOK) String ¶
func (o *PatchAPIExpensesIDDuplicateOK) String() string
type PatchAPIExpensesIDDuplicateParams ¶
type PatchAPIExpensesIDDuplicateParams struct { /* ID. Expense record ID to duplicate */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPIExpensesIDDuplicateParams contains all the parameters to send to the API endpoint
for the patch API expenses ID duplicate operation. Typically these are written to a http.Request.
func NewPatchAPIExpensesIDDuplicateParams ¶
func NewPatchAPIExpensesIDDuplicateParams() *PatchAPIExpensesIDDuplicateParams
NewPatchAPIExpensesIDDuplicateParams creates a new PatchAPIExpensesIDDuplicateParams 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 NewPatchAPIExpensesIDDuplicateParamsWithContext ¶
func NewPatchAPIExpensesIDDuplicateParamsWithContext(ctx context.Context) *PatchAPIExpensesIDDuplicateParams
NewPatchAPIExpensesIDDuplicateParamsWithContext creates a new PatchAPIExpensesIDDuplicateParams object with the ability to set a context for a request.
func NewPatchAPIExpensesIDDuplicateParamsWithHTTPClient ¶
func NewPatchAPIExpensesIDDuplicateParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDDuplicateParams
NewPatchAPIExpensesIDDuplicateParamsWithHTTPClient creates a new PatchAPIExpensesIDDuplicateParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPIExpensesIDDuplicateParamsWithTimeout ¶
func NewPatchAPIExpensesIDDuplicateParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDDuplicateParams
NewPatchAPIExpensesIDDuplicateParamsWithTimeout creates a new PatchAPIExpensesIDDuplicateParams object with the ability to set a timeout on a request.
func (*PatchAPIExpensesIDDuplicateParams) SetContext ¶
func (o *PatchAPIExpensesIDDuplicateParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) SetDefaults ¶
func (o *PatchAPIExpensesIDDuplicateParams) SetDefaults()
SetDefaults hydrates default values in the patch API expenses ID duplicate params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDDuplicateParams) SetHTTPClient ¶
func (o *PatchAPIExpensesIDDuplicateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) SetID ¶
func (o *PatchAPIExpensesIDDuplicateParams) SetID(id int64)
SetID adds the id to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) SetTimeout ¶
func (o *PatchAPIExpensesIDDuplicateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) WithContext ¶
func (o *PatchAPIExpensesIDDuplicateParams) WithContext(ctx context.Context) *PatchAPIExpensesIDDuplicateParams
WithContext adds the context to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) WithDefaults ¶
func (o *PatchAPIExpensesIDDuplicateParams) WithDefaults() *PatchAPIExpensesIDDuplicateParams
WithDefaults hydrates default values in the patch API expenses ID duplicate params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDDuplicateParams) WithHTTPClient ¶
func (o *PatchAPIExpensesIDDuplicateParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDDuplicateParams
WithHTTPClient adds the HTTPClient to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) WithID ¶
func (o *PatchAPIExpensesIDDuplicateParams) WithID(id int64) *PatchAPIExpensesIDDuplicateParams
WithID adds the id to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) WithTimeout ¶
func (o *PatchAPIExpensesIDDuplicateParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDDuplicateParams
WithTimeout adds the timeout to the patch API expenses ID duplicate params
func (*PatchAPIExpensesIDDuplicateParams) WriteToRequest ¶
func (o *PatchAPIExpensesIDDuplicateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPIExpensesIDDuplicateReader ¶
type PatchAPIExpensesIDDuplicateReader struct {
// contains filtered or unexported fields
}
PatchAPIExpensesIDDuplicateReader is a Reader for the PatchAPIExpensesIDDuplicate structure.
func (*PatchAPIExpensesIDDuplicateReader) ReadResponse ¶
func (o *PatchAPIExpensesIDDuplicateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPIExpensesIDMetaBody ¶
type PatchAPIExpensesIDMetaBody struct { // The meta-field name // Required: true Name *string `json:"name"` // The meta-field value // Required: true Value *string `json:"value"` }
PatchAPIExpensesIDMetaBody patch API expenses ID meta body swagger:model PatchAPIExpensesIDMetaBody
func (*PatchAPIExpensesIDMetaBody) ContextValidate ¶
func (o *PatchAPIExpensesIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this patch API expenses ID meta body based on context it is used
func (*PatchAPIExpensesIDMetaBody) MarshalBinary ¶
func (o *PatchAPIExpensesIDMetaBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchAPIExpensesIDMetaBody) UnmarshalBinary ¶
func (o *PatchAPIExpensesIDMetaBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchAPIExpensesIDMetaOK ¶
type PatchAPIExpensesIDMetaOK struct {
Payload *models.ExpenseEntity
}
PatchAPIExpensesIDMetaOK describes a response with status code 200, with default header values.
Sets the value of an existing/configured meta-field. You cannot create unknown meta-fields, if the given name is not a configured meta-field, this will return an exception.
func NewPatchAPIExpensesIDMetaOK ¶
func NewPatchAPIExpensesIDMetaOK() *PatchAPIExpensesIDMetaOK
NewPatchAPIExpensesIDMetaOK creates a PatchAPIExpensesIDMetaOK with default headers values
func (*PatchAPIExpensesIDMetaOK) Error ¶
func (o *PatchAPIExpensesIDMetaOK) Error() string
func (*PatchAPIExpensesIDMetaOK) GetPayload ¶
func (o *PatchAPIExpensesIDMetaOK) GetPayload() *models.ExpenseEntity
func (*PatchAPIExpensesIDMetaOK) IsClientError ¶
func (o *PatchAPIExpensesIDMetaOK) IsClientError() bool
IsClientError returns true when this patch Api expenses Id meta o k response has a 4xx status code
func (*PatchAPIExpensesIDMetaOK) IsCode ¶
func (o *PatchAPIExpensesIDMetaOK) IsCode(code int) bool
IsCode returns true when this patch Api expenses Id meta o k response a status code equal to that given
func (*PatchAPIExpensesIDMetaOK) IsRedirect ¶
func (o *PatchAPIExpensesIDMetaOK) IsRedirect() bool
IsRedirect returns true when this patch Api expenses Id meta o k response has a 3xx status code
func (*PatchAPIExpensesIDMetaOK) IsServerError ¶
func (o *PatchAPIExpensesIDMetaOK) IsServerError() bool
IsServerError returns true when this patch Api expenses Id meta o k response has a 5xx status code
func (*PatchAPIExpensesIDMetaOK) IsSuccess ¶
func (o *PatchAPIExpensesIDMetaOK) IsSuccess() bool
IsSuccess returns true when this patch Api expenses Id meta o k response has a 2xx status code
func (*PatchAPIExpensesIDMetaOK) String ¶
func (o *PatchAPIExpensesIDMetaOK) String() string
type PatchAPIExpensesIDMetaParams ¶
type PatchAPIExpensesIDMetaParams struct { // Body. Body PatchAPIExpensesIDMetaBody /* ID. Expense record ID to set the meta-field value for */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPIExpensesIDMetaParams contains all the parameters to send to the API endpoint
for the patch API expenses ID meta operation. Typically these are written to a http.Request.
func NewPatchAPIExpensesIDMetaParams ¶
func NewPatchAPIExpensesIDMetaParams() *PatchAPIExpensesIDMetaParams
NewPatchAPIExpensesIDMetaParams creates a new PatchAPIExpensesIDMetaParams 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 NewPatchAPIExpensesIDMetaParamsWithContext ¶
func NewPatchAPIExpensesIDMetaParamsWithContext(ctx context.Context) *PatchAPIExpensesIDMetaParams
NewPatchAPIExpensesIDMetaParamsWithContext creates a new PatchAPIExpensesIDMetaParams object with the ability to set a context for a request.
func NewPatchAPIExpensesIDMetaParamsWithHTTPClient ¶
func NewPatchAPIExpensesIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDMetaParams
NewPatchAPIExpensesIDMetaParamsWithHTTPClient creates a new PatchAPIExpensesIDMetaParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPIExpensesIDMetaParamsWithTimeout ¶
func NewPatchAPIExpensesIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDMetaParams
NewPatchAPIExpensesIDMetaParamsWithTimeout creates a new PatchAPIExpensesIDMetaParams object with the ability to set a timeout on a request.
func (*PatchAPIExpensesIDMetaParams) SetBody ¶
func (o *PatchAPIExpensesIDMetaParams) SetBody(body PatchAPIExpensesIDMetaBody)
SetBody adds the body to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) SetContext ¶
func (o *PatchAPIExpensesIDMetaParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) SetDefaults ¶
func (o *PatchAPIExpensesIDMetaParams) SetDefaults()
SetDefaults hydrates default values in the patch API expenses ID meta params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDMetaParams) SetHTTPClient ¶
func (o *PatchAPIExpensesIDMetaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) SetID ¶
func (o *PatchAPIExpensesIDMetaParams) SetID(id int64)
SetID adds the id to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) SetTimeout ¶
func (o *PatchAPIExpensesIDMetaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WithBody ¶
func (o *PatchAPIExpensesIDMetaParams) WithBody(body PatchAPIExpensesIDMetaBody) *PatchAPIExpensesIDMetaParams
WithBody adds the body to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WithContext ¶
func (o *PatchAPIExpensesIDMetaParams) WithContext(ctx context.Context) *PatchAPIExpensesIDMetaParams
WithContext adds the context to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WithDefaults ¶
func (o *PatchAPIExpensesIDMetaParams) WithDefaults() *PatchAPIExpensesIDMetaParams
WithDefaults hydrates default values in the patch API expenses ID meta params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDMetaParams) WithHTTPClient ¶
func (o *PatchAPIExpensesIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDMetaParams
WithHTTPClient adds the HTTPClient to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WithID ¶
func (o *PatchAPIExpensesIDMetaParams) WithID(id int64) *PatchAPIExpensesIDMetaParams
WithID adds the id to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WithTimeout ¶
func (o *PatchAPIExpensesIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDMetaParams
WithTimeout adds the timeout to the patch API expenses ID meta params
func (*PatchAPIExpensesIDMetaParams) WriteToRequest ¶
func (o *PatchAPIExpensesIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPIExpensesIDMetaReader ¶
type PatchAPIExpensesIDMetaReader struct {
// contains filtered or unexported fields
}
PatchAPIExpensesIDMetaReader is a Reader for the PatchAPIExpensesIDMeta structure.
func (*PatchAPIExpensesIDMetaReader) ReadResponse ¶
func (o *PatchAPIExpensesIDMetaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPIExpensesIDOK ¶
type PatchAPIExpensesIDOK struct {
Payload *models.ExpenseEntity
}
PatchAPIExpensesIDOK describes a response with status code 200, with default header values.
Returns the updated expense
func NewPatchAPIExpensesIDOK ¶
func NewPatchAPIExpensesIDOK() *PatchAPIExpensesIDOK
NewPatchAPIExpensesIDOK creates a PatchAPIExpensesIDOK with default headers values
func (*PatchAPIExpensesIDOK) Error ¶
func (o *PatchAPIExpensesIDOK) Error() string
func (*PatchAPIExpensesIDOK) GetPayload ¶
func (o *PatchAPIExpensesIDOK) GetPayload() *models.ExpenseEntity
func (*PatchAPIExpensesIDOK) IsClientError ¶
func (o *PatchAPIExpensesIDOK) IsClientError() bool
IsClientError returns true when this patch Api expenses Id o k response has a 4xx status code
func (*PatchAPIExpensesIDOK) IsCode ¶
func (o *PatchAPIExpensesIDOK) IsCode(code int) bool
IsCode returns true when this patch Api expenses Id o k response a status code equal to that given
func (*PatchAPIExpensesIDOK) IsRedirect ¶
func (o *PatchAPIExpensesIDOK) IsRedirect() bool
IsRedirect returns true when this patch Api expenses Id o k response has a 3xx status code
func (*PatchAPIExpensesIDOK) IsServerError ¶
func (o *PatchAPIExpensesIDOK) IsServerError() bool
IsServerError returns true when this patch Api expenses Id o k response has a 5xx status code
func (*PatchAPIExpensesIDOK) IsSuccess ¶
func (o *PatchAPIExpensesIDOK) IsSuccess() bool
IsSuccess returns true when this patch Api expenses Id o k response has a 2xx status code
func (*PatchAPIExpensesIDOK) String ¶
func (o *PatchAPIExpensesIDOK) String() string
type PatchAPIExpensesIDParams ¶
type PatchAPIExpensesIDParams struct { // Body. Body *models.ExpenseEditForm /* ID. Expense ID to update */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPIExpensesIDParams contains all the parameters to send to the API endpoint
for the patch API expenses ID operation. Typically these are written to a http.Request.
func NewPatchAPIExpensesIDParams ¶
func NewPatchAPIExpensesIDParams() *PatchAPIExpensesIDParams
NewPatchAPIExpensesIDParams creates a new PatchAPIExpensesIDParams 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 NewPatchAPIExpensesIDParamsWithContext ¶
func NewPatchAPIExpensesIDParamsWithContext(ctx context.Context) *PatchAPIExpensesIDParams
NewPatchAPIExpensesIDParamsWithContext creates a new PatchAPIExpensesIDParams object with the ability to set a context for a request.
func NewPatchAPIExpensesIDParamsWithHTTPClient ¶
func NewPatchAPIExpensesIDParamsWithHTTPClient(client *http.Client) *PatchAPIExpensesIDParams
NewPatchAPIExpensesIDParamsWithHTTPClient creates a new PatchAPIExpensesIDParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPIExpensesIDParamsWithTimeout ¶
func NewPatchAPIExpensesIDParamsWithTimeout(timeout time.Duration) *PatchAPIExpensesIDParams
NewPatchAPIExpensesIDParamsWithTimeout creates a new PatchAPIExpensesIDParams object with the ability to set a timeout on a request.
func (*PatchAPIExpensesIDParams) SetBody ¶
func (o *PatchAPIExpensesIDParams) SetBody(body *models.ExpenseEditForm)
SetBody adds the body to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) SetContext ¶
func (o *PatchAPIExpensesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) SetDefaults ¶
func (o *PatchAPIExpensesIDParams) SetDefaults()
SetDefaults hydrates default values in the patch API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDParams) SetHTTPClient ¶
func (o *PatchAPIExpensesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) SetID ¶
func (o *PatchAPIExpensesIDParams) SetID(id int64)
SetID adds the id to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) SetTimeout ¶
func (o *PatchAPIExpensesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WithBody ¶
func (o *PatchAPIExpensesIDParams) WithBody(body *models.ExpenseEditForm) *PatchAPIExpensesIDParams
WithBody adds the body to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WithContext ¶
func (o *PatchAPIExpensesIDParams) WithContext(ctx context.Context) *PatchAPIExpensesIDParams
WithContext adds the context to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WithDefaults ¶
func (o *PatchAPIExpensesIDParams) WithDefaults() *PatchAPIExpensesIDParams
WithDefaults hydrates default values in the patch API expenses ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIExpensesIDParams) WithHTTPClient ¶
func (o *PatchAPIExpensesIDParams) WithHTTPClient(client *http.Client) *PatchAPIExpensesIDParams
WithHTTPClient adds the HTTPClient to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WithID ¶
func (o *PatchAPIExpensesIDParams) WithID(id int64) *PatchAPIExpensesIDParams
WithID adds the id to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WithTimeout ¶
func (o *PatchAPIExpensesIDParams) WithTimeout(timeout time.Duration) *PatchAPIExpensesIDParams
WithTimeout adds the timeout to the patch API expenses ID params
func (*PatchAPIExpensesIDParams) WriteToRequest ¶
func (o *PatchAPIExpensesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPIExpensesIDReader ¶
type PatchAPIExpensesIDReader struct {
// contains filtered or unexported fields
}
PatchAPIExpensesIDReader is a Reader for the PatchAPIExpensesID structure.
func (*PatchAPIExpensesIDReader) ReadResponse ¶
func (o *PatchAPIExpensesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAPIExpensesOK ¶
type PostAPIExpensesOK struct {
Payload *models.ExpenseEntity
}
PostAPIExpensesOK describes a response with status code 200, with default header values.
Returns the new created expense
func NewPostAPIExpensesOK ¶
func NewPostAPIExpensesOK() *PostAPIExpensesOK
NewPostAPIExpensesOK creates a PostAPIExpensesOK with default headers values
func (*PostAPIExpensesOK) Error ¶
func (o *PostAPIExpensesOK) Error() string
func (*PostAPIExpensesOK) GetPayload ¶
func (o *PostAPIExpensesOK) GetPayload() *models.ExpenseEntity
func (*PostAPIExpensesOK) IsClientError ¶
func (o *PostAPIExpensesOK) IsClientError() bool
IsClientError returns true when this post Api expenses o k response has a 4xx status code
func (*PostAPIExpensesOK) IsCode ¶
func (o *PostAPIExpensesOK) IsCode(code int) bool
IsCode returns true when this post Api expenses o k response a status code equal to that given
func (*PostAPIExpensesOK) IsRedirect ¶
func (o *PostAPIExpensesOK) IsRedirect() bool
IsRedirect returns true when this post Api expenses o k response has a 3xx status code
func (*PostAPIExpensesOK) IsServerError ¶
func (o *PostAPIExpensesOK) IsServerError() bool
IsServerError returns true when this post Api expenses o k response has a 5xx status code
func (*PostAPIExpensesOK) IsSuccess ¶
func (o *PostAPIExpensesOK) IsSuccess() bool
IsSuccess returns true when this post Api expenses o k response has a 2xx status code
func (*PostAPIExpensesOK) String ¶
func (o *PostAPIExpensesOK) String() string
type PostAPIExpensesParams ¶
type PostAPIExpensesParams struct { // Body. Body *models.ExpenseEditForm Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAPIExpensesParams contains all the parameters to send to the API endpoint
for the post API expenses operation. Typically these are written to a http.Request.
func NewPostAPIExpensesParams ¶
func NewPostAPIExpensesParams() *PostAPIExpensesParams
NewPostAPIExpensesParams creates a new PostAPIExpensesParams 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 NewPostAPIExpensesParamsWithContext ¶
func NewPostAPIExpensesParamsWithContext(ctx context.Context) *PostAPIExpensesParams
NewPostAPIExpensesParamsWithContext creates a new PostAPIExpensesParams object with the ability to set a context for a request.
func NewPostAPIExpensesParamsWithHTTPClient ¶
func NewPostAPIExpensesParamsWithHTTPClient(client *http.Client) *PostAPIExpensesParams
NewPostAPIExpensesParamsWithHTTPClient creates a new PostAPIExpensesParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPIExpensesParamsWithTimeout ¶
func NewPostAPIExpensesParamsWithTimeout(timeout time.Duration) *PostAPIExpensesParams
NewPostAPIExpensesParamsWithTimeout creates a new PostAPIExpensesParams object with the ability to set a timeout on a request.
func (*PostAPIExpensesParams) SetBody ¶
func (o *PostAPIExpensesParams) SetBody(body *models.ExpenseEditForm)
SetBody adds the body to the post API expenses params
func (*PostAPIExpensesParams) SetContext ¶
func (o *PostAPIExpensesParams) SetContext(ctx context.Context)
SetContext adds the context to the post API expenses params
func (*PostAPIExpensesParams) SetDefaults ¶
func (o *PostAPIExpensesParams) SetDefaults()
SetDefaults hydrates default values in the post API expenses params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIExpensesParams) SetHTTPClient ¶
func (o *PostAPIExpensesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post API expenses params
func (*PostAPIExpensesParams) SetTimeout ¶
func (o *PostAPIExpensesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post API expenses params
func (*PostAPIExpensesParams) WithBody ¶
func (o *PostAPIExpensesParams) WithBody(body *models.ExpenseEditForm) *PostAPIExpensesParams
WithBody adds the body to the post API expenses params
func (*PostAPIExpensesParams) WithContext ¶
func (o *PostAPIExpensesParams) WithContext(ctx context.Context) *PostAPIExpensesParams
WithContext adds the context to the post API expenses params
func (*PostAPIExpensesParams) WithDefaults ¶
func (o *PostAPIExpensesParams) WithDefaults() *PostAPIExpensesParams
WithDefaults hydrates default values in the post API expenses params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIExpensesParams) WithHTTPClient ¶
func (o *PostAPIExpensesParams) WithHTTPClient(client *http.Client) *PostAPIExpensesParams
WithHTTPClient adds the HTTPClient to the post API expenses params
func (*PostAPIExpensesParams) WithTimeout ¶
func (o *PostAPIExpensesParams) WithTimeout(timeout time.Duration) *PostAPIExpensesParams
WithTimeout adds the timeout to the post API expenses params
func (*PostAPIExpensesParams) WriteToRequest ¶
func (o *PostAPIExpensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPIExpensesReader ¶
type PostAPIExpensesReader struct {
// contains filtered or unexported fields
}
PostAPIExpensesReader is a Reader for the PostAPIExpenses structure.
func (*PostAPIExpensesReader) ReadResponse ¶
func (o *PostAPIExpensesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_api_expenses_id_parameters.go
- delete_api_expenses_id_responses.go
- expense_client.go
- get_api_expenses_id_parameters.go
- get_api_expenses_id_responses.go
- get_api_expenses_parameters.go
- get_api_expenses_responses.go
- patch_api_expenses_id_duplicate_parameters.go
- patch_api_expenses_id_duplicate_responses.go
- patch_api_expenses_id_meta_parameters.go
- patch_api_expenses_id_meta_responses.go
- patch_api_expenses_id_parameters.go
- patch_api_expenses_id_responses.go
- post_api_expenses_parameters.go
- post_api_expenses_responses.go