Skip to content

Commit

Permalink
Remove ParseDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
apardods committed Dec 18, 2024
1 parent f105a0a commit 1fe867f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 120 deletions.
11 changes: 0 additions & 11 deletions verifactu.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"context"
"time"

"github.com/nbio/xml"

"github.com/invopop/gobl.verifactu/doc"
"github.com/invopop/gobl.verifactu/internal/gateways"
"github.com/invopop/xmldsig"
Expand Down Expand Up @@ -120,15 +118,6 @@ func (c *Client) Post(ctx context.Context, d []byte) error {
return nil
}

// ParseDocument will parse the XML data into a VeriFactu document.
func ParseDocument(data []byte) (*doc.Envelope, error) {
d := new(doc.Envelope)
if err := xml.Unmarshal(data, d); err != nil {
return nil, err
}
return d, nil
}

// CurrentTime returns the current time to use when generating
// the VeriFactu document.
func (c *Client) CurrentTime() time.Time {
Expand Down
109 changes: 0 additions & 109 deletions verifactu_test.go

This file was deleted.

0 comments on commit 1fe867f

Please sign in to comment.