updatePortalProduct method
Updates the portal product.
May throw AccessDeniedException.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter portalProductId :
The portal product identifier.
Parameter description :
The description.
Parameter displayName :
The displayName.
Parameter displayOrder :
The display order.
Implementation
Future<UpdatePortalProductResponse> updatePortalProduct({
required String portalProductId,
String? description,
String? displayName,
DisplayOrder? displayOrder,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'description': description,
if (displayName != null) 'displayName': displayName,
if (displayOrder != null) 'displayOrder': displayOrder,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/v2/portalproducts/${Uri.encodeComponent(portalProductId)}',
exceptionFnMap: _exceptionFns,
);
return UpdatePortalProductResponse.fromJson(response);
}