Loading
Verzekering
InsContractService:getContractDetail

InsContractService:getContractDetail

Gebruik deze service om een ProductJSON te retourneren die u kunt gebruiken met de InsQuoteService:createUpdateQuote om de Contract-JSON mee bij te werken of om een verlengingsofferte met vervangende producten te maken.

Klasse: InsContractService

Methode: getContractDetail

De manier waarop het werkt...

Als het product Silver My Choice HDHP 300 bijvoorbeeld een vervangend product van Silver My Choice HDHP 400 heeft, vervangt de Contract-JSON het product Silver My Choice HDHP 300 door Silver My Choice HDHP 400.

  1. Gebruikt de contractId om contractgegevens op te halen.

  2. Haalt met behulp van de contractgegevens alle aan het contract gekoppelde ContractLineItems op.

    Als rootItemIds is opgegeven, haalt de service alleen de ContractLineItems met ID's in de rootItemIds en hun onderliggende ContractLineItems op.

  3. Als de optie getReplacementProducts is ingesteld op true, herhaalt de service alle ContractLineItems op rootniveau. Als het product dat aan een bepaalde ContractLineItem is gekoppeld, een vervangend product heeft, vervangt de service het onderliggende product door het vervangende product in de contract-JSON.

Er is ook een effectiveDate beschikbaar als u een vervangend product wilt gebruiken dat tot een bepaalde datum in de toekomst geldig is. Hiervoor selecteert u het vervangende product waarvan de ingangsdatum kleiner is dan de effectiveDate en waarvan de einddatum null is of groter is dan de effectiveDate.

Standaard gebruikt de service het actieve tellingstype System dat is gekoppeld aan de gecontracteerde groep. Als dit niet beschikbaar is, wordt de telling van de inschrijving uit het contract gebruikt.

Externe opties

Optie

Beschrijving

contractId

Verplicht.

ID van doelcontract.

getReplacementProducts

Optioneel.

Standaard = false.

Indien ingesteld op true, worden de bestaande producten vervangen door van toepassing zijnde vervangingen.

effectiveDate

Optioneel.

Gebruikt als getReplacementProducts is ingesteld op true.

Als deze optie niet wordt geboden, is default = today.

rateType

Optioneel. Gebruik dit alleen wanneer u getReplacementProducts instelt op true.

Waarde moet age of composite. zijn

Er wordt geen standaardwaarde opgegeven als er geen waarde is ingesteld.

Gebruik deze optie wanneer u vervangende producten moet prijzen. Het komt overeen met de rateType voor InsProductService:getRatedProducts.

isBatchMode

true of false

Indien ingesteld op true, retourneert de service een vereenvoudigde product-JSON die geen kenmerkcategorieën bevat, maar wel geselecteerde waarden en regels voor kenmerken.

Indien ingesteld op false retourneert de service het volledige product-JSON.

Deze optie is handig als u een integratieprocedure uitvoert in batchmodus en deze deze service bevat.

Invoer-JSON

Deze service gebruikt geen invoer-JSON.

Uitvoer-JSON

Contract-JSON van doelcontract. (Voorbeeld hieronder.)

Opmerking
Opmerking

De velden die worden geretourneerd in de Contract-JSON, kunnen worden gewijzigd door de veldsets GetContractDetailFields bij te werken voor de objecten Contract en ContractLineItem.

{
  "totalSize": 1,
  "records": [
    {
      "displaySequence": -1,
      "Id": "800f4000000Bi7mAAC",
      "AccountId": "001f400000emqVVAAY",
      "ContractNumber": "00024803",
      "effectiveDate": "2018-12-28",
      "endDate": "2019-01-27",
      "ContractTerm": 1,
      "EnrollmentCensusId__c": "a3wf4000000LspPAAS",
      "Pricebook2Id": "01sf4000007PvM2AAK",
      "childProducts": {
        "totalSize": 2,
        "records": [
          {
            "displaySequence": -1,
            "Id": "a2If4000001HvLtEAK",
            "renewalSourceId": "a2If4000001HvLtEAK",
            "AttributeSelectedValues__c": "{\"SLEEPSTUDIESOON\":\"Not covered.\",\"SLEEPSTUDIESIN\":80,\"HITECHIMAGINGOON\":\"Not covered.\",\"HITECHIMAGINGIN\":90,\"XRAYLABOON\":\"Not covered.\",\"XRAYLABIN\":90,\"InpatHabOutofnetwork\":50,\"InpatHabInnetwork\":80,\"InpatRehabOutOfnetwork\":50,\"InpatRehabInnetwork\":80,\"SNFOut-of-network\":50,\"SNFIn-network\":80,\"Inpatoutofnetwork\":50,\"Inpatinnetwork\":80,\"ATTRIBUTE-079\":80,\"ATTRIBUTE-078\":100,\"ATTRIBUTE-081\":70,\"ATTRIBUTE-080\":80,\"ATTRIBUTE-083\":80,\"ATTRIBUTE-082\":10,\"WELLBABYOON\":50,\"WELLBABYINN\":\"No charge.\",\"Tobacco OON\":\"No charge.\",\"Tobacco INN\":\"No charge.\",\"MAMMOOON\":80,\"MAMMOIN\":90,\"IMMUNOON\":80,\"IMMUNIN\":\"No charge.\",\"GYNOON\":80,\"GYNINN\":\"No charge.\",\"EXAMOON\":70,\"EXAMIN\":10,\"OUTPAT Treatment OON\":60,\"OUTPAT Treatment IN\":50,\"OUTPAT SVC OON\":50,\"OUTPAT SVC IN\":20,\"PROSORTHOON\":50,\"PROSORTHIN\":75,\"DIABETESOON\":50,\"DIABETESIN\":75,\"EQOON\":50,\"EQINN\":75,\"RESPITE OON\":30,\"RESPITE IN\":80,\"HOSPICE OON\":30,\"HOSPICE IN\":80,\"HOMEOON\":30,\"HOMEIN\":80,\"ATTRIBUTE-073\":12000,\"ATTRIBUTE-071\":5000,\"ATTRIBUTE-072\":6000,\"ATTRIBUTE-070\":3000,\"ATTRIBUTE-076\":60,\"ATTRIBUTE-075\":80,\"ATTRIBUTE-069\":50,\"INCP\":25,\"ATTRIBUTE-066\":50000,\"ATTRIBUTE-064\":3000,\"EMPLOYEEFAMILY\":5775,\"SGCOINSURANCE\":\"$70\",\"SGDEDUCTIBLE\":\"$6000\"}",
            "productId": "01tf4000003GgJUAA0",
            "Price": 4504.5,
            "productName": "Silver My Choice HDHP 3000",
            "ProductCode": "MCHDHPCA3000",
            "RecordTypeName__c": "Product",
            "childProducts": {
              "totalSize": 0,
              "records": [
                {
                  "displaySequence": -1,
                  "Id": "a2If4000001HvLvEAK",
                  "renewalSourceId": "a2If4000001HvLvEAK",
                  "AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
                  "ParentItemId__c": "a2If4000001HvLtEAK",
                  "productId": "01tf4000003GgJjAAK",
                  "pciId": "a2vf4000000RLG2AAO",
                  "Price": 0,
                  "productName": "Acupuncture Office Professional",
                  "ProductCode": "AOP",
                  "RecordTypeName__c": "CoverageSpec",
                  "isSelected": true
                },
                {
                  "displaySequence": -1,
                  "Id": "a2If4000001HvLwEAK",
                  "renewalSourceId": "a2If4000001HvLwEAK",
                  "AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
                  "ParentItemId__c": "a2If4000001HvLtEAK",
                  "productId": "01tf4000003GgJeAAK",
                  "pciId": "a2vf4000000RLG3AAO",
                  "Price": 0,
                  "productName": "Acupuncture Outpatient Professional",
                  "ProductCode": "AOUP",
                  "RecordTypeName__c": "CoverageSpec",
                  "isSelected": true
                }
              ]
            }
          },
          {
            "displaySequence": -1,
            "Id": "a2If4000001HvLuEAK",
            "renewalSourceId": "a2If4000001HvLuEAK",
            "AttributeSelectedValues__c": "{\"SQUAREFEET\":\"2018-04-02T07:00:00.000Z\"}",
            "productId": "01tf4000003GgIvAAK",
            "Price": 3575,
            "productName": "Bronze My Choice HDHP 2500 CA",
            "ProductCode": "MCHDHPCA2500",
            "RecordTypeName__c": "Product",
            "childProducts": {
              "totalSize": 0,
              "records": [
                {
                  "displaySequence": -1,
                  "Id": "a2If4000001HvLxEAK",
                  "renewalSourceId": "a2If4000001HvLxEAK",
                  "AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
                  "ParentItemId__c": "a2If4000001HvLuEAK",
                  "productId": "01tf4000003GgJeAAK",
                  "pciId": "a2vf4000000RLFtAAO",
                  "Price": 2788.5,
                  "productName": "Acupuncture Outpatient Professional",
                  "ProductCode": "AOUP",
                  "RecordTypeName__c": "CoverageSpec",
                  "isSelected": true
                },
                {
                  "displaySequence": -1,
                  "Id": "a2If4000001HvLyEAK",
                  "renewalSourceId": "a2If4000001HvLyEAK",
                  "AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
                  "ParentItemId__c": "a2If4000001HvLuEAK",
                  "productId": "01tf4000003GgJjAAK",
                  "pciId": "a2vf4000000RLFsAAO",
                  "Price": 2788.5,
                  "productName": "Acupuncture Office Professional",
                  "ProductCode": "AOP",
                  "RecordTypeName__c": "CoverageSpec",
                  "isSelected": true
                }
              ]
            }
          }
        ]
      }
    }
  ]
 
Wordt geladen
Salesforce Help | Article