<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed under European Union Public Licence (EUPL) version 1.2.

-->
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="tc434-ubl">
	<assert>
		<scope>BR-10</scope>
	</assert>
	<test>
		<assert>
			<description>Verify Buyer postal address is present</description>
			<success>BR-10</success>
		</assert>
		<Invoice
			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:Invoice-2">

			<cac:AccountingCustomerParty>
				<cac:Party>
					<cac:PostalAddress>
						<cbc:StreetName>Main street 34</cbc:StreetName>
						<cbc:AdditionalStreetName>Suite 123</cbc:AdditionalStreetName>
						<cbc:CityName>Big city</cbc:CityName>
						<cbc:PostalZone>54321</cbc:PostalZone>
						<cbc:CountrySubentity>RegionA</cbc:CountrySubentity>
						<cac:Country>
							<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
						</cac:Country>
					</cac:PostalAddress>
				</cac:Party>
			</cac:AccountingCustomerParty>
		</Invoice>
	</test>
	<test>
		<assert>
			<description>Verify Buyer postal address is present</description>
			<success>BR-10</success>
		</assert>
		<Invoice
			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:Invoice-2">
			
			<cac:AccountingCustomerParty>
				<cac:Party>
					<cac:PostalAddress></cac:PostalAddress>	
				</cac:Party>
			</cac:AccountingCustomerParty>
		</Invoice>
	</test>

	<test>
		<assert>
			<description>Trigger error when Buyer postal address is missing</description>
			<error>BR-10</error>
		</assert>
		<Invoice
			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:Invoice-2">
			
				<!--
			<cac:AccountingCustomerParty>
				<cac:Party>
					<cac:PostalAddress/>	
				</cac:Party>
			</cac:AccountingCustomerParty>
				-->
			</Invoice>
	</test>

	<test>
		<assert>
			<description>Trigger error when Buyer postal address is missing</description>
			<error>BR-10</error>
		</assert>
		<Invoice
			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:Invoice-2">


			<cac:AccountingCustomerParty>
				<!-- <cac:Party>
					<cac:PostalAddress/>	
				</cac:Party> -->
			</cac:AccountingCustomerParty>
		</Invoice>
	</test>
	
	<test>
		<assert>
			<description>Trigger error when Buyer postal address is missing</description>
			<error>BR-10</error>
		</assert>
		<Invoice
			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:Invoice-2">
			
			<cac:AccountingCustomerParty>
				 <cac:Party>
				 	<!-- <cac:PostalAddress></cac:PostalAddress> -->	
				</cac:Party>
			</cac:AccountingCustomerParty>
		</Invoice>
	</test>


</testSet>
