APY integrated without testing...
This commit is contained in:
@@ -210,4 +210,125 @@ String? policystatus,
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future<dynamic> fetchpapydetails({
|
||||
required String accountno,
|
||||
}) async {
|
||||
try {
|
||||
final response = await _dio.post(
|
||||
"/api/apy/req/APY",
|
||||
data: {
|
||||
'accountNo': accountno,
|
||||
},
|
||||
options: Options(
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
log("PMY Details Response: ${response.data}");
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
return response.data;
|
||||
} else {
|
||||
throw Exception("INTERNAL SERVER ERROR");
|
||||
}
|
||||
} catch (e) {
|
||||
log("Error fetching APY details: $e");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future registerAPY({
|
||||
String? accountno,
|
||||
String? customerfirstname,
|
||||
String? customermiddlename,
|
||||
String? customerlastname,
|
||||
String? availablebalance,
|
||||
String? customerdob,
|
||||
String? emailid,
|
||||
String? gender,
|
||||
String? married,
|
||||
String? nomineename,
|
||||
String? relationwithsubscriber,
|
||||
String? mobilenumber,
|
||||
String? nomineeminor,
|
||||
String? customerno,
|
||||
String? beneficaryofothersociatysecurityschemes,
|
||||
String? whetherincometaxpayer,
|
||||
String? customertitle,
|
||||
String? aadharno,
|
||||
String? nameofspouse,
|
||||
String? ageofjoining,
|
||||
String? pensionamtoptedfor,
|
||||
String? montlycontributioncalculate,
|
||||
String? collectionchannel,
|
||||
String? subsequentContributionDebitDate,
|
||||
String? secondnomineeminor,
|
||||
String? secondnomineename,
|
||||
String? secondrelationshipwithsubscriber,
|
||||
String? pincode,
|
||||
String? fatcacrsapplicable,
|
||||
String? countryofbirth,
|
||||
String? countryofcitizenship,
|
||||
String? countryofresidencefortaxpurpose,
|
||||
String? uspersonflag,
|
||||
String? fatcadeclarationcount,
|
||||
String? documentevidencingcitizenshipflag,
|
||||
String? reasonfornoevidence,
|
||||
String? nameofdocumentforcitizenshipevidence,
|
||||
String? modeofcollection,
|
||||
String? contributionType,
|
||||
}) async {
|
||||
final response = await _dio.post(
|
||||
'/api/apy/create/APY',
|
||||
options: Options(
|
||||
validateStatus: (int? status) => true,
|
||||
receiveDataWhenStatusError: true,
|
||||
),
|
||||
data: {
|
||||
'accountno':accountno,
|
||||
'customerfirstname':customerfirstname,
|
||||
'customermiddlename':customermiddlename,
|
||||
'customerlastname':customerlastname,
|
||||
'availablebalance':availablebalance,
|
||||
'customerdob':customerdob,
|
||||
'emailid':emailid,
|
||||
'gender':gender,
|
||||
'married':married,
|
||||
'nomineename':nomineename,
|
||||
'relationwithsubscriber':relationwithsubscriber,
|
||||
'mobilenumber':mobilenumber,
|
||||
'nomineeminor':nomineeminor,
|
||||
'customerno':customerno,
|
||||
'beneficaryofothersociatysecurityschemes':beneficaryofothersociatysecurityschemes,
|
||||
'whetherincometaxpayer':whetherincometaxpayer,
|
||||
'customertitle':customertitle,
|
||||
'aadharno':aadharno,
|
||||
'nameofspouse':nameofspouse,
|
||||
'ageofjoining':ageofjoining,
|
||||
'pensionamtoptedfor':pensionamtoptedfor,
|
||||
'montlycontributioncalculate':montlycontributioncalculate,
|
||||
'collectionchannel':collectionchannel,
|
||||
'subsequentContributionDebitDate':subsequentContributionDebitDate,
|
||||
'secondnomineeminor':secondnomineeminor,
|
||||
'secondnomineename':secondnomineename,
|
||||
'secondrelationshipwithsubscriber':secondrelationshipwithsubscriber,
|
||||
'pincode':pincode,
|
||||
'fatcacrsapplicable':fatcacrsapplicable,
|
||||
'countryofbirth':countryofbirth,
|
||||
'countryofcitizenship':countryofcitizenship,
|
||||
'countryofresidencefortaxpurpose':countryofresidencefortaxpurpose,
|
||||
'uspersonflag':uspersonflag,
|
||||
'fatcadeclarationcount':fatcadeclarationcount,
|
||||
'documentevidencingcitizenshipflag':documentevidencingcitizenshipflag,
|
||||
'reasonfornoevidence':reasonfornoevidence,
|
||||
'nameofdocumentforcitizenshipevidence':nameofdocumentforcitizenshipevidence,
|
||||
'modeofcollection':modeofcollection,
|
||||
'contributionType':contributionType,
|
||||
},
|
||||
);
|
||||
return response.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user