Loading
보험
InsProductService:getRatedGroupProducts

InsProductService:getRatedGroupProducts

이 서비스는 인구 조사를 사용하는 소규모 그룹 제품에만 사용됩니다. 서비스에서 제품을 제품 서비스와 함께 유지할 수 있습니다.

클래스: InsProductService

방법: getRatedGroupProducts

accountId, censusId, userInput 옵션을 사용하는 방법에 따라 이 서비스를 사용할 수 있는 몇 가지 방법이 있습니다. 다음은 유의해야 할 몇 가지 중요한 개념입니다.

  • accountId 또는 censusId 또는 둘 다를 사용하여 인구 조사에 가져올 수 있습니다.

  • accountId를 사용하고 censusId가 지정되지 않은 경우 시스템 인구 조사가 사용됩니다. 여기서 상태는 활성 상태이고 인구 조사 유형은 그룹입니다.

  • censusId를 사용하는 경우 accountId와 연결된 모든 인구 조사에 우선합니다.

  • 입력 맵의 userInputs가 가져오지만, 입력 맵에 userInputs가 없는 경우 서비스가 인구 조사 구성원에서 생성합니다.

  • 그러나 필요한 경우 getRatedProducts 서비스에서 userInputs를 사용할 수 있습니다.

노트
노트

getRatedProducts에는 제품 특성에 매핑된 등급 평가 절차에 필요한 입력 항목이 포함되어 있으며, 이는 관련 보장 범위 사양, 보험 항목 사양, 보험 당사자 사양 및 평가 팩트 사양을 포함합니다.

작동 방법

  1. 서비스는 활성 그룹 인구 조사, censusId를 통해 제공됩니다. 또는 accountId 서비스를 통과하면 서비스가 accountId을 사용하여 시스템 유형의 인구 통계를 가져올 수 있습니다.

    또는 censusId 또는 accountId가 제공되지 않은 경우 userInputs을 취할 수 있습니다.

    userInputs 및 censusId 또는 accountId를 모두 제공하는 경우 원격 옵션 mergeUserInputs이 true(기본값 = false)로 설정된 경우 서비스에서 생성된 userInputs와 userInputs을 병합합니다.

  2. 계정의 등급 유형을 가져오고 제품 유형을 입력 필터로 허용합니다.

  3. 가격 책정을 위해 getRatedProduct를 호출하고 계획을 반환합니다. 페이지당 반환되는 플랜 수는 pageSize 옵션(아래에 설명됨)을 기반으로 합니다.

  4. 인구 조사에서 employerContribution를 가져온 다음, getRatedProduct의 가격을 사용하여 각 제품에 대한 고용주 기여도를 계산합니다.

  5. EmployerContribution의 JSON 루트에 노드를 넣습니다.

원격 옵션

노트
노트

getRatedProducts 서비스에 사용된 모든 원격 옵션도 여기에 사용할 수 있습니다.

옵션

설명

accountId

(선택 사항)

계정의 ID입니다. 이 또는 censusId를 사용해야 합니다.

censusId

(선택 사항)

인구 조사 ID입니다. 이 또는 accountId를 사용해야 합니다.

productCategory

의료, 치과, 비전 또는 라이프.

Product.Type, GroupClass.Type,

GroupClassContribution.ProductCategory

includeContributionInUserInput

부울.

true인 경우, accountId 또는 censusId를 기반으로 생성된 userInputs에는 구성원당 고용주 기부가 포함되며, 다음 샘플 속성이 추가됩니다.

  • Dental.contributionAmount

  • Medical.contributionPercent

excludeContributionInOutput

부울.

true인 경우 출력JSON에서 employerContributions이 반환되지 않습니다.

omitChildren

true 또는 false

omitRating도 true로 설정한 경우에만 이 옵션을 true로 설정합니다. 이렇게 하면 가격이 없는 제품이 반환됩니다.

omitRating

true 또는 false

true하면 서비스는 가격 없이 제품을 반품합니다.

rateType

문자열 값은 Age 또는 Composite입니다.

일반적으로 인구 조사 크기가 20 이하인 경우 경과일을 사용합니다. 그보다 큰 경우 복합을 사용합니다.

통합 절차에 통과하고 %options.rateType%을 통해 액세스

pageSize

OmniScript 페이지당 로드할 계획 수입니다.

중요
중요

로딩 문제를 방지하려면 이 값을 9로 설정하는 것이 좋습니다.

validateCoverageSelection

true 또는 false

서비스 실행에 필요한 확인 규칙이 있는 경우 true로 설정합니다.

mergeUserInputs

true 또는 false

기본값 = false.

true로 설정된 그룹 인구 조사에서 생성된 userInputs와 userInputs을 병합합니다.

자세한 내용은 아래의 입력 JSON을 참조하십시오.

입력 JSON

이 서비스는 입력 JSON을 사용하지 않습니다.

경우에 따라 여기에서 userInputs 노드를 제공할 수 있습니다(예: mergeUserInputs 원격 옵션 사용). 이 경우, userInput 및 인구 조사 구성원 레코드에 고유한 인스턴스 키가 정의되어야 합니다(동일한 키여야 함) 따라서 서비스가 각 userInput와 인구 조사 구성원 레코드를 일치시킬 수 있습니다. (인스턴스 키로 인구 조사 구성원 ID를 사용하는 것이 좋습니다.)

"userInputs": [
{
"SG-Census-RF.SG_CM_Calculate": "true",
"SG-Census-RF.SG_CM_Age": 48,
"SG-Census-RF.Id": "a57g00000009i0wAAA",
"SG-Census-RF.SG_CM_Zip": "48005",
"SG-Census-RF.instanceKey": "a57g00000009i0wAAA"
},
{
"SG-Census-RF.SG_CM_Calculate": "true",
"SG-Census-RF.SG_CM_Age": 32,
"SG-Census-RF.Id": "a57g00000009i0rAAA",
"SG-Census-RF.SG_CM_Zip": "48005",
"SG-Census-RF.instanceKey": "a57g00000009i0rAAA"
}
]
}

또한 인스턴스 키와 동일한 JSON을 사용하여 인구 조사 구성원 필드의 CensusMember.AttributeSelectedValue__c을 채워야 합니다.

{
"SG_empOnlyCount": "",
"SG_empSpouseCount": "",
"SG_empChildCount": "",
"SG_empFamilyCount": "",
"SG_CM_MemberClass": null,
"SG_CM_Age": 48,
"SG_CM_State": null,
"SG_CM_Gender": null,
"SG_CM_Smoker": false,
"SG_CM_IsPrimary": false,
"SG_CM_IsSpouse": false,
"SG_CM_DOB": null,
"SG_CM_Relationship": null,
"SG_CM_Zip": null,
"Id": null,
"SG_CM_MemberType": null,
"SG_CM_Calculate": true,
"instanceKey":”a57g00000009i0wAAA”
}

출력 JSON

서비스는 productId를 기반으로 employerContributions을 반환합니다. 결과는 JSONResult 개체에 따라 서식화됩니다.

  • 기여 유형이 금액인 경우 contributionAmount 특성만 반환됩니다.

  • 기여 유형이 퍼센트인 경우 contributionPercent가 반환됩니다.

  • 제품 가격이 사용 가능한 경우 계산된 contributionAmount가 반환됩니다.

{
  "employerContributions": {
    "01tf4000002U25LAAS": [
      {
        "contributionAmount": 363.999,
        "contributionPercent": 30,
        "Member.Id": "a3ef4000000mPIaAAM"
      },
      {
        "contributionAmount": 363.999,
        "contributionPercent": 30,
        "Member.Id": "a3ef4000000mPIbAAM"
      }
    ],
    "01tf4000002U25KAAS": [
      {
        "contributionAmount": 100,
        "Member.Id": "a3ef4000000mPIaAAM"
      },
      {
        "contributionAmount": 100,
        "Member.Id": "a3ef4000000mPIbAAM"
      }
    ]
  },
  "result": {
    "totalSize": 2,
    "records": [
      {
        "uiStates": {},
        "nameResult": {
          "childProducts": {
            "totalSize": 2,
            "records": [
              {
                "uiStates": {},
                "nameResult": {},
                "messages": [],
                "fields": {
                  "pciId": "a2mf4000000lTZiAAM",
                  "productId": "01tf4000002U25MAAS",
                  "TotalInsuredFormula__c": null,
                  "Term__c": "Annual",
                  "PricingFormula__c": null,
                  "IsConfigurable__c": false,
                  "RecordTypeName__c": "RatingFactSpec",
                  "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": null,
                  "ProductCode": "RF0",
                  "Family": null,
                  "Description": null,
                  "Name": "censusRatingFact",
                  "Id": "01tf4000002U25MAAS"
                },
                "displaySequence": 1,
                "actions": {}
              },
              {
                "uiStates": {},
                "nameResult": {},
                "messages": [],
                "fields": {
                  "pciId": "a2mf4000000lTZjAAM",
                  "productId": "01tf4000002U25NAAS",
                  "TotalInsuredFormula__c": null,
                  "Term__c": "Annual",
                  "PricingFormula__c": null,
                  "IsConfigurable__c": false,
                  "RecordTypeName__c": "RatingFactSpec",
                  "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": null,
                  "ProductCode": "RF1",
                  "Family": null,
                  "Description": null,
                  "Name": "censusMemRatingFact",
                  "Id": "01tf4000002U25NAAS"
                },
                "displaySequence": 2,
                "actions": {}
              }
            ],
            "name": null,
            "messages": [],
            "description": null,
            "data": {
              "totalSize": null,
              "messages": [],
              "dataMap": {},
              "actions": {}
            },
            "actions": {}
          }
        },
        "messages": [],
        "fields": {
          "Price": "",
          "productId": "01tf4000002U25KAAS",
          "TotalInsuredFormula__c": null,
          "Term__c": null,
          "PricingFormula__c": null,
          "IsConfigurable__c": false,
          "RecordTypeName__c": "Product",
          "PricingSource__c": "AggOutput",
          "ImageId__c": null,
          "Tier__c": null,
          "IsRecommended__c": false,
          "RateBandId__c": null,
          "SubType__c": null,
          "Type__c": "Medical",
          "MarketSegment__c": null,
          "LineOfBusiness__c": null,
          "ProductCode": "rootProd",
          "Family": null,
          "Description": null,
          "Name": "rootProd",
          "Id": "01tf4000002U25KAAS",
          "RawPriceData": [
            {
              "calculationResults": [
                {
                  "ProcedureOutput": 1000,
                  "TheMatrix__Premium": "100",
                  "TheMatrix__PremiumRBSelf": "90",
                  "TheMatrix__PremiumRBSpouse": "110",
                  "ID": "0"
                },
                {
                  "ProcedureOutput": 1500,
                  "TheMatrix__Premium": "150",
                  "TheMatrix__PremiumRBSelf": "140",
                  "TheMatrix__PremiumRBSpouse": "160",
                  "ID": "1"
                },
                {
                  "ProcedureOutput": 2000,
                  "TheMatrix__Premium": "200",
                  "TheMatrix__PremiumRBSelf": "190",
                  "TheMatrix__PremiumRBSpouse": "210",
                  "ID": "2"
                },
                {
                  "ProcedureOutput": 1300,
                  "TheMatrix__Premium": "130",
                  "TheMatrix__PremiumRBSelf": "120",
                  "TheMatrix__PremiumRBSpouse": "240",
                  "ID": "3"
                },
                {
                  "ProcedureOutput": 2000,
                  "TheMatrix__Premium": "200",
                  "TheMatrix__PremiumRBSelf": "190",
                  "TheMatrix__PremiumRBSpouse": "210",
                  "ID": "4"
                },
                {
                  "ProcedureOutput": 1300,
                  "TheMatrix__Premium": "130",
                  "TheMatrix__PremiumRBSelf": "120",
                  "TheMatrix__PremiumRBSpouse": "240",
                  "ID": "5"
                }
              ],
              "aggregationResults": null
            }
          ],
          "CalculatedPriceData": {}
        },
        "displaySequence": -1,
        "actions": {}
      },
      {
        "uiStates": {},
        "nameResult": {
          "childProducts": {
            "totalSize": 2,
            "records": [
              {
                "uiStates": {},
                "nameResult": {},
                "messages": [],
                "fields": {
                  "pciId": "a2mf4000000lTZkAAM",
                  "productId": "01tf4000002U25MAAS",
                  "TotalInsuredFormula__c": null,
                  "Term__c": "Annual",
                  "PricingFormula__c": null,
                  "IsConfigurable__c": false,
                  "RecordTypeName__c": "RatingFactSpec",
                  "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": null,
                  "ProductCode": "RF0",
                  "Family": null,
                  "Description": null,
                  "Name": "censusRatingFact",
                  "Id": "01tf4000002U25MAAS"
                },
                "displaySequence": 1,
                "actions": {}
              },
              {
                "uiStates": {},
                "nameResult": {},
                "messages": [],
                "fields": {
                  "pciId": "a2mf4000000lTZlAAM",
                  "productId": "01tf4000002U25NAAS",
                  "TotalInsuredFormula__c": null,
                  "Term__c": "Annual",
                  "PricingFormula__c": null,
                  "IsConfigurable__c": false,
                  "RecordTypeName__c": "RatingFactSpec",
                  "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": null,
                  "ProductCode": "RF1",
                  "Family": null,
                  "Description": null,
                  "Name": "censusMemRatingFact",
                  "Id": "01tf4000002U25NAAS"
                },
                "displaySequence": 2,
                "actions": {}
              }
            ],
            "name": null,
            "messages": [],
            "description": null,
            "data": {
              "totalSize": null,
              "messages": [],
              "dataMap": {},
              "actions": {}
            },
            "actions": {}
          }
        },
        "messages": [],
        "fields": {
          "Price": 1213.33,
          "productId": "01tf4000002U25LAAS",
          "TotalInsuredFormula__c": null,
          "Term__c": null,
          "PricingFormula__c": null,
          "IsConfigurable__c": false,
          "RecordTypeName__c": "Product",
          "PricingSource__c": "AggOutput",
          "ImageId__c": null,
          "Tier__c": null,
          "IsRecommended__c": false,
          "RateBandId__c": "a4Gf4000000kocZEAQ",
          "SubType__c": null,
          "Type__c": "Dental",
          "MarketSegment__c": null,
          "LineOfBusiness__c": null,
          "ProductCode": "rootProd2",
          "Family": null,
          "Description": null,
          "Name": "rootProd2",
          "Id": "01tf4000002U25LAAS",
          "RawPriceData": [
            {
              "calculationResults": [
                {
                  "ProcedureOutput": 800,
                  "TheMatrix__Premium": "100",
                  "TheMatrix__PremiumRBSelf": "90",
                  "TheMatrix__PremiumRBSpouse": "110",
                  "ID": "0"
                },
                {
                  "ProcedureOutput": 1200,
                  "TheMatrix__Premium": "150",
                  "TheMatrix__PremiumRBSelf": "140",
                  "TheMatrix__PremiumRBSpouse": "160",
                  "ID": "1"
                },
                {
                  "ProcedureOutput": 1600,
                  "TheMatrix__Premium": "200",
                  "TheMatrix__PremiumRBSelf": "190",
                  "TheMatrix__PremiumRBSpouse": "210",
                  "ID": "2"
                },
                {
                  "ProcedureOutput": 1040,
                  "TheMatrix__Premium": "130",
                  "TheMatrix__PremiumRBSelf": "120",
                  "TheMatrix__PremiumRBSpouse": "240",
                  "ID": "3"
                },
                {
                  "ProcedureOutput": 1600,
                  "TheMatrix__Premium": "200",
                  "TheMatrix__PremiumRBSelf": "190",
                  "TheMatrix__PremiumRBSpouse": "210",
                  "ID": "4"
                },
                {
                  "ProcedureOutput": 1040,
                  "TheMatrix__Premium": "130",
                  "TheMatrix__PremiumRBSelf": "120",
                  "TheMatrix__PremiumRBSpouse": "240",
                  "ID": "5"
                }
              ],
              "aggregationResults": {
                "AggOutput": 1213.33
              }
            }
          ],
          "CalculatedPriceData": {
            "AggOutput": 1213.33
          }
        },
        "displaySequence": -1,
        "actions": {}
      }
    ],
    "name": null,
    "messages": [],
    "description": null,
    "data": {
      "totalSize": null,
      "messages": [],
      "dataMap": {},
      "actions": {}
    },
    "actions": {}
  }
}
 
로드 중
Salesforce Help | Article