update Product
suspend fun updateProduct(productId: String, request: ProductsRequests.UpdateProductRequest): Pair<Product?, NetworkingError?>
Updates an existing product.
Return
A Pair containing the updated Product on success, or a NetworkingError on failure.
Parameters
product Id
The unique identifier of the product to update.
request
The product attributes to update.
fun updateProduct(productId: String, request: ProductsRequests.UpdateProductRequest, completionHandler: (Product?, NetworkingError?) -> Unit)
Updates an existing product and delivers the result via a callback.
Parameters
product Id
The unique identifier of the product to update.
request
The product attributes to update.
completion Handler
Invoked with the updated Product on success, or a NetworkingError on failure.