(* Options: Date: 2024-12-03 18:03:37 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: UpdateCustomer.* //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 [] type AddCustomField() = member val Id:Int32 = new Int32() with get,set member val Value:String = null with get,set [] type AddUserAccessKey() = member val Id:Nullable = new Nullable() with get,set member val CompanyId:Nullable = new Nullable() with get,set member val AccessKeyTypeId:Int32 = new Int32() with get,set member val Value:String = null with get,set member val CustomerId:Nullable = new Nullable() with get,set member val Description:String = null with get,set [] type DeleteUserAccessKey() = member val Id:Guid = new Guid() 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 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 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 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 UpdateCustomer() = interface IReturn /// ///Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used. /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///customer id /// [] 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 Phone:String = null with get,set member val Email:String = null with 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 /// [] member val CustomFields:ResizeArray = new ResizeArray() with get,set /// ///List of Access Keys /// [] member val AccessKeys:ResizeArray = new ResizeArray() with get,set member val AccessKeysToDelete:ResizeArray = new ResizeArray() with get,set member val SubscribedToNewsletter:Nullable = new Nullable() with get,set member val InvoiceAddress:InvoiceAddress = null with get,set