Skip to content

Commit

Permalink
Fixed name and added testdata (#9458)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechArch authored Dec 22, 2022
1 parent ecbf29c commit 2cc6061
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
56 changes: 56 additions & 0 deletions TestData/authorization/resources/Appid_43.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"title": {
"en": "Aa-registeret OTP API",
"nb": "Aa-registeret OTP API",
"nn": "Aa-registeret OTP API"
},
"sector": null,
"status": null,
"validTo": "9999-12-31T23:59:59.997",
"homepage": null,
"isPartOf": null,
"keywords": null,
"validFrom": "2020-03-04T18:04:27.27",
"identifier": "appid-43",
"isComplete": false,
"description": null,
"resourceType": "MaskinportenSchema",
"thematicArea": null,
"isPublicService": true,
"rightDescription": {
"en": "Gives the pension cooperation access to employee relationships registered to a legal entity.",
"nb": "Gir pensjonsinnretningen tilgang til arbeidsforhold registrert på en opplysningspliktig.",
"nn": "Gir pensjonsinnretninga tilgang på dei arbeidforholda som er registrert på ein opplysingspliktig."
},
"resourceReferences": [
{
"reference": "8f08210a-d792-48f5-9e27-0f029e41111e",
"referenceType": "DelegationSchemeId",
"referenceSource": "Altinn2"
},
{
"reference": "nav:aareg/v1/arbeidsforhold/otp",
"referenceType": "MaskinportenScope",
"referenceSource": "Altinn2"
},
{
"reference": "AppId:43",
"referenceType": "ServiceCode",
"referenceSource": "Altinn2"
},
{
"reference": "1",
"referenceType": "ServiceEditionCode",
"referenceSource": "Altinn2"
}
],
"hasCompetentAuthority": {
"orgcode": "NAV",
"organization": "974761076",
"name": {
"en": "ARBEIDS- OG VELFERDSETATEN",
"nb": "ARBEIDS- OG VELFERDSETATEN",
"nn": "ARBEIDS- OG VELFERDSETATEN"
}
}
}
7 changes: 6 additions & 1 deletion src/Models/ResourceRegistry/CompetentAuthority.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -20,5 +20,10 @@ public class CompetentAuthority
/// The organization code
/// </summary>
public string Orgcode { get; set; }

/// <summary>
/// The organization name. If not set it will be retrived from register based on Organization number
/// </summary>
public Dictionary<string, string>? Name { get; set; }
}
}

0 comments on commit 2cc6061

Please sign in to comment.