Record Class ContractDetails
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.es.datadis.dtos.ContractDetails
- Record Components:
cups- CUPS identifier (metering point identifier)distributor- Distributormarketer- Retailer (only returned if the user launching the query is the owner of the CUPS)tension- VoltageaccessFare- Access tariff descriptionprovince- Provincemunicipality- MunicipalitypostalCode- Postal codecontractedPowerkW- Contracted power in kWtimeDiscrimination- Time discriminationmodePowerControl- Power control mode (ICP/MaxĂmetro)startDate- Contract start dateendDate- Contract end datecodeFare- Access tariff code (CNMC codes)selfConsumptionTypeCode- Self-consumption type code (CNMC codes). Only present if there is self-consumption.selfConsumptionTypeDesc- Description of the self-consumption type. Only present if there is self-consumption.section- Section. Only present if there is self-consumption.subsection- Subsection. Only present if there is self-consumption.partitionCoefficient- Distribution coefficient. Only present if there is self-consumption.cau- CAU. Only present if there is self-consumption.installedCapacity- Installed generation capacity. Only present if there is self-consumption.
public record ContractDetails(String cups, String distributor, String marketer, String tension, String accessFare, String province, String municipality, String postalCode, List<Double> contractedPowerkW, String timeDiscrimination, String modePowerControl, LocalDate startDate, Optional<LocalDate> endDate, String codeFare, Optional<String> selfConsumptionTypeCode, Optional<String> selfConsumptionTypeDesc, Optional<String> section, Optional<String> subsection, Optional<String> partitionCoefficient, Optional<String> cau, Optional<String> installedCapacity)
extends Record
This class represents the contract details returned by the Datadis API. The api documentation can be found here.
-
Constructor Summary
ConstructorsConstructorDescriptionContractDetails(String cups, String distributor, String marketer, String tension, String accessFare, String province, String municipality, String postalCode, List<Double> contractedPowerkW, String timeDiscrimination, String modePowerControl, LocalDate startDate, Optional<LocalDate> endDate, String codeFare, Optional<String> selfConsumptionTypeCode, Optional<String> selfConsumptionTypeDesc, Optional<String> section, Optional<String> subsection, Optional<String> partitionCoefficient, Optional<String> cau, Optional<String> installedCapacity) Creates an instance of aContractDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessFarerecord component.cau()Returns the value of thecaurecord component.codeFare()Returns the value of thecodeFarerecord component.Returns the value of thecontractedPowerkWrecord component.cups()Returns the value of thecupsrecord component.Returns the value of thedistributorrecord component.endDate()Returns the value of theendDaterecord 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 theinstalledCapacityrecord component.marketer()Returns the value of themarketerrecord component.Returns the value of themodePowerControlrecord component.Returns the value of themunicipalityrecord component.Returns the value of thepartitionCoefficientrecord component.Returns the value of thepostalCoderecord component.province()Returns the value of theprovincerecord component.section()Returns the value of thesectionrecord component.Returns the value of theselfConsumptionTypeCoderecord component.Returns the value of theselfConsumptionTypeDescrecord component.Returns the value of thestartDaterecord component.Returns the value of thesubsectionrecord component.tension()Returns the value of thetensionrecord component.Returns the value of thetimeDiscriminationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContractDetails
public ContractDetails(String cups, String distributor, String marketer, String tension, String accessFare, String province, String municipality, String postalCode, List<Double> contractedPowerkW, String timeDiscrimination, String modePowerControl, LocalDate startDate, Optional<LocalDate> endDate, String codeFare, Optional<String> selfConsumptionTypeCode, Optional<String> selfConsumptionTypeDesc, Optional<String> section, Optional<String> subsection, Optional<String> partitionCoefficient, Optional<String> cau, Optional<String> installedCapacity) Creates an instance of aContractDetailsrecord class.- Parameters:
cups- the value for thecupsrecord componentdistributor- the value for thedistributorrecord componentmarketer- the value for themarketerrecord componenttension- the value for thetensionrecord componentaccessFare- the value for theaccessFarerecord componentprovince- the value for theprovincerecord componentmunicipality- the value for themunicipalityrecord componentpostalCode- the value for thepostalCoderecord componentcontractedPowerkW- the value for thecontractedPowerkWrecord componenttimeDiscrimination- the value for thetimeDiscriminationrecord componentmodePowerControl- the value for themodePowerControlrecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentcodeFare- the value for thecodeFarerecord componentselfConsumptionTypeCode- the value for theselfConsumptionTypeCoderecord componentselfConsumptionTypeDesc- the value for theselfConsumptionTypeDescrecord componentsection- the value for thesectionrecord componentsubsection- the value for thesubsectionrecord componentpartitionCoefficient- the value for thepartitionCoefficientrecord componentcau- the value for thecaurecord componentinstalledCapacity- the value for theinstalledCapacityrecord 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). -
cups
Returns the value of thecupsrecord component.- Returns:
- the value of the
cupsrecord component
-
distributor
Returns the value of thedistributorrecord component.- Returns:
- the value of the
distributorrecord component
-
marketer
Returns the value of themarketerrecord component.- Returns:
- the value of the
marketerrecord component
-
tension
Returns the value of thetensionrecord component.- Returns:
- the value of the
tensionrecord component
-
accessFare
Returns the value of theaccessFarerecord component.- Returns:
- the value of the
accessFarerecord component
-
province
Returns the value of theprovincerecord component.- Returns:
- the value of the
provincerecord component
-
municipality
Returns the value of themunicipalityrecord component.- Returns:
- the value of the
municipalityrecord component
-
postalCode
Returns the value of thepostalCoderecord component.- Returns:
- the value of the
postalCoderecord component
-
contractedPowerkW
Returns the value of thecontractedPowerkWrecord component.- Returns:
- the value of the
contractedPowerkWrecord component
-
timeDiscrimination
Returns the value of thetimeDiscriminationrecord component.- Returns:
- the value of the
timeDiscriminationrecord component
-
modePowerControl
Returns the value of themodePowerControlrecord component.- Returns:
- the value of the
modePowerControlrecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
codeFare
Returns the value of thecodeFarerecord component.- Returns:
- the value of the
codeFarerecord component
-
selfConsumptionTypeCode
Returns the value of theselfConsumptionTypeCoderecord component.- Returns:
- the value of the
selfConsumptionTypeCoderecord component
-
selfConsumptionTypeDesc
Returns the value of theselfConsumptionTypeDescrecord component.- Returns:
- the value of the
selfConsumptionTypeDescrecord component
-
section
Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
subsection
Returns the value of thesubsectionrecord component.- Returns:
- the value of the
subsectionrecord component
-
partitionCoefficient
Returns the value of thepartitionCoefficientrecord component.- Returns:
- the value of the
partitionCoefficientrecord component
-
cau
Returns the value of thecaurecord component.- Returns:
- the value of the
caurecord component
-
installedCapacity
Returns the value of theinstalledCapacityrecord component.- Returns:
- the value of the
installedCapacityrecord component
-