From 60cee6757e25bdf7973c0cf910fd3de19c16e0de Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 13 Jan 2022 12:36:15 +0000 Subject: [PATCH] Updating copyright information --- NOTICE | 35 +++++++++++++++++++++++++++++++++++ README.md | 11 ++++------- bill/invoice.go | 2 +- bill/line.go | 2 +- go.mod | 1 - go.sum | 2 -- 6 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 NOTICE diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..8ec916e0 --- /dev/null +++ b/NOTICE @@ -0,0 +1,35 @@ +GOBL (Go Business Language) (https://gobl.org) +Copyright 2021-2022 Invopop Ltd. + +This product includes software developed by Invopop Ltd. (UK) +(https://invopop.com). + +This product also includes the following third party components: + +- Go JSON Schema Reflection (https://github.com/alecthomas/jsonschema) + The MIT License + Copyright (C) 2014 Alec Thomas + +- ozzo-validation (https://github.com/go-ozzo/ozzo-validation) + The MIT License + Copyright (c) 2016, Qiang Xue + +- Google UUID (https://github.com/google/uuid) + BSD 3-Clause "New" or "Revised" License + Copyright (c) 2009,2014 Google Inc. All rights reserved. + +- Google Cloud Go (https://github.com/googleapis/google-cloud-go) + Apache Licnese 2.0 + Copyright (c) 2014 Google LLC + +- Go JOSE (https://github.com/go-jose/go-jose) + Apache Licnese 2.0 + Copyright 2014 Square Inc. + +- Testify (https://github.com/stretchr/testify) + The MIT License + Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors. + +- Go Cryptography (golang.org/x/crypto) + License: https://github.com/golang/go/blob/master/LICENSE + Copyright (c) 2009 The Go Authors. All rights reserved. diff --git a/README.md b/README.md index 27464129..a7428ec1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # GOBL -![GOBL Logo](https://github.com/invopop/gobl/blob/main/gobl_logo_black_rgb.svg?raw=true) +GOBL Logo -Go Business Language. +Go Business Language. + +Released under the Apache 2.0 [LICENSE](https://github.com/invopop/gobl/blob/main/LICENSE), Copyright 2021,2022 [Invopop Ltd.](https://invopop.com). ## Introduction @@ -18,14 +20,10 @@ In our opinion, Go is an ideal language for this type of project due to its simp ### Packages - - ### Documents - ### Envelope - ## Serialization ### Amounts & Percentages @@ -41,4 +39,3 @@ To get around the issues with sequential numbers, the [UUID standard](https://to The GoBL library forces you to use UUIDs instead of sequential IDs for anything that could be referenced in the future. To enforce this fact, instead of naming fields `id`, we make an effort to call them `uuid`. Sometimes sequential IDs are however required, usually for human consumption purposes such as ensuring order when generating invoices so that authorities can quickly check that dates and numbers are in order. Our recommendation for such codes is to use a dedicated service to generate sequential IDs based on the UUIDs, such as [Invopop's Sequence Service](https://invopop.com). - diff --git a/bill/invoice.go b/bill/invoice.go index 85f05783..94ce95a3 100644 --- a/bill/invoice.go +++ b/bill/invoice.go @@ -11,7 +11,7 @@ import ( "github.com/invopop/gobl/tax" "github.com/invopop/gobl/uuid" - validation "github.com/go-ozzo/ozzo-validation" + validation "github.com/go-ozzo/ozzo-validation/v4" ) // Invoice represents a payment claim for goods or services supplied under diff --git a/bill/line.go b/bill/line.go index e5333234..40442d23 100644 --- a/bill/line.go +++ b/bill/line.go @@ -1,7 +1,7 @@ package bill import ( - validation "github.com/go-ozzo/ozzo-validation" + validation "github.com/go-ozzo/ozzo-validation/v4" "github.com/invopop/gobl/num" "github.com/invopop/gobl/org" "github.com/invopop/gobl/tax" diff --git a/go.mod b/go.mod index 3bd89772..cd4cbcc1 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.14 require ( cloud.google.com/go v0.65.0 github.com/alecthomas/jsonschema v0.0.0-20211228220459-151e3c21f49d - github.com/go-ozzo/ozzo-validation v3.6.0+incompatible github.com/go-ozzo/ozzo-validation/v4 v4.3.0 github.com/google/uuid v1.1.2 github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 diff --git a/go.sum b/go.sum index 0c4332f5..bcf3af63 100644 --- a/go.sum +++ b/go.sum @@ -51,8 +51,6 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7 github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-ozzo/ozzo-validation v3.6.0+incompatible h1:msy24VGS42fKO9K1vLz82/GeYW1cILu7Nuuj1N3BBkE= -github.com/go-ozzo/ozzo-validation v3.6.0+incompatible/go.mod h1:gsEKFIVnabGBt6mXmxK0MoFy+cZoTJY6mu5Ll3LVLBU= github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es= github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=