recombee_api_client.api_requests.delete_purchase module¶
-
class
recombee_api_client.api_requests.delete_purchase.
DeletePurchase
(user_id: str, item_id: str, timestamp: Union[str, int] = UUID('f1162bc5-dcc3-4207-b70a-7805692f04fa'))¶ Bases:
recombee_api_client.api_requests.request.Request
Deletes an existing purchase uniquely specified by userId, itemId, and timestamp or all the purchases with given userId and itemId if timestamp is omitted.
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:
- Parameters
timestamp – Unix timestamp of the purchase. If the timestamp is omitted, then all the purchases with given userId and itemId are deleted.
-
get_body_parameters
() → dict¶ Values of body parameters as a dictionary (name of parameter: value of the parameter).
-
get_query_parameters
() → dict¶ Values of query parameters as a dictionary (name of parameter: value of the parameter).