change_health 5.17.0 → 5.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 355fbfa31f70d2fe1b7d96c42f6caad0f56e550f2c26d33f42de7ecdc6cb0496
4
- data.tar.gz: 715784379b3546edbeb66494388e958d4accc76e7a2e78f4824c122d878d32b0
3
+ metadata.gz: ad94a64e05364d0f24774fe9721a4a2ffadb08448a07348c7835e0dcd0354806
4
+ data.tar.gz: 050236cd7408f842f717717af0cbcaafba23cf84860bcb5cfac85f4ea2d07ff1
5
5
  SHA512:
6
- metadata.gz: 99b51f0c666af0450c60fd53095b8280db9f94aa0389db9df0a5f34bcf6f601bb32c36bd1e66fe1146a1f6cfe6737f6d59bc4c2ea74b105efde48e77ad3041ef
7
- data.tar.gz: 4d7562fe434fe483ef115e420b422764d5c2047d1aa2d6f6b10739283f1c422f94b93b49fc978fb64569386d60e69f078c1d1243996ca62fb23d99af4053227f
6
+ metadata.gz: d9048cdfb5921250757a618b7b9e1f44c608e7fb86344830a25ef2a83ed2fd848760e2b8bd13adb482eb264d84d3405c83fd4a25b032fdd11eb046dbb80fa652
7
+ data.tar.gz: 844d6a4f4a32f29db366d7975072400f95a3f18dd833c2239ca7b7e4802ec0334bf4e0d19d48f50c7231b6f8148095d71c4ad14cd02a328431cfc2a85d2f54da
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ # [5.18.0] - 2024-08-19
9
+
10
+ ### Added
11
+
12
+ * Additional error handling for different format of error response
13
+
14
+ ```
15
+ "errors": {
16
+ "inputDto": [
17
+ "The inputDto field is required."
18
+ ],
19
+ "$.claimInformation.serviceLines[0].professionalService.serviceUnitCount": [
20
+ "The JSON value could not be converted to System.String. Path: $.claimInformation.serviceLines[0].professionalService.serviceUnitCount | LineNumber: 0 | BytePositionInLine: 763."
21
+ ]
22
+ }
23
+ ```
24
+
8
25
  # [5.17.0] - 2024-07-23
9
26
 
10
27
  ### Added
@@ -731,6 +748,7 @@ Added the ability to hit professional claim submission API. For more details, se
731
748
  * Authentication
732
749
  * Configuration
733
750
 
751
+ [5.18.0]: https://github.com/WeInfuse/change_health/compare/v5.17.0...v5.18.0
734
752
  [5.17.0]: https://github.com/WeInfuse/change_health/compare/v5.16.0...v5.17.0
735
753
  [5.16.0]: https://github.com/WeInfuse/change_health/compare/v5.15.0...v5.16.0
736
754
  [5.15.0]: https://github.com/WeInfuse/change_health/compare/v5.14.0...v5.15.0
@@ -22,7 +22,7 @@ module ChangeHealth
22
22
  end
23
23
 
24
24
  def message
25
- field_message || code_message
25
+ field_message || code_message || @data.to_s
26
26
  end
27
27
 
28
28
  def field_message
@@ -48,7 +48,7 @@ module ChangeHealth
48
48
  end
49
49
 
50
50
  define_method(method_name.to_s) do
51
- @data[method_name]
51
+ @data[method_name] if @data.is_a?(Hash)
52
52
  end
53
53
  end
54
54
 
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.17.0'.freeze
2
+ VERSION = '5.18.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.0
4
+ version: 5.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty