Skip to content

Commit

Permalink
Made C1 country code mandatory as per Peppol SBDH v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kumar committed Oct 14, 2023
1 parent 870e8bd commit 10a5e19
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ public boolean isComplete() {
(senderId != null) &&
(peppolDocumentTypeId != null) &&
(profileTypeIdentifier != null) &&
// TODO: C1 Country is Not mandatory yet, uncomment once C1 country code will become mandatory
//(c1CountryIdentifier != null) &&
(c1CountryIdentifier != null) &&
(instanceId != null) &&
(creationDateAndTime != null));
}
Expand All @@ -147,8 +146,7 @@ public List<String> listMissingProperties() {
if (senderId == null) mhf.add("senderId");
if (peppolDocumentTypeId == null) mhf.add("peppolDocumentTypeId");
if (profileTypeIdentifier == null) mhf.add("profileTypeIdentifier");
// TODO: C1 Country is Not mandatory yet, uncomment once C1 country code will become mandatory
//if (c1CountryIdentifier == null) mhf.add("c1CountryIdentifier");
if (c1CountryIdentifier == null) mhf.add("c1CountryIdentifier");
if (instanceId == null) mhf.add("messageId");
if (creationDateAndTime == null) mhf.add("creationDateAndTime");
return mhf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<Type>PROCESSID</Type>
<InstanceIdentifier>urn:www.cenbii.eu:profile:bii04:ver1.0</InstanceIdentifier>
</Scope>
<Scope>
<Type>COUNTRY_C1</Type>
<InstanceIdentifier>SE</InstanceIdentifier>
</Scope>
</BusinessScope>
</StandardBusinessDocumentHeader>
<Invoice:Invoice xmlns:Invoice="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
<Type>PROCESSID</Type>
<InstanceIdentifier>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</InstanceIdentifier>
</Scope>
<Scope>
<Type>COUNTRY_C1</Type>
<InstanceIdentifier>NO</InstanceIdentifier>
</Scope>
</BusinessScope>
</StandardBusinessDocumentHeader>
<Invoice:Invoice xmlns:Invoice="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<javax.inject.version>1</javax.inject.version>
<commons-dbcp2.version>2.9.0</commons-dbcp2.version>
<bouncycastle.version>1.70</bouncycastle.version>
<vefa.peppol.version>3.2.0</vefa.peppol.version>
<vefa.peppol.version>3.3.0</vefa.peppol.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<jakarta.mail.version>1.6.7</jakarta.mail.version>
<jakarta.activation.version>1.2.2</jakarta.activation.version>
Expand Down

0 comments on commit 10a5e19

Please sign in to comment.