delete Product
suspend fun deleteProduct(productId: String): Pair<ProductsResponses.DeleteProductsResponse?, NetworkingError?>
Deletes a product by its identifier.
Return
A Pair containing a ProductsResponses.DeleteProductsResponse on success, or a NetworkingError on failure.
Parameters
product Id
The unique identifier of the product to delete.
fun deleteProduct(productId: String, completionHandler: (ProductsResponses.DeleteProductsResponse?, NetworkingError?) -> Unit)
Deletes a product by its identifier and delivers the result via a callback.
Parameters
product Id
The unique identifier of the product to delete.
completion Handler
Invoked with a ProductsResponses.DeleteProductsResponse on success, or a NetworkingError on failure.