Package app.portaki.sdk.email
Record Class StayEmailContext
java.lang.Object
java.lang.Record
app.portaki.sdk.email.StayEmailContext
public record StayEmailContext(UUID stayId, UUID tenantId, UUID propertyId, String tenantGuestSlug, String stayAccessCode, Instant checkInAt, Instant checkOutAt, Optional<String> guestEmail, String guestLocale, Map<String,Object> moduleConfig)
extends Record
Contexte lecture seule passé au composer
PortakiModuleEmail lorsqu’un envoi est dû.
Données séjour / invité / config module — sans dépendance Spring.-
Constructor Summary
ConstructorsConstructorDescriptionStayEmailContext(UUID stayId, UUID tenantId, UUID propertyId, String tenantGuestSlug, String stayAccessCode, Instant checkInAt, Instant checkOutAt, Optional<String> guestEmail, String guestLocale, Map<String, Object> moduleConfig) Creates an instance of aStayEmailContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckInAtrecord component.Returns the value of thecheckOutAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguestEmailrecord component.Returns the value of theguestLocalerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleConfigrecord component.Returns the value of thepropertyIdrecord component.Returns the value of thestayAccessCoderecord component.stayId()Returns the value of thestayIdrecord component.Returns the value of thetenantGuestSlugrecord component.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StayEmailContext
public StayEmailContext(UUID stayId, UUID tenantId, UUID propertyId, String tenantGuestSlug, String stayAccessCode, Instant checkInAt, Instant checkOutAt, Optional<String> guestEmail, String guestLocale, Map<String, Object> moduleConfig) Creates an instance of aStayEmailContextrecord class.- Parameters:
stayId- the value for thestayIdrecord componenttenantId- the value for thetenantIdrecord componentpropertyId- the value for thepropertyIdrecord componenttenantGuestSlug- the value for thetenantGuestSlugrecord componentstayAccessCode- the value for thestayAccessCoderecord componentcheckInAt- the value for thecheckInAtrecord componentcheckOutAt- the value for thecheckOutAtrecord componentguestEmail- the value for theguestEmailrecord componentguestLocale- the value for theguestLocalerecord componentmoduleConfig- the value for themoduleConfigrecord 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
-
tenantGuestSlug
Returns the value of thetenantGuestSlugrecord component.- Returns:
- the value of the
tenantGuestSlugrecord component
-
stayAccessCode
Returns the value of thestayAccessCoderecord component.- Returns:
- the value of the
stayAccessCoderecord component
-
checkInAt
Returns the value of thecheckInAtrecord component.- Returns:
- the value of the
checkInAtrecord component
-
checkOutAt
Returns the value of thecheckOutAtrecord component.- Returns:
- the value of the
checkOutAtrecord component
-
guestEmail
Returns the value of theguestEmailrecord component.- Returns:
- the value of the
guestEmailrecord component
-
guestLocale
Returns the value of theguestLocalerecord component.- Returns:
- the value of the
guestLocalerecord component
-
moduleConfig
Returns the value of themoduleConfigrecord component.- Returns:
- the value of the
moduleConfigrecord component
-