Class APRTierDetails

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class APRTierDetails extends Object implements Serializable
Additional details of the APR tier
See Also:
  • Field Details

  • Constructor Details

    • APRTierDetails

      public APRTierDetails()
  • Method Details

    • asOf

      public APRTierDetails asOf(@Nullable LocalDate asOf)
    • getAsOf

      @Nullable public LocalDate getAsOf()
      The date on which the total balance was recorded, at the end of the day. YYYY-MM-DD format.
      Returns:
      asOf
    • setAsOf

      public void setAsOf(@Nullable LocalDate asOf)
    • totalAccounts

      public APRTierDetails totalAccounts(@Nullable Integer totalAccounts)
    • getTotalAccounts

      @Nullable public Integer getTotalAccounts()
      The total number of accounts assigned this APR tier.
      Returns:
      totalAccounts
    • setTotalAccounts

      public void setTotalAccounts(@Nullable Integer totalAccounts)
    • totalBalance

      public APRTierDetails totalBalance(@Nullable BigDecimal totalBalance)
    • getTotalBalance

      @Nullable public BigDecimal getTotalBalance()
      The total balance of funds in this APR tier.
      Returns:
      totalBalance
    • setTotalBalance

      public void setTotalBalance(@Nullable BigDecimal totalBalance)
    • putAdditionalProperty

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

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

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