Click or drag to resize

AdministrationClientHoldingAdjustmentTransaction Method

Syntax
C#
public Result HoldingAdjustmentTransaction(
	ManagementGroupRequestOfHoldingAdjustment request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfHoldingAdjustment

Return Value

Type: Result
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfHoldingAdjustment();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var holdingAdjustment = new AdministrationService.HoldingAdjustment();
  holdingAdjustment.TransactionSet_RSN = new Guid("39eab873-d7a4-4007-9845-e41bf2602fdc");; //Required
  holdingAdjustment.Points = 1.5M; //Required
  holdingAdjustment.HomeBranch_PartnerRSN = new Guid("a7993a59-38d2-4a3e-b356-08c96354e4ef");; //Required

  request.Value = holdingAdjustment;//Required

  AdministrationService.Result result = svc.HoldingAdjustmentTransaction(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also