Package recombee_api_client :: Package api_requests :: Module delete_purchase :: Class DeletePurchase
[hide private]
[frames] | no frames]

Class DeletePurchase

source code

     object --+    
              |    
request.Request --+
                  |
                 DeletePurchase

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

Instance Methods [hide private]
 
__init__(self, user_id, item_id, timestamp=UUID('c7521492-5d0d-4357-bf45-14b1352f182a'))
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('c7521492-5d0d-4357-bf45-14b1352f182a'))
(Constructor)

source code 

Required parameters:

Parameters:
  • user_id - ID of the user who made the purchase.
  • item_id - ID of the item of which was purchased.

    Optional parameters:

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