Loading
保險
InsPolicyTermsService:流程

InsPolicyTermsService:流程

此服務會取用原則字詞,並呼叫原則字詞的對應 屬性類別來處理詳細資料。針對自訂類別,屬性類別的預設方法名稱為 - process<Attribute>。

Class:InsPolicyTermsService

Method:流程

重要
重要

透過 Insurance Summer '21 版本,相同的服務支援這些 Salesforce FSC 索賠資料物件的 PowerAttributes 處理:

  • 索賠

  • ClaimCoverage

  • ClaimCoverageReserveDetail

  • ClaimCoveragePaymentDetail

  • ClaimCoveragePaymentAdjustment

運作方式

  1. 根據 claimId 和 claimCoverageId 的輸入,以取得原則和原則條款詳細資料,例如原則識別碼、保單涵蓋範圍識別碼、被保險識別碼和涉及的識別碼。

  2. 已例項化屬性類別/es

    • 針對 ClaimLineItemClaimedAmountEntered 適用的動作流程:

      每次傳遞更新的參數 (尤其是要求的金額) 時,系統會依序呼叫「屬性類別」(若有的話)。順序為「扣除:「口袋最大」,接著是「Copay」或「Coinsurance:口袋最大。

    • 針對 PaymentAttempted 流程和 ReserveAdjustmentAttempted 流程:

      相同屬性類別的權限屬性會一起收集並勾選。如果要求的金額超過任一限制,則服務會引發錯誤。

  3. 將原則字詞的資料傳回給呼叫服務的函數。

遠端選項

選項

描述

claimItemData

包含個別 claimCoverage 或 claimItem 詳細資料的物件清單。清單包括:

需要 claimId。

claimCoverageId 為必要。

isCancelled 必要。將預設值設定為 false。僅針對取消的付款情況設定為 true。針對所有其他情況,將其設定為 false。

claimItemId 選擇性。只有在 applicableAction 是 ClaimLineItemClaimedAmountEntered 時,才能編輯或刪除損失項目

newReserveAmount 選擇性。只有在在涵蓋範圍預留模式中開啟索賠涵蓋範圍,或在「保留工作表」模式中建立或編輯索賠涵蓋範圍的損失項目時,applicableAction 為 ReserveAdjustmentAttempted。

requestedAmount Optional。claimItem 的 AdjustedAmount__c

isOpenCoverage 為選擇性。開啟索賠涵蓋範圍時為 True。當用於索賠項目或更新現有索賠涵蓋範圍時為 False。

isValidation 為選擇性。只有在 applicableAction 為 PaymentAttempted 時。當在叫用 ClaimInitialPaymentIP 之前發生時,為 True。當在叫用 ClaimPaymentIP 後發生此情況時為 False。

applicableAction

為 Attribute__c.ApplicableAction__c 欄位選擇下列其中一個值:

  • ClaimLineItemClaimedAmountEntered

  • PaymentAttempted

  • ReserveAdjustmentAttmpted

輸入 JSON

以下是輸入 JSON 的格式:

{ 
   "claimItemData" : [
		{
			"claimId" : <id>,
			"claimCoverageId" : <id>,
			"claimItemId" : <id>,
			"oldReserveAmount" : <decimal>, 
			"newReserveAmount" : <decimal>, 
			"requestedAmount" : <decimal>, 
			"isOpenCoverage" : <boolean> ,
			"isValidation" : <boolean>
		}
	]
}

以下是輸入 JSON 範例:

{  
   "claimItemData" : [
		{
			"claimId" : 01t000000000000001"",
			"claimCoverageId" : "01t000000000000002",
			"claimItemId" : "01t000000000000003",
			"oldReserveAmount" : 0, 
			"newReserveAmount" : 1000, 
			"requestedAmount" : 500, 
			"isOpenCoverage" : false
		}
	]
}

輸出 JSON

以下是 ClaimLineItemClaimedAmountEntered 適用動作的輸出 JSON 格式:

{  
   "newEntriesDetails": [
        {
            "remainingValue": <decimal>,
            "postedValue": <decimal>,
            "calculatedInitialValue": <decimal>,
            "attributeScope": <string>,
            "claimItemId": <id>,
            "assetTermName": <string>,
            "attributeCode": <string>,
            "attributeClass": <string>,
            "initialAmount": <decimal>,
            "initialValue": <decimal>,
            "insuredPartyId": <id>,
            "insuredItemId": <id>,
            "involvedPropertyId": <id>,
            "involvedInjuryId": <id>,
            "claimCoverageId": <id>,
            "claimId": <id>,
            "assetTermId": <id>,
            "name": <string>
        },
        { ... },
        { ... }
    ]
}

以下是 ClaimLineItemClaimedAmountEntered 適用動作的輸出 JSON 範例:

// note: same claim, claim coverage, insured party, involved property. 
// different policy terms details (asset term id, asset term name), term tracking details (initialValue, calculatedInitialValue, postedValue, remainingValue)

{  
   "newEntriesDetails": [
        {
            "remainingValue": 0,
            "postedValue": 50,
            "calculatedInitialValue": 50,
            "attributeScope": "Claim",
            "claimItemId": null,
            "assetTermName": "Deductible Terms",
            "attributeCode": "d6534444-89c9-dbf3-6591-595066dd802e",
            "attributeClass": "Deductible",
            "initialAmount": null,
            "initialValue": 50,
            "insuredPartyId": "01t000000000000001",
            "insuredItemId": null,
            "involvedPropertyId": "01t000000000000002",
            "involvedInjuryId": null,
            "claimCoverageId": "01t000000000000003",
            "claimId": "01t000000000000004",
            "assetTermId": "01t000000000000005",
            "name": "Deductible (Claim)"
        },
        {
            "remainingValue": 50,
            "postedValue": 50,
            "calculatedInitialValue": 50,
            "attributeScope": "Claim",
            "claimItemId": null,
            "assetTermName": "Copay Terms",
            "attributeCode": "atCopay",
            "attributeClass": "Copay",
            "initialAmount": null,
            "initialValue": 100,
            "insuredPartyId": "01t000000000000001",
            "insuredItemId": null,
            "involvedPropertyId": "01t000000000000002",
            "involvedInjuryId": null,
            "claimCoverageId": "01t000000000000003",
            "claimId": "01t000000000000004",
            "assetTermId": "01t000000000000007",
            "name": "Copay (Claim)"
        }
    ]
}
 
正在載入
Salesforce Help | Article