forked from amcintosh/freshbooks-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Handle new accounting and events errors
The latest API changes revert the "new" accounting errors and have changed the events errors.
- Loading branch information
Andrew McIntosh
committed
Apr 2, 2024
1 parent
52351dc
commit 81356b3
Showing
9 changed files
with
32 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 4 additions & 24 deletions
28
tests/fixtures/create_callback_response__validation_error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
{ | ||
"code": 3, | ||
"message": "Invalid data in this request.", | ||
"errno": 422, | ||
"message": "The request was well-formed but was unable to be followed due to semantic errors.", | ||
"details": [ | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.BadRequest", | ||
"fieldViolations": [ | ||
{ | ||
"field": "event", | ||
"description": "Unrecognized event." | ||
}, | ||
{ | ||
"field": "uri", | ||
"description": "Not a well-formed URL." | ||
} | ||
] | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.Help", | ||
"links": [ | ||
{ | ||
"description": "API Documentation", | ||
"url": "https://www.freshbooks.com/api/webhooks" | ||
} | ||
] | ||
} | ||
"event: Value error, Unrecognized event.", | ||
"uri: Input should be a valid URL, relative URL without a base" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"code": 16, | ||
"message": "The request token failed to authenticate or validate.", | ||
"details": [] | ||
"errno": 401, | ||
"message": "invalid_token: The request token failed to authenticate or validate." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"code": 5, | ||
"message": "Requested resource could not be found.", | ||
"details": [] | ||
"errno": 404, | ||
"message": "Requested resource could not be found." | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters