all method
Future<Response<RazorpayStakeholderListResponse> >
all({
- required String accountId,
- void callback(
- RazorpayApiException?,
- Response<
RazorpayStakeholderListResponse> ?
Fetch all Stakeholders for an account
@param accountId - The unique identifier of the account.
Implementation
Future<Response<RazorpayStakeholderListResponse>> all({
required String accountId,
void Function(
RazorpayApiException?,
Response<RazorpayStakeholderListResponse>?,
)? callback,
}) async {
if (accountId.isEmpty) {
throw ArgumentError('accountId is required');
}
return api.get<RazorpayStakeholderListResponse>(
{
'version': 'v2',
'url': '$BASE_URL/$accountId/stakeholders',
},
fromJsonFactory: RazorpayStakeholderListResponse.fromJson,
callback: callback,
);
}