/* Options: Date: 2025-09-15 16:50:40 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateBookings.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/bookings/repeat", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) open class CreateBookings : CreateBookingBase(), IReturn { /** * Set the dates you want to book and it's quantities. It's an array of dates and quantities. */ @ApiMember(DataType="List", Description="Set the dates you want to book and it's quantities. It's an array of dates and quantities.", IsRequired=true) open var DatesToRepeat:ArrayList = ArrayList() companion object { private val responseType = CreateBookingsResponse::class.java } override fun getResponseType(): Any? = CreateBookings.responseType } open class CreateBookingsResponse { /** * The datetime you want to end the booking. */ @ApiMember(Description="The datetime you want to end the booking.", IsRequired=true) open var Created:ArrayList = ArrayList() /** * The dates that didn't work to book. */ @ApiMember(Description="The dates that didn't work to book.", IsRequired=true) open var Failed:ArrayList = ArrayList() open var ResponseStatus:ResponseStatus? = null } open class AddCustomField { open var Id:Int? = null open var Value:String? = null } enum class PaymentOptions { DefaultSetting, BookWithoutPayment, BookWithPaymentMessageToCustomer, BookWithManualPayment, } open class DatesToRepeat : IInterval { /** * Booking start */ @ApiMember(Description="Booking start") override var From:Date? = null /** * Booking end */ @ApiMember(Description="Booking end") override var To:Date? = null /** * Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot. */ @ApiMember(Description="Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.") open var Quantities:ArrayList? = null } open class CustomerToHandle { open var CustomerId:UUID? = null open var Firstname:String? = null open var Lastname:String? = null open var Email:String? = null open var Phone:String? = null open var SubscribedToNewsletter:Boolean? = null } open class InvoiceAddressToHandle { open var CorporateIdentityNumber:String? = null open var InvoiceAddress1:String? = null open var InvoiceAddress2:String? = null open var InvoiceCity:String? = null open var InvoicePostalCode:String? = null open var InvoiceCountryCode:String? = null } open class ResourceToBook { open var ResourceTypeId:Int? = null open var ResourceId:Int? = null } open class CreateBookingBase { /** * 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.") open var CompanyId:UUID? = null /** * If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank. */ @ApiMember(Description="If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank.") open var CustomerId:UUID? = null /** * If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here. */ @ApiMember(Description="If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here.") open var PinCode:String? = null /** * If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. */ @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ") open var Customer:CustomerToHandle? = null /** * If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. */ @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ") open var InvoiceAddress:InvoiceAddressToHandle? = null /** * The service to be booked */ @ApiMember(Description="The service to be booked", IsRequired=true) open var ServiceId:Int? = null /** * If you want to add comments to a booking you can add them here, this comments are never shared with the customer */ @ApiMember(Description="If you want to add comments to a booking you can add them here, this comments are never shared with the customer") open var BookedComments:String? = null /** * If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation */ @ApiMember(Description="If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation") open var CommentsToCustomer:String? = null open var Resources:ArrayList? = null /** * Rebate codes applied to booking */ @ApiMember(Description="Rebate codes applied to booking") open var RebateCodeIds:ArrayList? = null /** * If you want to send Email reminder */ @ApiMember(Description="If you want to send Email reminder") open var SendEmailReminder:Boolean? = null /** * If you want to send SMS reminder */ @ApiMember(Description="If you want to send SMS reminder") open var SendSmsReminder:Boolean? = null /** * If you want to send SMS confirmation */ @ApiMember(Description="If you want to send SMS confirmation") open var SendSmsConfirmation:Boolean? = null /** * Only admins are allowed to not send an email confirmation. Default is true */ @ApiMember(Description="Only admins are allowed to not send an email confirmation. Default is true") open var SendEmailConfirmation:Boolean? = null /** * If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment). */ @ApiMember(Description="If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment).") open var PaymentOption:PaymentOptions? = null /** * If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved */ @ApiMember(Description="If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved") open var CustomFields:ArrayList? = null /** * 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") open var CustomerCustomFields:ArrayList? = null /** * If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators */ @ApiMember(Description="If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators") open var AllowBookingOutsideSchedules:Boolean? = null } interface IInterval { var From:Date? var To:Date? } open class FailedBookings { open var From:Date? = null open var To:Date? = null open var Reason:String? = null /** * Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot. */ @ApiMember(Description="Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.") open var Quantities:ArrayList? = null } open class BookingQueryResponse { open var Id:Int? = null open var CompanyId:UUID? = null open var From:Date? = null open var To:Date? = null open var Status:BookingStatusEnum? = null open var StatusId:Int? = null open var StatusName:String? = null open var StatusInfo:BookingStatusQueryResponse? = null open var SendEmailReminder:Boolean? = null open var SendSmsReminder:Boolean? = null open var SendSmsConfirmation:Boolean? = null open var SendEmailConfirmation:Boolean? = null open var LastTimeToUnBook:Date? = null open var CustomFields:ArrayList? = null open var CustomFieldValues:ArrayList? = null open var BookedResourceTypes:ArrayList? = null open var Company:BookedCompany? = null open var Customer:BookedCustomer? = null open var Quantities:ArrayList? = null open var Service:ServiceInfoResponse? = null open var InvoiceAddress:InvoiceAddressResponse? = null open var PaymentExpiration:Date? = null open var Log:ArrayList? = null open var PaymentLog:ArrayList? = null open var CheckoutLog:ArrayList? = null open var ExternalReference:ArrayList? = null open var ResponseStatus:ResponseStatus? = null open var LengthInMinutes:Int? = null open var BookedBy:String? = null open var BookedComments:String? = null open var UnbookedComments:String? = null open var CommentsToCustomer:String? = null open var CreatedDate:Date? = null open var UpdatedDate:Date? = null open var UnbookedOn:Date? = null open var CancellationCode:String? = null open var RatingCode:String? = null }