Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,61 +1,69 @@
public with sharing class NKS_SkattekortWrapper {
@AuraEnabled
@TestVisible
public Integer inntektsaar { get; private set; }
public String utstedtDato { get; private set; }

@AuraEnabled
@TestVisible
public String arbeidstakeridentifikator { get; private set; }
public Integer inntektsaar { get; private set; }

@AuraEnabled
@TestVisible
public String resultatPaaForespoersel { get; private set; }
public String resultatForSkattekort { get; private set; }

@AuraEnabled
@TestVisible
public Skattekort skattekort { get; private set; }
public List<Forskuddstrekk> forskuddstrekkList { get; private set; }

@AuraEnabled
@TestVisible
public List<String> tilleggsopplysning { get; private set; }
public List<String> tilleggsopplysningList { get; private set; }

public class Skattekort {
public class Frikort {
@AuraEnabled
@TestVisible
public String utstedtDato { get; private set; }

public Integer frikortBeloep { get; private set; }
}

public class Prosentkort {
@AuraEnabled
@TestVisible
public Integer skattekortidentifikator { get; private set; }
public Double prosentSats { get; private set; }

@AuraEnabled
@TestVisible
public List<Forskuddstrekk> forskuddstrekk { get; private set; }
public Double antallMndForTrekk { get; private set; }
}

public class Forskuddstrekk {
public class Trekktabell {
@AuraEnabled
@TestVisible
public String tabell { get; private set; }

@AuraEnabled
@TestVisible
public String type { get; private set; }
public Double prosentSats { get; private set; }

@AuraEnabled
@TestVisible
public String trekkode { get; private set; }

public Double antallMndForTrekk { get; private set; }
}

public class Forskuddstrekk {
@AuraEnabled
@TestVisible
public Double prosentsats { get; private set; }
public String trekkode { get; private set; }

@AuraEnabled
@TestVisible
public Double frikortbeloep { get; private set; }
public Frikort frikort { get; private set; }

@AuraEnabled
@TestVisible
public String tabellnummer { get; private set; }
public Prosentkort prosentkort { get; private set; }

@AuraEnabled
@TestVisible
public Double antallMaanederForTrekk { get; private set; }
public Trekktabell trekktabell { get; private set; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>POST_SKATTEKORT_API</label>
<protected>false</protected>
<values>
Expand All @@ -22,211 +20,33 @@
&quot;200&quot;: {
&quot;headers&quot;: null,
&quot;body&quot;:
[{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
},
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;pensjonFraNAV&quot;,
&quot;prosentsats&quot;: 15.00
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;utstedtDato&quot;: &quot;2025-12-04&quot;,
&quot;skattekortidentifikator&quot;: 72883,
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
},
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;pensjonFraNAV&quot;,
&quot;prosentsats&quot;: 15.00
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;utstedtDato&quot;: &quot;2025-12-05&quot;,
&quot;skattekortidentifikator&quot;: 73599,
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
},
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;pensjonFraNAV&quot;,
&quot;prosentsats&quot;: 15.00
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;utstedtDato&quot;: &quot;2025-12-06&quot;,
&quot;skattekortidentifikator&quot;: 74315,
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
},
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;pensjonFraNAV&quot;,
&quot;prosentsats&quot;: 15.00
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;utstedtDato&quot;: &quot;2025-12-08&quot;,
&quot;skattekortidentifikator&quot;: 75747,
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
},
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;pensjonFraNAV&quot;,
&quot;prosentsats&quot;: 15.00
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
},
{
&quot;inntektsaar&quot;: 2025,
&quot;arbeidstakeridentifikator&quot;: &quot;29860299923&quot;,
&quot;resultatPaaForespoersel&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;skattekort&quot;: {
&quot;utstedtDato&quot;: &quot;2025-12-09&quot;,
&quot;skattekortidentifikator&quot;: 76463,
&quot;forskuddstrekk&quot;: [
{
&quot;type&quot;: &quot;Trekkprosent&quot;,
&quot;trekkode&quot;: &quot;ufoeretrygdFraNAV&quot;,
&quot;prosentsats&quot;: 22.20
}
]
},
&quot;tilleggsopplysning&quot;: [
&quot;kildeskattPaaPensjon&quot;
]
}]
[
{
&quot;utstedtDato&quot;: &quot;2026-02-10&quot;,
&quot;inntektsaar&quot;: 2026,
&quot;resultatForSkattekort&quot;: &quot;skattekortopplysningerOK&quot;,
&quot;forskuddstrekkList&quot;: [
{
&quot;trekkode&quot;: &quot;string&quot;,
&quot;frikort&quot;: {
&quot;frikortBeloep&quot;: 0
},
&quot;prosentkort&quot;: {
&quot;prosentSats&quot;: 0,
&quot;antallMndForTrekk&quot;: 0
},
&quot;trekktabell&quot;: {
&quot;tabell&quot;: &quot;string&quot;,
&quot;prosentSats&quot;: 0,
&quot;antallMndForTrekk&quot;: 0
}
}
],
&quot;tilleggsopplysningList&quot;: [
&quot;oppholdPaaSvalbard&quot;
]
}
]
},
&quot;401&quot;: {
&quot;headers&quot;: null,
Expand Down Expand Up @@ -264,4 +84,4 @@
<field>Service_Path__c</field>
<value xsi:type="xsd:string">/api/v1/hent-skattekort</value>
</values>
</CustomMetadata>
</CustomMetadata>