batchGetMemberAccountDetails method
Provides information on whether the supplied account IDs are associated with a membership.
Parameter accountIds :
Optional element to query the membership relationship status to a provided
list of account IDs.
Parameter membershipId :
Required element used in combination with BatchGetMemberAccountDetails to
identify the membership ID to query.
Implementation
Future<BatchGetMemberAccountDetailsResponse> batchGetMemberAccountDetails({
required List<String> accountIds,
required String membershipId,
}) async {
final $payload = <String, dynamic>{
'accountIds': accountIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/v1/membership/${Uri.encodeComponent(membershipId)}/batch-member-details',
exceptionFnMap: _exceptionFns,
);
return BatchGetMemberAccountDetailsResponse.fromJson(response);
}