Skip to content

Commit

Permalink
Issue #28 (#29)
Browse files Browse the repository at this point in the history
* issue_#28

* remove name
  • Loading branch information
Lomet authored Sep 27, 2023
1 parent 271cd64 commit 794d322
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 32 deletions.
3 changes: 0 additions & 3 deletions src/KYC.API.Proxy/Models/HttpResponse/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ public class Data
{
[JsonProperty("status")]
public string Status { get; set; } = null!;

[JsonProperty("identities")]
public Identities Identities { get; set; } = new();
}
9 changes: 0 additions & 9 deletions src/KYC.API.Proxy/Models/HttpResponse/GivenName.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/KYC.API.Proxy/Models/HttpResponse/Identities.cs

This file was deleted.

2 changes: 0 additions & 2 deletions src/KYC.API.Proxy/Models/OutputData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
10 changes: 1 addition & 9 deletions tests/KYC.API.Proxy.Tests/Utils/HttpCallTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
}
}

0 comments on commit 794d322

Please sign in to comment.