updatePricingPlan method
Update the pricing plan.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter pricingMode :
The pricing mode.
Parameter bundleNames :
The bundle names.
Implementation
Future<UpdatePricingPlanResponse> updatePricingPlan({
required PricingMode pricingMode,
List<String>? bundleNames,
}) async {
final $payload = <String, dynamic>{
'pricingMode': pricingMode.value,
if (bundleNames != null) 'bundleNames': bundleNames,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/pricingplan',
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
return UpdatePricingPlanResponse.fromJson(response);
}