unit

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 unit API

func (*Client) ProductUnitDelete

func (a *Client) ProductUnitDelete(params *ProductUnitDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

ProductUnitDelete bs e t a delete product unit by ID

func (*Client) ProductUnitGet

func (a *Client) ProductUnitGet(params *ProductUnitGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitGetOK, error)

ProductUnitGet gets product unit by ID

func (*Client) ProductUnitListPostList

ProductUnitListPostList bs e t a create multiple product units

func (*Client) ProductUnitListPutList

func (a *Client) ProductUnitListPutList(params *ProductUnitListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitListPutListOK, error)

ProductUnitListPutList bs e t a update list of product units

func (*Client) ProductUnitPost

func (a *Client) ProductUnitPost(params *ProductUnitPostParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitPostCreated, error)

ProductUnitPost bs e t a create new product unit

func (*Client) ProductUnitPut

func (a *Client) ProductUnitPut(params *ProductUnitPutParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitPutOK, error)

ProductUnitPut bs e t a update product unit

func (*Client) ProductUnitSearch

func (a *Client) ProductUnitSearch(params *ProductUnitSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitSearchOK, error)

ProductUnitSearch finds product units 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 {
	ProductUnitListPostList(params *ProductUnitListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitListPostListCreated, error)

	ProductUnitListPutList(params *ProductUnitListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitListPutListOK, error)

	ProductUnitDelete(params *ProductUnitDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	ProductUnitGet(params *ProductUnitGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitGetOK, error)

	ProductUnitPost(params *ProductUnitPostParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitPostCreated, error)

	ProductUnitPut(params *ProductUnitPutParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitPutOK, error)

	ProductUnitSearch(params *ProductUnitSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductUnitSearchOK, 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 unit API client.

type ProductUnitDeleteDefault

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

ProductUnitDeleteDefault handles this case with default header values.

successful operation

func NewProductUnitDeleteDefault

func NewProductUnitDeleteDefault(code int) *ProductUnitDeleteDefault

NewProductUnitDeleteDefault creates a ProductUnitDeleteDefault with default headers values

func (*ProductUnitDeleteDefault) Code

func (o *ProductUnitDeleteDefault) Code() int

Code gets the status code for the product unit delete default response

func (*ProductUnitDeleteDefault) Error

func (o *ProductUnitDeleteDefault) Error() string

type ProductUnitDeleteParams

type ProductUnitDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

ProductUnitDeleteParams contains all the parameters to send to the API endpoint for the product unit delete operation typically these are written to a http.Request

func NewProductUnitDeleteParams

func NewProductUnitDeleteParams() *ProductUnitDeleteParams

NewProductUnitDeleteParams creates a new ProductUnitDeleteParams object with the default values initialized.

func NewProductUnitDeleteParamsWithContext

func NewProductUnitDeleteParamsWithContext(ctx context.Context) *ProductUnitDeleteParams

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

func NewProductUnitDeleteParamsWithHTTPClient

func NewProductUnitDeleteParamsWithHTTPClient(client *http.Client) *ProductUnitDeleteParams

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

func NewProductUnitDeleteParamsWithTimeout

func NewProductUnitDeleteParamsWithTimeout(timeout time.Duration) *ProductUnitDeleteParams

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

func (*ProductUnitDeleteParams) SetContext

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

SetContext adds the context to the product unit delete params

func (*ProductUnitDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit delete params

func (*ProductUnitDeleteParams) SetID

func (o *ProductUnitDeleteParams) SetID(id int32)

SetID adds the id to the product unit delete params

func (*ProductUnitDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the product unit delete params

func (*ProductUnitDeleteParams) WithContext

WithContext adds the context to the product unit delete params

func (*ProductUnitDeleteParams) WithHTTPClient

func (o *ProductUnitDeleteParams) WithHTTPClient(client *http.Client) *ProductUnitDeleteParams

WithHTTPClient adds the HTTPClient to the product unit delete params

func (*ProductUnitDeleteParams) WithID

WithID adds the id to the product unit delete params

func (*ProductUnitDeleteParams) WithTimeout

WithTimeout adds the timeout to the product unit delete params

func (*ProductUnitDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductUnitDeleteReader

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

ProductUnitDeleteReader is a Reader for the ProductUnitDelete structure.

func (*ProductUnitDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitGetOK

type ProductUnitGetOK struct {
	Payload *models.ResponseWrapperProductUnit
}

ProductUnitGetOK handles this case with default header values.

successful operation

func NewProductUnitGetOK

func NewProductUnitGetOK() *ProductUnitGetOK

NewProductUnitGetOK creates a ProductUnitGetOK with default headers values

func (*ProductUnitGetOK) Error

func (o *ProductUnitGetOK) Error() string

func (*ProductUnitGetOK) GetPayload

type ProductUnitGetParams

type ProductUnitGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

ProductUnitGetParams contains all the parameters to send to the API endpoint for the product unit get operation typically these are written to a http.Request

func NewProductUnitGetParams

func NewProductUnitGetParams() *ProductUnitGetParams

NewProductUnitGetParams creates a new ProductUnitGetParams object with the default values initialized.

func NewProductUnitGetParamsWithContext

func NewProductUnitGetParamsWithContext(ctx context.Context) *ProductUnitGetParams

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

func NewProductUnitGetParamsWithHTTPClient

func NewProductUnitGetParamsWithHTTPClient(client *http.Client) *ProductUnitGetParams

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

func NewProductUnitGetParamsWithTimeout

func NewProductUnitGetParamsWithTimeout(timeout time.Duration) *ProductUnitGetParams

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

func (*ProductUnitGetParams) SetContext

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

SetContext adds the context to the product unit get params

func (*ProductUnitGetParams) SetFields

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

SetFields adds the fields to the product unit get params

func (*ProductUnitGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit get params

func (*ProductUnitGetParams) SetID

func (o *ProductUnitGetParams) SetID(id int32)

SetID adds the id to the product unit get params

func (*ProductUnitGetParams) SetTimeout

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

SetTimeout adds the timeout to the product unit get params

func (*ProductUnitGetParams) WithContext

WithContext adds the context to the product unit get params

func (*ProductUnitGetParams) WithFields

func (o *ProductUnitGetParams) WithFields(fields *string) *ProductUnitGetParams

WithFields adds the fields to the product unit get params

func (*ProductUnitGetParams) WithHTTPClient

func (o *ProductUnitGetParams) WithHTTPClient(client *http.Client) *ProductUnitGetParams

WithHTTPClient adds the HTTPClient to the product unit get params

func (*ProductUnitGetParams) WithID

WithID adds the id to the product unit get params

func (*ProductUnitGetParams) WithTimeout

func (o *ProductUnitGetParams) WithTimeout(timeout time.Duration) *ProductUnitGetParams

WithTimeout adds the timeout to the product unit get params

func (*ProductUnitGetParams) WriteToRequest

func (o *ProductUnitGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProductUnitGetReader

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

ProductUnitGetReader is a Reader for the ProductUnitGet structure.

func (*ProductUnitGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitListPostListCreated

type ProductUnitListPostListCreated struct {
	Payload *models.ListResponseProductUnit
}

ProductUnitListPostListCreated handles this case with default header values.

successfully created

func NewProductUnitListPostListCreated

func NewProductUnitListPostListCreated() *ProductUnitListPostListCreated

NewProductUnitListPostListCreated creates a ProductUnitListPostListCreated with default headers values

func (*ProductUnitListPostListCreated) Error

func (*ProductUnitListPostListCreated) GetPayload

type ProductUnitListPostListParams

type ProductUnitListPostListParams struct {

	/*Body
	  JSON representing a list of new object to be created. Should not have ID and version set.

	*/
	Body []*models.ProductUnit

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

ProductUnitListPostListParams contains all the parameters to send to the API endpoint for the product unit list post list operation typically these are written to a http.Request

func NewProductUnitListPostListParams

func NewProductUnitListPostListParams() *ProductUnitListPostListParams

NewProductUnitListPostListParams creates a new ProductUnitListPostListParams object with the default values initialized.

func NewProductUnitListPostListParamsWithContext

func NewProductUnitListPostListParamsWithContext(ctx context.Context) *ProductUnitListPostListParams

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

func NewProductUnitListPostListParamsWithHTTPClient

func NewProductUnitListPostListParamsWithHTTPClient(client *http.Client) *ProductUnitListPostListParams

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

func NewProductUnitListPostListParamsWithTimeout

func NewProductUnitListPostListParamsWithTimeout(timeout time.Duration) *ProductUnitListPostListParams

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

func (*ProductUnitListPostListParams) SetBody

func (o *ProductUnitListPostListParams) SetBody(body []*models.ProductUnit)

SetBody adds the body to the product unit list post list params

func (*ProductUnitListPostListParams) SetContext

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

SetContext adds the context to the product unit list post list params

func (*ProductUnitListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit list post list params

func (*ProductUnitListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the product unit list post list params

func (*ProductUnitListPostListParams) WithBody

WithBody adds the body to the product unit list post list params

func (*ProductUnitListPostListParams) WithContext

WithContext adds the context to the product unit list post list params

func (*ProductUnitListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the product unit list post list params

func (*ProductUnitListPostListParams) WithTimeout

WithTimeout adds the timeout to the product unit list post list params

func (*ProductUnitListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductUnitListPostListReader

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

ProductUnitListPostListReader is a Reader for the ProductUnitListPostList structure.

func (*ProductUnitListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitListPutListOK

type ProductUnitListPutListOK struct {
	Payload *models.ListResponseProductUnit
}

ProductUnitListPutListOK handles this case with default header values.

successful operation

func NewProductUnitListPutListOK

func NewProductUnitListPutListOK() *ProductUnitListPutListOK

NewProductUnitListPutListOK creates a ProductUnitListPutListOK with default headers values

func (*ProductUnitListPutListOK) Error

func (o *ProductUnitListPutListOK) Error() string

func (*ProductUnitListPutListOK) GetPayload

type ProductUnitListPutListParams

type ProductUnitListPutListParams struct {

	/*Body
	  JSON representing updates to object. Should have ID and version set.

	*/
	Body []*models.ProductUnit

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

ProductUnitListPutListParams contains all the parameters to send to the API endpoint for the product unit list put list operation typically these are written to a http.Request

func NewProductUnitListPutListParams

func NewProductUnitListPutListParams() *ProductUnitListPutListParams

NewProductUnitListPutListParams creates a new ProductUnitListPutListParams object with the default values initialized.

func NewProductUnitListPutListParamsWithContext

func NewProductUnitListPutListParamsWithContext(ctx context.Context) *ProductUnitListPutListParams

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

func NewProductUnitListPutListParamsWithHTTPClient

func NewProductUnitListPutListParamsWithHTTPClient(client *http.Client) *ProductUnitListPutListParams

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

func NewProductUnitListPutListParamsWithTimeout

func NewProductUnitListPutListParamsWithTimeout(timeout time.Duration) *ProductUnitListPutListParams

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

func (*ProductUnitListPutListParams) SetBody

func (o *ProductUnitListPutListParams) SetBody(body []*models.ProductUnit)

SetBody adds the body to the product unit list put list params

func (*ProductUnitListPutListParams) SetContext

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

SetContext adds the context to the product unit list put list params

func (*ProductUnitListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit list put list params

func (*ProductUnitListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the product unit list put list params

func (*ProductUnitListPutListParams) WithBody

WithBody adds the body to the product unit list put list params

func (*ProductUnitListPutListParams) WithContext

WithContext adds the context to the product unit list put list params

func (*ProductUnitListPutListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the product unit list put list params

func (*ProductUnitListPutListParams) WithTimeout

WithTimeout adds the timeout to the product unit list put list params

func (*ProductUnitListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductUnitListPutListReader

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

ProductUnitListPutListReader is a Reader for the ProductUnitListPutList structure.

func (*ProductUnitListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitPostCreated

type ProductUnitPostCreated struct {
	Payload *models.ResponseWrapperProductUnit
}

ProductUnitPostCreated handles this case with default header values.

successfully created

func NewProductUnitPostCreated

func NewProductUnitPostCreated() *ProductUnitPostCreated

NewProductUnitPostCreated creates a ProductUnitPostCreated with default headers values

func (*ProductUnitPostCreated) Error

func (o *ProductUnitPostCreated) Error() string

func (*ProductUnitPostCreated) GetPayload

type ProductUnitPostParams

type ProductUnitPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.ProductUnit

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

ProductUnitPostParams contains all the parameters to send to the API endpoint for the product unit post operation typically these are written to a http.Request

func NewProductUnitPostParams

func NewProductUnitPostParams() *ProductUnitPostParams

NewProductUnitPostParams creates a new ProductUnitPostParams object with the default values initialized.

func NewProductUnitPostParamsWithContext

func NewProductUnitPostParamsWithContext(ctx context.Context) *ProductUnitPostParams

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

func NewProductUnitPostParamsWithHTTPClient

func NewProductUnitPostParamsWithHTTPClient(client *http.Client) *ProductUnitPostParams

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

func NewProductUnitPostParamsWithTimeout

func NewProductUnitPostParamsWithTimeout(timeout time.Duration) *ProductUnitPostParams

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

func (*ProductUnitPostParams) SetBody

func (o *ProductUnitPostParams) SetBody(body *models.ProductUnit)

SetBody adds the body to the product unit post params

func (*ProductUnitPostParams) SetContext

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

SetContext adds the context to the product unit post params

func (*ProductUnitPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit post params

func (*ProductUnitPostParams) SetTimeout

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

SetTimeout adds the timeout to the product unit post params

func (*ProductUnitPostParams) WithBody

WithBody adds the body to the product unit post params

func (*ProductUnitPostParams) WithContext

WithContext adds the context to the product unit post params

func (*ProductUnitPostParams) WithHTTPClient

func (o *ProductUnitPostParams) WithHTTPClient(client *http.Client) *ProductUnitPostParams

WithHTTPClient adds the HTTPClient to the product unit post params

func (*ProductUnitPostParams) WithTimeout

func (o *ProductUnitPostParams) WithTimeout(timeout time.Duration) *ProductUnitPostParams

WithTimeout adds the timeout to the product unit post params

func (*ProductUnitPostParams) WriteToRequest

func (o *ProductUnitPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProductUnitPostReader

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

ProductUnitPostReader is a Reader for the ProductUnitPost structure.

func (*ProductUnitPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitPutOK

type ProductUnitPutOK struct {
	Payload *models.ResponseWrapperProductUnit
}

ProductUnitPutOK handles this case with default header values.

successful operation

func NewProductUnitPutOK

func NewProductUnitPutOK() *ProductUnitPutOK

NewProductUnitPutOK creates a ProductUnitPutOK with default headers values

func (*ProductUnitPutOK) Error

func (o *ProductUnitPutOK) Error() string

func (*ProductUnitPutOK) GetPayload

type ProductUnitPutParams

type ProductUnitPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.ProductUnit
	/*ID
	  Element ID

	*/
	ID int32

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

ProductUnitPutParams contains all the parameters to send to the API endpoint for the product unit put operation typically these are written to a http.Request

func NewProductUnitPutParams

func NewProductUnitPutParams() *ProductUnitPutParams

NewProductUnitPutParams creates a new ProductUnitPutParams object with the default values initialized.

func NewProductUnitPutParamsWithContext

func NewProductUnitPutParamsWithContext(ctx context.Context) *ProductUnitPutParams

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

func NewProductUnitPutParamsWithHTTPClient

func NewProductUnitPutParamsWithHTTPClient(client *http.Client) *ProductUnitPutParams

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

func NewProductUnitPutParamsWithTimeout

func NewProductUnitPutParamsWithTimeout(timeout time.Duration) *ProductUnitPutParams

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

func (*ProductUnitPutParams) SetBody

func (o *ProductUnitPutParams) SetBody(body *models.ProductUnit)

SetBody adds the body to the product unit put params

func (*ProductUnitPutParams) SetContext

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

SetContext adds the context to the product unit put params

func (*ProductUnitPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit put params

func (*ProductUnitPutParams) SetID

func (o *ProductUnitPutParams) SetID(id int32)

SetID adds the id to the product unit put params

func (*ProductUnitPutParams) SetTimeout

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

SetTimeout adds the timeout to the product unit put params

func (*ProductUnitPutParams) WithBody

WithBody adds the body to the product unit put params

func (*ProductUnitPutParams) WithContext

WithContext adds the context to the product unit put params

func (*ProductUnitPutParams) WithHTTPClient

func (o *ProductUnitPutParams) WithHTTPClient(client *http.Client) *ProductUnitPutParams

WithHTTPClient adds the HTTPClient to the product unit put params

func (*ProductUnitPutParams) WithID

WithID adds the id to the product unit put params

func (*ProductUnitPutParams) WithTimeout

func (o *ProductUnitPutParams) WithTimeout(timeout time.Duration) *ProductUnitPutParams

WithTimeout adds the timeout to the product unit put params

func (*ProductUnitPutParams) WriteToRequest

func (o *ProductUnitPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProductUnitPutReader

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

ProductUnitPutReader is a Reader for the ProductUnitPut structure.

func (*ProductUnitPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductUnitSearchOK

type ProductUnitSearchOK struct {
	Payload *models.ListResponseProductUnit
}

ProductUnitSearchOK handles this case with default header values.

successful operation

func NewProductUnitSearchOK

func NewProductUnitSearchOK() *ProductUnitSearchOK

NewProductUnitSearchOK creates a ProductUnitSearchOK with default headers values

func (*ProductUnitSearchOK) Error

func (o *ProductUnitSearchOK) Error() string

func (*ProductUnitSearchOK) GetPayload

type ProductUnitSearchParams

type ProductUnitSearchParams struct {

	/*CommonCode
	  Common codes

	*/
	CommonCode *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*Name
	  Names

	*/
	Name *string
	/*NameShort
	  Short names

	*/
	NameShort *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

ProductUnitSearchParams contains all the parameters to send to the API endpoint for the product unit search operation typically these are written to a http.Request

func NewProductUnitSearchParams

func NewProductUnitSearchParams() *ProductUnitSearchParams

NewProductUnitSearchParams creates a new ProductUnitSearchParams object with the default values initialized.

func NewProductUnitSearchParamsWithContext

func NewProductUnitSearchParamsWithContext(ctx context.Context) *ProductUnitSearchParams

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

func NewProductUnitSearchParamsWithHTTPClient

func NewProductUnitSearchParamsWithHTTPClient(client *http.Client) *ProductUnitSearchParams

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

func NewProductUnitSearchParamsWithTimeout

func NewProductUnitSearchParamsWithTimeout(timeout time.Duration) *ProductUnitSearchParams

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

func (*ProductUnitSearchParams) SetCommonCode

func (o *ProductUnitSearchParams) SetCommonCode(commonCode *string)

SetCommonCode adds the commonCode to the product unit search params

func (*ProductUnitSearchParams) SetContext

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

SetContext adds the context to the product unit search params

func (*ProductUnitSearchParams) SetCount

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

SetCount adds the count to the product unit search params

func (*ProductUnitSearchParams) SetFields

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

SetFields adds the fields to the product unit search params

func (*ProductUnitSearchParams) SetFrom

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

SetFrom adds the from to the product unit search params

func (*ProductUnitSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product unit search params

func (*ProductUnitSearchParams) SetID

func (o *ProductUnitSearchParams) SetID(id *string)

SetID adds the id to the product unit search params

func (*ProductUnitSearchParams) SetName

func (o *ProductUnitSearchParams) SetName(name *string)

SetName adds the name to the product unit search params

func (*ProductUnitSearchParams) SetNameShort

func (o *ProductUnitSearchParams) SetNameShort(nameShort *string)

SetNameShort adds the nameShort to the product unit search params

func (*ProductUnitSearchParams) SetSorting

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

SetSorting adds the sorting to the product unit search params

func (*ProductUnitSearchParams) SetTimeout

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

SetTimeout adds the timeout to the product unit search params

func (*ProductUnitSearchParams) WithCommonCode

func (o *ProductUnitSearchParams) WithCommonCode(commonCode *string) *ProductUnitSearchParams

WithCommonCode adds the commonCode to the product unit search params

func (*ProductUnitSearchParams) WithContext

WithContext adds the context to the product unit search params

func (*ProductUnitSearchParams) WithCount

WithCount adds the count to the product unit search params

func (*ProductUnitSearchParams) WithFields

func (o *ProductUnitSearchParams) WithFields(fields *string) *ProductUnitSearchParams

WithFields adds the fields to the product unit search params

func (*ProductUnitSearchParams) WithFrom

WithFrom adds the from to the product unit search params

func (*ProductUnitSearchParams) WithHTTPClient

func (o *ProductUnitSearchParams) WithHTTPClient(client *http.Client) *ProductUnitSearchParams

WithHTTPClient adds the HTTPClient to the product unit search params

func (*ProductUnitSearchParams) WithID

WithID adds the id to the product unit search params

func (*ProductUnitSearchParams) WithName

WithName adds the name to the product unit search params

func (*ProductUnitSearchParams) WithNameShort

func (o *ProductUnitSearchParams) WithNameShort(nameShort *string) *ProductUnitSearchParams

WithNameShort adds the nameShort to the product unit search params

func (*ProductUnitSearchParams) WithSorting

func (o *ProductUnitSearchParams) WithSorting(sorting *string) *ProductUnitSearchParams

WithSorting adds the sorting to the product unit search params

func (*ProductUnitSearchParams) WithTimeout

WithTimeout adds the timeout to the product unit search params

func (*ProductUnitSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductUnitSearchReader

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

ProductUnitSearchReader is a Reader for the ProductUnitSearch structure.

func (*ProductUnitSearchReader) ReadResponse

func (o *ProductUnitSearchReader) 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