public void DeleteApproval(string packageId, string documentId, string approvalId) { string path = template.UrlFor(UrlTemplate.APPROVAL_ID_PATH) .Replace("{packageId}", packageId) .Replace("{documentId}", documentId) .Replace("{approvalId}", approvalId) .Build(); try { restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete signature.\t" + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not delete signature.\t" + " Exception: " + e.Message, e); } }
public void DeleteCustomField(string id) { string path = template.UrlFor(UrlTemplate.ACCOUNT_CUSTOMFIELD_ID_PATH) .Replace("{customFieldId}", id) .Build(); try { client.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete the custom field from account." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not delete the custom field from account." + " Exception: " + e.Message, e); } }
public void ClearReminderScheduleForPackage(string packageId) { try { restClient.Delete(Path(packageId)); } catch (EslServerException e) { throw new EslServerException("Failed to remove reminder schedule for package with id: " + packageId + ". Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Failed to remove reminder schedule for package with id: " + packageId + ". Exception: " + e.Message, e); } }
public void DeleteSigningThemes() { string path = template.UrlFor(UrlTemplate.ACCOUNT_SIGNING_THEME_PATH) .Build(); try { string response = restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete the signing themes from account." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not delete the signing themes from account." + " Exception: " + e.Message, e); } }
public void DeleteGroup(string groupId) { string path = template.UrlFor(UrlTemplate.GROUPS_ID_PATH) .Replace("{groupId}", groupId) .Build(); try { restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Failed to delete group." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Failed to delete group." + " Exception: " + e.Message, e); } }
public void DeleteSender(string senderId) { string path = template.UrlFor(UrlTemplate.ACCOUNT_MEMBER_ID_PATH) .Replace("{senderUid}", senderId) .Build(); try { restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete sender.\t" + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not delete sender.\t" + " Exception: " + e.Message, e); } }
internal void DeleteSignerVerification(PackageId packageId, string roleId) { string path = template.UrlFor(UrlTemplate.DELETE_SIGNER_VERIFICATION_PATH) .Replace("{packageId}", packageId.Id) .Replace("{roleId}", roleId) .Build(); try { restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete signer verification." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not add delete verification." + " Exception: " + e.Message, e); } }
public void DeleteQRCode(string packageId, string documentId, string fieldId) { string path = template.UrlFor(UrlTemplate.QRCODE_ID_PATH) .Replace("{packageId}", packageId) .Replace("{documentId}", documentId) .Replace("{fieldId}", fieldId) .Build(); try { restClient.Delete(path); } catch (EslServerException e) { throw new EslServerException("Could not delete QR code from document." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new EslException("Could not delete QR code from document." + " Exception: " + e.Message, e); } }