Loading
보험
InsProductAsyncRatingService:fetchProductsPrice

InsProductAsyncRatingService:fetchProductsPrice

이 서비스를 사용하여 비동기식 평가 결과를 가져옵니다.

클래스: InsProductAsyncRatingService

방법: fetchProductsPrice

이 서비스는 대규모 그룹 견적 사용 사례를 위해 구축되었습니다.

작동 방법

  1. 이 서비스는 보험 등급 요청 ID를 입력으로 사용합니다.
  2. 서비스는 저장된 등급 요청을 쿼리하고 상태, 등급이 지정된 제품 ID, 등급 옵션, 등급 입력, 등급 출력을 비롯한 정보를 검색합니다.
    노트
    노트 평가 요청 상태가 완료됨 또는 평가됨인 경우에만 평가 제품의 가격이 서비스에서 제공됩니다.
  3. 서비스는 등급 출력을 기반으로 각 루트 제품의 총 가격을 계산합니다.
  4. includeProductJson 옵션이 false로 설정된 경우 모든 등급 제품에 대한 가격 맵이 반환됩니다. includeProductJson 옵션이 true로 설정된 경우 제품 JSON이 반환됩니다.

입력

입력 설명
requestId

(필수)

보험 등급 요청의 ID입니다. 이 ID는 비동기 등급 프로세스가 시작되면 생성됩니다.

원격 옵션

옵션 설명
includeMemberPrices

출력에 구성원 수준 가격을 포함할지 여부를 나타냅니다.

기본값은 false입니다.

includeProductJson

응답에 제품 JSON을 포함할지 여부를 나타냅니다.

기본값은 false입니다.

이 옵션이 true이면 출력에 추가 처리 시간이 필요한 큰 JSON 노드가 포함됩니다.

includeRawCalculationResult

응답에 원시 계산 결과를 포함할지 여부를 나타냅니다.

기본값은 false입니다.

이 옵션은 includeProductJson가 true로 설정된 경우에만 유효합니다.

입력 JSON

다음은 샘플 입력 JSON입니다.

{
 "requestId": "8zkRO000000004D",
}

옵션 JSON

다음은 JSON 옵션 샘플입니다.

{     
  "includeProductJson": false,
  "includeRawCalculationResult": false,
  "includeMemberPrices": false
}

출력 JSON

샘플 출력 JSON은 다음과 같습니다.

{
  "productPriceMap": {
    "parsedCalcData": {
      "01t8c00000PLIiEAAX": {
        "01t8c00000PLIiEAAX": {
          "MedicalCalcMatrixAgeBased__QuotePremium":1020.0
        }
      },
      "01t8c00000P49yeAAB":{
        "01t8c00000P49yeAAB": {
          "DentalPremiumCalcMatrixAgeBased__QuotePremium":325.0
        }
      }
    }
  },
  "Status":"Completed"
}

제품 JSON을 사용하여 JSON 출력

다음은 제품이 JSON인 샘플 출력 JSON입니다.

{
  "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
      }
    ]
  },
  "Status": "Completed"
}
 
로드 중
Salesforce Help | Article