Class Beneficiary

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class Beneficiary extends Object implements Serializable
Beneficiary of an IRA account. The same shape is used on account create, account update, and account responses.
See Also:
  • Field Details

  • Constructor Details

    • Beneficiary

      public Beneficiary()
  • Method Details

    • dateOfBirth

      public Beneficiary dateOfBirth(@Nonnull LocalDate dateOfBirth)
    • getDateOfBirth

      @Nonnull public LocalDate getDateOfBirth()
      Date of birth in YYYY-MM-DD format. It cannot be in the future.
      Returns:
      dateOfBirth
    • setDateOfBirth

      public void setDateOfBirth(@Nonnull LocalDate dateOfBirth)
    • familyName

      public Beneficiary familyName(@Nonnull String familyName)
    • getFamilyName

      @Nonnull public String getFamilyName()
      Beneficiary family name.
      Returns:
      familyName
    • setFamilyName

      public void setFamilyName(@Nonnull String familyName)
    • givenName

      public Beneficiary givenName(@Nonnull String givenName)
    • getGivenName

      @Nonnull public String getGivenName()
      Beneficiary given name.
      Returns:
      givenName
    • setGivenName

      public void setGivenName(@Nonnull String givenName)
    • middleName

      public Beneficiary middleName(@Nullable String middleName)
    • getMiddleName

      @Nullable public String getMiddleName()
      Beneficiary middle name. Omit this field or send null when the beneficiary has no middle name. An empty string is rejected. Account responses always include the field and use null when it is unset.
      Returns:
      middleName
    • setMiddleName

      public void setMiddleName(@Nullable String middleName)
    • relationship

      public Beneficiary relationship(@Nonnull Beneficiary.RelationshipEnum relationship)
    • getRelationship

      @Nonnull public Beneficiary.RelationshipEnum getRelationship()
      Relationship of the beneficiary to the account holder.
      Returns:
      relationship
    • setRelationship

      public void setRelationship(@Nonnull Beneficiary.RelationshipEnum relationship)
    • sharePct

      public Beneficiary sharePct(@Nonnull BigDecimal sharePct)
    • getSharePct

      @Nonnull public BigDecimal getSharePct()
      Share of the account allocated to this beneficiary, as a decimal string. The value must be greater than 0 and at most 100, with at most two decimal places.
      Returns:
      sharePct
    • setSharePct

      public void setSharePct(@Nonnull BigDecimal sharePct)
    • taxId

      public Beneficiary taxId(@Nonnull String taxId)
    • getTaxId

      @Nonnull public String getTaxId()
      Beneficiary tax identifier. Create and update requests require a USA SSN. Account responses always return the masked value `xxx-xx-xxxx`.
      Returns:
      taxId
    • setTaxId

      public void setTaxId(@Nonnull String taxId)
    • taxIdType

      public Beneficiary taxIdType(@Nonnull Beneficiary.TaxIdTypeEnum taxIdType)
    • getTaxIdType

      @Nonnull public Beneficiary.TaxIdTypeEnum getTaxIdType()
      Tax identifier type.
      Returns:
      taxIdType
    • setTaxIdType

      public void setTaxIdType(@Nonnull Beneficiary.TaxIdTypeEnum taxIdType)
    • type

      public Beneficiary type(@Nonnull Beneficiary.TypeEnum type)
    • getType

      @Nonnull public Beneficiary.TypeEnum getType()
      Whether this beneficiary is primary or contingent. An account with beneficiaries needs at least one primary beneficiary. The `share_pct` values of all primary beneficiaries must add up to 100, and the `share_pct` values of all contingent beneficiaries, if any, must also add up to 100.
      Returns:
      type
    • setType

      public void setType(@Nonnull Beneficiary.TypeEnum type)
    • putAdditionalProperty

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

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

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