updateProduct

Updates an existing product.

Return

A Pair containing the updated Product on success, or a NetworkingError on failure.

Parameters

productId

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

productId

The unique identifier of the product to update.

request

The product attributes to update.

completionHandler

Invoked with the updated Product on success, or a NetworkingError on failure.