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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/root_insurance/api/policy_holder.rb +6 -4
- data/lib/root_insurance/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca6242d52f3f75798009e2d154311f82dd3e86e2
|
4
|
+
data.tar.gz: 6cfdc21647f7da6df01bb91815a728f2f7fbf8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89dfba9cb0c883b07963085b2249368ba966e6d2f601afac2cc221c4d543bb8dce70852c15c4c44a4d2c9d86934f018177f7abd2d5a36910a1394d6e1a76b8dc
|
7
|
+
data.tar.gz: a4bbee6e4881782bdbaf8a9f5b613d35746cb18314f6211f78ba9ad7a25e20444ff194f1e789694d785756ff3d537b582d1d1456e22a70614b3f387d88b03157
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|