Touchstone Re 2023 API Reference
OverridePortfolioLayers Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsurancePortfolioManagementServiceClient Class : OverridePortfolioLayers Method
Contains an OverridePortfolioLayersRequest that identifies the terms to apply for subsequent portfolio loss analyses, as well as the Business Unit SID, SQL Instance SID, and Portfolio SID associated with the portfolio.
Updates the terms of one or more reinsurance treaties (or Layers) in a Touchstone Re Portfolio for subsequent portfolio loss analyses.

When you create a reinsurance treaty (or Layer) in a Reinsurance Program, you specify values such as Participation 3 for the layer. When you create a portfolio, you can optionally specify new layer values that apply only during portfolio loss analyses.

Syntax
Public Function OverridePortfolioLayers( _
   ByVal request As OverridePortfolioLayersRequest _
) As OverridePortfolioLayersResponse
Dim instance As ReinsurancePortfolioManagementServiceClient
Dim request As OverridePortfolioLayersRequest
Dim value As OverridePortfolioLayersResponse
 
value = instance.OverridePortfolioLayers(request)

Parameters

request
Contains an OverridePortfolioLayersRequest that identifies the terms to apply for subsequent portfolio loss analyses, as well as the Business Unit SID, SQL Instance SID, and Portfolio SID associated with the portfolio.

Return Value

An OverridePortfolioLayersResponse that contains the status of the update.
Remarks

To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Portfolio SID to pass into this method, call the GetPortfolios() method.

Example
The following example shows how to update the terms of one or more reinsurance treaties (or layers) using the OverridePortfolioLayers() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.PortfolioManagement.Api;
using System;
using System.Collections.Generic;
            
class SnippetPortfolioAPIs
{
    private static void OverridePortfolioLayers(int businessUnitSid, int sqlInstanceSid, int portfolioSid, int layerSid)
    {
        ReinsurancePortfolioManagementServiceClient client = new ReinsurancePortfolioManagementServiceClient();
            
        OverridePortfolioLayersRequest request = new OverridePortfolioLayersRequest();
        //Set the BusinessUnitSid property (required property)
        request.BusinessUnitSid = businessUnitSid;
        //Set the SqlInstanceSid property (required property)
        request.SqlInstanceSid = sqlInstanceSid;
        //Set the PortfolioSid property. (required property)
        request.PortfolioSid = portfolioSid;
        //Set the LayerOverrides property. (required property)
        request.LayerOverrides = new List<AIR.Services.Reinsurance.PortfolioManagement.Data.LayerOverride>()
            {
                new AIR.Services.Reinsurance.PortfolioManagement.Data.LayerOverride()
                {
                    InvestmentAmount = 15,
                    LayerSid = layerSid,
                    Participation3 = 20,
                    Participation4 = 25,
                    ParticipationGross = 35,
                    ParticipationNet = 45,
                    PercentAnnualSpread = 18,
                    Premium = 99,
                    PrincipalAmount = 60,
                    ReinstatementPremium = 85
                }
           };
        //Submit the request and get response back
        OverridePortfolioLayersResponse response = client.OverridePortfolioLayers(request);
        //Validate the response.Response is valid if Response.Status.Code is equal to StatusCode.Success
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Portfolio Layer Override complete");
        }
    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReinsurancePortfolioManagementServiceClient Class
ReinsurancePortfolioManagementServiceClient Members