Loading
メールアドレスがデフォルトのログイン方式となります 続きを読む
Insurance
InsPolicyService:getPolicyVersions

InsPolicyService:getPolicyVersions

このサービスを使用して、さまざまなバージョンのポリシーを取得します。サービスは、Policy 項目セット PolicyCompareHeader によって決定される高レベルの項目を含むポリシーのリストを返します。

クラス: InsPolicyService

方法: getPolicyVersions

操作手順

メモ
メモ

このサービスでは、Vlocity オブジェクトと FSC オブジェクトで同じ入力とオプションが使用されます。渡された ID に基づいて、サービスは ID が Vlocity オブジェクトと FSC オブジェクトのどちらを参照しているかを判断し、それに応じてバージョンを取得します。

  1. サービスは assetId を入力として受信します。

  2. サービスは同じバージョン ID を共有する他のポリシーを照会します。

  3. サービスはポリシーのリストを返します。

リモートオプション

オプション

説明

assetId

必須

アセット (ポリシー) ID

originalPolicy

省略可能

デフォルトは false です。true の場合、ポリシーの元のバージョンのみを返します。

lastPolicy

省略可能

デフォルトは false です。true の場合、最新バージョンのポリシーのみを返します。

Input 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