Loading
Verzekering
InsProductService:getRatedGroupProducts

InsProductService:getRatedGroupProducts

Deze service wordt alleen gebruikt voor producten van kleine groepen die een telling gebruiken. Met de service kunnen de producten bij de productservice worden bewaard.

Klasse: InsProductService

Methode: getRatedGroupProducts

U kunt deze service op verschillende manieren gebruiken, afhankelijk van de manier waarop u de opties accountId, censusId en userInput gebruikt. Hier zijn enkele belangrijke concepten die u in gedachten moet houden:

  • U kunt een accountId of censusId, of beide, gebruiken om een telling binnen te halen;

  • Als u een accountId gebruikt en er geen censusId is opgegeven, wordt de systeemtelling gebruikt, waarbij de status Actief is en het type telling Groep is;

  • Als u een censusId gebruikt, overschrijft deze elke telling die is gekoppeld aan de accountId;

  • userInputs uit de invoerkaart wordt overgenomen, maar als er geen userInputs in de invoerkaart zijn, genereert de service deze uit tellingsleden;

  • U kunt echter userInputs van de service getRatedProducts gebruiken, indien nodig.

Opmerking
Opmerking

getRatedProducts bevat de invoer die nodig is voor de beoordelingsprocedure, zoals toegewezen in de kenmerken van het product, inclusief de bijbehorende dekkingsspecificaties; specificaties van verzekerde items; specificaties van verzekerde partij; en specificaties van beoordelingsfeiten.

De manier waarop het werkt...

  1. De service haalt de actieve telling van Groep op, die wordt geleverd via censusId. Of u kunt de service een accountId doorgeven en de service gebruikt de accountId om een telling van het type System te krijgen.

    Het kan ook userInputs duren als er geen censusId of accountId is opgegeven.

    Als u zowel userInputs als censusId of accountId opgeeft, voegt de service de userInputs samen met gegenereerde userInputs uit de telling Groep als de externe optie mergeUserInputs is ingesteld op true (standaard = false).

  2. Haalt het type Beoordeling van account op en accepteert het producttype als invoerfilter.

  3. Belt getRatedProduct voor prijsstelling en retourneert plannen. Het aantal plannen dat per pagina wordt geretourneerd, is gebaseerd op de pageSize (zie hieronder).

  4. Haalt employerContribution op uit de telling en gebruikt vervolgens de prijs van getRatedProduct om de werkgeversbijdrage voor elk product te berekenen.

  5. Plaatst een knooppunt in de JSON-root voor EmployerContribution.

Externe opties

Opmerking
Opmerking

Alle externe opties die worden gebruikt in de service getRatedProducts, kunnen hier ook worden gebruikt.

Optie

Beschrijving

accountId

Optioneel.

ID van account. Moet dit of censusId gebruiken.

censusId

Optioneel.

ID van telling. Moet dit of accountId gebruiken.

productCategory

Medisch, Tandheelkundig, Visueel of Leven.

Filtert bovenstaande invoer op Product.Type, GroupClass.Type,

GroupClassContribution.ProductCategory

includeContributionInUserInput

Booleaans.

Indien true (waar), omvat de gegenereerde userInputs, op basis van de accountId of censusId, de werkgeversbijdragen per lid en worden de volgende voorbeeldkenmerken toegevoegd:

  • Dental.contributionAmount

  • Medical.contributionPercent

excludeContributionInOutput

Booleaans.

Indien true (waar), wordt employerContributions niet geretourneerd in de outputJSON

omitChildren

true of false

Stel deze optie alleen in op true (waar) als u omitRating ook instelt op true. Dit retourneert producten zonder prijsstelling.

omitRating

true of false

Indien true retourneert de service producten zonder prijsstelling.

rateType

Tekenreekswaarde, Age of Composite.

Gebruik bij een volkstelling van 20 jaar of minder doorgaans Leeftijd; bij een grotere telling Samengesteld.

Doorgeven aan integratieprocedure en openen via %options.rateType%

pageSize

Aantal te laden plannen per OmniScript-pagina.

Belangrijk
Belangrijk

Het wordt sterk aanbevolen om deze waarde in te stellen op 9 om laadproblemen te voorkomen.

validateCoverageSelection

true of false

Stel deze in op true als u validatieregels hebt die de service moet uitvoeren.

mergeUserInputs

true of false

Standaard = false.

Voegt de userInputs samen met gegenereerde userInputs uit de telling Groep indien ingesteld op true.

Zie Invoer-JSON hieronder voor meer informatie.

Invoer-JSON

Deze service gebruikt geen invoer-JSON.

Optioneel kunt u hier userInputs opgeven, bijvoorbeeld als u de externe optie mergeUserInputs gebruikt. In dit geval moet er een unieke instantiesleutel worden gedefinieerd in de userInput en in de record van het tellingslid (het moet dezelfde sleutel zijn), zodat de service elke userInput kan koppelen aan elke record van het tellingslid. (Het is een goed idee om de ID van het tellingslid als instantiesleutel te gebruiken.)

"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"
}
]
}

U moet ook de CensusMember.AttributeSelectedValue__c in het veld van het lid van de volkstelling invullen met een JSON die lijkt op deze, met dezelfde instantiesleutel:

{
"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”
}

Uitvoer-JSON

De service retourneert employerContributions op basis van de productId. Resultaten worden opgemaakt volgens het object JSONResult.

  • Als het type bijdrage Bedrag is, wordt alleen het kenmerk contributionAmount geretourneerd

  • Als het type bijdrage Percentage is, wordt contributionPercent geretourneerd

  • Als de productprijs beschikbaar is, wordt de berekende contributionAmount geretourneerd

{
  "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": {}
  }
}
 
Wordt geladen
Salesforce Help | Article