-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from OpenPEPPOL/poacc-528
ResponseTypeCode check not having order lines
- Loading branch information
Showing
12 changed files
with
354 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" | ||
configuration="peppolbis-t76-base-3.0"> | ||
<assert> | ||
<description>An order response with code AP (Accepted) should NOT provide order lines.</description> | ||
<scope>PEPPOL-T116-R008</scope> | ||
</assert> | ||
|
||
<test> | ||
|
||
<assert> | ||
<success>PEPPOL-T116-R008</success> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AP</cbc:OrderResponseCode> | ||
|
||
<!-- <cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine>--> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
<test> | ||
<assert> | ||
<warning>PEPPOL-T116-R008</warning> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AP</cbc:OrderResponseCode> | ||
|
||
<cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
</testSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" | ||
configuration="peppolbis-t76-base-3.0"> | ||
<assert> | ||
<description>An order response with code RE (Rejected) should NOT provide order lines.</description> | ||
<scope>PEPPOL-T116-R009</scope> | ||
</assert> | ||
|
||
<test> | ||
|
||
<assert> | ||
<success>PEPPOL-T116-R009</success> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>RE</cbc:OrderResponseCode> | ||
|
||
<!-- <cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine>--> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
<test> | ||
<assert> | ||
<warning>PEPPOL-T116-R009</warning> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>RE</cbc:OrderResponseCode> | ||
|
||
<cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
|
||
</testSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" | ||
configuration="peppolbis-t76-base-3.0"> | ||
<assert> | ||
<description>An order response with code AB (Acknowledged) must NOT provide order lines.</description> | ||
<scope>PEPPOL-T116-R010</scope> | ||
</assert> | ||
|
||
<test> | ||
|
||
<assert> | ||
<success>PEPPOL-T116-R010</success> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AB</cbc:OrderResponseCode> | ||
|
||
<!-- <cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine>--> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
<test> | ||
<assert> | ||
<error>PEPPOL-T116-R010</error> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AB</cbc:OrderResponseCode> | ||
|
||
<cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
</testSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" | ||
configuration="peppolbis-t76-base-3.0"> | ||
<assert> | ||
<description>An order response with code AP (Accepted) should NOT provide order lines.</description> | ||
<scope>PEPPOL-T76-R008</scope> | ||
</assert> | ||
|
||
<test> | ||
|
||
<assert> | ||
<success>PEPPOL-T76-R008</success> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AP</cbc:OrderResponseCode> | ||
|
||
<!-- <cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine>--> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
<test> | ||
<assert> | ||
<warning>PEPPOL-T76-R008</warning> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>AP</cbc:OrderResponseCode> | ||
|
||
<cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
</testSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" | ||
configuration="peppolbis-t76-base-3.0"> | ||
<assert> | ||
<description>An order response with code RE (Rejected) should NOT provide order lines.</description> | ||
<scope>PEPPOL-T76-R009</scope> | ||
</assert> | ||
|
||
<test> | ||
|
||
<assert> | ||
<success>PEPPOL-T76-R009</success> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>RE</cbc:OrderResponseCode> | ||
|
||
<!-- <cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine>--> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
<test> | ||
<assert> | ||
<warning>PEPPOL-T76-R009</warning> | ||
</assert> | ||
|
||
<OrderResponse xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" | ||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" | ||
xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2"> | ||
|
||
<cbc:OrderResponseCode>RE</cbc:OrderResponseCode> | ||
|
||
<cac:OrderLine> | ||
<cac:LineItem> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="EUR"/> | ||
</cac:Price> | ||
</cac:LineItem> | ||
</cac:OrderLine> | ||
|
||
</OrderResponse> | ||
</test> | ||
|
||
|
||
</testSet> |
Oops, something went wrong.