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.23.0") public class JNLS extends Object implements Serializable
JNLS
See Also:
  • Field Details

  • Constructor Details

    • JNLS

      public JNLS()
  • Method Details

    • currency

      public JNLS currency(@Nullable String currency)
    • getCurrency

      @Nullable public String getCurrency()
      Currency denomination of the journal. USD by default.
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nullable String currency)
    • description

      public JNLS description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • entryType

      public JNLS entryType(@Nonnull String entryType)
    • getEntryType

      @Nonnull public String getEntryType()
      JNLS
      Returns:
      entryType
    • setEntryType

      public void setEntryType(@Nonnull String entryType)
    • fromAccount

      public JNLS fromAccount(@Nullable String fromAccount)
    • getFromAccount

      @Nullable public String getFromAccount()
      The account ID that initiates the journal - account_status must equal to ACTIVE or CLOSE
      Returns:
      fromAccount
    • setFromAccount

      public void setFromAccount(@Nullable String fromAccount)
    • id

      public JNLS id(@Nullable String id)
    • getId

      @Nullable public String getId()
      The journal ID
      Returns:
      id
    • setId

      public void setId(@Nullable String id)
    • price

      public JNLS price(@Nullable String price)
    • getPrice

      @Nullable public String getPrice()
      The price of the security journaled
      Returns:
      price
    • setPrice

      public void setPrice(@Nullable String price)
    • qty

      public JNLS qty(@Nullable String qty)
    • getQty

      @Nullable public String getQty()
      The quantity of the securities journaled
      Returns:
      qty
    • setQty

      public void setQty(@Nullable String qty)
    • settleDate

      public JNLS settleDate(@Nullable String settleDate)
    • getSettleDate

      @Nullable public String getSettleDate()
      Date string in \"%Y-%m-%d\" format
      Returns:
      settleDate
    • setSettleDate

      public void setSettleDate(@Nullable String settleDate)
    • status

      public JNLS status(@Nullable JournalStatus status)
    • getStatus

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

      public void setStatus(@Nullable JournalStatus status)
    • symbol

      public JNLS symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      The symbol of the security journaled
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • systemDate

      public JNLS systemDate(@Nullable String systemDate)
    • getSystemDate

      @Nullable public String getSystemDate()
      Date string in \"%Y-%m-%d\" format
      Returns:
      systemDate
    • setSystemDate

      public void setSystemDate(@Nullable String systemDate)
    • toAccount

      public JNLS toAccount(@Nullable String toAccount)
    • getToAccount

      @Nullable public String getToAccount()
      The account ID that received the journal - account_status must equal to ACTIVE
      Returns:
      toAccount
    • setToAccount

      public void setToAccount(@Nullable String toAccount)
    • 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