Click or drag to resize

AdministrationClientExtendVoucherDate Method

Modifies the the Expiry Date for the Voucher identified from the submitted Voucher RSN value.

Remarks
  • Voucher cannot be consumed
  • Voucher bannot be past it's Expiry Date
  • Related Member mus a and Active Member Status
Syntax
C#
public Result ExtendVoucherDate(
	ManagementGroupRequestOfExtendVoucher request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfExtendVoucher

Return Value

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

  var extendVoucher = new AdministrationService.ExtendVoucher();
  extendVoucher.RSN = new Guid("e28a56f3-cdff-4c1a-addb-0d28c8f86885");; //Required
  extendVoucher.Expires = DateTime.Now.AddDays(180); //Required

  request.Value = extendVoucher;//Required

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

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