java.lang.Object
java.lang.Record
energy.eddie.regionconnector.es.datadis.dtos.authorizations.AuthorizedCups

public record AuthorizedCups(Long id, String ownerDocument, String ownerName, String ownerDocumentTypeName, String requesterDocument, String requesterDocumentTypeName, String requesterName, Long requestId, String cups, AuthorizationStatus status, ZonedDateTime validityDateStart, ZonedDateTime validityDateEnd, @Nullable Object isDeleted, String distributorCodeFather) extends Record
  • Constructor Details

    • AuthorizedCups

      public AuthorizedCups(Long id, String ownerDocument, String ownerName, String ownerDocumentTypeName, String requesterDocument, String requesterDocumentTypeName, String requesterName, Long requestId, String cups, AuthorizationStatus status, ZonedDateTime validityDateStart, ZonedDateTime validityDateEnd, @Nullable Object isDeleted, String distributorCodeFather)
      Creates an instance of a AuthorizedCups record class.
      Parameters:
      id - the value for the id record component
      ownerDocument - the value for the ownerDocument record component
      ownerName - the value for the ownerName record component
      ownerDocumentTypeName - the value for the ownerDocumentTypeName record component
      requesterDocument - the value for the requesterDocument record component
      requesterDocumentTypeName - the value for the requesterDocumentTypeName record component
      requesterName - the value for the requesterName record component
      requestId - the value for the requestId record component
      cups - the value for the cups record component
      status - the value for the status record component
      validityDateStart - the value for the validityDateStart record component
      validityDateEnd - the value for the validityDateEnd record component
      isDeleted - the value for the isDeleted record component
      distributorCodeFather - the value for the distributorCodeFather record component
  • Method Details

    • isCompany

      public boolean isCompany()
    • companyName

      public @Nullable String companyName()
    • firstname

      public @Nullable String firstname()
    • surname

      public @Nullable String surname()
    • 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.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • ownerDocument

      public String ownerDocument()
      Returns the value of the ownerDocument record component.
      Returns:
      the value of the ownerDocument record component
    • ownerName

      public String ownerName()
      Returns the value of the ownerName record component.
      Returns:
      the value of the ownerName record component
    • ownerDocumentTypeName

      public String ownerDocumentTypeName()
      Returns the value of the ownerDocumentTypeName record component.
      Returns:
      the value of the ownerDocumentTypeName record component
    • requesterDocument

      public String requesterDocument()
      Returns the value of the requesterDocument record component.
      Returns:
      the value of the requesterDocument record component
    • requesterDocumentTypeName

      public String requesterDocumentTypeName()
      Returns the value of the requesterDocumentTypeName record component.
      Returns:
      the value of the requesterDocumentTypeName record component
    • requesterName

      public String requesterName()
      Returns the value of the requesterName record component.
      Returns:
      the value of the requesterName record component
    • requestId

      public Long requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • cups

      public String cups()
      Returns the value of the cups record component.
      Returns:
      the value of the cups record component
    • status

      public AuthorizationStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • validityDateStart

      public ZonedDateTime validityDateStart()
      Returns the value of the validityDateStart record component.
      Returns:
      the value of the validityDateStart record component
    • validityDateEnd

      public ZonedDateTime validityDateEnd()
      Returns the value of the validityDateEnd record component.
      Returns:
      the value of the validityDateEnd record component
    • isDeleted

      public @Nullable Object isDeleted()
      Returns the value of the isDeleted record component.
      Returns:
      the value of the isDeleted record component
    • distributorCodeFather

      public String distributorCodeFather()
      Returns the value of the distributorCodeFather record component.
      Returns:
      the value of the distributorCodeFather record component