product

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 product API

func (*Client) ProductDelete

func (a *Client) ProductDelete(params *ProductDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

ProductDelete bs e t a delete product

func (*Client) ProductGet

func (a *Client) ProductGet(params *ProductGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductGetOK, error)

ProductGet gets product by ID

func (*Client) ProductListPostList

func (a *Client) ProductListPostList(params *ProductListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductListPostListCreated, error)

ProductListPostList bs e t a add multiple products

func (*Client) ProductListPutList

func (a *Client) ProductListPutList(params *ProductListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductListPutListOK, error)

ProductListPutList bs e t a update a list of products

func (*Client) ProductPost

func (a *Client) ProductPost(params *ProductPostParams, authInfo runtime.ClientAuthInfoWriter) (*ProductPostCreated, error)

ProductPost creates new product

func (*Client) ProductPut

func (a *Client) ProductPut(params *ProductPutParams, authInfo runtime.ClientAuthInfoWriter) (*ProductPutOK, error)

ProductPut updates product

func (*Client) ProductSearch

func (a *Client) ProductSearch(params *ProductSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductSearchOK, error)

ProductSearch finds products 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 {
	ProductListPostList(params *ProductListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductListPostListCreated, error)

	ProductListPutList(params *ProductListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*ProductListPutListOK, error)

	ProductDelete(params *ProductDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	ProductGet(params *ProductGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductGetOK, error)

	ProductPost(params *ProductPostParams, authInfo runtime.ClientAuthInfoWriter) (*ProductPostCreated, error)

	ProductPut(params *ProductPutParams, authInfo runtime.ClientAuthInfoWriter) (*ProductPutOK, error)

	ProductSearch(params *ProductSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductSearchOK, 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 product API client.

type ProductDeleteDefault

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

ProductDeleteDefault handles this case with default header values.

successful operation

func NewProductDeleteDefault

func NewProductDeleteDefault(code int) *ProductDeleteDefault

NewProductDeleteDefault creates a ProductDeleteDefault with default headers values

func (*ProductDeleteDefault) Code

func (o *ProductDeleteDefault) Code() int

Code gets the status code for the product delete default response

func (*ProductDeleteDefault) Error

func (o *ProductDeleteDefault) Error() string

type ProductDeleteParams

type ProductDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewProductDeleteParams

func NewProductDeleteParams() *ProductDeleteParams

NewProductDeleteParams creates a new ProductDeleteParams object with the default values initialized.

func NewProductDeleteParamsWithContext

func NewProductDeleteParamsWithContext(ctx context.Context) *ProductDeleteParams

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

func NewProductDeleteParamsWithHTTPClient

func NewProductDeleteParamsWithHTTPClient(client *http.Client) *ProductDeleteParams

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

func NewProductDeleteParamsWithTimeout

func NewProductDeleteParamsWithTimeout(timeout time.Duration) *ProductDeleteParams

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

func (*ProductDeleteParams) SetContext

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

SetContext adds the context to the product delete params

func (*ProductDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product delete params

func (*ProductDeleteParams) SetID

func (o *ProductDeleteParams) SetID(id int32)

SetID adds the id to the product delete params

func (*ProductDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the product delete params

func (*ProductDeleteParams) WithContext

WithContext adds the context to the product delete params

func (*ProductDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product delete params

func (*ProductDeleteParams) WithID

WithID adds the id to the product delete params

func (*ProductDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the product delete params

func (*ProductDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProductDeleteReader

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

ProductDeleteReader is a Reader for the ProductDelete structure.

func (*ProductDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductGetOK

type ProductGetOK struct {
	Payload *models.ResponseWrapperProduct
}

ProductGetOK handles this case with default header values.

successful operation

func NewProductGetOK

func NewProductGetOK() *ProductGetOK

NewProductGetOK creates a ProductGetOK with default headers values

func (*ProductGetOK) Error

func (o *ProductGetOK) Error() string

func (*ProductGetOK) GetPayload

func (o *ProductGetOK) GetPayload() *models.ResponseWrapperProduct

type ProductGetParams

type ProductGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewProductGetParams

func NewProductGetParams() *ProductGetParams

NewProductGetParams creates a new ProductGetParams object with the default values initialized.

func NewProductGetParamsWithContext

func NewProductGetParamsWithContext(ctx context.Context) *ProductGetParams

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

func NewProductGetParamsWithHTTPClient

func NewProductGetParamsWithHTTPClient(client *http.Client) *ProductGetParams

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

func NewProductGetParamsWithTimeout

func NewProductGetParamsWithTimeout(timeout time.Duration) *ProductGetParams

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

func (*ProductGetParams) SetContext

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

SetContext adds the context to the product get params

func (*ProductGetParams) SetFields

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

SetFields adds the fields to the product get params

func (*ProductGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product get params

func (*ProductGetParams) SetID

func (o *ProductGetParams) SetID(id int32)

SetID adds the id to the product get params

func (*ProductGetParams) SetTimeout

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

SetTimeout adds the timeout to the product get params

func (*ProductGetParams) WithContext

func (o *ProductGetParams) WithContext(ctx context.Context) *ProductGetParams

WithContext adds the context to the product get params

func (*ProductGetParams) WithFields

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

WithFields adds the fields to the product get params

func (*ProductGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product get params

func (*ProductGetParams) WithID

func (o *ProductGetParams) WithID(id int32) *ProductGetParams

WithID adds the id to the product get params

func (*ProductGetParams) WithTimeout

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

WithTimeout adds the timeout to the product get params

func (*ProductGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProductGetReader

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

ProductGetReader is a Reader for the ProductGet structure.

func (*ProductGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductListPostListCreated

type ProductListPostListCreated struct {
	Payload *models.ListResponseProduct
}

ProductListPostListCreated handles this case with default header values.

successfully created

func NewProductListPostListCreated

func NewProductListPostListCreated() *ProductListPostListCreated

NewProductListPostListCreated creates a ProductListPostListCreated with default headers values

func (*ProductListPostListCreated) Error

func (*ProductListPostListCreated) GetPayload

type ProductListPostListParams

type ProductListPostListParams struct {

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

	*/
	Body []*models.Product

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

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

func NewProductListPostListParams

func NewProductListPostListParams() *ProductListPostListParams

NewProductListPostListParams creates a new ProductListPostListParams object with the default values initialized.

func NewProductListPostListParamsWithContext

func NewProductListPostListParamsWithContext(ctx context.Context) *ProductListPostListParams

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

func NewProductListPostListParamsWithHTTPClient

func NewProductListPostListParamsWithHTTPClient(client *http.Client) *ProductListPostListParams

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

func NewProductListPostListParamsWithTimeout

func NewProductListPostListParamsWithTimeout(timeout time.Duration) *ProductListPostListParams

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

func (*ProductListPostListParams) SetBody

func (o *ProductListPostListParams) SetBody(body []*models.Product)

SetBody adds the body to the product list post list params

func (*ProductListPostListParams) SetContext

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

SetContext adds the context to the product list post list params

func (*ProductListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product list post list params

func (*ProductListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the product list post list params

func (*ProductListPostListParams) WithBody

WithBody adds the body to the product list post list params

func (*ProductListPostListParams) WithContext

WithContext adds the context to the product list post list params

func (*ProductListPostListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product list post list params

func (*ProductListPostListParams) WithTimeout

WithTimeout adds the timeout to the product list post list params

func (*ProductListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductListPostListReader

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

ProductListPostListReader is a Reader for the ProductListPostList structure.

func (*ProductListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductListPutListOK

type ProductListPutListOK struct {
	Payload *models.ListResponseProduct
}

ProductListPutListOK handles this case with default header values.

successful operation

func NewProductListPutListOK

func NewProductListPutListOK() *ProductListPutListOK

NewProductListPutListOK creates a ProductListPutListOK with default headers values

func (*ProductListPutListOK) Error

func (o *ProductListPutListOK) Error() string

func (*ProductListPutListOK) GetPayload

type ProductListPutListParams

type ProductListPutListParams struct {

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

	*/
	Body []*models.Product

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

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

func NewProductListPutListParams

func NewProductListPutListParams() *ProductListPutListParams

NewProductListPutListParams creates a new ProductListPutListParams object with the default values initialized.

func NewProductListPutListParamsWithContext

func NewProductListPutListParamsWithContext(ctx context.Context) *ProductListPutListParams

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

func NewProductListPutListParamsWithHTTPClient

func NewProductListPutListParamsWithHTTPClient(client *http.Client) *ProductListPutListParams

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

func NewProductListPutListParamsWithTimeout

func NewProductListPutListParamsWithTimeout(timeout time.Duration) *ProductListPutListParams

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

func (*ProductListPutListParams) SetBody

func (o *ProductListPutListParams) SetBody(body []*models.Product)

SetBody adds the body to the product list put list params

func (*ProductListPutListParams) SetContext

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

SetContext adds the context to the product list put list params

func (*ProductListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product list put list params

func (*ProductListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the product list put list params

func (*ProductListPutListParams) WithBody

WithBody adds the body to the product list put list params

func (*ProductListPutListParams) WithContext

WithContext adds the context to the product list put list params

func (*ProductListPutListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product list put list params

func (*ProductListPutListParams) WithTimeout

WithTimeout adds the timeout to the product list put list params

func (*ProductListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductListPutListReader

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

ProductListPutListReader is a Reader for the ProductListPutList structure.

func (*ProductListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductPostCreated

type ProductPostCreated struct {
	Payload *models.ResponseWrapperProduct
}

ProductPostCreated handles this case with default header values.

successfully created

func NewProductPostCreated

func NewProductPostCreated() *ProductPostCreated

NewProductPostCreated creates a ProductPostCreated with default headers values

func (*ProductPostCreated) Error

func (o *ProductPostCreated) Error() string

func (*ProductPostCreated) GetPayload

type ProductPostParams

type ProductPostParams struct {

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

	*/
	Body *models.Product

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

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

func NewProductPostParams

func NewProductPostParams() *ProductPostParams

NewProductPostParams creates a new ProductPostParams object with the default values initialized.

func NewProductPostParamsWithContext

func NewProductPostParamsWithContext(ctx context.Context) *ProductPostParams

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

func NewProductPostParamsWithHTTPClient

func NewProductPostParamsWithHTTPClient(client *http.Client) *ProductPostParams

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

func NewProductPostParamsWithTimeout

func NewProductPostParamsWithTimeout(timeout time.Duration) *ProductPostParams

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

func (*ProductPostParams) SetBody

func (o *ProductPostParams) SetBody(body *models.Product)

SetBody adds the body to the product post params

func (*ProductPostParams) SetContext

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

SetContext adds the context to the product post params

func (*ProductPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product post params

func (*ProductPostParams) SetTimeout

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

SetTimeout adds the timeout to the product post params

func (*ProductPostParams) WithBody

func (o *ProductPostParams) WithBody(body *models.Product) *ProductPostParams

WithBody adds the body to the product post params

func (*ProductPostParams) WithContext

func (o *ProductPostParams) WithContext(ctx context.Context) *ProductPostParams

WithContext adds the context to the product post params

func (*ProductPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product post params

func (*ProductPostParams) WithTimeout

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

WithTimeout adds the timeout to the product post params

func (*ProductPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProductPostReader

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

ProductPostReader is a Reader for the ProductPost structure.

func (*ProductPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductPutOK

type ProductPutOK struct {
	Payload *models.ResponseWrapperProduct
}

ProductPutOK handles this case with default header values.

successful operation

func NewProductPutOK

func NewProductPutOK() *ProductPutOK

NewProductPutOK creates a ProductPutOK with default headers values

func (*ProductPutOK) Error

func (o *ProductPutOK) Error() string

func (*ProductPutOK) GetPayload

func (o *ProductPutOK) GetPayload() *models.ResponseWrapperProduct

type ProductPutParams

type ProductPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Product
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewProductPutParams

func NewProductPutParams() *ProductPutParams

NewProductPutParams creates a new ProductPutParams object with the default values initialized.

func NewProductPutParamsWithContext

func NewProductPutParamsWithContext(ctx context.Context) *ProductPutParams

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

func NewProductPutParamsWithHTTPClient

func NewProductPutParamsWithHTTPClient(client *http.Client) *ProductPutParams

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

func NewProductPutParamsWithTimeout

func NewProductPutParamsWithTimeout(timeout time.Duration) *ProductPutParams

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

func (*ProductPutParams) SetBody

func (o *ProductPutParams) SetBody(body *models.Product)

SetBody adds the body to the product put params

func (*ProductPutParams) SetContext

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

SetContext adds the context to the product put params

func (*ProductPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product put params

func (*ProductPutParams) SetID

func (o *ProductPutParams) SetID(id int32)

SetID adds the id to the product put params

func (*ProductPutParams) SetTimeout

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

SetTimeout adds the timeout to the product put params

func (*ProductPutParams) WithBody

func (o *ProductPutParams) WithBody(body *models.Product) *ProductPutParams

WithBody adds the body to the product put params

func (*ProductPutParams) WithContext

func (o *ProductPutParams) WithContext(ctx context.Context) *ProductPutParams

WithContext adds the context to the product put params

func (*ProductPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product put params

func (*ProductPutParams) WithID

func (o *ProductPutParams) WithID(id int32) *ProductPutParams

WithID adds the id to the product put params

func (*ProductPutParams) WithTimeout

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

WithTimeout adds the timeout to the product put params

func (*ProductPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProductPutReader

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

ProductPutReader is a Reader for the ProductPut structure.

func (*ProductPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductSearchOK

type ProductSearchOK struct {
	Payload *models.ListResponseProduct
}

ProductSearchOK handles this case with default header values.

successful operation

func NewProductSearchOK

func NewProductSearchOK() *ProductSearchOK

NewProductSearchOK creates a ProductSearchOK with default headers values

func (*ProductSearchOK) Error

func (o *ProductSearchOK) Error() string

func (*ProductSearchOK) GetPayload

func (o *ProductSearchOK) GetPayload() *models.ListResponseProduct

type ProductSearchParams

type ProductSearchParams struct {

	/*AccountID
	  Equals

	*/
	AccountID *string
	/*CostExcludingVatCurrencyFrom
	  From and including

	*/
	CostExcludingVatCurrencyFrom *float64
	/*CostExcludingVatCurrencyTo
	  To and excluding

	*/
	CostExcludingVatCurrencyTo *float64
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*CurrencyID
	  Equals

	*/
	CurrencyID *string
	/*DepartmentID
	  Equals

	*/
	DepartmentID *string
	/*Ean
	  Equals

	*/
	Ean *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*IsInactive
	  Equals

	*/
	IsInactive *bool
	/*IsStockItem
	  Equals

	*/
	IsStockItem *bool
	/*Name
	  Containing

	*/
	Name *string
	/*Number
	  DEPRECATED. List of product numbers (Integer only)

	*/
	Number *string
	/*PriceExcludingVatCurrencyFrom
	  From and including

	*/
	PriceExcludingVatCurrencyFrom *float64
	/*PriceExcludingVatCurrencyTo
	  To and excluding

	*/
	PriceExcludingVatCurrencyTo *float64
	/*PriceIncludingVatCurrencyFrom
	  From and including

	*/
	PriceIncludingVatCurrencyFrom *float64
	/*PriceIncludingVatCurrencyTo
	  To and excluding

	*/
	PriceIncludingVatCurrencyTo *float64
	/*ProductNumber
	  List of valid product numbers

	*/
	ProductNumber []string
	/*ProductUnitID
	  Equals

	*/
	ProductUnitID *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*VatTypeID
	  Equals

	*/
	VatTypeID *string

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

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

func NewProductSearchParams

func NewProductSearchParams() *ProductSearchParams

NewProductSearchParams creates a new ProductSearchParams object with the default values initialized.

func NewProductSearchParamsWithContext

func NewProductSearchParamsWithContext(ctx context.Context) *ProductSearchParams

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

func NewProductSearchParamsWithHTTPClient

func NewProductSearchParamsWithHTTPClient(client *http.Client) *ProductSearchParams

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

func NewProductSearchParamsWithTimeout

func NewProductSearchParamsWithTimeout(timeout time.Duration) *ProductSearchParams

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

func (*ProductSearchParams) SetAccountID

func (o *ProductSearchParams) SetAccountID(accountID *string)

SetAccountID adds the accountId to the product search params

func (*ProductSearchParams) SetContext

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

SetContext adds the context to the product search params

func (*ProductSearchParams) SetCostExcludingVatCurrencyFrom

func (o *ProductSearchParams) SetCostExcludingVatCurrencyFrom(costExcludingVatCurrencyFrom *float64)

SetCostExcludingVatCurrencyFrom adds the costExcludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) SetCostExcludingVatCurrencyTo

func (o *ProductSearchParams) SetCostExcludingVatCurrencyTo(costExcludingVatCurrencyTo *float64)

SetCostExcludingVatCurrencyTo adds the costExcludingVatCurrencyTo to the product search params

func (*ProductSearchParams) SetCount

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

SetCount adds the count to the product search params

func (*ProductSearchParams) SetCurrencyID

func (o *ProductSearchParams) SetCurrencyID(currencyID *string)

SetCurrencyID adds the currencyId to the product search params

func (*ProductSearchParams) SetDepartmentID

func (o *ProductSearchParams) SetDepartmentID(departmentID *string)

SetDepartmentID adds the departmentId to the product search params

func (*ProductSearchParams) SetEan

func (o *ProductSearchParams) SetEan(ean *string)

SetEan adds the ean to the product search params

func (*ProductSearchParams) SetFields

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

SetFields adds the fields to the product search params

func (*ProductSearchParams) SetFrom

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

SetFrom adds the from to the product search params

func (*ProductSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product search params

func (*ProductSearchParams) SetIsInactive

func (o *ProductSearchParams) SetIsInactive(isInactive *bool)

SetIsInactive adds the isInactive to the product search params

func (*ProductSearchParams) SetIsStockItem

func (o *ProductSearchParams) SetIsStockItem(isStockItem *bool)

SetIsStockItem adds the isStockItem to the product search params

func (*ProductSearchParams) SetName

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

SetName adds the name to the product search params

func (*ProductSearchParams) SetNumber

func (o *ProductSearchParams) SetNumber(number *string)

SetNumber adds the number to the product search params

func (*ProductSearchParams) SetPriceExcludingVatCurrencyFrom

func (o *ProductSearchParams) SetPriceExcludingVatCurrencyFrom(priceExcludingVatCurrencyFrom *float64)

SetPriceExcludingVatCurrencyFrom adds the priceExcludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) SetPriceExcludingVatCurrencyTo

func (o *ProductSearchParams) SetPriceExcludingVatCurrencyTo(priceExcludingVatCurrencyTo *float64)

SetPriceExcludingVatCurrencyTo adds the priceExcludingVatCurrencyTo to the product search params

func (*ProductSearchParams) SetPriceIncludingVatCurrencyFrom

func (o *ProductSearchParams) SetPriceIncludingVatCurrencyFrom(priceIncludingVatCurrencyFrom *float64)

SetPriceIncludingVatCurrencyFrom adds the priceIncludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) SetPriceIncludingVatCurrencyTo

func (o *ProductSearchParams) SetPriceIncludingVatCurrencyTo(priceIncludingVatCurrencyTo *float64)

SetPriceIncludingVatCurrencyTo adds the priceIncludingVatCurrencyTo to the product search params

func (*ProductSearchParams) SetProductNumber

func (o *ProductSearchParams) SetProductNumber(productNumber []string)

SetProductNumber adds the productNumber to the product search params

func (*ProductSearchParams) SetProductUnitID

func (o *ProductSearchParams) SetProductUnitID(productUnitID *string)

SetProductUnitID adds the productUnitId to the product search params

func (*ProductSearchParams) SetSorting

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

SetSorting adds the sorting to the product search params

func (*ProductSearchParams) SetTimeout

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

SetTimeout adds the timeout to the product search params

func (*ProductSearchParams) SetVatTypeID

func (o *ProductSearchParams) SetVatTypeID(vatTypeID *string)

SetVatTypeID adds the vatTypeId to the product search params

func (*ProductSearchParams) WithAccountID

func (o *ProductSearchParams) WithAccountID(accountID *string) *ProductSearchParams

WithAccountID adds the accountID to the product search params

func (*ProductSearchParams) WithContext

WithContext adds the context to the product search params

func (*ProductSearchParams) WithCostExcludingVatCurrencyFrom

func (o *ProductSearchParams) WithCostExcludingVatCurrencyFrom(costExcludingVatCurrencyFrom *float64) *ProductSearchParams

WithCostExcludingVatCurrencyFrom adds the costExcludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) WithCostExcludingVatCurrencyTo

func (o *ProductSearchParams) WithCostExcludingVatCurrencyTo(costExcludingVatCurrencyTo *float64) *ProductSearchParams

WithCostExcludingVatCurrencyTo adds the costExcludingVatCurrencyTo to the product search params

func (*ProductSearchParams) WithCount

func (o *ProductSearchParams) WithCount(count *int64) *ProductSearchParams

WithCount adds the count to the product search params

func (*ProductSearchParams) WithCurrencyID

func (o *ProductSearchParams) WithCurrencyID(currencyID *string) *ProductSearchParams

WithCurrencyID adds the currencyID to the product search params

func (*ProductSearchParams) WithDepartmentID

func (o *ProductSearchParams) WithDepartmentID(departmentID *string) *ProductSearchParams

WithDepartmentID adds the departmentID to the product search params

func (*ProductSearchParams) WithEan

WithEan adds the ean to the product search params

func (*ProductSearchParams) WithFields

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

WithFields adds the fields to the product search params

func (*ProductSearchParams) WithFrom

func (o *ProductSearchParams) WithFrom(from *int64) *ProductSearchParams

WithFrom adds the from to the product search params

func (*ProductSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product search params

func (*ProductSearchParams) WithIsInactive

func (o *ProductSearchParams) WithIsInactive(isInactive *bool) *ProductSearchParams

WithIsInactive adds the isInactive to the product search params

func (*ProductSearchParams) WithIsStockItem

func (o *ProductSearchParams) WithIsStockItem(isStockItem *bool) *ProductSearchParams

WithIsStockItem adds the isStockItem to the product search params

func (*ProductSearchParams) WithName

func (o *ProductSearchParams) WithName(name *string) *ProductSearchParams

WithName adds the name to the product search params

func (*ProductSearchParams) WithNumber

func (o *ProductSearchParams) WithNumber(number *string) *ProductSearchParams

WithNumber adds the number to the product search params

func (*ProductSearchParams) WithPriceExcludingVatCurrencyFrom

func (o *ProductSearchParams) WithPriceExcludingVatCurrencyFrom(priceExcludingVatCurrencyFrom *float64) *ProductSearchParams

WithPriceExcludingVatCurrencyFrom adds the priceExcludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) WithPriceExcludingVatCurrencyTo

func (o *ProductSearchParams) WithPriceExcludingVatCurrencyTo(priceExcludingVatCurrencyTo *float64) *ProductSearchParams

WithPriceExcludingVatCurrencyTo adds the priceExcludingVatCurrencyTo to the product search params

func (*ProductSearchParams) WithPriceIncludingVatCurrencyFrom

func (o *ProductSearchParams) WithPriceIncludingVatCurrencyFrom(priceIncludingVatCurrencyFrom *float64) *ProductSearchParams

WithPriceIncludingVatCurrencyFrom adds the priceIncludingVatCurrencyFrom to the product search params

func (*ProductSearchParams) WithPriceIncludingVatCurrencyTo

func (o *ProductSearchParams) WithPriceIncludingVatCurrencyTo(priceIncludingVatCurrencyTo *float64) *ProductSearchParams

WithPriceIncludingVatCurrencyTo adds the priceIncludingVatCurrencyTo to the product search params

func (*ProductSearchParams) WithProductNumber

func (o *ProductSearchParams) WithProductNumber(productNumber []string) *ProductSearchParams

WithProductNumber adds the productNumber to the product search params

func (*ProductSearchParams) WithProductUnitID

func (o *ProductSearchParams) WithProductUnitID(productUnitID *string) *ProductSearchParams

WithProductUnitID adds the productUnitID to the product search params

func (*ProductSearchParams) WithSorting

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

WithSorting adds the sorting to the product search params

func (*ProductSearchParams) WithTimeout

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

WithTimeout adds the timeout to the product search params

func (*ProductSearchParams) WithVatTypeID

func (o *ProductSearchParams) WithVatTypeID(vatTypeID *string) *ProductSearchParams

WithVatTypeID adds the vatTypeID to the product search params

func (*ProductSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProductSearchReader

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

ProductSearchReader is a Reader for the ProductSearch structure.

func (*ProductSearchReader) ReadResponse

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