root_insurance 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8228835de6960728ad9d638895a4a21e0aff1c7
4
- data.tar.gz: cf3cd8f55aa874e33bed674281ddd77cedf8082c
3
+ metadata.gz: ca6242d52f3f75798009e2d154311f82dd3e86e2
4
+ data.tar.gz: 6cfdc21647f7da6df01bb91815a728f2f7fbf8ea
5
5
  SHA512:
6
- metadata.gz: 3fbf7a251ca24106f05602d7a2dfe24dc71fe7fbd16aed37851651f5d1b4df29acde8d731640740a0d22eadfa274726a453a5a93750224af9167e937a8355de5
7
- data.tar.gz: 34f8a5ac7f6809ab777ec0cde6691b710ee8cd67ba74f2bf26dd3cf39f8c621ddc2a7c4948f99031825bc6a0be35c9f08d4625c3b8cced4ba8620acfeea6e6dc
6
+ metadata.gz: 89dfba9cb0c883b07963085b2249368ba966e6d2f601afac2cc221c4d543bb8dce70852c15c4c44a4d2c9d86934f018177f7abd2d5a36910a1394d6e1a76b8dc
7
+ data.tar.gz: a4bbee6e4881782bdbaf8a9f5b613d35746cb18314f6211f78ba9ad7a25e20444ff194f1e789694d785756ff3d537b582d1d1456e22a70614b3f387d88b03157
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 1.6.0 - Release date: 2018-16-05
4
+ * Added support for policy holder app_data
5
+
6
+
3
7
  # 1.5.0 - Release date: 2018-14-05
4
8
  * Added functionality to allow policies to be updated
5
9
 
@@ -1,6 +1,6 @@
1
1
  module RootInsurance::Api
2
2
  module PolicyHolder
3
- def create_policy_holder(id:, first_name:, last_name:, email: nil, date_of_birth: nil, cellphone: nil)
3
+ def create_policy_holder(id:, first_name:, last_name:, email: nil, date_of_birth: nil, cellphone: nil, app_data: nil)
4
4
  raise ArgumentError.new('id needs to be a hash') unless id.is_a? Hash
5
5
 
6
6
  data = {
@@ -9,7 +9,8 @@ module RootInsurance::Api
9
9
  last_name: last_name,
10
10
  date_of_birth: date_of_birth,
11
11
  email: email,
12
- cellphone: cellphone
12
+ cellphone: cellphone,
13
+ app_data: app_data
13
14
  }.reject { |key, value| value.nil? }
14
15
 
15
16
  post(:policyholders, data)
@@ -23,10 +24,11 @@ module RootInsurance::Api
23
24
  get("policyholders/#{id}")
24
25
  end
25
26
 
26
- def update_policy_holder(id:, email: nil, cellphone: nil)
27
+ def update_policy_holder(id:, email: nil, cellphone: nil, app_data: nil)
27
28
  data = {
28
29
  email: email,
29
- cellphone: cellphone
30
+ cellphone: cellphone,
31
+ app_data: app_data
30
32
  }.reject { |key, value| value.nil? }
31
33
 
32
34
  patch("policyholders/#{id}", data)
@@ -1,3 +1,3 @@
1
1
  module RootInsurance
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: root_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Root Wealth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-14 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty