Touchstone Re 2023 API Reference
UpdateProgramRelationships Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceProgramManagementServiceClient Class : UpdateProgramRelationships Method
Contains a UpdateProgramRelationshipsRequest that identifies the list of relationships to update as well as the Business Unit Sequential Identifier (SID), and SQL Instance SID, and Program SID associated with the relationships.
Updates one or more Touchstone Re Reinsurance Program Relationships for a given Reinsurance Program.

A relationship defines the association between two Reinsurance Programs. Specifically, the relationship specifies which program inures to the benefit of the other program, the financial perspective of the association, and the relavant participation level. One reinsurance program may have many relationships.

For a given reinsurance program, you can use the GetAvailableProgramsToCreateProgramRelationships() method to retrieve a list of the programs that are valid potential sourcing or inuring programs for the specified program.

When you attempt to update the relationships for a program, note that:

Contains a UpdateProgramRelationshipsRequest that identifies the list of relationships to update as well as the Business Unit Sequential Identifier (SID), and SQL Instance SID, and Program SID associated with the relationships. A UpdateProgramRelationshipsResponse containing the list of relationships that you updated.
Syntax
Public Function UpdateProgramRelationships( _
   ByVal request As UpdateProgramRelationshipsRequest _
) As UpdateProgramRelationshipsResponse
Dim instance As ReinsuranceProgramManagementServiceClient
Dim request As UpdateProgramRelationshipsRequest
Dim value As UpdateProgramRelationshipsResponse
 
value = instance.UpdateProgramRelationships(request)

Parameters

request
Contains a UpdateProgramRelationshipsRequest that identifies the list of relationships to update as well as the Business Unit Sequential Identifier (SID), and SQL Instance SID, and Program SID associated with the relationships.

Return Value

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 program SID to pass into this method, call the GetPrograms() method.

Example
The following example shows how to update Reinsurance Program Relationships using the UpdateProgramRelationships() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.ProgramManagement.Api;
using AIR.Services.Reinsurance.ProgramManagement.Data;
using System;
using System.Collections.Generic;
            
class SnippetUpdateProgramRelationships
{
   private static void UpdateProgramRelationships(int businessUnitSid, int sqlInstanceSid, int programSid, int subjectProgramSid, int inuringProgramSid)
   {
       ReinsuranceProgramManagementServiceClient client = new ReinsuranceProgramManagementServiceClient();
            
       UpdateProgramRelationshipsRequest request = new UpdateProgramRelationshipsRequest();
       request.BusinessUnitSid = businessUnitSid;
       request.SqlInstanceSid = sqlInstanceSid;
       request.ProgramSid = programSid;
       request.Relationships = new List<ProgramRelationship>
           {
               new ProgramRelationship()
               {
                   SubjectProgramSid = subjectProgramSid,
                   InuringSourcingProgramSid = inuringProgramSid,
                   IsSourcing = false,
            
                   Perspectives = ProgramRelationPerspectives.Contract,
                   Participation = ProgramParticipation.OneHundred
            
               }
           };
            
       UpdateProgramRelationshipsResponse response = client.UpdateProgramRelationships(request);
       if (response.Status.Code == StatusCode.Success)
       {
           foreach (var relationship in response.Relationships)
           {
               Console.WriteLine("------------------------------------------------------------");
               Console.WriteLine("Subject Program SID: " + relationship.SubjectProgramSid);
               Console.WriteLine("Child Program SID: " + relationship.InuringSourcingProgramSid);
               Console.WriteLine("Is Source Program: " + relationship.IsSourcing);
               Console.WriteLine("Perspective: " + relationship.Perspectives);
               Console.WriteLine("Participation: " + relationship.Participation);
               Console.WriteLine("Participation Amount: " + relationship.ParticipationAmount);
           }
       }
   }
}
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

ReinsuranceProgramManagementServiceClient Class
ReinsuranceProgramManagementServiceClient Members