root_insurance 1.2.0 → 1.3.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: 8c1da31b9aa56acb1c59600a99f5d3502b5652b0
4
- data.tar.gz: 1362800d6e01d76f81715ed09f5419630841454a
3
+ metadata.gz: dc24c994fad27cc71f739f529471a53e96e64c4f
4
+ data.tar.gz: 0c613890923068de7b2bf06dcd7cd8bc7cbaacaf
5
5
  SHA512:
6
- metadata.gz: 6a066416547d3792e8b1da9646396fdfd18f3b56c25f3921ca36a0ef1a781dc9f11aa7ca838ae99def197803fb036b79be77d06610ab42f4b96a511a38c452a9
7
- data.tar.gz: 295bf520d3199e5b28c9a285fe16ac6c8751926e47f8d77a03f7cfa877fdeba69dfaa730bab7715b061c56eca4d1b80bae25a204a6c971b3af0a39e90076b5fc
6
+ metadata.gz: 6a2c7bf56e187acfc11168f8ffe66550eeaffc836c052ae9d4f0dd4bd87192b53fa2229dabf0f2d377fa09719dbf955639436e983573cc841b2312326754df2e
7
+ data.tar.gz: 295b717d5eeb98f4ae0f5fe3ef310459a86940f074bf02eac3d7a5377a7e86bfddb95aa360933e258d8538579ebec0da3b34d5428e4a2fe20128d4118aba89a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 1.3.0 - Release date: 2018-14-05
4
+ * Added functionality to update claims
5
+
6
+
3
7
  # 1.2.0 - Release date: 2018-14-05
4
8
  * Support all params for claim creation
5
9
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RootInsurance
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: root_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Root Wealth