Loading
보험
repriceProduct의 제품당 하나의 평가 절차

repriceProduct의 제품당 하나의 평가 절차

루트 제품당 단일 등급 절차를 사용하는 제품의 형식 InsProductService:repriceProduct userInputs

노트
노트

제품 계층에서 여러 등급 절차를 사용하거나 계층의 모든 수준에서 여러 사양을 사용하는 대부분의 제품의 경우 입력을 JSON으로 다른 형식을 지정합니다. repriceProduct의 경우 제품당 다중 등급 절차 또는 모든 수준의 여러 사양을 참조하십시오.

Winter '23 릴리스 240.22 이전에 구성된 제품에는 지정된 계층 수준의 하위 사양이 여러 개 있고, 손자 사양이 없으며, 루트 수준의 등급 절차가 하나만 있을 수 있습니다. 이러한 제품의 경우 이전 릴리스와 동일한 userInputs 형식을 사용하십시오.

오류를 방지하려면 한 번에 하나의 userInputs 형식으로만 서비스를 실행합니다.

Summer '20부터 입력 JSON은 additionalInputs 노드를 허용합니다. 이 노드를 사용하여 stage를 추가 입력으로 설정하여 시스템이 서비스 실행 시 단계를 올바르게 평가합니다.

노트
노트

적격성 규칙은 지원되지 않습니다.

모든 제품의 경우 제품 보기의 API 탭에 있는 서비스 목록에서 userInputs 개체의 대상 형식을 가져올 수 있습니다. 객체 키는 ProductCode가 제품의 코드이거나 관련 보장 사양, 보험 항목 사양 또는 등급 사실의 제품 코드인 양식의 "<ProductCode>.<AttributeCode>"입니다.

범위의 <productCode>.isSelected는 식 집합 또는 계산 절차에서도 사용할 수 있습니다.

노트
노트

이 서비스는 레코드 배열의 개체를 하나만 지원합니다.

{
  "selectedProduct": {
    "records": [{
      "rootProductId": "01t1I000002fuBoQAI",
      "rootProductCode": "AUTOROOT",
      "timestamp": 1533948385704,
      "hasInstanceKeys": true,
      "childProductsCount": 8,
      "instanceKeyChildren": 2,
      "pathFromChild": "[0]",
      "pathFromRoot": "[0]",
      "attributeCategories": {
        ...
      }
      "childProducts": {
        ...
      }
      "Price": 80,
      "productId": "01t1I000002fuBoQAI",
      "Term__c": "Semi-Annual",
      "PricingFormula__c": "SUM(AutoPremium__autoPremium + rentalTotal + medicalTotal + roadsideTotal + dedWaiverTotal + uninsuredMotoristPDTotal + uninsuredMotoristBITotal)",
      "IsConfigurable__c": true,
      "RecordTypeName__c": "Product",
      "IsRecommended__c": false,
      "ProductCode": "AUTOROOT",
      "Name": "Auto Root",
      "Id": "01t1I000002fuBoQAI",
      "RawPriceData": [{
          "aggregationResults": {},
          "calculationResults": [{
              "ID": "0",
              "comprehensiveTotal": 500,
              "rentalTotal": 40,
              "medicalTotal": 10,
              "roadsideTotal": 10,
              "dedWaiverTotal": 10,
              "uninsuredMotoristPDTotal": 0,
              "uninsuredMotoristBITotal": 100,
              "AUTO.instanceKey": "2015 Lexus LX250",
              "DRIVER.FN": "Joan",
              "DRIVER.LN": "Smith"
            },
            {
              ...
            }
          ]
        },
        {
          "aggregationResults": {},
          "calculationResults": [{
              "ID": "4",
              "comprehensiveTotal": 500,
              "rentalTotal": 40,
              "medicalTotal": 10,
              "roadsideTotal": 10,
              "dedWaiverTotal": 10,
              "uninsuredMotoristPDTotal": 0,
              "uninsuredMotoristBITotal": 100,
              "AUTO.instanceKey": "2006 Honda Odyssey",
              "DRIVER.FN": "Joan",
              "DRIVER.LN": "Smith"
            },
            {
              ...
            }
          ]
        }
      ],
      "CalculatedPriceData": {
        "2006 Honda Odyssey": {
          "ID": "4",
          "comprehensiveTotal": 500,
          "rentalTotal": 40,
          "medicalTotal": 10,
          "roadsideTotal": 10,
          "dedWaiverTotal": 10,
          "uninsuredMotoristPDTotal": 0,
          "uninsuredMotoristBITotal": 100,
          "AUTO.instanceKey": "2006 Honda Odyssey",
          "DRIVER.FN": "Joan",
          "DRIVER.LN": "Smith"
        },
        "2015 Lexus LX250": {
          "ID": "0",
          "comprehensiveTotal": 500,
          "rentalTotal": 40,
          "medicalTotal": 10,
          "roadsideTotal": 10,
          "dedWaiverTotal": 10,
          "uninsuredMotoristPDTotal": 0,
          "uninsuredMotoristBITotal": 100,
          "AUTO.instanceKey": "2015 Lexus LX250",
          "DRIVER.FN": "Joan",
          "DRIVER.LN": "Smith"
        }
      },
      "displaySequence": -1
    }]
  }
}
노트
노트

다른 방법은 입력 JSON에 전달된 데이터를 서비스에 필요한 형식으로 매핑하는 Omnistudio 데이터 매퍼 변환을 정의하는 것입니다. 이 데이터 매퍼의 출력 JSON은 repriceProduct에 필요한 selectedProducts 노드이고, 제품 보기 API 탭에 정의된 userInputs JSON입니다. 데이터 매퍼를 사용하도록 서비스를 설정하려면 preTransformBundle 옵션을 데이터 매퍼의 이름으로 설정합니다.

 
로드 중
Salesforce Help | Article