Documentation
¶
Index ¶
- type Client
- func (a *Client) GetRecommendations(params *GetRecommendationsParams, opts ...ClientOption) (*GetRecommendationsOK, error)
- func (a *Client) GetRecommenders(params *GetRecommendersParams, opts ...ClientOption) (*GetRecommendersOK, error)
- func (a *Client) GetZoneRecommendations(params *GetZoneRecommendationsParams, opts ...ClientOption) (*GetZoneRecommendationsOK, error)
- func (a *Client) SendAddToCart(params *SendAddToCartParams, opts ...ClientOption) (*SendAddToCartOK, error)
- func (a *Client) SendClickReco(params *SendClickRecoParams, opts ...ClientOption) (*SendClickRecoOK, error)
- func (a *Client) SendViewProduct(params *SendViewProductParams, opts ...ClientOption) (*SendViewProductOK, error)
- func (a *Client) SendViewReco(params *SendViewRecoParams, opts ...ClientOption) (*SendViewRecoOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetRecommendationsBadRequest
- type GetRecommendationsBody
- func (o *GetRecommendationsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRecommendationsBody) MarshalBinary() ([]byte, error)
- func (o *GetRecommendationsBody) UnmarshalBinary(b []byte) error
- func (o *GetRecommendationsBody) Validate(formats strfmt.Registry) error
- type GetRecommendationsNotFound
- type GetRecommendationsOK
- type GetRecommendationsParams
- func NewGetRecommendationsParams() *GetRecommendationsParams
- func NewGetRecommendationsParamsWithContext(ctx context.Context) *GetRecommendationsParams
- func NewGetRecommendationsParamsWithHTTPClient(client *http.Client) *GetRecommendationsParams
- func NewGetRecommendationsParamsWithTimeout(timeout time.Duration) *GetRecommendationsParams
- func (o *GetRecommendationsParams) SetBody(body GetRecommendationsBody)
- func (o *GetRecommendationsParams) SetContext(ctx context.Context)
- func (o *GetRecommendationsParams) SetDefaults()
- func (o *GetRecommendationsParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendationsParams) SetRecommenderName(recommenderName string)
- func (o *GetRecommendationsParams) SetSiteID(siteID string)
- func (o *GetRecommendationsParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendationsParams) SetXCqClientID(xCqClientID string)
- func (o *GetRecommendationsParams) WithBody(body GetRecommendationsBody) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithContext(ctx context.Context) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithDefaults() *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithHTTPClient(client *http.Client) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithRecommenderName(recommenderName string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithSiteID(siteID string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithTimeout(timeout time.Duration) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithXCqClientID(xCqClientID string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendationsParamsBodyCategoriesItems0
- func (o *GetRecommendationsParamsBodyCategoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRecommendationsParamsBodyCategoriesItems0) MarshalBinary() ([]byte, error)
- func (o *GetRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary(b []byte) error
- func (o *GetRecommendationsParamsBodyCategoriesItems0) Validate(formats strfmt.Registry) error
- type GetRecommendationsReader
- type GetRecommendersBadRequest
- type GetRecommendersForbidden
- type GetRecommendersOK
- type GetRecommendersParams
- func NewGetRecommendersParams() *GetRecommendersParams
- func NewGetRecommendersParamsWithContext(ctx context.Context) *GetRecommendersParams
- func NewGetRecommendersParamsWithHTTPClient(client *http.Client) *GetRecommendersParams
- func NewGetRecommendersParamsWithTimeout(timeout time.Duration) *GetRecommendersParams
- func (o *GetRecommendersParams) SetContext(ctx context.Context)
- func (o *GetRecommendersParams) SetDefaults()
- func (o *GetRecommendersParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendersParams) SetSiteID(siteID string)
- func (o *GetRecommendersParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendersParams) SetXCqClientID(xCqClientID string)
- func (o *GetRecommendersParams) WithContext(ctx context.Context) *GetRecommendersParams
- func (o *GetRecommendersParams) WithDefaults() *GetRecommendersParams
- func (o *GetRecommendersParams) WithHTTPClient(client *http.Client) *GetRecommendersParams
- func (o *GetRecommendersParams) WithSiteID(siteID string) *GetRecommendersParams
- func (o *GetRecommendersParams) WithTimeout(timeout time.Duration) *GetRecommendersParams
- func (o *GetRecommendersParams) WithXCqClientID(xCqClientID string) *GetRecommendersParams
- func (o *GetRecommendersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendersReader
- type GetZoneRecommendationsBadRequest
- type GetZoneRecommendationsBody
- func (o *GetZoneRecommendationsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetZoneRecommendationsBody) MarshalBinary() ([]byte, error)
- func (o *GetZoneRecommendationsBody) UnmarshalBinary(b []byte) error
- func (o *GetZoneRecommendationsBody) Validate(formats strfmt.Registry) error
- type GetZoneRecommendationsNotFound
- type GetZoneRecommendationsOK
- type GetZoneRecommendationsParams
- func NewGetZoneRecommendationsParams() *GetZoneRecommendationsParams
- func NewGetZoneRecommendationsParamsWithContext(ctx context.Context) *GetZoneRecommendationsParams
- func NewGetZoneRecommendationsParamsWithHTTPClient(client *http.Client) *GetZoneRecommendationsParams
- func NewGetZoneRecommendationsParamsWithTimeout(timeout time.Duration) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) SetBody(body GetZoneRecommendationsBody)
- func (o *GetZoneRecommendationsParams) SetContext(ctx context.Context)
- func (o *GetZoneRecommendationsParams) SetDefaults()
- func (o *GetZoneRecommendationsParams) SetHTTPClient(client *http.Client)
- func (o *GetZoneRecommendationsParams) SetSiteID(siteID string)
- func (o *GetZoneRecommendationsParams) SetTimeout(timeout time.Duration)
- func (o *GetZoneRecommendationsParams) SetXCqClientID(xCqClientID string)
- func (o *GetZoneRecommendationsParams) SetZoneName(zoneName string)
- func (o *GetZoneRecommendationsParams) WithBody(body GetZoneRecommendationsBody) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithContext(ctx context.Context) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithDefaults() *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithHTTPClient(client *http.Client) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithSiteID(siteID string) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithTimeout(timeout time.Duration) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithXCqClientID(xCqClientID string) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WithZoneName(zoneName string) *GetZoneRecommendationsParams
- func (o *GetZoneRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetZoneRecommendationsParamsBodyCategoriesItems0
- func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) MarshalBinary() ([]byte, error)
- func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary(b []byte) error
- func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) Validate(formats strfmt.Registry) error
- type GetZoneRecommendationsReader
- type SendAddToCartBadRequest
- type SendAddToCartBody
- type SendAddToCartOK
- type SendAddToCartParams
- func (o *SendAddToCartParams) SetBody(body SendAddToCartBody)
- func (o *SendAddToCartParams) SetContext(ctx context.Context)
- func (o *SendAddToCartParams) SetDefaults()
- func (o *SendAddToCartParams) SetHTTPClient(client *http.Client)
- func (o *SendAddToCartParams) SetSiteID(siteID string)
- func (o *SendAddToCartParams) SetTimeout(timeout time.Duration)
- func (o *SendAddToCartParams) SetXCqClientID(xCqClientID string)
- func (o *SendAddToCartParams) WithBody(body SendAddToCartBody) *SendAddToCartParams
- func (o *SendAddToCartParams) WithContext(ctx context.Context) *SendAddToCartParams
- func (o *SendAddToCartParams) WithDefaults() *SendAddToCartParams
- func (o *SendAddToCartParams) WithHTTPClient(client *http.Client) *SendAddToCartParams
- func (o *SendAddToCartParams) WithSiteID(siteID string) *SendAddToCartParams
- func (o *SendAddToCartParams) WithTimeout(timeout time.Duration) *SendAddToCartParams
- func (o *SendAddToCartParams) WithXCqClientID(xCqClientID string) *SendAddToCartParams
- func (o *SendAddToCartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendAddToCartParamsBodyProductsItems0
- func (o *SendAddToCartParamsBodyProductsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *SendAddToCartParamsBodyProductsItems0) MarshalBinary() ([]byte, error)
- func (o *SendAddToCartParamsBodyProductsItems0) UnmarshalBinary(b []byte) error
- func (o *SendAddToCartParamsBodyProductsItems0) Validate(formats strfmt.Registry) error
- type SendAddToCartReader
- type SendClickRecoBadRequest
- type SendClickRecoBody
- type SendClickRecoOK
- type SendClickRecoParams
- func (o *SendClickRecoParams) SetBody(body SendClickRecoBody)
- func (o *SendClickRecoParams) SetContext(ctx context.Context)
- func (o *SendClickRecoParams) SetDefaults()
- func (o *SendClickRecoParams) SetHTTPClient(client *http.Client)
- func (o *SendClickRecoParams) SetSiteID(siteID string)
- func (o *SendClickRecoParams) SetTimeout(timeout time.Duration)
- func (o *SendClickRecoParams) SetXCqClientID(xCqClientID string)
- func (o *SendClickRecoParams) WithBody(body SendClickRecoBody) *SendClickRecoParams
- func (o *SendClickRecoParams) WithContext(ctx context.Context) *SendClickRecoParams
- func (o *SendClickRecoParams) WithDefaults() *SendClickRecoParams
- func (o *SendClickRecoParams) WithHTTPClient(client *http.Client) *SendClickRecoParams
- func (o *SendClickRecoParams) WithSiteID(siteID string) *SendClickRecoParams
- func (o *SendClickRecoParams) WithTimeout(timeout time.Duration) *SendClickRecoParams
- func (o *SendClickRecoParams) WithXCqClientID(xCqClientID string) *SendClickRecoParams
- func (o *SendClickRecoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendClickRecoReader
- type SendViewProductBadRequest
- type SendViewProductBody
- type SendViewProductOK
- type SendViewProductParams
- func NewSendViewProductParams() *SendViewProductParams
- func NewSendViewProductParamsWithContext(ctx context.Context) *SendViewProductParams
- func NewSendViewProductParamsWithHTTPClient(client *http.Client) *SendViewProductParams
- func NewSendViewProductParamsWithTimeout(timeout time.Duration) *SendViewProductParams
- func (o *SendViewProductParams) SetBody(body SendViewProductBody)
- func (o *SendViewProductParams) SetContext(ctx context.Context)
- func (o *SendViewProductParams) SetDefaults()
- func (o *SendViewProductParams) SetHTTPClient(client *http.Client)
- func (o *SendViewProductParams) SetSiteID(siteID string)
- func (o *SendViewProductParams) SetTimeout(timeout time.Duration)
- func (o *SendViewProductParams) SetXCqClientID(xCqClientID string)
- func (o *SendViewProductParams) WithBody(body SendViewProductBody) *SendViewProductParams
- func (o *SendViewProductParams) WithContext(ctx context.Context) *SendViewProductParams
- func (o *SendViewProductParams) WithDefaults() *SendViewProductParams
- func (o *SendViewProductParams) WithHTTPClient(client *http.Client) *SendViewProductParams
- func (o *SendViewProductParams) WithSiteID(siteID string) *SendViewProductParams
- func (o *SendViewProductParams) WithTimeout(timeout time.Duration) *SendViewProductParams
- func (o *SendViewProductParams) WithXCqClientID(xCqClientID string) *SendViewProductParams
- func (o *SendViewProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendViewProductReader
- type SendViewRecoBadRequest
- type SendViewRecoBody
- type SendViewRecoOK
- type SendViewRecoParams
- func (o *SendViewRecoParams) SetBody(body SendViewRecoBody)
- func (o *SendViewRecoParams) SetContext(ctx context.Context)
- func (o *SendViewRecoParams) SetDefaults()
- func (o *SendViewRecoParams) SetHTTPClient(client *http.Client)
- func (o *SendViewRecoParams) SetSiteID(siteID string)
- func (o *SendViewRecoParams) SetTimeout(timeout time.Duration)
- func (o *SendViewRecoParams) SetXCqClientID(xCqClientID string)
- func (o *SendViewRecoParams) WithBody(body SendViewRecoBody) *SendViewRecoParams
- func (o *SendViewRecoParams) WithContext(ctx context.Context) *SendViewRecoParams
- func (o *SendViewRecoParams) WithDefaults() *SendViewRecoParams
- func (o *SendViewRecoParams) WithHTTPClient(client *http.Client) *SendViewRecoParams
- func (o *SendViewRecoParams) WithSiteID(siteID string) *SendViewRecoParams
- func (o *SendViewRecoParams) WithTimeout(timeout time.Duration) *SendViewRecoParams
- func (o *SendViewRecoParams) WithXCqClientID(xCqClientID string) *SendViewRecoParams
- func (o *SendViewRecoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendViewRecoReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) GetRecommendations ¶
func (a *Client) GetRecommendations(params *GetRecommendationsParams, opts ...ClientOption) (*GetRecommendationsOK, error)
GetRecommendations Get a set of recommendations
func (*Client) GetRecommenders ¶
func (a *Client) GetRecommenders(params *GetRecommendersParams, opts ...ClientOption) (*GetRecommendersOK, error)
GetRecommenders Get a list of recommenders that can be used in recommendation requests.
func (*Client) GetZoneRecommendations ¶
func (a *Client) GetZoneRecommendations(params *GetZoneRecommendationsParams, opts ...ClientOption) (*GetZoneRecommendationsOK, error)
GetZoneRecommendations Get a set of recommendations for a zone
func (*Client) SendAddToCart ¶
func (a *Client) SendAddToCart(params *SendAddToCartParams, opts ...ClientOption) (*SendAddToCartOK, error)
SendAddToCart Tells the Einstein engine when a user adds an item to their cart.
func (*Client) SendClickReco ¶
func (a *Client) SendClickReco(params *SendClickRecoParams, opts ...ClientOption) (*SendClickRecoOK, error)
SendClickReco Tells the Einstein engine when a user clicks on a recommendation
func (*Client) SendViewProduct ¶
func (a *Client) SendViewProduct(params *SendViewProductParams, opts ...ClientOption) (*SendViewProductOK, error)
SendViewProduct Tells the Einstein engine when a user views a product.
func (*Client) SendViewReco ¶
func (a *Client) SendViewReco(params *SendViewRecoParams, opts ...ClientOption) (*SendViewRecoOK, error)
SendViewReco Tells the Einstein engine when a user views a set of recommendations
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 { GetRecommendations(params *GetRecommendationsParams, opts ...ClientOption) (*GetRecommendationsOK, error) GetRecommenders(params *GetRecommendersParams, opts ...ClientOption) (*GetRecommendersOK, error) GetZoneRecommendations(params *GetZoneRecommendationsParams, opts ...ClientOption) (*GetZoneRecommendationsOK, error) SendAddToCart(params *SendAddToCartParams, opts ...ClientOption) (*SendAddToCartOK, error) SendClickReco(params *SendClickRecoParams, opts ...ClientOption) (*SendClickRecoOK, error) SendViewProduct(params *SendViewProductParams, opts ...ClientOption) (*SendViewProductOK, error) SendViewReco(params *SendViewRecoParams, opts ...ClientOption) (*SendViewRecoOK, 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 operations API client.
type GetRecommendationsBadRequest ¶
GetRecommendationsBadRequest describes a response with status code 400, with default header values.
A request parameter was missing or invalid.
func NewGetRecommendationsBadRequest ¶
func NewGetRecommendationsBadRequest() *GetRecommendationsBadRequest
NewGetRecommendationsBadRequest creates a GetRecommendationsBadRequest with default headers values
func (*GetRecommendationsBadRequest) Error ¶
func (o *GetRecommendationsBadRequest) Error() string
func (*GetRecommendationsBadRequest) GetPayload ¶
func (o *GetRecommendationsBadRequest) GetPayload() *models.Error
type GetRecommendationsBody ¶
type GetRecommendationsBody struct { // Product categories to use as context for generating recommendations. Any given request must have only one of categories or products. Categories []*GetRecommendationsParamsBodyCategoriesItems0 `json:"categories"` // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // Products to use as context for generating recommendations. Any given request must have only one of categories or products. Products []models.ProductForView `json:"products"` // realm // Required: true Realm *models.RealmParam `json:"realm"` // rules Rules models.Rules `json:"rules"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
GetRecommendationsBody get recommendations body swagger:model GetRecommendationsBody
func (*GetRecommendationsBody) ContextValidate ¶
func (o *GetRecommendationsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get recommendations body based on the context it is used
func (*GetRecommendationsBody) MarshalBinary ¶
func (o *GetRecommendationsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRecommendationsBody) UnmarshalBinary ¶
func (o *GetRecommendationsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRecommendationsNotFound ¶
GetRecommendationsNotFound describes a response with status code 404, with default header values.
Either the given `recommenderName` or `siteId` was invalid.
func NewGetRecommendationsNotFound ¶
func NewGetRecommendationsNotFound() *GetRecommendationsNotFound
NewGetRecommendationsNotFound creates a GetRecommendationsNotFound with default headers values
func (*GetRecommendationsNotFound) Error ¶
func (o *GetRecommendationsNotFound) Error() string
func (*GetRecommendationsNotFound) GetPayload ¶
func (o *GetRecommendationsNotFound) GetPayload() *models.Error
type GetRecommendationsOK ¶
type GetRecommendationsOK struct {
Payload *models.RecommendationsResponse
}
GetRecommendationsOK describes a response with status code 200, with default header values.
A successful response will contain a set of recommendations.
func NewGetRecommendationsOK ¶
func NewGetRecommendationsOK() *GetRecommendationsOK
NewGetRecommendationsOK creates a GetRecommendationsOK with default headers values
func (*GetRecommendationsOK) Error ¶
func (o *GetRecommendationsOK) Error() string
func (*GetRecommendationsOK) GetPayload ¶
func (o *GetRecommendationsOK) GetPayload() *models.RecommendationsResponse
type GetRecommendationsParams ¶
type GetRecommendationsParams struct { // Body. Body GetRecommendationsBody /* RecommenderName. Name of the recommender to use for recommendations. This item should exist in a response to GET /recommenders for the same site id. */ RecommenderName string // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendationsParams contains all the parameters to send to the API endpoint
for the get recommendations operation. Typically these are written to a http.Request.
func NewGetRecommendationsParams ¶
func NewGetRecommendationsParams() *GetRecommendationsParams
NewGetRecommendationsParams creates a new GetRecommendationsParams 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 NewGetRecommendationsParamsWithContext ¶
func NewGetRecommendationsParamsWithContext(ctx context.Context) *GetRecommendationsParams
NewGetRecommendationsParamsWithContext creates a new GetRecommendationsParams object with the ability to set a context for a request.
func NewGetRecommendationsParamsWithHTTPClient ¶
func NewGetRecommendationsParamsWithHTTPClient(client *http.Client) *GetRecommendationsParams
NewGetRecommendationsParamsWithHTTPClient creates a new GetRecommendationsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendationsParamsWithTimeout ¶
func NewGetRecommendationsParamsWithTimeout(timeout time.Duration) *GetRecommendationsParams
NewGetRecommendationsParamsWithTimeout creates a new GetRecommendationsParams object with the ability to set a timeout on a request.
func (*GetRecommendationsParams) SetBody ¶
func (o *GetRecommendationsParams) SetBody(body GetRecommendationsBody)
SetBody adds the body to the get recommendations params
func (*GetRecommendationsParams) SetContext ¶
func (o *GetRecommendationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommendations params
func (*GetRecommendationsParams) SetDefaults ¶
func (o *GetRecommendationsParams) SetDefaults()
SetDefaults hydrates default values in the get recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationsParams) SetHTTPClient ¶
func (o *GetRecommendationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommendations params
func (*GetRecommendationsParams) SetRecommenderName ¶
func (o *GetRecommendationsParams) SetRecommenderName(recommenderName string)
SetRecommenderName adds the recommenderName to the get recommendations params
func (*GetRecommendationsParams) SetSiteID ¶
func (o *GetRecommendationsParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the get recommendations params
func (*GetRecommendationsParams) SetTimeout ¶
func (o *GetRecommendationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommendations params
func (*GetRecommendationsParams) SetXCqClientID ¶
func (o *GetRecommendationsParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the get recommendations params
func (*GetRecommendationsParams) WithBody ¶
func (o *GetRecommendationsParams) WithBody(body GetRecommendationsBody) *GetRecommendationsParams
WithBody adds the body to the get recommendations params
func (*GetRecommendationsParams) WithContext ¶
func (o *GetRecommendationsParams) WithContext(ctx context.Context) *GetRecommendationsParams
WithContext adds the context to the get recommendations params
func (*GetRecommendationsParams) WithDefaults ¶
func (o *GetRecommendationsParams) WithDefaults() *GetRecommendationsParams
WithDefaults hydrates default values in the get recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationsParams) WithHTTPClient ¶
func (o *GetRecommendationsParams) WithHTTPClient(client *http.Client) *GetRecommendationsParams
WithHTTPClient adds the HTTPClient to the get recommendations params
func (*GetRecommendationsParams) WithRecommenderName ¶
func (o *GetRecommendationsParams) WithRecommenderName(recommenderName string) *GetRecommendationsParams
WithRecommenderName adds the recommenderName to the get recommendations params
func (*GetRecommendationsParams) WithSiteID ¶
func (o *GetRecommendationsParams) WithSiteID(siteID string) *GetRecommendationsParams
WithSiteID adds the siteID to the get recommendations params
func (*GetRecommendationsParams) WithTimeout ¶
func (o *GetRecommendationsParams) WithTimeout(timeout time.Duration) *GetRecommendationsParams
WithTimeout adds the timeout to the get recommendations params
func (*GetRecommendationsParams) WithXCqClientID ¶
func (o *GetRecommendationsParams) WithXCqClientID(xCqClientID string) *GetRecommendationsParams
WithXCqClientID adds the xCqClientID to the get recommendations params
func (*GetRecommendationsParams) WriteToRequest ¶
func (o *GetRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendationsParamsBodyCategoriesItems0 ¶
type GetRecommendationsParamsBodyCategoriesItems0 struct { // A unique identifier for the given category. // Required: true ID *string `json:"id"` }
GetRecommendationsParamsBodyCategoriesItems0 get recommendations params body categories items0 swagger:model GetRecommendationsParamsBodyCategoriesItems0
func (*GetRecommendationsParamsBodyCategoriesItems0) ContextValidate ¶
func (o *GetRecommendationsParamsBodyCategoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get recommendations params body categories items0 based on context it is used
func (*GetRecommendationsParamsBodyCategoriesItems0) MarshalBinary ¶
func (o *GetRecommendationsParamsBodyCategoriesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary ¶
func (o *GetRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRecommendationsReader ¶
type GetRecommendationsReader struct {
// contains filtered or unexported fields
}
GetRecommendationsReader is a Reader for the GetRecommendations structure.
func (*GetRecommendationsReader) ReadResponse ¶
func (o *GetRecommendationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRecommendersBadRequest ¶
GetRecommendersBadRequest describes a response with status code 400, with default header values.
Either there was no OCAPI client id in the request, or the given OCAPI client id was not valid.
func NewGetRecommendersBadRequest ¶
func NewGetRecommendersBadRequest() *GetRecommendersBadRequest
NewGetRecommendersBadRequest creates a GetRecommendersBadRequest with default headers values
func (*GetRecommendersBadRequest) Error ¶
func (o *GetRecommendersBadRequest) Error() string
func (*GetRecommendersBadRequest) GetPayload ¶
func (o *GetRecommendersBadRequest) GetPayload() *models.Error
type GetRecommendersForbidden ¶
GetRecommendersForbidden describes a response with status code 403, with default header values.
The given site ID is not valid.
func NewGetRecommendersForbidden ¶
func NewGetRecommendersForbidden() *GetRecommendersForbidden
NewGetRecommendersForbidden creates a GetRecommendersForbidden with default headers values
func (*GetRecommendersForbidden) Error ¶
func (o *GetRecommendersForbidden) Error() string
func (*GetRecommendersForbidden) GetPayload ¶
func (o *GetRecommendersForbidden) GetPayload() *models.Error
type GetRecommendersOK ¶
type GetRecommendersOK struct {
Payload *models.RecommendersResponse
}
GetRecommendersOK describes a response with status code 200, with default header values.
A successful response will contain a list of recommenders available for use in recommendation requests.
func NewGetRecommendersOK ¶
func NewGetRecommendersOK() *GetRecommendersOK
NewGetRecommendersOK creates a GetRecommendersOK with default headers values
func (*GetRecommendersOK) Error ¶
func (o *GetRecommendersOK) Error() string
func (*GetRecommendersOK) GetPayload ¶
func (o *GetRecommendersOK) GetPayload() *models.RecommendersResponse
type GetRecommendersParams ¶
type GetRecommendersParams struct { // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendersParams contains all the parameters to send to the API endpoint
for the get recommenders operation. Typically these are written to a http.Request.
func NewGetRecommendersParams ¶
func NewGetRecommendersParams() *GetRecommendersParams
NewGetRecommendersParams creates a new GetRecommendersParams 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 NewGetRecommendersParamsWithContext ¶
func NewGetRecommendersParamsWithContext(ctx context.Context) *GetRecommendersParams
NewGetRecommendersParamsWithContext creates a new GetRecommendersParams object with the ability to set a context for a request.
func NewGetRecommendersParamsWithHTTPClient ¶
func NewGetRecommendersParamsWithHTTPClient(client *http.Client) *GetRecommendersParams
NewGetRecommendersParamsWithHTTPClient creates a new GetRecommendersParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendersParamsWithTimeout ¶
func NewGetRecommendersParamsWithTimeout(timeout time.Duration) *GetRecommendersParams
NewGetRecommendersParamsWithTimeout creates a new GetRecommendersParams object with the ability to set a timeout on a request.
func (*GetRecommendersParams) SetContext ¶
func (o *GetRecommendersParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommenders params
func (*GetRecommendersParams) SetDefaults ¶
func (o *GetRecommendersParams) SetDefaults()
SetDefaults hydrates default values in the get recommenders params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendersParams) SetHTTPClient ¶
func (o *GetRecommendersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommenders params
func (*GetRecommendersParams) SetSiteID ¶
func (o *GetRecommendersParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the get recommenders params
func (*GetRecommendersParams) SetTimeout ¶
func (o *GetRecommendersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommenders params
func (*GetRecommendersParams) SetXCqClientID ¶
func (o *GetRecommendersParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the get recommenders params
func (*GetRecommendersParams) WithContext ¶
func (o *GetRecommendersParams) WithContext(ctx context.Context) *GetRecommendersParams
WithContext adds the context to the get recommenders params
func (*GetRecommendersParams) WithDefaults ¶
func (o *GetRecommendersParams) WithDefaults() *GetRecommendersParams
WithDefaults hydrates default values in the get recommenders params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendersParams) WithHTTPClient ¶
func (o *GetRecommendersParams) WithHTTPClient(client *http.Client) *GetRecommendersParams
WithHTTPClient adds the HTTPClient to the get recommenders params
func (*GetRecommendersParams) WithSiteID ¶
func (o *GetRecommendersParams) WithSiteID(siteID string) *GetRecommendersParams
WithSiteID adds the siteID to the get recommenders params
func (*GetRecommendersParams) WithTimeout ¶
func (o *GetRecommendersParams) WithTimeout(timeout time.Duration) *GetRecommendersParams
WithTimeout adds the timeout to the get recommenders params
func (*GetRecommendersParams) WithXCqClientID ¶
func (o *GetRecommendersParams) WithXCqClientID(xCqClientID string) *GetRecommendersParams
WithXCqClientID adds the xCqClientID to the get recommenders params
func (*GetRecommendersParams) WriteToRequest ¶
func (o *GetRecommendersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendersReader ¶
type GetRecommendersReader struct {
// contains filtered or unexported fields
}
GetRecommendersReader is a Reader for the GetRecommenders structure.
func (*GetRecommendersReader) ReadResponse ¶
func (o *GetRecommendersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetZoneRecommendationsBadRequest ¶
GetZoneRecommendationsBadRequest describes a response with status code 400, with default header values.
A request parameter was missing or invalid.
func NewGetZoneRecommendationsBadRequest ¶
func NewGetZoneRecommendationsBadRequest() *GetZoneRecommendationsBadRequest
NewGetZoneRecommendationsBadRequest creates a GetZoneRecommendationsBadRequest with default headers values
func (*GetZoneRecommendationsBadRequest) Error ¶
func (o *GetZoneRecommendationsBadRequest) Error() string
func (*GetZoneRecommendationsBadRequest) GetPayload ¶
func (o *GetZoneRecommendationsBadRequest) GetPayload() *models.Error
type GetZoneRecommendationsBody ¶
type GetZoneRecommendationsBody struct { // Product categories to use as context for generating recommendations. Any given request must have only one of categories or products. Categories []*GetZoneRecommendationsParamsBodyCategoriesItems0 `json:"categories"` // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // Products to use as context for generating recommendations. Any given request must have only one of categories or products. Products []models.ProductForView `json:"products"` // realm // Required: true Realm *models.RealmParam `json:"realm"` // rules Rules models.Rules `json:"rules"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
GetZoneRecommendationsBody get zone recommendations body swagger:model GetZoneRecommendationsBody
func (*GetZoneRecommendationsBody) ContextValidate ¶
func (o *GetZoneRecommendationsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get zone recommendations body based on the context it is used
func (*GetZoneRecommendationsBody) MarshalBinary ¶
func (o *GetZoneRecommendationsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetZoneRecommendationsBody) UnmarshalBinary ¶
func (o *GetZoneRecommendationsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetZoneRecommendationsNotFound ¶
GetZoneRecommendationsNotFound describes a response with status code 404, with default header values.
Either the given `recommenderName` or `siteId` was invalid.
func NewGetZoneRecommendationsNotFound ¶
func NewGetZoneRecommendationsNotFound() *GetZoneRecommendationsNotFound
NewGetZoneRecommendationsNotFound creates a GetZoneRecommendationsNotFound with default headers values
func (*GetZoneRecommendationsNotFound) Error ¶
func (o *GetZoneRecommendationsNotFound) Error() string
func (*GetZoneRecommendationsNotFound) GetPayload ¶
func (o *GetZoneRecommendationsNotFound) GetPayload() *models.Error
type GetZoneRecommendationsOK ¶
type GetZoneRecommendationsOK struct {
Payload *models.ZoneResponse
}
GetZoneRecommendationsOK describes a response with status code 200, with default header values.
A successful response will contain a set of recommendations.
func NewGetZoneRecommendationsOK ¶
func NewGetZoneRecommendationsOK() *GetZoneRecommendationsOK
NewGetZoneRecommendationsOK creates a GetZoneRecommendationsOK with default headers values
func (*GetZoneRecommendationsOK) Error ¶
func (o *GetZoneRecommendationsOK) Error() string
func (*GetZoneRecommendationsOK) GetPayload ¶
func (o *GetZoneRecommendationsOK) GetPayload() *models.ZoneResponse
type GetZoneRecommendationsParams ¶
type GetZoneRecommendationsParams struct { // Body. Body GetZoneRecommendationsBody // SiteID. SiteID string // XCqClientID. XCqClientID string /* ZoneName. Name of the recommendation zone. */ ZoneName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetZoneRecommendationsParams contains all the parameters to send to the API endpoint
for the get zone recommendations operation. Typically these are written to a http.Request.
func NewGetZoneRecommendationsParams ¶
func NewGetZoneRecommendationsParams() *GetZoneRecommendationsParams
NewGetZoneRecommendationsParams creates a new GetZoneRecommendationsParams 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 NewGetZoneRecommendationsParamsWithContext ¶
func NewGetZoneRecommendationsParamsWithContext(ctx context.Context) *GetZoneRecommendationsParams
NewGetZoneRecommendationsParamsWithContext creates a new GetZoneRecommendationsParams object with the ability to set a context for a request.
func NewGetZoneRecommendationsParamsWithHTTPClient ¶
func NewGetZoneRecommendationsParamsWithHTTPClient(client *http.Client) *GetZoneRecommendationsParams
NewGetZoneRecommendationsParamsWithHTTPClient creates a new GetZoneRecommendationsParams object with the ability to set a custom HTTPClient for a request.
func NewGetZoneRecommendationsParamsWithTimeout ¶
func NewGetZoneRecommendationsParamsWithTimeout(timeout time.Duration) *GetZoneRecommendationsParams
NewGetZoneRecommendationsParamsWithTimeout creates a new GetZoneRecommendationsParams object with the ability to set a timeout on a request.
func (*GetZoneRecommendationsParams) SetBody ¶
func (o *GetZoneRecommendationsParams) SetBody(body GetZoneRecommendationsBody)
SetBody adds the body to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetContext ¶
func (o *GetZoneRecommendationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetDefaults ¶
func (o *GetZoneRecommendationsParams) SetDefaults()
SetDefaults hydrates default values in the get zone recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetZoneRecommendationsParams) SetHTTPClient ¶
func (o *GetZoneRecommendationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetSiteID ¶
func (o *GetZoneRecommendationsParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetTimeout ¶
func (o *GetZoneRecommendationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetXCqClientID ¶
func (o *GetZoneRecommendationsParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the get zone recommendations params
func (*GetZoneRecommendationsParams) SetZoneName ¶
func (o *GetZoneRecommendationsParams) SetZoneName(zoneName string)
SetZoneName adds the zoneName to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithBody ¶
func (o *GetZoneRecommendationsParams) WithBody(body GetZoneRecommendationsBody) *GetZoneRecommendationsParams
WithBody adds the body to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithContext ¶
func (o *GetZoneRecommendationsParams) WithContext(ctx context.Context) *GetZoneRecommendationsParams
WithContext adds the context to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithDefaults ¶
func (o *GetZoneRecommendationsParams) WithDefaults() *GetZoneRecommendationsParams
WithDefaults hydrates default values in the get zone recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetZoneRecommendationsParams) WithHTTPClient ¶
func (o *GetZoneRecommendationsParams) WithHTTPClient(client *http.Client) *GetZoneRecommendationsParams
WithHTTPClient adds the HTTPClient to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithSiteID ¶
func (o *GetZoneRecommendationsParams) WithSiteID(siteID string) *GetZoneRecommendationsParams
WithSiteID adds the siteID to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithTimeout ¶
func (o *GetZoneRecommendationsParams) WithTimeout(timeout time.Duration) *GetZoneRecommendationsParams
WithTimeout adds the timeout to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithXCqClientID ¶
func (o *GetZoneRecommendationsParams) WithXCqClientID(xCqClientID string) *GetZoneRecommendationsParams
WithXCqClientID adds the xCqClientID to the get zone recommendations params
func (*GetZoneRecommendationsParams) WithZoneName ¶
func (o *GetZoneRecommendationsParams) WithZoneName(zoneName string) *GetZoneRecommendationsParams
WithZoneName adds the zoneName to the get zone recommendations params
func (*GetZoneRecommendationsParams) WriteToRequest ¶
func (o *GetZoneRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetZoneRecommendationsParamsBodyCategoriesItems0 ¶
type GetZoneRecommendationsParamsBodyCategoriesItems0 struct { // A unique identifier for the given category. // Required: true ID *string `json:"id"` }
GetZoneRecommendationsParamsBodyCategoriesItems0 get zone recommendations params body categories items0 swagger:model GetZoneRecommendationsParamsBodyCategoriesItems0
func (*GetZoneRecommendationsParamsBodyCategoriesItems0) ContextValidate ¶
func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get zone recommendations params body categories items0 based on context it is used
func (*GetZoneRecommendationsParamsBodyCategoriesItems0) MarshalBinary ¶
func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetZoneRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary ¶
func (o *GetZoneRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetZoneRecommendationsReader ¶
type GetZoneRecommendationsReader struct {
// contains filtered or unexported fields
}
GetZoneRecommendationsReader is a Reader for the GetZoneRecommendations structure.
func (*GetZoneRecommendationsReader) ReadResponse ¶
func (o *GetZoneRecommendationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendAddToCartBadRequest ¶
SendAddToCartBadRequest describes a response with status code 400, with default header values.
A validation error response contains an array of invalid parameters.
func NewSendAddToCartBadRequest ¶
func NewSendAddToCartBadRequest() *SendAddToCartBadRequest
NewSendAddToCartBadRequest creates a SendAddToCartBadRequest with default headers values
func (*SendAddToCartBadRequest) Error ¶
func (o *SendAddToCartBadRequest) Error() string
func (*SendAddToCartBadRequest) GetPayload ¶
func (o *SendAddToCartBadRequest) GetPayload() *models.Error
type SendAddToCartBody ¶
type SendAddToCartBody struct { // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // Array of products the user has added to their cart. // Required: true Products []*SendAddToCartParamsBodyProductsItems0 `json:"products"` // realm Realm models.RealmParam `json:"realm,omitempty"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
SendAddToCartBody send add to cart body swagger:model SendAddToCartBody
func (*SendAddToCartBody) ContextValidate ¶
ContextValidate validate this send add to cart body based on the context it is used
func (*SendAddToCartBody) MarshalBinary ¶
func (o *SendAddToCartBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendAddToCartBody) UnmarshalBinary ¶
func (o *SendAddToCartBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendAddToCartOK ¶
type SendAddToCartOK struct {
Payload *models.ActivityResponse
}
SendAddToCartOK describes a response with status code 200, with default header values.
A successful response contains a UUID for the given user.
func NewSendAddToCartOK ¶
func NewSendAddToCartOK() *SendAddToCartOK
NewSendAddToCartOK creates a SendAddToCartOK with default headers values
func (*SendAddToCartOK) Error ¶
func (o *SendAddToCartOK) Error() string
func (*SendAddToCartOK) GetPayload ¶
func (o *SendAddToCartOK) GetPayload() *models.ActivityResponse
type SendAddToCartParams ¶
type SendAddToCartParams struct { // Body. Body SendAddToCartBody // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendAddToCartParams contains all the parameters to send to the API endpoint
for the send add to cart operation. Typically these are written to a http.Request.
func NewSendAddToCartParams ¶
func NewSendAddToCartParams() *SendAddToCartParams
NewSendAddToCartParams creates a new SendAddToCartParams 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 NewSendAddToCartParamsWithContext ¶
func NewSendAddToCartParamsWithContext(ctx context.Context) *SendAddToCartParams
NewSendAddToCartParamsWithContext creates a new SendAddToCartParams object with the ability to set a context for a request.
func NewSendAddToCartParamsWithHTTPClient ¶
func NewSendAddToCartParamsWithHTTPClient(client *http.Client) *SendAddToCartParams
NewSendAddToCartParamsWithHTTPClient creates a new SendAddToCartParams object with the ability to set a custom HTTPClient for a request.
func NewSendAddToCartParamsWithTimeout ¶
func NewSendAddToCartParamsWithTimeout(timeout time.Duration) *SendAddToCartParams
NewSendAddToCartParamsWithTimeout creates a new SendAddToCartParams object with the ability to set a timeout on a request.
func (*SendAddToCartParams) SetBody ¶
func (o *SendAddToCartParams) SetBody(body SendAddToCartBody)
SetBody adds the body to the send add to cart params
func (*SendAddToCartParams) SetContext ¶
func (o *SendAddToCartParams) SetContext(ctx context.Context)
SetContext adds the context to the send add to cart params
func (*SendAddToCartParams) SetDefaults ¶
func (o *SendAddToCartParams) SetDefaults()
SetDefaults hydrates default values in the send add to cart params (not the query body).
All values with no default are reset to their zero value.
func (*SendAddToCartParams) SetHTTPClient ¶
func (o *SendAddToCartParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send add to cart params
func (*SendAddToCartParams) SetSiteID ¶
func (o *SendAddToCartParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the send add to cart params
func (*SendAddToCartParams) SetTimeout ¶
func (o *SendAddToCartParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send add to cart params
func (*SendAddToCartParams) SetXCqClientID ¶
func (o *SendAddToCartParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the send add to cart params
func (*SendAddToCartParams) WithBody ¶
func (o *SendAddToCartParams) WithBody(body SendAddToCartBody) *SendAddToCartParams
WithBody adds the body to the send add to cart params
func (*SendAddToCartParams) WithContext ¶
func (o *SendAddToCartParams) WithContext(ctx context.Context) *SendAddToCartParams
WithContext adds the context to the send add to cart params
func (*SendAddToCartParams) WithDefaults ¶
func (o *SendAddToCartParams) WithDefaults() *SendAddToCartParams
WithDefaults hydrates default values in the send add to cart params (not the query body).
All values with no default are reset to their zero value.
func (*SendAddToCartParams) WithHTTPClient ¶
func (o *SendAddToCartParams) WithHTTPClient(client *http.Client) *SendAddToCartParams
WithHTTPClient adds the HTTPClient to the send add to cart params
func (*SendAddToCartParams) WithSiteID ¶
func (o *SendAddToCartParams) WithSiteID(siteID string) *SendAddToCartParams
WithSiteID adds the siteID to the send add to cart params
func (*SendAddToCartParams) WithTimeout ¶
func (o *SendAddToCartParams) WithTimeout(timeout time.Duration) *SendAddToCartParams
WithTimeout adds the timeout to the send add to cart params
func (*SendAddToCartParams) WithXCqClientID ¶
func (o *SendAddToCartParams) WithXCqClientID(xCqClientID string) *SendAddToCartParams
WithXCqClientID adds the xCqClientID to the send add to cart params
func (*SendAddToCartParams) WriteToRequest ¶
func (o *SendAddToCartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendAddToCartParamsBodyProductsItems0 ¶
type SendAddToCartParamsBodyProductsItems0 struct { // A unique identifier for the given product. // Required: true ID *string `json:"id"` // Price of each individual unit of this product. // Required: true Price *float64 `json:"price"` // The total number of this item in the cart. // Required: true Quantity *int64 `json:"quantity"` // A unique identifier for a sellable unit of the given product, when applicable. // Required: true Sku *string `json:"sku"` }
SendAddToCartParamsBodyProductsItems0 send add to cart params body products items0 swagger:model SendAddToCartParamsBodyProductsItems0
func (*SendAddToCartParamsBodyProductsItems0) ContextValidate ¶
func (o *SendAddToCartParamsBodyProductsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this send add to cart params body products items0 based on context it is used
func (*SendAddToCartParamsBodyProductsItems0) MarshalBinary ¶
func (o *SendAddToCartParamsBodyProductsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendAddToCartParamsBodyProductsItems0) UnmarshalBinary ¶
func (o *SendAddToCartParamsBodyProductsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendAddToCartReader ¶
type SendAddToCartReader struct {
// contains filtered or unexported fields
}
SendAddToCartReader is a Reader for the SendAddToCart structure.
func (*SendAddToCartReader) ReadResponse ¶
func (o *SendAddToCartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendClickRecoBadRequest ¶
SendClickRecoBadRequest describes a response with status code 400, with default header values.
A validation error response contains an array of invalid parameters.
func NewSendClickRecoBadRequest ¶
func NewSendClickRecoBadRequest() *SendClickRecoBadRequest
NewSendClickRecoBadRequest creates a SendClickRecoBadRequest with default headers values
func (*SendClickRecoBadRequest) Error ¶
func (o *SendClickRecoBadRequest) Error() string
func (*SendClickRecoBadRequest) GetPayload ¶
func (o *SendClickRecoBadRequest) GetPayload() *models.Error
type SendClickRecoBody ¶
type SendClickRecoBody struct { // The UUID that was returned in the recommendation response. // Required: true RecoUUID *string `json:"__recoUUID"` // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // product // Required: true Product models.ProductForView `json:"product"` // realm Realm models.RealmParam `json:"realm,omitempty"` // The name of the recommender used in the recommendation request. // Required: true RecommenderName *string `json:"recommenderName"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
SendClickRecoBody send click reco body swagger:model SendClickRecoBody
func (*SendClickRecoBody) ContextValidate ¶
ContextValidate validate this send click reco body based on the context it is used
func (*SendClickRecoBody) MarshalBinary ¶
func (o *SendClickRecoBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendClickRecoBody) UnmarshalBinary ¶
func (o *SendClickRecoBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendClickRecoOK ¶
type SendClickRecoOK struct {
Payload *models.ActivityResponse
}
SendClickRecoOK describes a response with status code 200, with default header values.
A successful response contains a UUID for the given user.
func NewSendClickRecoOK ¶
func NewSendClickRecoOK() *SendClickRecoOK
NewSendClickRecoOK creates a SendClickRecoOK with default headers values
func (*SendClickRecoOK) Error ¶
func (o *SendClickRecoOK) Error() string
func (*SendClickRecoOK) GetPayload ¶
func (o *SendClickRecoOK) GetPayload() *models.ActivityResponse
type SendClickRecoParams ¶
type SendClickRecoParams struct { // Body. Body SendClickRecoBody // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendClickRecoParams contains all the parameters to send to the API endpoint
for the send click reco operation. Typically these are written to a http.Request.
func NewSendClickRecoParams ¶
func NewSendClickRecoParams() *SendClickRecoParams
NewSendClickRecoParams creates a new SendClickRecoParams 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 NewSendClickRecoParamsWithContext ¶
func NewSendClickRecoParamsWithContext(ctx context.Context) *SendClickRecoParams
NewSendClickRecoParamsWithContext creates a new SendClickRecoParams object with the ability to set a context for a request.
func NewSendClickRecoParamsWithHTTPClient ¶
func NewSendClickRecoParamsWithHTTPClient(client *http.Client) *SendClickRecoParams
NewSendClickRecoParamsWithHTTPClient creates a new SendClickRecoParams object with the ability to set a custom HTTPClient for a request.
func NewSendClickRecoParamsWithTimeout ¶
func NewSendClickRecoParamsWithTimeout(timeout time.Duration) *SendClickRecoParams
NewSendClickRecoParamsWithTimeout creates a new SendClickRecoParams object with the ability to set a timeout on a request.
func (*SendClickRecoParams) SetBody ¶
func (o *SendClickRecoParams) SetBody(body SendClickRecoBody)
SetBody adds the body to the send click reco params
func (*SendClickRecoParams) SetContext ¶
func (o *SendClickRecoParams) SetContext(ctx context.Context)
SetContext adds the context to the send click reco params
func (*SendClickRecoParams) SetDefaults ¶
func (o *SendClickRecoParams) SetDefaults()
SetDefaults hydrates default values in the send click reco params (not the query body).
All values with no default are reset to their zero value.
func (*SendClickRecoParams) SetHTTPClient ¶
func (o *SendClickRecoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send click reco params
func (*SendClickRecoParams) SetSiteID ¶
func (o *SendClickRecoParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the send click reco params
func (*SendClickRecoParams) SetTimeout ¶
func (o *SendClickRecoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send click reco params
func (*SendClickRecoParams) SetXCqClientID ¶
func (o *SendClickRecoParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the send click reco params
func (*SendClickRecoParams) WithBody ¶
func (o *SendClickRecoParams) WithBody(body SendClickRecoBody) *SendClickRecoParams
WithBody adds the body to the send click reco params
func (*SendClickRecoParams) WithContext ¶
func (o *SendClickRecoParams) WithContext(ctx context.Context) *SendClickRecoParams
WithContext adds the context to the send click reco params
func (*SendClickRecoParams) WithDefaults ¶
func (o *SendClickRecoParams) WithDefaults() *SendClickRecoParams
WithDefaults hydrates default values in the send click reco params (not the query body).
All values with no default are reset to their zero value.
func (*SendClickRecoParams) WithHTTPClient ¶
func (o *SendClickRecoParams) WithHTTPClient(client *http.Client) *SendClickRecoParams
WithHTTPClient adds the HTTPClient to the send click reco params
func (*SendClickRecoParams) WithSiteID ¶
func (o *SendClickRecoParams) WithSiteID(siteID string) *SendClickRecoParams
WithSiteID adds the siteID to the send click reco params
func (*SendClickRecoParams) WithTimeout ¶
func (o *SendClickRecoParams) WithTimeout(timeout time.Duration) *SendClickRecoParams
WithTimeout adds the timeout to the send click reco params
func (*SendClickRecoParams) WithXCqClientID ¶
func (o *SendClickRecoParams) WithXCqClientID(xCqClientID string) *SendClickRecoParams
WithXCqClientID adds the xCqClientID to the send click reco params
func (*SendClickRecoParams) WriteToRequest ¶
func (o *SendClickRecoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendClickRecoReader ¶
type SendClickRecoReader struct {
// contains filtered or unexported fields
}
SendClickRecoReader is a Reader for the SendClickReco structure.
func (*SendClickRecoReader) ReadResponse ¶
func (o *SendClickRecoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendViewProductBadRequest ¶
SendViewProductBadRequest describes a response with status code 400, with default header values.
A validation error response contains an array of invalid parameters.
func NewSendViewProductBadRequest ¶
func NewSendViewProductBadRequest() *SendViewProductBadRequest
NewSendViewProductBadRequest creates a SendViewProductBadRequest with default headers values
func (*SendViewProductBadRequest) Error ¶
func (o *SendViewProductBadRequest) Error() string
func (*SendViewProductBadRequest) GetPayload ¶
func (o *SendViewProductBadRequest) GetPayload() *models.Error
type SendViewProductBody ¶
type SendViewProductBody struct { // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // product // Required: true Product models.ProductForView `json:"product"` // realm Realm models.RealmParam `json:"realm,omitempty"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
SendViewProductBody send view product body swagger:model SendViewProductBody
func (*SendViewProductBody) ContextValidate ¶
ContextValidate validate this send view product body based on the context it is used
func (*SendViewProductBody) MarshalBinary ¶
func (o *SendViewProductBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendViewProductBody) UnmarshalBinary ¶
func (o *SendViewProductBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendViewProductOK ¶
type SendViewProductOK struct {
Payload *models.ActivityResponse
}
SendViewProductOK describes a response with status code 200, with default header values.
A successful response contains a UUID for the given user.
func NewSendViewProductOK ¶
func NewSendViewProductOK() *SendViewProductOK
NewSendViewProductOK creates a SendViewProductOK with default headers values
func (*SendViewProductOK) Error ¶
func (o *SendViewProductOK) Error() string
func (*SendViewProductOK) GetPayload ¶
func (o *SendViewProductOK) GetPayload() *models.ActivityResponse
type SendViewProductParams ¶
type SendViewProductParams struct { // Body. Body SendViewProductBody // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendViewProductParams contains all the parameters to send to the API endpoint
for the send view product operation. Typically these are written to a http.Request.
func NewSendViewProductParams ¶
func NewSendViewProductParams() *SendViewProductParams
NewSendViewProductParams creates a new SendViewProductParams 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 NewSendViewProductParamsWithContext ¶
func NewSendViewProductParamsWithContext(ctx context.Context) *SendViewProductParams
NewSendViewProductParamsWithContext creates a new SendViewProductParams object with the ability to set a context for a request.
func NewSendViewProductParamsWithHTTPClient ¶
func NewSendViewProductParamsWithHTTPClient(client *http.Client) *SendViewProductParams
NewSendViewProductParamsWithHTTPClient creates a new SendViewProductParams object with the ability to set a custom HTTPClient for a request.
func NewSendViewProductParamsWithTimeout ¶
func NewSendViewProductParamsWithTimeout(timeout time.Duration) *SendViewProductParams
NewSendViewProductParamsWithTimeout creates a new SendViewProductParams object with the ability to set a timeout on a request.
func (*SendViewProductParams) SetBody ¶
func (o *SendViewProductParams) SetBody(body SendViewProductBody)
SetBody adds the body to the send view product params
func (*SendViewProductParams) SetContext ¶
func (o *SendViewProductParams) SetContext(ctx context.Context)
SetContext adds the context to the send view product params
func (*SendViewProductParams) SetDefaults ¶
func (o *SendViewProductParams) SetDefaults()
SetDefaults hydrates default values in the send view product params (not the query body).
All values with no default are reset to their zero value.
func (*SendViewProductParams) SetHTTPClient ¶
func (o *SendViewProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send view product params
func (*SendViewProductParams) SetSiteID ¶
func (o *SendViewProductParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the send view product params
func (*SendViewProductParams) SetTimeout ¶
func (o *SendViewProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send view product params
func (*SendViewProductParams) SetXCqClientID ¶
func (o *SendViewProductParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the send view product params
func (*SendViewProductParams) WithBody ¶
func (o *SendViewProductParams) WithBody(body SendViewProductBody) *SendViewProductParams
WithBody adds the body to the send view product params
func (*SendViewProductParams) WithContext ¶
func (o *SendViewProductParams) WithContext(ctx context.Context) *SendViewProductParams
WithContext adds the context to the send view product params
func (*SendViewProductParams) WithDefaults ¶
func (o *SendViewProductParams) WithDefaults() *SendViewProductParams
WithDefaults hydrates default values in the send view product params (not the query body).
All values with no default are reset to their zero value.
func (*SendViewProductParams) WithHTTPClient ¶
func (o *SendViewProductParams) WithHTTPClient(client *http.Client) *SendViewProductParams
WithHTTPClient adds the HTTPClient to the send view product params
func (*SendViewProductParams) WithSiteID ¶
func (o *SendViewProductParams) WithSiteID(siteID string) *SendViewProductParams
WithSiteID adds the siteID to the send view product params
func (*SendViewProductParams) WithTimeout ¶
func (o *SendViewProductParams) WithTimeout(timeout time.Duration) *SendViewProductParams
WithTimeout adds the timeout to the send view product params
func (*SendViewProductParams) WithXCqClientID ¶
func (o *SendViewProductParams) WithXCqClientID(xCqClientID string) *SendViewProductParams
WithXCqClientID adds the xCqClientID to the send view product params
func (*SendViewProductParams) WriteToRequest ¶
func (o *SendViewProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendViewProductReader ¶
type SendViewProductReader struct {
// contains filtered or unexported fields
}
SendViewProductReader is a Reader for the SendViewProduct structure.
func (*SendViewProductReader) ReadResponse ¶
func (o *SendViewProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendViewRecoBadRequest ¶
SendViewRecoBadRequest describes a response with status code 400, with default header values.
A validation error response contains an array of invalid parameters.
func NewSendViewRecoBadRequest ¶
func NewSendViewRecoBadRequest() *SendViewRecoBadRequest
NewSendViewRecoBadRequest creates a SendViewRecoBadRequest with default headers values
func (*SendViewRecoBadRequest) Error ¶
func (o *SendViewRecoBadRequest) Error() string
func (*SendViewRecoBadRequest) GetPayload ¶
func (o *SendViewRecoBadRequest) GetPayload() *models.Error
type SendViewRecoBody ¶
type SendViewRecoBody struct { // The UUID that was returned in the recommendation response. // Required: true RecoUUID *string `json:"__recoUUID"` // client Ip ClientIP models.ClientIPParam `json:"clientIp,omitempty"` // client user agent ClientUserAgent models.ClientUserAgentParam `json:"clientUserAgent,omitempty"` // cookie Id CookieID models.CookieIDParam `json:"cookieId,omitempty"` // Array of recommendations the user viewed. // Required: true Products []models.ProductForView `json:"products"` // realm Realm models.RealmParam `json:"realm,omitempty"` // The name of the recommender used in the recommendation request. // Required: true RecommenderName *string `json:"recommenderName"` // user Id UserID models.UserIDParam `json:"userId,omitempty"` }
SendViewRecoBody send view reco body swagger:model SendViewRecoBody
func (*SendViewRecoBody) ContextValidate ¶
ContextValidate validate this send view reco body based on the context it is used
func (*SendViewRecoBody) MarshalBinary ¶
func (o *SendViewRecoBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SendViewRecoBody) UnmarshalBinary ¶
func (o *SendViewRecoBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SendViewRecoOK ¶
type SendViewRecoOK struct {
Payload *models.ActivityResponse
}
SendViewRecoOK describes a response with status code 200, with default header values.
A successful response contains a UUID for the given user.
func NewSendViewRecoOK ¶
func NewSendViewRecoOK() *SendViewRecoOK
NewSendViewRecoOK creates a SendViewRecoOK with default headers values
func (*SendViewRecoOK) Error ¶
func (o *SendViewRecoOK) Error() string
func (*SendViewRecoOK) GetPayload ¶
func (o *SendViewRecoOK) GetPayload() *models.ActivityResponse
type SendViewRecoParams ¶
type SendViewRecoParams struct { // Body. Body SendViewRecoBody // SiteID. SiteID string // XCqClientID. XCqClientID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendViewRecoParams contains all the parameters to send to the API endpoint
for the send view reco operation. Typically these are written to a http.Request.
func NewSendViewRecoParams ¶
func NewSendViewRecoParams() *SendViewRecoParams
NewSendViewRecoParams creates a new SendViewRecoParams 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 NewSendViewRecoParamsWithContext ¶
func NewSendViewRecoParamsWithContext(ctx context.Context) *SendViewRecoParams
NewSendViewRecoParamsWithContext creates a new SendViewRecoParams object with the ability to set a context for a request.
func NewSendViewRecoParamsWithHTTPClient ¶
func NewSendViewRecoParamsWithHTTPClient(client *http.Client) *SendViewRecoParams
NewSendViewRecoParamsWithHTTPClient creates a new SendViewRecoParams object with the ability to set a custom HTTPClient for a request.
func NewSendViewRecoParamsWithTimeout ¶
func NewSendViewRecoParamsWithTimeout(timeout time.Duration) *SendViewRecoParams
NewSendViewRecoParamsWithTimeout creates a new SendViewRecoParams object with the ability to set a timeout on a request.
func (*SendViewRecoParams) SetBody ¶
func (o *SendViewRecoParams) SetBody(body SendViewRecoBody)
SetBody adds the body to the send view reco params
func (*SendViewRecoParams) SetContext ¶
func (o *SendViewRecoParams) SetContext(ctx context.Context)
SetContext adds the context to the send view reco params
func (*SendViewRecoParams) SetDefaults ¶
func (o *SendViewRecoParams) SetDefaults()
SetDefaults hydrates default values in the send view reco params (not the query body).
All values with no default are reset to their zero value.
func (*SendViewRecoParams) SetHTTPClient ¶
func (o *SendViewRecoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send view reco params
func (*SendViewRecoParams) SetSiteID ¶
func (o *SendViewRecoParams) SetSiteID(siteID string)
SetSiteID adds the siteId to the send view reco params
func (*SendViewRecoParams) SetTimeout ¶
func (o *SendViewRecoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send view reco params
func (*SendViewRecoParams) SetXCqClientID ¶
func (o *SendViewRecoParams) SetXCqClientID(xCqClientID string)
SetXCqClientID adds the xCqClientId to the send view reco params
func (*SendViewRecoParams) WithBody ¶
func (o *SendViewRecoParams) WithBody(body SendViewRecoBody) *SendViewRecoParams
WithBody adds the body to the send view reco params
func (*SendViewRecoParams) WithContext ¶
func (o *SendViewRecoParams) WithContext(ctx context.Context) *SendViewRecoParams
WithContext adds the context to the send view reco params
func (*SendViewRecoParams) WithDefaults ¶
func (o *SendViewRecoParams) WithDefaults() *SendViewRecoParams
WithDefaults hydrates default values in the send view reco params (not the query body).
All values with no default are reset to their zero value.
func (*SendViewRecoParams) WithHTTPClient ¶
func (o *SendViewRecoParams) WithHTTPClient(client *http.Client) *SendViewRecoParams
WithHTTPClient adds the HTTPClient to the send view reco params
func (*SendViewRecoParams) WithSiteID ¶
func (o *SendViewRecoParams) WithSiteID(siteID string) *SendViewRecoParams
WithSiteID adds the siteID to the send view reco params
func (*SendViewRecoParams) WithTimeout ¶
func (o *SendViewRecoParams) WithTimeout(timeout time.Duration) *SendViewRecoParams
WithTimeout adds the timeout to the send view reco params
func (*SendViewRecoParams) WithXCqClientID ¶
func (o *SendViewRecoParams) WithXCqClientID(xCqClientID string) *SendViewRecoParams
WithXCqClientID adds the xCqClientID to the send view reco params
func (*SendViewRecoParams) WriteToRequest ¶
func (o *SendViewRecoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendViewRecoReader ¶
type SendViewRecoReader struct {
// contains filtered or unexported fields
}
SendViewRecoReader is a Reader for the SendViewReco structure.
func (*SendViewRecoReader) ReadResponse ¶
func (o *SendViewRecoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- get_recommendations_parameters.go
- get_recommendations_responses.go
- get_recommenders_parameters.go
- get_recommenders_responses.go
- get_zone_recommendations_parameters.go
- get_zone_recommendations_responses.go
- operations_client.go
- send_add_to_cart_parameters.go
- send_add_to_cart_responses.go
- send_click_reco_parameters.go
- send_click_reco_responses.go
- send_view_product_parameters.go
- send_view_product_responses.go
- send_view_reco_parameters.go
- send_view_reco_responses.go