root_insurance 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/root_insurance/api/claim.rb +9 -2
- data/lib/root_insurance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1da31b9aa56acb1c59600a99f5d3502b5652b0
|
4
|
+
data.tar.gz: 1362800d6e01d76f81715ed09f5419630841454a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a066416547d3792e8b1da9646396fdfd18f3b56c25f3921ca36a0ef1a781dc9f11aa7ca838ae99def197803fb036b79be77d06610ab42f4b96a511a38c452a9
|
7
|
+
data.tar.gz: 295bf520d3199e5b28c9a285fe16ac6c8751926e47f8d77a03f7cfa877fdeba69dfaa730bab7715b061c56eca4d1b80bae25a204a6c971b3af0a39e90076b5fc
|
data/CHANGELOG.md
CHANGED
@@ -15,10 +15,17 @@ module RootInsurance::Api
|
|
15
15
|
get("claims/#{id}")
|
16
16
|
end
|
17
17
|
|
18
|
-
def open_claim(policy_id: nil, policy_holder_id: nil
|
18
|
+
def open_claim(policy_id: nil, policy_holder_id: nil, incident_type: nil, incident_cause: nil,
|
19
|
+
incident_date: nil, app_data: nil, claimant: nil, requested_amount: nil)
|
19
20
|
data = {
|
20
21
|
policy_id: policy_id,
|
21
|
-
policy_holder_id: policy_holder_id
|
22
|
+
policy_holder_id: policy_holder_id,
|
23
|
+
incident_type: incident_type,
|
24
|
+
incident_cause: incident_cause,
|
25
|
+
incident_date: incident_date,
|
26
|
+
app_data: app_data,
|
27
|
+
claimant: claimant,
|
28
|
+
requested_amount: requested_amount
|
22
29
|
}.reject { |key, value| value.nil? }
|
23
30
|
|
24
31
|
post(:claims, data)
|