Stop Cheque @ 2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user