create Product Phase
suspend fun createProductPhase(productId: String, request: ProductPhaseRequest.CreateProductPhaseRequest): Pair<SubscriptionPhase?, NetworkingError?>
Creates a new phase for a product.
Return
A Pair containing the created SubscriptionPhase on success, or a NetworkingError on failure.
Parameters
product Id
The unique identifier of the product to add a phase to.
request
The phase attributes to create.
fun createProductPhase(productId: String, request: ProductPhaseRequest.CreateProductPhaseRequest, completionHandler: (SubscriptionPhase?, NetworkingError?) -> Unit)
Creates a new phase for a product and delivers the result via a callback.
Parameters
product Id
The unique identifier of the product to add a phase to.
request
The phase attributes to create.
completion Handler
Invoked with the created SubscriptionPhase on success, or a NetworkingError on failure.