From d244ecba3328683502ad6f229e1744f326df2185 Mon Sep 17 00:00:00 2001 From: "christian.casado" Date: Wed, 7 Aug 2024 09:50:43 +0200 Subject: [PATCH] Added error codes for funding sources errors --- shipengine/enums/error_code.py | 10 ++++++++++ shipengine/enums/error_type.py | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/shipengine/enums/error_code.py b/shipengine/enums/error_code.py index 1b54f41..2813eae 100644 --- a/shipengine/enums/error_code.py +++ b/shipengine/enums/error_code.py @@ -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. + """ diff --git a/shipengine/enums/error_type.py b/shipengine/enums/error_type.py index f496ee1..59e8dec 100644 --- a/shipengine/enums/error_type.py +++ b/shipengine/enums/error_type.py @@ -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."""