Update Postman collection
This commit is contained in:
@@ -16,7 +16,6 @@ public class AdoptionDTO {
|
||||
private String createdAt;
|
||||
private String updatedAt;
|
||||
|
||||
// Constructor for create/update requests
|
||||
public AdoptionDTO(Long petId, Long customerId, String adoptionDate, String adoptionStatus) {
|
||||
this(petId, customerId, null, adoptionDate, adoptionStatus);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
public class AppointmentDTO {
|
||||
// Response fields (from server)
|
||||
|
||||
private Long appointmentId;
|
||||
private Long customerId;
|
||||
private String customerName;
|
||||
@@ -22,8 +22,6 @@ public class AppointmentDTO {
|
||||
private String createdAt;
|
||||
private String updatedAt;
|
||||
|
||||
// Constructor for CREATE/UPDATE request body
|
||||
// Matches AppointmentRequest exactly
|
||||
public AppointmentDTO(Long customerId, Long storeId, Long serviceId,
|
||||
String appointmentDate, String appointmentTime,
|
||||
String appointmentStatus, List<Long> petIds) {
|
||||
@@ -43,7 +41,6 @@ public class AppointmentDTO {
|
||||
this.petIds = petIds;
|
||||
}
|
||||
|
||||
// Getters
|
||||
public Long getAppointmentId() {
|
||||
return appointmentId;
|
||||
}
|
||||
@@ -108,7 +105,6 @@ public class AppointmentDTO {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
// Convenience getters for adapter/list display
|
||||
public String getPetName() {
|
||||
return (petNames != null && !petNames.isEmpty()) ? petNames.get(0) : "";
|
||||
}
|
||||
@@ -121,7 +117,6 @@ public class AppointmentDTO {
|
||||
return getPetID();
|
||||
}
|
||||
|
||||
// Keep old name so adapter doesn't break
|
||||
public String getServiceType() {
|
||||
return serviceName;
|
||||
}
|
||||
@@ -130,7 +125,6 @@ public class AppointmentDTO {
|
||||
return serviceId;
|
||||
}
|
||||
|
||||
// Status alias
|
||||
public String getStatus() {
|
||||
return appointmentStatus;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user