Skip to content

Commit

Permalink
Deprecated Peppol Business Card formats v1 and v2
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 19, 2024
1 parent 988a221 commit 649b94f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ I hope that with the introduction of PINT, the versioning problem will be solved

# News and noteworthy

* v3.1.9 - work in progress
* Deprecated Peppol Business Card formats v1 and v2
* v3.1.8 - 2024-03-06
* Added support for Peppol Reporting EUSR v1.1.5 and deprecated v1.1.4
* Added support for Peppol Reporting TSR v1.0.5 and deprecated v1.0.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ private static ClassLoader _getCL ()

private static final String BASE_PATH = "external/schemas/";

@Deprecated
public static final VESID VID_OPENPEPPOL_BUSINESS_CARD_V1 = new VESID ("eu.peppol.directory",
"businesscard",
"1.0.0");
@Deprecated
public static final VESID VID_OPENPEPPOL_BUSINESS_CARD_V2 = new VESID ("eu.peppol.directory",
"businesscard",
"2.0.0");
Expand All @@ -62,6 +64,7 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
{
ValueEnforcer.notNull (aRegistry, "Registry");

final boolean bDeprecated = true;
final boolean bNotDeprecated = false;

// v1
Expand All @@ -71,7 +74,7 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BUSINESS_CARD_V1,
"Peppol Directory BusinessCard v1",
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (DIRECTORY_V1)));
}

Expand All @@ -82,7 +85,7 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BUSINESS_CARD_V2,
"Peppol Directory BusinessCard v2",
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (DIRECTORY_V2)));
}

Expand Down

0 comments on commit 649b94f

Please sign in to comment.