/* Options:
Date: 2025-07-16 20:15:24
Version: 8.71
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://team.evovoice.io

//GlobalNamespace: 
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: AppGetFormCompletions.*
//ExcludeTypes: 
//AddNamespaces: 
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/

using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Voice.Api;
using Voice.Api.Portal;

namespace Voice.Api
{
    public partial class ListRequest<T>
        : IGet
    {
        ///<summary>
        ///The page of data to retrieve
        ///</summary>
        [ApiMember(Description="The page of data to retrieve")]
        public virtual int Page { get; set; }

        ///<summary>
        ///If you want all objects to be returned. This should be used with care
        ///</summary>
        [ApiMember(Description="If you want all objects to be returned. This should be used with care")]
        public virtual bool All { get; set; }

        ///<summary>
        ///The number per page to retrieve
        ///</summary>
        [ApiMember(Description="The number per page to retrieve")]
        public virtual int CountPerPage { get; set; }

        ///<summary>
        ///Specific IDs
        ///</summary>
        [ApiMember(Description="Specific IDs")]
        public virtual List<string> SpecificIds { get; set; }

        ///<summary>
        ///Specify a sort field
        ///</summary>
        [ApiMember(Description="Specify a sort field")]
        public virtual string SortField { get; set; }

        ///<summary>
        ///Specify a sort order
        ///</summary>
        [ApiMember(Description="Specify a sort order")]
        public virtual SortOrders SortOrder { get; set; }

        ///<summary>
        ///Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
        ///</summary>
        [ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array")]
        public virtual bool SimplifiedPaging { get; set; }
    }

    public partial class ListResponse<T>
    {
        ///<summary>
        ///The items
        ///</summary>
        [ApiMember(Description="The items")]
        public virtual List<HostedSuiteCompletedForm> Items { get; set; }

        ///<summary>
        ///The total number of items
        ///</summary>
        [ApiMember(Description="The total number of items")]
        public virtual int TotalCount { get; set; }

        ///<summary>
        ///The total number of pages
        ///</summary>
        [ApiMember(Description="The total number of pages")]
        public virtual int TotalPages { get; set; }

        ///<summary>
        ///Are there more pages of items? Used with simplified paging
        ///</summary>
        [ApiMember(Description="Are there more pages of items? Used with simplified paging")]
        public virtual bool HasMorePages { get; set; }
    }

    public enum SortOrders
    {
        Ascend,
        Descend,
    }

}

namespace Voice.Api.Portal
{
    [Route("/portal/form-completions", "GET")]
    public partial class AppGetFormCompletions
        : ListRequest<HostedSuiteCompletedForm>, IReturn<ListResponse<HostedSuiteCompletedForm>>
    {
        public virtual string AccountId { get; set; }
        public virtual string CustomerId { get; set; }
        public virtual string EmailSubjectFilter { get; set; }
    }

    public partial class HostedSuiteCompletedForm
    {
        public virtual string Id { get; set; }
        public virtual string Name { get; set; }
        public virtual string DateCreated { get; set; }
        public virtual string DateCompleted { get; set; }
        public virtual string FormId { get; set; }
        public virtual string FormName { get; set; }
        public virtual string ClientId { get; set; }
        public virtual string ClientName { get; set; }
        public virtual string ContactId { get; set; }
        public virtual string ContactName { get; set; }
        public virtual List<string> ContactsIds { get; set; }
        public virtual List<string> ContactsNames { get; set; }
        public virtual string EmailSubject { get; set; }
        public virtual string CallerNumber { get; set; }
        public virtual List<HostedSuiteCompletedFormField> Fields { get; set; }
    }

    public partial class HostedSuiteCompletedFormField
    {
        public virtual string Name { get; set; }
        public virtual List<string> Values { get; set; }
    }

}