Skip to main content
Version: 2.1

Beneficiary Source

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

  const beneficiarySourceclient =  getBeneficiarySourcesClient(rumsanService.client);

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

beneficiarySourceclient.create
ParameterTypeDescription
source_idnumberid identifying the source
beneficiary_idnumberid identifying the beneficiary
 success: true
data: {
id: number
source_id: number
beneficiary_id: number
createdAt: Date
updatedAt: Date
}
 beneficiarySourceclient.list

Response
 success: true
data: [
{
id: number
source_id: number
beneficiary_id: number
createdAt: Date
updatedAt: Date
}
]


Response
 success: true
data:
{
id: number
source_id: number
beneficiary_id: number
createdAt: Date
updatedAt: Date
}
beneficiarySourceclient.update

ParameterTypeDescription
idnumberid identifying the beneficiary source
source_idnumberid identifying the source
beneficiary_idnumberid identifying the beneficiary
 success: true
data: {
id: number
source_id: number
beneficiary_id: number
createdAt: Date
updatedAt: Date
}
beneficiarySourceclient.remove

ParameterTypeDescription
idnumberid identifying the beneficiary source
 success: true
data: {
id: number
source_id: number
beneficiary_id: number
createdAt: Date
updatedAt: Date
}