Package recombee_api_client :: Package api_requests :: Module delete_cart_addition :: Class DeleteCartAddition
[hide private]
[frames] | no frames]

Class DeleteCartAddition

source code

     object --+    
              |    
request.Request --+
                  |
                 DeleteCartAddition

Deletes an existing cart addition uniquely specified by `userId`, `itemId`, and `timestamp` or all the cart additions with given `userId` and `itemId` if `timestamp` is omitted.

Instance Methods [hide private]
 
__init__(self, user_id, item_id, timestamp=UUID('820d6fe1-281e-4155-8cad-a73b069bf710'))
Required parameters:
source code
 
get_body_parameters(self)
Values of body parameters as a dictionary (name of parameter: value of the parameter).
source code
 
get_query_parameters(self)
Values of query parameters as a dictionary (name of parameter: value of the parameter).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from request.Request: quote_path_param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, user_id, item_id, timestamp=UUID('820d6fe1-281e-4155-8cad-a73b069bf710'))
(Constructor)

source code 

Required parameters:

Parameters:
  • user_id - ID of the user who made the cart addition.
  • item_id - ID of the item of which was added to cart.

    Optional parameters:

  • timestamp - Unix timestamp of the cart addition. If the `timestamp` is omitted, then all the cart additions with given `userId` and `itemId` are deleted.
Overrides: object.__init__