Skip to content

Commit

Permalink
Added support for eDEC Code Lists v8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jul 13, 2024
1 parent c9ec79d commit 66e7a1d
Show file tree
Hide file tree
Showing 10 changed files with 441 additions and 43 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This project contains different libraries that are commonly used in the Peppol a
* [`peppol-smp-client`](#peppol-smp-client) - the Peppol SMP and BDXR SMP client
* [`peppol-directory-businesscard`](#peppol-directory-businesscard) - the Peppol Directory Business Card data model (since v9.1.0)
* [`peppol-mlr`](#peppol-mlr) - specific support for the Peppol Message Level Response (MLR) (since v9.1.2)
* [`dbnalliance-xhe`](#dbnalliance-xhe) - specific support for DBNAlliance XHE header (since v9.5.0)

These project are used implicitly by e.g. the following projects:
* [phoss-smp](https://github.com/phax/phoss-smp/) - the phoss SMP server with a management GUI
Expand Down Expand Up @@ -115,6 +116,13 @@ This project holds utility classes to read and write a Peppol Message Level Resp

See https://github.com/phax/peppol-commons/blob/master/peppol-mlr/src/test/java/com/helger/peppol/mlr/PeppolMLRBuilderTest.java for an example how to use the classes.

## dbnalliance-xhe

This was introduced in v9.5.0

This project holds support for reading and writing DBNAlliance XHE header.
This is the DBNAlliance version of `peppol-sbdh` based on the [ph-xhe](https://github.com/phax/ph-xhe) library.

### Configuration

**Configuration resolution (since v8.2.0)**
Expand Down Expand Up @@ -259,6 +267,12 @@ Add the following to your pom.xml to use this artifact, replacing `x.y.z` with t
<artifactId>peppol-mlr</artifactId>
<version>x.y.z</version>
</dependency>

<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>dbnalliance-xhe</artifactId>
<version>x.y.z</version>
</dependency>
```

Alternatively use the following code in your `dependencyManagement` section to use it as a BOM:
Expand Down Expand Up @@ -286,9 +300,11 @@ They depend on several other libraries so I suggest you are going for the Maven

# News and noteworthy

* v9.4.1 - work in progress
* v9.5.0 - work in progress
* Added new submodule `dbnalliance-xhe`. See [#53](https://github.com/phax/peppol-commons/pull/53) - thx @robinsongarciax
* Marked certain `ESMPTransportProfile` entries as "deleted"
* Added new SMP client exception `SMPClientParticipantNotFoundException` to indicate non-existing Service Groups
* Updated to OpenPeppol eDEC Code Lists v8.9
* v9.4.0 - 2024-05-24
* Renamed `IParticipantIdentifierScheme` to `IPeppolParticipantIdentifierScheme`
* Tried to make the usage of `IIdentifierFactory` more customizable
Expand All @@ -299,7 +315,7 @@ They depend on several other libraries so I suggest you are going for the Maven
* Added new class `PeppolLaxIdentifierFactory`
* Added new enum entry `ESMPIdentifierType.PEPPOL_LAX` for SMP handling. See [smp#275](https://github.com/phax/phoss-smp/issues/275).
* v9.3.5 - 2024-04-23
* Updated to OpenPeppol eDEC Code Lists v8.8
* Updated to OpenPeppol eDEC Code Lists v8.8
* v9.3.4 - 2024-04-04
* Added new classes to support the DBNA network as well (`DBNAURLProviderSMP`, `EDBNASML`)
* Allowing empty identifier schemes as being present (for DBNA). See `IIdentifier.hasScheme ()`
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ public enum EPredefinedParticipantIdentifierScheme
* +K4:K5<br>
*
* @since code list 1.0.0
* @deprecated since v8.9 - this item should not be used to issue new identifiers!<br>Removed per 2024-12-31
*/
FI_OVT("FI:OVT", "0037", "FI", "LY-tunnus", "National Board of Taxes, (Verohallitus)", Version.parse("1.0.0"), EPeppolCodeListItemState.ACTIVE, null, null),
@Deprecated
FI_OVT("FI:OVT", "0037", "FI", "LY-tunnus", "National Board of Taxes, (Verohallitus)", Version.parse("1.0.0"), EPeppolCodeListItemState.REMOVED, Version.parse("8.9"), PDTFactory.createLocalDate(2024, Month.of(12), 31)),

/**
* Prefix <code>0060</code>, scheme ID <code>DUNS</code><br>
Expand Down Expand Up @@ -496,8 +498,10 @@ public enum EPredefinedParticipantIdentifierScheme
* Hyphen shall be present between last two digits.<br>
*
* @since code list 7.5
* @deprecated since v8.9 - this item should not be used to issue new identifiers!<br>Removed per 2024-12-31
*/
FI_ORG("FI:ORG", "0212", "FI", "Finnish Organization Identifier", "State Treasury of Finland / Valtiokonttori", Version.parse("7.5"), EPeppolCodeListItemState.ACTIVE, null, null),
@Deprecated
FI_ORG("FI:ORG", "0212", "FI", "Finnish Organization Identifier", "State Treasury of Finland / Valtiokonttori", Version.parse("7.5"), EPeppolCodeListItemState.REMOVED, Version.parse("8.9"), PDTFactory.createLocalDate(2024, Month.of(12), 31)),

/**
* Prefix <code>0213</code>, scheme ID <code>FI:VAT</code><br>
Expand All @@ -506,8 +510,10 @@ public enum EPredefinedParticipantIdentifierScheme
* Display requirements: Shall be presented as string so that leading zeros have to be present. Two first characters have always fixed value FI.<br>
*
* @since code list 7.5
* @deprecated since v8.9 - this item should not be used to issue new identifiers!<br>Removed per 2024-12-31
*/
FI_VAT("FI:VAT", "0213", "FI", "Finnish Organization Value Add Tax Identifier", "State Treasury of Finland / Valtiokonttori", Version.parse("7.5"), EPeppolCodeListItemState.ACTIVE, null, null),
@Deprecated
FI_VAT("FI:VAT", "0213", "FI", "Finnish Organization Value Add Tax Identifier", "State Treasury of Finland / Valtiokonttori", Version.parse("7.5"), EPeppolCodeListItemState.REMOVED, Version.parse("8.9"), PDTFactory.createLocalDate(2024, Month.of(12), 31)),

/**
* Prefix <code>0215</code>, scheme ID <code>FI:NSI</code><br>
Expand All @@ -523,8 +529,10 @@ public enum EPredefinedParticipantIdentifierScheme
* Usage information: An example of Net Service ID: TE003701011385TEST<br>
*
* @since code list 8.1
* @deprecated since v8.9 - this item should not be used to issue new identifiers!<br>Removed per 2024-12-31
*/
FI_NSI("FI:NSI", "0215", "FI", "Net service ID", "Tieto Finland Oy", Version.parse("8.1"), EPeppolCodeListItemState.ACTIVE, null, null),
@Deprecated
FI_NSI("FI:NSI", "0215", "FI", "Net service ID", "Tieto Finland Oy", Version.parse("8.1"), EPeppolCodeListItemState.REMOVED, Version.parse("8.9"), PDTFactory.createLocalDate(2024, Month.of(12), 31)),

/**
* Prefix <code>0216</code>, scheme ID <code>FI:OVT2</code><br>
Expand Down Expand Up @@ -1061,7 +1069,7 @@ public enum EPredefinedParticipantIdentifierScheme
* @since code list 8.3
*/
US_EIN("US:EIN", "9959", "US", "US Employer ID Number", null, Version.parse("8.3"), EPeppolCodeListItemState.ACTIVE, null, null);
public static final String CODE_LIST_VERSION = "8.8";
public static final String CODE_LIST_VERSION = "8.9";
public static final int CODE_LIST_ENTRY_COUNT = 96;
private final String m_sSchemeID;
private final String m_sISO6523;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,11 @@ public enum EPredefinedProcessIdentifier
*/
urn_fdc_peppol_eu_logistics_bis_despatch_advice_w_response_1("cenbii-procid-ubl", "urn:fdc:peppol.eu:logistics:bis:despatch_advice_w_response:1", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:peppol.eu:logistics:bis:despatch_advice_w_receipt_advice:1</code><br>
*/
urn_fdc_peppol_eu_logistics_bis_despatch_advice_w_receipt_advice_1("cenbii-procid-ubl", "urn:fdc:peppol.eu:logistics:bis:despatch_advice_w_receipt_advice:1", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:peppol.eu:logistics:bis:weight_statement:1</code><br>
*/
Expand Down Expand Up @@ -522,11 +527,6 @@ public enum EPredefinedProcessIdentifier
*/
urn_fdc_peppol_eu_logistics_bis_transportation_status_only_1("cenbii-procid-ubl", "urn:fdc:peppol.eu:logistics:bis:transportation_status_only:1", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:peppol.eu:logistics:bis:despatch_advice_w_receipt_advice:1</code><br>
*/
urn_fdc_peppol_eu_logistics_bis_despatch_advice_w_receipt_advice_1("cenbii-procid-ubl", "urn:fdc:peppol.eu:logistics:bis:despatch_advice_w_receipt_advice:1", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:hr-xml:2007:timesheet:1.0</code><br>
*/
Expand All @@ -540,9 +540,39 @@ public enum EPredefinedProcessIdentifier
/**
* ID: <code>cenbii-procid-ubl::urn:peppol:bis:billing</code><br>
*/
urn_peppol_bis_billing("cenbii-procid-ubl", "urn:peppol:bis:billing", EPeppolCodeListItemState.ACTIVE);
public static final String CODE_LIST_VERSION = "8.8";
public static final int CODE_LIST_ENTRY_COUNT = 88;
urn_peppol_bis_billing("cenbii-procid-ubl", "urn:peppol:bis:billing", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:hr-xml:2007:staffingorder:1.0</code><br>
*/
urn_fdc_hr_xml_2007_staffingorder_1_0("cenbii-procid-ubl", "urn:fdc:hr-xml:2007:staffingorder:1.0", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:hr-xml:2007:humanresource:1.0</code><br>
*/
urn_fdc_hr_xml_2007_humanresource_1_0("cenbii-procid-ubl", "urn:fdc:hr-xml:2007:humanresource:1.0", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:hr-xml:2007:assignment:1.0</code><br>
*/
urn_fdc_hr_xml_2007_assignment_1_0("cenbii-procid-ubl", "urn:fdc:hr-xml:2007:assignment:1.0", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:digital:ver1.0</code><br>
*/
urn_fdc_digdir_no_2020_profile_egovernment_innbyggerpost_digital_ver1_0("cenbii-procid-ubl", "urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:digital:ver1.0", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:utskrift:ver1.0</code><br>
*/
urn_fdc_digdir_no_2020_profile_egovernment_innbyggerpost_utskrift_ver1_0("cenbii-procid-ubl", "urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:utskrift:ver1.0", EPeppolCodeListItemState.ACTIVE),

/**
* ID: <code>cenbii-procid-ubl::urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:flyttet:ver1.0</code><br>
*/
urn_fdc_digdir_no_2020_profile_egovernment_innbyggerpost_flyttet_ver1_0("cenbii-procid-ubl", "urn:fdc:digdir.no:2020:profile:egovernment:innbyggerpost:flyttet:ver1.0", EPeppolCodeListItemState.ACTIVE);
public static final String CODE_LIST_VERSION = "8.9";
public static final int CODE_LIST_ENTRY_COUNT = 94;
/**
* Same as {@link #urn_www_cenbii_eu_profile_bii01_ver1_0}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public enum EPredefinedTransportProfileIdentifier
*/
@Deprecated
busdox_transport_as2_ver2p0("AS2", "2.0", "busdox-transport-as2-ver2p0", Version.parse("5"), EPeppolCodeListItemState.REMOVED, Version.parse("8.4"), PDTFactory.createLocalDate(2023, Month.of(9), 6));
public static final String CODE_LIST_VERSION = "8.8";
public static final String CODE_LIST_VERSION = "8.9";
public static final int CODE_LIST_ENTRY_COUNT = 5;
/**
* Same as {@link #busdox_transport_start}
Expand Down
Loading

0 comments on commit 66e7a1d

Please sign in to comment.