update Subscription
suspend fun updateSubscription(subscriptionId: String, request: SubscriptionRequest.UpdateSubscriptionRequest): Pair<Subscription?, NetworkingError?>
Updates an existing subscription with the provided fields.
Return
A pair containing the updated Subscription on success, or a NetworkingError on failure.
Parameters
subscription Id
The unique ID of the subscription to update.
request
The fields to update on the subscription.
fun updateSubscription(subscriptionId: String, request: SubscriptionRequest.UpdateSubscriptionRequest, completionHandler: (Subscription?, NetworkingError?) -> Unit)
Updates an existing subscription and delivers the result via callback.
Parameters
subscription Id
The unique ID of the subscription to update.
request
The fields to update on the subscription.
completion Handler
Invoked with the updated Subscription on success, or a NetworkingError on failure.