cancelMembership method

Future<CancelMembershipResponse> cancelMembership({
  1. required String membershipId,
})

Cancels an existing membership.

Parameter membershipId : Required element used in combination with CancelMembershipRequest to identify the membership ID to cancel.

Implementation

Future<CancelMembershipResponse> cancelMembership({
  required String membershipId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri: '/v1/membership/${Uri.encodeComponent(membershipId)}',
    exceptionFnMap: _exceptionFns,
  );
  return CancelMembershipResponse.fromJson(response);
}