activateSubscription method
Activates a Subscription to enable 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<ActivateSubscriptionOutput> activateSubscription({
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)}/activate',
exceptionFnMap: _exceptionFns,
);
return ActivateSubscriptionOutput.fromJson(response);
}