Loading
보험
InsPolicyService:getPolicyVersions

InsPolicyService:getPolicyVersions

이 서비스를 사용하여 다양한 버전의 정책을 검색합니다. 서비스는 정책 필드 집합 PolicyCompareHeader에 의해 결정된 높은 수준 필드가 있는 정책 목록을 반환합니다.

클래스: InsPolicyService

방법: getPolicyVersions

작동 방법

노트
노트

이 서비스는 Vlocity 개체 및 FSC 개체에 대해 동일한 입력과 옵션을 사용합니다. 전달된 ID를 기반으로 서비스에서 ID가 Vlocity 개체 또는 FSC 개체를 참조하는지 여부를 결정하고 그에 따라 버전을 검색합니다.

  1. 서비스는 assetId를 입력으로 수신합니다.

  2. 동일한 버전 ID를 공유하는 다른 정책에 대한 서비스 쿼리입니다.

  3. 서비스가 정책 목록을 반환합니다.

원격 옵션

옵션

설명

assetId

필수

자산(정책) ID

originalPolicy

선택 사항

기본값은 false입니다. true인 경우 원래 버전의 정책만 반환합니다.

lastPolicy

선택 사항

기본값은 false입니다. true인 경우 최신 버전의 정책만 반환합니다.

입력 JSON

다음 예제의 입력 JSON을 참조하십시오.

{
  "assetId":"02i6g000000I21EAAS"
}

출력 JSON

다음 예제의 출력 JSON을 참조하십시오.

{
  "fieldInfo": {
    "instest10__AttributeSelectedValues__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "TEXTAREA",
      "fieldLabel": "Attribute Selected Values",
      "fieldName": "instest10__AttributeSelectedValues__c"
    },
    "Product2Id": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "REFERENCE",
      "fieldLabel": "Product ID",
      "fieldName": "Product2Id"
    },
    "Name": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "STRING",
      "fieldLabel": "Asset Name",
      "fieldName": "Name"
    },
    "instest10__TotalPremiumForTerm__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "CURRENCY",
      "fieldLabel": "Total Premium for Term",
      "fieldName": "instest10__TotalPremiumForTerm__c"
    },
    "Id": {
      "isUpdateable": false,
      "isCreatable": false,
      "isRequired": false,
      "fieldType": "ID",
      "fieldLabel": "Asset ID",
      "fieldName": "Id"
    },
    "instest10__EffectiveDate__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "DATE",
      "fieldLabel": "Effective Date",
      "fieldName": "instest10__EffectiveDate__c"
    },
    "instest10__ExpirationDate__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "DATE",
      "fieldLabel": "Expiration Date",
      "fieldName": "instest10__ExpirationDate__c"
    }
  },
  "policyVersions": [
    {
      "attributes": {
        "type": "Asset",
        "url": "/services/data/v48.0/sobjects/Asset/02i6g000000HxXzAAK"
      },
      "Name": "M Auto 1",
      "Id": "02i6g000000HxXzAAK",
      "IsCompetitorProduct": false,
      "instest10__ExpirationDate__c": "2020-04-21",
      "instest10__EffectiveDate__c": "2020-03-17",
      "instest10__EffectiveTerm__c": "2020-03-17 - 2020-04-21",
      "instest10__MonthlyPremium__c": 393.75,
      "instest10__StandardPremium__c": 4725,
      "Product2Id": "01t6g000000LZKoAAO",
      "ProductCode": "AUTOROOT",
      "instest10__Term__c": "Annual",
      "instest10__TotalAmount__c": 5272.5,
      "instest10__TotalAmountForTerm__c": 520.03,
      "instest10__TotalFeeAmount__c": 75,
      "instest10__TotalFeeForTerm__c": 7.4,
      "instest10__TotalPremiumForTerm__c": 466.03,
      "instest10__TotalSumInsured__c": 350000,
      "instest10__TotalTaxForTerm__c": 46.6,
      "instest10__TotalTaxAmount__c": 472.5
    },
    {
      "attributes": {
        "type": "Asset",
        "url": "/services/data/v48.0/sobjects/Asset/02i6g000000HxY4AAK"
      },
      "Name": "M Auto 1 v1",
      "Id": "02i6g000000HxY4AAK",
      "instest10__PreviousVersionId__c": "02i6g000000HxXzAAK",
      "instest10__OriginalVersionId__c": "02i6g000000HxXzAAK",
      "IsCompetitorProduct": false,
      "instest10__ExpirationDate__c": "2020-07-15",
      "instest10__EffectiveDate__c": "2020-04-22",
      "instest10__EffectiveTerm__c": "2020-04-22 - 2020-07-15",
      "instest10__MonthlyPremium__c": 393.75,
      "instest10__StandardPremium__c": 4725,
      "Product2Id": "01t6g000000LZKoAAO",
      "ProductCode": "AUTOROOT",
      "instest10__Term__c": "Annual",
      "instest10__TotalAmount__c": 5272.5,
      "instest10__TotalAmountForTerm__c": 1227.84,
      "instest10__TotalFeeAmount__c": 75,
      "instest10__TotalFeeForTerm__c": 17.47,
      "instest10__TotalPremiumForTerm__c": 1100.34,
      "instest10__TotalSumInsured__c": 350000,
      "instest10__TotalTaxForTerm__c": 110.03,
      "instest10__TotalTaxAmount__c": 472.5
    },
    {
      "attributes": {
        "type": "Asset",
        "url": "/services/data/v48.0/sobjects/Asset/02i6g000000HxY9AAK"
      },
      "Name": "M Auto 1 v1 v1",
      "Id": "02i6g000000HxY9AAK",
      "instest10__PreviousVersionId__c": "02i6g000000HxY4AAK",
      "instest10__OriginalVersionId__c": "02i6g000000HxXzAAK",
      "IsCompetitorProduct": false,
      "instest10__ExpirationDate__c": "2020-08-25",
      "instest10__EffectiveDate__c": "2020-07-16",
      "instest10__EffectiveTerm__c": "2020-07-16 - 2020-08-25",
      "instest10__MonthlyPremium__c": 393.75,
      "instest10__StandardPremium__c": 4725,
      "Product2Id": "01t6g000000LZKoAAO",
      "ProductCode": "AUTOROOT",
      "instest10__Term__c": "Annual",
      "instest10__TotalAmount__c": 5272.5,
      "instest10__TotalAmountForTerm__c": 592.25,
      "instest10__TotalFeeAmount__c": 75,
      "instest10__TotalFeeForTerm__c": 8.42,
      "instest10__TotalPremiumForTerm__c": 530.75,
      "instest10__TotalSumInsured__c": 350000,
      "instest10__TotalTaxForTerm__c": 53.08,
      "instest10__TotalTaxAmount__c": 472.5
    }
}

결과 설명

정책 필드에 대한 자세한 정보 fieldInfo

policyVersions 비교할 정책 목록

 
로드 중
Salesforce Help | Article