/// <summary> /// Initializes a new instance of the <see cref="SignRequestQuickCreate" /> class. /// </summary> /// <param name="fromEmail">Email of user sending the SignRequest (must be a validated email).</param> /// <param name="fromEmailName">Name to be used in the `From` email header, e.g. `{from_email_name} <[email protected]>`.</param> /// <param name="isBeingPrepared">Have the sender of a SignRequest prepare the document before sending the request out, see: [prepare using the web interface](#section/Preparing-a-document/Prepare-using-the-web-interface).</param> /// <param name="redirectUrl">URL at which SignRequest will redirect to when a document is signed.</param> /// <param name="redirectUrlDeclined">URL at which SignRequest will redirect to when a document is declined.</param> /// <param name="requiredAttachments">Attachments that signers are required to upload.</param> /// <param name="disableAttachments">Disable uploading/adding of attachments.</param> /// <param name="disableTextSignatures">Disable usage of signatures generated by typing (text).</param> /// <param name="disableText">Disable adding of text.</param> /// <param name="disableDate">Disable adding of dates.</param> /// <param name="disableEmails">Disable all SignRequest status emails as well as the email that contains the signed documents.</param> /// <param name="disableUploadSignatures">Disable usage of uploaded signatures (images).</param> /// <param name="disableBlockchainProof">Disables storing timestamp proof hashes in blockchain integrations..</param> /// <param name="textMessageVerificationLocked">When true a text message verification is needed before the signer can see the document.</param> /// <param name="subject">Subject of SignRequest email.</param> /// <param name="message">Message to include in SignRequest email, may contain the following html tags: `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`.</param> /// <param name="who">`m`: only me, `mo`: me and others, `o`: only others (default to WhoEnum.O).</param> /// <param name="sendReminders">Automatically remind signers to sign a document.</param> /// <param name="signers">signers (required).</param> /// <param name="integration">integration.</param> /// <param name="integrationData">integrationData.</param> /// <param name="name">Defaults to filename, including extension.</param> /// <param name="externalId">ID used to reference document in external system.</param> /// <param name="frontendId">Shared secret used in conjunction with <a href=\"#section/Frontend-API/SignRequest-js-client-(beta)\">SignRequest-js client</a> to grant user access to a document that's not a member of the document's team.</param> /// <param name="fileFromUrl">Publicly accessible URL of document to be downloaded by SignRequest.</param> /// <param name="eventsCallbackUrl">URL at which to receive [event callbacks](#section/Events/Events-callback) for this document.</param> /// <param name="fileFromContent">Base64 encoded document content.</param> /// <param name="fileFromContentName">Filename, including extension. Required when using `file_from_content`..</param> /// <param name="template">template.</param> /// <param name="prefillTags">Prefill signer input data, see [prefill tags](#section/Preparing-a-document/Prefill-tags-templates).</param> /// <param name="integrations">integrations.</param> /// <param name="fileFromSf">fileFromSf.</param> /// <param name="autoDeleteDays">Number of days after which a finished document (signed/cancelled/declined) will be automatically deleted.</param> /// <param name="autoExpireDays">Number of days after which a non finished document will be automatically expired.</param> public SignRequestQuickCreate(string fromEmail = default(string), string fromEmailName = default(string), bool?isBeingPrepared = default(bool?), string redirectUrl = default(string), string redirectUrlDeclined = default(string), List <RequiredAttachment> requiredAttachments = default(List <RequiredAttachment>), bool?disableAttachments = default(bool?), bool?disableTextSignatures = default(bool?), bool?disableText = default(bool?), bool?disableDate = default(bool?), bool?disableEmails = default(bool?), bool?disableUploadSignatures = default(bool?), bool?disableBlockchainProof = default(bool?), bool?textMessageVerificationLocked = default(bool?), string subject = default(string), string message = default(string), WhoEnum?who = WhoEnum.O, bool?sendReminders = default(bool?), List <Signer> signers = default(List <Signer>), IntegrationEnum?integration = default(IntegrationEnum?), Object integrationData = default(Object), string name = default(string), string externalId = default(string), string frontendId = default(string), string fileFromUrl = default(string), string eventsCallbackUrl = default(string), string fileFromContent = default(string), string fileFromContentName = default(string), string template = default(string), List <InlinePrefillTags> prefillTags = default(List <InlinePrefillTags>), List <InlineIntegrationData> integrations = default(List <InlineIntegrationData>), FileFromSf fileFromSf = default(FileFromSf), int?autoDeleteDays = default(int?), int?autoExpireDays = default(int?)) { // to ensure "signers" is required (not null) if (signers == null) { throw new InvalidDataException("signers is a required property for SignRequestQuickCreate and cannot be null"); } else { this.Signers = signers; } this.FromEmail = fromEmail; this.FromEmailName = fromEmailName; this.IsBeingPrepared = isBeingPrepared; this.RedirectUrl = redirectUrl; this.RedirectUrlDeclined = redirectUrlDeclined; this.RequiredAttachments = requiredAttachments; this.DisableAttachments = disableAttachments; this.DisableTextSignatures = disableTextSignatures; this.DisableText = disableText; this.DisableDate = disableDate; this.DisableEmails = disableEmails; this.DisableUploadSignatures = disableUploadSignatures; this.DisableBlockchainProof = disableBlockchainProof; this.TextMessageVerificationLocked = textMessageVerificationLocked; this.Subject = subject; this.Message = message; // use default value if no "who" provided if (who == null) { this.Who = WhoEnum.O; } else { this.Who = who; } this.SendReminders = sendReminders; this.Integration = integration; this.IntegrationData = integrationData; this.Name = name; this.ExternalId = externalId; this.FrontendId = frontendId; this.FileFromUrl = fileFromUrl; this.EventsCallbackUrl = eventsCallbackUrl; this.FileFromContent = fileFromContent; this.FileFromContentName = fileFromContentName; this.Template = template; this.PrefillTags = prefillTags; this.Integrations = integrations; this.FileFromSf = fileFromSf; this.AutoDeleteDays = autoDeleteDays; this.AutoExpireDays = autoExpireDays; }
/// <summary> /// Initializes a new instance of the <see cref="Document" /> class. /// </summary> /// <param name="team">team.</param> /// <param name="user">user.</param> /// <param name="name">Defaults to filename, including extension.</param> /// <param name="externalId">ID used to reference document in external system.</param> /// <param name="frontendId">Shared secret used in conjunction with <a href=\"#section/Frontend-API/SignRequest-js-client-(beta)\">SignRequest-js client</a> to grant user access to a document that's not a member of the document's team.</param> /// <param name="fileFromUrl">Publicly accessible URL of document to be downloaded by SignRequest.</param> /// <param name="eventsCallbackUrl">URL at which to receive [event callbacks](#section/Events/Events-callback) for this document.</param> /// <param name="fileFromContent">Base64 encoded document content.</param> /// <param name="fileFromContentName">Filename, including extension. Required when using `file_from_content`..</param> /// <param name="template">template.</param> /// <param name="prefillTags">Prefill signer input data, see [prefill tags](#section/Preparing-a-document/Prefill-tags-templates).</param> /// <param name="integrations">integrations.</param> /// <param name="fileFromSf">fileFromSf.</param> /// <param name="autoDeleteDays">Number of days after which a finished document (signed/cancelled/declined) will be automatically deleted.</param> /// <param name="autoExpireDays">Number of days after which a non finished document will be automatically expired.</param> /// <param name="signrequest">signrequest.</param> /// <param name="signingLog">signingLog.</param> public Document(DocumentTeam team = default(DocumentTeam), User user = default(User), string name = default(string), string externalId = default(string), string frontendId = default(string), string fileFromUrl = default(string), string eventsCallbackUrl = default(string), string fileFromContent = default(string), string fileFromContentName = default(string), string template = default(string), List <InlinePrefillTags> prefillTags = default(List <InlinePrefillTags>), List <InlineIntegrationData> integrations = default(List <InlineIntegrationData>), FileFromSf fileFromSf = default(FileFromSf), int?autoDeleteDays = default(int?), int?autoExpireDays = default(int?), DocumentSignrequest signrequest = default(DocumentSignrequest), DocumentSigningLog signingLog = default(DocumentSigningLog)) { this.Team = team; this.User = user; this.Name = name; this.ExternalId = externalId; this.FrontendId = frontendId; this.FileFromUrl = fileFromUrl; this.EventsCallbackUrl = eventsCallbackUrl; this.FileFromContent = fileFromContent; this.FileFromContentName = fileFromContentName; this.Template = template; this.PrefillTags = prefillTags; this.Integrations = integrations; this.FileFromSf = fileFromSf; this.AutoDeleteDays = autoDeleteDays; this.AutoExpireDays = autoExpireDays; this.Signrequest = signrequest; this.SigningLog = signingLog; }