first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
namespace Fitness_core_BE.DTOs.Booking
|
||||
{
|
||||
public class BookingDto
|
||||
{
|
||||
public Guid BookingId { get; set; }
|
||||
public Guid FacilitySessionId { get; set; }
|
||||
public string? FacilityName { get; set; }
|
||||
public DateTime? SessionStartTime { get; set; }
|
||||
public DateTime? SessionEndTime { get; set; }
|
||||
|
||||
public bool IsGuest { get; set; }
|
||||
public Guid? CustomerId { get; set; }
|
||||
public string? GuestName { get; set; }
|
||||
public string? GuestPhone { get; set; }
|
||||
|
||||
/// <summary>Only populated in the response right after booking creation -- the
|
||||
/// guest's receipt. Never returned by list/lookup endpoints afterward.</summary>
|
||||
public string? OtpCode { get; set; }
|
||||
public bool OtpVerified { get; set; }
|
||||
|
||||
public string PaymentStatus { get; set; } = string.Empty;
|
||||
public decimal AmountCharged { get; set; }
|
||||
public string Status { get; set; } = string.Empty;
|
||||
public DateTime BookedAt { get; set; }
|
||||
public DateTime? CheckedInAt { get; set; }
|
||||
|
||||
/// <summary>A public, unauthenticated link to this booking's confirmation page --
|
||||
/// copy-paste-and-share receipt. Works for both member and guest bookings.</summary>
|
||||
public string? ShareUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Fitness_core_BE.DTOs.Booking
|
||||
{
|
||||
public class CreateMemberBookingRequest
|
||||
{
|
||||
[Required]
|
||||
public Guid FacilitySessionId { get; set; }
|
||||
}
|
||||
|
||||
public class CreateGuestBookingRequest
|
||||
{
|
||||
[Required]
|
||||
public Guid FacilitySessionId { get; set; }
|
||||
|
||||
[Required]
|
||||
public string GuestName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string GuestPhone { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class MarkGuestBookingPaidRequest
|
||||
{
|
||||
[Required]
|
||||
public Guid BookingId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Range(0.01, double.MaxValue, ErrorMessage = "AmountCharged must be greater than zero")]
|
||||
public decimal AmountCharged { get; set; }
|
||||
}
|
||||
|
||||
public class CheckInBookingRequest
|
||||
{
|
||||
[Required]
|
||||
public string OtpCode { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class CancelBookingRequest
|
||||
{
|
||||
[Required]
|
||||
public Guid BookingId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user