java.lang.Object
java.lang.Record
energy.eddie.regionconnector.us.green.button.client.dtos.authorization.Authorization

public record Authorization(String uid, ZonedDateTime created, String customerEmail, @Nullable CustomerSignature customerSignature, @Nullable ZonedDateTime declined, boolean isDeclined, String expires, boolean isExpired, Exports exports, @Nullable List<Export> exportsList, @Nullable String formUid, @Nullable String templateUid, @Nullable List<String> referrals, boolean isArchived, boolean isTest, List<AuthorizationNotes> notes, @Nullable String nickname, @Nullable ZonedDateTime revoked, boolean isRevoked, Scope scope, String status, String statusMessage, ZonedDateTime statusTs, String userEmail, String userUid, String userStatus, String utility) extends Record
  • Constructor Details

    • Authorization

      public Authorization(String uid, ZonedDateTime created, String customerEmail, @Nullable CustomerSignature customerSignature, @Nullable ZonedDateTime declined, boolean isDeclined, String expires, boolean isExpired, Exports exports, @Nullable List<Export> exportsList, @Nullable String formUid, @Nullable String templateUid, @Nullable List<String> referrals, boolean isArchived, boolean isTest, List<AuthorizationNotes> notes, @Nullable String nickname, @Nullable ZonedDateTime revoked, boolean isRevoked, Scope scope, String status, String statusMessage, ZonedDateTime statusTs, String userEmail, String userUid, String userStatus, String utility)
      Creates an instance of a Authorization record class.
      Parameters:
      uid - the value for the uid record component
      created - the value for the created record component
      customerEmail - the value for the customerEmail record component
      customerSignature - the value for the customerSignature record component
      declined - the value for the declined record component
      isDeclined - the value for the isDeclined record component
      expires - the value for the expires record component
      isExpired - the value for the isExpired record component
      exports - the value for the exports record component
      exportsList - the value for the exportsList record component
      formUid - the value for the formUid record component
      templateUid - the value for the templateUid record component
      referrals - the value for the referrals record component
      isArchived - the value for the isArchived record component
      isTest - the value for the isTest record component
      notes - the value for the notes record component
      nickname - the value for the nickname record component
      revoked - the value for the revoked record component
      isRevoked - the value for the isRevoked record component
      scope - the value for the scope record component
      status - the value for the status record component
      statusMessage - the value for the statusMessage record component
      statusTs - the value for the statusTs record component
      userEmail - the value for the userEmail record component
      userUid - the value for the userUid record component
      userStatus - the value for the userStatus record component
      utility - the value for the utility 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • uid

      public String uid()
      Returns the value of the uid record component.
      Returns:
      the value of the uid record component
    • created

      public ZonedDateTime created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • customerEmail

      public String customerEmail()
      Returns the value of the customerEmail record component.
      Returns:
      the value of the customerEmail record component
    • customerSignature

      @Nullable public CustomerSignature customerSignature()
      Returns the value of the customerSignature record component.
      Returns:
      the value of the customerSignature record component
    • declined

      @Nullable public ZonedDateTime declined()
      Returns the value of the declined record component.
      Returns:
      the value of the declined record component
    • isDeclined

      public boolean isDeclined()
      Returns the value of the isDeclined record component.
      Returns:
      the value of the isDeclined record component
    • expires

      public String expires()
      Returns the value of the expires record component.
      Returns:
      the value of the expires record component
    • isExpired

      public boolean isExpired()
      Returns the value of the isExpired record component.
      Returns:
      the value of the isExpired record component
    • exports

      public Exports exports()
      Returns the value of the exports record component.
      Returns:
      the value of the exports record component
    • exportsList

      @Nullable public List<Export> exportsList()
      Returns the value of the exportsList record component.
      Returns:
      the value of the exportsList record component
    • formUid

      @Nullable public String formUid()
      Returns the value of the formUid record component.
      Returns:
      the value of the formUid record component
    • templateUid

      @Nullable public String templateUid()
      Returns the value of the templateUid record component.
      Returns:
      the value of the templateUid record component
    • referrals

      @Nullable public List<String> referrals()
      Returns the value of the referrals record component.
      Returns:
      the value of the referrals record component
    • isArchived

      public boolean isArchived()
      Returns the value of the isArchived record component.
      Returns:
      the value of the isArchived record component
    • isTest

      public boolean isTest()
      Returns the value of the isTest record component.
      Returns:
      the value of the isTest record component
    • notes

      public List<AuthorizationNotes> notes()
      Returns the value of the notes record component.
      Returns:
      the value of the notes record component
    • nickname

      @Nullable public String nickname()
      Returns the value of the nickname record component.
      Returns:
      the value of the nickname record component
    • revoked

      @Nullable public ZonedDateTime revoked()
      Returns the value of the revoked record component.
      Returns:
      the value of the revoked record component
    • isRevoked

      public boolean isRevoked()
      Returns the value of the isRevoked record component.
      Returns:
      the value of the isRevoked record component
    • scope

      public Scope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • status

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

      public String statusMessage()
      Returns the value of the statusMessage record component.
      Returns:
      the value of the statusMessage record component
    • statusTs

      public ZonedDateTime statusTs()
      Returns the value of the statusTs record component.
      Returns:
      the value of the statusTs record component
    • userEmail

      public String userEmail()
      Returns the value of the userEmail record component.
      Returns:
      the value of the userEmail record component
    • userUid

      public String userUid()
      Returns the value of the userUid record component.
      Returns:
      the value of the userUid record component
    • userStatus

      public String userStatus()
      Returns the value of the userStatus record component.
      Returns:
      the value of the userStatus record component
    • utility

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