/* Options: Date: 2024-07-03 13:08:30 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //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: True //ExportValueTypes: False IncludeTypes: DeleteCustomField.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class CustomFieldLookupResponse { public virtual int? Id { get; set; } public virtual bool? Active { get; set; } public virtual int? SortOrder { get; set; } public virtual string Value { get; set; } } public partial class CustomFieldQueryResponse { public CustomFieldQueryResponse() { Values = new List{}; Services = new List{}; } /// ///Custom field id /// [ApiMember(Description="Custom field id")] public virtual int Id { get; set; } /// ///Reference to company that owns the custom field configuration /// [ApiMember(Description="Reference to company that owns the custom field configuration")] public virtual Guid CompanyId { get; set; } /// ///Group id /// [ApiMember(Description="Group id")] public virtual int? GroupId { get; set; } /// ///Field id /// [ApiMember(Description="Field id")] public virtual int FieldId { get; set; } /// ///Configuration name. Example: 'Number of persons'. /// [ApiMember(Description="Configuration name. Example: 'Number of persons'.")] public virtual string Name { get; set; } /// ///Field width. Example: 20 /// [ApiMember(Description="Field width. Example: 20")] public virtual int Width { get; set; } /// ///Column in database where to store the information. Example: 'TextField1' /// [ApiMember(Description="Column in database where to store the information. Example: 'TextField1'")] public virtual string Column { get; set; } /// ///Custom field description. Example: 'For how many persons is this booking?' /// [ApiMember(Description="Custom field description. Example: 'For how many persons is this booking?'")] public virtual string Description { get; set; } /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")] public virtual string DataType { get; set; } /// ///Default value of the field. Example: '3' /// [ApiMember(Description="Default value of the field. Example: '3'")] public virtual string DefaultValue { get; set; } /// ///Determines if the field is required to have a value or not /// [ApiMember(Description="Determines if the field is required to have a value or not")] public virtual bool IsMandatory { get; set; } /// ///Error message shown to the user if the field data is required but not entered /// [ApiMember(Description="Error message shown to the user if the field data is required but not entered")] public virtual string MandatoryErrorMessage { get; set; } /// ///Max lenght of the field /// [ApiMember(Description="Max lenght of the field")] public virtual int MaxLength { get; set; } /// ///If the field should have multiple lines /// [ApiMember(Description="If the field should have multiple lines")] public virtual bool MultipleLineText { get; set; } /// ///Regular expression used for validation of the field /// [ApiMember(Description="Regular expression used for validation of the field")] public virtual string RegEx { get; set; } /// ///Regular expression id for validation of the field /// [ApiMember(Description="Regular expression id for validation of the field")] public virtual int? RegExId { get; set; } /// ///Error message shown if the regular expression validation failed /// [ApiMember(Description="Error message shown if the regular expression validation failed")] public virtual string RegExErrorMessage { get; set; } /// ///If the field is visible to the customer /// [ApiMember(Description="If the field is visible to the customer")] public virtual bool IsPublic { get; set; } /// ///If the field should be hidden in lists /// [ApiMember(Description="If the field should be hidden in lists")] public virtual bool IsHidden { get; set; } /// ///Table to which the field belongs /// [ApiMember(Description="Table to which the field belongs")] public virtual string Table { get; set; } /// ///The values to select from if Datatype is DropDown for this custom field /// [ApiMember(Description="The values to select from if Datatype is DropDown for this custom field")] public virtual List Values { get; set; } /// ///The services that is connected to the custom field /// [ApiMember(Description="The services that is connected to the custom field")] public virtual List Services { get; set; } } public partial class CustomFieldServices { public virtual int Id { get; set; } /// ///Name of the service /// [ApiMember(Description="Name of the service")] public virtual string Name { get; set; } /// ///The image url of the service /// [ApiMember(Description="The image url of the service")] public virtual Uri ImageUrl { get; set; } } [Route("/customfields/{Id}", "DELETE")] [ValidateRequest("IsAuthenticated")] public partial class DeleteCustomField : IReturn, ICompany { /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")] public virtual Guid? CompanyId { get; set; } /// ///Id of the custom field to delete /// [ApiMember(Description="Id of the custom field to delete", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }