Class AcatsContraAccountDetails

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class AcatsContraAccountDetails extends Object implements Serializable
Contra account details
See Also:
  • Field Details

  • Constructor Details

    • AcatsContraAccountDetails

      public AcatsContraAccountDetails()
  • Method Details

    • accountNumber

      public AcatsContraAccountDetails accountNumber(@Nonnull String accountNumber)
    • getAccountNumber

      @Nonnull public String getAccountNumber()
      Account number at the contra broker
      Returns:
      accountNumber
    • setAccountNumber

      public void setAccountNumber(@Nonnull String accountNumber)
    • brokerName

      public AcatsContraAccountDetails brokerName(@Nullable String brokerName)
    • getBrokerName

      @Nullable public String getBrokerName()
      Name of the contra broker (non-functional, used for auditability and display purposes)
      Returns:
      brokerName
    • setBrokerName

      public void setBrokerName(@Nullable String brokerName)
    • brokerNumber

      public AcatsContraAccountDetails brokerNumber(@Nonnull String brokerNumber)
    • getBrokerNumber

      @Nonnull public String getBrokerNumber()
      Clearing number of the contra broker
      Returns:
      brokerNumber
    • setBrokerNumber

      public void setBrokerNumber(@Nonnull String brokerNumber)
    • customerName

      public AcatsContraAccountDetails customerName(@Nonnull String customerName)
    • getCustomerName

      @Nonnull public String getCustomerName()
      Name on the account at the contra broker
      Returns:
      customerName
    • setCustomerName

      public void setCustomerName(@Nonnull String customerName)
    • customerTaxId

      public AcatsContraAccountDetails customerTaxId(@Nonnull String customerTaxId)
    • getCustomerTaxId

      @Nonnull public String getCustomerTaxId()
      Tax ID on the account at the contra broker
      Returns:
      customerTaxId
    • setCustomerTaxId

      public void setCustomerTaxId(@Nonnull String customerTaxId)
    • putAdditionalProperty

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

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

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