-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into RSWW-103-Transport-Reservation-Rollback---saga
- Loading branch information
Showing
32 changed files
with
543 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...rchitecturovisco/hotelservice/controllers/reservations/DeleteHotelReservationRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.microarchitecturovisco.hotelservice.controllers.reservations; | ||
|
||
import lombok.*; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
@Getter | ||
@Setter | ||
public class DeleteHotelReservationRequest { | ||
private UUID reservationId; | ||
private UUID hotelId; | ||
private List<UUID> roomIds; | ||
} |
16 changes: 16 additions & 0 deletions
16
...microarchitecturovisco/hotelservice/model/cqrs/commands/DeleteRoomReservationCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.microarchitecturovisco.hotelservice.model.cqrs.commands; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@Builder | ||
public class DeleteRoomReservationCommand { | ||
private LocalDateTime commandTimeStamp; | ||
private UUID reservationId; | ||
private UUID roomId; | ||
private UUID hotelId; | ||
} |
30 changes: 30 additions & 0 deletions
30
...chitecturovisco/hotelservice/model/dto/request/CheckHotelAvailabilityQueryRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.microarchitecturovisco.hotelservice.model.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CheckHotelAvailabilityQueryRequestDto implements Serializable { | ||
|
||
private LocalDateTime dateFrom; | ||
private LocalDateTime dateTo; | ||
|
||
private Integer adults; | ||
private Integer childrenUnderThree; | ||
private Integer childrenUnderTen; | ||
private Integer childrenUnderEighteen; | ||
|
||
private UUID hotelId; | ||
|
||
private List<UUID> roomReservationsIds; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ava/org/microarchitecturovisco/hotelservice/model/events/RoomReservationDeletedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.microarchitecturovisco.hotelservice.model.events; | ||
|
||
|
||
import jakarta.persistence.Entity; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import java.util.UUID; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@SuperBuilder | ||
public class RoomReservationDeletedEvent extends HotelEvent { | ||
private UUID idRoomReservation; | ||
private UUID idRoom; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...e/src/main/java/org/microarchitecturovisco/hotelservice/repositories/HotelEventStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package org.microarchitecturovisco.hotelservice.repositories; | ||
|
||
import org.microarchitecturovisco.hotelservice.model.events.HotelEvent; | ||
import org.microarchitecturovisco.hotelservice.model.events.RoomReservationCreatedEvent; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.Optional; | ||
import java.util.UUID; | ||
|
||
public interface HotelEventStore extends JpaRepository<HotelEvent, UUID> { | ||
|
||
} |
Oops, something went wrong.