SubscriptionPhasesAPI

Provides suspend and callback-based operations for managing subscription phases.

Functions

Link copied to clipboard

Replaces all phases on the specified subscription in a single request.

Replaces all phases on the specified subscription in a single request and delivers the result via callback.

Link copied to clipboard

Creates a new phase for the specified subscription.

Creates a new phase for the specified subscription and delivers the result via callback.

Link copied to clipboard
suspend fun deleteSubscriptionPhaseWith(subscriptionId: String, phaseId: String): NetworkingError?

Deletes a single phase from the specified subscription.

fun deleteSubscriptionPhaseWith(subscriptionId: String, phaseId: String, completionHandler: (NetworkingError?) -> Unit)

Deletes a single phase from the specified subscription and delivers the result via callback.

Link copied to clipboard

Fetches all phases for the specified subscription.

Link copied to clipboard
suspend fun getSubscriptionPhaseWith(subscriptionId: String, phaseId: String): Pair<SubscriptionPhase?, NetworkingError?>

Fetches a single phase by ID from the specified subscription.

Link copied to clipboard
fun getSubscriptions(subscriptionId: String, completionHandler: (ListSubscriptionPhaseResponse?, NetworkingError?) -> Unit)

Fetches all phases for the specified subscription and delivers the result via callback.

Link copied to clipboard
fun getSubscriptionWith(subscriptionId: String, phaseId: String, completionHandler: (SubscriptionPhase?, NetworkingError?) -> Unit)

Fetches a single phase by ID from the specified subscription and delivers the result via callback.

Link copied to clipboard

Updates an existing phase on the specified subscription.

Updates an existing phase on the specified subscription and delivers the result via callback.