breadcrumbDescription
InsProductService:getRatedGroupProducts
Denne tjeneste bruges kun med smågruppeprodukter, der bruger en folketælling. Tjenesten tillader, at produkterne bevares sammen med produktservicen.
Der er et par forskellige måder, du kan bruge denne tjeneste på, afhængigt af hvordan du bruger indstillingerne accountId, censusId og userInput. Her er nogle få vigtige koncepter, du skal huske på:
-
Du kan enten bruge et accountId eller censusId eller begge til at hente en folketælling.
-
Hvis du bruger et accountId, og der ikke er angivet noget censusId, bruges systemoptællingen, hvor statussen er Aktiv, og optællingstypen er Gruppe.
-
Hvis du bruger et censusId, tilsidesætter det enhver optælling, der er knyttet til accountId;
-
userInputs fra inputkortet vil blive taget, men hvis der ikke er nogen userInputs i inputkortet, vil tjenesten generere dem fra optællingsmedlemmer;
-
Du kan dog bruge userInputs fra getRatedProducts-tjenesten, hvis der er behov for det.
getRatedProducts indeholder de input, der er nødvendige for vurderingsproceduren, som kortlagt i produktets egenskaber, herunder de tilhørende dækningsspecifikationer, specifikationer for forsikrede elementer, specifikationer for forsikrede parter og specifikationer for vurderingsfakta.
Sådan fungerer det
-
Tjenesten får den aktive gruppeoptælling, der leveres via
censusId. Eller du kan overføre tjenesten enaccountId, og tjenesten brugeraccountIdtil at få en folketælling af typen System.Alternativt kan det tage
userInputs, hvis der ikke er angivet censusId eller accountId.Hvis du angiver både
userInputsogcensusIdelleraccountId, fletter tjenestenuserInputsmed genereredeuserInputsfra Gruppetællingen, hvis fjernindstillingenmergeUserInputser indstillet til true (standard = false). -
Henter kontoens vurderingstype og accepterer Produkttypen som et inputfilter.
-
Ringer til
getRatedProductfor prissætning og returnerer planer. Antallet af returnerede abonnementer pr. side er baseret påpageSize(beskrevet nedenfor). -
Henter
employerContributionfra folketællingen og bruger derefter prisen fragetRatedProducttil at beregne arbejdsgiverbidrag for hvert produkt. -
Placerer en node i JSON-roden for
EmployerContribution.
Fjernindstillinger
Alle fjernindstillinger, der bruges i getRatedProducts-tjenesten, kan også bruges her.
Indstilling |
Beskrivelse |
|---|---|
|
Valgfrit. Konto-id. Skal bruge enten dette eller censusId. |
|
Valgfrit. Id for folketælling. Skal bruge enten dette eller accountId. |
|
Enten Medicinsk, Dental, Vision eller Liv. Filtre over input efter Product.Type, GroupClass.Type, GroupClassContribution.ProductCategory |
|
Boolesk. Hvis det er sandt, vil de genererede
|
|
Boolesk. Hvis sand, returneres |
|
Indstil kun denne indstilling til true, hvis du også indstiller |
|
Hvis |
|
Strengværdi, enten Hvis folketællingsstørrelsen er 20 eller mindre, skal du bruge Alder. Hvis den er større, skal du bruge Sammensat. Gennemgå integrationsproceduren og få adgang via |
|
Antal planer, der skal indlæses pr. OmniScript-side. Vigtigt
Det anbefales kraftigt at indstille denne værdi til 9 for at undgå indlæsningsproblemer. |
Indstil til |
|
|
Standard = Fletter Se Input JSON nedenfor for at få flere oplysninger. |
Input JSON
Denne tjeneste bruger ikke et input-JSON.
Du kan også angive userInputs-noder her, f.eks. hvis du bruger mergeUserInputs-fjernanmodningen. I dette tilfælde skal der defineres en entydig forekomstnøgle i userInput og i medlemsregistreringen (den skal være den samme nøgle), så tjenesten kan matche hver userInput med hver medlemsregistrering. (Det er en god ide at bruge id'et for optællingsmedlemmet som forekomstnøglen).
"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"
}
]
}Du skal også udfylde CensusMember.AttributeSelectedValue__c i folketællingsmedlemsfeltet med en JSON, der minder om dette, med den samme forekomstnøgle:
{
"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”
}Output JSON
Tjenesten returnerer employerContributions baseret på productId. Resultaterne formateres i henhold til JSONResult-objektet.
-
Hvis bidragstypen er Beløb, er det kun attributten
contributionAmount, der returneres -
Hvis bidragstypen er Procent, returneres
contributionPercent -
Hvis Produktprisen er tilgængelig, returneres den beregnede
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": {}
}
}