operations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

type GetRecommendationsBadRequest struct {
	Payload *models.Error
}
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 (*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

func (*GetRecommendationsBody) Validate

func (o *GetRecommendationsBody) Validate(formats strfmt.Registry) error

Validate validates this get recommendations body

type GetRecommendationsNotFound

type GetRecommendationsNotFound struct {
	Payload *models.Error
}
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 (*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

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

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

WithBody adds the body to the get recommendations params

func (*GetRecommendationsParams) WithContext

WithContext adds the context to the get recommendations params

func (*GetRecommendationsParams) WithDefaults

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

WithSiteID adds the siteID to the get recommendations params

func (*GetRecommendationsParams) WithTimeout

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

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

ContextValidate validates this get recommendations params body categories items0 based on context it is used

func (*GetRecommendationsParamsBodyCategoriesItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetRecommendationsParamsBodyCategoriesItems0) Validate

Validate validates this get recommendations params body categories items0

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

type GetRecommendersBadRequest struct {
	Payload *models.Error
}
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

type GetRecommendersForbidden struct {
	Payload *models.Error
}
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

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

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

type GetZoneRecommendationsBadRequest struct {
	Payload *models.Error
}
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 (*GetZoneRecommendationsBadRequest) GetPayload

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

func (*GetZoneRecommendationsBody) Validate

func (o *GetZoneRecommendationsBody) Validate(formats strfmt.Registry) error

Validate validates this get zone recommendations body

type GetZoneRecommendationsNotFound

type GetZoneRecommendationsNotFound struct {
	Payload *models.Error
}
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 (*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

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

WithBody adds the body to the get zone recommendations params

func (*GetZoneRecommendationsParams) WithContext

WithContext adds the context to the get zone recommendations params

func (*GetZoneRecommendationsParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get zone recommendations params

func (*GetZoneRecommendationsParams) WithSiteID

WithSiteID adds the siteID to the get zone recommendations params

func (*GetZoneRecommendationsParams) WithTimeout

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

WithZoneName adds the zoneName to the get zone recommendations params

func (*GetZoneRecommendationsParams) WriteToRequest

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

ContextValidate validates this get zone recommendations params body categories items0 based on context it is used

func (*GetZoneRecommendationsParamsBodyCategoriesItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetZoneRecommendationsParamsBodyCategoriesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetZoneRecommendationsParamsBodyCategoriesItems0) Validate

Validate validates this get zone recommendations params body categories items0

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

type SendAddToCartBadRequest struct {
	Payload *models.Error
}
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

func (o *SendAddToCartBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SendAddToCartBody) Validate

func (o *SendAddToCartBody) Validate(formats strfmt.Registry) error

Validate validates this send add to cart body

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

WithBody adds the body to the send add to cart params

func (*SendAddToCartParams) WithContext

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

func (*SendAddToCartParamsBodyProductsItems0) Validate

Validate validates this send add to cart params body products items0

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

type SendClickRecoBadRequest struct {
	Payload *models.Error
}
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

func (o *SendClickRecoBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SendClickRecoBody) Validate

func (o *SendClickRecoBody) Validate(formats strfmt.Registry) error

Validate validates this send click reco body

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

WithBody adds the body to the send click reco params

func (*SendClickRecoParams) WithContext

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

type SendViewProductBadRequest struct {
	Payload *models.Error
}
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

func (o *SendViewProductBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SendViewProductBody) Validate

func (o *SendViewProductBody) Validate(formats strfmt.Registry) error

Validate validates this send view product body

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

WithBody adds the body to the send view product params

func (*SendViewProductParams) WithContext

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

type SendViewRecoBadRequest struct {
	Payload *models.Error
}
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

func (o *SendViewRecoBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SendViewRecoBody) Validate

func (o *SendViewRecoBody) Validate(formats strfmt.Registry) error

Validate validates this send view reco body

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

WithBody adds the body to the send view reco params

func (*SendViewRecoParams) WithContext

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL