/* Options: Date: 2024-11-21 11:28:02 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteServiceResourceTypes.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/services/{Id}/resourcetypes/{ResourceTypeId}", Verbs="DELETE") @ValidateRequest(Validator="IsAuthenticated") open class DeleteServiceResourceTypes : 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.") var CompanyId:UUID? = null /** * Id of the service */ @ApiMember(Description="Id of the service", IsRequired=true, ParameterType="path") var Id:Int? = null /** * Ids of Resource Type of the service to remove */ @ApiMember(Description="Ids of Resource Type of the service to remove", IsRequired=true, ParameterType="path") var ResourceTypeId:Int? = null companion object { private val responseType = ServiceQueryResponse::class.java } override fun getResponseType(): Any? = DeleteServiceResourceTypes.responseType } open class ServiceQueryResponse { var Id:Int? = null var Name:String? = null var Description:String? = null var ImageUrl:Uri? = null var TotalSpots:Int? = null /** * If this setting is turned on the remaining spots (if Totalspots > 1) is locked from be booked by another customer. */ @ApiMember(Description="If this setting is turned on the remaining spots (if Totalspots > 1) is locked from be booked by another customer.") var LockSpotsToBooking:Boolean? = null var MinNumberOfSpotsPerBooking:Int? = null var MaxNumberOfSpotsPerBooking:Int? = null var MinNumberOfResourcesToBook:Int? = null var MaxNumberOfResourcesToBook:Int? = null var UnbookBeforeDays:Int? = null var UnbookBeforeHours:Int? = null var UnbookBeforeMinutes:Int? = null /** * What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2 */ @ApiMember(Description="What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2") var ScheduleType:ScheduleType? = null /** * What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2 */ @ApiMember(Description="What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2") var ScheduleTypeId:Int? = null var BookBeforeDays:Int? = null var BookBeforeHours:Int? = null var BookBeforeMinutes:Int? = null var Group:String? = null var EnableBookingQueue:Boolean? = null var EnableCodeLockSync:Boolean? = null var EnableCustomerManualPayment:Boolean? = null var SortOrder:Int? = null var Active:Boolean? = null var IsGroupBooking:Boolean? = null var GroupBooking:GroupBookingSettings? = null var MultipleResource:MultipleResourceSettings? = null var IsPaymentEnabled:Boolean? = null /** * Maximum numbers of minutes the booking payment must be completed before automatically unbooked */ @ApiMember(Description="Maximum numbers of minutes the booking payment must be completed before automatically unbooked") var MaxPaymentTime:Int? = null /** * If the booking should be either 1 = Booked) or 3 = Reserved. Default is 1 = Booked. */ @ApiMember(Description="If the booking should be either 1 = Booked) or 3 = Reserved. Default is 1 = Booked.") var BookingStatusId:Int? = null var OnlyVisibleByAdmin:Boolean? = null var LengthInMinutes:Int? = null var DurationTypeId:Int? = null var Duration:Int? = null var MinDuration:Int? = null var MaxDuration:Int? = null var DurationInterval:Int? = null var PauseAfterBooking:Int? = null var CustomFields:ArrayList = ArrayList() var CustomFieldValues:ArrayList = ArrayList() var BookingCustomFields:ArrayList = ArrayList() var CustomerCustomFields:ArrayList = ArrayList() /** * The booking status options to choose from */ @ApiMember(Description="The booking status options to choose from") var BookingStatusOptions:ArrayList = ArrayList() var Prices:ArrayList = ArrayList() var Schedules:ServiceSchedules? = null var RatingSummary:CompanyRatingSummary? = null var Reviews:ArrayList = ArrayList() var ResourceTypes:ArrayList = ArrayList() var ResponseStatus:ResponseStatus? = null var PriceViewTypeId:Int? = null } open interface ICompany { var CompanyId:UUID? } enum class BookingStatusEnum(val value:Int) { Booked(1), Unbooked(2), Reserved(3), Canceled(4), AwaitingPayment(5), AwaitingPaymentNoTimeLimit(6), Payed(7), AwaitingPaymentRequestFromAdmin(8), AwaitingPaymentFromProvider(9), Invoiced(10), } open interface IInterval { var From:Date? var To:Date? } open class CustomFieldConfig : BaseModel() { @Ignore() var Values:ArrayList = ArrayList() var CustomField:CustomField? = null @Ignore() var RegEx:RegEx? = null @Ignore() var Services:ArrayList = ArrayList() var CustomFieldServiceRelation:ArrayList = ArrayList() @Required() var CompanyId:UUID? = null var Id:Int? = null var GroupId:Int? = null @Required() var FieldId:Int? = null @Required() var IconId:Int? = null var RegExId:Int? = null @Required() var Name:String? = null @Required() var Description:String? = null @Required() var Datatype:String? = null @Required() var MaxLength:Int? = null @Required() var IsPublic:Boolean? = null @Required() var IsHidden:Boolean? = null @Required() var IsMandatory:Boolean? = null var DefaultValue:String? = null var RegExErrorMessage:String? = null var MandatoryErrorMessage:String? = null var Width:Int? = null @Required() var MultipleLineText:Boolean? = null var ModifiedDate:Date? = null } open class RatingReviewResponse { /** * The title for the review */ @ApiMember(Description="The title for the review") var Title:String? = null /** * The description for the review */ @ApiMember(Description="The description for the review") var Description:String? = null /** * The rating score */ @ApiMember(Description="The rating score") var RatingScore:Int? = null /** * The review author */ @ApiMember(Description="The review author") var Author:String? = null /** * The created date */ @ApiMember(Description="The created date") var Created:Date? = null /** * The review answer from the company */ @ApiMember(Description="The review answer from the company") var ReviewAnswer:String? = null } open class Resource : BaseModel(), ICustomFieldTable, IBaseModelCreated, IBaseModelUpdated { @Ignore() var Priority:Int? = null @Ignore() var Schedules:IList? = null @Ignore() var Exceptions:IList? = null @Ignore() var Bookings:IList? = null @Ignore() var CustomFieldsConfig:IList? = null @Ignore() var CustomFieldsData:IList? = null @Required() var CompanyId:UUID? = null var Id:Int? = null @Required() var Name:String? = null @Required() var Active:Boolean? = null var Description:String? = null var ImageUrl:String? = null @Required() var UpdatedDate:Date? = null @Required() var CreatedDate:Date? = null @Required() var Color:String? = null var Email:String? = null var MobilePhone:String? = null var EmailNotification:Boolean? = null var SMSNotification:Boolean? = null @Required() var SendSMSReminder:Boolean? = null @Required() var SendEmailReminder:Boolean? = null var ModifiedDate:Date? = null var AccessGroup:String? = null var TextField1:String? = null var TextField2:String? = null var TextField3:String? = null var TextField4:String? = null var TextField5:String? = null var TextField6:String? = null var TextField7:String? = null var TextField8:String? = null var TextField9:String? = null var TextField10:String? = null var TextField11:String? = null var TextField12:String? = null var TextField13:String? = null var TextField14:String? = null var TextField15:String? = null var TextField16:String? = null var TextField17:String? = null var TextField18:String? = null var TextField19:String? = null var TextField20:String? = null } open class GroupBookingSettings { var Active:Boolean? = null var Min:Int? = null var Max:Int? = null } open class MultipleResourceSettings { var Active:Boolean? = null var Min:Int? = null var Max:Int? = null } open class CustomFieldConfigData { /** * Custom field id */ @ApiMember(Description="Custom field id") var Id:Int? = null /** * Configuration name. Example: 'Number of persons'. */ @ApiMember(Description="Configuration name. Example: 'Number of persons'.") var Name:String? = null /** * Custom field description. Example: 'For how many persons is this booking?' */ @ApiMember(Description="Custom field description. Example: 'For how many persons is this booking?'") var Description:String? = null /** * Field width. Example: 20 for 20px */ @ApiMember(Description="Field width. Example: 20 for 20px") var Width:Int? = null /** * Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' */ @ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'") var DataType:String? = null /** * Default value of the field. Example: '3' */ @ApiMember(Description="Default value of the field. Example: '3'") var DefaultValue:String? = null /** * 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") var IsMandatory:Boolean? = null /** * 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") var MandatoryErrorMessage:String? = null /** * Max lenght of the field */ @ApiMember(Description="Max lenght of the field") var MaxLength:Int? = null /** * If the field should have multiple lines */ @ApiMember(Description="If the field should have multiple lines") var MultipleLineText:Boolean? = null /** * Regular expression used for validation of the field */ @ApiMember(Description="Regular expression used for validation of the field") var RegEx:String? = null /** * Error message shown if the regular expression validation failed */ @ApiMember(Description="Error message shown if the regular expression validation failed") var RegExErrorMessage:String? = null /** * 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") var Values:ArrayList = ArrayList() } open class CustomFieldDataResponse { var Id:Int? = null var Column:String? = null var Name:String? = null var Description:String? = null var Value:String? = null /** * Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' */ @ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'") var DataType:String? = null } open class BookedCustomer { var Id:UUID? = null var Firstname:String? = null var Lastname:String? = null var Email:String? = null var Phone:String? = null var FacebookUserName:String? = null var ImageUrl:String? = null var CorporateIdentityNumber:String? = null var InvoiceAddress1:String? = null var InvoiceAddress2:String? = null var InvoiceCity:String? = null var InvoicePostalCode:String? = null var InvoiceCountryCode:String? = null } open class CompanyRatingSummary { /** * The average rating score */ @ApiMember(Description="The average rating score") var AverageScore:Double? = null /** * The number of ratings of score 1 */ @ApiMember(Description="The number of ratings of score 1") var RatingScore1Count:Int? = null /** * The number of ratings of score 2 */ @ApiMember(Description="The number of ratings of score 2") var RatingScore2Count:Int? = null /** * The number of ratings of score 3 */ @ApiMember(Description="The number of ratings of score 3") var RatingScore3Count:Int? = null /** * The number of ratings of score 4 */ @ApiMember(Description="The number of ratings of score 4") var RaingScore4Count:Int? = null /** * The number of ratings of score 5 */ @ApiMember(Description="The number of ratings of score 5") var RatingScore5Count:Int? = null /** * The number of ratings */ @ApiMember(Description="The number of ratings") var Count:Int? = null } enum class ScheduleType { NotDefined, RecurringSchedule, DateSchedule, } open class BookingStatusOptionsResponse { var Id:Int? = null var Name:String? = null var Description:String? = null } open class ServiceSchedules { var ScheduleType:ScheduleType? = null var RecurringSchedules:ArrayList = ArrayList() var DateSchedules:ArrayList = ArrayList() } open class ServiceResourceTypeResponse { /** * The resourcetype id */ @ApiMember(Description="The resourcetype id") var Id:Int? = null /** * The resourcetype is selectable by customer */ @ApiMember(Description="The resourcetype is selectable by customer") var SelectableByUser:Boolean? = null /** * The resourcetype name */ @ApiMember(Description="The resourcetype name") var Name:String? = null /** * The resourcetype description */ @ApiMember(Description="The resourcetype description") var Description:String? = null /** * The resources in the resourcetype. Only shows active resources if not admin. */ @ApiMember(Description="The resources in the resourcetype. Only shows active resources if not admin.") var Resources:ArrayList = ArrayList() } open class BaseModel { } open interface IBaseModelCreated { var CreatedDate:Date? } open interface IBaseModelUpdated { var UpdatedDate:Date? } open interface ICustomFieldTable { var CustomFieldsConfig:IList? var CustomFieldsData:IList? var TextField1:String? var TextField2:String? var TextField3:String? var TextField4:String? var TextField5:String? var TextField6:String? var TextField7:String? var TextField8:String? var TextField9:String? var TextField10:String? var TextField11:String? var TextField12:String? var TextField13:String? var TextField14:String? var TextField15:String? var TextField16:String? var TextField17:String? var TextField18:String? var TextField19:String? var TextField20:String? } open class CustomFieldValue : BaseModel() { @Required() var CompanyId:UUID? = null var Id:Int? = null @Required() var Value:String? = null @Required() var Active:Boolean? = null var SortOrder:Short? = null var ModifiedDate:Date? = null } open class CustomField : BaseModel() { @Required() var Table:String? = null @Required() var Column:String? = null @Required() var DataType:String? = null @Required() var Description:String? = null @Required() var Active:Boolean? = null var ModifiedDate:Date? = null var Id:Int? = null } open class RegEx : BaseModel() { @Required() var Name:String? = null @Required() var Description:String? = null @Required() var RegExCode:String? = null var ErrorMessage:String? = null var ModifiedDate:Date? = null var Id:Int? = null } open class CustomFieldServiceRelation : BaseModel() { @Required() var CompanyId:UUID? = null var Id:Int? = null @Required() var CustomFieldConfigId:Int? = null @Required() var ServiceId:Int? = null var ModifiedDate:Date? = null } open interface ISchedule { var Resources:IList? var Type:ScheduleType? var Active:Boolean? var IsResourceSpecific:Boolean? } open interface ITimeException : IInterval { var Id:Int? var ReasonText:String? var IsBlock:Boolean? var ReasonTextPublic:String? var IsRecurring:Boolean? var ResourceIds:ArrayList? } open interface IBookedTime : IInterval { var Id:Int? var ServiceId:Int? var BookedSpots:Int? var TotalSpots:Int? var PauseAfterInMinutes:Int? var Status:BookingStatusEnum? var StatusId:Int? var Customer:BookedCustomer? } open class CustomFieldValueResponse { var Value:String? = null } open class ServiceResourceTypeResource { /** * The resource id */ @ApiMember(Description="The resource id") var Id:Int? = null /** * The resource name */ @ApiMember(Description="The resource name") var Name:String? = null /** * The resource description */ @ApiMember(Description="The resource description") var Description:String? = null /** * The resource email */ @ApiMember(Description="The resource email") var Email:String? = null /** * The resource phone */ @ApiMember(Description="The resource phone") var Phone:String? = null /** * The resource color */ @ApiMember(Description="The resource color") var Color:String? = null /** * The resource image */ @ApiMember(Description="The resource image") var ImageUrl:Uri? = null /** * The priority of the resource */ @ApiMember(Description="The priority of the resource") var Priority:Int? = null /** * If the resource want to receive email notifications */ @ApiMember(Description="If the resource want to receive email notifications") var EmailNotification:Boolean? = null /** * If the resource want to receive sms notifications */ @ApiMember(Description="If the resource want to receive sms notifications") var SMSNotification:Boolean? = null /** * If the resource want to receive email reminders */ @ApiMember(Description="If the resource want to receive email reminders") var EmailReminder:Boolean? = null /** * If the resource want to receive sms reminders */ @ApiMember(Description="If the resource want to receive sms reminders") var SMSReminder:Boolean? = null } open class ServicePriceResponse { /** * The company id */ @ApiMember(Description="The company id") var CompanyId:UUID? = null /** * The price id */ @ApiMember(Description="The price id") var Id:Int? = null /** * The service id */ @ApiMember(Description="The service id") var ServiceId:Int? = null /** * The price */ @ApiMember(Description="The price") var Price:Double? = null /** * The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day */ @ApiMember(Description="The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day") var CalculationTypeId:Int? = null /** * The price currency */ @ApiMember(Description="The price currency") var CurrencyId:String? = null /** * The price sign */ @ApiMember(Description="The price sign") var PriceSign:String? = null /** * The price VAT in percent */ @ApiMember(Description="The price VAT in percent") var VAT:BigDecimal? = null /** * The price category if price has a category */ @ApiMember(Description="The price category if price has a category") var Category:String? = null /** * The price text to display */ @ApiMember(Description="The price text to display") var PriceText:String? = null /** * The valid from date for the price. */ @ApiMember(Description="The valid from date for the price.") var From:Date? = null /** * The valid to date for the price. */ @ApiMember(Description="The valid to date for the price.") var To:Date? = null /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") var DaysOfWeek:ArrayList = ArrayList() /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") var FromTime:TimeSpan? = null /** * If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. */ @ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.") var ToTime:TimeSpan? = null var Service:ServiceInfoResponse? = null /** * If the price is only valid for a specific time span */ @ApiMember(Description="If the price is only valid for a specific time span") var IsTimeSpecific:Boolean? = null /** * If the price is only valid for specific days of week */ @ApiMember(Description="If the price is only valid for specific days of week") var IsDaysOfWeekSpecific:Boolean? = null }