Skip to main content
Version: 2.1

Beneficiary Group

To use beneficary grooup sdk client we need retrive from the SDK using rumsanService.client

  const beneficiaryGroupClient =  getBeneficiaryGroupClient(rumsanService.client);

As the mutation function or query function may contain some payload to be pass which are the parmaeter.

beneficiaryGroupClient.create
ParameterTypeDescription
beneficiaryUIDstring[]Array of UUIDs identifying beneficiaries
groupUIDstringUUID identifying the group
Response
 success: true
data: {
beneficiaryUID: string[]
groupUID: number
}

beneficiaryGroupClient.list
ParameterTypeDescription
pagenumberRequired number of page to be displayed on in
perPagenumberRequired list the number of data in a page
sortstringfor sorting the data
orderasc or desc
Response
 success: true
data: [
{

beneficiaryUID: string[]
groupUID: number
}
]

beneficiaryGroupClient.listByUUID
ParameterTypeDescription
uuidstringUUID identifying the beneficiary group
Response
 success: true
data: {
beneficiaryUID: string[]
groupUID: number
}

beneficiaryGroupClient.update

ParameterTypeDescription
uuidstringUUID identifying the beneficiary group
beneficiaryUIDstring[]Array of UUIDs identifying beneficiaries
groupUIDstringUUID identifying the group
Response
 success: true
data: {
beneficiaryUID: string[]
groupUID: number
}

beneficiaryGroupClient.remove

ParameterTypeDescription
uuidstringUUID identifying the beneficiary group
Response
 success: true
data: {
beneficiaryUID: string[]
groupUID: number
}