/* Options: Date: 2025-05-05 00:14:30 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: ListCustomers.* //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.Accounts; using Voice.Api; using Voice.Api.Flows.Data; using Voice.Api.Customers; using Voice.Api.Settings; using Voice.Api.Integrations; using Voice.Api.Scheduling; namespace Voice.Api { public partial class EntityInfo { /// ///The ID of the object /// [ApiMember(Description="The ID of the object")] public virtual string Id { get; set; } /// ///The date the object was created /// [ApiMember(Description="The date the object was created")] public virtual string DateCreated { get; set; } /// ///The date the object was last modified /// [ApiMember(Description="The date the object was last modified")] public virtual string DateLastModified { get; set; } /// ///The user that created this object /// [ApiMember(Description="The user that created this object")] public virtual string CreatedBy { get; set; } /// ///The user that last modified this object /// [ApiMember(Description="The user that last modified this object")] public virtual string LastModifiedBy { get; set; } } public partial class ListRequest : IGet { /// ///The page of data to retrieve /// [ApiMember(Description="The page of data to retrieve")] public virtual int Page { get; set; } /// ///If you want all objects to be returned. This should be used with care /// [ApiMember(Description="If you want all objects to be returned. This should be used with care")] public virtual bool All { get; set; } /// ///The number per page to retrieve /// [ApiMember(Description="The number per page to retrieve")] public virtual int CountPerPage { get; set; } /// ///Specific IDs /// [ApiMember(Description="Specific IDs")] public virtual List SpecificIds { get; set; } /// ///Specify a sort field /// [ApiMember(Description="Specify a sort field")] public virtual string SortField { get; set; } /// ///Specify a sort order /// [ApiMember(Description="Specify a sort order")] public virtual SortOrders SortOrder { get; set; } /// ///Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array /// [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 { /// ///The items /// [ApiMember(Description="The items")] public virtual List Items { get; set; } /// ///The total number of items /// [ApiMember(Description="The total number of items")] public virtual int TotalCount { get; set; } /// ///The total number of pages /// [ApiMember(Description="The total number of pages")] public virtual int TotalPages { get; set; } /// ///Are there more pages of items? Used with simplified paging /// [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.Accounts { public partial class BillingItem { public virtual double BaseCost { get; set; } public virtual double RawUnitMultiplier { get; set; } public virtual double UnitCost { get; set; } public virtual int Allowance { get; set; } } public partial class BillingSettings { public virtual BillingItem Base { get; set; } public virtual BillingItem LocalNumbers { get; set; } public virtual BillingItem TollFreeNumbers { get; set; } public virtual BillingItem InboundVoiceCalls { get; set; } public virtual BillingItem OutboundVoiceCalls { get; set; } public virtual BillingItem InboundFaxes { get; set; } public virtual BillingItem OutboundFaxes { get; set; } public virtual BillingItem InboundSmsMessages { get; set; } public virtual BillingItem OutboundSmsMessages { get; set; } public virtual BillingItem AIInsights { get; set; } public virtual BillingItem AILiveMinutes { get; set; } } } namespace Voice.Api.Customers { public partial class AppSettings { public virtual bool EnablePhoneNumberManagement { get; set; } public virtual bool EnableDeviceManagement { get; set; } public virtual bool EnableDialer { get; set; } public virtual bool EnableCallHistory { get; set; } public virtual bool EnableAssistants { get; set; } public virtual bool ShowFileNameInMessageCenter { get; set; } public virtual string ChakraTheme { get; set; } public virtual string CustomCss { get; set; } public virtual string PageTitle { get; set; } public virtual string StringMappings { get; set; } public virtual string LogoutUrl { get; set; } public virtual string PortMyNumberUrl { get; set; } } public partial class CustomerBreadcrumb { public virtual string Id { get; set; } public virtual string Name { get; set; } } public partial class CustomerInfo : EntityInfo { /// ///The ID of the account associated with this customer /// [ApiMember(Description="The ID of the account associated with this customer")] public virtual string AccountId { get; set; } /// ///The parent customer ID for this customer /// [ApiMember(Description="The parent customer ID for this customer")] public virtual string ParentCustomerId { get; set; } /// ///The breadcrumb to this customer /// [ApiMember(Description="The breadcrumb to this customer")] public virtual List Breadcrumb { get; set; } /// ///The name of the account associated with this customer /// [ApiMember(Description="The name of the account associated with this customer")] public virtual string AccountName { get; set; } /// ///Is this customer staging or production? /// [ApiMember(Description="Is this customer staging or production?")] public virtual bool IsStaging { get; set; } /// ///The name of the company /// [ApiMember(Description="The name of the company")] public virtual string Name { get; set; } /// ///The reference ID for this company /// [ApiMember(Description="The reference ID for this company")] public virtual string ReferenceId { get; set; } /// ///This customer's data values /// [ApiMember(Description="This customer's data values")] public virtual Struct Data { get; set; } /// ///The list of tags for this customer /// [ApiMember(Description="The list of tags for this customer")] public virtual List Tags { get; set; } /// ///This customer's schedule /// [ApiMember(Description="This customer's schedule")] public virtual Schedule Schedule { get; set; } /// ///Integration data for this customer /// [ApiMember(Description="Integration data for this customer")] public virtual EntityIntegrationData IntegrationData { get; set; } /// ///Override this customer's billing settings? Otherwise inherits from parent /// [ApiMember(Description="Override this customer's billing settings? Otherwise inherits from parent")] public virtual bool OverrideBillingSettings { get; set; } /// ///Billing settings for this customer /// [ApiMember(Description="Billing settings for this customer")] public virtual BillingSettings BillingSettings { get; set; } /// ///Should this customer override the parent customer's app settings /// [ApiMember(Description="Should this customer override the parent customer's app settings")] public virtual bool OverrideAppSettings { get; set; } /// ///App / Portal settings for this customer /// [ApiMember(Description="App / Portal settings for this customer")] public virtual AppSettings AppSettings { get; set; } } /// ///Retrieve customers /// [Route("/customers", "GET")] [Api(Description="Retrieve customers")] public partial class ListCustomers : ListRequest, IReturn> { /// ///Filter by accounts /// [ApiMember(Description="Filter by accounts")] public virtual List AccountIds { get; set; } /// ///Filter by name /// [ApiMember(Description="Filter by name")] public virtual string NameFilter { get; set; } /// ///The IDs of the parent customers you want to filter by /// [ApiMember(Description="The IDs of the parent customers you want to filter by")] public virtual List ParentCustomerIds { get; set; } /// ///If you want a shall parent customer filter (e.g. no deep children) /// [ApiMember(Description="If you want a shall parent customer filter (e.g. no deep children)")] public virtual bool ShallowParent { get; set; } /// ///The list of tag IDs to filter by (must contain all) /// [ApiMember(Description="The list of tag IDs to filter by (must contain all)")] public virtual List TagIds { get; set; } } } namespace Voice.Api.Flows.Data { public partial class Struct : Dictionary { } public partial class Value { public virtual bool? BoolValue { get; set; } public virtual string StringValue { get; set; } public virtual double? NumberValue { get; set; } public virtual List ListValue { get; set; } public virtual Struct StructValue { get; set; } } } namespace Voice.Api.Integrations { public partial class EntityIntegrationData : Dictionary { } public partial class IntegrationData { public virtual string ThirdPartyId { get; set; } } } namespace Voice.Api.Scheduling { public partial class Schedule { public virtual string TimeZoneId { get; set; } public virtual bool Inherit { get; set; } public virtual bool ForceClosed { get; set; } public virtual List Rules { get; set; } public virtual string DefaultState { get; set; } } } namespace Voice.Api.Settings { public partial class Tag { public virtual string Id { get; set; } public virtual string Name { get; set; } public virtual TagColors Color { get; set; } } public enum TagColors { Magenta, Red, Volcano, Orange, Gold, Lime, Green, Cyan, Blue, GeekBlue, Purple, } }