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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumRelationship of the beneficiary to the account holder.static enumTax identifier type.static enumWhether this beneficiary is primary or contingent. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondateOfBirth(LocalDate dateOfBirth) booleanfamilyName(String familyName) static BeneficiaryCreate an instance of Beneficiary given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Date of birth in YYYY-MM-DD format.Beneficiary family name.Beneficiary given name.Beneficiary middle name.Relationship of the beneficiary to the account holder.Share of the account allocated to this beneficiary, as a decimal string.getTaxId()Beneficiary tax identifier.Tax identifier type.getType()Whether this beneficiary is primary or contingent.inthashCode()middleName(String middleName) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.relationship(Beneficiary.RelationshipEnum relationship) voidsetDateOfBirth(LocalDate dateOfBirth) voidsetFamilyName(String familyName) voidsetGivenName(String givenName) voidsetMiddleName(String middleName) voidsetRelationship(Beneficiary.RelationshipEnum relationship) voidsetSharePct(BigDecimal sharePct) voidvoidsetTaxIdType(Beneficiary.TaxIdTypeEnum taxIdType) voidsetType(Beneficiary.TypeEnum type) sharePct(BigDecimal sharePct) taxIdType(Beneficiary.TaxIdTypeEnum taxIdType) toJson()Convert an instance of Beneficiary to an JSON stringtoString()type(Beneficiary.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DATE_OF_BIRTH
- See Also:
-
SERIALIZED_NAME_FAMILY_NAME
- See Also:
-
SERIALIZED_NAME_GIVEN_NAME
- See Also:
-
SERIALIZED_NAME_MIDDLE_NAME
- See Also:
-
SERIALIZED_NAME_RELATIONSHIP
- See Also:
-
SERIALIZED_NAME_SHARE_PCT
- See Also:
-
SERIALIZED_NAME_TAX_ID
- See Also:
-
SERIALIZED_NAME_TAX_ID_TYPE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Beneficiary
public Beneficiary()
-
-
Method Details
-
dateOfBirth
-
getDateOfBirth
Date of birth in YYYY-MM-DD format. It cannot be in the future.- Returns:
- dateOfBirth
-
setDateOfBirth
-
familyName
-
getFamilyName
Beneficiary family name.- Returns:
- familyName
-
setFamilyName
-
givenName
-
getGivenName
Beneficiary given name.- Returns:
- givenName
-
setGivenName
-
middleName
-
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
-
relationship
-
getRelationship
Relationship of the beneficiary to the account holder.- Returns:
- relationship
-
setRelationship
-
taxId
-
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
-
taxIdType
-
getTaxIdType
Tax identifier type.- Returns:
- taxIdType
-
setTaxIdType
-
type
-
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
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the Beneficiary instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of Beneficiary to an JSON string- Returns:
- JSON string
-