Skip to content

Commit

Permalink
Added both properties 'TrusteesAndSolicitors' & 'Trustees' on decease…
Browse files Browse the repository at this point in the history
…dAssetsTrust
  • Loading branch information
Shubham Kadam committed Jan 16, 2025
1 parent 10829b8 commit a4d5804
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class DeceasedAssetsTrustResourceRepresentation : EstateItemResourceRepre
public string? NameOfPersonReceivingBenefit { get; init; }
public int? AgeOfPersonReceivingBenefit { get; init; }
public SolicitorResourceRepresentation? SolicitorOrOtherAgent { get; init; }
public List<TrusteeResourceRepresentation> TrusteesAndSolicitors { get; init; } = new List<TrusteeResourceRepresentation>();
public List<TrusteeResourceRepresentation> Trustees { get; init; } = new List<TrusteeResourceRepresentation>();
public string? UniqueTaxReferenceNumber { get; init; }
public DateTime? TrustCreationDate { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ protected DeceasedAssetsTrustResourceRepresentationBase() : base(EstateItemType.
public string? NameOfPersonReceivingBenefit { get; init; }
public int? AgeOfPersonReceivingBenefit { get; init; }
public SolicitorResourceRepresentation? SolicitorOrOtherAgent { get; init; }
public List<TrusteeResourceRepresentation> TrusteesAndSolicitors { get; set; } = new List<TrusteeResourceRepresentation>();
public List<TrusteeResourceRepresentation> Trustees { get; set; } = new List<TrusteeResourceRepresentation>();
public string? UniqueTaxReferenceNumber { get; set; }
public DateTime? TrustCreationDate { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ protected override JsonObject InnerBuild(JsonObject jsonObject,
jsonObject.Add("trustCreationDate", resourceRepresentation.TrustCreationDate);
jsonObject.Add("hasDetailsOfAssets", resourceRepresentation.HasDetailsOfAssets);
if(resourceRepresentation.SolicitorOrOtherAgent is not null) jsonObject.Add("solicitorOrOtherAgent", BuildSolicitor(resourceRepresentation.SolicitorOrOtherAgent));
jsonObject.Add("trustees", new JsonArray(resourceRepresentation.Trustees.Select(BuildTrustee).ToArray<JsonNode>()));
jsonObject.Add("trusteesAndSolicitors", new JsonArray(resourceRepresentation.TrusteesAndSolicitors.Select(BuildTrustee).ToArray<JsonNode>()));
jsonObject.Add("trustees", new JsonArray(resourceRepresentation.TrusteesAndSolicitors.Select(BuildTrustee).ToArray<JsonNode>()));
jsonObject.Add("propertyBusinessSharesAssets", BuildAssetDetails(resourceRepresentation.PropertyBusinessSharesAssets));
jsonObject.Add("otherAssets", BuildAssetDetails(resourceRepresentation.OtherAssets));
jsonObject.Add("totalValue", resourceRepresentation.TotalValue);
Expand Down

0 comments on commit a4d5804

Please sign in to comment.