Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationXML(r *runtime.ClientOperation)
- func WithAcceptTextJSON(r *runtime.ClientOperation)
- func WithAcceptTextXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- func WithContentTypeTextJSON(r *runtime.ClientOperation)
- func WithContentTypeTextXML(r *runtime.ClientOperation)
- type CashbookCloseCashbookOK
- func (o *CashbookCloseCashbookOK) Code() int
- func (o *CashbookCloseCashbookOK) Error() string
- func (o *CashbookCloseCashbookOK) IsClientError() bool
- func (o *CashbookCloseCashbookOK) IsCode(code int) bool
- func (o *CashbookCloseCashbookOK) IsRedirect() bool
- func (o *CashbookCloseCashbookOK) IsServerError() bool
- func (o *CashbookCloseCashbookOK) IsSuccess() bool
- func (o *CashbookCloseCashbookOK) String() string
- type CashbookCloseCashbookParams
- func NewCashbookCloseCashbookParams() *CashbookCloseCashbookParams
- func NewCashbookCloseCashbookParamsWithContext(ctx context.Context) *CashbookCloseCashbookParams
- func NewCashbookCloseCashbookParamsWithHTTPClient(client *http.Client) *CashbookCloseCashbookParams
- func NewCashbookCloseCashbookParamsWithTimeout(timeout time.Duration) *CashbookCloseCashbookParams
- func (o *CashbookCloseCashbookParams) SetContext(ctx context.Context)
- func (o *CashbookCloseCashbookParams) SetDefaults()
- func (o *CashbookCloseCashbookParams) SetHTTPClient(client *http.Client)
- func (o *CashbookCloseCashbookParams) SetTimeout(timeout time.Duration)
- func (o *CashbookCloseCashbookParams) WithContext(ctx context.Context) *CashbookCloseCashbookParams
- func (o *CashbookCloseCashbookParams) WithDefaults() *CashbookCloseCashbookParams
- func (o *CashbookCloseCashbookParams) WithHTTPClient(client *http.Client) *CashbookCloseCashbookParams
- func (o *CashbookCloseCashbookParams) WithTimeout(timeout time.Duration) *CashbookCloseCashbookParams
- func (o *CashbookCloseCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookCloseCashbookReader
- type CashbookGetCashbookEntriesOK
- func (o *CashbookGetCashbookEntriesOK) Code() int
- func (o *CashbookGetCashbookEntriesOK) Error() string
- func (o *CashbookGetCashbookEntriesOK) GetPayload() *model.PageResultCashbookEntry
- func (o *CashbookGetCashbookEntriesOK) IsClientError() bool
- func (o *CashbookGetCashbookEntriesOK) IsCode(code int) bool
- func (o *CashbookGetCashbookEntriesOK) IsRedirect() bool
- func (o *CashbookGetCashbookEntriesOK) IsServerError() bool
- func (o *CashbookGetCashbookEntriesOK) IsSuccess() bool
- func (o *CashbookGetCashbookEntriesOK) String() string
- type CashbookGetCashbookEntriesParams
- func NewCashbookGetCashbookEntriesParams() *CashbookGetCashbookEntriesParams
- func NewCashbookGetCashbookEntriesParamsWithContext(ctx context.Context) *CashbookGetCashbookEntriesParams
- func NewCashbookGetCashbookEntriesParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookEntriesParams
- func NewCashbookGetCashbookEntriesParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) SetContext(ctx context.Context)
- func (o *CashbookGetCashbookEntriesParams) SetDefaults()
- func (o *CashbookGetCashbookEntriesParams) SetFullTextSearch(fullTextSearch *string)
- func (o *CashbookGetCashbookEntriesParams) SetHTTPClient(client *http.Client)
- func (o *CashbookGetCashbookEntriesParams) SetTimeout(timeout time.Duration)
- func (o *CashbookGetCashbookEntriesParams) WithContext(ctx context.Context) *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) WithDefaults() *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) WithFullTextSearch(fullTextSearch *string) *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookEntriesParams
- func (o *CashbookGetCashbookEntriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookGetCashbookEntriesReader
- type CashbookGetCashbookHistoryOK
- func (o *CashbookGetCashbookHistoryOK) Code() int
- func (o *CashbookGetCashbookHistoryOK) Error() string
- func (o *CashbookGetCashbookHistoryOK) GetPayload() *model.PageResultCashbookEntry
- func (o *CashbookGetCashbookHistoryOK) IsClientError() bool
- func (o *CashbookGetCashbookHistoryOK) IsCode(code int) bool
- func (o *CashbookGetCashbookHistoryOK) IsRedirect() bool
- func (o *CashbookGetCashbookHistoryOK) IsServerError() bool
- func (o *CashbookGetCashbookHistoryOK) IsSuccess() bool
- func (o *CashbookGetCashbookHistoryOK) String() string
- type CashbookGetCashbookHistoryParams
- func NewCashbookGetCashbookHistoryParams() *CashbookGetCashbookHistoryParams
- func NewCashbookGetCashbookHistoryParamsWithContext(ctx context.Context) *CashbookGetCashbookHistoryParams
- func NewCashbookGetCashbookHistoryParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookHistoryParams
- func NewCashbookGetCashbookHistoryParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) SetCashbookID(cashbookID int32)
- func (o *CashbookGetCashbookHistoryParams) SetContext(ctx context.Context)
- func (o *CashbookGetCashbookHistoryParams) SetDefaults()
- func (o *CashbookGetCashbookHistoryParams) SetFullTextSearch(fullTextSearch *string)
- func (o *CashbookGetCashbookHistoryParams) SetHTTPClient(client *http.Client)
- func (o *CashbookGetCashbookHistoryParams) SetTimeout(timeout time.Duration)
- func (o *CashbookGetCashbookHistoryParams) WithCashbookID(cashbookID int32) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WithContext(ctx context.Context) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WithDefaults() *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WithFullTextSearch(fullTextSearch *string) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookHistoryParams
- func (o *CashbookGetCashbookHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookGetCashbookHistoryReader
- type CashbookGetCashbookOK
- func (o *CashbookGetCashbookOK) Code() int
- func (o *CashbookGetCashbookOK) Error() string
- func (o *CashbookGetCashbookOK) GetPayload() *model.CashbookModel
- func (o *CashbookGetCashbookOK) IsClientError() bool
- func (o *CashbookGetCashbookOK) IsCode(code int) bool
- func (o *CashbookGetCashbookOK) IsRedirect() bool
- func (o *CashbookGetCashbookOK) IsServerError() bool
- func (o *CashbookGetCashbookOK) IsSuccess() bool
- func (o *CashbookGetCashbookOK) String() string
- type CashbookGetCashbookParams
- func NewCashbookGetCashbookParams() *CashbookGetCashbookParams
- func NewCashbookGetCashbookParamsWithContext(ctx context.Context) *CashbookGetCashbookParams
- func NewCashbookGetCashbookParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookParams
- func NewCashbookGetCashbookParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookParams
- func (o *CashbookGetCashbookParams) SetContext(ctx context.Context)
- func (o *CashbookGetCashbookParams) SetDefaults()
- func (o *CashbookGetCashbookParams) SetHTTPClient(client *http.Client)
- func (o *CashbookGetCashbookParams) SetTimeout(timeout time.Duration)
- func (o *CashbookGetCashbookParams) WithContext(ctx context.Context) *CashbookGetCashbookParams
- func (o *CashbookGetCashbookParams) WithDefaults() *CashbookGetCashbookParams
- func (o *CashbookGetCashbookParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookParams
- func (o *CashbookGetCashbookParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookParams
- func (o *CashbookGetCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookGetCashbookReader
- type CashbookGetCashbooksOK
- func (o *CashbookGetCashbooksOK) Code() int
- func (o *CashbookGetCashbooksOK) Error() string
- func (o *CashbookGetCashbooksOK) GetPayload() []*model.CashbookModel
- func (o *CashbookGetCashbooksOK) IsClientError() bool
- func (o *CashbookGetCashbooksOK) IsCode(code int) bool
- func (o *CashbookGetCashbooksOK) IsRedirect() bool
- func (o *CashbookGetCashbooksOK) IsServerError() bool
- func (o *CashbookGetCashbooksOK) IsSuccess() bool
- func (o *CashbookGetCashbooksOK) String() string
- type CashbookGetCashbooksParams
- func NewCashbookGetCashbooksParams() *CashbookGetCashbooksParams
- func NewCashbookGetCashbooksParamsWithContext(ctx context.Context) *CashbookGetCashbooksParams
- func NewCashbookGetCashbooksParamsWithHTTPClient(client *http.Client) *CashbookGetCashbooksParams
- func NewCashbookGetCashbooksParamsWithTimeout(timeout time.Duration) *CashbookGetCashbooksParams
- func (o *CashbookGetCashbooksParams) SetContext(ctx context.Context)
- func (o *CashbookGetCashbooksParams) SetDefaults()
- func (o *CashbookGetCashbooksParams) SetHTTPClient(client *http.Client)
- func (o *CashbookGetCashbooksParams) SetTimeout(timeout time.Duration)
- func (o *CashbookGetCashbooksParams) WithContext(ctx context.Context) *CashbookGetCashbooksParams
- func (o *CashbookGetCashbooksParams) WithDefaults() *CashbookGetCashbooksParams
- func (o *CashbookGetCashbooksParams) WithHTTPClient(client *http.Client) *CashbookGetCashbooksParams
- func (o *CashbookGetCashbooksParams) WithTimeout(timeout time.Duration) *CashbookGetCashbooksParams
- func (o *CashbookGetCashbooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookGetCashbooksReader
- type CashbookInitializeCashbookOK
- func (o *CashbookInitializeCashbookOK) Code() int
- func (o *CashbookInitializeCashbookOK) Error() string
- func (o *CashbookInitializeCashbookOK) IsClientError() bool
- func (o *CashbookInitializeCashbookOK) IsCode(code int) bool
- func (o *CashbookInitializeCashbookOK) IsRedirect() bool
- func (o *CashbookInitializeCashbookOK) IsServerError() bool
- func (o *CashbookInitializeCashbookOK) IsSuccess() bool
- func (o *CashbookInitializeCashbookOK) String() string
- type CashbookInitializeCashbookParams
- func NewCashbookInitializeCashbookParams() *CashbookInitializeCashbookParams
- func NewCashbookInitializeCashbookParamsWithContext(ctx context.Context) *CashbookInitializeCashbookParams
- func NewCashbookInitializeCashbookParamsWithHTTPClient(client *http.Client) *CashbookInitializeCashbookParams
- func NewCashbookInitializeCashbookParamsWithTimeout(timeout time.Duration) *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) SetCashbookInitialization(cashbookInitialization *model.CashbookInitialization)
- func (o *CashbookInitializeCashbookParams) SetContext(ctx context.Context)
- func (o *CashbookInitializeCashbookParams) SetDefaults()
- func (o *CashbookInitializeCashbookParams) SetHTTPClient(client *http.Client)
- func (o *CashbookInitializeCashbookParams) SetTimeout(timeout time.Duration)
- func (o *CashbookInitializeCashbookParams) WithCashbookInitialization(cashbookInitialization *model.CashbookInitialization) *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) WithContext(ctx context.Context) *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) WithDefaults() *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) WithHTTPClient(client *http.Client) *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) WithTimeout(timeout time.Duration) *CashbookInitializeCashbookParams
- func (o *CashbookInitializeCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookInitializeCashbookReader
- type CashbookPostCashbookEntryOK
- func (o *CashbookPostCashbookEntryOK) Code() int
- func (o *CashbookPostCashbookEntryOK) Error() string
- func (o *CashbookPostCashbookEntryOK) GetPayload() *model.CashbookEntry
- func (o *CashbookPostCashbookEntryOK) IsClientError() bool
- func (o *CashbookPostCashbookEntryOK) IsCode(code int) bool
- func (o *CashbookPostCashbookEntryOK) IsRedirect() bool
- func (o *CashbookPostCashbookEntryOK) IsServerError() bool
- func (o *CashbookPostCashbookEntryOK) IsSuccess() bool
- func (o *CashbookPostCashbookEntryOK) String() string
- type CashbookPostCashbookEntryParams
- func NewCashbookPostCashbookEntryParams() *CashbookPostCashbookEntryParams
- func NewCashbookPostCashbookEntryParamsWithContext(ctx context.Context) *CashbookPostCashbookEntryParams
- func NewCashbookPostCashbookEntryParamsWithHTTPClient(client *http.Client) *CashbookPostCashbookEntryParams
- func NewCashbookPostCashbookEntryParamsWithTimeout(timeout time.Duration) *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) SetCashbookInputEntry(cashbookInputEntry *model.CashbookEntry)
- func (o *CashbookPostCashbookEntryParams) SetContext(ctx context.Context)
- func (o *CashbookPostCashbookEntryParams) SetDefaults()
- func (o *CashbookPostCashbookEntryParams) SetHTTPClient(client *http.Client)
- func (o *CashbookPostCashbookEntryParams) SetTimeout(timeout time.Duration)
- func (o *CashbookPostCashbookEntryParams) WithCashbookInputEntry(cashbookInputEntry *model.CashbookEntry) *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) WithContext(ctx context.Context) *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) WithDefaults() *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) WithHTTPClient(client *http.Client) *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) WithTimeout(timeout time.Duration) *CashbookPostCashbookEntryParams
- func (o *CashbookPostCashbookEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashbookPostCashbookEntryReader
- type Client
- func (a *Client) CashbookCloseCashbook(params *CashbookCloseCashbookParams, opts ...ClientOption) (*CashbookCloseCashbookOK, error)
- func (a *Client) CashbookGetCashbook(params *CashbookGetCashbookParams, opts ...ClientOption) (*CashbookGetCashbookOK, error)
- func (a *Client) CashbookGetCashbookEntries(params *CashbookGetCashbookEntriesParams, opts ...ClientOption) (*CashbookGetCashbookEntriesOK, error)
- func (a *Client) CashbookGetCashbookHistory(params *CashbookGetCashbookHistoryParams, opts ...ClientOption) (*CashbookGetCashbookHistoryOK, error)
- func (a *Client) CashbookGetCashbooks(params *CashbookGetCashbooksParams, opts ...ClientOption) (*CashbookGetCashbooksOK, error)
- func (a *Client) CashbookInitializeCashbook(params *CashbookInitializeCashbookParams, opts ...ClientOption) (*CashbookInitializeCashbookOK, error)
- func (a *Client) CashbookPostCashbookEntry(params *CashbookPostCashbookEntryParams, opts ...ClientOption) (*CashbookPostCashbookEntryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationXML ¶
func WithAcceptApplicationXML(r *runtime.ClientOperation)
WithAcceptApplicationXML sets the Accept header to "application/xml".
func WithAcceptTextJSON ¶
func WithAcceptTextJSON(r *runtime.ClientOperation)
WithAcceptTextJSON sets the Accept header to "text/json".
func WithAcceptTextXML ¶
func WithAcceptTextXML(r *runtime.ClientOperation)
WithAcceptTextXML sets the Accept header to "text/xml".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
func WithContentTypeTextJSON ¶
func WithContentTypeTextJSON(r *runtime.ClientOperation)
WithContentTypeTextJSON sets the Content-Type header to "text/json".
func WithContentTypeTextXML ¶
func WithContentTypeTextXML(r *runtime.ClientOperation)
WithContentTypeTextXML sets the Content-Type header to "text/xml".
Types ¶
type CashbookCloseCashbookOK ¶
type CashbookCloseCashbookOK struct {
}
CashbookCloseCashbookOK describes a response with status code 200, with default header values.
Close the active cash book, initialization of a new one is required to add new entries
func NewCashbookCloseCashbookOK ¶
func NewCashbookCloseCashbookOK() *CashbookCloseCashbookOK
NewCashbookCloseCashbookOK creates a CashbookCloseCashbookOK with default headers values
func (*CashbookCloseCashbookOK) Code ¶
func (o *CashbookCloseCashbookOK) Code() int
Code gets the status code for the cashbook close cashbook o k response
func (*CashbookCloseCashbookOK) Error ¶
func (o *CashbookCloseCashbookOK) Error() string
func (*CashbookCloseCashbookOK) IsClientError ¶
func (o *CashbookCloseCashbookOK) IsClientError() bool
IsClientError returns true when this cashbook close cashbook o k response has a 4xx status code
func (*CashbookCloseCashbookOK) IsCode ¶
func (o *CashbookCloseCashbookOK) IsCode(code int) bool
IsCode returns true when this cashbook close cashbook o k response a status code equal to that given
func (*CashbookCloseCashbookOK) IsRedirect ¶
func (o *CashbookCloseCashbookOK) IsRedirect() bool
IsRedirect returns true when this cashbook close cashbook o k response has a 3xx status code
func (*CashbookCloseCashbookOK) IsServerError ¶
func (o *CashbookCloseCashbookOK) IsServerError() bool
IsServerError returns true when this cashbook close cashbook o k response has a 5xx status code
func (*CashbookCloseCashbookOK) IsSuccess ¶
func (o *CashbookCloseCashbookOK) IsSuccess() bool
IsSuccess returns true when this cashbook close cashbook o k response has a 2xx status code
func (*CashbookCloseCashbookOK) String ¶
func (o *CashbookCloseCashbookOK) String() string
type CashbookCloseCashbookParams ¶
type CashbookCloseCashbookParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookCloseCashbookParams contains all the parameters to send to the API endpoint
for the cashbook close cashbook operation. Typically these are written to a http.Request.
func NewCashbookCloseCashbookParams ¶
func NewCashbookCloseCashbookParams() *CashbookCloseCashbookParams
NewCashbookCloseCashbookParams creates a new CashbookCloseCashbookParams 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 NewCashbookCloseCashbookParamsWithContext ¶
func NewCashbookCloseCashbookParamsWithContext(ctx context.Context) *CashbookCloseCashbookParams
NewCashbookCloseCashbookParamsWithContext creates a new CashbookCloseCashbookParams object with the ability to set a context for a request.
func NewCashbookCloseCashbookParamsWithHTTPClient ¶
func NewCashbookCloseCashbookParamsWithHTTPClient(client *http.Client) *CashbookCloseCashbookParams
NewCashbookCloseCashbookParamsWithHTTPClient creates a new CashbookCloseCashbookParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookCloseCashbookParamsWithTimeout ¶
func NewCashbookCloseCashbookParamsWithTimeout(timeout time.Duration) *CashbookCloseCashbookParams
NewCashbookCloseCashbookParamsWithTimeout creates a new CashbookCloseCashbookParams object with the ability to set a timeout on a request.
func (*CashbookCloseCashbookParams) SetContext ¶
func (o *CashbookCloseCashbookParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) SetDefaults ¶
func (o *CashbookCloseCashbookParams) SetDefaults()
SetDefaults hydrates default values in the cashbook close cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookCloseCashbookParams) SetHTTPClient ¶
func (o *CashbookCloseCashbookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) SetTimeout ¶
func (o *CashbookCloseCashbookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) WithContext ¶
func (o *CashbookCloseCashbookParams) WithContext(ctx context.Context) *CashbookCloseCashbookParams
WithContext adds the context to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) WithDefaults ¶
func (o *CashbookCloseCashbookParams) WithDefaults() *CashbookCloseCashbookParams
WithDefaults hydrates default values in the cashbook close cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookCloseCashbookParams) WithHTTPClient ¶
func (o *CashbookCloseCashbookParams) WithHTTPClient(client *http.Client) *CashbookCloseCashbookParams
WithHTTPClient adds the HTTPClient to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) WithTimeout ¶
func (o *CashbookCloseCashbookParams) WithTimeout(timeout time.Duration) *CashbookCloseCashbookParams
WithTimeout adds the timeout to the cashbook close cashbook params
func (*CashbookCloseCashbookParams) WriteToRequest ¶
func (o *CashbookCloseCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookCloseCashbookReader ¶
type CashbookCloseCashbookReader struct {
// contains filtered or unexported fields
}
CashbookCloseCashbookReader is a Reader for the CashbookCloseCashbook structure.
func (*CashbookCloseCashbookReader) ReadResponse ¶
func (o *CashbookCloseCashbookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookGetCashbookEntriesOK ¶
type CashbookGetCashbookEntriesOK struct {
Payload *model.PageResultCashbookEntry
}
CashbookGetCashbookEntriesOK describes a response with status code 200, with default header values.
Get an overview of all the entries in the cash book
func NewCashbookGetCashbookEntriesOK ¶
func NewCashbookGetCashbookEntriesOK() *CashbookGetCashbookEntriesOK
NewCashbookGetCashbookEntriesOK creates a CashbookGetCashbookEntriesOK with default headers values
func (*CashbookGetCashbookEntriesOK) Code ¶
func (o *CashbookGetCashbookEntriesOK) Code() int
Code gets the status code for the cashbook get cashbook entries o k response
func (*CashbookGetCashbookEntriesOK) Error ¶
func (o *CashbookGetCashbookEntriesOK) Error() string
func (*CashbookGetCashbookEntriesOK) GetPayload ¶
func (o *CashbookGetCashbookEntriesOK) GetPayload() *model.PageResultCashbookEntry
func (*CashbookGetCashbookEntriesOK) IsClientError ¶
func (o *CashbookGetCashbookEntriesOK) IsClientError() bool
IsClientError returns true when this cashbook get cashbook entries o k response has a 4xx status code
func (*CashbookGetCashbookEntriesOK) IsCode ¶
func (o *CashbookGetCashbookEntriesOK) IsCode(code int) bool
IsCode returns true when this cashbook get cashbook entries o k response a status code equal to that given
func (*CashbookGetCashbookEntriesOK) IsRedirect ¶
func (o *CashbookGetCashbookEntriesOK) IsRedirect() bool
IsRedirect returns true when this cashbook get cashbook entries o k response has a 3xx status code
func (*CashbookGetCashbookEntriesOK) IsServerError ¶
func (o *CashbookGetCashbookEntriesOK) IsServerError() bool
IsServerError returns true when this cashbook get cashbook entries o k response has a 5xx status code
func (*CashbookGetCashbookEntriesOK) IsSuccess ¶
func (o *CashbookGetCashbookEntriesOK) IsSuccess() bool
IsSuccess returns true when this cashbook get cashbook entries o k response has a 2xx status code
func (*CashbookGetCashbookEntriesOK) String ¶
func (o *CashbookGetCashbookEntriesOK) String() string
type CashbookGetCashbookEntriesParams ¶
type CashbookGetCashbookEntriesParams struct {
// FullTextSearch.
FullTextSearch *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookGetCashbookEntriesParams contains all the parameters to send to the API endpoint
for the cashbook get cashbook entries operation. Typically these are written to a http.Request.
func NewCashbookGetCashbookEntriesParams ¶
func NewCashbookGetCashbookEntriesParams() *CashbookGetCashbookEntriesParams
NewCashbookGetCashbookEntriesParams creates a new CashbookGetCashbookEntriesParams 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 NewCashbookGetCashbookEntriesParamsWithContext ¶
func NewCashbookGetCashbookEntriesParamsWithContext(ctx context.Context) *CashbookGetCashbookEntriesParams
NewCashbookGetCashbookEntriesParamsWithContext creates a new CashbookGetCashbookEntriesParams object with the ability to set a context for a request.
func NewCashbookGetCashbookEntriesParamsWithHTTPClient ¶
func NewCashbookGetCashbookEntriesParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookEntriesParams
NewCashbookGetCashbookEntriesParamsWithHTTPClient creates a new CashbookGetCashbookEntriesParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookGetCashbookEntriesParamsWithTimeout ¶
func NewCashbookGetCashbookEntriesParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookEntriesParams
NewCashbookGetCashbookEntriesParamsWithTimeout creates a new CashbookGetCashbookEntriesParams object with the ability to set a timeout on a request.
func (*CashbookGetCashbookEntriesParams) SetContext ¶
func (o *CashbookGetCashbookEntriesParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) SetDefaults ¶
func (o *CashbookGetCashbookEntriesParams) SetDefaults()
SetDefaults hydrates default values in the cashbook get cashbook entries params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookEntriesParams) SetFullTextSearch ¶
func (o *CashbookGetCashbookEntriesParams) SetFullTextSearch(fullTextSearch *string)
SetFullTextSearch adds the fullTextSearch to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) SetHTTPClient ¶
func (o *CashbookGetCashbookEntriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) SetTimeout ¶
func (o *CashbookGetCashbookEntriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) WithContext ¶
func (o *CashbookGetCashbookEntriesParams) WithContext(ctx context.Context) *CashbookGetCashbookEntriesParams
WithContext adds the context to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) WithDefaults ¶
func (o *CashbookGetCashbookEntriesParams) WithDefaults() *CashbookGetCashbookEntriesParams
WithDefaults hydrates default values in the cashbook get cashbook entries params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookEntriesParams) WithFullTextSearch ¶
func (o *CashbookGetCashbookEntriesParams) WithFullTextSearch(fullTextSearch *string) *CashbookGetCashbookEntriesParams
WithFullTextSearch adds the fullTextSearch to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) WithHTTPClient ¶
func (o *CashbookGetCashbookEntriesParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookEntriesParams
WithHTTPClient adds the HTTPClient to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) WithTimeout ¶
func (o *CashbookGetCashbookEntriesParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookEntriesParams
WithTimeout adds the timeout to the cashbook get cashbook entries params
func (*CashbookGetCashbookEntriesParams) WriteToRequest ¶
func (o *CashbookGetCashbookEntriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookGetCashbookEntriesReader ¶
type CashbookGetCashbookEntriesReader struct {
// contains filtered or unexported fields
}
CashbookGetCashbookEntriesReader is a Reader for the CashbookGetCashbookEntries structure.
func (*CashbookGetCashbookEntriesReader) ReadResponse ¶
func (o *CashbookGetCashbookEntriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookGetCashbookHistoryOK ¶
type CashbookGetCashbookHistoryOK struct {
Payload *model.PageResultCashbookEntry
}
CashbookGetCashbookHistoryOK describes a response with status code 200, with default header values.
Get an overview of all the entries in the cash book
func NewCashbookGetCashbookHistoryOK ¶
func NewCashbookGetCashbookHistoryOK() *CashbookGetCashbookHistoryOK
NewCashbookGetCashbookHistoryOK creates a CashbookGetCashbookHistoryOK with default headers values
func (*CashbookGetCashbookHistoryOK) Code ¶
func (o *CashbookGetCashbookHistoryOK) Code() int
Code gets the status code for the cashbook get cashbook history o k response
func (*CashbookGetCashbookHistoryOK) Error ¶
func (o *CashbookGetCashbookHistoryOK) Error() string
func (*CashbookGetCashbookHistoryOK) GetPayload ¶
func (o *CashbookGetCashbookHistoryOK) GetPayload() *model.PageResultCashbookEntry
func (*CashbookGetCashbookHistoryOK) IsClientError ¶
func (o *CashbookGetCashbookHistoryOK) IsClientError() bool
IsClientError returns true when this cashbook get cashbook history o k response has a 4xx status code
func (*CashbookGetCashbookHistoryOK) IsCode ¶
func (o *CashbookGetCashbookHistoryOK) IsCode(code int) bool
IsCode returns true when this cashbook get cashbook history o k response a status code equal to that given
func (*CashbookGetCashbookHistoryOK) IsRedirect ¶
func (o *CashbookGetCashbookHistoryOK) IsRedirect() bool
IsRedirect returns true when this cashbook get cashbook history o k response has a 3xx status code
func (*CashbookGetCashbookHistoryOK) IsServerError ¶
func (o *CashbookGetCashbookHistoryOK) IsServerError() bool
IsServerError returns true when this cashbook get cashbook history o k response has a 5xx status code
func (*CashbookGetCashbookHistoryOK) IsSuccess ¶
func (o *CashbookGetCashbookHistoryOK) IsSuccess() bool
IsSuccess returns true when this cashbook get cashbook history o k response has a 2xx status code
func (*CashbookGetCashbookHistoryOK) String ¶
func (o *CashbookGetCashbookHistoryOK) String() string
type CashbookGetCashbookHistoryParams ¶
type CashbookGetCashbookHistoryParams struct {
// CashbookID.
//
// Format: int32
CashbookID int32
// FullTextSearch.
FullTextSearch *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookGetCashbookHistoryParams contains all the parameters to send to the API endpoint
for the cashbook get cashbook history operation. Typically these are written to a http.Request.
func NewCashbookGetCashbookHistoryParams ¶
func NewCashbookGetCashbookHistoryParams() *CashbookGetCashbookHistoryParams
NewCashbookGetCashbookHistoryParams creates a new CashbookGetCashbookHistoryParams 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 NewCashbookGetCashbookHistoryParamsWithContext ¶
func NewCashbookGetCashbookHistoryParamsWithContext(ctx context.Context) *CashbookGetCashbookHistoryParams
NewCashbookGetCashbookHistoryParamsWithContext creates a new CashbookGetCashbookHistoryParams object with the ability to set a context for a request.
func NewCashbookGetCashbookHistoryParamsWithHTTPClient ¶
func NewCashbookGetCashbookHistoryParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookHistoryParams
NewCashbookGetCashbookHistoryParamsWithHTTPClient creates a new CashbookGetCashbookHistoryParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookGetCashbookHistoryParamsWithTimeout ¶
func NewCashbookGetCashbookHistoryParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookHistoryParams
NewCashbookGetCashbookHistoryParamsWithTimeout creates a new CashbookGetCashbookHistoryParams object with the ability to set a timeout on a request.
func (*CashbookGetCashbookHistoryParams) SetCashbookID ¶
func (o *CashbookGetCashbookHistoryParams) SetCashbookID(cashbookID int32)
SetCashbookID adds the cashbookId to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) SetContext ¶
func (o *CashbookGetCashbookHistoryParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) SetDefaults ¶
func (o *CashbookGetCashbookHistoryParams) SetDefaults()
SetDefaults hydrates default values in the cashbook get cashbook history params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookHistoryParams) SetFullTextSearch ¶
func (o *CashbookGetCashbookHistoryParams) SetFullTextSearch(fullTextSearch *string)
SetFullTextSearch adds the fullTextSearch to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) SetHTTPClient ¶
func (o *CashbookGetCashbookHistoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) SetTimeout ¶
func (o *CashbookGetCashbookHistoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WithCashbookID ¶
func (o *CashbookGetCashbookHistoryParams) WithCashbookID(cashbookID int32) *CashbookGetCashbookHistoryParams
WithCashbookID adds the cashbookID to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WithContext ¶
func (o *CashbookGetCashbookHistoryParams) WithContext(ctx context.Context) *CashbookGetCashbookHistoryParams
WithContext adds the context to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WithDefaults ¶
func (o *CashbookGetCashbookHistoryParams) WithDefaults() *CashbookGetCashbookHistoryParams
WithDefaults hydrates default values in the cashbook get cashbook history params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookHistoryParams) WithFullTextSearch ¶
func (o *CashbookGetCashbookHistoryParams) WithFullTextSearch(fullTextSearch *string) *CashbookGetCashbookHistoryParams
WithFullTextSearch adds the fullTextSearch to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WithHTTPClient ¶
func (o *CashbookGetCashbookHistoryParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookHistoryParams
WithHTTPClient adds the HTTPClient to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WithTimeout ¶
func (o *CashbookGetCashbookHistoryParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookHistoryParams
WithTimeout adds the timeout to the cashbook get cashbook history params
func (*CashbookGetCashbookHistoryParams) WriteToRequest ¶
func (o *CashbookGetCashbookHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookGetCashbookHistoryReader ¶
type CashbookGetCashbookHistoryReader struct {
// contains filtered or unexported fields
}
CashbookGetCashbookHistoryReader is a Reader for the CashbookGetCashbookHistory structure.
func (*CashbookGetCashbookHistoryReader) ReadResponse ¶
func (o *CashbookGetCashbookHistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookGetCashbookOK ¶
type CashbookGetCashbookOK struct {
Payload *model.CashbookModel
}
CashbookGetCashbookOK describes a response with status code 200, with default header values.
Get information about the current active cash book
func NewCashbookGetCashbookOK ¶
func NewCashbookGetCashbookOK() *CashbookGetCashbookOK
NewCashbookGetCashbookOK creates a CashbookGetCashbookOK with default headers values
func (*CashbookGetCashbookOK) Code ¶
func (o *CashbookGetCashbookOK) Code() int
Code gets the status code for the cashbook get cashbook o k response
func (*CashbookGetCashbookOK) Error ¶
func (o *CashbookGetCashbookOK) Error() string
func (*CashbookGetCashbookOK) GetPayload ¶
func (o *CashbookGetCashbookOK) GetPayload() *model.CashbookModel
func (*CashbookGetCashbookOK) IsClientError ¶
func (o *CashbookGetCashbookOK) IsClientError() bool
IsClientError returns true when this cashbook get cashbook o k response has a 4xx status code
func (*CashbookGetCashbookOK) IsCode ¶
func (o *CashbookGetCashbookOK) IsCode(code int) bool
IsCode returns true when this cashbook get cashbook o k response a status code equal to that given
func (*CashbookGetCashbookOK) IsRedirect ¶
func (o *CashbookGetCashbookOK) IsRedirect() bool
IsRedirect returns true when this cashbook get cashbook o k response has a 3xx status code
func (*CashbookGetCashbookOK) IsServerError ¶
func (o *CashbookGetCashbookOK) IsServerError() bool
IsServerError returns true when this cashbook get cashbook o k response has a 5xx status code
func (*CashbookGetCashbookOK) IsSuccess ¶
func (o *CashbookGetCashbookOK) IsSuccess() bool
IsSuccess returns true when this cashbook get cashbook o k response has a 2xx status code
func (*CashbookGetCashbookOK) String ¶
func (o *CashbookGetCashbookOK) String() string
type CashbookGetCashbookParams ¶
type CashbookGetCashbookParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookGetCashbookParams contains all the parameters to send to the API endpoint
for the cashbook get cashbook operation. Typically these are written to a http.Request.
func NewCashbookGetCashbookParams ¶
func NewCashbookGetCashbookParams() *CashbookGetCashbookParams
NewCashbookGetCashbookParams creates a new CashbookGetCashbookParams 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 NewCashbookGetCashbookParamsWithContext ¶
func NewCashbookGetCashbookParamsWithContext(ctx context.Context) *CashbookGetCashbookParams
NewCashbookGetCashbookParamsWithContext creates a new CashbookGetCashbookParams object with the ability to set a context for a request.
func NewCashbookGetCashbookParamsWithHTTPClient ¶
func NewCashbookGetCashbookParamsWithHTTPClient(client *http.Client) *CashbookGetCashbookParams
NewCashbookGetCashbookParamsWithHTTPClient creates a new CashbookGetCashbookParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookGetCashbookParamsWithTimeout ¶
func NewCashbookGetCashbookParamsWithTimeout(timeout time.Duration) *CashbookGetCashbookParams
NewCashbookGetCashbookParamsWithTimeout creates a new CashbookGetCashbookParams object with the ability to set a timeout on a request.
func (*CashbookGetCashbookParams) SetContext ¶
func (o *CashbookGetCashbookParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook get cashbook params
func (*CashbookGetCashbookParams) SetDefaults ¶
func (o *CashbookGetCashbookParams) SetDefaults()
SetDefaults hydrates default values in the cashbook get cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookParams) SetHTTPClient ¶
func (o *CashbookGetCashbookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook get cashbook params
func (*CashbookGetCashbookParams) SetTimeout ¶
func (o *CashbookGetCashbookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook get cashbook params
func (*CashbookGetCashbookParams) WithContext ¶
func (o *CashbookGetCashbookParams) WithContext(ctx context.Context) *CashbookGetCashbookParams
WithContext adds the context to the cashbook get cashbook params
func (*CashbookGetCashbookParams) WithDefaults ¶
func (o *CashbookGetCashbookParams) WithDefaults() *CashbookGetCashbookParams
WithDefaults hydrates default values in the cashbook get cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbookParams) WithHTTPClient ¶
func (o *CashbookGetCashbookParams) WithHTTPClient(client *http.Client) *CashbookGetCashbookParams
WithHTTPClient adds the HTTPClient to the cashbook get cashbook params
func (*CashbookGetCashbookParams) WithTimeout ¶
func (o *CashbookGetCashbookParams) WithTimeout(timeout time.Duration) *CashbookGetCashbookParams
WithTimeout adds the timeout to the cashbook get cashbook params
func (*CashbookGetCashbookParams) WriteToRequest ¶
func (o *CashbookGetCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookGetCashbookReader ¶
type CashbookGetCashbookReader struct {
// contains filtered or unexported fields
}
CashbookGetCashbookReader is a Reader for the CashbookGetCashbook structure.
func (*CashbookGetCashbookReader) ReadResponse ¶
func (o *CashbookGetCashbookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookGetCashbooksOK ¶
type CashbookGetCashbooksOK struct {
Payload []*model.CashbookModel
}
CashbookGetCashbooksOK describes a response with status code 200, with default header values.
Get an overview of all the closed cash books
func NewCashbookGetCashbooksOK ¶
func NewCashbookGetCashbooksOK() *CashbookGetCashbooksOK
NewCashbookGetCashbooksOK creates a CashbookGetCashbooksOK with default headers values
func (*CashbookGetCashbooksOK) Code ¶
func (o *CashbookGetCashbooksOK) Code() int
Code gets the status code for the cashbook get cashbooks o k response
func (*CashbookGetCashbooksOK) Error ¶
func (o *CashbookGetCashbooksOK) Error() string
func (*CashbookGetCashbooksOK) GetPayload ¶
func (o *CashbookGetCashbooksOK) GetPayload() []*model.CashbookModel
func (*CashbookGetCashbooksOK) IsClientError ¶
func (o *CashbookGetCashbooksOK) IsClientError() bool
IsClientError returns true when this cashbook get cashbooks o k response has a 4xx status code
func (*CashbookGetCashbooksOK) IsCode ¶
func (o *CashbookGetCashbooksOK) IsCode(code int) bool
IsCode returns true when this cashbook get cashbooks o k response a status code equal to that given
func (*CashbookGetCashbooksOK) IsRedirect ¶
func (o *CashbookGetCashbooksOK) IsRedirect() bool
IsRedirect returns true when this cashbook get cashbooks o k response has a 3xx status code
func (*CashbookGetCashbooksOK) IsServerError ¶
func (o *CashbookGetCashbooksOK) IsServerError() bool
IsServerError returns true when this cashbook get cashbooks o k response has a 5xx status code
func (*CashbookGetCashbooksOK) IsSuccess ¶
func (o *CashbookGetCashbooksOK) IsSuccess() bool
IsSuccess returns true when this cashbook get cashbooks o k response has a 2xx status code
func (*CashbookGetCashbooksOK) String ¶
func (o *CashbookGetCashbooksOK) String() string
type CashbookGetCashbooksParams ¶
type CashbookGetCashbooksParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookGetCashbooksParams contains all the parameters to send to the API endpoint
for the cashbook get cashbooks operation. Typically these are written to a http.Request.
func NewCashbookGetCashbooksParams ¶
func NewCashbookGetCashbooksParams() *CashbookGetCashbooksParams
NewCashbookGetCashbooksParams creates a new CashbookGetCashbooksParams 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 NewCashbookGetCashbooksParamsWithContext ¶
func NewCashbookGetCashbooksParamsWithContext(ctx context.Context) *CashbookGetCashbooksParams
NewCashbookGetCashbooksParamsWithContext creates a new CashbookGetCashbooksParams object with the ability to set a context for a request.
func NewCashbookGetCashbooksParamsWithHTTPClient ¶
func NewCashbookGetCashbooksParamsWithHTTPClient(client *http.Client) *CashbookGetCashbooksParams
NewCashbookGetCashbooksParamsWithHTTPClient creates a new CashbookGetCashbooksParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookGetCashbooksParamsWithTimeout ¶
func NewCashbookGetCashbooksParamsWithTimeout(timeout time.Duration) *CashbookGetCashbooksParams
NewCashbookGetCashbooksParamsWithTimeout creates a new CashbookGetCashbooksParams object with the ability to set a timeout on a request.
func (*CashbookGetCashbooksParams) SetContext ¶
func (o *CashbookGetCashbooksParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) SetDefaults ¶
func (o *CashbookGetCashbooksParams) SetDefaults()
SetDefaults hydrates default values in the cashbook get cashbooks params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbooksParams) SetHTTPClient ¶
func (o *CashbookGetCashbooksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) SetTimeout ¶
func (o *CashbookGetCashbooksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) WithContext ¶
func (o *CashbookGetCashbooksParams) WithContext(ctx context.Context) *CashbookGetCashbooksParams
WithContext adds the context to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) WithDefaults ¶
func (o *CashbookGetCashbooksParams) WithDefaults() *CashbookGetCashbooksParams
WithDefaults hydrates default values in the cashbook get cashbooks params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookGetCashbooksParams) WithHTTPClient ¶
func (o *CashbookGetCashbooksParams) WithHTTPClient(client *http.Client) *CashbookGetCashbooksParams
WithHTTPClient adds the HTTPClient to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) WithTimeout ¶
func (o *CashbookGetCashbooksParams) WithTimeout(timeout time.Duration) *CashbookGetCashbooksParams
WithTimeout adds the timeout to the cashbook get cashbooks params
func (*CashbookGetCashbooksParams) WriteToRequest ¶
func (o *CashbookGetCashbooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookGetCashbooksReader ¶
type CashbookGetCashbooksReader struct {
// contains filtered or unexported fields
}
CashbookGetCashbooksReader is a Reader for the CashbookGetCashbooks structure.
func (*CashbookGetCashbooksReader) ReadResponse ¶
func (o *CashbookGetCashbooksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookInitializeCashbookOK ¶
type CashbookInitializeCashbookOK struct {
}
CashbookInitializeCashbookOK describes a response with status code 200, with default header values.
Initialize the cash book for first use
func NewCashbookInitializeCashbookOK ¶
func NewCashbookInitializeCashbookOK() *CashbookInitializeCashbookOK
NewCashbookInitializeCashbookOK creates a CashbookInitializeCashbookOK with default headers values
func (*CashbookInitializeCashbookOK) Code ¶
func (o *CashbookInitializeCashbookOK) Code() int
Code gets the status code for the cashbook initialize cashbook o k response
func (*CashbookInitializeCashbookOK) Error ¶
func (o *CashbookInitializeCashbookOK) Error() string
func (*CashbookInitializeCashbookOK) IsClientError ¶
func (o *CashbookInitializeCashbookOK) IsClientError() bool
IsClientError returns true when this cashbook initialize cashbook o k response has a 4xx status code
func (*CashbookInitializeCashbookOK) IsCode ¶
func (o *CashbookInitializeCashbookOK) IsCode(code int) bool
IsCode returns true when this cashbook initialize cashbook o k response a status code equal to that given
func (*CashbookInitializeCashbookOK) IsRedirect ¶
func (o *CashbookInitializeCashbookOK) IsRedirect() bool
IsRedirect returns true when this cashbook initialize cashbook o k response has a 3xx status code
func (*CashbookInitializeCashbookOK) IsServerError ¶
func (o *CashbookInitializeCashbookOK) IsServerError() bool
IsServerError returns true when this cashbook initialize cashbook o k response has a 5xx status code
func (*CashbookInitializeCashbookOK) IsSuccess ¶
func (o *CashbookInitializeCashbookOK) IsSuccess() bool
IsSuccess returns true when this cashbook initialize cashbook o k response has a 2xx status code
func (*CashbookInitializeCashbookOK) String ¶
func (o *CashbookInitializeCashbookOK) String() string
type CashbookInitializeCashbookParams ¶
type CashbookInitializeCashbookParams struct {
// CashbookInitialization.
CashbookInitialization *model.CashbookInitialization
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookInitializeCashbookParams contains all the parameters to send to the API endpoint
for the cashbook initialize cashbook operation. Typically these are written to a http.Request.
func NewCashbookInitializeCashbookParams ¶
func NewCashbookInitializeCashbookParams() *CashbookInitializeCashbookParams
NewCashbookInitializeCashbookParams creates a new CashbookInitializeCashbookParams 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 NewCashbookInitializeCashbookParamsWithContext ¶
func NewCashbookInitializeCashbookParamsWithContext(ctx context.Context) *CashbookInitializeCashbookParams
NewCashbookInitializeCashbookParamsWithContext creates a new CashbookInitializeCashbookParams object with the ability to set a context for a request.
func NewCashbookInitializeCashbookParamsWithHTTPClient ¶
func NewCashbookInitializeCashbookParamsWithHTTPClient(client *http.Client) *CashbookInitializeCashbookParams
NewCashbookInitializeCashbookParamsWithHTTPClient creates a new CashbookInitializeCashbookParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookInitializeCashbookParamsWithTimeout ¶
func NewCashbookInitializeCashbookParamsWithTimeout(timeout time.Duration) *CashbookInitializeCashbookParams
NewCashbookInitializeCashbookParamsWithTimeout creates a new CashbookInitializeCashbookParams object with the ability to set a timeout on a request.
func (*CashbookInitializeCashbookParams) SetCashbookInitialization ¶
func (o *CashbookInitializeCashbookParams) SetCashbookInitialization(cashbookInitialization *model.CashbookInitialization)
SetCashbookInitialization adds the cashbookInitialization to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) SetContext ¶
func (o *CashbookInitializeCashbookParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) SetDefaults ¶
func (o *CashbookInitializeCashbookParams) SetDefaults()
SetDefaults hydrates default values in the cashbook initialize cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookInitializeCashbookParams) SetHTTPClient ¶
func (o *CashbookInitializeCashbookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) SetTimeout ¶
func (o *CashbookInitializeCashbookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) WithCashbookInitialization ¶
func (o *CashbookInitializeCashbookParams) WithCashbookInitialization(cashbookInitialization *model.CashbookInitialization) *CashbookInitializeCashbookParams
WithCashbookInitialization adds the cashbookInitialization to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) WithContext ¶
func (o *CashbookInitializeCashbookParams) WithContext(ctx context.Context) *CashbookInitializeCashbookParams
WithContext adds the context to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) WithDefaults ¶
func (o *CashbookInitializeCashbookParams) WithDefaults() *CashbookInitializeCashbookParams
WithDefaults hydrates default values in the cashbook initialize cashbook params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookInitializeCashbookParams) WithHTTPClient ¶
func (o *CashbookInitializeCashbookParams) WithHTTPClient(client *http.Client) *CashbookInitializeCashbookParams
WithHTTPClient adds the HTTPClient to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) WithTimeout ¶
func (o *CashbookInitializeCashbookParams) WithTimeout(timeout time.Duration) *CashbookInitializeCashbookParams
WithTimeout adds the timeout to the cashbook initialize cashbook params
func (*CashbookInitializeCashbookParams) WriteToRequest ¶
func (o *CashbookInitializeCashbookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookInitializeCashbookReader ¶
type CashbookInitializeCashbookReader struct {
// contains filtered or unexported fields
}
CashbookInitializeCashbookReader is a Reader for the CashbookInitializeCashbook structure.
func (*CashbookInitializeCashbookReader) ReadResponse ¶
func (o *CashbookInitializeCashbookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CashbookPostCashbookEntryOK ¶
type CashbookPostCashbookEntryOK struct {
Payload *model.CashbookEntry
}
CashbookPostCashbookEntryOK describes a response with status code 200, with default header values.
Add an entry to the cash book
func NewCashbookPostCashbookEntryOK ¶
func NewCashbookPostCashbookEntryOK() *CashbookPostCashbookEntryOK
NewCashbookPostCashbookEntryOK creates a CashbookPostCashbookEntryOK with default headers values
func (*CashbookPostCashbookEntryOK) Code ¶
func (o *CashbookPostCashbookEntryOK) Code() int
Code gets the status code for the cashbook post cashbook entry o k response
func (*CashbookPostCashbookEntryOK) Error ¶
func (o *CashbookPostCashbookEntryOK) Error() string
func (*CashbookPostCashbookEntryOK) GetPayload ¶
func (o *CashbookPostCashbookEntryOK) GetPayload() *model.CashbookEntry
func (*CashbookPostCashbookEntryOK) IsClientError ¶
func (o *CashbookPostCashbookEntryOK) IsClientError() bool
IsClientError returns true when this cashbook post cashbook entry o k response has a 4xx status code
func (*CashbookPostCashbookEntryOK) IsCode ¶
func (o *CashbookPostCashbookEntryOK) IsCode(code int) bool
IsCode returns true when this cashbook post cashbook entry o k response a status code equal to that given
func (*CashbookPostCashbookEntryOK) IsRedirect ¶
func (o *CashbookPostCashbookEntryOK) IsRedirect() bool
IsRedirect returns true when this cashbook post cashbook entry o k response has a 3xx status code
func (*CashbookPostCashbookEntryOK) IsServerError ¶
func (o *CashbookPostCashbookEntryOK) IsServerError() bool
IsServerError returns true when this cashbook post cashbook entry o k response has a 5xx status code
func (*CashbookPostCashbookEntryOK) IsSuccess ¶
func (o *CashbookPostCashbookEntryOK) IsSuccess() bool
IsSuccess returns true when this cashbook post cashbook entry o k response has a 2xx status code
func (*CashbookPostCashbookEntryOK) String ¶
func (o *CashbookPostCashbookEntryOK) String() string
type CashbookPostCashbookEntryParams ¶
type CashbookPostCashbookEntryParams struct {
// CashbookInputEntry.
CashbookInputEntry *model.CashbookEntry
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashbookPostCashbookEntryParams contains all the parameters to send to the API endpoint
for the cashbook post cashbook entry operation. Typically these are written to a http.Request.
func NewCashbookPostCashbookEntryParams ¶
func NewCashbookPostCashbookEntryParams() *CashbookPostCashbookEntryParams
NewCashbookPostCashbookEntryParams creates a new CashbookPostCashbookEntryParams 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 NewCashbookPostCashbookEntryParamsWithContext ¶
func NewCashbookPostCashbookEntryParamsWithContext(ctx context.Context) *CashbookPostCashbookEntryParams
NewCashbookPostCashbookEntryParamsWithContext creates a new CashbookPostCashbookEntryParams object with the ability to set a context for a request.
func NewCashbookPostCashbookEntryParamsWithHTTPClient ¶
func NewCashbookPostCashbookEntryParamsWithHTTPClient(client *http.Client) *CashbookPostCashbookEntryParams
NewCashbookPostCashbookEntryParamsWithHTTPClient creates a new CashbookPostCashbookEntryParams object with the ability to set a custom HTTPClient for a request.
func NewCashbookPostCashbookEntryParamsWithTimeout ¶
func NewCashbookPostCashbookEntryParamsWithTimeout(timeout time.Duration) *CashbookPostCashbookEntryParams
NewCashbookPostCashbookEntryParamsWithTimeout creates a new CashbookPostCashbookEntryParams object with the ability to set a timeout on a request.
func (*CashbookPostCashbookEntryParams) SetCashbookInputEntry ¶
func (o *CashbookPostCashbookEntryParams) SetCashbookInputEntry(cashbookInputEntry *model.CashbookEntry)
SetCashbookInputEntry adds the cashbookInputEntry to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) SetContext ¶
func (o *CashbookPostCashbookEntryParams) SetContext(ctx context.Context)
SetContext adds the context to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) SetDefaults ¶
func (o *CashbookPostCashbookEntryParams) SetDefaults()
SetDefaults hydrates default values in the cashbook post cashbook entry params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookPostCashbookEntryParams) SetHTTPClient ¶
func (o *CashbookPostCashbookEntryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) SetTimeout ¶
func (o *CashbookPostCashbookEntryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) WithCashbookInputEntry ¶
func (o *CashbookPostCashbookEntryParams) WithCashbookInputEntry(cashbookInputEntry *model.CashbookEntry) *CashbookPostCashbookEntryParams
WithCashbookInputEntry adds the cashbookInputEntry to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) WithContext ¶
func (o *CashbookPostCashbookEntryParams) WithContext(ctx context.Context) *CashbookPostCashbookEntryParams
WithContext adds the context to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) WithDefaults ¶
func (o *CashbookPostCashbookEntryParams) WithDefaults() *CashbookPostCashbookEntryParams
WithDefaults hydrates default values in the cashbook post cashbook entry params (not the query body).
All values with no default are reset to their zero value.
func (*CashbookPostCashbookEntryParams) WithHTTPClient ¶
func (o *CashbookPostCashbookEntryParams) WithHTTPClient(client *http.Client) *CashbookPostCashbookEntryParams
WithHTTPClient adds the HTTPClient to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) WithTimeout ¶
func (o *CashbookPostCashbookEntryParams) WithTimeout(timeout time.Duration) *CashbookPostCashbookEntryParams
WithTimeout adds the timeout to the cashbook post cashbook entry params
func (*CashbookPostCashbookEntryParams) WriteToRequest ¶
func (o *CashbookPostCashbookEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashbookPostCashbookEntryReader ¶
type CashbookPostCashbookEntryReader struct {
// contains filtered or unexported fields
}
CashbookPostCashbookEntryReader is a Reader for the CashbookPostCashbookEntry structure.
func (*CashbookPostCashbookEntryReader) ReadResponse ¶
func (o *CashbookPostCashbookEntryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for cashbook API
func (*Client) CashbookCloseCashbook ¶
func (a *Client) CashbookCloseCashbook(params *CashbookCloseCashbookParams, opts ...ClientOption) (*CashbookCloseCashbookOK, error)
CashbookCloseCashbook initializes the cash book for first use
func (*Client) CashbookGetCashbook ¶
func (a *Client) CashbookGetCashbook(params *CashbookGetCashbookParams, opts ...ClientOption) (*CashbookGetCashbookOK, error)
CashbookGetCashbook gets the current cash book
func (*Client) CashbookGetCashbookEntries ¶
func (a *Client) CashbookGetCashbookEntries(params *CashbookGetCashbookEntriesParams, opts ...ClientOption) (*CashbookGetCashbookEntriesOK, error)
CashbookGetCashbookEntries gets an overview of all the entries in the cash book
func (*Client) CashbookGetCashbookHistory ¶
func (a *Client) CashbookGetCashbookHistory(params *CashbookGetCashbookHistoryParams, opts ...ClientOption) (*CashbookGetCashbookHistoryOK, error)
CashbookGetCashbookHistory gets an overview of all the entries in a closed cash book
func (*Client) CashbookGetCashbooks ¶
func (a *Client) CashbookGetCashbooks(params *CashbookGetCashbooksParams, opts ...ClientOption) (*CashbookGetCashbooksOK, error)
CashbookGetCashbooks gets the current cash book
func (*Client) CashbookInitializeCashbook ¶
func (a *Client) CashbookInitializeCashbook(params *CashbookInitializeCashbookParams, opts ...ClientOption) (*CashbookInitializeCashbookOK, error)
CashbookInitializeCashbook initializes the cash book for first use
func (*Client) CashbookPostCashbookEntry ¶
func (a *Client) CashbookPostCashbookEntry(params *CashbookPostCashbookEntryParams, opts ...ClientOption) (*CashbookPostCashbookEntryOK, error)
CashbookPostCashbookEntry adds an entry to the cash book
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 may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface {
CashbookCloseCashbook(params *CashbookCloseCashbookParams, opts ...ClientOption) (*CashbookCloseCashbookOK, error)
CashbookGetCashbook(params *CashbookGetCashbookParams, opts ...ClientOption) (*CashbookGetCashbookOK, error)
CashbookGetCashbookEntries(params *CashbookGetCashbookEntriesParams, opts ...ClientOption) (*CashbookGetCashbookEntriesOK, error)
CashbookGetCashbookHistory(params *CashbookGetCashbookHistoryParams, opts ...ClientOption) (*CashbookGetCashbookHistoryOK, error)
CashbookGetCashbooks(params *CashbookGetCashbooksParams, opts ...ClientOption) (*CashbookGetCashbooksOK, error)
CashbookInitializeCashbook(params *CashbookInitializeCashbookParams, opts ...ClientOption) (*CashbookInitializeCashbookOK, error)
CashbookPostCashbookEntry(params *CashbookPostCashbookEntryParams, opts ...ClientOption) (*CashbookPostCashbookEntryOK, 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 cashbook API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new cashbook API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new cashbook API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
Source Files
¶
- cashbook_client.go
- cashbook_close_cashbook_parameters.go
- cashbook_close_cashbook_responses.go
- cashbook_get_cashbook_entries_parameters.go
- cashbook_get_cashbook_entries_responses.go
- cashbook_get_cashbook_history_parameters.go
- cashbook_get_cashbook_history_responses.go
- cashbook_get_cashbook_parameters.go
- cashbook_get_cashbook_responses.go
- cashbook_get_cashbooks_parameters.go
- cashbook_get_cashbooks_responses.go
- cashbook_initialize_cashbook_parameters.go
- cashbook_initialize_cashbook_responses.go
- cashbook_post_cashbook_entry_parameters.go
- cashbook_post_cashbook_entry_responses.go