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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class JNLS extends Object implements Serializable
A securities journal response with all shared Journal fields.
See Also:
  • Field Details

  • Constructor Details

    • JNLS

      public JNLS()
  • Method Details

    • createdAt

      public JNLS 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 JNLS 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 JNLS description(@Nonnull String description)
    • getDescription

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

      public void setDescription(@Nonnull String description)
    • fromAccount

      public JNLS 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 JNLS id(@Nonnull UUID id)
    • getId

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

      public void setId(@Nonnull UUID id)
    • netAmount

      public JNLS 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 JNLS 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 JNLS 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 JNLS 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 JNLS status(@Nonnull JournalStatus status)
    • getStatus

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

      public void setStatus(@Nonnull JournalStatus status)
    • symbol

      public JNLS 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 JNLS 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 JNLS 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 JNLS transmitterInfo(@Nullable TransmitterInfo transmitterInfo)
    • getTransmitterInfo

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

      public void setTransmitterInfo(@Nullable TransmitterInfo transmitterInfo)
    • entryType

      public JNLS entryType(@Nonnull JNLS.EntryTypeEnum entryType)
    • getEntryType

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

      public void setEntryType(@Nonnull JNLS.EntryTypeEnum entryType)
    • putAdditionalProperty

      public JNLS 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 JNLS 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 JNLS
    • fromJson

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

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