Skip to content

Commit

Permalink
Deprecated Peppol 2023-05 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 19, 2024
1 parent 7689e37 commit 3fe71d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved

* v3.1.9 - work in progress
* Deprecated Peppol Business Card formats v1 and v2
* Deprecated Peppol May 2023 release
* 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 @@ -37,14 +37,14 @@
* @author Philip Helger
*/
@Immutable
@SuppressWarnings ("deprecation")
public final class PeppolValidation
{
/**
* @return The currently active version number, dependent on the current date.
* Never <code>null</code>.
* @since 5.1.8
*/
// @SuppressWarnings ("deprecation")
@Nonnull
@Nonempty
public static String getVersionToUse ()
Expand All @@ -69,7 +69,6 @@ private PeppolValidation ()
* @param aRegistry
* The registry to add the artefacts. May not be <code>null</code>.
*/
// @SuppressWarnings ("deprecation")
public static void initStandard (@Nonnull final IValidationExecutorSetRegistry <IValidationSourceXML> aRegistry)
{
// For better error messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @author Philip Helger
*/
@Immutable
@Deprecated
public final class PeppolValidation2023_05
{
// Standard resources
Expand Down Expand Up @@ -111,7 +112,7 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
// See https://docs.peppol.eu/poacc/upgrade-3/release-notes/
final String sAkaVersionBIS = " (aka BIS 3.0.11)";

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

final String PREFIX_XSLT = "external/schematron/openpeppol/" + VERSION_STR + "/xslt/";
final IReadableResource INVOICE_UBL_CEN = new ClassPathResource (PREFIX_XSLT + "CEN-EN16931-UBL.xslt", _getCL ());
Expand All @@ -136,15 +137,15 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
"OpenPeppol UBL Invoice" +
sVersion +
sAkaVersionBilling,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
_createXsltUBL (INVOICE_UBL_CEN),
_createXsltUBL (INVOICE_UBL_PEPPOL)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_CREDIT_NOTE_UBL_V3,
"OpenPeppol UBL Credit Note" +
sVersion +
sAkaVersionBilling,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
_createXsltUBL (INVOICE_UBL_CEN),
_createXsltUBL (INVOICE_UBL_PEPPOL)));
Expand All @@ -161,85 +162,85 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
"OpenPeppol Order" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllOrderXSDs ()),
_createXsltUBL (ORDER)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_DESPATCH_ADVICE_V3,
"OpenPeppol Despatch Advice" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllDespatchAdviceXSDs ()),
_createXsltUBL (DESPATCH_ADVICE)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_CATALOGUE_V3,
"OpenPeppol Catalogue" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllCatalogueXSDs ()),
_createXsltUBL (CATALOGUE)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_CATALOGUE_RESPONSE_V3,
"OpenPeppol Catalogue Response" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllApplicationResponseXSDs ()),
_createXsltUBL (CATALOGUE_RESPONSE)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_MLR_V3,
"OpenPeppol MLR" + sVersion + sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllApplicationResponseXSDs ()),
_createXsltUBL (MLR)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_ORDER_RESPONSE_V3,
"OpenPeppol Order Response" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllOrderResponseXSDs ()),
_createXsltUBL (ORDER_RESPONSE)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PUNCH_OUT_V3,
"OpenPeppol Punch Out" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllCatalogueXSDs ()),
_createXsltUBL (PUNCH_OUT)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_ORDER_AGREEMENT_V3,
"OpenPeppol Order Agreement" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllOrderResponseXSDs ()),
_createXsltUBL (ORDER_AGREEMENT)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_INVOICE_MESSAGE_RESPONSE_V3,
"OpenPeppol Invoice Message Response" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllApplicationResponseXSDs ()),
_createXsltUBL (INVOICE_MESSAGE_RESPONSE)));
// UBL 2.3!
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_ORDER_CHANGE_V3,
"OpenPeppol Order Change" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL23Marshaller.getAllOrderChangeXSDs ()),
_createXsltUBL (ORDER_CHANGE)));
// UBL 2.3!
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_ORDER_CANCELLATION_V3,
"OpenPeppol Order Cancellation" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL23Marshaller.getAllOrderCancellationXSDs ()),
_createXsltUBL (ORDER_CANCELLATION)));
// UBL 2.3!
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_ORDER_RESPONSE_ADVANCED_V3,
"OpenPeppol Order Response Advanced" +
sVersion +
sAkaVersionBIS,
bNotDeprecated,
bDeprecated,
ValidationExecutorXSD.create (UBL23Marshaller.getAllOrderResponseXSDs ()),
_createXsltUBL (ORDER_RESPONSE_ADVANCED)));
}
Expand Down

0 comments on commit 3fe71d3

Please sign in to comment.