ProductPhasesAPI

Provides suspend and callback-based methods for managing pricing phases on products.

Product phases define the billing stages of a subscription-based product. Each operation has two overloads: a coroutine-based suspend function that returns a Pair and a callback-based variant for use outside of coroutine scopes.

Functions

Link copied to clipboard

Replaces all phases on a product in a single request.

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

Link copied to clipboard

Creates a new phase for a product.

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

Link copied to clipboard
suspend fun deleteProductPhaseWith(productId: String, phaseId: String): NetworkingError?

Deletes a specific phase from a product.

fun deleteProductPhaseWith(productId: String, phaseId: String, completionHandler: (NetworkingError?) -> Unit)

Deletes a specific phase from a product and delivers the result via a callback.

Link copied to clipboard

Retrieves all phases associated with a product.

Link copied to clipboard

Retrieves a specific phase on a product by its identifier.

Link copied to clipboard
fun getProducts(productId: String, completionHandler: (ListProductPhaseResponse?, NetworkingError?) -> Unit)

Retrieves all phases associated with a product and delivers the result via a callback.

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

Retrieves a specific phase on a product by its identifier and delivers the result via a callback.

Link copied to clipboard

Updates a specific phase on a product.

Updates a specific phase on a product and delivers the result via a callback.