Package app.portaki.sdk.event
Record Class StayCreatedEvent
java.lang.Object
java.lang.Record
app.portaki.sdk.event.StayCreatedEvent
public record StayCreatedEvent(UUID stayId, UUID tenantId, UUID propertyId, Instant checkinAt, String guestEmail)
extends Record
Payload shape for StayCreatedEvent (aligned with domain event).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckinAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguestEmailrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertyIdrecord component.stayId()Returns the value of thestayIdrecord component.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StayCreatedEvent
public StayCreatedEvent(UUID stayId, UUID tenantId, UUID propertyId, Instant checkinAt, String guestEmail) Creates an instance of aStayCreatedEventrecord class.- Parameters:
stayId- the value for thestayIdrecord componenttenantId- the value for thetenantIdrecord componentpropertyId- the value for thepropertyIdrecord componentcheckinAt- the value for thecheckinAtrecord componentguestEmail- the value for theguestEmailrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
stayId
Returns the value of thestayIdrecord component.- Returns:
- the value of the
stayIdrecord component
-
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-
propertyId
Returns the value of thepropertyIdrecord component.- Returns:
- the value of the
propertyIdrecord component
-
checkinAt
Returns the value of thecheckinAtrecord component.- Returns:
- the value of the
checkinAtrecord component
-
guestEmail
Returns the value of theguestEmailrecord component.- Returns:
- the value of the
guestEmailrecord component
-