Skip to content

Commit

Permalink
Merge pull request #32 from ShipEngine/ENGINE-7190-funding-sources-wa…
Browse files Browse the repository at this point in the history
…llet-errors

Added error codes for funding sources errors
  • Loading branch information
ChristianCasado authored Jan 9, 2025
2 parents f018fbf + f7e3b8e commit 57ab321
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

## [1.0.0](https://www.github.com/ShipEngine/shipengine-python/compare/v1.0.0...v1.0.0) (2021-08-11)


### Miscellaneous Chores

* release 1.0.0 ([f6f702f](https://www.github.com/ShipEngine/shipengine-python/commit/f6f702fa3427508cd78953b88d62e4bf3a0f3bf1))
- release 1.0.0 ([f6f702f](https://www.github.com/ShipEngine/shipengine-python/commit/f6f702fa3427508cd78953b88d62e4bf3a0f3bf1))

## 1.0.0 (2021-08-11)


### Miscellaneous Chores

* release 1.0.0 ([c1407d2](https://www.github.com/ShipEngine/shipengine-python/commit/c1407d2de88182c75ba6dafff1ab30a3ed71efc6))
- release 1.0.0 ([c1407d2](https://www.github.com/ShipEngine/shipengine-python/commit/c1407d2de88182c75ba6dafff1ab30a3ed71efc6))

## 1.0.1

* increase default timeout from 5s to 60s
- increase default timeout from 5s to 60s

## 1.0.2

- Added error code FundingSourceMissingConfiguration
- Added error code FundingSourceError
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shipengine"
version = "1.0.1"
version = "1.0.2"
description = "The official Python library for ShipEngine API."
readme = "README.md"
authors = ["ShipEngine <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion shipengine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""ShipEngine SDK."""
__version__ = "1.0.1"
__version__ = "1.0.2"

import logging
from logging import NullHandler
Expand Down
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."""
2 changes: 1 addition & 1 deletion shipengine/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"

0 comments on commit 57ab321

Please sign in to comment.