Skip to content

Commit

Permalink
chore(deps): bump github.com/invopop/gobl from 0.115.1 to 0.200.1 (#1624
Browse files Browse the repository at this point in the history
)

* chore(deps): bump github.com/invopop/gobl from 0.115.1 to 0.200.1

Bumps [github.com/invopop/gobl](https://github.com/invopop/gobl) from 0.115.1 to 0.200.1.
- [Release notes](https://github.com/invopop/gobl/releases)
- [Changelog](https://github.com/invopop/gobl/blob/main/CHANGELOG.md)
- [Commits](invopop/gobl@v0.115.1...v0.200.1)

---
updated-dependencies:
- dependency-name: github.com/invopop/gobl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: gobl api changes

* fix: failing testcase
  • Loading branch information
dependabot[bot] authored Oct 7, 2024
1 parent cf8c453 commit 94356ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require (
github.com/google/uuid v1.6.0
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/huandu/go-sqlbuilder v1.30.0
github.com/invopop/gobl v0.115.1
github.com/invopop/gobl v0.200.1
github.com/invopop/validation v0.8.0
github.com/jackc/pgx/v5 v5.7.1
github.com/lmittmann/tint v1.0.5
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ github.com/influxdata/go-syslog/v3 v3.0.0 h1:jichmjSZlYK0VMmlz+k4WeOQd7z745YLsvG
github.com/influxdata/go-syslog/v3 v3.0.0/go.mod h1:tulsOp+CecTAYC27u9miMgq21GqXRW6VdKbOG+QSP4Q=
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c h1:qSHzRbhzK8RdXOsAdfDgO49TtqC1oZ+acxPrkfTxcCs=
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/invopop/gobl v0.115.1 h1:32qjjJn8WAp1evYBKWniJa6yTvtXMPjL6aHIxxuRP90=
github.com/invopop/gobl v0.115.1/go.mod h1:lnlUK1cwjla/EPdxH1O7hKSSBv58DNWLV4/lOCv1vlQ=
github.com/invopop/gobl v0.200.1 h1:kwFioffY3BpLLngMowoem3A7NHJGLt0BGmiNj0EN/wI=
github.com/invopop/gobl v0.200.1/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI=
github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/invopop/validation v0.8.0 h1:e5hXHGnONHImgJdonIpNbctg1hlWy1ncaHoVIQ0JWuw=
Expand Down Expand Up @@ -1160,8 +1160,8 @@ github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzG
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/rogpeppe/go-internal v1.12.1-0.20240709150035-ccf4b4329d21 h1:igWZJluD8KtEtAgRyF4x6lqcxDry1ULztksMJh2mnQE=
github.com/rogpeppe/go-internal v1.12.1-0.20240709150035-ccf4b4329d21/go.mod h1:RMRJLmBOqWacUkmJHRMiPKh1S1m3PA7Zh4W80/kWPpg=
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
Expand Down
4 changes: 2 additions & 2 deletions openmeter/billing/gobldriver/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func (d *Driver) invoiceToGOBL(input billing.InvoiceWithValidation) invoiceWithV

invoice := &bill.Invoice{
Type: inv.Type.CBCKey(),
Series: inv.InvoiceNumber.Series,
Code: inv.InvoiceNumber.Code,
Series: cbc.Code(inv.InvoiceNumber.Series),
Code: cbc.Code(inv.InvoiceNumber.Code),
IssueDate: cal.Date{
Date: civil.DateOf(lo.FromPtrOr(inv.IssuedAt, inv.CreatedAt).In(loc)),
},
Expand Down
3 changes: 0 additions & 3 deletions openmeter/billing/gobldriver/invoice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ func TestValidationErrors(t *testing.T) {

expectedOutput := ValidationErrorsComplement{
Fields: map[string][]ValidationErrorJSON{
"code": {
{Code: "validation_required", Message: "cannot be blank"},
},
"customer.billingAddress": {
{Code: "customer_billing_address_not_found", Message: "missing customer billing address"},
},
Expand Down

0 comments on commit 94356ea

Please sign in to comment.