/* Options: Date: 2024-12-03 17:50:46 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: UpdateCustomer.* //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 ServiceStack.Data; using BokaMera.API.ServiceModel.Dtos; using BokaMera.API.ServiceModel.Db; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class UserAccessKeys : BaseModel { [Required] public virtual Guid CompanyId { get; set; } [Required] public virtual int AccessKeyTypeId { get; set; } [Required] public virtual string Value { get; set; } [Required] public virtual Guid CustomerId { get; set; } public virtual string Description { get; set; } [Required] public virtual Guid Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { public partial class AddCustomField { public virtual int Id { get; set; } public virtual string Value { get; set; } } public partial class AddUserAccessKey { public virtual Guid? Id { get; set; } public virtual Guid? CompanyId { get; set; } public virtual int AccessKeyTypeId { get; set; } public virtual string Value { get; set; } public virtual Guid? CustomerId { get; set; } public virtual string Description { get; set; } } public partial class CustomerCommentsResponse { public virtual int Id { get; set; } public virtual Guid CustomerId { get; set; } public virtual string Comments { get; set; } public virtual DateTime Updated { get; set; } public virtual DateTime Created { get; set; } public virtual Uri ImageUrl { get; set; } } public partial class CustomerQueryResponse { public CustomerQueryResponse() { CustomFields = new List{}; CustomFieldValues = new List{}; Comments = new List{}; AccessKeys = new List{}; } public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string Phone { get; set; } public virtual string ImageUrl { get; set; } public virtual List CustomFields { get; set; } public virtual List CustomFieldValues { get; set; } public virtual List Comments { get; set; } public virtual List AccessKeys { get; set; } public virtual DateTime Updated { get; set; } public virtual DateTime Created { get; set; } public virtual Object ResponseStatus { get; set; } public virtual bool SubscribedToNewsletter { get; set; } public virtual InvoiceAddress InvoiceAddress { get; set; } } public partial class CustomFieldConfigData { public CustomFieldConfigData() { Values = new List{}; } /// ///Custom field id /// [ApiMember(Description="Custom field id")] public virtual int Id { get; set; } /// ///Configuration name. Example: 'Number of persons'. /// [ApiMember(Description="Configuration name. Example: 'Number of persons'.")] public virtual string Name { 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; } /// ///Field width. Example: 20 for 20px /// [ApiMember(Description="Field width. Example: 20 for 20px")] public virtual int? Width { 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; } /// ///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; } /// ///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; } } public partial class CustomFieldDataResponse { public virtual int Id { get; set; } public virtual string Column { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string Value { 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; } } public partial class CustomFieldValueResponse { public virtual string Value { get; set; } } public partial class DeleteUserAccessKey { public virtual Guid Id { get; set; } } [Route("/customers/{Id}", "PUT")] [ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400)] [ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class UpdateCustomer : IReturn { public UpdateCustomer() { CustomFields = new List{}; AccessKeys = new List{}; AccessKeysToDelete = new List{}; } /// ///Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used. /// [ApiMember(Description="Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used.", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///customer id /// [ApiMember(Description="customer id", IsRequired=true, ParameterType="path")] public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } /// ///If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated /// [ApiMember(Description="If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated")] public virtual List CustomFields { get; set; } /// ///List of Access Keys /// [ApiMember(Description="List of Access Keys")] public virtual List AccessKeys { get; set; } public virtual List AccessKeysToDelete { get; set; } public virtual bool? SubscribedToNewsletter { get; set; } public virtual InvoiceAddress InvoiceAddress { get; set; } } }