Record Class ContractualSituation
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.situation.ContractualSituation
public record ContractualSituation(@Nullable String usagePointId, @Nullable String contractStart, @Nullable String contractType, @Nullable String contractor, @Nullable String balanceResponsibleParty, @Nullable String pricingStructure, @Nullable String distributionTariff, @Nullable String supplierTariffProfile, @Nullable String distributionTariffProfile, @Nullable String supplierMobilePeak, @Nullable String distributionMobilePeak, @Nullable String subscribedPower, @Nullable List<String> segments, @Nullable Customer customer, @Nullable ContactData contactData, @Nullable Person person, @Nullable Organization organization)
extends Record
One element of the situation contractuelle API response
(
GET /situation_contrat_auto/v1/{usage_point_id}), which returns an array of these.
Shaped from the real response, where contact_data, person and organization
are siblings of customer rather than nested inside it.
-
Constructor Summary
ConstructorsConstructorDescriptionContractualSituation(@Nullable String usagePointId, @Nullable String contractStart, @Nullable String contractType, @Nullable String contractor, @Nullable String balanceResponsibleParty, @Nullable String pricingStructure, @Nullable String distributionTariff, @Nullable String supplierTariffProfile, @Nullable String distributionTariffProfile, @Nullable String supplierMobilePeak, @Nullable String distributionMobilePeak, @Nullable String subscribedPower, @Nullable List<String> segments, @Nullable Customer customer, @Nullable ContactData contactData, @Nullable Person person, @Nullable Organization organization) Creates an instance of aContractualSituationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thebalanceResponsiblePartyrecord component.@Nullable ContactDataReturns the value of thecontactDatarecord component.@Nullable StringReturns the value of thecontractorrecord component.@Nullable StringReturns the value of thecontractStartrecord component.@Nullable StringReturns the value of thecontractTyperecord component.@Nullable Customercustomer()Returns the value of thecustomerrecord component.@Nullable StringReturns the value of thedistributionMobilePeakrecord component.@Nullable StringReturns the value of thedistributionTariffrecord component.@Nullable StringReturns the value of thedistributionTariffProfilerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable OrganizationReturns the value of theorganizationrecord component.@Nullable Personperson()Returns the value of thepersonrecord component.@Nullable StringReturns the value of thepricingStructurerecord component.segments()Returns the value of thesegmentsrecord component.@Nullable StringReturns the value of thesubscribedPowerrecord component.@Nullable StringReturns the value of thesupplierMobilePeakrecord component.@Nullable StringReturns the value of thesupplierTariffProfilerecord component.final StringtoString()Returns a string representation of this record class.@Nullable StringReturns the value of theusagePointIdrecord component.
-
Constructor Details
-
ContractualSituation
public ContractualSituation(@Nullable String usagePointId, @Nullable String contractStart, @Nullable String contractType, @Nullable String contractor, @Nullable String balanceResponsibleParty, @Nullable String pricingStructure, @Nullable String distributionTariff, @Nullable String supplierTariffProfile, @Nullable String distributionTariffProfile, @Nullable String supplierMobilePeak, @Nullable String distributionMobilePeak, @Nullable String subscribedPower, @Nullable List<String> segments, @Nullable Customer customer, @Nullable ContactData contactData, @Nullable Person person, @Nullable Organization organization) Creates an instance of aContractualSituationrecord class.- Parameters:
usagePointId- the value for theusagePointIdrecord componentcontractStart- the value for thecontractStartrecord componentcontractType- the value for thecontractTyperecord componentcontractor- the value for thecontractorrecord componentbalanceResponsibleParty- the value for thebalanceResponsiblePartyrecord componentpricingStructure- the value for thepricingStructurerecord componentdistributionTariff- the value for thedistributionTariffrecord componentsupplierTariffProfile- the value for thesupplierTariffProfilerecord componentdistributionTariffProfile- the value for thedistributionTariffProfilerecord componentsupplierMobilePeak- the value for thesupplierMobilePeakrecord componentdistributionMobilePeak- the value for thedistributionMobilePeakrecord componentsubscribedPower- the value for thesubscribedPowerrecord componentsegments- the value for thesegmentsrecord componentcustomer- the value for thecustomerrecord componentcontactData- the value for thecontactDatarecord componentperson- the value for thepersonrecord componentorganization- the value for theorganizationrecord 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). -
usagePointId
Returns the value of theusagePointIdrecord component.- Returns:
- the value of the
usagePointIdrecord component
-
contractStart
Returns the value of thecontractStartrecord component.- Returns:
- the value of the
contractStartrecord component
-
contractType
Returns the value of thecontractTyperecord component.- Returns:
- the value of the
contractTyperecord component
-
contractor
Returns the value of thecontractorrecord component.- Returns:
- the value of the
contractorrecord component
-
balanceResponsibleParty
Returns the value of thebalanceResponsiblePartyrecord component.- Returns:
- the value of the
balanceResponsiblePartyrecord component
-
pricingStructure
Returns the value of thepricingStructurerecord component.- Returns:
- the value of the
pricingStructurerecord component
-
distributionTariff
Returns the value of thedistributionTariffrecord component.- Returns:
- the value of the
distributionTariffrecord component
-
supplierTariffProfile
Returns the value of thesupplierTariffProfilerecord component.- Returns:
- the value of the
supplierTariffProfilerecord component
-
distributionTariffProfile
Returns the value of thedistributionTariffProfilerecord component.- Returns:
- the value of the
distributionTariffProfilerecord component
-
supplierMobilePeak
Returns the value of thesupplierMobilePeakrecord component.- Returns:
- the value of the
supplierMobilePeakrecord component
-
distributionMobilePeak
Returns the value of thedistributionMobilePeakrecord component.- Returns:
- the value of the
distributionMobilePeakrecord component
-
subscribedPower
Returns the value of thesubscribedPowerrecord component.- Returns:
- the value of the
subscribedPowerrecord component
-
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-
customer
Returns the value of thecustomerrecord component.- Returns:
- the value of the
customerrecord component
-
contactData
Returns the value of thecontactDatarecord component.- Returns:
- the value of the
contactDatarecord component
-
person
Returns the value of thepersonrecord component.- Returns:
- the value of the
personrecord component
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-