-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(anrok): add error details to invoice response (#260)
* add error_details to invoice and retry endpoint on invoice * use post method instead of put for retry invoice * remove not used type * fix ruff
- Loading branch information
1 parent
cae8551
commit 7fea97c
Showing
4 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Any, Dict, List, Optional | ||
|
||
from lago_python_client.base_model import BaseModel | ||
|
||
from ..base_model import BaseResponseModel | ||
|
||
|
||
class ErrorDetailResponse(BaseModel): | ||
organization_id: str | ||
error_code: str | ||
details: Optional[Dict[str, Any]] | ||
|
||
|
||
class ErrorDetailsResponse(BaseResponseModel): | ||
__root__: List[ErrorDetailResponse] |
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