Record Class EODExchangeDetailsResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODExchangeDetailsResponse
- Record Components:
code- exchange codename- exchange namecountry- country code or namecurrency- exchange currencyoperatingMic- operating MIC when availablemainMic- main MIC when availabletimezone- provider timezone fieldtradingHours- trading hours payloadholidays- holiday payloadrawPayload- full provider payload
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODExchangeDetailsResponse(String code, String name, String country, String currency, String operatingMic, String mainMic, String timezone, com.fasterxml.jackson.databind.JsonNode tradingHours, com.fasterxml.jackson.databind.JsonNode holidays, com.fasterxml.jackson.databind.JsonNode rawPayload)
extends Record
implements GenericIntegrationResponse
Exchange metadata, trading hours, and holidays payload.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODExchangeDetailsResponse(String code, String name, String country, String currency, String operatingMic, String mainMic, String timezone, com.fasterxml.jackson.databind.JsonNode tradingHours, com.fasterxml.jackson.databind.JsonNode holidays, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODExchangeDetailsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.country()Returns the value of thecountryrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNodeholidays()Returns the value of theholidaysrecord component.booleanisEmpty()Returns true when the payload does not identify an exchange.mainMic()Returns the value of themainMicrecord component.name()Returns the value of thenamerecord component.Returns the value of theoperatingMicrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of therawPayloadrecord component.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.com.fasterxml.jackson.databind.JsonNodeReturns the value of thetradingHoursrecord component.
-
Constructor Details
-
EODExchangeDetailsResponse
public EODExchangeDetailsResponse(String code, String name, String country, String currency, String operatingMic, String mainMic, String timezone, com.fasterxml.jackson.databind.JsonNode tradingHours, com.fasterxml.jackson.databind.JsonNode holidays, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODExchangeDetailsResponserecord class.- Parameters:
code- the value for thecoderecord componentname- the value for thenamerecord componentcountry- the value for thecountryrecord componentcurrency- the value for thecurrencyrecord componentoperatingMic- the value for theoperatingMicrecord componentmainMic- the value for themainMicrecord componenttimezone- the value for thetimezonerecord componenttradingHours- the value for thetradingHoursrecord componentholidays- the value for theholidaysrecord componentrawPayload- the value for therawPayloadrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the payload does not identify an exchange.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
toString
-
hashCode
-
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). -
code
-
name
-
country
-
currency
-
operatingMic
Returns the value of theoperatingMicrecord component.- Returns:
- the value of the
operatingMicrecord component
-
mainMic
-
timezone
-
tradingHours
public com.fasterxml.jackson.databind.JsonNode tradingHours()Returns the value of thetradingHoursrecord component.- Returns:
- the value of the
tradingHoursrecord component
-
holidays
-
rawPayload
public com.fasterxml.jackson.databind.JsonNode rawPayload()Returns the value of therawPayloadrecord component.- Returns:
- the value of the
rawPayloadrecord component
-