product

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProductDefault

type AddProductDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
AddProductDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewAddProductDefault

func NewAddProductDefault(code int) *AddProductDefault

NewAddProductDefault creates a AddProductDefault with default headers values

func (*AddProductDefault) Code

func (o *AddProductDefault) Code() int

Code gets the status code for the add product default response

func (*AddProductDefault) Error

func (o *AddProductDefault) Error() string

func (*AddProductDefault) GetPayload

func (o *AddProductDefault) GetPayload() *models.RPCStatus

type AddProductOK

type AddProductOK struct {
	Payload *models.StorespbAddProductResponse
}
AddProductOK describes a response with status code 200, with default header values.

A successful response.

func NewAddProductOK

func NewAddProductOK() *AddProductOK

NewAddProductOK creates a AddProductOK with default headers values

func (*AddProductOK) Error

func (o *AddProductOK) Error() string

func (*AddProductOK) GetPayload

type AddProductParams

type AddProductParams struct {

	// Body.
	Body *models.AddProductParamsBody

	// StoreID.
	StoreID string

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

AddProductParams contains all the parameters to send to the API endpoint

for the add product operation.

Typically these are written to a http.Request.

func NewAddProductParams

func NewAddProductParams() *AddProductParams

NewAddProductParams creates a new AddProductParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewAddProductParamsWithContext

func NewAddProductParamsWithContext(ctx context.Context) *AddProductParams

NewAddProductParamsWithContext creates a new AddProductParams object with the ability to set a context for a request.

func NewAddProductParamsWithHTTPClient

func NewAddProductParamsWithHTTPClient(client *http.Client) *AddProductParams

NewAddProductParamsWithHTTPClient creates a new AddProductParams object with the ability to set a custom HTTPClient for a request.

func NewAddProductParamsWithTimeout

func NewAddProductParamsWithTimeout(timeout time.Duration) *AddProductParams

NewAddProductParamsWithTimeout creates a new AddProductParams object with the ability to set a timeout on a request.

func (*AddProductParams) SetBody

func (o *AddProductParams) SetBody(body *models.AddProductParamsBody)

SetBody adds the body to the add product params

func (*AddProductParams) SetContext

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

SetContext adds the context to the add product params

func (*AddProductParams) SetDefaults

func (o *AddProductParams) SetDefaults()

SetDefaults hydrates default values in the add product params (not the query body).

All values with no default are reset to their zero value.

func (*AddProductParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add product params

func (*AddProductParams) SetStoreID

func (o *AddProductParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the add product params

func (*AddProductParams) SetTimeout

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

SetTimeout adds the timeout to the add product params

func (*AddProductParams) WithBody

WithBody adds the body to the add product params

func (*AddProductParams) WithContext

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

WithContext adds the context to the add product params

func (*AddProductParams) WithDefaults

func (o *AddProductParams) WithDefaults() *AddProductParams

WithDefaults hydrates default values in the add product params (not the query body).

All values with no default are reset to their zero value.

func (*AddProductParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add product params

func (*AddProductParams) WithStoreID

func (o *AddProductParams) WithStoreID(storeID string) *AddProductParams

WithStoreID adds the storeID to the add product params

func (*AddProductParams) WithTimeout

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

WithTimeout adds the timeout to the add product params

func (*AddProductParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddProductReader

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

AddProductReader is a Reader for the AddProduct structure.

func (*AddProductReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for product API

func (*Client) AddProduct

func (a *Client) AddProduct(params *AddProductParams, opts ...ClientOption) (*AddProductOK, error)

AddProduct adds a store product

func (*Client) DecreaseProductPrice

func (a *Client) DecreaseProductPrice(params *DecreaseProductPriceParams, opts ...ClientOption) (*DecreaseProductPriceOK, error)

DecreaseProductPrice decreases the price of a product

func (*Client) GetProduct

func (a *Client) GetProduct(params *GetProductParams, opts ...ClientOption) (*GetProductOK, error)

GetProduct gets a store product

func (*Client) GetStoreProduct

func (a *Client) GetStoreProduct(params *GetStoreProductParams, opts ...ClientOption) (*GetStoreProductOK, error)

GetStoreProduct gets a list of store products

func (*Client) IncreaseProductPrice

func (a *Client) IncreaseProductPrice(params *IncreaseProductPriceParams, opts ...ClientOption) (*IncreaseProductPriceOK, error)

IncreaseProductPrice increases the price of a product

func (*Client) RebrandProduct

func (a *Client) RebrandProduct(params *RebrandProductParams, opts ...ClientOption) (*RebrandProductOK, error)

RebrandProduct changes the name and description of a product

func (*Client) RemoveProduct

func (a *Client) RemoveProduct(params *RemoveProductParams, opts ...ClientOption) (*RemoveProductOK, error)

RemoveProduct removes a store product

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddProduct(params *AddProductParams, opts ...ClientOption) (*AddProductOK, error)

	DecreaseProductPrice(params *DecreaseProductPriceParams, opts ...ClientOption) (*DecreaseProductPriceOK, error)

	GetProduct(params *GetProductParams, opts ...ClientOption) (*GetProductOK, error)

	GetStoreProduct(params *GetStoreProductParams, opts ...ClientOption) (*GetStoreProductOK, error)

	IncreaseProductPrice(params *IncreaseProductPriceParams, opts ...ClientOption) (*IncreaseProductPriceOK, error)

	RebrandProduct(params *RebrandProductParams, opts ...ClientOption) (*RebrandProductOK, error)

	RemoveProduct(params *RemoveProductParams, opts ...ClientOption) (*RemoveProductOK, 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 DecreaseProductPriceDefault

type DecreaseProductPriceDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
DecreaseProductPriceDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDecreaseProductPriceDefault

func NewDecreaseProductPriceDefault(code int) *DecreaseProductPriceDefault

NewDecreaseProductPriceDefault creates a DecreaseProductPriceDefault with default headers values

func (*DecreaseProductPriceDefault) Code

func (o *DecreaseProductPriceDefault) Code() int

Code gets the status code for the decrease product price default response

func (*DecreaseProductPriceDefault) Error

func (*DecreaseProductPriceDefault) GetPayload

func (o *DecreaseProductPriceDefault) GetPayload() *models.RPCStatus

type DecreaseProductPriceOK

type DecreaseProductPriceOK struct {
	Payload models.StorespbDecreaseProductPriceResponse
}
DecreaseProductPriceOK describes a response with status code 200, with default header values.

A successful response.

func NewDecreaseProductPriceOK

func NewDecreaseProductPriceOK() *DecreaseProductPriceOK

NewDecreaseProductPriceOK creates a DecreaseProductPriceOK with default headers values

func (*DecreaseProductPriceOK) Error

func (o *DecreaseProductPriceOK) Error() string

func (*DecreaseProductPriceOK) GetPayload

type DecreaseProductPriceParams

type DecreaseProductPriceParams struct {

	// Body.
	Body *models.DecreaseProductPriceParamsBody

	// ID.
	ID string

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

DecreaseProductPriceParams contains all the parameters to send to the API endpoint

for the decrease product price operation.

Typically these are written to a http.Request.

func NewDecreaseProductPriceParams

func NewDecreaseProductPriceParams() *DecreaseProductPriceParams

NewDecreaseProductPriceParams creates a new DecreaseProductPriceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDecreaseProductPriceParamsWithContext

func NewDecreaseProductPriceParamsWithContext(ctx context.Context) *DecreaseProductPriceParams

NewDecreaseProductPriceParamsWithContext creates a new DecreaseProductPriceParams object with the ability to set a context for a request.

func NewDecreaseProductPriceParamsWithHTTPClient

func NewDecreaseProductPriceParamsWithHTTPClient(client *http.Client) *DecreaseProductPriceParams

NewDecreaseProductPriceParamsWithHTTPClient creates a new DecreaseProductPriceParams object with the ability to set a custom HTTPClient for a request.

func NewDecreaseProductPriceParamsWithTimeout

func NewDecreaseProductPriceParamsWithTimeout(timeout time.Duration) *DecreaseProductPriceParams

NewDecreaseProductPriceParamsWithTimeout creates a new DecreaseProductPriceParams object with the ability to set a timeout on a request.

func (*DecreaseProductPriceParams) SetBody

SetBody adds the body to the decrease product price params

func (*DecreaseProductPriceParams) SetContext

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

SetContext adds the context to the decrease product price params

func (*DecreaseProductPriceParams) SetDefaults

func (o *DecreaseProductPriceParams) SetDefaults()

SetDefaults hydrates default values in the decrease product price params (not the query body).

All values with no default are reset to their zero value.

func (*DecreaseProductPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decrease product price params

func (*DecreaseProductPriceParams) SetID

func (o *DecreaseProductPriceParams) SetID(id string)

SetID adds the id to the decrease product price params

func (*DecreaseProductPriceParams) SetTimeout

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

SetTimeout adds the timeout to the decrease product price params

func (*DecreaseProductPriceParams) WithBody

WithBody adds the body to the decrease product price params

func (*DecreaseProductPriceParams) WithContext

WithContext adds the context to the decrease product price params

func (*DecreaseProductPriceParams) WithDefaults

WithDefaults hydrates default values in the decrease product price params (not the query body).

All values with no default are reset to their zero value.

func (*DecreaseProductPriceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the decrease product price params

func (*DecreaseProductPriceParams) WithID

WithID adds the id to the decrease product price params

func (*DecreaseProductPriceParams) WithTimeout

WithTimeout adds the timeout to the decrease product price params

func (*DecreaseProductPriceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DecreaseProductPriceReader

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

DecreaseProductPriceReader is a Reader for the DecreaseProductPrice structure.

func (*DecreaseProductPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProductDefault

type GetProductDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
GetProductDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetProductDefault

func NewGetProductDefault(code int) *GetProductDefault

NewGetProductDefault creates a GetProductDefault with default headers values

func (*GetProductDefault) Code

func (o *GetProductDefault) Code() int

Code gets the status code for the get product default response

func (*GetProductDefault) Error

func (o *GetProductDefault) Error() string

func (*GetProductDefault) GetPayload

func (o *GetProductDefault) GetPayload() *models.RPCStatus

type GetProductOK

type GetProductOK struct {
	Payload *models.StorespbGetProductResponse
}
GetProductOK describes a response with status code 200, with default header values.

A successful response.

func NewGetProductOK

func NewGetProductOK() *GetProductOK

NewGetProductOK creates a GetProductOK with default headers values

func (*GetProductOK) Error

func (o *GetProductOK) Error() string

func (*GetProductOK) GetPayload

type GetProductParams

type GetProductParams struct {

	// ID.
	ID string

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

GetProductParams contains all the parameters to send to the API endpoint

for the get product operation.

Typically these are written to a http.Request.

func NewGetProductParams

func NewGetProductParams() *GetProductParams

NewGetProductParams creates a new GetProductParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetProductParamsWithContext

func NewGetProductParamsWithContext(ctx context.Context) *GetProductParams

NewGetProductParamsWithContext creates a new GetProductParams object with the ability to set a context for a request.

func NewGetProductParamsWithHTTPClient

func NewGetProductParamsWithHTTPClient(client *http.Client) *GetProductParams

NewGetProductParamsWithHTTPClient creates a new GetProductParams object with the ability to set a custom HTTPClient for a request.

func NewGetProductParamsWithTimeout

func NewGetProductParamsWithTimeout(timeout time.Duration) *GetProductParams

NewGetProductParamsWithTimeout creates a new GetProductParams object with the ability to set a timeout on a request.

func (*GetProductParams) SetContext

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

SetContext adds the context to the get product params

func (*GetProductParams) SetDefaults

func (o *GetProductParams) SetDefaults()

SetDefaults hydrates default values in the get product params (not the query body).

All values with no default are reset to their zero value.

func (*GetProductParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get product params

func (*GetProductParams) SetID

func (o *GetProductParams) SetID(id string)

SetID adds the id to the get product params

func (*GetProductParams) SetTimeout

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

SetTimeout adds the timeout to the get product params

func (*GetProductParams) WithContext

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

WithContext adds the context to the get product params

func (*GetProductParams) WithDefaults

func (o *GetProductParams) WithDefaults() *GetProductParams

WithDefaults hydrates default values in the get product params (not the query body).

All values with no default are reset to their zero value.

func (*GetProductParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get product params

func (*GetProductParams) WithID

func (o *GetProductParams) WithID(id string) *GetProductParams

WithID adds the id to the get product params

func (*GetProductParams) WithTimeout

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

WithTimeout adds the timeout to the get product params

func (*GetProductParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProductReader

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

GetProductReader is a Reader for the GetProduct structure.

func (*GetProductReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStoreProductDefault

type GetStoreProductDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
GetStoreProductDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetStoreProductDefault

func NewGetStoreProductDefault(code int) *GetStoreProductDefault

NewGetStoreProductDefault creates a GetStoreProductDefault with default headers values

func (*GetStoreProductDefault) Code

func (o *GetStoreProductDefault) Code() int

Code gets the status code for the get store product default response

func (*GetStoreProductDefault) Error

func (o *GetStoreProductDefault) Error() string

func (*GetStoreProductDefault) GetPayload

func (o *GetStoreProductDefault) GetPayload() *models.RPCStatus

type GetStoreProductOK

type GetStoreProductOK struct {
	Payload *models.StorespbGetCatalogResponse
}
GetStoreProductOK describes a response with status code 200, with default header values.

A successful response.

func NewGetStoreProductOK

func NewGetStoreProductOK() *GetStoreProductOK

NewGetStoreProductOK creates a GetStoreProductOK with default headers values

func (*GetStoreProductOK) Error

func (o *GetStoreProductOK) Error() string

func (*GetStoreProductOK) GetPayload

type GetStoreProductParams

type GetStoreProductParams struct {

	// StoreID.
	StoreID string

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

GetStoreProductParams contains all the parameters to send to the API endpoint

for the get store product operation.

Typically these are written to a http.Request.

func NewGetStoreProductParams

func NewGetStoreProductParams() *GetStoreProductParams

NewGetStoreProductParams creates a new GetStoreProductParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetStoreProductParamsWithContext

func NewGetStoreProductParamsWithContext(ctx context.Context) *GetStoreProductParams

NewGetStoreProductParamsWithContext creates a new GetStoreProductParams object with the ability to set a context for a request.

func NewGetStoreProductParamsWithHTTPClient

func NewGetStoreProductParamsWithHTTPClient(client *http.Client) *GetStoreProductParams

NewGetStoreProductParamsWithHTTPClient creates a new GetStoreProductParams object with the ability to set a custom HTTPClient for a request.

func NewGetStoreProductParamsWithTimeout

func NewGetStoreProductParamsWithTimeout(timeout time.Duration) *GetStoreProductParams

NewGetStoreProductParamsWithTimeout creates a new GetStoreProductParams object with the ability to set a timeout on a request.

func (*GetStoreProductParams) SetContext

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

SetContext adds the context to the get store product params

func (*GetStoreProductParams) SetDefaults

func (o *GetStoreProductParams) SetDefaults()

SetDefaults hydrates default values in the get store product params (not the query body).

All values with no default are reset to their zero value.

func (*GetStoreProductParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get store product params

func (*GetStoreProductParams) SetStoreID

func (o *GetStoreProductParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the get store product params

func (*GetStoreProductParams) SetTimeout

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

SetTimeout adds the timeout to the get store product params

func (*GetStoreProductParams) WithContext

WithContext adds the context to the get store product params

func (*GetStoreProductParams) WithDefaults

func (o *GetStoreProductParams) WithDefaults() *GetStoreProductParams

WithDefaults hydrates default values in the get store product params (not the query body).

All values with no default are reset to their zero value.

func (*GetStoreProductParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get store product params

func (*GetStoreProductParams) WithStoreID

func (o *GetStoreProductParams) WithStoreID(storeID string) *GetStoreProductParams

WithStoreID adds the storeID to the get store product params

func (*GetStoreProductParams) WithTimeout

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

WithTimeout adds the timeout to the get store product params

func (*GetStoreProductParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStoreProductReader

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

GetStoreProductReader is a Reader for the GetStoreProduct structure.

func (*GetStoreProductReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type IncreaseProductPriceDefault

type IncreaseProductPriceDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
IncreaseProductPriceDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewIncreaseProductPriceDefault

func NewIncreaseProductPriceDefault(code int) *IncreaseProductPriceDefault

NewIncreaseProductPriceDefault creates a IncreaseProductPriceDefault with default headers values

func (*IncreaseProductPriceDefault) Code

func (o *IncreaseProductPriceDefault) Code() int

Code gets the status code for the increase product price default response

func (*IncreaseProductPriceDefault) Error

func (*IncreaseProductPriceDefault) GetPayload

func (o *IncreaseProductPriceDefault) GetPayload() *models.RPCStatus

type IncreaseProductPriceOK

type IncreaseProductPriceOK struct {
	Payload models.StorespbIncreaseProductPriceResponse
}
IncreaseProductPriceOK describes a response with status code 200, with default header values.

A successful response.

func NewIncreaseProductPriceOK

func NewIncreaseProductPriceOK() *IncreaseProductPriceOK

NewIncreaseProductPriceOK creates a IncreaseProductPriceOK with default headers values

func (*IncreaseProductPriceOK) Error

func (o *IncreaseProductPriceOK) Error() string

func (*IncreaseProductPriceOK) GetPayload

type IncreaseProductPriceParams

type IncreaseProductPriceParams struct {

	// Body.
	Body *models.IncreaseProductPriceParamsBody

	// ID.
	ID string

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

IncreaseProductPriceParams contains all the parameters to send to the API endpoint

for the increase product price operation.

Typically these are written to a http.Request.

func NewIncreaseProductPriceParams

func NewIncreaseProductPriceParams() *IncreaseProductPriceParams

NewIncreaseProductPriceParams creates a new IncreaseProductPriceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewIncreaseProductPriceParamsWithContext

func NewIncreaseProductPriceParamsWithContext(ctx context.Context) *IncreaseProductPriceParams

NewIncreaseProductPriceParamsWithContext creates a new IncreaseProductPriceParams object with the ability to set a context for a request.

func NewIncreaseProductPriceParamsWithHTTPClient

func NewIncreaseProductPriceParamsWithHTTPClient(client *http.Client) *IncreaseProductPriceParams

NewIncreaseProductPriceParamsWithHTTPClient creates a new IncreaseProductPriceParams object with the ability to set a custom HTTPClient for a request.

func NewIncreaseProductPriceParamsWithTimeout

func NewIncreaseProductPriceParamsWithTimeout(timeout time.Duration) *IncreaseProductPriceParams

NewIncreaseProductPriceParamsWithTimeout creates a new IncreaseProductPriceParams object with the ability to set a timeout on a request.

func (*IncreaseProductPriceParams) SetBody

SetBody adds the body to the increase product price params

func (*IncreaseProductPriceParams) SetContext

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

SetContext adds the context to the increase product price params

func (*IncreaseProductPriceParams) SetDefaults

func (o *IncreaseProductPriceParams) SetDefaults()

SetDefaults hydrates default values in the increase product price params (not the query body).

All values with no default are reset to their zero value.

func (*IncreaseProductPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the increase product price params

func (*IncreaseProductPriceParams) SetID

func (o *IncreaseProductPriceParams) SetID(id string)

SetID adds the id to the increase product price params

func (*IncreaseProductPriceParams) SetTimeout

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

SetTimeout adds the timeout to the increase product price params

func (*IncreaseProductPriceParams) WithBody

WithBody adds the body to the increase product price params

func (*IncreaseProductPriceParams) WithContext

WithContext adds the context to the increase product price params

func (*IncreaseProductPriceParams) WithDefaults

WithDefaults hydrates default values in the increase product price params (not the query body).

All values with no default are reset to their zero value.

func (*IncreaseProductPriceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the increase product price params

func (*IncreaseProductPriceParams) WithID

WithID adds the id to the increase product price params

func (*IncreaseProductPriceParams) WithTimeout

WithTimeout adds the timeout to the increase product price params

func (*IncreaseProductPriceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type IncreaseProductPriceReader

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

IncreaseProductPriceReader is a Reader for the IncreaseProductPrice structure.

func (*IncreaseProductPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RebrandProductDefault

type RebrandProductDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
RebrandProductDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRebrandProductDefault

func NewRebrandProductDefault(code int) *RebrandProductDefault

NewRebrandProductDefault creates a RebrandProductDefault with default headers values

func (*RebrandProductDefault) Code

func (o *RebrandProductDefault) Code() int

Code gets the status code for the rebrand product default response

func (*RebrandProductDefault) Error

func (o *RebrandProductDefault) Error() string

func (*RebrandProductDefault) GetPayload

func (o *RebrandProductDefault) GetPayload() *models.RPCStatus

type RebrandProductOK

type RebrandProductOK struct {
	Payload models.StorespbRebrandProductResponse
}
RebrandProductOK describes a response with status code 200, with default header values.

A successful response.

func NewRebrandProductOK

func NewRebrandProductOK() *RebrandProductOK

NewRebrandProductOK creates a RebrandProductOK with default headers values

func (*RebrandProductOK) Error

func (o *RebrandProductOK) Error() string

func (*RebrandProductOK) GetPayload

type RebrandProductParams

type RebrandProductParams struct {

	// Body.
	Body *models.RebrandProductParamsBody

	// ID.
	ID string

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

RebrandProductParams contains all the parameters to send to the API endpoint

for the rebrand product operation.

Typically these are written to a http.Request.

func NewRebrandProductParams

func NewRebrandProductParams() *RebrandProductParams

NewRebrandProductParams creates a new RebrandProductParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRebrandProductParamsWithContext

func NewRebrandProductParamsWithContext(ctx context.Context) *RebrandProductParams

NewRebrandProductParamsWithContext creates a new RebrandProductParams object with the ability to set a context for a request.

func NewRebrandProductParamsWithHTTPClient

func NewRebrandProductParamsWithHTTPClient(client *http.Client) *RebrandProductParams

NewRebrandProductParamsWithHTTPClient creates a new RebrandProductParams object with the ability to set a custom HTTPClient for a request.

func NewRebrandProductParamsWithTimeout

func NewRebrandProductParamsWithTimeout(timeout time.Duration) *RebrandProductParams

NewRebrandProductParamsWithTimeout creates a new RebrandProductParams object with the ability to set a timeout on a request.

func (*RebrandProductParams) SetBody

SetBody adds the body to the rebrand product params

func (*RebrandProductParams) SetContext

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

SetContext adds the context to the rebrand product params

func (*RebrandProductParams) SetDefaults

func (o *RebrandProductParams) SetDefaults()

SetDefaults hydrates default values in the rebrand product params (not the query body).

All values with no default are reset to their zero value.

func (*RebrandProductParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rebrand product params

func (*RebrandProductParams) SetID

func (o *RebrandProductParams) SetID(id string)

SetID adds the id to the rebrand product params

func (*RebrandProductParams) SetTimeout

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

SetTimeout adds the timeout to the rebrand product params

func (*RebrandProductParams) WithBody

WithBody adds the body to the rebrand product params

func (*RebrandProductParams) WithContext

WithContext adds the context to the rebrand product params

func (*RebrandProductParams) WithDefaults

func (o *RebrandProductParams) WithDefaults() *RebrandProductParams

WithDefaults hydrates default values in the rebrand product params (not the query body).

All values with no default are reset to their zero value.

func (*RebrandProductParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the rebrand product params

func (*RebrandProductParams) WithID

WithID adds the id to the rebrand product params

func (*RebrandProductParams) WithTimeout

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

WithTimeout adds the timeout to the rebrand product params

func (*RebrandProductParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RebrandProductReader

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

RebrandProductReader is a Reader for the RebrandProduct structure.

func (*RebrandProductReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveProductDefault

type RemoveProductDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
RemoveProductDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRemoveProductDefault

func NewRemoveProductDefault(code int) *RemoveProductDefault

NewRemoveProductDefault creates a RemoveProductDefault with default headers values

func (*RemoveProductDefault) Code

func (o *RemoveProductDefault) Code() int

Code gets the status code for the remove product default response

func (*RemoveProductDefault) Error

func (o *RemoveProductDefault) Error() string

func (*RemoveProductDefault) GetPayload

func (o *RemoveProductDefault) GetPayload() *models.RPCStatus

type RemoveProductOK

type RemoveProductOK struct {
	Payload models.StorespbRemoveProductResponse
}
RemoveProductOK describes a response with status code 200, with default header values.

A successful response.

func NewRemoveProductOK

func NewRemoveProductOK() *RemoveProductOK

NewRemoveProductOK creates a RemoveProductOK with default headers values

func (*RemoveProductOK) Error

func (o *RemoveProductOK) Error() string

func (*RemoveProductOK) GetPayload

type RemoveProductParams

type RemoveProductParams struct {

	// ID.
	ID string

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

RemoveProductParams contains all the parameters to send to the API endpoint

for the remove product operation.

Typically these are written to a http.Request.

func NewRemoveProductParams

func NewRemoveProductParams() *RemoveProductParams

NewRemoveProductParams creates a new RemoveProductParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRemoveProductParamsWithContext

func NewRemoveProductParamsWithContext(ctx context.Context) *RemoveProductParams

NewRemoveProductParamsWithContext creates a new RemoveProductParams object with the ability to set a context for a request.

func NewRemoveProductParamsWithHTTPClient

func NewRemoveProductParamsWithHTTPClient(client *http.Client) *RemoveProductParams

NewRemoveProductParamsWithHTTPClient creates a new RemoveProductParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveProductParamsWithTimeout

func NewRemoveProductParamsWithTimeout(timeout time.Duration) *RemoveProductParams

NewRemoveProductParamsWithTimeout creates a new RemoveProductParams object with the ability to set a timeout on a request.

func (*RemoveProductParams) SetContext

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

SetContext adds the context to the remove product params

func (*RemoveProductParams) SetDefaults

func (o *RemoveProductParams) SetDefaults()

SetDefaults hydrates default values in the remove product params (not the query body).

All values with no default are reset to their zero value.

func (*RemoveProductParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove product params

func (*RemoveProductParams) SetID

func (o *RemoveProductParams) SetID(id string)

SetID adds the id to the remove product params

func (*RemoveProductParams) SetTimeout

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

SetTimeout adds the timeout to the remove product params

func (*RemoveProductParams) WithContext

WithContext adds the context to the remove product params

func (*RemoveProductParams) WithDefaults

func (o *RemoveProductParams) WithDefaults() *RemoveProductParams

WithDefaults hydrates default values in the remove product params (not the query body).

All values with no default are reset to their zero value.

func (*RemoveProductParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove product params

func (*RemoveProductParams) WithID

WithID adds the id to the remove product params

func (*RemoveProductParams) WithTimeout

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

WithTimeout adds the timeout to the remove product params

func (*RemoveProductParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RemoveProductReader

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

RemoveProductReader is a Reader for the RemoveProduct structure.

func (*RemoveProductReader) ReadResponse

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