您位於此處:
InsPolicyService:getPolicyVersions
使用此服務可取用不同版本的原則。服務會傳回具有由「原則」欄位集 PolicyCompareHeader 決定的高層級欄位的原則清單。
方法:getPolicyVersions
運作方式
此服務針對 Vlocity 物件和 FSC 物件使用相同的輸入和選項。服務會根據傳送的識別碼,判斷識別碼是指 Vlocity 物件還是 FSC 物件,並相應地取用版本。
-
服務會收到 assetId 作為輸入。
-
服務會查詢共用相同版本識別碼的其他原則。
-
服務會傳回原則清單。
遠端選項
選項 |
描述 |
|---|---|
assetId |
必要 資產 (保單) 識別碼 |
originalPolicy |
選擇性 預設為 false。如果為 true,則僅傳回原始版本的原則。 |
lastPolicy |
選擇性 預設為 false。若為 true,則僅傳回最新版本的原則。 |
輸出 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
}
}