Insurance Data Model

Learn about the data items that are used for the insurance storefront of Financial Services Accelerator.

UML Diagram

Products and Categories

On the insurance storefront we have the following insurance types: homeowners, renters, auto, life, travel, event, and savings. These insurance types are in fact different categories in SAP Commerce database. For specific products that belong to these categories, we use a product bundle logic from Bundling Module. The SAP Commerce Bundling Module enables defining template bundles of products offered together as a package. Each category can have one or more product bundles. In Financial Services Accelerator, a product bundle consists of one main product and up to several optional products. The main products are different product plans, for example Auto Bronze, Auto Silver or Auto Gold. The optional products are options that a user can add on the second step of the checkout process (Add Options). In the current implementation, only one bundle per Cart is allowed.

The association of a product with a given bundle is determined by the AbstractOrderEntry.entryNumber parameter. For more information on bundling data model, see Product Bundling.

Cart and Insurance Quote

To capture the customer data, we use yForms on the Choose a Cover page and Personal Details page of the checkout process. These pages are the first and fourth step of the checkout process, respectively. Additionally, the Payment Details page is used for capturing the payment information.

The data in the yForms on the first step of the checkout are strictly related to Financial Services Accelerator. Therefore, to store that data and to use it to generate quotes (and later policies), we had to create a new data object - InsuranceQuote.

To enable generic handling of yForms and an easy customization in the implementation project, all the specific details for different insurance types are not stored as individual attributes of InsuranceQuote, but in a dynamic way, as a Collection <InsuredObjectModel> at InsuranceQuote.insuredObjects attribute.

More specifically, when a user fills in all the fields on the Choose a Cover page and clicks the Continue button, the cart is created and the data from the session is saved to YFormData.content as a Map <String, Object>. Next, the YFormData.content is being transferred to the InsuranceQuote.insuredObjects. The InsuranceQuote itself is an attribute of AbstractOrder, whereas both the Cart and Order object extend the AbstractOrder. The persisted data from the InsuranceQuote is mapped to the Cart by implementing the InsuranceAddToCartStrategy.

The default rule is that there is only one bundle per Cart. This rule could be easily adjusted during the actual implementation.

To reach the yForm on the Personal Details page, a user must first log in or register. Without an individual user account, the Cart cannot be bound to the individual user, but remains related to anonymous.

For more information on yForms, see yForms.

On the Payment Details page, we deal with the standard customer data in the purchasing process, for which we use the already existing item types from SAP Commerce, such as User, Address, Currency, and PaymentInfo.

More on the method for persisting the data into the database (specific strategies) is explained in Insurance Quotation and Ordering Process.

Order and Insurance Policy

When the user places an order, the actual Order object is generated by the createOrderFromCart() method in the OrderService. Since both the Cart and the Order objects are derived from the AbstractOrder class, the generation of the Order is practically a clone of the Cart model, so that all of the details that are defined in the Cart at the abstract order level are copied into the resulting Order. Since the InsuranceQuote is an attribute of the AbstractOrder object, the new Order is generated with a copy of the InsuranceQuote object that was constructed on the Cart during the checkout phase. Therefore, when it is time to create the InsurancePolicy, all of the quote details are available.

Once the order is submitted, for each set of order entries, a consignment is created. The attribute that indicates the type which is used to determine how to process the consignment is named FulfilmentType. Possible values for FulfilmentType are:

  • FINANCIAL_MOCK, which is used for products that are not integrated with external SAP systems,
  • FINANCIAL_3RD_PARTY, used in case of products that are destinated to or delivered to a customer,
  • FINANCIAL_S4I, which is the opposite of the mock type and is used when the product is integrated and the connection is established with SAP for Insurance.

For more information, see Creating a PDF Policy in Financial Services Accelerator and Requesting a Policy in Financial Services Accelerator.

Investments

To implement savings insurance, a comparison table has been extended to include Investment Details section. Note that the data model enables adding investment details for other products as well. In the default implementation, however, each savings plan has two investment funds associated with it. By selecting a certain savings plan and creating an insurance policy, the users give their consent that the insurance company may invest their contribution into the investment funds belonging to their chosen insurance plan, according to the stated distribution of allocated sum, and under agreed conditions. To enable this, in Backoffice we first need to define the investment funds that can be attached to a certain product. Other investment types besides investment funds can also be specified, according to your business needs. However, once defined, all investment types for a certain product are displayed in a comparison table. For every investment type, the distribution percentage of the investment amount can be defined. This and other investment parameters are configurable in Backoffice.

The definition of investment funds is kept on the FSInvestmentFund object. As investment type may be just one type of investments implemented in the custom project, the FSInvestmentFund object therefore extends FSInvestmentType, a more generic object that holds attributes that can be common for other types of investments, for example bonds, annuities, stocks, security futures, etc. The default attributes that are added are code, name, riskReturnRating, and factSheetDocument (media file). In the case of savings insurance, the factsheet document is a PDF that is downloaded when a user clicks on the fund name (e.g. Capability Group). Implementation partners can choose other types of media files, or omit them entirely. The FSInvestmentType object is associated with Product via FSInvestmentDistribution that holds the percentages of investment amount (distributionPercentage) that is invested in a given investment fund.

The creation of policy triggers the instantiation of FSInvestmentInfo object and stores the information about chosen FSInvestmentType on insurance policy level (Coverage). As there are two investments funds per one savings plan, two FSInvestmentInfo objects are created in Backoffice that are part of a chosen coverage (e.g. Flexi-Max). FSInvestmentInfo object holds the following attributes: code, numberOfUnits, and distributionPercentage. The latter two attributes are included for easier customization on the implementation projects. The number of units represents the number of investment units that a user holds in an investment fund, for example, a number of stocks. The distribution percentage property enables the possibility to have configurable allocation of investment amount according to user's specific request.

Claims

To enable customers to see the overview of all the claims that they have, the FSClaim and FSIncidentType items have been added to the data model of Financial Services Accelerator. The possible future integration with back-end systems was thus facilitated by the extension of the existing data model. The FSClaim object has four attributes necessary for capturing the claim-related data: incident type that was the reason for a claim report (incidentType), the date when the incident happened (dateOfLoss), the claim number and claim status. The claims can be in the following statuses: open, processing, approved, rejected, submitted, error and closed. The FSIncidentType object is defined by the incident code, incident name, catalog version, category and the media object (an icon to be displayed on the UI for a particular incident type).

The FSClaim object is related to the InsurancePolicy and User in such way that both InsurancePolicy and User may have multiple claims. However, each claim can belong to maximum one InsurancePolicy and one User.

The feature has been enhanced to include the possibility of making claims reports directly on the insurance storefront portal. The new functionality is backed by the configurable and generic user request framework. For more information, see User Request Framework and First Notice of Loss.

For more details, see Claims.

Data Model Enhancement To Enable Integration Scenarios

Import of Policies

To enable the integration with other back-end systems and the storage of policies in SAP Commerce database that are created outside SAP Commerce, we introduce additional, intermediary data objects. Therefore, Financial Services Accelerator comes with the new item types that are related to the policy structure. The InsuredObject, InsuredObjectItem, and Coverage store data collected during the checkout process and enable the decoupling of that data from the Order (see the UML diagram).

The InsuranceQuote, as part of an Order, contains all the data about an insured object. The data is collected mainly from the yForm on the first checkout step and is stored on a policy as an InsuredObject. The insured object has different type for every insurance category and holds a list of InsuredObjectItems.

The InsuredObjectItem can have its own key, label, value, format, and could be completely localized no matter whether it comes from SAP Commerce or some other integrated back-end system.

The Order contains a list of Products, where each of them represent one Coverage in our model. One policy should have only one coverage with the main type, and changeable number of additional ones.

In the out-of-the-box scenarios of Financial Services Accelerator, every policy contains at least one single insured object and potentially multiple Coverages. In the actual implementation, however, the InsurancePolicy could have more than one InsuredObject, as well as multiple Coverages.

As policy-related objects (Coverage, InsuredObject, and InsuredObjectItem) have partOf relation with InsurancePolicy, for each of these objects, an identification key had to be added to enable scenarios in which one policy can have multiple contracts associated with it. For the same purpose, the contract ID is added to InsurancePolicy (contractId). A policy with multiple contracts represents in fact the scenario in which one policy can have more than one insured persons (InsuredObject of type person),

Similarly, one policy may have multiple versions (besides multiple insured persons). Therefore, version number (versionId) and effective date of a policy (policyEffectiveDate) are also added as properties to InsurancePolicy object. Note that in the current implementation, a policy is assigned a specific version only in the integration scenarios (during the policy import process). A version is closely associated with a policy's effective date. The policy's effective date stands for the date when a policy, or policy change, comes into effect. A new version is triggered only if a policy change requires a new effective date. For example, a change of person's last name may not require a new effective date, but a change of a policy premium amount does. A constraint is added that there can only be one version per effective date inside Financial Services Accelerator. For policies created in SAP Commerce, the effective date is set to policy's start date. Additionally, a contractId is set to be the same as policyId.

The provided data model is generic enough to support integration process with any external systems. For the purpose of integration with SAP Policy Management in SAP S/4HANA, paymentFrequency property is added to InsurancePolicy. For more info on the integration with SAP Policy Management, see Policy Replication.

Policy Creation

The PolicyCreationSubmitOrderStrategy is the basic implementation of the SubmitOrderStrategy interface in Financial Services Accelerator. In the current implementation, we are simulating calls to some external system by sending the basic data from order and creating a policy after reading the response from there. This strategy contains a list of classes that are processing the response data differently for every insurance type. If no appropriate processor is found for a given insurance category, the data is processed in the same mocked way as it was before. Because we do not have any external system integrated out of the box, we are reading the response data from an order as it is our only source of information. During these processes, an appropriate ProcessPolicyResponseDataStrategy creates an InsurancePolicy with the whole structure that comes with it (InsuredObject and Coverages), and store it inside SAP Commerce database.

UI Representation: MyAccount >> Policies Section

After placing an order, the customer can navigate to Start of the navigation pathMy Account Next navigation step PoliciesEnd of the navigation path section and see the list of all policies that he or she has. The list is retrieved from the actual policies and not from orders. This means that the list could potentially show more policies, including those policies that the customer bought through some other purchasing channel that is integrated with SAP Commerce. On the Policies and Policy Details page in My Account area, only policies with effective per system date are displayed (i.e. effective policies).

For more details, see Policies.

Customer Identification

The integration spot to enable identification of customers in external systems has been enabled with the extension of UserUser with four additional attributes: firstName, lastName, dateOfBirth and externalId.