Stop Cheque @ 2

This commit is contained in:
2025-12-30 12:45:45 +05:30
parent 149d4dbc83
commit 537a4faa62
2 changed files with 49 additions and 33 deletions

View File

@@ -65,7 +65,7 @@ class ChequeService {
}) async {
try {
final response = await _dio.get(
"/api/cheque",
"/api/cheque/enquiry",
queryParameters: {
'accountNumber': accountNumber,
'instrumentType': instrType,
@@ -93,4 +93,35 @@ class ChequeService {
throw e;
}
}
Future stopCheque({
required String accountno,
required String stopFromChequeNo,
required String instrType,
String? stopToChequeNo,
String? stopIssueDate,
String? stopExpiryDate,
String? stopAmount,
String? stopComment,
String? chequeIssueDate,
}) async {
final response = await _dio.post(
'/api/cheque/stop',
data: {
'accountNumber': accountno,
'stopFromChequeNo': stopFromChequeNo,
'instrumentType': instrType,
'stopToChequeNo': stopToChequeNo,
'stopIssueDate': stopIssueDate,
'stopExpiryDate': stopExpiryDate,
'stopAmount': stopAmount,
'stopComment': stopComment,
'chqIssueDate': chequeIssueDate,
},
);
if (response.statusCode != 200) {
throw Exception("Error");
}
return response.toString();
}
}