Loading
保险
InsPolicyService:getPolicyVersions

InsPolicyService:getPolicyVersions

使用此服务检索策略的不同版本。该服务返回由策略字段集 PolicyCompareHeader 确定的高级字段的策略列表。

类:InsPolicyService

方法:getPolicyVersions

工作原理

备注
备注

此服务对 Vlocity 对象和 FSC 对象使用相同的输入和选项。根据传递的 ID,服务确定 ID 是引用 Vlocity 对象还是 FSC 对象,并相应地检索版本。

  1. 服务接收 assetId 作为输入。

  2. 服务会查询共享相同版本 ID 的其他策略。

  3. 该服务返回策略列表。

远程选项

选项

说明

AssetId

必填

资产(保单)ID

originalPolicy

可选

默认值是假。如果为真,仅返回策略的原始版本。

lastPolicy

可选

默认值为假。如果为真,则仅返回策略的最新版本。

输入 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