Till PMSBY/JJBY test sim binded apk release

This commit is contained in:
2026-03-16 16:39:31 +05:30
parent dfdc293309
commit 298c0c199f
3 changed files with 150 additions and 36 deletions

View File

@@ -126,4 +126,27 @@ class BeneficiaryService {
throw Exception('Unexpected error: ${e.toString()}');
}
}
Future<Response> updateLimit({
required String beneficiaryAccountNo,
required String newLimit,
}) async {
log('inside update limit of beneficiary service');
final response = await _dio.patch(
'/api/beneficiary/update-limit',
data: {
'beneficiaryAccountNo': beneficiaryAccountNo,
'newLimit': int.tryParse(newLimit),
},
options: Options(
sendTimeout: const Duration(seconds: 60),
receiveTimeout: const Duration(seconds: 60),
),
);
if (response.statusCode != 200) {
throw Exception("INTERNAL SERVER ERROR");
}
return response;
}
}