Skip to content

Commit

Permalink
Added error codes for funding sources errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christian.casado committed Aug 7, 2024
1 parent f018fbf commit d244ecb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions shipengine/enums/error_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,13 @@ class ErrorCode(Enum):
ShipEngine only allows you to have one webhook of each type. If you would
like to replace a webhook with a new one, please delete the old one first.
"""

FUNDING_SOURCE_MISSING_CONFIGURATION = "funding_source_missing_configuration"
"""
Funding source isnt properly configured and can't be used.
"""

FUNDING_SOURCE_ERROR = "funding_source_error"
"""
There was a problem with a funding source.
"""
9 changes: 9 additions & 0 deletions shipengine/enums/error_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,14 @@ class ErrorType(Enum):
AUTHORIZATION = "authorization"
"""General authorization error type."""

INTEGRATIONS = "integrations"
"""General integrations error type."""

WALLET = "wallet"
"""General wallet error type."""

FUNDING_SOURCES = "funding_sources"
"""General funding sources error type."""

ERROR = "error"
"""Generic error."""

0 comments on commit d244ecb

Please sign in to comment.