Class BatchJournalResponseJNLS

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class BatchJournalResponseJNLS extends Object implements Serializable
A securities journal result that preserves discriminator-complete batch response modeling, although current public batch requests support JNLC only.
See Also:
  • Field Details

  • Constructor Details

    • BatchJournalResponseJNLS

      public BatchJournalResponseJNLS()
  • Method Details

    • createdAt

      public BatchJournalResponseJNLS createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      The creation time when supplied by the endpoint.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • currency

      public BatchJournalResponseJNLS currency(@Nonnull String currency)
    • getCurrency

      @Nonnull public String getCurrency()
      Currency denomination of the journal.
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nonnull String currency)
    • description

      public BatchJournalResponseJNLS description(@Nonnull String description)
    • getDescription

      @Nonnull public String getDescription()
      The journal description.
      Returns:
      description
    • setDescription

      public void setDescription(@Nonnull String description)
    • fromAccount

      public BatchJournalResponseJNLS fromAccount(@Nonnull UUID fromAccount)
    • getFromAccount

      @Nonnull public UUID getFromAccount()
      The account ID that initiated the journal.
      Returns:
      fromAccount
    • setFromAccount

      public void setFromAccount(@Nonnull UUID fromAccount)
    • id

      public BatchJournalResponseJNLS id(@Nonnull UUID id)
    • getId

      @Nonnull public UUID getId()
      The journal ID.
      Returns:
      id
    • setId

      public void setId(@Nonnull UUID id)
    • netAmount

      public BatchJournalResponseJNLS netAmount(@Nonnull BigDecimal netAmount)
    • getNetAmount

      @Nonnull public BigDecimal getNetAmount()
      The cash amount, or null when not applicable.
      Returns:
      netAmount
    • setNetAmount

      public void setNetAmount(@Nonnull BigDecimal netAmount)
    • price

      public BatchJournalResponseJNLS price(@Nonnull BigDecimal price)
    • getPrice

      @Nonnull public BigDecimal getPrice()
      The journaled security price, or null when not applicable.
      Returns:
      price
    • setPrice

      public void setPrice(@Nonnull BigDecimal price)
    • qty

      public BatchJournalResponseJNLS qty(@Nonnull BigDecimal qty)
    • getQty

      @Nonnull public BigDecimal getQty()
      The journaled security quantity, or null when not applicable.
      Returns:
      qty
    • setQty

      public void setQty(@Nonnull BigDecimal qty)
    • settleDate

      public BatchJournalResponseJNLS settleDate(@Nonnull LocalDate settleDate)
    • getSettleDate

      @Nonnull public LocalDate getSettleDate()
      The settlement date, or null until one is assigned.
      Returns:
      settleDate
    • setSettleDate

      public void setSettleDate(@Nonnull LocalDate settleDate)
    • status

      public BatchJournalResponseJNLS status(@Nonnull JournalStatus status)
    • getStatus

      @Nonnull public JournalStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull JournalStatus status)
    • symbol

      public BatchJournalResponseJNLS symbol(@Nonnull String symbol)
    • getSymbol

      @Nonnull public String getSymbol()
      The journaled security symbol, or null for a cash journal.
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nonnull String symbol)
    • systemDate

      public BatchJournalResponseJNLS systemDate(@Nonnull LocalDate systemDate)
    • getSystemDate

      @Nonnull public LocalDate getSystemDate()
      The booking-system date, or null until one is assigned.
      Returns:
      systemDate
    • setSystemDate

      public void setSystemDate(@Nonnull LocalDate systemDate)
    • toAccount

      public BatchJournalResponseJNLS toAccount(@Nonnull UUID toAccount)
    • getToAccount

      @Nonnull public UUID getToAccount()
      The account ID that received the journal.
      Returns:
      toAccount
    • setToAccount

      public void setToAccount(@Nonnull UUID toAccount)
    • transmitterInfo

      public BatchJournalResponseJNLS transmitterInfo(@Nullable TransmitterInfo transmitterInfo)
    • getTransmitterInfo

      @Nullable public TransmitterInfo getTransmitterInfo()
      Get transmitterInfo
      Returns:
      transmitterInfo
    • setTransmitterInfo

      public void setTransmitterInfo(@Nullable TransmitterInfo transmitterInfo)
    • entryType

    • getEntryType

      @Nonnull public BatchJournalResponseJNLS.EntryTypeEnum getEntryType()
      Securities journal discriminator value.
      Returns:
      entryType
    • setEntryType

      public void setEntryType(@Nonnull BatchJournalResponseJNLS.EntryTypeEnum entryType)
    • errorMessage

      public BatchJournalResponseJNLS errorMessage(@Nullable String errorMessage)
    • getErrorMessage

      @Nullable public String getErrorMessage()
      Description of why this journal transaction failed. Omitted for successful results.
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(@Nullable String errorMessage)
    • putAdditionalProperty

      public BatchJournalResponseJNLS 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.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the BatchJournalResponseJNLS instance itself
    • getAdditionalProperties

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object
    • 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 BatchJournalResponseJNLS
    • fromJson

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

      public String toJson()
      Convert an instance of BatchJournalResponseJNLS to an JSON string
      Returns:
      JSON string