AdministrationClientExtendVoucherDate Method |
Modifies the the Expiry Date for the Voucher identified from the submitted Voucher RSN value.
public Result ExtendVoucherDate( ManagementGroupRequestOfExtendVoucher request )
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); } }