updatePartnerAccount method

Future<void> updatePartnerAccount({
  1. required String partnerAccountId,
  2. required PartnerType partnerType,
  3. required SidewalkUpdateAccount sidewalk,
})

Updates properties of a partner account.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter partnerAccountId : The ID of the partner account to update.

Parameter partnerType : The partner type.

Parameter sidewalk : The Sidewalk account credentials.

Implementation

Future<void> updatePartnerAccount({
  required String partnerAccountId,
  required PartnerType partnerType,
  required SidewalkUpdateAccount sidewalk,
}) async {
  final $query = <String, List<String>>{
    'partnerType': [partnerType.value],
  };
  final $payload = <String, dynamic>{
    'Sidewalk': sidewalk,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/partner-accounts/${Uri.encodeComponent(partnerAccountId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}