Skip to content

Commit

Permalink
Add helper IsOk for DownloadInvoiceParseZipResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
printesoi committed Mar 22, 2024
1 parent 200c02f commit 59a3954
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Construct the required OAuth2 config needed for the Client:

```go
oauth2Cfg, err := efactura.MakeOAuth2Config(
OAuth2ConfigCredentials(anafAppClientID, anafApplientSecret),
OAuth2ConfigRedirectURL(anafAppRedirectURL),
efactura.OAuth2ConfigCredentials(anafAppClientID, anafApplientSecret),
efactura.OAuth2ConfigRedirectURL(anafAppRedirectURL),
)
if err != nil {
// Handle error
Expand Down
5 changes: 5 additions & 0 deletions rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ func (r *DownloadInvoiceResponse) IsOk() bool {
return r != nil && r.Error == nil
}

// IsOk returns true if the response corresponding to a download was successful.
func (r *DownloadInvoiceParseZipResponse) IsOk() bool {
return r != nil && r.DownloadResponse.IsOk()
}

// IsOk returns true if the response corresponding to fetching messages list
// was successful.
func (r *MessagesListResponse) IsOk() bool {
Expand Down

0 comments on commit 59a3954

Please sign in to comment.