lib/root_insurance/api/claim.rb
# Link a claim and a policy
#
# @param [String] claim_id The unique identifier of the claim.
# @param [String] policy_id The unique identifier of the policy.
# @return [Hash]
#
# @example
#  client.link_policy_to_claim(claim_id: "d3d13c48-4dc3-4816-8d01-de3215878225", policy_id: "8349345c-a6c5-4bf9-8ebb-6bbfc1628715")
#
Link a claim and a policy
Link a claim and a policy
def link_policy_to_claim(claim_id:, policy_id:)
        data = {policy_id: policy_id}
        post("claims/#{claim_id}/policy", data)
      end
def link_policy_to_claim ( claim_id : , policy_id : ) data = { policy_id : policy_id } post ( "claims/#{claim_id}/policy" , data ) end
Link a claim and a policy
Link a claim and a policy
None
Hash
claim_id
<not_specific>
policy_id
<not_specific>
<not_specific>
policy_id The unique identifier of the policy.
policy_id The unique identifier of the policy .
example
None