voucher_type

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

WithContext adds the context to the ledger voucher type get params

func (*LedgerVoucherTypeGetParams) WithFields

WithFields adds the fields to the ledger voucher type get params

func (*LedgerVoucherTypeGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the ledger voucher type get params

func (*LedgerVoucherTypeGetParams) WithID

WithID adds the id to the ledger voucher type get params

func (*LedgerVoucherTypeGetParams) WithTimeout

WithTimeout adds the timeout to the ledger voucher type get params

func (*LedgerVoucherTypeGetParams) WriteToRequest

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

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

WithContext adds the context to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithCount

WithCount adds the count to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithFields

WithFields adds the fields to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithFrom

WithFrom adds the from to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithName

WithName adds the name to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithSorting

WithSorting adds the sorting to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WithTimeout

WithTimeout adds the timeout to the ledger voucher type search params

func (*LedgerVoucherTypeSearchParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL