Skip to content

Commit 57ab321

Browse files
Merge pull request #32 from ShipEngine/ENGINE-7190-funding-sources-wallet-errors
Added error codes for funding sources errors
2 parents f018fbf + f7e3b8e commit 57ab321

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

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

5-
65
### Miscellaneous Chores
76

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

109
## 1.0.0 (2021-08-11)
1110

12-
1311
### Miscellaneous Chores
1412

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

1715
## 1.0.1
1816

19-
* increase default timeout from 5s to 60s
17+
- increase default timeout from 5s to 60s
18+
19+
## 1.0.2
20+
21+
- Added error code FundingSourceMissingConfiguration
22+
- Added error code FundingSourceError

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "shipengine"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "The official Python library for ShipEngine API."
55
readme = "README.md"
66
authors = ["ShipEngine <[email protected]>"]

shipengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""ShipEngine SDK."""
2-
__version__ = "1.0.1"
2+
__version__ = "1.0.2"
33

44
import logging
55
from logging import NullHandler

shipengine/enums/error_code.py

Lines changed: 10 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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."""

shipengine/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)