/// <summary> /// Initializes a new instance of the <see cref="TeamMember" /> class. /// </summary> /// <param name="user">user.</param> /// <param name="team">team.</param> /// <param name="isAdmin">isAdmin.</param> /// <param name="isActive">isActive.</param> /// <param name="isOwner">isOwner.</param> public TeamMember(User user = default(User), DocumentTeam team = default(DocumentTeam), bool?isAdmin = default(bool?), bool?isActive = default(bool?), bool?isOwner = default(bool?)) { this.User = user; this.Team = team; this.IsAdmin = isAdmin; this.IsActive = isActive; this.IsOwner = isOwner; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="Event" /> class. /// </summary> /// <param name="team">team.</param> /// <param name="document">document.</param> /// <param name="signer">signer.</param> public Event(DocumentTeam team = default(DocumentTeam), Document document = default(Document), Signer signer = default(Signer)) { this.Team = team; this.Document = document; this.Signer = signer; }
/// <summary> /// Initializes a new instance of the <see cref="Template" /> class. /// </summary> /// <param name="user">user.</param> /// <param name="team">team.</param> /// <param name="who">`m`: only me, `mo`: me and others, `o`: only others.</param> public Template(User user = default(User), DocumentTeam team = default(DocumentTeam), WhoEnum?who = default(WhoEnum?)) { this.User = user; this.Team = team; this.Who = who; }
/// <summary> /// Initializes a new instance of the <see cref="WebhookSubscription" /> class. /// </summary> /// <param name="name">Optional name to easily identify what webhook is used for.</param> /// <param name="eventType">eventType (required).</param> /// <param name="callbackUrl">callbackUrl (required).</param> /// <param name="integration">integration.</param> /// <param name="team">team.</param> public WebhookSubscription(string name = default(string), EventTypeEnum eventType = default(EventTypeEnum), string callbackUrl = default(string), IntegrationEnum?integration = default(IntegrationEnum?), DocumentTeam team = default(DocumentTeam)) { // to ensure "eventType" is required (not null) if (eventType == null) { throw new InvalidDataException("eventType is a required property for WebhookSubscription and cannot be null"); } else { this.EventType = eventType; } // to ensure "callbackUrl" is required (not null) if (callbackUrl == null) { throw new InvalidDataException("callbackUrl is a required property for WebhookSubscription and cannot be null"); } else { this.CallbackUrl = callbackUrl; } this.Name = name; this.Integration = integration; this.Team = team; }