change_health 2.0.0 → 2.1.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: 984e07a44c15c8b628c8826d012e5acdee3695ba3a1b0bcdd000d07b0d9f920c
4
- data.tar.gz: af752baf4e2d7e0fe73b77d7a9199feb1f24ea6d9a6be9163d7c87ef6484c8d6
3
+ metadata.gz: 962d95245a21c89b96048449a0111165eee7b3a392f00a2f1cddf8924bf98150
4
+ data.tar.gz: 8b0127fb08968b20213728ffdc08afc0ae33a53a5d9c620efa916c8cc82f285f
5
5
  SHA512:
6
- metadata.gz: 76641120792ba599030e2a3875696a2167dbf585095d0cafb7c5961a7f1a55a735769b91bea6cc098710adc418d819b5144ab8f9bbb1272add0f102c6dba2ad2
7
- data.tar.gz: 269647d12a949fc69ec6e1e493d522a13cd7ffdf59fcc2510f285219d1dc7e4a52212b83fdce4fb33fd72b2bcbc75eefa5400df5e0f539dcb7403b1b760cf1a3
6
+ metadata.gz: 0e64c195c18b7fb2cbaf028141af3eab9ab2fbecfeb0750c1d706f81c9b12502d747a8a6d765228a9f731aa7c653ba6023a476677419e307089cbc15e320e93f
7
+ data.tar.gz: 8c598d163710ae6d9f2a4a048d4f2697beb6f308eba526f3ca449962e920065a3a128f10769d38307fa7efaff3d13df7c4c57e16333dbc593bde48a99e745749
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.1.0] - [2021-10-12]
8
+ ### Changed
9
+ Model#to_h enhanced to change empty values AKA "" to nil. Reason: If a field is empty, Change Healthcare responds with an error - `Invalid value. Item must not be blank value.`. If the empty field is optional, Change Healthcare will accept the field as nil without error. If the empty field is required, Change Healthcare will return an error if the value is empty or nil.
10
+
7
11
  ## [2.0.0] - [2021-10-08]
8
12
  ### Added
9
13
  #### Models
@@ -145,7 +149,7 @@ Added the ability to hit professional claim submission API. For more details, se
145
149
  ### Added
146
150
  - Production endpoint
147
151
 
148
- ## [0.2.0] - [2020-03-09]
152
+ ## [0.0.2] - [2020-03-09]
149
153
  ### Added
150
154
  - EligibilityData
151
155
  - EligibilityBenefit
@@ -154,7 +158,7 @@ Added the ability to hit professional claim submission API. For more details, se
154
158
  ### Changed
155
159
  - Eligibility.query returns EligibilityData object
156
160
 
157
- ## [0.1.0] - 2020-03-04
161
+ ## [0.0.1] - 2020-03-04
158
162
  ### Added
159
163
  - Provider
160
164
  - Subscriber
@@ -163,7 +167,8 @@ Added the ability to hit professional claim submission API. For more details, se
163
167
  - Authentication
164
168
  - Configuration
165
169
 
166
- [Unreleased]: https://github.com/WeInfuse/change_health/compare/v1.0.3...HEAD
170
+ [2.1.0]: https://github.com/WeInfuse/change_health/compare/v2.0.0...v2.1.0
171
+ [2.0.0]: https://github.com/WeInfuse/change_health/compare/v1.0.3...v2.0.0
167
172
  [1.0.3]: https://github.com/WeInfuse/change_health/compare/v1.0.2...v1.0.3
168
173
  [1.0.2]: https://github.com/WeInfuse/change_health/compare/v1.0.1...v1.0.2
169
174
  [1.0.1]: https://github.com/WeInfuse/change_health/compare/v1.0.0...v1.0.1
@@ -180,6 +185,6 @@ Added the ability to hit professional claim submission API. For more details, se
180
185
  [0.6.0]: https://github.com/WeInfuse/change_health/compare/v0.5.0...v0.6.0
181
186
  [0.5.0]: https://github.com/WeInfuse/change_health/compare/v0.4.0...v0.5.0
182
187
  [0.4.0]: https://github.com/WeInfuse/change_health/compare/v0.3.0...v0.4.0
183
- [0.3.0]: https://github.com/WeInfuse/change_health/compare/v0.2.0...v0.3.0
184
- [0.2.0]: https://github.com/WeInfuse/change_health/compare/v0.1.0...v0.2.0
185
- [0.1.0]: https://github.com/WeInfuse/change_health/compare/v0.1.0
188
+ [0.3.0]: https://github.com/WeInfuse/change_health/compare/v0.0.2...v0.3.0
189
+ [0.0.2]: https://github.com/WeInfuse/change_health/compare/v0.0.1...v0.0.2
190
+ [0.0.1]: https://github.com/WeInfuse/change_health/compare/520a8c54d07...v0.0.1
@@ -27,10 +27,11 @@ module ChangeHealth
27
27
  def to_h
28
28
  result = super.to_h
29
29
 
30
- self.class.properties.each do |key|
30
+ self.each_pair do |key, value|
31
31
  if key.to_s.downcase.include?('date')
32
32
  result[key] = ChangeHealth::Models::DATE_FORMATTER.call(result[key])
33
33
  end
34
+ result[key] = nil if value == ""
34
35
  end
35
36
 
36
37
  result
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.1.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: 2.0.0
4
+ version: 2.1.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: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty