|
|
@ -117,13 +117,13 @@ namespace RemitInboundAPI.Repository.Repository.ApplicationRepository |
|
|
|
return _response; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<PartnerAuthorizationKeys> GetPartnerAuthorizationKeys(string? agentId) |
|
|
|
public async Task<PartnerAuthorizationKeys> GetPartnerAuthorizationKeys(string? userName) |
|
|
|
{ |
|
|
|
var _response = new PartnerAuthorizationKeys(); |
|
|
|
try |
|
|
|
{ |
|
|
|
var sql = "EXEC PROC_REMIT_INBOUND_LOGIN @Flag = 'APPID'"; |
|
|
|
sql += ", @AgentId = " + _connHelper.FilterString(agentId); |
|
|
|
sql += ", @UserName = " + _connHelper.FilterString(userName); |
|
|
|
|
|
|
|
_logger.LogDebug("APPLICATIONREPOSITORY | GETPARTNERAUTHORIZATIONKEYS | SQL | " + sql); |
|
|
|
var dbRes = _connHelper.ParseDbResult(sql); |
|
|
@ -132,7 +132,7 @@ namespace RemitInboundAPI.Repository.Repository.ApplicationRepository |
|
|
|
_response.ResponseMessage = dbRes.ResponseMessage; |
|
|
|
if (dbRes.ResponseCode == ResponseHelper.SUCCESS) |
|
|
|
{ |
|
|
|
_response.AgentId = agentId; |
|
|
|
_response.UserName = userName; |
|
|
|
_response.APPId = dbRes.Id; |
|
|
|
_response.APISecretKey = dbRes.Extra; |
|
|
|
} |
|
|
|