Skip to content

Commit

Permalink
Merge pull request #11 from skat/feature/emcs_phase_4.0
Browse files Browse the repository at this point in the history
Feature/emcs phase 4.0
  • Loading branch information
cdcurry authored Feb 13, 2023
2 parents 518d0ec + 1ee39f1 commit 8f66259
Show file tree
Hide file tree
Showing 121 changed files with 2,450 additions and 1,568 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $ mvn clean install \
-Ddk.skat.emcs.b2b.sample.TXID_PREFIX=ACME_01_
```

This service returns a **response** similar to this output:
This service returns a **response** similar to this output (in thie case PHASE 3 based document):

```
*******************************************************************
Expand Down
11 changes: 7 additions & 4 deletions build-client-truststore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ echo "Importing ..."

keytool -noprompt -import -alias skatserver -file pem/emcs-test-system.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword

# Import SSL cert for secure transport (https://..)
Import SSL cert for secure transport (https://..)
# The full cert. chain is viewable with openssl command: openssl s_client -connect host:port -showcerts
#
keytool -noprompt -import -alias ssl_chain_0 -file pem/ssl-chain-0.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword
# Level 0 is sufficient for completeness we import the full chain (level 1,2,3..)
# Level 1 is sufficient
keytool -noprompt -import -alias ssl_chain_1 -file pem/ssl-chain-1.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword
keytool -noprompt -import -alias ssl_chain_2 -file pem/ssl-chain-2.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword
#
# ... but for completeness we could import the full chain (level 1,2,3..)
#keytool -noprompt -import -alias ssl_chain_0 -file pem/ssl-chain-0.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword
#keytool -noprompt -import -alias ssl_chain_1 -file pem/ssl-chain-1.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword
#keytool -noprompt -import -alias ssl_chain_2 -file pem/ssl-chain-2.pem -keystore $CLIENT_TUSTSTORE -storepass storepassword

echo "After import ..."
keytool -list -keystore $CLIENT_TUSTSTORE -storepass storepassword
Expand Down
32 changes: 32 additions & 0 deletions change-dest-ie813.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IE813 xmlns:ns0="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE813:V3.01">
<ns7:Header xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE813:V3.01">
<ns8:MessageSender xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageSender>
<ns8:MessageRecipient xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageRecipient>
<ns8:DateOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">2023-01-12</ns8:DateOfPreparation>
<ns8:TimeOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">13:34:36.938</ns8:TimeOfPreparation>
<ns8:MessageIdentifier xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">DKEMCS20230000000344948</ns8:MessageIdentifier>
</ns7:Header>
<ns7:Body xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE813:V3.01">
<ns7:ChangeOfDestination>
<ns7:Attributes>
<ns7:DateAndTimeOfValidationOfChangeOfDestination>2023-01-12T13:34:36.000</ns7:DateAndTimeOfValidationOfChangeOfDestination>
</ns7:Attributes>
<ns7:UpdateEadEsad>
<ns7:AdministrativeReferenceCode>23DK4HOT8VCVUDCPYYG43</ns7:AdministrativeReferenceCode>
<ns7:SequenceNumber>2</ns7:SequenceNumber>
</ns7:UpdateEadEsad>
<ns7:DestinationChanged>
<ns7:DestinationTypeCode>1</ns7:DestinationTypeCode>
<ns7:DeliveryPlaceTrader language="da">
<ns7:Traderid>DK82065873305</ns7:Traderid>
<ns7:TraderName>Test af KS-1, testsitnr. 3.1.3.22</ns7:TraderName>
<ns7:StreetName>Perlegade</ns7:StreetName>
<ns7:StreetNumber>38</ns7:StreetNumber>
<ns7:Postcode>6400</ns7:Postcode>
<ns7:City>Sønderborg</ns7:City>
</ns7:DeliveryPlaceTrader>
</ns7:DestinationChanged>
</ns7:ChangeOfDestination>
</ns7:Body>
</ns0:IE813>
100 changes: 100 additions & 0 deletions change-dest-ie815.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IE815 xmlns:ns0="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns7:Header xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns8:MessageSender xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageSender>
<ns8:MessageRecipient xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageRecipient>
<ns8:DateOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">2023-01-11</ns8:DateOfPreparation>
<ns8:TimeOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">15:17:58.134</ns8:TimeOfPreparation>
<ns8:MessageIdentifier xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">DKEMCS20230000000344920</ns8:MessageIdentifier>
</ns7:Header>
<ns7:Body xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns7:SubmittedDraftOfEADESAD>
<ns7:Attributes>
<ns7:SubmissionMessageType>1</ns7:SubmissionMessageType>
<ns7:DeferredSubmissionFlag>1</ns7:DeferredSubmissionFlag>
</ns7:Attributes>
<ns7:ConsigneeTrader language="da">
<ns7:Traderid>DK82065873300</ns7:Traderid>
<ns7:TraderName>Test af KS-1, testsitnr. 3.1.3.22</ns7:TraderName>
<ns7:StreetName>Borupvej</ns7:StreetName>
<ns7:StreetNumber>1</ns7:StreetNumber>
<ns7:Postcode>3320</ns7:Postcode>
<ns7:City>Skævinge</ns7:City>
</ns7:ConsigneeTrader>
<ns7:ConsignorTrader language="da">
<ns7:TraderExciseNumber>DK31175143300</ns7:TraderExciseNumber>
<ns7:TraderName>eService FKT-TEST BLAA 0013</ns7:TraderName>
<ns7:StreetName>Silkeborgvej</ns7:StreetName>
<ns7:StreetNumber>9</ns7:StreetNumber>
<ns7:Postcode>8000</ns7:Postcode>
<ns7:City>Århus C</ns7:City>
</ns7:ConsignorTrader>
<ns7:PlaceOfDispatchTrader language="da">
<ns7:ReferenceOfTaxWarehouse>DK31175143301</ns7:ReferenceOfTaxWarehouse>
<ns7:TraderName>eService FKT-TEST BLAA 0013</ns7:TraderName>
<ns7:StreetName>Silkeborgvej</ns7:StreetName>
<ns7:StreetNumber>9</ns7:StreetNumber>
<ns7:Postcode>8000</ns7:Postcode>
<ns7:City>Århus C</ns7:City>
</ns7:PlaceOfDispatchTrader>
<ns7:DeliveryPlaceTrader language="da">
<ns7:Traderid>DK82065873307</ns7:Traderid>
<ns7:TraderName>Test af KS-1, testsitnr. 3.1.3.22</ns7:TraderName>
<ns7:StreetName>Borupvej</ns7:StreetName>
<ns7:StreetNumber>7</ns7:StreetNumber>
<ns7:Postcode>3320</ns7:Postcode>
<ns7:City>Skævinge</ns7:City>
</ns7:DeliveryPlaceTrader>
<ns7:CompetentAuthorityDispatchOffice>
<ns7:ReferenceNumber>DK008047</ns7:ReferenceNumber>
</ns7:CompetentAuthorityDispatchOffice>
<ns7:FirstTransporterTrader language="da">
<ns7:VatNumber>CVRsplit</ns7:VatNumber>
<ns7:TraderName>TransportørNavn</ns7:TraderName>
<ns7:StreetName>TransportørVej</ns7:StreetName>
<ns7:StreetNumber>8</ns7:StreetNumber>
<ns7:Postcode>2000</ns7:Postcode>
<ns7:City>TransportørBy</ns7:City>
</ns7:FirstTransporterTrader>
<ns7:HeaderEadEsad>
<ns7:DestinationTypeCode>1</ns7:DestinationTypeCode>
<ns7:JourneyTime>D03</ns7:JourneyTime>
<ns7:TransportArrangement>1</ns7:TransportArrangement>
</ns7:HeaderEadEsad>
<ns7:TransportMode>
<ns7:TransportModeCode>0</ns7:TransportModeCode>
<ns7:ComplementaryInformation language="da">Forsendelsen skal måske skifte leveringssted</ns7:ComplementaryInformation>
</ns7:TransportMode>
<ns7:MovementGuarantee>
<ns7:GuarantorTypeCode>1</ns7:GuarantorTypeCode>
</ns7:MovementGuarantee>
<ns7:BodyEadEsad>
<ns7:BodyRecordUniqueReference>1</ns7:BodyRecordUniqueReference>
<ns7:ExciseProductCode>B000</ns7:ExciseProductCode>
<ns7:CnCode>22030001</ns7:CnCode>
<ns7:Quantity>5000</ns7:Quantity>
<ns7:GrossMass>5000</ns7:GrossMass>
<ns7:NetMass>4000</ns7:NetMass>
<ns7:AlcoholicStrengthByVolumeInPercentage>5</ns7:AlcoholicStrengthByVolumeInPercentage>
<ns7:FiscalMarkUsedFlag>0</ns7:FiscalMarkUsedFlag>
<ns7:CommercialDescription language="da">Øl i flasker</ns7:CommercialDescription>
<ns7:Package>
<ns7:KindOfPackages>BS</ns7:KindOfPackages>
<ns7:NumberOfPackages>5000</ns7:NumberOfPackages>
</ns7:Package>
</ns7:BodyEadEsad>
<ns7:EadEsadDraft>
<ns7:LocalReferenceNumber>DK1673446677682</ns7:LocalReferenceNumber>
<ns7:InvoiceNumber>7991</ns7:InvoiceNumber>
<ns7:InvoiceDate>2023-01-11</ns7:InvoiceDate>
<ns7:OriginTypeCode>1</ns7:OriginTypeCode>
<ns7:DateOfDispatch>2023-01-11</ns7:DateOfDispatch>
<ns7:TimeOfDispatch>16:00:58.138</ns7:TimeOfDispatch>
</ns7:EadEsadDraft>
<ns7:TransportDetails>
<ns7:TransportUnitCode>1</ns7:TransportUnitCode>
<ns7:IdentityOfTransportUnits>89080</ns7:IdentityOfTransportUnits>
</ns7:TransportDetails>
</ns7:SubmittedDraftOfEADESAD>
</ns7:Body>
</ns0:IE815>
98 changes: 98 additions & 0 deletions for-notification-ie815.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IE815 xmlns:ns0="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns7:Header xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns8:MessageSender xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageSender>
<ns8:MessageRecipient xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageRecipient>
<ns8:DateOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">2023-01-13</ns8:DateOfPreparation>
<ns8:TimeOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">09:45:37.775</ns8:TimeOfPreparation>
<ns8:MessageIdentifier xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">DKEMCS20230000000345055</ns8:MessageIdentifier>
</ns7:Header>
<ns7:Body xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE815:V3.01">
<ns7:SubmittedDraftOfEADESAD>
<ns7:Attributes>
<ns7:SubmissionMessageType>1</ns7:SubmissionMessageType>
<ns7:DeferredSubmissionFlag>1</ns7:DeferredSubmissionFlag>
</ns7:Attributes>
<ns7:ConsigneeTrader language="da">
<ns7:Traderid>DK99025875300</ns7:Traderid>
<ns7:TraderName>SEED selskab 1 20120710</ns7:TraderName>
<ns7:StreetName>Kirkegade</ns7:StreetName>
<ns7:StreetNumber>10</ns7:StreetNumber>
<ns7:Postcode>6840</ns7:Postcode>
<ns7:City>Oksbøl</ns7:City>
</ns7:ConsigneeTrader>
<ns7:ConsignorTrader language="da">
<ns7:TraderExciseNumber>DK31175143300</ns7:TraderExciseNumber>
<ns7:TraderName>eService FKT-TEST BLAA 0013</ns7:TraderName>
<ns7:StreetName>Silkeborgvej</ns7:StreetName>
<ns7:StreetNumber>9</ns7:StreetNumber>
<ns7:Postcode>8000</ns7:Postcode>
<ns7:City>Århus C</ns7:City>
</ns7:ConsignorTrader>
<ns7:PlaceOfDispatchTrader language="da">
<ns7:ReferenceOfTaxWarehouse>DK31175143301</ns7:ReferenceOfTaxWarehouse>
<ns7:TraderName>eService FKT-TEST BLAA 0013</ns7:TraderName>
<ns7:StreetName>Silkeborgvej</ns7:StreetName>
<ns7:StreetNumber>9</ns7:StreetNumber>
<ns7:Postcode>8000</ns7:Postcode>
<ns7:City>Århus C</ns7:City>
</ns7:PlaceOfDispatchTrader>
<ns7:DeliveryPlaceTrader language="da">
<ns7:Traderid>DK99025875499</ns7:Traderid>
<ns7:TraderName>SEED selskab 1 20120710</ns7:TraderName>
<ns7:StreetName>Statshavnen</ns7:StreetName>
<ns7:StreetNumber>6</ns7:StreetNumber>
<ns7:Postcode>3000</ns7:Postcode>
<ns7:City>Helsingør</ns7:City>
</ns7:DeliveryPlaceTrader>
<ns7:CompetentAuthorityDispatchOffice>
<ns7:ReferenceNumber>DK008047</ns7:ReferenceNumber>
</ns7:CompetentAuthorityDispatchOffice>
<ns7:FirstTransporterTrader language="da">
<ns7:VatNumber>cvr</ns7:VatNumber>
<ns7:TraderName>navn</ns7:TraderName>
<ns7:StreetName>vej</ns7:StreetName>
<ns7:StreetNumber>8</ns7:StreetNumber>
<ns7:Postcode>2000</ns7:Postcode>
<ns7:City>by</ns7:City>
</ns7:FirstTransporterTrader>
<ns7:HeaderEadEsad>
<ns7:DestinationTypeCode>1</ns7:DestinationTypeCode>
<ns7:JourneyTime>D02</ns7:JourneyTime>
<ns7:TransportArrangement>1</ns7:TransportArrangement>
</ns7:HeaderEadEsad>
<ns7:TransportMode>
<ns7:TransportModeCode>0</ns7:TransportModeCode>
<ns7:ComplementaryInformation language="da">Skal måske afvises</ns7:ComplementaryInformation>
</ns7:TransportMode>
<ns7:MovementGuarantee>
<ns7:GuarantorTypeCode>1</ns7:GuarantorTypeCode>
</ns7:MovementGuarantee>
<ns7:BodyEadEsad>
<ns7:BodyRecordUniqueReference>1</ns7:BodyRecordUniqueReference>
<ns7:ExciseProductCode>E500</ns7:ExciseProductCode>
<ns7:CnCode>27111211</ns7:CnCode>
<ns7:Quantity>5000</ns7:Quantity>
<ns7:GrossMass>1000</ns7:GrossMass>
<ns7:NetMass>900</ns7:NetMass>
<ns7:FiscalMarkUsedFlag>0</ns7:FiscalMarkUsedFlag>
<ns7:CommercialDescription language="da">Propan af en renhedsgrad på 99 vægtprocent og derover til anvendelse som brændstof</ns7:CommercialDescription>
<ns7:Package>
<ns7:KindOfPackages>BI</ns7:KindOfPackages>
<ns7:NumberOfPackages>5000</ns7:NumberOfPackages>
</ns7:Package>
</ns7:BodyEadEsad>
<ns7:EadEsadDraft>
<ns7:LocalReferenceNumber>DK1673599537327</ns7:LocalReferenceNumber>
<ns7:InvoiceNumber>79791</ns7:InvoiceNumber>
<ns7:InvoiceDate>2023-01-11</ns7:InvoiceDate>
<ns7:OriginTypeCode>1</ns7:OriginTypeCode>
<ns7:DateOfDispatch>2023-01-13</ns7:DateOfDispatch>
<ns7:TimeOfDispatch>20:05:37.776</ns7:TimeOfDispatch>
</ns7:EadEsadDraft>
<ns7:TransportDetails>
<ns7:TransportUnitCode>5</ns7:TransportUnitCode>
</ns7:TransportDetails>
</ns7:SubmittedDraftOfEADESAD>
</ns7:Body>
</ns0:IE815>
40 changes: 40 additions & 0 deletions for-notification-ie819.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IE819 xmlns:ns0="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE819:V3.01">
<ns7:Header xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE819:V3.01">
<ns8:MessageSender xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageSender>
<ns8:MessageRecipient xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">NDEA.DK</ns8:MessageRecipient>
<ns8:DateOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">2023-01-13</ns8:DateOfPreparation>
<ns8:TimeOfPreparation xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">09:59:58.768</ns8:TimeOfPreparation>
<ns8:MessageIdentifier xmlns:ns8="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">DKEMCS20230000000345061</ns8:MessageIdentifier>
</ns7:Header>
<ns7:Body xmlns:ns7="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE819:V3.01">
<ns7:AlertOrRejectionOfEADESAD>
<ns7:Attributes>
<ns7:DateAndTimeOfValidationOfAlertRejection>2023-01-13T09:59:58.000</ns7:DateAndTimeOfValidationOfAlertRejection>
</ns7:Attributes>
<ns7:ConsigneeTrader language="da">
<ns7:Traderid>DK99025875300</ns7:Traderid>
<ns7:TraderName>SEED selskab 1 20120710</ns7:TraderName>
<ns7:StreetName>Kirkegade</ns7:StreetName>
<ns7:StreetNumber>10</ns7:StreetNumber>
<ns7:Postcode>6840</ns7:Postcode>
<ns7:City>Oksbøl</ns7:City>
</ns7:ConsigneeTrader>
<ns7:ExciseMovement>
<ns7:AdministrativeReferenceCode>23DKQBEN4L01GNWFVSC42</ns7:AdministrativeReferenceCode>
<ns7:SequenceNumber>1</ns7:SequenceNumber>
</ns7:ExciseMovement>
<ns7:DestinationOffice>
<ns7:ReferenceNumber>DK008047</ns7:ReferenceNumber>
</ns7:DestinationOffice>
<ns7:AlertOrRejection>
<ns7:DateOfAlertOrRejection>2023-01-13</ns7:DateOfAlertOrRejection>
<ns7:EadEsadRejectedFlag>1</ns7:EadEsadRejectedFlag>
</ns7:AlertOrRejection>
<ns7:AlertOrRejectionOfEadEsadReason>
<ns7:AlertOrRejectionOfMovementReasonCode>3</ns7:AlertOrRejectionOfMovementReasonCode>
<ns7:ComplementaryInformation language="da">Der mangler 2</ns7:ComplementaryInformation>
</ns7:AlertOrRejectionOfEadEsadReason>
</ns7:AlertOrRejectionOfEADESAD>
</ns7:Body>
</ns0:IE819>
9 changes: 4 additions & 5 deletions ie705.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urn:IE705 xmlns:urn="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:IE705:V2.02"
xmlns:urn1="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02">
<urn:IE705 xmlns:urn="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:IE705:V3.01"
xmlns:urn1="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:TMS:V3.01">
<urn:Header>
<urn1:MessageSender>NDEA.DK</urn1:MessageSender>
<urn1:MessageRecipient>NDEA.DK</urn1:MessageRecipient>
Expand All @@ -13,14 +13,13 @@
<urn:Body>
<urn:ExternalRequest>
<urn:Attributes>
<urn:RequestingEconomicOperator>DK12345678901</urn:RequestingEconomicOperator>
<!--Optional:-->
<urn:RequestReason language="to">token</urn:RequestReason>
<urn:RequestingEconomicOperator>DK82070486100</urn:RequestingEconomicOperator>
</urn:Attributes>
<!--1 to 99 repetitions:-->
<urn:ListOfCodes>
<urn:RequestedListOfCodesCode>18</urn:RequestedListOfCodesCode>
</urn:ListOfCodes>

</urn:ExternalRequest>
</urn:Body>
</urn:IE705>
Loading

0 comments on commit 8f66259

Please sign in to comment.