Loading
保險
InsProductAsyncRatingService:fetchRepriceProductPrice

InsProductAsyncRatingService:fetchRepriceProductPrice

使用此服務來針對重新定價產品要求取用非同步評分結果。

類別:InsProductAsyncRatingService

方法:fetchRepriceProductPrice

此服務針對群組福利大型群組報價使用個案建立。

運作方式

  1. 此服務會使用保險等級要求的識別碼作為輸入。
  2. 服務會查詢已儲存的等級要求,並再來取用資訊,包括狀態、評分產品識別碼、等級選項、等級輸入、等級輸出,以及與該 insuranceRatingRequestId 相關聯的 prodResultJson。
    備註
    備註 只有在等級要求的狀態為「已完成」或「已評分」時,服務才會提供評分產品的價格。
  3. 服務會計算與提交的 repriceProduct 要求相關聯產品的總價格。
  4. 服務會傳回更新的 prodResultJson。

輸入

輸入 描述
requestId

必要。

保險等級要求的識別碼。此識別碼會在呼叫服務時產生。

遠端選項

選項 描述
includeMemberPrices

表示是否要在輸出中包含成員層級價格。

預設值為 false。

輸入 JSON

以下是範例輸入 JSON:

{
 "requestId": "8zkRO000000004D",
}

選項 JSON

以下是範例選項 JSON:

{    
  "includeMemberPrices": false
} 

輸出 JSON

以下是範例輸出 JSON:

{
    "Status": "Completed", 
    "result":
    {
        "totalSize": 2,
        "records": [
        {
            "nameResult": {
                "childProducts": {},
                "attributeCategories": {}
            },
            "fields": {
                "Price": 325.0,
                "currencySymbol": "$",
                "currencyCode": "USD",
                "productId": "01t8c00000P49yeAAB",
                "ParentClassCode__c": null,
                "ParentClassId__c": null,
                "TotalInsuredFormula__c": null,
                "Term__c": null,
                "PricingFormula__c": "aggTotalPrem",
                "IsConfigurable__c": true,
                "RecordTypeName__c": "Product",
                "PricingSource__c": null,
                "ImageId__c": null,
                "Tier__c": null,
                "IsRecommended__c": false,
                "RateBandId__c": null,
                "SubType__c": null,
                "Type__c": null,
                "MarketSegment__c": null,
                "LineOfBusiness__c": "Group Benefits",
                "ProductCode": "dentalPremium",
                "Family": null,
                "Description": null,
                "Name": "dentalPremium",
                "Id": "01t8c00000P49yeAAB",
                "CalculatedPriceData": {
                      "aggTotalPrem": 325.0,
                      "DentalPremiumCalcMatrixAgeBased__QuotePremium": 325.0
                }
            },
            "displaySequence": -1
        },
        {
            "nameResult": {
                "childProducts": {},
                "attributeCategories": {}
            },
            "fields": {
                "Price": 1020.0,
                "currencySymbol": "$",
                "currencyCode": "USD",
                "productId": "01t8c00000PLIiEAAX",
                "ParentClassCode__c": null,
                "ParentClassId__c": null,
                "TotalInsuredFormula__c": null,
                "Term__c": null, 
                "PricingFormula__c": "aggTotalPrem",
                "IsConfigurable__c": true,
                "RecordTypeName__c": "Product",
                "PricingSource__c": null,
                "ImageId__c": null,
                "Tier__c": null,
                "IsRecommended__c": false,
                "RateBandId__c": null,
                "SubType__c": null,
                "Type__c": "Medical",
                "MarketSegment__c": null,
                "LineOfBusiness__c": "Group Benefits",
                "ProductCode": "MEDICAL",
                "Family": null,
                "Description": null,
                "Name": "Medical",
                "Id": "01t8c00000PLIiEAAX",
                "CalculatedPriceData": {
                    "aggTotalPrem": 325.0,
                    "MedicalCalcMatrixAgeBased__QuotePremium": 325.0 
                }
            },
            "displaySequence": -1
        }
        ]
    }
}
 
正在載入
Salesforce Help | Article