deactivateSubscription method
Deactivates a Subscription to stop billing for a user.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter domainId :
The unique identifier of the parent Domain.
Parameter subscriptionId :
The unique identifier of the Subscription.
Implementation
Future<DeactivateSubscriptionOutput> deactivateSubscription({
required String domainId,
required String subscriptionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/domains/${Uri.encodeComponent(domainId)}/subscriptions/${Uri.encodeComponent(subscriptionId)}/deactivate',
exceptionFnMap: _exceptionFns,
);
return DeactivateSubscriptionOutput.fromJson(response);
}