You are here:
InsQuoteService:priceLargeGroupRootItems
This service calculates the price, and optionally taxes and fees, for a specific root item or all root items for a large group quote.
Class: InsQuoteService
Method: priceLargeGroupRootItems
How It Works
- The service takes a Quote ID as a required input. When the
isRateAlloption is set tofalse, a Quote Line Item ID of the root Quote Line Item to be priced is also required. - The service queries the target Quote to make sure there is a Group Census associated with the Quote.
- The service determines if the product or products are configured for
Member Based or Summary Based rating.
- If
isRateAllis set totrue, the service queries all the root items under the Quote. It looks at the product associated with each Quote Line Item and, based on thePricingStrategyType__coption, determines if the Product is configured for Member Based or Summary Based rating. Then the service splits the Quote Line Items into two groups. - If
isRateAllis set tofalse, the service queries the target root item and determines if the product associated with the Quote Line Item is configured for Member Based Rating or Summary Based Rating.
- If
- If there are root items configured for Member Based rating, the
service calls the
InsuranceRatingPtc.rateCensusservice to calculate a price for all the root items configured for Census Based Rating in a single batch. TheInsuranceRatingPtc.rateCensusservice is an async service so it doesn't update the price for these root items. Instead, it returns an async request ID and batch Job ID. - If there are root items configured for Summary Based Rating, the
service calls the
InsuranceRatingPtc.rateCensusSummaryservice to calculate a price for all the root items configured for Summary Based Rating in a single batch. TheInsuranceRatingPtc.rateCensusSummaryservice is a synchronous service, so the service updates the price for these root items synchronously. - The service returns the ID list of root items configured for Census
Based Rating and the ID list of root items configured for Summary Based Rating. The
service returns an optional
asyncRequestIdandbatchJobIdif there are root items configured for Census Based Rating.
Inputs
| Input | Description |
|---|---|
jurisdiction
|
Optional. The jurisdiction used to qualify census members. |
quoteId
|
Required. The ID of the quote. |
rootLineId
|
Required when the The ID of the root line item. |
Remote Options
| Option | Description |
|---|---|
calculateTaxesAndFees
|
Optional. Default value is Set to |
effectiveDate
|
Required. The effective date used for rating. |
isRateAll
|
Required. Boolean. Default value is Indicates whether to rate all root items in the quote. |
Input JSON
Here's the sample input JSON:
{
"quoteId": "0Q05w000001mgQNCAY",
"rootLineId": "0QL5w000003kyBnGAI"
}Options JSON
Here's the sample options JSON:
{
"isRateAll": false,
"effectiveDate": "2023-06-22",
"calculateTaxesAndFees": true
}Output JSON
Here's the sample output JSON:
{
"hasAsyncCall": true,
"summaryRatingLineIds": {"0QL5w000003kyBnGAI"},
"asyncRatingLineIds": {"0QL5w0000044u0SGAQ"},
"asyncRequestId": "8zk9f00000Q5jUEHNS",
"batchJobId": "0md9f00000Q5jUEHNS",
"calculatedTaxesAndFees": {
"0QL5w0000044u0UGAQ": {
"feeAmount": null,
"taxAmount": null
},
"0QL5w0000044u0SGAQ": {
"feeAmount": null,
"taxAmount": null
}
}
}
