您在此处:
InsProductAsyncRatingService:fetchRepriceProductPrice
使用此服务获取重新定价产品请求的异步评级结果。
类:InsProductAsyncRatingService
方法:fetchRepriceProductPrice
此服务专为团体福利大型团体报价用例构建。
工作原理
- 此服务将保险评级请求的 ID 作为输入。
- 该服务查询存储的评级请求,并检索信息,包括状态、评级产品 ID、评级选项、评级输入、评级输出以及与
insuranceRatingRequestId关联的prodResultJson。备注 只有当评级请求的状态为“已完成”或“已评级”时,服务才会提供评级产品的价格。 - 该服务计算与提交的
repriceProduct请求关联的产品的总价格。 - 服务会返回更新的
prodResultJson。
输入
| 输入 | 描述 |
|---|---|
requestId
|
必需。 保险评级请求的 ID。此 ID 会在调用服务时生成。 |
远程选项
| 选项 | 说明 |
|---|---|
includeMemberPrices
|
表示是否在输出中包含成员级价格。 默认值是 |
输入 JSON
以下是示例输入 JSON:
{
"requestId": "8zkRO000000004D",
}Options JSON
以下是示例选项 JSON:
{
"includeMemberPrices": false
} 输出 JSON
以下是示例输出 JSON:
{
"Status": "Completed",
"result":
{
"totalSize": 2,
"records": [
{
"nameResult": {
"childProducts": {},
"attributeCategories": {}
},
"fields": {
"Price": 325.0,
"currencySymbol": "$",
"currencyCode": "USD",
"productId": "01t8c00000P49yeAAB",
"ParentClassCode__c": null,
"ParentClassId__c": null,
"TotalInsuredFormula__c": null,
"Term__c": null,
"PricingFormula__c": "aggTotalPrem",
"IsConfigurable__c": true,
"RecordTypeName__c": "Product",
"PricingSource__c": null,
"ImageId__c": null,
"Tier__c": null,
"IsRecommended__c": false,
"RateBandId__c": null,
"SubType__c": null,
"Type__c": null,
"MarketSegment__c": null,
"LineOfBusiness__c": "Group Benefits",
"ProductCode": "dentalPremium",
"Family": null,
"Description": null,
"Name": "dentalPremium",
"Id": "01t8c00000P49yeAAB",
"CalculatedPriceData": {
"aggTotalPrem": 325.0,
"DentalPremiumCalcMatrixAgeBased__QuotePremium": 325.0
}
},
"displaySequence": -1
},
{
"nameResult": {
"childProducts": {},
"attributeCategories": {}
},
"fields": {
"Price": 1020.0,
"currencySymbol": "$",
"currencyCode": "USD",
"productId": "01t8c00000PLIiEAAX",
"ParentClassCode__c": null,
"ParentClassId__c": null,
"TotalInsuredFormula__c": null,
"Term__c": null,
"PricingFormula__c": "aggTotalPrem",
"IsConfigurable__c": true,
"RecordTypeName__c": "Product",
"PricingSource__c": null,
"ImageId__c": null,
"Tier__c": null,
"IsRecommended__c": false,
"RateBandId__c": null,
"SubType__c": null,
"Type__c": "Medical",
"MarketSegment__c": null,
"LineOfBusiness__c": "Group Benefits",
"ProductCode": "MEDICAL",
"Family": null,
"Description": null,
"Name": "Medical",
"Id": "01t8c00000PLIiEAAX",
"CalculatedPriceData": {
"aggTotalPrem": 325.0,
"MedicalCalcMatrixAgeBased__QuotePremium": 325.0
}
},
"displaySequence": -1
}
]
}
}
