Browse Source

Issue fixes

master
Arjun Dhami 7 months ago
parent
commit
4a75e2c350
  1. 36
      PostmanCollection/RemitInbound.postman_collection.json
  2. BIN
      RemitInboundAPI/.vs/ProjectEvaluation/remitinboundapi.metadata.v7.bin
  3. BIN
      RemitInboundAPI/.vs/ProjectEvaluation/remitinboundapi.projects.v7.bin
  4. BIN
      RemitInboundAPI/.vs/RemitInboundAPI/DesignTimeBuild/.dtbcache.v2
  5. BIN
      RemitInboundAPI/.vs/RemitInboundAPI/v17/.suo
  6. 1
      RemitInboundAPI/RemitInboundAPI.Business/Business/RemitBusiness/IRemitBusiness.cs
  7. 32
      RemitInboundAPI/RemitInboundAPI.Business/Business/RemitBusiness/RemitBusiness.cs
  8. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Business.dll
  9. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Business.pdb
  10. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Common.dll
  11. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Common.pdb
  12. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Repository.dll
  13. BIN
      RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb
  14. 2
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.AssemblyInfo.cs
  15. 2
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.AssemblyInfoInputs.cache
  16. BIN
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.csproj.AssemblyReference.cache
  17. BIN
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.dll
  18. BIN
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.pdb
  19. BIN
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/ref/RemitInboundAPI.Business.dll
  20. BIN
      RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/refint/RemitInboundAPI.Business.dll
  21. BIN
      RemitInboundAPI/RemitInboundAPI.Common/bin/Debug/net8.0/RemitInboundAPI.Common.dll
  22. BIN
      RemitInboundAPI/RemitInboundAPI.Common/bin/Debug/net8.0/RemitInboundAPI.Common.pdb
  23. 2
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.AssemblyInfo.cs
  24. 2
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.AssemblyInfoInputs.cache
  25. BIN
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.dll
  26. BIN
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.pdb
  27. BIN
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/ref/RemitInboundAPI.Common.dll
  28. BIN
      RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/refint/RemitInboundAPI.Common.dll
  29. 1
      RemitInboundAPI/RemitInboundAPI.Repository/Repository/RemitRepository/IRemitRepository.cs
  30. 71
      RemitInboundAPI/RemitInboundAPI.Repository/Repository/RemitRepository/RemitRepository.cs
  31. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Common.dll
  32. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Common.pdb
  33. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Repository.dll
  34. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb
  35. 2
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.AssemblyInfo.cs
  36. 2
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.AssemblyInfoInputs.cache
  37. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.csproj.AssemblyReference.cache
  38. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.dll
  39. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.pdb
  40. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/ref/RemitInboundAPI.Repository.dll
  41. BIN
      RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/refint/RemitInboundAPI.Repository.dll
  42. 26
      RemitInboundAPI/RemitInboundAPI/Controllers/RemitController.cs
  43. 3
      RemitInboundAPI/RemitInboundAPI/appsettings.json
  44. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Business.dll
  45. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Business.pdb
  46. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Common.dll
  47. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Common.pdb
  48. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Repository.dll
  49. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb
  50. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.dll
  51. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.exe
  52. BIN
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.pdb
  53. 3
      RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/appsettings.json
  54. 2
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.AssemblyInfo.cs
  55. 2
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.AssemblyInfoInputs.cache
  56. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.csproj.AssemblyReference.cache
  57. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.dll
  58. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.pdb
  59. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/apphost.exe
  60. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/ref/RemitInboundAPI.dll
  61. BIN
      RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/refint/RemitInboundAPI.dll

36
PostmanCollection/RemitInbound.postman_collection.json

@ -75,20 +75,20 @@
"auth": { "auth": {
"type": "bearer", "type": "bearer",
"bearer": { "bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyTmFtZSI6ImFqZXkiLCJBZ2VudElkIjoiMzk0MzkwIiwiU2Vzc2lvbklkZW50aWZpZXIiOiI4ZTcwMTE5Ny0yNGE4LTRjMzktOTczZC1lNWI2YWMyN2E5MjEiLCJleHAiOjE3MDczMjM0NDcsImlzcyI6IklNM1VrIiwiYXVkIjoiIU0zVW4xdDNESyFuR2QwbVUkM1JzIn0.DtODcRKkf-RSfxnY7FonBHu3D3cqZXmmCfM9dDDT06o"
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyTmFtZSI6ImFqZXkiLCJBZ2VudElkIjoiMzk0MzkwIiwiU2Vzc2lvbklkZW50aWZpZXIiOiIxY2EwY2M5Ni03ODljLTQxMDgtODAwZC1kNmIxMGUwZjM2NTUiLCJleHAiOjE3MDkwNDY2NDcsImlzcyI6IklNM1VrIiwiYXVkIjoiIU0zVW4xdDNESyFuR2QwbVUkM1JzIn0.PYZhTcsH4aBdqdT98-JdQfQwr92PZtXmdipK46zapLM"
} }
}, },
"method": "POST", "method": "POST",
"header": [ "header": [
{ {
"key": "Signature", "key": "Signature",
"value": "hmacauth c3a09a0c-dd5b-4d84-acf2-81d613f2f3cb:dK2QcxN0HLhBKJGRpd7d7Zc05ckauaV/xqXxKU8hU8c=:5fe63882ef7642828cedc5b8abd48e60:1706634186",
"value": "hmacauth c3a09a0c-dd5b-4d84-acf2-81d613f2f3cb:keySG+nI8XRHDSB+1EWYqif5XYu+PdMTm31vrn+IhM4=:891b4589e2f84cd6863eb2a46b01f4e8:1709044950",
"type": "text" "type": "text"
} }
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\r\n \"partnerSessionId\": \"PARTNER-XXX-SESSION-ID1\",\r\n \"sendingCountryCode\": \"JP\",\r\n \"sendingCurrencyCode\": \"JPY\",\r\n \"payoutCountryCode\": \"NP\",\r\n \"payoutCurrencyCode\": \"NPR\",\r\n \"collectionAmount\": \"500000\",\r\n \"payoutAmount\": \"0\",\r\n \"paymentTypeCode\": \"CP\"\r\n}",
"raw": "{\r\n \"partnerSessionId\": \"PARTNER-XXX-SESSION-ID1\",\r\n \"sendingCountryCode\": \"JP\",\r\n \"sendingCurrencyCode\": \"JPY\",\r\n \"payoutCountryCode\": \"NP\",\r\n \"payoutCurrencyCode\": \"NPR\",\r\n \"collectionAmount\": \"500000\",\r\n \"payoutAmount\": \"0\",\r\n \"payoutTypeCode\": \"CP\",\r\n \"calcBy\": \"C\"\r\n}",
"options": { "options": {
"raw": { "raw": {
"language": "json" "language": "json"
@ -98,6 +98,36 @@
"url": "https://localhost:7026/api/v1/Remit/calculateExRate" "url": "https://localhost:7026/api/v1/Remit/calculateExRate"
}, },
"response": [] "response": []
},
{
"name": "TransactionValidate",
"request": {
"auth": {
"type": "bearer",
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyTmFtZSI6ImFqZXkiLCJBZ2VudElkIjoiMzk0MzkwIiwiU2Vzc2lvbklkZW50aWZpZXIiOiJhYjliZWNlZS05MzI3LTRhOWUtYTQyNS0xZjI0NzI3ZmQ5NGQiLCJleHAiOjE3MDkxODA0MDMsImlzcyI6IklNM1VrIiwiYXVkIjoiIU0zVW4xdDNESyFuR2QwbVUkM1JzIn0.yhKXOLaFnUMOHswT4VeYia1G29HtQHTxbRXtG_C9hfU"
}
},
"method": "POST",
"header": [
{
"key": "Signature",
"value": "hmacauth c3a09a0c-dd5b-4d84-acf2-81d613f2f3cb:qVyNVSavbaSoSoSf3b2rxceXt1xVnHGcy8VBXlPf+k8=:cc73fafb8e6647dc8f259f612ad5d51e:1709178622",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"partnerSessionId\": \"SADASD234432SDDSA\",\r\n \"remitSenderDetails\": {\r\n \"senderFirstName\": \"ARJUN\",\r\n \"senderMiddleName\": \"SINGH\",\r\n \"senderLastName\": \"DHAMI\",\r\n \"senderDOB\": \"2048-10-01\",\r\n \"senderIdType\": \"120\",\r\n \"senderIdNo\": \"93281432\",\r\n \"senderIdIssuedDate\": \"2022-01-01\",\r\n \"senderIdValidDate\": \"2030-01-01\",\r\n \"senderMobile\": \"981281928\",\r\n \"senderNativeCountryCode\": \"NP\",\r\n \"senderCity\": \"TOKYO\",\r\n \"senderAddress\": \"TOKYO-32, JAPAN\",\r\n \"senderEmail\": \"ARJUNDHAMI554@GMAIL.COM\",\r\n \"senderGender\": \"M\"\r\n },\r\n \"remitReceiverDetails\": {\r\n \"receiverFirstName\": \"ARJUN\",\r\n \"receiverMiddleName\": \"SINGH\",\r\n \"receiverLastName\": \"DHAMI\",\r\n \"receiverIdType\": \"102\",\r\n \"receiverIdNo\": \"19281982\",\r\n \"receiverIdIssued\": \"2022-01-01\",\r\n \"receiverIdValid\": \"2030-01-01\",\r\n \"receiverMobile\": \"9819281928\",\r\n \"receiverCity\": \"KATHMANDU\",\r\n \"receiverAddress\": \"KOTESHWOR-32, KATHMANDU, NEPAL\",\r\n \"receiverAccountNo\": \"02138921839\",\r\n \"receiverEmail\": \"ARJUNDHAMI554@GMAIL.COM\"\r\n },\r\n \"remittanceDetails\": {\r\n \"sendingCountryCode\": \"JP\",\r\n \"payoutCountryCode\": \"NP\",\r\n \"payoutTypeCode\": \"CP\",\r\n \"payoutBankCode\": \"\",\r\n \"payoutBankBranchCode\": \"\",\r\n \"payoutCurrencyCode\": \"NPR\",\r\n \"sendingCurrencyCode\": \"JPY\",\r\n \"collectionAmount\": \"500000\",\r\n \"transferAmount\": \"498500.00\",\r\n \"payoutAmount\": \"438580.00\",\r\n \"serviceCharge\": \"1500\",\r\n \"exchangeRate\": \"00.8798\",\r\n \"remittancePurpose\": \"1290\",\r\n \"sourceOfFund\": \"1120\",\r\n \"relationship\": \"1239\",\r\n \"occupation\": \"19182\",\r\n \"calcBy\": \"C\"\r\n },\r\n \"partnerTransactionId\": \"22222222211\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "https://localhost:7026/api/v1/Remit/sendRemittance"
},
"response": []
} }
] ]
} }

BIN
RemitInboundAPI/.vs/ProjectEvaluation/remitinboundapi.metadata.v7.bin

BIN
RemitInboundAPI/.vs/ProjectEvaluation/remitinboundapi.projects.v7.bin

BIN
RemitInboundAPI/.vs/RemitInboundAPI/DesignTimeBuild/.dtbcache.v2

BIN
RemitInboundAPI/.vs/RemitInboundAPI/v17/.suo

1
RemitInboundAPI/RemitInboundAPI.Business/Business/RemitBusiness/IRemitBusiness.cs

@ -7,7 +7,6 @@ namespace RemitInboundAPI.Business.Business.RemitBusiness
public interface IRemitBusiness public interface IRemitBusiness
{ {
Task<CommonResponse> CalculateExRate(ExRateModel model, UserLoginModel loginDetails); Task<CommonResponse> CalculateExRate(ExRateModel model, UserLoginModel loginDetails);
Task<CommonResponse> VerifyRemittance(SendRemittanceModel model, UserLoginModel loginDetails);
Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails); Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails);
} }
} }

32
RemitInboundAPI/RemitInboundAPI.Business/Business/RemitBusiness/RemitBusiness.cs

@ -53,41 +53,11 @@ namespace RemitInboundAPI.Business.Business.RemitBusiness
return _response; return _response;
} }
public async Task<CommonResponse> VerifyRemittance(SendRemittanceModel model, UserLoginModel loginDetails)
{
CommonResponse _response;
SendTransactionValidationHelper validationHelper = new SendTransactionValidationHelper();
var _logRequestModel = new InboundLogModel(model.SessionIdentifier, model.ProcessIdentifier, loginDetails.UserName, "VerifyRemittance", model.IpAddress, model.PartnerSessionId, JsonConvert.SerializeObject(model));
var _logResponse = await _applicationRepo.LogInboundData(_logRequestModel);
if (_logResponse.ResponseCode == ResponseHelper.SUCCESS)
{
_response = await validationHelper.SendTransactionValidationRequest(model);
if (_response.ResponseCode == ResponseHelper.SUCCESS)
{
_response = await _remitRepo.VerifyRemittance(model, loginDetails);
}
else
{
_logger.LogError("REMITBUSINESS | VERIFYREMITTANCE | VALIDATION ERROR | " + JsonConvert.SerializeObject(_response));
}
_applicationRepo.LogUpdateInboundData(_response, _logResponse.Id);
}
else
{
_response = new CommonResponse(ResponseHelper.FAILED, _logResponse.ResponseMessage);
_logger.LogError("REMITBUSINESS | VERIFYREMITTANCE | LOGGING ERROR | " + JsonConvert.SerializeObject(_response));
}
return _response;
}
public async Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails) public async Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails)
{ {
CommonResponse _response; CommonResponse _response;
SendTransactionValidationHelper validationHelper = new SendTransactionValidationHelper(); SendTransactionValidationHelper validationHelper = new SendTransactionValidationHelper();
var _logRequestModel = new InboundLogModel(model.SessionIdentifier, model.ProcessIdentifier, loginDetails.UserName, "SendRemittance", model.IpAddress, model.PartnerSessionId, JsonConvert.SerializeObject(model));
var _logRequestModel = new InboundLogModel(model.SessionIdentifier, model.ProcessIdentifier, loginDetails.UserName, "VerifyRemittance", model.IpAddress, model.PartnerSessionId, JsonConvert.SerializeObject(model));
var _logResponse = await _applicationRepo.LogInboundData(_logRequestModel); var _logResponse = await _applicationRepo.LogInboundData(_logRequestModel);
if (_logResponse.ResponseCode == ResponseHelper.SUCCESS) if (_logResponse.ResponseCode == ResponseHelper.SUCCESS)

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Business.dll

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Business.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Common.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Repository.dll

BIN
RemitInboundAPI/RemitInboundAPI.Business/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb

2
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Business")] [assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Business")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f9a56d0d7c6a1dfb640df9a435dda9cec46de5dd")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+08f2f901b39e1747cc954c80c7ce1d48d039d34d")]
[assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Business")] [assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Business")]
[assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Business")] [assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Business")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

2
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.AssemblyInfoInputs.cache

@ -1 +1 @@
295fb4f7a4eaf379e76e44ec989f43bdd2fd887f1f1d6da52bfd3b837e445855
cf3e26a634283ce0d503764c2b4dbf6bdd620db9b5280d170e095cba1305aa90

BIN
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.csproj.AssemblyReference.cache

BIN
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.dll

BIN
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/RemitInboundAPI.Business.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/ref/RemitInboundAPI.Business.dll

BIN
RemitInboundAPI/RemitInboundAPI.Business/obj/Debug/net8.0/refint/RemitInboundAPI.Business.dll

BIN
RemitInboundAPI/RemitInboundAPI.Common/bin/Debug/net8.0/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI.Common/bin/Debug/net8.0/RemitInboundAPI.Common.pdb

2
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Common")] [assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Common")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f9a56d0d7c6a1dfb640df9a435dda9cec46de5dd")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+08f2f901b39e1747cc954c80c7ce1d48d039d34d")]
[assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Common")] [assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Common")]
[assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Common")] [assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Common")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

2
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.AssemblyInfoInputs.cache

@ -1 +1 @@
3cba95db5031388343b71b29af3e08611c0b1ed31142435d14cc1309d6e527c1
5da2ce40eea0aece55eeb2a8c9cde2dbb4d9258d9da8ddf86e762ab20c41a436

BIN
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/RemitInboundAPI.Common.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/ref/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI.Common/obj/Debug/net8.0/refint/RemitInboundAPI.Common.dll

1
RemitInboundAPI/RemitInboundAPI.Repository/Repository/RemitRepository/IRemitRepository.cs

@ -7,7 +7,6 @@ namespace RemitInboundAPI.Repository.Repository.RemitRepository
public interface IRemitRepository public interface IRemitRepository
{ {
Task<CommonResponse> CalculateExRate(ExRateModel model, UserLoginModel loginDetails); Task<CommonResponse> CalculateExRate(ExRateModel model, UserLoginModel loginDetails);
Task<CommonResponse> VerifyRemittance(SendRemittanceModel model, UserLoginModel loginDetails);
Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails); Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails);
} }
} }

71
RemitInboundAPI/RemitInboundAPI.Repository/Repository/RemitRepository/RemitRepository.cs

@ -74,12 +74,12 @@ namespace RemitInboundAPI.Repository.Repository.RemitRepository
return _response; return _response;
} }
public async Task<CommonResponse> VerifyRemittance(SendRemittanceModel model, UserLoginModel loginDetails)
public async Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails)
{ {
var _response = new CommonResponse(); var _response = new CommonResponse();
try try
{ {
var sql = "EXEC PROC_REMIT_INBOUND_TRANSACTION_VALIDATE @Flag = 'VALIDATE'";
var sql = "EXEC PROC_REMIT_INBOUND_TRANSACTION_SEND @Flag = 'SEND'";
sql += ", @UserName= " + _connHelper.FilterString(loginDetails.UserName); sql += ", @UserName= " + _connHelper.FilterString(loginDetails.UserName);
sql += ", @AgentId = " + _connHelper.FilterString(loginDetails.AgentId); sql += ", @AgentId = " + _connHelper.FilterString(loginDetails.AgentId);
sql += ", @IpAddress = " + _connHelper.FilterString(loginDetails.IpAddress); sql += ", @IpAddress = " + _connHelper.FilterString(loginDetails.IpAddress);
@ -127,62 +127,27 @@ namespace RemitInboundAPI.Repository.Repository.RemitRepository
sql += ", @ReceiverAddress = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverAddress); sql += ", @ReceiverAddress = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverAddress);
sql += ", @ReceiverEmail = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverEmail); sql += ", @ReceiverEmail = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverEmail);
sql += ", @ReceiverAccountNo = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverAccountNo); sql += ", @ReceiverAccountNo = " + _connHelper.FilterString(model.RemitReceiverDetails.ReceiverAccountNo);
_logger.LogDebug("REMITREPOSITORY | VERIFYREMITTANCE | SQL | " + sql);
var _dbResponse = _connHelper.ParseDbResult(sql);
_response.ResponseCode = _dbResponse.ResponseCode;
_response.ResponseMessage = _dbResponse.ResponseMessage;
if (_dbResponse.ResponseCode == ResponseHelper.SUCCESS)
{
_response.Data = new { IMETransactionId = _dbResponse.Id, PartnerTransactionId = _dbResponse.Extra };
}
}
catch (Exception ex)
{
_response.ResponseCode = ResponseHelper.EXCEPTION;
_response.ResponseMessage = "Exception occured: " + ex.Message;
_logger.LogError("REMITREPOSITORY | VERIFYREMITTANCE | EXCEPTION | " + JsonConvert.SerializeObject(_response));
}
return _response;
}
public async Task<CommonResponse> SendRemittance(SendRemittanceModel model, UserLoginModel loginDetails)
{
var _response = new CommonResponse();
try
{
var sql = "EXEC PROC_REMIT_INBOUND_EXRATE @Flag = 'EXRATE'";
sql += ", @UserName= " + _connHelper.FilterString(loginDetails.UserName);
sql += ", @AgentId = " + _connHelper.FilterString(loginDetails.AgentId);
sql += ", @CheckOfacFlag = " + _connHelper.FilterString(Utilities.ReadAppSettings("CheckOfacFlag"));
_logger.LogDebug("REMITREPOSITORY | SENDREMITTANCE | SQL | " + sql); _logger.LogDebug("REMITREPOSITORY | SENDREMITTANCE | SQL | " + sql);
var dt = _connHelper.ExecuteDataTable(sql);
if (dt == null || dt.Rows.Count <= 0)
{
_response.ResponseCode = ResponseHelper.FAILED;
_response.ResponseMessage = ResponseMessageHelper.DBNULLERROR;
var _transactionResponse = _connHelper.ExecuteDataRow(sql);
_logger.LogError("REMITREPOSITORY | SENDREMITTANCE | DBNULLERROR | " + JsonConvert.SerializeObject(_response));
}
else
_response.ResponseCode = Convert.ToInt16(_transactionResponse["ErrorCode"]);
_response.ResponseMessage = Convert.ToString(_transactionResponse["ErrorMessage"]);
if (_response.ResponseCode == ResponseHelper.SUCCESS)
{ {
_response = _connHelper.ParseDbResult(dt);
if (_response.ResponseCode == ResponseHelper.SUCCESS)
_response.Data = new
{ {
var exRateResponse = new
{
ServiceCharge = Utilities.ShowDecimal(Convert.ToString(dt.Rows[0]["ServiceCharge"])),
ExRate = Utilities.ShowDecimalRate(Convert.ToString(dt.Rows[0]["ExRate"])),
PayoutCurrencyCode = Convert.ToString(dt.Rows[0]["PayoutCurrencyCode"]),
CurrDecimal = Convert.ToString(dt.Rows[0]["CurrDecimal"]),
CollectionAmount = Utilities.ShowDecimal(Convert.ToString(dt.Rows[0]["CollectionAmount"])),
TransferAmount = Utilities.ShowDecimal(Convert.ToString(dt.Rows[0]["TransferAmount"])),
PayoutAmount = Utilities.ShowDecimal(Convert.ToString(dt.Rows[0]["PayoutAmount"]))
};
_response.Data = exRateResponse;
}
IMEControlNo = Convert.ToString(_transactionResponse["IMEControlNo"]),
PartnerTransactionId = Convert.ToString(_transactionResponse["PartnerTransactionId"]),
TranStatus = Convert.ToString(_transactionResponse["TranStatus"]),
//SendingCommission = Utilities.ShowDecimal(Convert.ToString(_transactionResponse["SendingCommission"])),
//SendingCommissionCurrency = Convert.ToString(_transactionResponse["SendingCommissionCurrency"]),
CollectionAmount = Utilities.ShowDecimal(Convert.ToString(_transactionResponse["CollectionAmount"])),
TransferAmount = Utilities.ShowDecimal(Convert.ToString(_transactionResponse["TransferAmount"])),
PayoutAmount = Utilities.ShowDecimal(Convert.ToString(_transactionResponse["PayoutAmount"])),
ExRate = Utilities.ShowDecimalRate(Convert.ToString(_transactionResponse["ExRate"]))
};
} }
} }
catch (Exception ex) catch (Exception ex)

BIN
RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Common.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Repository.dll

BIN
RemitInboundAPI/RemitInboundAPI.Repository/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb

2
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Repository")] [assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI.Repository")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f9a56d0d7c6a1dfb640df9a435dda9cec46de5dd")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+08f2f901b39e1747cc954c80c7ce1d48d039d34d")]
[assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Repository")] [assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI.Repository")]
[assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Repository")] [assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI.Repository")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

2
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.AssemblyInfoInputs.cache

@ -1 +1 @@
765586df29ca4b7fe968debd1a0af6672e1ef04052b660107b89bb6b3d5d6128
154d3801c85428291f40ca89d0c83246e5771f3af66b329ecd85126981f3b845

BIN
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.csproj.AssemblyReference.cache

BIN
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.dll

BIN
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/RemitInboundAPI.Repository.pdb

BIN
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/ref/RemitInboundAPI.Repository.dll

BIN
RemitInboundAPI/RemitInboundAPI.Repository/obj/Debug/net8.0/refint/RemitInboundAPI.Repository.dll

26
RemitInboundAPI/RemitInboundAPI/Controllers/RemitController.cs

@ -45,28 +45,6 @@ namespace RemitInboundAPI.Controllers
return Ok(_response); return Ok(_response);
} }
[HttpPost]
[Route("verifyRemittance")]
[Authorize(AuthenticationSchemes = "ApplicationAuthorization")]
public async Task<IActionResult> VerifyRemittance(SendRemittanceModel model)
{
var _response = new CommonResponse();
var loginDetails = await AuthorizationHelper.GetLoginDetails(User);
model.SessionIdentifier = loginDetails.SessionIdentifier; //unique for one session
model.ProcessIdentifier = Convert.ToString(Guid.NewGuid()); //unique for each process
model.IpAddress = Utilities.GetIpAddress(HttpContext);
using (LogContext.PushProperty("PartnerSessionId", model.PartnerSessionId))
using (LogContext.PushProperty("ProcessIdentifier", model.ProcessIdentifier))
using (LogContext.PushProperty("SessionIdentifier", model.SessionIdentifier))
{
_logger.LogInformation($"REMITCONTROLLER | VERIFYREMITTANCE | REQUEST | {JsonConvert.SerializeObject(model)}");
_response = await _remitBusiness.VerifyRemittance(model, loginDetails);
_logger.LogInformation($"REMITCONTROLLER | VERIFYREMITTANCE | RESPONSE | {JsonConvert.SerializeObject(_response)}");
}
return Ok(_response);
}
[HttpPost] [HttpPost]
[Route("sendRemittance")] [Route("sendRemittance")]
[Authorize(AuthenticationSchemes = "ApplicationAuthorization")] [Authorize(AuthenticationSchemes = "ApplicationAuthorization")]
@ -82,9 +60,9 @@ namespace RemitInboundAPI.Controllers
using (LogContext.PushProperty("ProcessIdentifier", model.ProcessIdentifier)) using (LogContext.PushProperty("ProcessIdentifier", model.ProcessIdentifier))
using (LogContext.PushProperty("SessionIdentifier", model.SessionIdentifier)) using (LogContext.PushProperty("SessionIdentifier", model.SessionIdentifier))
{ {
_logger.LogInformation($"REMITCONTROLLER | SENDREMITTANCE | REQUEST | {JsonConvert.SerializeObject(model)}");
_logger.LogInformation($"REMITCONTROLLER | VERIFYREMITTANCE | REQUEST | {JsonConvert.SerializeObject(model)}");
_response = await _remitBusiness.SendRemittance(model, loginDetails); _response = await _remitBusiness.SendRemittance(model, loginDetails);
_logger.LogInformation($"REMITCONTROLLER | SENDREMITTANCE | RESPONSE | {JsonConvert.SerializeObject(_response)}");
_logger.LogInformation($"REMITCONTROLLER | VERIFYREMITTANCE | RESPONSE | {JsonConvert.SerializeObject(_response)}");
} }
return Ok(_response); return Ok(_response);
} }

3
RemitInboundAPI/RemitInboundAPI/appsettings.json

@ -71,5 +71,6 @@
"ValidIssuer": "IM3Uk", "ValidIssuer": "IM3Uk",
"Secret": "v9FPjwtQVCpMMLOt+zCLPo2Y4Hy5lWgxW8JPxx+Pg6o=" "Secret": "v9FPjwtQVCpMMLOt+zCLPo2Y4Hy5lWgxW8JPxx+Pg6o="
}, },
"RequestMaxAgeInSeconds": "600"
"RequestMaxAgeInSeconds": "600",
"CheckOfacFlag": "Y"
} }

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Business.dll

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Business.pdb

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Common.dll

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Common.pdb

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Repository.dll

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.Repository.pdb

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.dll

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.exe

BIN
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/RemitInboundAPI.pdb

3
RemitInboundAPI/RemitInboundAPI/bin/Debug/net8.0/appsettings.json

@ -71,5 +71,6 @@
"ValidIssuer": "IM3Uk", "ValidIssuer": "IM3Uk",
"Secret": "v9FPjwtQVCpMMLOt+zCLPo2Y4Hy5lWgxW8JPxx+Pg6o=" "Secret": "v9FPjwtQVCpMMLOt+zCLPo2Y4Hy5lWgxW8JPxx+Pg6o="
}, },
"RequestMaxAgeInSeconds": "600"
"RequestMaxAgeInSeconds": "600",
"CheckOfacFlag": "Y"
} }

2
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI")] [assembly: System.Reflection.AssemblyCompanyAttribute("RemitInboundAPI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f9a56d0d7c6a1dfb640df9a435dda9cec46de5dd")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+08f2f901b39e1747cc954c80c7ce1d48d039d34d")]
[assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI")] [assembly: System.Reflection.AssemblyProductAttribute("RemitInboundAPI")]
[assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI")] [assembly: System.Reflection.AssemblyTitleAttribute("RemitInboundAPI")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

2
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.AssemblyInfoInputs.cache

@ -1 +1 @@
4d4db1ee20c65f9245af435e012560ffc355c5b04895c91501f50ba1f4334df4
7f53cb3f235e695247d20375d98d020891a2279a5f8ab3710b0cc54464d4ebbf

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.csproj.AssemblyReference.cache

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.dll

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/RemitInboundAPI.pdb

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/apphost.exe

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/ref/RemitInboundAPI.dll

BIN
RemitInboundAPI/RemitInboundAPI/obj/Debug/net8.0/refint/RemitInboundAPI.dll

Loading…
Cancel
Save