Documentation
¶
Index ¶
- type AddProductDefault
- func (o *AddProductDefault) Code() int
- func (o *AddProductDefault) Error() string
- func (o *AddProductDefault) GetPayload() *models.RPCStatus
- func (o *AddProductDefault) IsClientError() bool
- func (o *AddProductDefault) IsCode(code int) bool
- func (o *AddProductDefault) IsRedirect() bool
- func (o *AddProductDefault) IsServerError() bool
- func (o *AddProductDefault) IsSuccess() bool
- func (o *AddProductDefault) String() string
- type AddProductOK
- func (o *AddProductOK) Error() string
- func (o *AddProductOK) GetPayload() *models.StorespbAddProductResponse
- func (o *AddProductOK) IsClientError() bool
- func (o *AddProductOK) IsCode(code int) bool
- func (o *AddProductOK) IsRedirect() bool
- func (o *AddProductOK) IsServerError() bool
- func (o *AddProductOK) IsSuccess() bool
- func (o *AddProductOK) String() string
- type AddProductParams
- func (o *AddProductParams) SetBody(body *models.AddProductParamsBody)
- func (o *AddProductParams) SetContext(ctx context.Context)
- func (o *AddProductParams) SetDefaults()
- func (o *AddProductParams) SetHTTPClient(client *http.Client)
- func (o *AddProductParams) SetStoreID(storeID string)
- func (o *AddProductParams) SetTimeout(timeout time.Duration)
- func (o *AddProductParams) WithBody(body *models.AddProductParamsBody) *AddProductParams
- func (o *AddProductParams) WithContext(ctx context.Context) *AddProductParams
- func (o *AddProductParams) WithDefaults() *AddProductParams
- func (o *AddProductParams) WithHTTPClient(client *http.Client) *AddProductParams
- func (o *AddProductParams) WithStoreID(storeID string) *AddProductParams
- func (o *AddProductParams) WithTimeout(timeout time.Duration) *AddProductParams
- func (o *AddProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddProductReader
- type Client
- func (a *Client) AddProduct(params *AddProductParams, opts ...ClientOption) (*AddProductOK, error)
- func (a *Client) DecreaseProductPrice(params *DecreaseProductPriceParams, opts ...ClientOption) (*DecreaseProductPriceOK, error)
- func (a *Client) GetProduct(params *GetProductParams, opts ...ClientOption) (*GetProductOK, error)
- func (a *Client) GetStoreProducts(params *GetStoreProductsParams, opts ...ClientOption) (*GetStoreProductsOK, error)
- func (a *Client) IncreaseProductPrice(params *IncreaseProductPriceParams, opts ...ClientOption) (*IncreaseProductPriceOK, error)
- func (a *Client) RebrandProduct(params *RebrandProductParams, opts ...ClientOption) (*RebrandProductOK, error)
- func (a *Client) RemoveProduct(params *RemoveProductParams, opts ...ClientOption) (*RemoveProductOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DecreaseProductPriceDefault
- func (o *DecreaseProductPriceDefault) Code() int
- func (o *DecreaseProductPriceDefault) Error() string
- func (o *DecreaseProductPriceDefault) GetPayload() *models.RPCStatus
- func (o *DecreaseProductPriceDefault) IsClientError() bool
- func (o *DecreaseProductPriceDefault) IsCode(code int) bool
- func (o *DecreaseProductPriceDefault) IsRedirect() bool
- func (o *DecreaseProductPriceDefault) IsServerError() bool
- func (o *DecreaseProductPriceDefault) IsSuccess() bool
- func (o *DecreaseProductPriceDefault) String() string
- type DecreaseProductPriceOK
- func (o *DecreaseProductPriceOK) Error() string
- func (o *DecreaseProductPriceOK) GetPayload() models.StorespbDecreaseProductPriceResponse
- func (o *DecreaseProductPriceOK) IsClientError() bool
- func (o *DecreaseProductPriceOK) IsCode(code int) bool
- func (o *DecreaseProductPriceOK) IsRedirect() bool
- func (o *DecreaseProductPriceOK) IsServerError() bool
- func (o *DecreaseProductPriceOK) IsSuccess() bool
- func (o *DecreaseProductPriceOK) String() string
- type DecreaseProductPriceParams
- func NewDecreaseProductPriceParams() *DecreaseProductPriceParams
- func NewDecreaseProductPriceParamsWithContext(ctx context.Context) *DecreaseProductPriceParams
- func NewDecreaseProductPriceParamsWithHTTPClient(client *http.Client) *DecreaseProductPriceParams
- func NewDecreaseProductPriceParamsWithTimeout(timeout time.Duration) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) SetBody(body *models.DecreaseProductPriceParamsBody)
- func (o *DecreaseProductPriceParams) SetContext(ctx context.Context)
- func (o *DecreaseProductPriceParams) SetDefaults()
- func (o *DecreaseProductPriceParams) SetHTTPClient(client *http.Client)
- func (o *DecreaseProductPriceParams) SetID(id string)
- func (o *DecreaseProductPriceParams) SetTimeout(timeout time.Duration)
- func (o *DecreaseProductPriceParams) WithBody(body *models.DecreaseProductPriceParamsBody) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WithContext(ctx context.Context) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WithDefaults() *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WithHTTPClient(client *http.Client) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WithID(id string) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WithTimeout(timeout time.Duration) *DecreaseProductPriceParams
- func (o *DecreaseProductPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DecreaseProductPriceReader
- type GetProductDefault
- func (o *GetProductDefault) Code() int
- func (o *GetProductDefault) Error() string
- func (o *GetProductDefault) GetPayload() *models.RPCStatus
- func (o *GetProductDefault) IsClientError() bool
- func (o *GetProductDefault) IsCode(code int) bool
- func (o *GetProductDefault) IsRedirect() bool
- func (o *GetProductDefault) IsServerError() bool
- func (o *GetProductDefault) IsSuccess() bool
- func (o *GetProductDefault) String() string
- type GetProductOK
- func (o *GetProductOK) Error() string
- func (o *GetProductOK) GetPayload() *models.StorespbGetProductResponse
- func (o *GetProductOK) IsClientError() bool
- func (o *GetProductOK) IsCode(code int) bool
- func (o *GetProductOK) IsRedirect() bool
- func (o *GetProductOK) IsServerError() bool
- func (o *GetProductOK) IsSuccess() bool
- func (o *GetProductOK) String() string
- type GetProductParams
- func (o *GetProductParams) SetContext(ctx context.Context)
- func (o *GetProductParams) SetDefaults()
- func (o *GetProductParams) SetHTTPClient(client *http.Client)
- func (o *GetProductParams) SetID(id string)
- func (o *GetProductParams) SetTimeout(timeout time.Duration)
- func (o *GetProductParams) WithContext(ctx context.Context) *GetProductParams
- func (o *GetProductParams) WithDefaults() *GetProductParams
- func (o *GetProductParams) WithHTTPClient(client *http.Client) *GetProductParams
- func (o *GetProductParams) WithID(id string) *GetProductParams
- func (o *GetProductParams) WithTimeout(timeout time.Duration) *GetProductParams
- func (o *GetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProductReader
- type GetStoreProductsDefault
- func (o *GetStoreProductsDefault) Code() int
- func (o *GetStoreProductsDefault) Error() string
- func (o *GetStoreProductsDefault) GetPayload() *models.RPCStatus
- func (o *GetStoreProductsDefault) IsClientError() bool
- func (o *GetStoreProductsDefault) IsCode(code int) bool
- func (o *GetStoreProductsDefault) IsRedirect() bool
- func (o *GetStoreProductsDefault) IsServerError() bool
- func (o *GetStoreProductsDefault) IsSuccess() bool
- func (o *GetStoreProductsDefault) String() string
- type GetStoreProductsOK
- func (o *GetStoreProductsOK) Error() string
- func (o *GetStoreProductsOK) GetPayload() *models.StorespbGetCatalogResponse
- func (o *GetStoreProductsOK) IsClientError() bool
- func (o *GetStoreProductsOK) IsCode(code int) bool
- func (o *GetStoreProductsOK) IsRedirect() bool
- func (o *GetStoreProductsOK) IsServerError() bool
- func (o *GetStoreProductsOK) IsSuccess() bool
- func (o *GetStoreProductsOK) String() string
- type GetStoreProductsParams
- func NewGetStoreProductsParams() *GetStoreProductsParams
- func NewGetStoreProductsParamsWithContext(ctx context.Context) *GetStoreProductsParams
- func NewGetStoreProductsParamsWithHTTPClient(client *http.Client) *GetStoreProductsParams
- func NewGetStoreProductsParamsWithTimeout(timeout time.Duration) *GetStoreProductsParams
- func (o *GetStoreProductsParams) SetContext(ctx context.Context)
- func (o *GetStoreProductsParams) SetDefaults()
- func (o *GetStoreProductsParams) SetHTTPClient(client *http.Client)
- func (o *GetStoreProductsParams) SetStoreID(storeID string)
- func (o *GetStoreProductsParams) SetTimeout(timeout time.Duration)
- func (o *GetStoreProductsParams) WithContext(ctx context.Context) *GetStoreProductsParams
- func (o *GetStoreProductsParams) WithDefaults() *GetStoreProductsParams
- func (o *GetStoreProductsParams) WithHTTPClient(client *http.Client) *GetStoreProductsParams
- func (o *GetStoreProductsParams) WithStoreID(storeID string) *GetStoreProductsParams
- func (o *GetStoreProductsParams) WithTimeout(timeout time.Duration) *GetStoreProductsParams
- func (o *GetStoreProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStoreProductsReader
- type IncreaseProductPriceDefault
- func (o *IncreaseProductPriceDefault) Code() int
- func (o *IncreaseProductPriceDefault) Error() string
- func (o *IncreaseProductPriceDefault) GetPayload() *models.RPCStatus
- func (o *IncreaseProductPriceDefault) IsClientError() bool
- func (o *IncreaseProductPriceDefault) IsCode(code int) bool
- func (o *IncreaseProductPriceDefault) IsRedirect() bool
- func (o *IncreaseProductPriceDefault) IsServerError() bool
- func (o *IncreaseProductPriceDefault) IsSuccess() bool
- func (o *IncreaseProductPriceDefault) String() string
- type IncreaseProductPriceOK
- func (o *IncreaseProductPriceOK) Error() string
- func (o *IncreaseProductPriceOK) GetPayload() models.StorespbIncreaseProductPriceResponse
- func (o *IncreaseProductPriceOK) IsClientError() bool
- func (o *IncreaseProductPriceOK) IsCode(code int) bool
- func (o *IncreaseProductPriceOK) IsRedirect() bool
- func (o *IncreaseProductPriceOK) IsServerError() bool
- func (o *IncreaseProductPriceOK) IsSuccess() bool
- func (o *IncreaseProductPriceOK) String() string
- type IncreaseProductPriceParams
- func NewIncreaseProductPriceParams() *IncreaseProductPriceParams
- func NewIncreaseProductPriceParamsWithContext(ctx context.Context) *IncreaseProductPriceParams
- func NewIncreaseProductPriceParamsWithHTTPClient(client *http.Client) *IncreaseProductPriceParams
- func NewIncreaseProductPriceParamsWithTimeout(timeout time.Duration) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) SetBody(body *models.IncreaseProductPriceParamsBody)
- func (o *IncreaseProductPriceParams) SetContext(ctx context.Context)
- func (o *IncreaseProductPriceParams) SetDefaults()
- func (o *IncreaseProductPriceParams) SetHTTPClient(client *http.Client)
- func (o *IncreaseProductPriceParams) SetID(id string)
- func (o *IncreaseProductPriceParams) SetTimeout(timeout time.Duration)
- func (o *IncreaseProductPriceParams) WithBody(body *models.IncreaseProductPriceParamsBody) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WithContext(ctx context.Context) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WithDefaults() *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WithHTTPClient(client *http.Client) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WithID(id string) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WithTimeout(timeout time.Duration) *IncreaseProductPriceParams
- func (o *IncreaseProductPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IncreaseProductPriceReader
- type RebrandProductDefault
- func (o *RebrandProductDefault) Code() int
- func (o *RebrandProductDefault) Error() string
- func (o *RebrandProductDefault) GetPayload() *models.RPCStatus
- func (o *RebrandProductDefault) IsClientError() bool
- func (o *RebrandProductDefault) IsCode(code int) bool
- func (o *RebrandProductDefault) IsRedirect() bool
- func (o *RebrandProductDefault) IsServerError() bool
- func (o *RebrandProductDefault) IsSuccess() bool
- func (o *RebrandProductDefault) String() string
- type RebrandProductOK
- func (o *RebrandProductOK) Error() string
- func (o *RebrandProductOK) GetPayload() models.StorespbRebrandProductResponse
- func (o *RebrandProductOK) IsClientError() bool
- func (o *RebrandProductOK) IsCode(code int) bool
- func (o *RebrandProductOK) IsRedirect() bool
- func (o *RebrandProductOK) IsServerError() bool
- func (o *RebrandProductOK) IsSuccess() bool
- func (o *RebrandProductOK) String() string
- type RebrandProductParams
- func NewRebrandProductParams() *RebrandProductParams
- func NewRebrandProductParamsWithContext(ctx context.Context) *RebrandProductParams
- func NewRebrandProductParamsWithHTTPClient(client *http.Client) *RebrandProductParams
- func NewRebrandProductParamsWithTimeout(timeout time.Duration) *RebrandProductParams
- func (o *RebrandProductParams) SetBody(body *models.RebrandProductParamsBody)
- func (o *RebrandProductParams) SetContext(ctx context.Context)
- func (o *RebrandProductParams) SetDefaults()
- func (o *RebrandProductParams) SetHTTPClient(client *http.Client)
- func (o *RebrandProductParams) SetID(id string)
- func (o *RebrandProductParams) SetTimeout(timeout time.Duration)
- func (o *RebrandProductParams) WithBody(body *models.RebrandProductParamsBody) *RebrandProductParams
- func (o *RebrandProductParams) WithContext(ctx context.Context) *RebrandProductParams
- func (o *RebrandProductParams) WithDefaults() *RebrandProductParams
- func (o *RebrandProductParams) WithHTTPClient(client *http.Client) *RebrandProductParams
- func (o *RebrandProductParams) WithID(id string) *RebrandProductParams
- func (o *RebrandProductParams) WithTimeout(timeout time.Duration) *RebrandProductParams
- func (o *RebrandProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RebrandProductReader
- type RemoveProductDefault
- func (o *RemoveProductDefault) Code() int
- func (o *RemoveProductDefault) Error() string
- func (o *RemoveProductDefault) GetPayload() *models.RPCStatus
- func (o *RemoveProductDefault) IsClientError() bool
- func (o *RemoveProductDefault) IsCode(code int) bool
- func (o *RemoveProductDefault) IsRedirect() bool
- func (o *RemoveProductDefault) IsServerError() bool
- func (o *RemoveProductDefault) IsSuccess() bool
- func (o *RemoveProductDefault) String() string
- type RemoveProductOK
- func (o *RemoveProductOK) Error() string
- func (o *RemoveProductOK) GetPayload() models.StorespbRemoveProductResponse
- func (o *RemoveProductOK) IsClientError() bool
- func (o *RemoveProductOK) IsCode(code int) bool
- func (o *RemoveProductOK) IsRedirect() bool
- func (o *RemoveProductOK) IsServerError() bool
- func (o *RemoveProductOK) IsSuccess() bool
- func (o *RemoveProductOK) String() string
- type RemoveProductParams
- func (o *RemoveProductParams) SetContext(ctx context.Context)
- func (o *RemoveProductParams) SetDefaults()
- func (o *RemoveProductParams) SetHTTPClient(client *http.Client)
- func (o *RemoveProductParams) SetID(id string)
- func (o *RemoveProductParams) SetTimeout(timeout time.Duration)
- func (o *RemoveProductParams) WithContext(ctx context.Context) *RemoveProductParams
- func (o *RemoveProductParams) WithDefaults() *RemoveProductParams
- func (o *RemoveProductParams) WithHTTPClient(client *http.Client) *RemoveProductParams
- func (o *RemoveProductParams) WithID(id string) *RemoveProductParams
- func (o *RemoveProductParams) WithTimeout(timeout time.Duration) *RemoveProductParams
- func (o *RemoveProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveProductReader
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
func (*AddProductDefault) IsClientError ¶
func (o *AddProductDefault) IsClientError() bool
IsClientError returns true when this add product default response has a 4xx status code
func (*AddProductDefault) IsCode ¶
func (o *AddProductDefault) IsCode(code int) bool
IsCode returns true when this add product default response a status code equal to that given
func (*AddProductDefault) IsRedirect ¶
func (o *AddProductDefault) IsRedirect() bool
IsRedirect returns true when this add product default response has a 3xx status code
func (*AddProductDefault) IsServerError ¶
func (o *AddProductDefault) IsServerError() bool
IsServerError returns true when this add product default response has a 5xx status code
func (*AddProductDefault) IsSuccess ¶
func (o *AddProductDefault) IsSuccess() bool
IsSuccess returns true when this add product default response has a 2xx status code
func (*AddProductDefault) String ¶
func (o *AddProductDefault) String() string
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 ¶
func (o *AddProductOK) GetPayload() *models.StorespbAddProductResponse
func (*AddProductOK) IsClientError ¶
func (o *AddProductOK) IsClientError() bool
IsClientError returns true when this add product o k response has a 4xx status code
func (*AddProductOK) IsCode ¶
func (o *AddProductOK) IsCode(code int) bool
IsCode returns true when this add product o k response a status code equal to that given
func (*AddProductOK) IsRedirect ¶
func (o *AddProductOK) IsRedirect() bool
IsRedirect returns true when this add product o k response has a 3xx status code
func (*AddProductOK) IsServerError ¶
func (o *AddProductOK) IsServerError() bool
IsServerError returns true when this add product o k response has a 5xx status code
func (*AddProductOK) IsSuccess ¶
func (o *AddProductOK) IsSuccess() bool
IsSuccess returns true when this add product o k response has a 2xx status code
func (*AddProductOK) String ¶
func (o *AddProductOK) String() string
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 ¶
func (o *AddProductParams) WithBody(body *models.AddProductParamsBody) *AddProductParams
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) GetStoreProducts ¶
func (a *Client) GetStoreProducts(params *GetStoreProductsParams, opts ...ClientOption) (*GetStoreProductsOK, error)
GetStoreProducts 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) GetStoreProducts(params *GetStoreProductsParams, opts ...ClientOption) (*GetStoreProductsOK, 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 (o *DecreaseProductPriceDefault) Error() string
func (*DecreaseProductPriceDefault) GetPayload ¶
func (o *DecreaseProductPriceDefault) GetPayload() *models.RPCStatus
func (*DecreaseProductPriceDefault) IsClientError ¶
func (o *DecreaseProductPriceDefault) IsClientError() bool
IsClientError returns true when this decrease product price default response has a 4xx status code
func (*DecreaseProductPriceDefault) IsCode ¶
func (o *DecreaseProductPriceDefault) IsCode(code int) bool
IsCode returns true when this decrease product price default response a status code equal to that given
func (*DecreaseProductPriceDefault) IsRedirect ¶
func (o *DecreaseProductPriceDefault) IsRedirect() bool
IsRedirect returns true when this decrease product price default response has a 3xx status code
func (*DecreaseProductPriceDefault) IsServerError ¶
func (o *DecreaseProductPriceDefault) IsServerError() bool
IsServerError returns true when this decrease product price default response has a 5xx status code
func (*DecreaseProductPriceDefault) IsSuccess ¶
func (o *DecreaseProductPriceDefault) IsSuccess() bool
IsSuccess returns true when this decrease product price default response has a 2xx status code
func (*DecreaseProductPriceDefault) String ¶
func (o *DecreaseProductPriceDefault) String() string
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 ¶
func (o *DecreaseProductPriceOK) GetPayload() models.StorespbDecreaseProductPriceResponse
func (*DecreaseProductPriceOK) IsClientError ¶
func (o *DecreaseProductPriceOK) IsClientError() bool
IsClientError returns true when this decrease product price o k response has a 4xx status code
func (*DecreaseProductPriceOK) IsCode ¶
func (o *DecreaseProductPriceOK) IsCode(code int) bool
IsCode returns true when this decrease product price o k response a status code equal to that given
func (*DecreaseProductPriceOK) IsRedirect ¶
func (o *DecreaseProductPriceOK) IsRedirect() bool
IsRedirect returns true when this decrease product price o k response has a 3xx status code
func (*DecreaseProductPriceOK) IsServerError ¶
func (o *DecreaseProductPriceOK) IsServerError() bool
IsServerError returns true when this decrease product price o k response has a 5xx status code
func (*DecreaseProductPriceOK) IsSuccess ¶
func (o *DecreaseProductPriceOK) IsSuccess() bool
IsSuccess returns true when this decrease product price o k response has a 2xx status code
func (*DecreaseProductPriceOK) String ¶
func (o *DecreaseProductPriceOK) String() string
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 ¶
func (o *DecreaseProductPriceParams) SetBody(body *models.DecreaseProductPriceParamsBody)
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 ¶
func (o *DecreaseProductPriceParams) WithBody(body *models.DecreaseProductPriceParamsBody) *DecreaseProductPriceParams
WithBody adds the body to the decrease product price params
func (*DecreaseProductPriceParams) WithContext ¶
func (o *DecreaseProductPriceParams) WithContext(ctx context.Context) *DecreaseProductPriceParams
WithContext adds the context to the decrease product price params
func (*DecreaseProductPriceParams) WithDefaults ¶
func (o *DecreaseProductPriceParams) WithDefaults() *DecreaseProductPriceParams
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 ¶
func (o *DecreaseProductPriceParams) WithHTTPClient(client *http.Client) *DecreaseProductPriceParams
WithHTTPClient adds the HTTPClient to the decrease product price params
func (*DecreaseProductPriceParams) WithID ¶
func (o *DecreaseProductPriceParams) WithID(id string) *DecreaseProductPriceParams
WithID adds the id to the decrease product price params
func (*DecreaseProductPriceParams) WithTimeout ¶
func (o *DecreaseProductPriceParams) WithTimeout(timeout time.Duration) *DecreaseProductPriceParams
WithTimeout adds the timeout to the decrease product price params
func (*DecreaseProductPriceParams) WriteToRequest ¶
func (o *DecreaseProductPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (*GetProductDefault) IsClientError ¶
func (o *GetProductDefault) IsClientError() bool
IsClientError returns true when this get product default response has a 4xx status code
func (*GetProductDefault) IsCode ¶
func (o *GetProductDefault) IsCode(code int) bool
IsCode returns true when this get product default response a status code equal to that given
func (*GetProductDefault) IsRedirect ¶
func (o *GetProductDefault) IsRedirect() bool
IsRedirect returns true when this get product default response has a 3xx status code
func (*GetProductDefault) IsServerError ¶
func (o *GetProductDefault) IsServerError() bool
IsServerError returns true when this get product default response has a 5xx status code
func (*GetProductDefault) IsSuccess ¶
func (o *GetProductDefault) IsSuccess() bool
IsSuccess returns true when this get product default response has a 2xx status code
func (*GetProductDefault) String ¶
func (o *GetProductDefault) String() string
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 ¶
func (o *GetProductOK) GetPayload() *models.StorespbGetProductResponse
func (*GetProductOK) IsClientError ¶
func (o *GetProductOK) IsClientError() bool
IsClientError returns true when this get product o k response has a 4xx status code
func (*GetProductOK) IsCode ¶
func (o *GetProductOK) IsCode(code int) bool
IsCode returns true when this get product o k response a status code equal to that given
func (*GetProductOK) IsRedirect ¶
func (o *GetProductOK) IsRedirect() bool
IsRedirect returns true when this get product o k response has a 3xx status code
func (*GetProductOK) IsServerError ¶
func (o *GetProductOK) IsServerError() bool
IsServerError returns true when this get product o k response has a 5xx status code
func (*GetProductOK) IsSuccess ¶
func (o *GetProductOK) IsSuccess() bool
IsSuccess returns true when this get product o k response has a 2xx status code
func (*GetProductOK) String ¶
func (o *GetProductOK) String() string
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 GetStoreProductsDefault ¶
type GetStoreProductsDefault struct { Payload *models.RPCStatus // contains filtered or unexported fields }
GetStoreProductsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetStoreProductsDefault ¶
func NewGetStoreProductsDefault(code int) *GetStoreProductsDefault
NewGetStoreProductsDefault creates a GetStoreProductsDefault with default headers values
func (*GetStoreProductsDefault) Code ¶
func (o *GetStoreProductsDefault) Code() int
Code gets the status code for the get store products default response
func (*GetStoreProductsDefault) Error ¶
func (o *GetStoreProductsDefault) Error() string
func (*GetStoreProductsDefault) GetPayload ¶
func (o *GetStoreProductsDefault) GetPayload() *models.RPCStatus
func (*GetStoreProductsDefault) IsClientError ¶
func (o *GetStoreProductsDefault) IsClientError() bool
IsClientError returns true when this get store products default response has a 4xx status code
func (*GetStoreProductsDefault) IsCode ¶
func (o *GetStoreProductsDefault) IsCode(code int) bool
IsCode returns true when this get store products default response a status code equal to that given
func (*GetStoreProductsDefault) IsRedirect ¶
func (o *GetStoreProductsDefault) IsRedirect() bool
IsRedirect returns true when this get store products default response has a 3xx status code
func (*GetStoreProductsDefault) IsServerError ¶
func (o *GetStoreProductsDefault) IsServerError() bool
IsServerError returns true when this get store products default response has a 5xx status code
func (*GetStoreProductsDefault) IsSuccess ¶
func (o *GetStoreProductsDefault) IsSuccess() bool
IsSuccess returns true when this get store products default response has a 2xx status code
func (*GetStoreProductsDefault) String ¶
func (o *GetStoreProductsDefault) String() string
type GetStoreProductsOK ¶
type GetStoreProductsOK struct {
Payload *models.StorespbGetCatalogResponse
}
GetStoreProductsOK describes a response with status code 200, with default header values.
A successful response.
func NewGetStoreProductsOK ¶
func NewGetStoreProductsOK() *GetStoreProductsOK
NewGetStoreProductsOK creates a GetStoreProductsOK with default headers values
func (*GetStoreProductsOK) Error ¶
func (o *GetStoreProductsOK) Error() string
func (*GetStoreProductsOK) GetPayload ¶
func (o *GetStoreProductsOK) GetPayload() *models.StorespbGetCatalogResponse
func (*GetStoreProductsOK) IsClientError ¶
func (o *GetStoreProductsOK) IsClientError() bool
IsClientError returns true when this get store products o k response has a 4xx status code
func (*GetStoreProductsOK) IsCode ¶
func (o *GetStoreProductsOK) IsCode(code int) bool
IsCode returns true when this get store products o k response a status code equal to that given
func (*GetStoreProductsOK) IsRedirect ¶
func (o *GetStoreProductsOK) IsRedirect() bool
IsRedirect returns true when this get store products o k response has a 3xx status code
func (*GetStoreProductsOK) IsServerError ¶
func (o *GetStoreProductsOK) IsServerError() bool
IsServerError returns true when this get store products o k response has a 5xx status code
func (*GetStoreProductsOK) IsSuccess ¶
func (o *GetStoreProductsOK) IsSuccess() bool
IsSuccess returns true when this get store products o k response has a 2xx status code
func (*GetStoreProductsOK) String ¶
func (o *GetStoreProductsOK) String() string
type GetStoreProductsParams ¶
type GetStoreProductsParams struct { // StoreID. StoreID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStoreProductsParams contains all the parameters to send to the API endpoint
for the get store products operation. Typically these are written to a http.Request.
func NewGetStoreProductsParams ¶
func NewGetStoreProductsParams() *GetStoreProductsParams
NewGetStoreProductsParams creates a new GetStoreProductsParams 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 NewGetStoreProductsParamsWithContext ¶
func NewGetStoreProductsParamsWithContext(ctx context.Context) *GetStoreProductsParams
NewGetStoreProductsParamsWithContext creates a new GetStoreProductsParams object with the ability to set a context for a request.
func NewGetStoreProductsParamsWithHTTPClient ¶
func NewGetStoreProductsParamsWithHTTPClient(client *http.Client) *GetStoreProductsParams
NewGetStoreProductsParamsWithHTTPClient creates a new GetStoreProductsParams object with the ability to set a custom HTTPClient for a request.
func NewGetStoreProductsParamsWithTimeout ¶
func NewGetStoreProductsParamsWithTimeout(timeout time.Duration) *GetStoreProductsParams
NewGetStoreProductsParamsWithTimeout creates a new GetStoreProductsParams object with the ability to set a timeout on a request.
func (*GetStoreProductsParams) SetContext ¶
func (o *GetStoreProductsParams) SetContext(ctx context.Context)
SetContext adds the context to the get store products params
func (*GetStoreProductsParams) SetDefaults ¶
func (o *GetStoreProductsParams) SetDefaults()
SetDefaults hydrates default values in the get store products params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoreProductsParams) SetHTTPClient ¶
func (o *GetStoreProductsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get store products params
func (*GetStoreProductsParams) SetStoreID ¶
func (o *GetStoreProductsParams) SetStoreID(storeID string)
SetStoreID adds the storeId to the get store products params
func (*GetStoreProductsParams) SetTimeout ¶
func (o *GetStoreProductsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get store products params
func (*GetStoreProductsParams) WithContext ¶
func (o *GetStoreProductsParams) WithContext(ctx context.Context) *GetStoreProductsParams
WithContext adds the context to the get store products params
func (*GetStoreProductsParams) WithDefaults ¶
func (o *GetStoreProductsParams) WithDefaults() *GetStoreProductsParams
WithDefaults hydrates default values in the get store products params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoreProductsParams) WithHTTPClient ¶
func (o *GetStoreProductsParams) WithHTTPClient(client *http.Client) *GetStoreProductsParams
WithHTTPClient adds the HTTPClient to the get store products params
func (*GetStoreProductsParams) WithStoreID ¶
func (o *GetStoreProductsParams) WithStoreID(storeID string) *GetStoreProductsParams
WithStoreID adds the storeID to the get store products params
func (*GetStoreProductsParams) WithTimeout ¶
func (o *GetStoreProductsParams) WithTimeout(timeout time.Duration) *GetStoreProductsParams
WithTimeout adds the timeout to the get store products params
func (*GetStoreProductsParams) WriteToRequest ¶
func (o *GetStoreProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStoreProductsReader ¶
type GetStoreProductsReader struct {
// contains filtered or unexported fields
}
GetStoreProductsReader is a Reader for the GetStoreProducts structure.
func (*GetStoreProductsReader) ReadResponse ¶
func (o *GetStoreProductsReader) 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 (o *IncreaseProductPriceDefault) Error() string
func (*IncreaseProductPriceDefault) GetPayload ¶
func (o *IncreaseProductPriceDefault) GetPayload() *models.RPCStatus
func (*IncreaseProductPriceDefault) IsClientError ¶
func (o *IncreaseProductPriceDefault) IsClientError() bool
IsClientError returns true when this increase product price default response has a 4xx status code
func (*IncreaseProductPriceDefault) IsCode ¶
func (o *IncreaseProductPriceDefault) IsCode(code int) bool
IsCode returns true when this increase product price default response a status code equal to that given
func (*IncreaseProductPriceDefault) IsRedirect ¶
func (o *IncreaseProductPriceDefault) IsRedirect() bool
IsRedirect returns true when this increase product price default response has a 3xx status code
func (*IncreaseProductPriceDefault) IsServerError ¶
func (o *IncreaseProductPriceDefault) IsServerError() bool
IsServerError returns true when this increase product price default response has a 5xx status code
func (*IncreaseProductPriceDefault) IsSuccess ¶
func (o *IncreaseProductPriceDefault) IsSuccess() bool
IsSuccess returns true when this increase product price default response has a 2xx status code
func (*IncreaseProductPriceDefault) String ¶
func (o *IncreaseProductPriceDefault) String() string
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 ¶
func (o *IncreaseProductPriceOK) GetPayload() models.StorespbIncreaseProductPriceResponse
func (*IncreaseProductPriceOK) IsClientError ¶
func (o *IncreaseProductPriceOK) IsClientError() bool
IsClientError returns true when this increase product price o k response has a 4xx status code
func (*IncreaseProductPriceOK) IsCode ¶
func (o *IncreaseProductPriceOK) IsCode(code int) bool
IsCode returns true when this increase product price o k response a status code equal to that given
func (*IncreaseProductPriceOK) IsRedirect ¶
func (o *IncreaseProductPriceOK) IsRedirect() bool
IsRedirect returns true when this increase product price o k response has a 3xx status code
func (*IncreaseProductPriceOK) IsServerError ¶
func (o *IncreaseProductPriceOK) IsServerError() bool
IsServerError returns true when this increase product price o k response has a 5xx status code
func (*IncreaseProductPriceOK) IsSuccess ¶
func (o *IncreaseProductPriceOK) IsSuccess() bool
IsSuccess returns true when this increase product price o k response has a 2xx status code
func (*IncreaseProductPriceOK) String ¶
func (o *IncreaseProductPriceOK) String() string
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 ¶
func (o *IncreaseProductPriceParams) SetBody(body *models.IncreaseProductPriceParamsBody)
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 ¶
func (o *IncreaseProductPriceParams) WithBody(body *models.IncreaseProductPriceParamsBody) *IncreaseProductPriceParams
WithBody adds the body to the increase product price params
func (*IncreaseProductPriceParams) WithContext ¶
func (o *IncreaseProductPriceParams) WithContext(ctx context.Context) *IncreaseProductPriceParams
WithContext adds the context to the increase product price params
func (*IncreaseProductPriceParams) WithDefaults ¶
func (o *IncreaseProductPriceParams) WithDefaults() *IncreaseProductPriceParams
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 ¶
func (o *IncreaseProductPriceParams) WithHTTPClient(client *http.Client) *IncreaseProductPriceParams
WithHTTPClient adds the HTTPClient to the increase product price params
func (*IncreaseProductPriceParams) WithID ¶
func (o *IncreaseProductPriceParams) WithID(id string) *IncreaseProductPriceParams
WithID adds the id to the increase product price params
func (*IncreaseProductPriceParams) WithTimeout ¶
func (o *IncreaseProductPriceParams) WithTimeout(timeout time.Duration) *IncreaseProductPriceParams
WithTimeout adds the timeout to the increase product price params
func (*IncreaseProductPriceParams) WriteToRequest ¶
func (o *IncreaseProductPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (*RebrandProductDefault) IsClientError ¶
func (o *RebrandProductDefault) IsClientError() bool
IsClientError returns true when this rebrand product default response has a 4xx status code
func (*RebrandProductDefault) IsCode ¶
func (o *RebrandProductDefault) IsCode(code int) bool
IsCode returns true when this rebrand product default response a status code equal to that given
func (*RebrandProductDefault) IsRedirect ¶
func (o *RebrandProductDefault) IsRedirect() bool
IsRedirect returns true when this rebrand product default response has a 3xx status code
func (*RebrandProductDefault) IsServerError ¶
func (o *RebrandProductDefault) IsServerError() bool
IsServerError returns true when this rebrand product default response has a 5xx status code
func (*RebrandProductDefault) IsSuccess ¶
func (o *RebrandProductDefault) IsSuccess() bool
IsSuccess returns true when this rebrand product default response has a 2xx status code
func (*RebrandProductDefault) String ¶
func (o *RebrandProductDefault) String() string
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 ¶
func (o *RebrandProductOK) GetPayload() models.StorespbRebrandProductResponse
func (*RebrandProductOK) IsClientError ¶
func (o *RebrandProductOK) IsClientError() bool
IsClientError returns true when this rebrand product o k response has a 4xx status code
func (*RebrandProductOK) IsCode ¶
func (o *RebrandProductOK) IsCode(code int) bool
IsCode returns true when this rebrand product o k response a status code equal to that given
func (*RebrandProductOK) IsRedirect ¶
func (o *RebrandProductOK) IsRedirect() bool
IsRedirect returns true when this rebrand product o k response has a 3xx status code
func (*RebrandProductOK) IsServerError ¶
func (o *RebrandProductOK) IsServerError() bool
IsServerError returns true when this rebrand product o k response has a 5xx status code
func (*RebrandProductOK) IsSuccess ¶
func (o *RebrandProductOK) IsSuccess() bool
IsSuccess returns true when this rebrand product o k response has a 2xx status code
func (*RebrandProductOK) String ¶
func (o *RebrandProductOK) String() string
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 ¶
func (o *RebrandProductParams) SetBody(body *models.RebrandProductParamsBody)
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 ¶
func (o *RebrandProductParams) WithBody(body *models.RebrandProductParamsBody) *RebrandProductParams
WithBody adds the body to the rebrand product params
func (*RebrandProductParams) WithContext ¶
func (o *RebrandProductParams) WithContext(ctx context.Context) *RebrandProductParams
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 ¶
func (o *RebrandProductParams) WithID(id string) *RebrandProductParams
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
func (*RemoveProductDefault) IsClientError ¶
func (o *RemoveProductDefault) IsClientError() bool
IsClientError returns true when this remove product default response has a 4xx status code
func (*RemoveProductDefault) IsCode ¶
func (o *RemoveProductDefault) IsCode(code int) bool
IsCode returns true when this remove product default response a status code equal to that given
func (*RemoveProductDefault) IsRedirect ¶
func (o *RemoveProductDefault) IsRedirect() bool
IsRedirect returns true when this remove product default response has a 3xx status code
func (*RemoveProductDefault) IsServerError ¶
func (o *RemoveProductDefault) IsServerError() bool
IsServerError returns true when this remove product default response has a 5xx status code
func (*RemoveProductDefault) IsSuccess ¶
func (o *RemoveProductDefault) IsSuccess() bool
IsSuccess returns true when this remove product default response has a 2xx status code
func (*RemoveProductDefault) String ¶
func (o *RemoveProductDefault) String() string
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 ¶
func (o *RemoveProductOK) GetPayload() models.StorespbRemoveProductResponse
func (*RemoveProductOK) IsClientError ¶
func (o *RemoveProductOK) IsClientError() bool
IsClientError returns true when this remove product o k response has a 4xx status code
func (*RemoveProductOK) IsCode ¶
func (o *RemoveProductOK) IsCode(code int) bool
IsCode returns true when this remove product o k response a status code equal to that given
func (*RemoveProductOK) IsRedirect ¶
func (o *RemoveProductOK) IsRedirect() bool
IsRedirect returns true when this remove product o k response has a 3xx status code
func (*RemoveProductOK) IsServerError ¶
func (o *RemoveProductOK) IsServerError() bool
IsServerError returns true when this remove product o k response has a 5xx status code
func (*RemoveProductOK) IsSuccess ¶
func (o *RemoveProductOK) IsSuccess() bool
IsSuccess returns true when this remove product o k response has a 2xx status code
func (*RemoveProductOK) String ¶
func (o *RemoveProductOK) String() string
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 ¶
func (o *RemoveProductParams) WithContext(ctx context.Context) *RemoveProductParams
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 ¶
func (o *RemoveProductParams) WithID(id string) *RemoveProductParams
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.
Source Files
¶
- add_product_parameters.go
- add_product_responses.go
- decrease_product_price_parameters.go
- decrease_product_price_responses.go
- get_product_parameters.go
- get_product_responses.go
- get_store_products_parameters.go
- get_store_products_responses.go
- increase_product_price_parameters.go
- increase_product_price_responses.go
- product_client.go
- rebrand_product_parameters.go
- rebrand_product_responses.go
- remove_product_parameters.go
- remove_product_responses.go