Documentation ¶
Index ¶
- type Client
- func (a *Client) LedgerVoucherTypeGet(params *LedgerVoucherTypeGetParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeGetOK, error)
- func (a *Client) LedgerVoucherTypeSearch(params *LedgerVoucherTypeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeSearchOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type LedgerVoucherTypeGetOK
- type LedgerVoucherTypeGetParams
- func NewLedgerVoucherTypeGetParams() *LedgerVoucherTypeGetParams
- func NewLedgerVoucherTypeGetParamsWithContext(ctx context.Context) *LedgerVoucherTypeGetParams
- func NewLedgerVoucherTypeGetParamsWithHTTPClient(client *http.Client) *LedgerVoucherTypeGetParams
- func NewLedgerVoucherTypeGetParamsWithTimeout(timeout time.Duration) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) SetContext(ctx context.Context)
- func (o *LedgerVoucherTypeGetParams) SetFields(fields *string)
- func (o *LedgerVoucherTypeGetParams) SetHTTPClient(client *http.Client)
- func (o *LedgerVoucherTypeGetParams) SetID(id int32)
- func (o *LedgerVoucherTypeGetParams) SetTimeout(timeout time.Duration)
- func (o *LedgerVoucherTypeGetParams) WithContext(ctx context.Context) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) WithFields(fields *string) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) WithHTTPClient(client *http.Client) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) WithID(id int32) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) WithTimeout(timeout time.Duration) *LedgerVoucherTypeGetParams
- func (o *LedgerVoucherTypeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LedgerVoucherTypeGetReader
- type LedgerVoucherTypeSearchOK
- type LedgerVoucherTypeSearchParams
- func NewLedgerVoucherTypeSearchParams() *LedgerVoucherTypeSearchParams
- func NewLedgerVoucherTypeSearchParamsWithContext(ctx context.Context) *LedgerVoucherTypeSearchParams
- func NewLedgerVoucherTypeSearchParamsWithHTTPClient(client *http.Client) *LedgerVoucherTypeSearchParams
- func NewLedgerVoucherTypeSearchParamsWithTimeout(timeout time.Duration) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) SetContext(ctx context.Context)
- func (o *LedgerVoucherTypeSearchParams) SetCount(count *int64)
- func (o *LedgerVoucherTypeSearchParams) SetFields(fields *string)
- func (o *LedgerVoucherTypeSearchParams) SetFrom(from *int64)
- func (o *LedgerVoucherTypeSearchParams) SetHTTPClient(client *http.Client)
- func (o *LedgerVoucherTypeSearchParams) SetName(name *string)
- func (o *LedgerVoucherTypeSearchParams) SetSorting(sorting *string)
- func (o *LedgerVoucherTypeSearchParams) SetTimeout(timeout time.Duration)
- func (o *LedgerVoucherTypeSearchParams) WithContext(ctx context.Context) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithCount(count *int64) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithFields(fields *string) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithFrom(from *int64) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithHTTPClient(client *http.Client) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithName(name *string) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithSorting(sorting *string) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WithTimeout(timeout time.Duration) *LedgerVoucherTypeSearchParams
- func (o *LedgerVoucherTypeSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LedgerVoucherTypeSearchReader
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 voucher type API
func (*Client) LedgerVoucherTypeGet ¶
func (a *Client) LedgerVoucherTypeGet(params *LedgerVoucherTypeGetParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeGetOK, error)
LedgerVoucherTypeGet gets voucher type by ID
func (*Client) LedgerVoucherTypeSearch ¶
func (a *Client) LedgerVoucherTypeSearch(params *LedgerVoucherTypeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeSearchOK, error)
LedgerVoucherTypeSearch finds voucher types corresponding with sent data
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { LedgerVoucherTypeGet(params *LedgerVoucherTypeGetParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeGetOK, error) LedgerVoucherTypeSearch(params *LedgerVoucherTypeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerVoucherTypeSearchOK, 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 voucher type API client.
type LedgerVoucherTypeGetOK ¶
type LedgerVoucherTypeGetOK struct {
Payload *models.ResponseWrapperVoucherType
}
LedgerVoucherTypeGetOK handles this case with default header values.
successful operation
func NewLedgerVoucherTypeGetOK ¶
func NewLedgerVoucherTypeGetOK() *LedgerVoucherTypeGetOK
NewLedgerVoucherTypeGetOK creates a LedgerVoucherTypeGetOK with default headers values
func (*LedgerVoucherTypeGetOK) Error ¶
func (o *LedgerVoucherTypeGetOK) Error() string
func (*LedgerVoucherTypeGetOK) GetPayload ¶
func (o *LedgerVoucherTypeGetOK) GetPayload() *models.ResponseWrapperVoucherType
type LedgerVoucherTypeGetParams ¶
type LedgerVoucherTypeGetParams struct { /*Fields Fields filter pattern */ Fields *string /*ID Element ID */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LedgerVoucherTypeGetParams contains all the parameters to send to the API endpoint for the ledger voucher type get operation typically these are written to a http.Request
func NewLedgerVoucherTypeGetParams ¶
func NewLedgerVoucherTypeGetParams() *LedgerVoucherTypeGetParams
NewLedgerVoucherTypeGetParams creates a new LedgerVoucherTypeGetParams object with the default values initialized.
func NewLedgerVoucherTypeGetParamsWithContext ¶
func NewLedgerVoucherTypeGetParamsWithContext(ctx context.Context) *LedgerVoucherTypeGetParams
NewLedgerVoucherTypeGetParamsWithContext creates a new LedgerVoucherTypeGetParams object with the default values initialized, and the ability to set a context for a request
func NewLedgerVoucherTypeGetParamsWithHTTPClient ¶
func NewLedgerVoucherTypeGetParamsWithHTTPClient(client *http.Client) *LedgerVoucherTypeGetParams
NewLedgerVoucherTypeGetParamsWithHTTPClient creates a new LedgerVoucherTypeGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewLedgerVoucherTypeGetParamsWithTimeout ¶
func NewLedgerVoucherTypeGetParamsWithTimeout(timeout time.Duration) *LedgerVoucherTypeGetParams
NewLedgerVoucherTypeGetParamsWithTimeout creates a new LedgerVoucherTypeGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*LedgerVoucherTypeGetParams) SetContext ¶
func (o *LedgerVoucherTypeGetParams) SetContext(ctx context.Context)
SetContext adds the context to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) SetFields ¶
func (o *LedgerVoucherTypeGetParams) SetFields(fields *string)
SetFields adds the fields to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) SetHTTPClient ¶
func (o *LedgerVoucherTypeGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) SetID ¶
func (o *LedgerVoucherTypeGetParams) SetID(id int32)
SetID adds the id to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) SetTimeout ¶
func (o *LedgerVoucherTypeGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WithContext ¶
func (o *LedgerVoucherTypeGetParams) WithContext(ctx context.Context) *LedgerVoucherTypeGetParams
WithContext adds the context to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WithFields ¶
func (o *LedgerVoucherTypeGetParams) WithFields(fields *string) *LedgerVoucherTypeGetParams
WithFields adds the fields to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WithHTTPClient ¶
func (o *LedgerVoucherTypeGetParams) WithHTTPClient(client *http.Client) *LedgerVoucherTypeGetParams
WithHTTPClient adds the HTTPClient to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WithID ¶
func (o *LedgerVoucherTypeGetParams) WithID(id int32) *LedgerVoucherTypeGetParams
WithID adds the id to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WithTimeout ¶
func (o *LedgerVoucherTypeGetParams) WithTimeout(timeout time.Duration) *LedgerVoucherTypeGetParams
WithTimeout adds the timeout to the ledger voucher type get params
func (*LedgerVoucherTypeGetParams) WriteToRequest ¶
func (o *LedgerVoucherTypeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LedgerVoucherTypeGetReader ¶
type LedgerVoucherTypeGetReader struct {
// contains filtered or unexported fields
}
LedgerVoucherTypeGetReader is a Reader for the LedgerVoucherTypeGet structure.
func (*LedgerVoucherTypeGetReader) ReadResponse ¶
func (o *LedgerVoucherTypeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LedgerVoucherTypeSearchOK ¶
type LedgerVoucherTypeSearchOK struct {
Payload *models.ListResponseVoucherType
}
LedgerVoucherTypeSearchOK handles this case with default header values.
successful operation
func NewLedgerVoucherTypeSearchOK ¶
func NewLedgerVoucherTypeSearchOK() *LedgerVoucherTypeSearchOK
NewLedgerVoucherTypeSearchOK creates a LedgerVoucherTypeSearchOK with default headers values
func (*LedgerVoucherTypeSearchOK) Error ¶
func (o *LedgerVoucherTypeSearchOK) Error() string
func (*LedgerVoucherTypeSearchOK) GetPayload ¶
func (o *LedgerVoucherTypeSearchOK) GetPayload() *models.ListResponseVoucherType
type LedgerVoucherTypeSearchParams ¶
type LedgerVoucherTypeSearchParams struct { /*Count Number of elements to return */ Count *int64 /*Fields Fields filter pattern */ Fields *string /*From From index */ From *int64 /*Name Containing */ Name *string /*Sorting Sorting pattern */ Sorting *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LedgerVoucherTypeSearchParams contains all the parameters to send to the API endpoint for the ledger voucher type search operation typically these are written to a http.Request
func NewLedgerVoucherTypeSearchParams ¶
func NewLedgerVoucherTypeSearchParams() *LedgerVoucherTypeSearchParams
NewLedgerVoucherTypeSearchParams creates a new LedgerVoucherTypeSearchParams object with the default values initialized.
func NewLedgerVoucherTypeSearchParamsWithContext ¶
func NewLedgerVoucherTypeSearchParamsWithContext(ctx context.Context) *LedgerVoucherTypeSearchParams
NewLedgerVoucherTypeSearchParamsWithContext creates a new LedgerVoucherTypeSearchParams object with the default values initialized, and the ability to set a context for a request
func NewLedgerVoucherTypeSearchParamsWithHTTPClient ¶
func NewLedgerVoucherTypeSearchParamsWithHTTPClient(client *http.Client) *LedgerVoucherTypeSearchParams
NewLedgerVoucherTypeSearchParamsWithHTTPClient creates a new LedgerVoucherTypeSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewLedgerVoucherTypeSearchParamsWithTimeout ¶
func NewLedgerVoucherTypeSearchParamsWithTimeout(timeout time.Duration) *LedgerVoucherTypeSearchParams
NewLedgerVoucherTypeSearchParamsWithTimeout creates a new LedgerVoucherTypeSearchParams object with the default values initialized, and the ability to set a timeout on a request
func (*LedgerVoucherTypeSearchParams) SetContext ¶
func (o *LedgerVoucherTypeSearchParams) SetContext(ctx context.Context)
SetContext adds the context to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetCount ¶
func (o *LedgerVoucherTypeSearchParams) SetCount(count *int64)
SetCount adds the count to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetFields ¶
func (o *LedgerVoucherTypeSearchParams) SetFields(fields *string)
SetFields adds the fields to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetFrom ¶
func (o *LedgerVoucherTypeSearchParams) SetFrom(from *int64)
SetFrom adds the from to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetHTTPClient ¶
func (o *LedgerVoucherTypeSearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetName ¶
func (o *LedgerVoucherTypeSearchParams) SetName(name *string)
SetName adds the name to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetSorting ¶
func (o *LedgerVoucherTypeSearchParams) SetSorting(sorting *string)
SetSorting adds the sorting to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) SetTimeout ¶
func (o *LedgerVoucherTypeSearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithContext ¶
func (o *LedgerVoucherTypeSearchParams) WithContext(ctx context.Context) *LedgerVoucherTypeSearchParams
WithContext adds the context to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithCount ¶
func (o *LedgerVoucherTypeSearchParams) WithCount(count *int64) *LedgerVoucherTypeSearchParams
WithCount adds the count to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithFields ¶
func (o *LedgerVoucherTypeSearchParams) WithFields(fields *string) *LedgerVoucherTypeSearchParams
WithFields adds the fields to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithFrom ¶
func (o *LedgerVoucherTypeSearchParams) WithFrom(from *int64) *LedgerVoucherTypeSearchParams
WithFrom adds the from to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithHTTPClient ¶
func (o *LedgerVoucherTypeSearchParams) WithHTTPClient(client *http.Client) *LedgerVoucherTypeSearchParams
WithHTTPClient adds the HTTPClient to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithName ¶
func (o *LedgerVoucherTypeSearchParams) WithName(name *string) *LedgerVoucherTypeSearchParams
WithName adds the name to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithSorting ¶
func (o *LedgerVoucherTypeSearchParams) WithSorting(sorting *string) *LedgerVoucherTypeSearchParams
WithSorting adds the sorting to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WithTimeout ¶
func (o *LedgerVoucherTypeSearchParams) WithTimeout(timeout time.Duration) *LedgerVoucherTypeSearchParams
WithTimeout adds the timeout to the ledger voucher type search params
func (*LedgerVoucherTypeSearchParams) WriteToRequest ¶
func (o *LedgerVoucherTypeSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LedgerVoucherTypeSearchReader ¶
type LedgerVoucherTypeSearchReader struct {
// contains filtered or unexported fields
}
LedgerVoucherTypeSearchReader is a Reader for the LedgerVoucherTypeSearch structure.
func (*LedgerVoucherTypeSearchReader) ReadResponse ¶
func (o *LedgerVoucherTypeSearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.