root_insurance 1.2.0 → 1.3.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 +13 -0
- 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: dc24c994fad27cc71f739f529471a53e96e64c4f
|
4
|
+
data.tar.gz: 0c613890923068de7b2bf06dcd7cd8bc7cbaacaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a2c7bf56e187acfc11168f8ffe66550eeaffc836c052ae9d4f0dd4bd87192b53fa2229dabf0f2d377fa09719dbf955639436e983573cc841b2312326754df2e
|
7
|
+
data.tar.gz: 295b717d5eeb98f4ae0f5fe3ef310459a86940f074bf02eac3d7a5377a7e86bfddb95aa360933e258d8538579ebec0da3b34d5428e4a2fe20128d4118aba89a2
|
data/CHANGELOG.md
CHANGED
@@ -31,6 +31,19 @@ module RootInsurance::Api
|
|
31
31
|
post(:claims, data)
|
32
32
|
end
|
33
33
|
|
34
|
+
def update_claim(claim_id:, incident_type: nil, incident_cause: nil, incident_date: nil,
|
35
|
+
app_data: nil, requested_amount: nil)
|
36
|
+
data = {
|
37
|
+
incident_type: incident_type,
|
38
|
+
incident_cause: incident_cause,
|
39
|
+
incident_date: incident_date,
|
40
|
+
app_data: app_data,
|
41
|
+
requested_amount: requested_amount
|
42
|
+
}.reject { |key, value| value.nil? }
|
43
|
+
|
44
|
+
patch("claims/#{claim_id}", data)
|
45
|
+
end
|
46
|
+
|
34
47
|
def link_policy_to_claim(claim_id:, policy_id:)
|
35
48
|
data = {policy_id: policy_id}
|
36
49
|
|