kevbite/CompaniesHouse.NET

PersonWithSignificantControl misses property Identification

alexmohr1966 opened this issue · 2 comments

When a PSC is of kind "corporate-entity-person-with-significant-control" essential information to identify the company is transferred within in the property "identification". Unfortunately this is not mapped in the class PersonWithSignificantControl.
Here we would need to add

  [JsonProperty(PropertyName = "identification")]
  public PersonWithSignificantControlIdentification Identification { get; set; }

referencing a new class

    public class PersonWithSignificantControlIdentification
    {
        [JsonProperty(PropertyName = "legal_authority")]
        public string LegalAuthority { get; set; }

        [JsonProperty(PropertyName = "legal_form")]
        public string LegalForm { get; set; }

        [JsonProperty(PropertyName = "place_registered")]
        public string PlaceRegistered { get; set; }

        [JsonProperty(PropertyName = "registration_number")]
        public string RegistrationNumber { get; set; }
    }

Thank you for your consideration.

Hey @alexmohr1966, Thanks for highlighting this issue, we'll sort this out for you as soon as possible.

Great, thanks @kevbite . As you will see, I have missed one property under Identification

        [JsonProperty("country_registered")]
        public string CountryRegistered { get; set; }