Olet tässä:
InsProductService:getRatedGroupProducts
Tätä palvelua käytetään vain pienryhmien tuotteille, jotka käyttävät väestönlaskua. Palvelu sallii tuotteiden säilyttämisen tuotepalvelun kanssa.
Voit käyttää tätä palvelua kahdella eri tavalla, riippuen siitä, miten käytät accountId-, censusId- ja userInput-vaihtoehtoja. Pidä seuraavat tärkeät käsitteet mielessäsi:
-
Voit käyttää joko accountId- tai censusId-arvoa tai molempia noutaaksesi kyselyn.
-
Jos käytät accountId-arvoa eikä censusId-arvoa ole määritetty, käytetään järjestelmän rekisteröintiä, jossa tila on Aktiivinen ja rekisteröinnin tyyppi on Ryhmä.
-
Jos käytät censusId-arvoa, se korvaa kaikki accountId-arvoon liittyvät tilastot.
-
userInput-arvot syötetään syöttökartasta, mutta jos syöttökartassa ei ole userInput-arvoja, palvelu luo ne väestönlaskun jäseniltä.
-
Voit kuitenkin käyttää userInputs-funktiota getRatedProducts-palvelusta tarvittaessa.
getRatedProducts sisältää luokitusprosessin vaatimat tiedot, jotka on kartoitettu tuotteen attribuuteihin, mukaan lukien siihen liittyvät kattavuusmääritykset, vakuutetun kohteen määritykset, vakuutetun osapuolen määritykset ja arvosanan faktan määritykset.
Miten se toimii?
-
Palvelu saa aktiivisen Ryhmä-kyselyn, joka toimitetaan
censusId:n kautta. Voit myös välittää palvelunaccountIdja palvelun käyttää sitäaccountIdsaadakseen System-tyyppisen väestönlaskennan.Vaihtoehtoisesti se voi olla
userInputs, jos censusId tai accountId ei ole annettu.Jos annat sekä
userInputsettäcensusIdtaiaccountId, palvelu yhdistääuserInputsja ryhmän väestönlaskennasta luodutuserInputs, jos etäasetukseksimergeUserInputson määritetty true (oletus = epätosi). -
Hakee Tilin luokitus -tyypin ja hyväksyy tuotetyypin input-suodattimena.
-
Kutsuu hinnoitteluun
getRatedProductja palauttaa suunnitelmat. Palautettujen suunnitelmien määrä per sivu perustuupageSize-vaihtoehtoon (kuvassa alla). -
noutaa
employerContribution-arvon väestönlaskennasta ja käyttää sittengetRatedProduct-arvoa laskeakseen työnantajan panoksen kustakin tuotteesta. -
Asettaa noodin JSON-juuriin
EmployerContribution:lle.
Etäasetukset
Kaikkia getRatedProducts-palvelussa käytettyjä etävaihtoehtoja voidaan käyttää myös tässä.
Vaihtoehto |
Kuvaus |
|---|---|
|
Valinnainen. Tilin tunnus. Täytyy käyttää joko this-tunnusta tai censusId-tunnusta. |
|
Valinnainen. Kyselyn tunnus. Täytyy käyttää joko this-tunnusta tai accountId-tunnusta. |
|
Joko Medical, Dental, Vision tai Life. Suodattaa input-arvon yläpuolella Product.Type, GroupClass.Type, GroupClassContribution.ProductCategory |
|
Totuusarvo. Jos arvo on true, luotu
|
|
Totuusarvo. Jos arvo on true, outputJSON-tiedostossa ei palauteta |
|
Määritä tämä vaihtoehto arvoksi true vain, jos määrität myös |
|
Jos |
|
Merkkijonoarvo, joko Jos väestönlaskenta on vähintään 20, käytä tavallisesti Ikä-arvoa. Jos suurempi, käytä Yhdistelmä-arvoa. Siirry integrointiprosessiin ja käytä sitä |
|
Ladattavien suunnitelmien määrä per OmniScript-sivu. Tärkeää
Suosittelemme vahvasti, että määrität arvoksi 9 välttyäksesi latausongelmilta. |
Valitse |
|
|
Oletus = Yhdistää Lisätietoja on kohdassa Input JSON alla. |
Syötetty JSON
Tämä palvelu ei käytä syötettyä JSON-tiedostoa.
Voit halutessasi tarjota tähän userInputs-noodit, esimerkiksi jos käytät mergeUserInputs-etäohjausvaihtoehtoa. Tällöin yksilöllinen instanssiavain täytyy olla määritetty userInput ja kyselyn jäsenen tietueessa (sen täytyy olla sama avain), jotta palvelu voi täsmätä kunkin userInput kunkin kyselyn jäsenen tietueeseen. (On hyvä käyttää instanssin avaimena väestönlaskentajäsenen tunnusta).
"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"
}
]
}Sinun täytyy myös täyttää väestönlaskentajäsenen kentän CensusMember.AttributeSelectedValue__c samankaltaisella JSON-tiedostolla, jolla on sama instanssiavain:
{
"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”
}Tulos-JSON
Palvelu palauttaa employerContributions-arvot productId perusteella. Tulokset on muotoiltu JSONResult-objektin mukaisesti.
-
Jos sisällön tyyppi on Summa, vain
contributionAmount-attribuutti palautetaan -
Jos sisällön tyyppi on Prosentti,
contributionPercentpalautetaan. -
Jos Tuotehinta on käytettävissä, laskettu
contributionAmountpalautetaan
{
"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": {}
}
}