Skip to content

Commit d244ecb

Browse files
author
christian.casado
committed
Added error codes for funding sources errors
1 parent f018fbf commit d244ecb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

shipengine/enums/error_code.py

+10
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,13 @@ class ErrorCode(Enum):
235235
ShipEngine only allows you to have one webhook of each type. If you would
236236
like to replace a webhook with a new one, please delete the old one first.
237237
"""
238+
239+
FUNDING_SOURCE_MISSING_CONFIGURATION = "funding_source_missing_configuration"
240+
"""
241+
Funding source isnt properly configured and can't be used.
242+
"""
243+
244+
FUNDING_SOURCE_ERROR = "funding_source_error"
245+
"""
246+
There was a problem with a funding source.
247+
"""

shipengine/enums/error_type.py

+9
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,14 @@ class ErrorType(Enum):
4848
AUTHORIZATION = "authorization"
4949
"""General authorization error type."""
5050

51+
INTEGRATIONS = "integrations"
52+
"""General integrations error type."""
53+
54+
WALLET = "wallet"
55+
"""General wallet error type."""
56+
57+
FUNDING_SOURCES = "funding_sources"
58+
"""General funding sources error type."""
59+
5160
ERROR = "error"
5261
"""Generic error."""

0 commit comments

Comments
 (0)