Click or drag to resize

LoyaltyClientSelectProgramNextAnniversaryDate Method

Returns the next anniversary date for the Program Membership linked to the submitted Card Number.

Syntax
C#
public ResultOfdateTime SelectProgramNextAnniversaryDate(
	ManagementGroupRequestOfstring request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfstring

Return Value

Type: ResultOfdateTime
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfstring();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = "21000005";//Required - card number

  LoyaltyService.ResultOfdateTime result = svc.SelectProgramNextAnniversaryDate(request);

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