Skip to content

Commit

Permalink
added new field subOrgNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendoksvoll committed Aug 27, 2024
1 parent b267b02 commit b2cdcff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions advreg.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Altinn.Dan.Plugin.Trad/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private static PracticeExternal MapInternalPracticeToExternal(PracticeInternal p
MapInternalPersonListToExternal(practiceInternal.AuthorizedRepresentatives, false),
IsaAuthorizedRepresentativeFor =
MapInternalPersonListToExternal(practiceInternal.IsAnAuthorizedRepresentativeFor, false),
SubOrganizationNumber = practiceInternal.SubOrganizationNumber,
};
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/Altinn.Dan.Plugin.Trad/Models/PracticeExternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public record PracticeExternal
[JsonProperty("organisasjonsNummer")]
public int OrganizationNumber { get; set; }

[JsonProperty("underenhet", NullValueHandling = NullValueHandling.Ignore)]
public int? SubOrganizationNumber { get; set; }

[JsonProperty("autoriserteRepresentanter", NullValueHandling = NullValueHandling.Ignore)]
public List<PersonExternal> AuthorizedRepresentatives { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions src/Altinn.Dan.Plugin.Trad/Models/PracticeInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public record PracticeInternal
[JsonProperty("orgNumber")]
public int OrganizationNumber { get; set; }

[JsonProperty("subOrgNumber", NullValueHandling = NullValueHandling.Ignore)]
public int? SubOrganizationNumber { get; set; }

[JsonProperty("authorizedRepresentatives", NullValueHandling = NullValueHandling.Ignore)]
public List<PersonInternal> AuthorizedRepresentatives;

Expand Down

0 comments on commit b2cdcff

Please sign in to comment.