create Subscription Phase
suspend fun createSubscriptionPhase(subscriptionId: String, request: SubscriptionPhaseRequest.CreateSubscriptionPhaseRequest): Pair<SubscriptionPhase?, NetworkingError?>
Creates a new phase for the specified subscription.
Return
A pair of the created SubscriptionPhase and any NetworkingError that occurred.
Parameters
subscription Id
The ID of the subscription to add the phase to.
request
The details of the phase to create.
fun createSubscriptionPhase(subscriptionId: String, request: SubscriptionPhaseRequest.CreateSubscriptionPhaseRequest, completionHandler: (SubscriptionPhase?, NetworkingError?) -> Unit)
Creates a new phase for the specified subscription and delivers the result via callback.
Parameters
subscription Id
The ID of the subscription to add the phase to.
request
The details of the phase to create.
completion Handler
Callback invoked with the created SubscriptionPhase and any NetworkingError.