Updates an existing Touchstone Re
Static Portfolio.
A portfolio in Touchstone Re is a collection of reinsurance treaties (or Layers) sourced from various Reinsurance Programs. There are three types of portfolios: master, static, and dynamic.
The master portfolio contains all the treaties in the business unit. A static portfolio is a collection of reinsurance treaties that you explicitly select from the master portfolio. A dynamic portfolio is a collection of reinsurance treaties that you select from the master portfolio by defining a filter. As treaties are added, modified, and removed from the master portfolio, the content of the dynamic portfolio changes automatically.
The following example shows how to update a static portfolio using the
UpdatePortfolioStatic()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.PortfolioManagement.Api;
using System;
class SnippetPortfolioAPIs
{
private static void UpdatePortfolioStatic(int businessUnitSid, int sqlInstanceSid, string name, int portfolioSid)
{
ReinsurancePortfolioManagementServiceClient client = new ReinsurancePortfolioManagementServiceClient();
UpdatePortfolioStaticRequest request = new UpdatePortfolioStaticRequest();
//Set the BusinessUnitSid property (required property)
request.BusinessUnitSid = businessUnitSid;
//Set the SqlInstanceSid property (required property)
request.SqlInstanceSid = sqlInstanceSid;
//Set the Name property. (required property)
request.Name = name;
//Set the PortfolioSid property. (required property)
request.PortfolioSid = portfolioSid;
//Set the Description property. (optional property)
request.Description = "Updated by API";
//Submit the request and get response back
UpdatePortfolioStaticResponse response = client.UpdatePortfolioStatic(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 updated");
}
}
}
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