Loading
保險
InsPolicyTermsService:getCurrentStanding

InsPolicyTermsService:getCurrentStanding

使用此服務可取得代表與保單或索賠相關聯保單條款目前狀態的金額清單。

Class: InsPolicyTermsService

Method: getCurrentStanding

備註
備註

此服務會填入「保單」與「索賠」頁面的「保單條款目前狀態」。若要在保險索賠記錄頁面上設定保單條款狀態,請使用 Vlocity 保單條款固定 LWC。若要設定保單條款狀態,以根據保單記錄頁面上的 insuredId 來篩選涵蓋範圍詳細資料,請使用「保單條款處於現狀 - 保單檢視」元件。

重要
重要

在 Summer '21 版本中,相同的服務支援 Salesforce FSC 索賠資料模型以顯示耗用的電力屬性。

運作方式

  1. 服務會取得物件識別碼,其可以是下列任一值:policy Id、claim Id、policyCoverageId、policyParticipantId 或 policyAssetId。

  2. 服務會採用選用的 viewOption 節點。

    1. 如果 objectId 是 policyId,則服務會採用下列兩個選項:

      1. showAllPolicyCoverage

      2. showPolicyLevelTermsOnly

    2. 如果 objectId 是 claimId,則服務會採用下列兩個選項:

      1. showAllPolicyCoverages

      2. showOpenClaimPolicyCoverages

  3. 傳回與 objectId 相關聯的原則字詞清單。針對此節點建立的名稱取決於指定原則字詞的屬性類別和屬性範圍。

遠端選項

選項

描述

objectId

必要。

用來取用原則條款目前狀態的識別碼。

可能的值

  • policyId

  • claimId

  • policyCoverageId

  • policyParticipantId

  • policyAssetId.

viewOption

選擇性。

情況 1:當 objectId 為 claimId 時,可能的值為:

  • showAllPolicyCoverages

    顯示所有保單條款的目前狀態,無論保單是否有未結束索賠涵蓋範圍。

  • showOpenClaimPolicyCoverages

    僅顯示未結束索賠涵蓋範圍的保單條款目前狀態。在「索賠」檢視中,顯示所有原則或索賠範圍原則條款,無論是否有未結束索賠涵蓋範圍。objectId 為 claimId 時的預設選項。

情況 2:當 objectId 為 policyId 時,可能的值為:

  • showAllPolicyCoverages

    顯示基本保單的所有保單條款和所有保單涵蓋範圍。objectId 為 claimId 時的預設選項。

  • showPolicyLevelTermsOnly

    顯示具有「保單」範圍和「保單涵蓋範圍」範圍的所有保單條款目前狀態,不含任何與其相關聯的「保單參與者」和「保單資產」。

輸入 JSON

以下是範例輸入 JSON 的格式:

{ 
   "objectId": <Id>
}

以下是輸入 JSON 範例:

{ 
   "objectId":"a2b5w000006SBY9AAO"
}

輸出 JSON

以下是範例輸出 JSON 的格式:

{ 
   "currentStanding": [
    {
      <String:Policy Term Name>: {
        "predictedRemainingValue": <Decimal>,
        "pendingValue": <Decimal>,
        "usedValue": <Decimal>,
        "remainingValue": <Decimal>,
        "initialValue": <Decimal>,
        "dataType": <Text>,
        "insurancePolicyCoverageName": <Text>,
        "insuredItemId": <Id>,
        "insuredPartyId": <Id>,
        "assetCoverageId": <Id>,
        "assetId": <Id>,
        "attributeScope": <Text>,
        "attributeClass": <Text>,
        "assetTermName": <Text>,
        "assetTermId": <Id>,
        "claimId": <Id>,
        "claimCoverageIds": [<List of Ids>]
      }
    }
  ]
}

原則字詞名稱的建構方式取決於次方屬性的設定方式。以下是建立不同原則字詞名稱的不同組態範例。

保單條款名稱:一般內容原則限制

屬性類別:限制 - 貨幣

屬性範圍:保單輸出

名稱:一般內容原則限制

{ 
   "currentStanding": [
    {
        "General Contents Policy Limit": {
            "predictedRemainingValue": 500,
            "pendingValue": 0,
            "usedValue": 0,
            "remainingValue": 500,
            "initialValue": 500,
            "dataType": "currency",
            "insurancePolicyCoverageName": "Lab",
            "insuredPartyId": null,
            "insuredItemId": null,
            "assetCoverageId": "a3u3j00000HyNvYAAV",
            "assetId": "02i3j00000KhumpAAB",
            "attributeScope": "Policy",
            "attributeClass": "Limit",
            "assetTermName": "General Contents Policy Limit",
            "assetTermId": "a5N3j000000XnVtEAK"
        }
    }
  ]
}

保單條款名稱:一般內容原則涵蓋範圍限制

屬性類別:限制 - 貨幣

屬性範圍:保單涵蓋範圍輸出

名稱:一般內容保單涵蓋範圍限制 - 範例已投保

{ 
   "currentStanding": [
    {
        "General Contents Policy Coverage Limit - Sample Insured": {
            "predictedRemainingValue": 500,
            "pendingValue": 0,
            "usedValue": 0,
            "remainingValue": 500,
            "initialValue": 500,
            "dataType": "currency",
            "insurancePolicyCoverageName": "Outpatient",
            "insuredPartyId": "0ao8c000000PnSqAAK",
            "insuredItemId": null,
            "assetCoverageId": "a3u3j00000HyNvYAAV",
            "assetId": "02i3j00000KhumpAAB",
            "attributeScope": "Policy Coverage",
            "attributeClass": "Limit",
            "assetTermName": "General Contents Policy Coverage Limit",
            "assetTermId": "a5N3j000000XnVtEAK"
        }
    }
  ]
}

保單條款名稱:一般內容索賠限制

屬性類別:限制 - 貨幣

屬性範圍:索賠輸出名稱:一般內容索賠限制

{ 
   "currentStanding": [
    {
        "General Contents Claim Limit": {
            "predictedRemainingValue": 500,
            "pendingValue": 0,
            "usedValue": 0,
            "remainingValue": 500,
            "initialValue": 500,
            "dataType": "currency",
            "insurancePolicyCoverageName": "Lab",
            "insuredPartyId": null,
            "insuredItemId": null,
            "assetCoverageId": "a3u3j00000HyNvYAAV",
            "assetId": "02i3j00000KhumpAAB",
            "attributeScope": "Claim",
            "attributeClass": "Limit",
            "assetTermName": "General Contents Claim Limit",
            "assetTermId": "a5N3j000000XnVtEAK",
            "claimId": "a4X3j0000001gUPEAY",
            "claimCoverageIds": ["a5G3j000000YGYwEAO"]
        }
    }
  ]
}

保單條款名稱:一般內容索賠涵蓋範圍限制

屬性類別:限制 - 貨幣

屬性範圍:索賠涵蓋範圍輸出

名稱:一般內容索賠涵蓋範圍限制 - 測試對象 (Joan Smith)

{ 
   "currentStanding": [
    {
      "General Contents Claim Coverage Limit - Test Party (Joan Smith)": {
            "predictedRemainingValue": 500,
            "pendingValue": 0,
            "usedValue": 0,
            "remainingValue": 500,
            "initialValue": 500,
            "dataType": "currency",
            "insurancePolicyCoverageName": "Lab",
            "insuredPartyId": null,
            "insuredItemId": null,
            "assetCoverageId": "a3u3j00000HyNvYAAV",
            "assetId": "02i3j00000KhumpAAB",
            "attributeScope": "Claim Coverage",
            "attributeClass": "Limit",
            "assetTermName": "General Contents Claim Coverage Limit",
            "assetTermId": "a5N3j000000XnVtEAK",
            "claimId": "a4X3j0000001gUPEAY",
            "claimCoverageIds": ["a5G3j000000YGYwEAO"]
        }
    }
  ]
}

保單條款名稱:資料涵蓋範圍索賠計數

屬性類別:限制 - 範圍計數

屬性範圍:保單涵蓋範圍輸出

名稱:資料涵蓋範圍索賠計數

{ 
   "currentStanding": [
    {
        "Data Cov Claim Coverage Count": {
            "predictedRemainingValue": 3,
            "pendingValue": 1,
            "usedValue": 1,
            "remainingValue": 4,
            "initialValue": 5,
            "dataType": "number",
            "insurancePolicyCoverageName": "Lab",
            "insuredPartyId": null,
            "insuredItemId": null,  
            "assetCoverageId": "a3u3j00000HyNvVAAV",
            "assetId": "02i3j00000KhumpAAB",
            "attributeScope": "Claim Coverage",
            "attributeClass": "ScopeCountLimit",
            "assetTermName": "Data Cov Claim Coverage Count",
            "assetTermId": "a5N3j000000XnVqEAK",
            "claimId": "a4X3j0000001gUPEAY",
            "claimCoverageIds": ["a5G3j000000YGYwEAO"]
          }
    }
  ]
}
 
正在載入
Salesforce Help | Article