Record Class EODExchangeDetailsResponse

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODExchangeDetailsResponse
Record Components:
code - exchange code
name - exchange name
country - country code or name
currency - exchange currency
operatingMic - operating MIC when available
mainMic - main MIC when available
timezone - provider timezone field
tradingHours - trading hours payload
holidays - holiday payload
rawPayload - 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 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 a EODExchangeDetailsResponse record class.
      Parameters:
      code - the value for the code record component
      name - the value for the name record component
      country - the value for the country record component
      currency - the value for the currency record component
      operatingMic - the value for the operatingMic record component
      mainMic - the value for the mainMic record component
      timezone - the value for the timezone record component
      tradingHours - the value for the tradingHours record component
      holidays - the value for the holidays record component
      rawPayload - the value for the rawPayload record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true when the payload does not identify an exchange.
      Specified by:
      isEmpty in interface GenericIntegrationResponse
      Returns:
      boolean
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • operatingMic

      public String operatingMic()
      Returns the value of the operatingMic record component.
      Returns:
      the value of the operatingMic record component
    • mainMic

      public String mainMic()
      Returns the value of the mainMic record component.
      Returns:
      the value of the mainMic record component
    • timezone

      public String timezone()
      Returns the value of the timezone record component.
      Returns:
      the value of the timezone record component
    • tradingHours

      public com.fasterxml.jackson.databind.JsonNode tradingHours()
      Returns the value of the tradingHours record component.
      Returns:
      the value of the tradingHours record component
    • holidays

      public com.fasterxml.jackson.databind.JsonNode holidays()
      Returns the value of the holidays record component.
      Returns:
      the value of the holidays record component
    • rawPayload

      public com.fasterxml.jackson.databind.JsonNode rawPayload()
      Returns the value of the rawPayload record component.
      Returns:
      the value of the rawPayload record component