Record Class EtaPlusAccountingPointData
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.de.eta.providers.EtaPlusAccountingPointData
public record EtaPlusAccountingPointData(String meteringPointId, @Nullable String customerId, @Nullable String energyType, @Nullable String direction, @Nullable EtaPlusAccountingPointData.Address deliveryAddress, @Nullable EtaPlusAccountingPointData.ContractParty contractParty)
extends Record
Deserialised payload of the accounting-point response from the ETA+ backend.
The backend strips null leaves and whole-null sub-objects from the wire, so
deliveryAddress or contractParty may arrive absent rather than
as an explicit JSON null; both shapes deserialise to a Java null.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionEtaPlusAccountingPointData(String meteringPointId, String customerId, String energyType, String direction, EtaPlusAccountingPointData.Address deliveryAddress, EtaPlusAccountingPointData.ContractParty contractParty) Creates an instance of aEtaPlusAccountingPointDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontractPartyrecord component.Returns the value of thecustomerIdrecord component.Returns the value of thedeliveryAddressrecord component.Returns the value of thedirectionrecord component.Returns the value of theenergyTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeteringPointIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EtaPlusAccountingPointData
public EtaPlusAccountingPointData(String meteringPointId, @Nullable String customerId, @Nullable String energyType, @Nullable String direction, @Nullable EtaPlusAccountingPointData.Address deliveryAddress, @Nullable EtaPlusAccountingPointData.ContractParty contractParty) Creates an instance of aEtaPlusAccountingPointDatarecord class.- Parameters:
meteringPointId- the value for themeteringPointIdrecord componentcustomerId- the value for thecustomerIdrecord componentenergyType- the value for theenergyTyperecord componentdirection- the value for thedirectionrecord componentdeliveryAddress- the value for thedeliveryAddressrecord componentcontractParty- the value for thecontractPartyrecord 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). -
meteringPointId
Returns the value of themeteringPointIdrecord component.- Returns:
- the value of the
meteringPointIdrecord component
-
customerId
Returns the value of thecustomerIdrecord component.- Returns:
- the value of the
customerIdrecord component
-
energyType
Returns the value of theenergyTyperecord component.- Returns:
- the value of the
energyTyperecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
deliveryAddress
Returns the value of thedeliveryAddressrecord component.- Returns:
- the value of the
deliveryAddressrecord component
-
contractParty
Returns the value of thecontractPartyrecord component.- Returns:
- the value of the
contractPartyrecord component
-