Пример #1
0
 /// <summary>
 /// Updates the specified attachment (Will only take affect if no one has signed the document yet).
 /// </summary>
 /// <param name="documentId"></param>
 /// <param name="attachmentId"></param>
 /// <param name="attachmentOptions"></param>
 /// <returns></returns>
 public async Task <Attachment> UpdateAttachmentAsync(Guid documentId, Guid attachmentId, AttachmentOptions attachmentOptions)
 {
     return(await PatchAsync <Attachment>($"{Urls.SignatureDocuments}/{documentId}/attachments/{attachmentId}",
                                          attachmentOptions));
 }
Пример #2
0
 /// <summary>
 /// Adds an attachment to the specified document.
 /// </summary>
 /// <param name="documentId"></param>
 /// <param name="attachmentOptions"></param>
 /// <returns></returns>
 public async Task <Attachment> CreateAttachmentAsync(Guid documentId, AttachmentOptions attachmentOptions)
 {
     return(await PostAsync <Attachment>($"{Urls.SignatureDocuments}/{documentId}/attachments",
                                         attachmentOptions));
 }
Пример #3
0
 /// <summary>
 /// Updates the specified attachment (Will only take affect if no one has signed the document yet).
 /// </summary>
 /// <param name="documentId"></param>
 /// <param name="attachmentId"></param>
 /// <param name="attachmentOptions"></param>
 /// <returns></returns>
 public Attachment UpdateAttachment(Guid documentId, Guid attachmentId, AttachmentOptions attachmentOptions)
 {
     return(Patch <Attachment>($"{Urls.SignatureDocuments}/{documentId}/attachments/{attachmentId}",
                               attachmentOptions));
 }
Пример #4
0
 /// <summary>
 /// Adds an attachment to the specified document.
 /// </summary>
 /// <param name="documentId"></param>
 /// <param name="attachmentOptions"></param>
 /// <returns></returns>
 public Attachment CreateAttachment(Guid documentId, AttachmentOptions attachmentOptions)
 {
     return(Post <Attachment>($"{Urls.SignatureDocuments}/{documentId}/attachments", attachmentOptions));
 }