Class BatchJournalResponse

java.lang.Object
markets.alpaca.client.openapi.broker.model.Journal
markets.alpaca.client.openapi.broker.model.BatchJournalResponse
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class BatchJournalResponse extends Journal implements Serializable
A Journal object with an extra attribute error_message in the case when a specific account fails to receive a journal.
See Also:
  • Field Details

  • Constructor Details

    • BatchJournalResponse

      public BatchJournalResponse()
  • Method Details

    • errorMessage

      public BatchJournalResponse errorMessage(@Nonnull String errorMessage)
    • getErrorMessage

      @Nonnull public String getErrorMessage()
      Description of why this journal transaction failed
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(@Nonnull String errorMessage)
    • putAdditionalProperty

      public BatchJournalResponse putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Overrides:
      putAdditionalProperty in class Journal
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the BatchJournalResponse instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Overrides:
      getAdditionalProperties in class Journal
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Overrides:
      getAdditionalProperty in class Journal
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Journal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Journal
    • toString

      public String toString()
      Overrides:
      toString in class Journal
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to BatchJournalResponse
    • fromJson

      public static BatchJournalResponse fromJson(String jsonString) throws IOException
      Create an instance of BatchJournalResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of BatchJournalResponse
      Throws:
      IOException - if the JSON string is invalid with respect to BatchJournalResponse
    • toJson

      public String toJson()
      Convert an instance of BatchJournalResponse to an JSON string
      Overrides:
      toJson in class Journal
      Returns:
      JSON string