Till PMSBY/JJBY test sim binded apk release
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user