update Product Phase
suspend fun updateProductPhase(productId: String, phaseId: String, request: ProductPhaseRequest.UpdateProductPhaseRequest): Pair<SubscriptionPhase?, NetworkingError?>
Updates a specific phase on a product.
Return
A Pair containing the updated SubscriptionPhase on success, or a NetworkingError on failure.
Parameters
product Id
The unique identifier of the product that owns the phase.
phase Id
The unique identifier of the phase to update.
request
The phase attributes to update.
fun updateProductPhase(productId: String, phaseId: String, request: ProductPhaseRequest.UpdateProductPhaseRequest, completionHandler: (SubscriptionPhase?, NetworkingError?) -> Unit)
Updates a specific phase on a product and delivers the result via a callback.
Parameters
product Id
The unique identifier of the product that owns the phase.
phase Id
The unique identifier of the phase to update.
request
The phase attributes to update.
completion Handler
Invoked with the updated SubscriptionPhase on success, or a NetworkingError on failure.