Skip to content

Commit

Permalink
fix: or-1394 place property as last in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Aug 14, 2024
1 parent 15058b9 commit 4cefd20
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public OrganisationDocument()
Validity = Period.Infinite();
}

public LegalEntityType? LegalEntityType { get; set; }

public int ChangeId { get; set; }
public DateTimeOffset ChangeTime { get; set; }
public Guid Id { get; set; }
Expand Down Expand Up @@ -68,6 +66,7 @@ public OrganisationDocument()
public List<OrganisationOpeningHour> OpeningHours { get; set; }
public List<OrganisationRegulation> Regulations { get; set; }

public LegalEntityType? LegalEntityType { get; set; }

public static TypeMappingDescriptor<OrganisationDocument> Mapping(
TypeMappingDescriptor<OrganisationDocument> map)
Expand Down Expand Up @@ -194,10 +193,9 @@ public static TypeMappingDescriptor<OrganisationDocument> Mapping(
.Name(p => p.Regulations)
.IncludeInRoot()
.Properties(OrganisationRegulation.Mapping))
.Nested<LegalEntityType>(
.Object<LegalEntityType>(
n => n
.Name(p => p.LegalEntityType)
.IncludeInRoot()
.Properties(LegalEntityType.Mapping))
);
}

0 comments on commit 4cefd20

Please sign in to comment.