Record Class CustomerTransaction

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.CustomerTransaction

public record CustomerTransaction(String additionalIdentification, String companyName, String customerIdentification, String customerIdentificationType, String customerSubtype, String customerType, ZonedDateTime dateOfBirth, String emailAddress, String familyName, String givenName, boolean isInformationRestricted, String language, String middleNames, String telephoneNumber, CustomerPostalAddress customerPostalAddress, List<Agreements> agreements) extends Record
  • Constructor Details

    • CustomerTransaction

      public CustomerTransaction(String additionalIdentification, String companyName, String customerIdentification, String customerIdentificationType, String customerSubtype, String customerType, ZonedDateTime dateOfBirth, String emailAddress, String familyName, String givenName, boolean isInformationRestricted, String language, String middleNames, String telephoneNumber, CustomerPostalAddress customerPostalAddress, List<Agreements> agreements)
      Creates an instance of a CustomerTransaction record class.
      Parameters:
      additionalIdentification - the value for the additionalIdentification record component
      companyName - the value for the companyName record component
      customerIdentification - the value for the customerIdentification record component
      customerIdentificationType - the value for the customerIdentificationType record component
      customerSubtype - the value for the customerSubtype record component
      customerType - the value for the customerType record component
      dateOfBirth - the value for the dateOfBirth record component
      emailAddress - the value for the emailAddress record component
      familyName - the value for the familyName record component
      givenName - the value for the givenName record component
      isInformationRestricted - the value for the isInformationRestricted record component
      language - the value for the language record component
      middleNames - the value for the middleNames record component
      telephoneNumber - the value for the telephoneNumber record component
      customerPostalAddress - the value for the customerPostalAddress record component
      agreements - the value for the agreements record component
  • Method Details

    • meteringPointEANs

      public List<String> meteringPointEANs()
    • 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.
    • additionalIdentification

      public String additionalIdentification()
      Returns the value of the additionalIdentification record component.
      Returns:
      the value of the additionalIdentification record component
    • companyName

      public String companyName()
      Returns the value of the companyName record component.
      Returns:
      the value of the companyName record component
    • customerIdentification

      public String customerIdentification()
      Returns the value of the customerIdentification record component.
      Returns:
      the value of the customerIdentification record component
    • customerIdentificationType

      public String customerIdentificationType()
      Returns the value of the customerIdentificationType record component.
      Returns:
      the value of the customerIdentificationType record component
    • customerSubtype

      public String customerSubtype()
      Returns the value of the customerSubtype record component.
      Returns:
      the value of the customerSubtype record component
    • customerType

      public String customerType()
      Returns the value of the customerType record component.
      Returns:
      the value of the customerType record component
    • dateOfBirth

      public ZonedDateTime dateOfBirth()
      Returns the value of the dateOfBirth record component.
      Returns:
      the value of the dateOfBirth record component
    • emailAddress

      public String emailAddress()
      Returns the value of the emailAddress record component.
      Returns:
      the value of the emailAddress record component
    • familyName

      public String familyName()
      Returns the value of the familyName record component.
      Returns:
      the value of the familyName record component
    • givenName

      public String givenName()
      Returns the value of the givenName record component.
      Returns:
      the value of the givenName record component
    • isInformationRestricted

      public boolean isInformationRestricted()
      Returns the value of the isInformationRestricted record component.
      Returns:
      the value of the isInformationRestricted record component
    • language

      public String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • middleNames

      public String middleNames()
      Returns the value of the middleNames record component.
      Returns:
      the value of the middleNames record component
    • telephoneNumber

      public String telephoneNumber()
      Returns the value of the telephoneNumber record component.
      Returns:
      the value of the telephoneNumber record component
    • customerPostalAddress

      public CustomerPostalAddress customerPostalAddress()
      Returns the value of the customerPostalAddress record component.
      Returns:
      the value of the customerPostalAddress record component
    • agreements

      public List<Agreements> agreements()
      Returns the value of the agreements record component.
      Returns:
      the value of the agreements record component