/* Options: Date: 2024-12-22 21:12:39 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: DeleteBooking.* //ExcludeTypes: //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.*; public class dtos { /** * Delete a Booking */ @Route(Path="/booking/{Id}", Verbs="DELETE") @ValidateRequest(Validator="HasRole(`Manager`)") public static class DeleteBooking implements IReturnVoid, IDeleteDb { public Integer id = null; public Integer getId() { return id; } public DeleteBooking setId(Integer value) { this.id = value; return this; } } /** * Booking Details */ public static class Booking extends AuditBase { public Integer id = null; public String name = null; public RoomType roomType = null; public Integer roomNumber = null; public Date bookingStartDate = null; public Date bookingEndDate = null; public BigDecimal cost = null; @References(Type=Coupon.class) public String couponId = null; public Coupon discount = null; public String notes = null; public Boolean cancelled = null; public Integer getId() { return id; } public Booking setId(Integer value) { this.id = value; return this; } public String getName() { return name; } public Booking setName(String value) { this.name = value; return this; } public RoomType getRoomType() { return roomType; } public Booking setRoomType(RoomType value) { this.roomType = value; return this; } public Integer getRoomNumber() { return roomNumber; } public Booking setRoomNumber(Integer value) { this.roomNumber = value; return this; } public Date getBookingStartDate() { return bookingStartDate; } public Booking setBookingStartDate(Date value) { this.bookingStartDate = value; return this; } public Date getBookingEndDate() { return bookingEndDate; } public Booking setBookingEndDate(Date value) { this.bookingEndDate = value; return this; } public BigDecimal getCost() { return cost; } public Booking setCost(BigDecimal value) { this.cost = value; return this; } public String getCouponId() { return couponId; } public Booking setCouponId(String value) { this.couponId = value; return this; } public Coupon getDiscount() { return discount; } public Booking setDiscount(Coupon value) { this.discount = value; return this; } public String getNotes() { return notes; } public Booking setNotes(String value) { this.notes = value; return this; } public Boolean isCancelled() { return cancelled; } public Booking setCancelled(Boolean value) { this.cancelled = value; return this; } } }