Documentation
¶
Index ¶
- type AddProductDefault
- type AddProductOK
- 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) GetStoreProduct(params *GetStoreProductParams, opts ...ClientOption) (*GetStoreProductOK, 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
- type DecreaseProductPriceOK
- 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
- type GetProductOK
- 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 GetStoreProductDefault
- type GetStoreProductOK
- type GetStoreProductParams
- func NewGetStoreProductParams() *GetStoreProductParams
- func NewGetStoreProductParamsWithContext(ctx context.Context) *GetStoreProductParams
- func NewGetStoreProductParamsWithHTTPClient(client *http.Client) *GetStoreProductParams
- func NewGetStoreProductParamsWithTimeout(timeout time.Duration) *GetStoreProductParams
- func (o *GetStoreProductParams) SetContext(ctx context.Context)
- func (o *GetStoreProductParams) SetDefaults()
- func (o *GetStoreProductParams) SetHTTPClient(client *http.Client)
- func (o *GetStoreProductParams) SetStoreID(storeID string)
- func (o *GetStoreProductParams) SetTimeout(timeout time.Duration)
- func (o *GetStoreProductParams) WithContext(ctx context.Context) *GetStoreProductParams
- func (o *GetStoreProductParams) WithDefaults() *GetStoreProductParams
- func (o *GetStoreProductParams) WithHTTPClient(client *http.Client) *GetStoreProductParams
- func (o *GetStoreProductParams) WithStoreID(storeID string) *GetStoreProductParams
- func (o *GetStoreProductParams) WithTimeout(timeout time.Duration) *GetStoreProductParams
- func (o *GetStoreProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStoreProductReader
- type IncreaseProductPriceDefault
- type IncreaseProductPriceOK
- 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
- type RebrandProductOK
- 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
- type RemoveProductOK
- 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
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
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) 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 (o *DecreaseProductPriceDefault) Error() string
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 ¶
func (o *DecreaseProductPriceOK) GetPayload() models.StorespbDecreaseProductPriceResponse
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
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
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 ¶
func (o *GetStoreProductOK) GetPayload() *models.StorespbGetCatalogResponse
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 ¶
func (o *GetStoreProductParams) WithContext(ctx context.Context) *GetStoreProductParams
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 (o *IncreaseProductPriceDefault) Error() string
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 ¶
func (o *IncreaseProductPriceOK) GetPayload() models.StorespbIncreaseProductPriceResponse
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
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
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
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
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_product_parameters.go
- get_store_product_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