Loading
保險
InsClaimCoverageService:createUpdateCoverage

InsClaimCoverageService:createUpdateCoverage

使用此服務建立索賠涵蓋範圍或更新現有索賠涵蓋範圍。

Class:InsClaimCoverageService

Method:createUpdateCoverage

運作方式

  1. 下列輸入可以作為遠端選項傳遞至服務,才能建立索賠涵蓋範圍:

    重要
    重要

    當現有索賠涵蓋範圍具有下列欄位的相等值時,使用者無法建立索賠涵蓋範圍:claimId、claimantId、involvedId、insuredId 和 assetCoverageId。

    • claimId

      備註
      備註

      根據 claimID 輸入,服務會建立「Vlocity 索賠涵蓋範圍」(ClaimCoverage__c) 或「Salesforce 索賠涵蓋範圍」(ClaimCoverage)。如果 claimID 是 InsuranceClaim__c 物件的識別碼,「索賠涵蓋範圍」為「Vlocity 索賠涵蓋範圍」,否則服務會建立「Salesforce 索賠涵蓋範圍」。

    • claimCoverageId

    • claimantId

    • involvedId

    • insuredId

    • assetCoverageId

    • reserveAmount

    • reserveProcessingMode

    備註
    備註

    更新現有索賠涵蓋範圍時,唯一的必要輸入是 claimCoverageId 和 reserveAmount。您可以將其他欄位保留空白。

  2. 如果 claimCoverageId 為空白,則服務會處理此資訊並建立涵蓋範圍。否則,服務會以等於 claimCoverageId 的識別碼更新現有索賠涵蓋範圍。

    如果您將 reserveProcessingMode 設為 ReserveWorksheet,則不會設定索賠涵蓋範圍預留金額。

    如果您想要要求索賠涵蓋範圍預留金額,您可以將 reserveProcessingMode 設定為 CoverageReserve。

遠端選項

選項

描述

claimId

新索賠涵蓋範圍的必要項目。

您要建立索賠涵蓋範圍的索賠識別碼。

備註
備註

根據 claimID 輸入,服務會建立「Vlocity 索賠涵蓋範圍」(ClaimCoverage__c) 或「Salesforce 索賠涵蓋範圍」(ClaimCoverage)。如果 claimID 是 InsuranceClaim__c 物件的識別碼,「索賠涵蓋範圍」為「Vlocity 索賠涵蓋範圍」,否則服務會建立「Salesforce 索賠涵蓋範圍」。

claimCoverageId

更新現有索賠涵蓋範圍時為必要。

現有索賠涵蓋範圍的識別碼。若為空白,則服務會建立索賠涵蓋範圍。否則,服務會更新現有的索賠涵蓋範圍。

針對 Vlocity 資料模型, claimCoverageId 為 ClaimCoverage__c.Id。

針對 Salesforce 資料模型, claimCoverage Id 為 ClaimCoverage.Id。

claimantId

新索賠涵蓋範圍的必要項目。

現有索賠者的識別碼。索賠者必須與 claimId 中指定的索賠相關。

針對 Vlocity 資料模型, claimantId 為 InsuranceClaimPartyRelationship__c.Id。

針對 Salesforce 資料模型, claimantId 為 ClaimParticipant.Id。

involvedId

新索賠涵蓋範圍的必要項目。

現有相關財產或相關人員的識別碼。針對 Salesforce 資料模型,這是與索賠相關之現有索賠項目的識別碼。

針對 Vlocity 資料模型, involvedId 為 InsuranceClaimInvolvedProperty__c.Id/InsuranceClaimInvolvedInjury__c.Id。

針對 Salesforce 資料模型, involvedId 為 ClaimItem.Id。

insuredId

新索賠涵蓋範圍的必要項目。

現有保單持有人/保險項目持有產品關係的識別碼。針對 Salesforce 資料模型,這是現有保單資產的識別碼。

針對 Vlocity 資料模型,insuredId 為 AssetInsuredItem__c.Id 或 AssetPartyRelationship__c.Id。

針對 Salesforce 資料模型,insuredId 為 InsurancePolicyAsset.Id。

assetCoverageId

新索賠涵蓋範圍的必要項目。

與索賠原則相關的保單涵蓋範圍識別碼。

針對 Vlocity 資料模型,assetCoverageId 為 AssetCoverage__c.Id。

針對 Salesforce 資料模型,assetCoverageId 為 InsurancePolicyCoverage.Id。

reserveAmount

新索賠涵蓋範圍的必要項目。

預留金額。

reserveProcessingMode

新索賠涵蓋範圍的必要項目。

索賠涵蓋範圍的預留處理模式。值可以是 CoverageReserve 或 ReserveWorksheet。

輸入 JSON

以下是輸入 JSON 的格式:

{
    "claimId": <Id>,
    "claimCoverageId": <Id>,
    "claimantId": <Id>,
    "involvedId": <Id>,
    "insuredId": <Id>,
    "assetCoverageId": <Id>,
    "reserveAmount": <Decimal>,
    "reserveProcessingMode": <String>
}

以下是輸入 JSON 的範例。

{
    "claimId": "a4X3j0000001iTcEAI",
    "claimCoverageId": null,
    "claimantId": "a4U3j000000LjtQEAS",
    "involvedId": "a4S3j000000QXjTEAW",
    "insuredId": "a3v3j000000d5UsAAI",
    "assetCoverageId": "a3u3j00000Pvx5hAAB",
    "reserveAmount": 300,
    "reserveProcessingMode": "CoverageReserve"
}  

輸出 JSON

以下是輸出 JSON 的格式:

{
      "claimCoverage": [
        {
          "reserveProcessingMode": <String>,
          "lossReserveAmount": <Decimal>,
          "name": <String>,
          "involvedName": <String>,
          "claimItemId": <Id>,
          "description": <String>,
          "claimParticipantName": <String>,
          "claimParticipantId": <Id>,
          "claimId": <Id>,
          "status": <String>,
          "insurancePolicyAssetId": <Id>,
          "insurancePolicyCoverageName": <String>,
          "insurancePolicyCoverageId": <Id>,
          "createdDate": <Date>
        }
      ],
      "claimCoverageId": <Id>,
      "errorCode": <String>,
      "error": <String>
}

以下是輸出 JSON 的範例。

{
      "claimCoverage": [
        {
          "reserveProcessingMode": "CoverageReserve",
          "lossReserveAmount": 300,
          "name": "Jewelry",
          "involvedName": null,
          "claimItemId": "a4S3j000000QXjTEAW",
          "description": null,
          "claimParticipantName": null,
          "claimParticipantId": "a4U3j000000LjtQEAS",
          "claimId": "a4X3j0000001iTcEAI",
          "status": null,
          "insurancePolicyAssetId": "a3v3j000000d5UsAAI",
          "insurancePolicyCoverageName": null,
          "insurancePolicyCoverageId": "a3u3j00000Pvx5hAAB",
          "createdDate": null
        }
      ],
      "claimCoverageId": "a5G3j000000YEhDEAW",
      "errorCode": "INVOKE-200",
      "error": "OK"
}
 
正在載入
Salesforce Help | Article