getPortalProduct method
Gets a portal product.
May throw AccessDeniedException.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter portalProductId :
The portal product identifier.
Parameter resourceOwnerAccountId :
The account ID of the resource owner of the portal product.
Implementation
Future<GetPortalProductResponse> getPortalProduct({
required String portalProductId,
String? resourceOwnerAccountId,
}) async {
final $query = <String, List<String>>{
if (resourceOwnerAccountId != null)
'resourceOwnerAccountId': [resourceOwnerAccountId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/portalproducts/${Uri.encodeComponent(portalProductId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetPortalProductResponse.fromJson(response);
}