diff --git a/src/KYC.API.Proxy/Models/HttpResponse/Data.cs b/src/KYC.API.Proxy/Models/HttpResponse/Data.cs index af954bb..94eca96 100644 --- a/src/KYC.API.Proxy/Models/HttpResponse/Data.cs +++ b/src/KYC.API.Proxy/Models/HttpResponse/Data.cs @@ -6,7 +6,4 @@ public class Data { [JsonProperty("status")] public string Status { get; set; } = null!; - - [JsonProperty("identities")] - public Identities Identities { get; set; } = new(); } \ No newline at end of file diff --git a/src/KYC.API.Proxy/Models/HttpResponse/GivenName.cs b/src/KYC.API.Proxy/Models/HttpResponse/GivenName.cs deleted file mode 100644 index 790a982..0000000 --- a/src/KYC.API.Proxy/Models/HttpResponse/GivenName.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Newtonsoft.Json; - -namespace KYC.API.Proxy.Models.HttpResponse; - -public class GivenName -{ - [JsonProperty("value")] - public string Value { get; set; } = null!; -} \ No newline at end of file diff --git a/src/KYC.API.Proxy/Models/HttpResponse/Identities.cs b/src/KYC.API.Proxy/Models/HttpResponse/Identities.cs deleted file mode 100644 index d10beb8..0000000 --- a/src/KYC.API.Proxy/Models/HttpResponse/Identities.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Newtonsoft.Json; - -namespace KYC.API.Proxy.Models.HttpResponse; - -public class Identities -{ - [JsonProperty("given_name")] - public GivenName GivenName { get; set; } = new(); -} \ No newline at end of file diff --git a/src/KYC.API.Proxy/Models/OutputData.cs b/src/KYC.API.Proxy/Models/OutputData.cs index cc34f2c..ee3e100 100644 --- a/src/KYC.API.Proxy/Models/OutputData.cs +++ b/src/KYC.API.Proxy/Models/OutputData.cs @@ -11,13 +11,11 @@ public OutputData(Response response, string? proxy = null) { RequestStatus = response.Status; Status = response.Data.Status; - Name = response.Data.Identities.GivenName.Value; Proxy = proxy; } [JsonConverter(typeof(StringEnumConverter))] public RequestStatus RequestStatus { get; set; } public string? Status { get; set; } - public string? Name { get; set; } public string? Proxy { get; set; } public static OutputData Error => new() { diff --git a/tests/KYC.API.Proxy.Tests/Utils/HttpCallTests.cs b/tests/KYC.API.Proxy.Tests/Utils/HttpCallTests.cs index 15296ad..83dca8f 100644 --- a/tests/KYC.API.Proxy.Tests/Utils/HttpCallTests.cs +++ b/tests/KYC.API.Proxy.Tests/Utils/HttpCallTests.cs @@ -24,14 +24,7 @@ internal void GetBlockPassResponse() Status = RequestStatus.success, Data = new Data { - Status = "approved", - Identities = new Identities - { - GivenName = new GivenName - { - Value = "USER NAME" - } - } + Status = "approved" } }; var httpTest = new HttpTest(); @@ -44,6 +37,5 @@ internal void GetBlockPassResponse() Assert.Equal(response.Status, result.Status); Assert.Equal(response.Data.Status, result.Data.Status); - Assert.Equal(response.Data.Identities.GivenName.Value, result.Data.Identities.GivenName.Value); } } \ No newline at end of file