(* Options: Date: 2024-11-21 13:17:03 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: CustomerQuery.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Db open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.IO [] type BaseModel() = class end [] type UserAccessKeys() = inherit BaseModel() [] member val CompanyId:Guid = new Guid() with get,set [] member val AccessKeyTypeId:Int32 = new Int32() with get,set [] member val Value:String = null with get,set [] member val CustomerId:Guid = new Guid() with get,set member val Description:String = null with get,set [] member val Id:Guid = new Guid() with get,set [] type CustomFieldDataResponse() = member val Id:Int32 = new Int32() with get,set member val Column:String = null with get,set member val Name:String = null with get,set member val Description:String = null with get,set member val Value:String = null with get,set /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [] member val DataType:String = null with get,set [] type Customer() = inherit BaseModel() member val IdentityId:Int32 = new Int32() with get,set member val Id:Guid = new Guid() with get,set [] member val CustomerId:Guid = new Guid() with get,set [] member val AccessKeys:IList = null with get,set member val Email:String = null with get,set [] member val ExternalReferences:IList = null with get,set [] member val Company:Company = null with get,set [] member val CustomFieldsConfig:IList = null with get,set [] member val CustomFieldsData:IList = null with get,set [] member val Comments:IList = null with get,set [] member val RebateCodes:IList = null with get,set member val Firstname:String = null with get,set [] member val ImageUrl:String = null with get,set [] member val Active:Boolean = new Boolean() with get,set member val FacebookUsername:String = null with get,set [] member val Updated:DateTime = new DateTime() with get,set [] member val Created:DateTime = new DateTime() with get,set member val IpAddress:String = null with get,set member val ModifiedDate:Nullable = new Nullable() with get,set member val TextField1:String = null with get,set member val TextField2:String = null with get,set member val TextField3:String = null with get,set member val TextField4:String = null with get,set member val TextField5:String = null with get,set member val TextField6:String = null with get,set member val TextField7:String = null with get,set member val TextField8:String = null with get,set member val TextField9:String = null with get,set member val TextField10:String = null with get,set member val TextField11:String = null with get,set member val TextField12:String = null with get,set member val TextField13:String = null with get,set member val TextField14:String = null with get,set member val TextField15:String = null with get,set member val TextField16:String = null with get,set member val TextField17:String = null with get,set member val TextField18:String = null with get,set member val TextField19:String = null with get,set member val TextField20:String = null with get,set member val UserId:Guid = new Guid() with get,set member val Lastname:String = null with get,set member val Phone:String = null with get,set member val CorporateIdentityNumber:String = null with get,set member val InvoiceAddress1:String = null with get,set member val InvoiceAddress2:String = null with get,set member val InvoiceCity:String = null with get,set member val InvoicePostalCode:String = null with get,set member val InvoiceCountryCode:String = null with get,set [] member val CompanyId:Guid = new Guid() with get,set member val SubscribedToNewsletter:Boolean = new Boolean() with get,set [] type InvoiceAddress() = member val CorporateIdentityNumber:String = null with get,set member val InvoiceAddress1:String = null with get,set member val InvoiceAddress2:String = null with get,set member val InvoiceCity:String = null with get,set member val InvoicePostalCode:String = null with get,set member val InvoiceCountryCode:String = null with get,set [] type CustomFieldValueResponse() = member val Value:String = null with get,set [] type CustomFieldConfigData() = /// ///Custom field id /// [] member val Id:Int32 = new Int32() with get,set /// ///Configuration name. Example: 'Number of persons'. /// [] member val Name:String = null with get,set /// ///Custom field description. Example: 'For how many persons is this booking?' /// [] member val Description:String = null with get,set /// ///Field width. Example: 20 for 20px /// [] member val Width:Nullable = new Nullable() with get,set /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [] member val DataType:String = null with get,set /// ///Default value of the field. Example: '3' /// [] member val DefaultValue:String = null with get,set /// ///Determines if the field is required to have a value or not /// [] member val IsMandatory:Boolean = new Boolean() with get,set /// ///Error message shown to the user if the field data is required but not entered /// [] member val MandatoryErrorMessage:String = null with get,set /// ///Max lenght of the field /// [] member val MaxLength:Int32 = new Int32() with get,set /// ///If the field should have multiple lines /// [] member val MultipleLineText:Boolean = new Boolean() with get,set /// ///Regular expression used for validation of the field /// [] member val RegEx:String = null with get,set /// ///Error message shown if the regular expression validation failed /// [] member val RegExErrorMessage:String = null with get,set /// ///The values to select from if Datatype is DropDown for this custom field /// [] member val Values:ResizeArray = new ResizeArray() with get,set [] type Customer() = member val City:String = null with get,set member val CountryCode:String = null with get,set member val IdentityNumber:String = null with get,set member val Email:String = null with get,set member val FirstName:String = null with get,set member val LastName:String = null with get,set member val Phone:String = null with get,set member val PostalCode:String = null with get,set member val Street:String = null with get,set member val Reference:String = null with get,set member val Type:CustomerType = new CustomerType() with get,set [] type CustomerCommentsResponse() = member val Id:Int32 = new Int32() with get,set member val CustomerId:Guid = new Guid() with get,set member val Comments:String = null with get,set member val Updated:DateTime = new DateTime() with get,set member val Created:DateTime = new DateTime() with get,set member val ImageUrl:Uri = null with get,set [] type CustomerQueryResponse() = member val Id:Guid = new Guid() with get,set member val Firstname:String = null with get,set member val Lastname:String = null with get,set member val Email:String = null with get,set member val Phone:String = null with get,set member val ImageUrl:String = null with get,set member val CustomFields:ResizeArray = new ResizeArray() with get,set member val CustomFieldValues:ResizeArray = new ResizeArray() with get,set member val Comments:ResizeArray = new ResizeArray() with get,set member val AccessKeys:ResizeArray = new ResizeArray() with get,set member val Updated:DateTime = new DateTime() with get,set member val Created:DateTime = new DateTime() with get,set member val ResponseStatus:Object = null with get,set member val SubscribedToNewsletter:Boolean = new Boolean() with get,set member val InvoiceAddress:InvoiceAddress = null with get,set [] [] [] [] type CustomerQuery() = inherit QueryDb() interface IReturn> /// ///Enter the company and id you want to see the information for a customer, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Enter the customer id you want to see the information for a customer. Only admins are allowed to see all customers on their company, users can only see their own customer info. /// [] member val CustomerId:Nullable = new Nullable() with get,set /// ///Enter the user id you want to see the information for a customer. Only admins are allowed to see all customers on their company, users can only see their own customer info. User Id is the userprofile /// [] member val UserId:Nullable = new Nullable() with get,set /// ///Will search by any customer name,phone or email that contains the searchstring provided. /// [] member val Search:String = null with get,set /// ///If you want to filter on visible customers. /// [] member val Visible:Nullable = new Nullable() with get,set /// ///If you want to include the connected custom fields /// [] member val IncludeCustomFieldValues:Boolean = new Boolean() with get,set /// ///If you want to include the connected custom fields /// [] member val IncludeCustomFields:Boolean = new Boolean() with get,set /// ///If you want to include the comments on the customer /// [] member val IncludeComments:Boolean = new Boolean() with get,set /// ///If you want to include the accesskeys /// [] member val IncludeAccessKeys:Boolean = new Boolean() with get,set /// ///If you want to include invoice address /// [] member val IncludeInvoiceAddress:Boolean = new Boolean() with get,set