Skip to content

Commit

Permalink
BAH-4119. Add. Abha Address Profile Response is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshiya2125 committed Nov 26, 2024
1 parent 6e8f806 commit 097c527
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System.Collections.Generic;

namespace In.ProjectEKA.HipService.Verification.Model;

public class AbhaAddressProfileResponse
{
public string abhaAddress { get; set; }
public string fullName { get; set; }
public string profilePhoto { get; set; }
public string firstName { get; set; }
public string middleName { get; set; }
public string lastName { get; set; }
public int dayOfBirth { get; set; }
public int monthOfBirth { get; set; }
public int yearOfBirth { get; set; }
public string dateOfBirth { get; set; }
public string gender { get; set; }
public string email { get; set; }
public string mobile { get; set; }
public string abhaNumber { get; set; }
public string address { get; set; }
public string stateName { get; set; }
public int pinCode { get; set; }
public int stateCode { get; set; }
public int districtCode { get; set; }
public List<string> AuthMethods { get; set; }
public string status { get; set; }
public string subDistrictCode { get; set; }
public string subDistrictName { get; set; }
public string emailVerified { get; set; }
public string mobileVerified { get; set; }
public string kycStatus { get; set; }

}
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ public async Task<ActionResult> GetAbhaAddressProfile([FromHeader(Name = CORRELA
var responseContent = await response?.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
ABHAProfileResponse abhaProfileResponse = JsonConvert.DeserializeObject<ABHAProfileResponse>(responseContent);
return Ok(abhaProfileResponse);
AbhaAddressProfileResponse abhaAddressProfileResponse = JsonConvert.DeserializeObject<AbhaAddressProfileResponse>(responseContent);
return Ok(abhaAddressProfileResponse);
}

logger.LogError(LogEvents.Creation, "Error happened for ABHA patient profile with error response" +
Expand Down

0 comments on commit 097c527

Please sign in to comment.