Skip to content

Commit

Permalink
Added Added Peppol PINT A-NZ 1.0.1 self-billing
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jul 24, 2024
1 parent fd5f84a commit 8c12280
Show file tree
Hide file tree
Showing 46 changed files with 12,659 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved

* v3.1.12 - work in progress
* Added Peppol PINT rules 1.0.2
* Added Peppol PINT A-NZ 1.0.1 rules
* Added Peppol PINT A-NZ 1.0.1 rules (billing and self-billing)
* Added Peppol PINT Japan 1.0.2 rules
* v3.1.11 - 2024-07-02
* Added Peppol May 2024 release (Billing 3.0.17 and Upgrade 3.0.13)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 3 additions & 15 deletions phive-rules-peppol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,13 @@
-->
<!--
<execution>
<id>pint-my-billing</id>
<id>pint-my</id>
<goals>
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>src/test/resources/external/rule-source/pint-my/1.0.0/xslt/billing</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/pint-my/1.0.0/xslt/billing</xsltDirectory>
</configuration>
</execution>
-->
<!--
<execution>
<id>pint-my-selfbilling</id>
<goals>
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>src/test/resources/external/rule-source/pint-my/1.0.0/xslt/selfbilling</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/pint-my/1.0.0/xslt/selfbilling</xsltDirectory>
<schematronDirectory>src/test/resources/external/rule-source/pint-my/1.0.0</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/pint-my/1.0.0/xslt</xsltDirectory>
</configuration>
</execution>
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ private static ClassLoader _getCL ()
public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1 = new VESID (GROUP_ID,
"creditnote",
"1.0.1");
public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_SELF_BILLING_1_0_1 = new VESID (GROUP_ID,
"invoice-self-billing",
"1.0.1");
public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_SELF_BILLING_1_0_1 = new VESID (GROUP_ID,
"creditnote-self-billing",
"1.0.1");

private PeppolValidationPintAUNZ ()
{}
Expand All @@ -81,32 +87,57 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat

// 1.0.1
{
final String sBase = BASE_PATH + "1.0.1/xslt/";
final String sBaseBilling = BASE_PATH + "1.0.1/xslt/billing/";
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_1_0_1,
"Peppol PINT A-NZ Invoice (UBL) 1.0.1",
_createStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBase +
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseBilling +
"PINT-UBL-validation-preprocessed-inv.xslt",
_getCL ()),
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBase +
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseBilling +
"PINT-jurisdiction-aligned-rules-inv.xslt",
_getCL ()),
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1,
"Peppol PINT A-NZ Credit Note (UBL) 1.0.1",
_createStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBase +
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseBilling +
"PINT-UBL-validation-preprocessed-cn.xslt",
_getCL ()),
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBase +
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseBilling +
"PINT-jurisdiction-aligned-rules-cn.xslt",
_getCL ()),
aNSCtxInvoice)));

final String sBaseSelfBilling = BASE_PATH + "1.0.1/xslt/selfbilling/";
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_SELF_BILLING_1_0_1,
"Peppol PINT A-NZ Invoice Self-Billing (UBL) 1.0.1",
_createStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseSelfBilling +
"PINT-UBL-validation-preprocessed-inv.xslt",
_getCL ()),
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseSelfBilling +
"PINT-jurisdiction-aligned-rules-inv.xslt",
_getCL ()),
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_SELF_BILLING_1_0_1,
"Peppol PINT A-NZ Credit Note Self-Billing (UBL) 1.0.1",
_createStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseSelfBilling +
"PINT-UBL-validation-preprocessed-cn.xslt",
_getCL ()),
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (new ClassPathResource (sBaseSelfBilling +
"PINT-jurisdiction-aligned-rules-cn.xslt",
_getCL ()),
aNSCtxInvoice)));
}
}
}
Loading

0 comments on commit 8c12280

Please sign in to comment.