Skip to content

Commit

Permalink
Update CII and UBL versions
Browse files Browse the repository at this point in the history
  • Loading branch information
apardods committed Jan 10, 2025
1 parent acdcaad commit df1e2cb
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 89 deletions.
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ go 1.22
toolchain go1.22.1

require (
github.com/invopop/gobl v0.205.1
github.com/invopop/gobl.cii v0.1.0
github.com/invopop/gobl.ubl v0.1.0
github.com/invopop/gobl v0.208.0
github.com/invopop/gobl.cii v0.3.0
github.com/invopop/gobl.ubl v0.3.0
github.com/joho/godotenv v1.5.1
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
gitlab.com/flimzy/testy v0.14.0
)

require (
cloud.google.com/go v0.116.0 // indirect
cloud.google.com/go v0.118.0 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/jsonschema v0.12.0 // indirect
github.com/invopop/jsonschema v0.13.0 // indirect
github.com/invopop/validation v0.8.0 // indirect
github.com/invopop/yaml v0.3.1 // indirect
github.com/magefile/mage v1.15.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/nbio/xml v0.0.0-20241028124227-eac89c735a80 // indirect
github.com/mailru/easyjson v0.9.0 // indirect
github.com/nbio/xml v0.0.0-20241216070934-4764bf75a92d // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
63 changes: 22 additions & 41 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE=
cloud.google.com/go v0.116.0/go.mod h1:cEPSRWPzZEswwdr9BxE6ChEn01dWlTaF05LiC2Xs70U=
github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0=
github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
cloud.google.com/go v0.118.0 h1:tvZe1mgqRxpiVa3XlIGMiPcEUbP1gNXELgD4y/IXmeQ=
cloud.google.com/go v0.118.0/go.mod h1:zIt2pkedt/mo+DQjcT4/L3NDxzHPR29j5HcclNH+9PM=
github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4=
github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
Expand All @@ -21,37 +19,20 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/invopop/gobl v0.205.0 h1:NkwtCTBNVdcvZKebFOcYUt/FH5GGS9G9JH6eFSmtGpg=
github.com/invopop/gobl v0.205.0/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/gobl v0.205.1-0.20241115103219-cc4007678ea9 h1:oooQ9xd3SZmlnyTkVNxUOMmzsloSO/IYeFsvQLtp5CU=
github.com/invopop/gobl v0.205.1-0.20241115103219-cc4007678ea9/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/gobl v0.205.1 h1:khW63/Hu2lzU+IpRN2RF71cfUttCizL0HHAmeakWHyE=
github.com/invopop/gobl v0.205.1/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/gobl.cii v0.0.0-20241114145226-64cd44efe88d h1:0kkPhcH00dQtlYv8D2Hixj1QVjSymsjODNMPP7qEdnA=
github.com/invopop/gobl.cii v0.0.0-20241114145226-64cd44efe88d/go.mod h1:NoyzmAkW4iqfnIkVWYsKS9SgUaF0runNYjEZPmfqSM4=
github.com/invopop/gobl.cii v0.0.0-20241114223258-6c81aeced980 h1:VNxWTRgUqpRPz9fCaZhjbvMAE6zIPdRfgKqx31nMkkA=
github.com/invopop/gobl.cii v0.0.0-20241114223258-6c81aeced980/go.mod h1:NoyzmAkW4iqfnIkVWYsKS9SgUaF0runNYjEZPmfqSM4=
github.com/invopop/gobl.cii v0.0.0-20241115151757-ee5af5a1eda8 h1:yx2jLHmoc1umxykl9Y8arpQSUn06Za3QPCqTeoDEef4=
github.com/invopop/gobl.cii v0.0.0-20241115151757-ee5af5a1eda8/go.mod h1:vkkkR88d4dAA4ylgST1ue6NUOVaoqZO9jwzemFje6Xo=
github.com/invopop/gobl.cii v0.1.0 h1:s2DmUi4VoSLAbPWINDYLXoGHo42AyUSpeTYoOs95pCI=
github.com/invopop/gobl.cii v0.1.0/go.mod h1:0swctFDzWyUvvLMUx6NPBhsejPEm0OA3l7L6WAqE0OM=
github.com/invopop/gobl.ubl v0.0.0-20241114150352-15f0f52cda19 h1:8Pj3LFVgi5GtFjcIR/iFdzSb9toPkWdVS9xKvVbPIAk=
github.com/invopop/gobl.ubl v0.0.0-20241114150352-15f0f52cda19/go.mod h1:FRU14OjOJQA6jxcnSYnosii0BNRyc0xxTITzdoxC+Bs=
github.com/invopop/gobl.ubl v0.0.0-20241114221205-b8e258001982 h1:hQgeQTaClL14Ne8Uv15xnRPt0RogyJWNKNL0JRiMZJw=
github.com/invopop/gobl.ubl v0.0.0-20241114221205-b8e258001982/go.mod h1:FRU14OjOJQA6jxcnSYnosii0BNRyc0xxTITzdoxC+Bs=
github.com/invopop/gobl.ubl v0.0.0-20241115154652-24b31765a085 h1:pTX6wPrX7HUdzJbsYDxqu7fmly+STwBzceDsmdfGJIw=
github.com/invopop/gobl.ubl v0.0.0-20241115154652-24b31765a085/go.mod h1:MtqKfzpr4iQsBO4H6t+z24BLGDm1uNx+atdNh5bUh5E=
github.com/invopop/gobl.ubl v0.1.0 h1:HADczTBZJKFGiAxr+jpNtfHel9glhndMhwdmFxAYXCA=
github.com/invopop/gobl.ubl v0.1.0/go.mod h1:6v3Wy8CDbbj56V4hazUj0SynwgEzobROQwD8eQqL0K8=
github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI=
github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/invopop/gobl v0.208.0 h1:qy5GHXELMy7qBtvgLL8m4d/aBgBaxq0bdAaae4a2luE=
github.com/invopop/gobl v0.208.0/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/gobl.cii v0.3.0 h1:JEvapxcRicUTOMof67QGaH8HAICDGWSuqs8OUHrfixs=
github.com/invopop/gobl.cii v0.3.0/go.mod h1:6QnCuRLozF3jiWdxzFUpV2NtsL0+62RZ5V9v6Pbvz6M=
github.com/invopop/gobl.ubl v0.3.0 h1:yHPXoh4cMBTHg9sAuZ0grJZ2lgAkmlJfUiHmhC4jJNg=
github.com/invopop/gobl.ubl v0.3.0/go.mod h1:zJgfQ+AfMhMkuBPpZq4EuC2UU/nFpUTEfLyRmuMXLrY=
github.com/invopop/jsonschema v0.13.0 h1:KvpoAJWEjR3uD9Kbm2HWJmqsEaHt8lBUpd0qHcIi21E=
github.com/invopop/jsonschema v0.13.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/invopop/validation v0.8.0 h1:e5hXHGnONHImgJdonIpNbctg1hlWy1ncaHoVIQ0JWuw=
github.com/invopop/validation v0.8.0/go.mod h1:nLLeXYPGwUNfdCdJo7/q3yaHO62LSx/3ri7JvgKR9vg=
github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso=
github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
Expand All @@ -64,14 +45,14 @@ github.com/lestrrat-go/libxml2 v0.0.0-20240905100032-c934e3fcb9d3 h1:ZIYZ0+TEddr
github.com/lestrrat-go/libxml2 v0.0.0-20240905100032-c934e3fcb9d3/go.mod h1:/0MMipmS+5SMXCSkulsvJwYmddKI4IL5tVy6AZMo9n0=
github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=
github.com/magefile/mage v1.15.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=
github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/nbio/xml v0.0.0-20241028124227-eac89c735a80 h1:1okRi+ZpH92VkeIJPJWfoNVXm3F4225PoT1LSO+gFfw=
github.com/nbio/xml v0.0.0-20241028124227-eac89c735a80/go.mod h1:990JnYmJZFrx1vI1TALoD6/fCqnWlTx2FrPbYy2wi5I=
github.com/nbio/xml v0.0.0-20241216070934-4764bf75a92d h1:BBcpYEgKYZ8PGw/Jxk3wGsEDz5OjN/wum2XAdyU56P8=
github.com/nbio/xml v0.0.0-20241216070934-4764bf75a92d/go.mod h1:990JnYmJZFrx1vI1TALoD6/fCqnWlTx2FrPbYy2wi5I=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down Expand Up @@ -99,18 +80,18 @@ gitlab.com/flimzy/testy v0.14.0 h1:2nZV4Wa1OSJb3rOKHh0GJqvvhtE03zT+sKnPCI0owfQ=
gitlab.com/flimzy/testy v0.14.0/go.mod h1:m3aGuwdXc+N3QgnH+2Ar2zf1yg0UxNdIaXKvC5SlfMk=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=
golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg=
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=
golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4=
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
Expand Down
13 changes: 12 additions & 1 deletion test/data/gtox/out/invoice-complete-facturx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>+49100200300</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>billing@example.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>69190</ram:PostcodeCode>
Expand All @@ -63,6 +66,11 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:Name>Sample Consumer</ram:Name>
<ram:DefinedTradeContact>
<ram:EmailURIUniversalCommunication>
<ram:URIID>email@sample.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>80939</ram:PostcodeCode>
<ram:LineOne>Werner-Heisenberg-Allee 25</ram:LineOne>
Expand Down Expand Up @@ -93,7 +101,7 @@
</ram:ShipToTradeParty>
<ram:ActualDeliverySupplyChainEvent>
<ram:OccurrenceDateTime>
<udt:DateTimeString>20240210</udt:DateTimeString>
<udt:DateTimeString format="102">20240210</udt:DateTimeString>
</ram:OccurrenceDateTime>
</ram:ActualDeliverySupplyChainEvent>
<ram:DespatchAdviceReferencedDocument>
Expand Down Expand Up @@ -162,6 +170,9 @@
</ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradePaymentTerms>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20130720</udt:DateTimeString>
</ram:DueDateDateTime>
<ram:DirectDebitMandateID>1234567890</ram:DirectDebitMandateID>
</ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Expand Down
13 changes: 12 additions & 1 deletion test/data/gtox/out/invoice-complete-xrechnung-cii.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>+49100200300</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>billing@example.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>69190</ram:PostcodeCode>
Expand All @@ -66,6 +69,11 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:Name>Sample Consumer</ram:Name>
<ram:DefinedTradeContact>
<ram:EmailURIUniversalCommunication>
<ram:URIID>email@sample.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>80939</ram:PostcodeCode>
<ram:LineOne>Werner-Heisenberg-Allee 25</ram:LineOne>
Expand Down Expand Up @@ -96,7 +104,7 @@
</ram:ShipToTradeParty>
<ram:ActualDeliverySupplyChainEvent>
<ram:OccurrenceDateTime>
<udt:DateTimeString>20240210</udt:DateTimeString>
<udt:DateTimeString format="102">20240210</udt:DateTimeString>
</ram:OccurrenceDateTime>
</ram:ActualDeliverySupplyChainEvent>
<ram:DespatchAdviceReferencedDocument>
Expand Down Expand Up @@ -165,6 +173,9 @@
</ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradePaymentTerms>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20130720</udt:DateTimeString>
</ram:DueDateDateTime>
<ram:DirectDebitMandateID>1234567890</ram:DirectDebitMandateID>
</ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Expand Down
22 changes: 10 additions & 12 deletions test/data/gtox/out/invoice-complete-xrechnung-ubl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
<cbc:DueDate>2013-07-20</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>PO4711</cbc:BuyerReference>
<cac:InvoicePeriod>
<cbc:StartDate>2013-03-10</cbc:StartDate>
<cbc:EndDate>2013-04-10</cbc:EndDate>
</cac:InvoicePeriod>
<cac:OrderReference>
<cbc:ID>PO4711</cbc:ID>
</cac:OrderReference>
<cac:DespatchDocumentReference>
<cbc:ID>5433</cbc:ID>
</cac:DespatchDocumentReference>
Expand All @@ -34,7 +32,7 @@
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>111111125</cbc:CompanyID>
<cbc:CompanyID>DE111111125</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
Expand All @@ -60,7 +58,7 @@
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>282741168</cbc:CompanyID>
<cbc:CompanyID>DE282741168</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
Expand Down Expand Up @@ -97,19 +95,19 @@
<cac:PaymentMeans>
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
<cbc:PaymentID>0003434323213231</cbc:PaymentID>
<cac:CardAccount>
<cbc:PrimaryAccountNumberID>1234</cbc:PrimaryAccountNumberID>
<cbc:HolderName>John Doe</cbc:HolderName>
</cac:CardAccount>
<cac:PayerFinancialAccount>
<cbc:ID>DE89370400440532013000</cbc:ID>
</cac:PayerFinancialAccount>
<cac:PayeeFinancialAccount>
<cbc:ID>NO9386011117947</cbc:ID>
<cac:FinancialInstitutionBranch>
<cbc:ID>DNBANOKK</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
<cac:PayerFinancialAccount>
<cbc:ID>DE89370400440532013000</cbc:ID>
</cac:PayerFinancialAccount>
<cac:CardAccount>
<cbc:PrimaryAccountNumberID>1234</cbc:PrimaryAccountNumberID>
<cbc:HolderName>John Doe</cbc:HolderName>
</cac:CardAccount>
<cac:PaymentMandate>
<cbc:ID>1234567890</cbc:ID>
</cac:PaymentMandate>
Expand Down
13 changes: 12 additions & 1 deletion test/data/gtox/out/invoice-complete-zugferd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>+49100200300</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>billing@example.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>69190</ram:PostcodeCode>
Expand All @@ -63,6 +66,11 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:Name>Sample Consumer</ram:Name>
<ram:DefinedTradeContact>
<ram:EmailURIUniversalCommunication>
<ram:URIID>email@sample.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>80939</ram:PostcodeCode>
<ram:LineOne>Werner-Heisenberg-Allee 25</ram:LineOne>
Expand Down Expand Up @@ -93,7 +101,7 @@
</ram:ShipToTradeParty>
<ram:ActualDeliverySupplyChainEvent>
<ram:OccurrenceDateTime>
<udt:DateTimeString>20240210</udt:DateTimeString>
<udt:DateTimeString format="102">20240210</udt:DateTimeString>
</ram:OccurrenceDateTime>
</ram:ActualDeliverySupplyChainEvent>
<ram:DespatchAdviceReferencedDocument>
Expand Down Expand Up @@ -162,6 +170,9 @@
</ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradePaymentTerms>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20130720</udt:DateTimeString>
</ram:DueDateDateTime>
<ram:DirectDebitMandateID>1234567890</ram:DirectDebitMandateID>
</ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Expand Down
11 changes: 11 additions & 0 deletions test/data/gtox/out/invoice-simple-facturx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>46211230</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>antonio@salescompany.no</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>303</ram:PostcodeCode>
Expand All @@ -65,6 +68,11 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:Name>Sample Consumer</ram:Name>
<ram:DefinedTradeContact>
<ram:EmailURIUniversalCommunication>
<ram:URIID>email@sample.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>80939</ram:PostcodeCode>
<ram:LineOne>Werner-Heisenberg-Allee 25</ram:LineOne>
Expand All @@ -85,6 +93,9 @@
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>+49100200300</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>billing@example.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>69190</ram:PostcodeCode>
Expand Down
Loading

0 comments on commit df1e2cb

Please sign in to comment.