Class CaEventReorganizationStockMovement

java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventReorganizationStockMovement
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class CaEventReorganizationStockMovement extends Object implements Serializable
A single replacement-security leg of a [`ca_event_reorganization`](#/components/schemas/ca_event_reorganization) payload. All decimal fields are emitted as JSON strings to preserve precision on the wire.
See Also:
  • Field Details

  • Constructor Details

    • CaEventReorganizationStockMovement

      public CaEventReorganizationStockMovement()
  • Method Details

    • cusip

      public CaEventReorganizationStockMovement cusip(@Nonnull String cusip)
    • getCusip

      @Nonnull public String getCusip()
      Replacement CUSIP.
      Returns:
      cusip
    • setCusip

      public void setCusip(@Nonnull String cusip)
    • isin

      public CaEventReorganizationStockMovement isin(@Nullable String isin)
    • getIsin

      @Nullable public String getIsin()
      International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.
      Returns:
      isin
    • setIsin

      public void setIsin(@Nullable String isin)
    • newRate

      public CaEventReorganizationStockMovement newRate(@Nonnull String newRate)
    • getNewRate

      @Nonnull public String getNewRate()
      Replacement shares delivered per `source_rate`, as a decimal string.
      Returns:
      newRate
    • setNewRate

      public void setNewRate(@Nonnull String newRate)
    • sourceRate

      public CaEventReorganizationStockMovement sourceRate(@Nonnull String sourceRate)
    • getSourceRate

      @Nonnull public String getSourceRate()
      Source shares required for each `new_rate`, as a decimal string.
      Returns:
      sourceRate
    • setSourceRate

      public void setSourceRate(@Nonnull String sourceRate)
    • symbol

      public CaEventReorganizationStockMovement symbol(@Nonnull String symbol)
    • getSymbol

      @Nonnull public String getSymbol()
      Replacement ticker.
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nonnull String symbol)
    • 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 CaEventReorganizationStockMovement
    • fromJson

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

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