Skip to content

Commit 7694af8

Browse files
Merge pull request #39 from ShipEngine/ENGINE-7190-funding-sources-wallet-errors
Added error codes for funding sources errors
2 parents b27ebea + 0a39dd2 commit 7694af8

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22

33
## [1.0.4](https://github.com/ShipEngine/shipengine-ruby/compare/v1.0.3...v1.0.4) (2024-01-17)
44

5-
65
### Bug Fixes
76

8-
* change default timeout to 60s ([81bfe73](https://github.com/ShipEngine/shipengine-ruby/commit/81bfe73feb0abc8a87aedb15e9b3935dd33d4da9))
7+
- change default timeout to 60s ([81bfe73](https://github.com/ShipEngine/shipengine-ruby/commit/81bfe73feb0abc8a87aedb15e9b3935dd33d4da9))
98

109
## [1.0.3](https://github.com/ShipEngine/shipengine-ruby/compare/v1.0.2...v1.0.3) (2023-06-16)
1110

12-
1311
### Bug Fixes
1412

15-
* Update publish to Gem API Key ([3f9c8e5](https://github.com/ShipEngine/shipengine-ruby/commit/3f9c8e5eec8147e2fb1b38a114fa0e2ff24a5f9e))
13+
- Update publish to Gem API Key ([3f9c8e5](https://github.com/ShipEngine/shipengine-ruby/commit/3f9c8e5eec8147e2fb1b38a114fa0e2ff24a5f9e))
1614

1715
## [1.0.4]
1816

1917
### Changes
2018

21-
* increase default timeout from 30s to 60s
19+
- increase default timeout from 30s to 60s
20+
21+
## [1.0.5]
22+
23+
### Changes
24+
25+
- Added error code FundingSourceMissingConfiguration
26+
- Added error code FundingSourceError

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
shipengine_sdk (1.0.4)
4+
shipengine_sdk (1.0.5)
55
faraday (>= 1.4)
66
faraday_middleware (>= 1.0)
77
hashie (>= 3.4)

lib/shipengine/exceptions/error_code.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,17 @@ def self.get_by_str(str_key)
247247
## ShipEngine only allows you to have one webhook of each type. If you would
248248
## like to replace a webhook with a new one please delete the old one fir.
249249
# #/
250-
WEBHOOK_EVENT_TYPE_CONFLICT: 'webhook_event_type_conflict'
250+
WEBHOOK_EVENT_TYPE_CONFLICT: 'webhook_event_type_conflict',
251+
252+
##
253+
## Funding source isnt properly configured and can't be used.
254+
# #/
255+
FUNDING_SOURCE_MISSING_CONFIGURATION: 'funding_source_missing_configuration',
256+
257+
##
258+
## There was an unexpected problem with a funding source.
259+
# #/
260+
FUNDING_SOURCE_ERROR: 'funding_source_error'
251261
}.freeze
252262
end
253263
end

lib/shipengine/exceptions/error_type.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def self.get_by_str(str_key)
4242
# that has not yet been assigned a specific error_type. If you receive
4343
# persistent system errors, then please contact our support or check our API
4444
# status page to see if there's a known issue.
45-
SYSTEM: 'system'
45+
SYSTEM: 'system',
46+
# General wallet error type.
47+
WALLET: 'wallet',
48+
# General funding sources error type.
49+
FUNDING_SOURCES: 'funding_sources'
4650
}.freeze
4751
end
4852
end

lib/shipengine/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ShipEngine
4-
VERSION = '1.0.4'
4+
VERSION = '1.0.5'
55
end

0 commit comments

Comments
 (0)