/* Options: Date: 2025-09-14 03:18:21 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: AddFavorite.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/users/favorite", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") public class AddFavorite : IReturn, Codable { public typealias Return = UserFavorites /** * Id of the company */ // @ApiMember(Description="Id of the company", IsRequired=true, ParameterType="path") public var companyId:String? required public init(){} } public class UserFavorites : Codable { public var companyId:String? public var company:CompanyQueryResponse? required public init(){} } public class CompanyQueryResponse : Codable { public var id:String? public var name:String? /** * The organisation number will only be visible if you are the owner of the company. */ // @ApiMember(DataType="string", Description="The organisation number will only be visible if you are the owner of the company.") public var organisationNumber:String? /** * What type of company. If it's used for personal use or as a company. */ // @ApiMember(DataType="int", Description="What type of company. If it's used for personal use or as a company.") public var typeId:Int? public var details:String? public var categoryId:Int? public var category:String? public var logoType:Uri? public var coverImage:Uri? public var street1:String? public var street2:String? public var zipCode:String? public var city:String? public var countryId:String? public var longitude:String? public var latitude:String? public var distance:Double? public var phone:String? public var email:String? public var homepage:String? public var sitePath:String? public var active:Bool? public var codeLockSystem:CodeLockSystemType? public var isFreeAccount:Bool? /** * Will show when the company was updated, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the company was updated, note it will only be shown if your logged in as admin for the company.") public var updated:Date? /** * Will show when the company was created, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the company was created, note it will only be shown if your logged in as admin for the company.") public var created:Date? public var statusId:Int? /** * If the company is marked as favourite for the logged in user */ // @ApiMember(DataType="boolean", Description="If the company is marked as favourite for the logged in user") public var isFavorite:Bool? public var bookingAgreements:String? public var bookingSettings:CompanyBookingSettings? public var systemSettings:CompanySystemSettings? public var widgetSettings:CompanyWidgetSettings? public var homepageSettings:HomepageSettingsResponse? public var ratingSummary:CompanyRatingSummary? public var reviews:[RatingReviewResponse]? public var customerCustomFields:[CustomFieldConfigData]? public var responseStatus:ResponseStatus? required public init(){} }