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 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 a StayEmailContext record class.
      Parameters:
      stayId - the value for the stayId record component
      tenantId - the value for the tenantId record component
      propertyId - the value for the propertyId record component
      tenantGuestSlug - the value for the tenantGuestSlug record component
      stayAccessCode - the value for the stayAccessCode record component
      checkInAt - the value for the checkInAt record component
      checkOutAt - the value for the checkOutAt record component
      guestEmail - the value for the guestEmail record component
      guestLocale - the value for the guestLocale record component
      moduleConfig - the value for the moduleConfig record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • stayId

      public UUID stayId()
      Returns the value of the stayId record component.
      Returns:
      the value of the stayId record component
    • tenantId

      public UUID tenantId()
      Returns the value of the tenantId record component.
      Returns:
      the value of the tenantId record component
    • propertyId

      public UUID propertyId()
      Returns the value of the propertyId record component.
      Returns:
      the value of the propertyId record component
    • tenantGuestSlug

      public String tenantGuestSlug()
      Returns the value of the tenantGuestSlug record component.
      Returns:
      the value of the tenantGuestSlug record component
    • stayAccessCode

      public String stayAccessCode()
      Returns the value of the stayAccessCode record component.
      Returns:
      the value of the stayAccessCode record component
    • checkInAt

      public Instant checkInAt()
      Returns the value of the checkInAt record component.
      Returns:
      the value of the checkInAt record component
    • checkOutAt

      public Instant checkOutAt()
      Returns the value of the checkOutAt record component.
      Returns:
      the value of the checkOutAt record component
    • guestEmail

      public Optional<String> guestEmail()
      Returns the value of the guestEmail record component.
      Returns:
      the value of the guestEmail record component
    • guestLocale

      public String guestLocale()
      Returns the value of the guestLocale record component.
      Returns:
      the value of the guestLocale record component
    • moduleConfig

      public Map<String,Object> moduleConfig()
      Returns the value of the moduleConfig record component.
      Returns:
      the value of the moduleConfig record component