def DeleteBasket(self, basket_id: str, headers=None) -> Response: """Remove a basket. Args: basket_id (str): The unique identifier for the basket. headers (dict, optional): Additional headers to inject. Defaults to None. Returns: Response: Response to request. """ url = f"{self.instance}/s/{self.site}/dw/shop/v20_4/{self.base}/{basket_id}" return Endpoint.DELETE(self, url, headers=headers, idempotent=True)
def DeleteOrderNote(self, order: str, note: str, headers: dict = {}) -> Response: """Delete order note. Args: order (str): String of the order number. note (str): ID of note to delete. Returns: Response: HTTPX response object """ url = f"{self.instance}/s/{self.site}/dw/shop/v20_4/{self.base}/{order}/notes/{note}" return Endpoint.DELETE(self, url=url, headers=headers)
def DeleteCodeVersion(self, code_version_id: str, headers: dict = None) -> Response: """Delete Code Version on Commerce Cloud Instance. Args: code_version_id (str): Code Version to delete. headers (dict, optional): Key value pairs for headers added to request. Defaults to None. Returns: Response: HTTPX response object. """ url = ( f"{self.instance}/s/{self.site}/dw/data/v20_4/{self.base}/{code_version_id}" ) return Endpoint.DELETE(self, url, headers=headers)
def DeleteJobExecution(self, job_id: str, id: str, headers: dict = None) -> Response: """Delete Job Execution by Execution ID for Job ID. [extended_summary] Args: job_id (str): Job ID to get information about. id (str): Execution ID to get information about. headers (dict, optional): Key value pairs for headers added to request. Defaults to None. Returns: Response: HTTPX response object. """ url = f"{self.instance}/s/{self.site}/dw/data/v20_4/{self.base}/{job_id}/executions/{id}" return Endpoint.DELETE(self, url, headers=headers)
def DeleteCustomObject(self, object_type: str, key: str, headers: dict = None) -> Response: """Delete Custom Object by Key. [extended_summary] Args: object_type (str): Object type to delete. key (str): Object key to delete. headers (dict, optional): Key value pairs for headers added to request. Defaults to None. Returns: Response: HTTPX response object. """ url = f"{self.instance}/s/{self.site}/dw/data/v20_4/{self.base}/{object_type}/{key}" return Endpoint.DELETE(self, url, headers=headers)