Class Trust
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Trust
-
public class Trust extends Object
Trust
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrust.TypeEnumType of trust.static classTrust.VatAbsenceReasonEnumThe reason for not providing a VAT number.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COUNTRY_OF_GOVERNING_LAWstatic StringJSON_PROPERTY_DATE_OF_INCORPORATIONstatic StringJSON_PROPERTY_DOING_BUSINESS_ASstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESSstatic StringJSON_PROPERTY_REGISTERED_ADDRESSstatic StringJSON_PROPERTY_REGISTRATION_NUMBERstatic StringJSON_PROPERTY_TAX_ABSENTstatic StringJSON_PROPERTY_TAX_INFORMATIONstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_UNDEFINED_BENEFICIARY_INFOstatic StringJSON_PROPERTY_VAT_ABSENCE_REASONstatic StringJSON_PROPERTY_VAT_NUMBER
-
Constructor Summary
Constructors Constructor Description Trust()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustaddTaxInformationItem(TaxInformation taxInformationItem)TrustaddUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBeneficiaryInfoItem)TrustcountryOfGoverningLaw(String countryOfGoverningLaw)TrustdateOfIncorporation(String dateOfIncorporation)TrustdoingBusinessAs(String doingBusinessAs)booleanequals(Object o)Return true if this Trust object is equal to o.static TrustfromJson(String jsonString)Create an instance of Trust given an JSON stringStringgetCountryOfGoverningLaw()The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.StringgetDateOfIncorporation()The date when the legal arrangement was incorporated in YYYY-MM-DD format.StringgetDoingBusinessAs()The registered name, if different from the `name`.StringgetName()The legal name.AddressgetPrincipalPlaceOfBusiness()Get principalPlaceOfBusinessAddressgetRegisteredAddress()Get registeredAddressStringgetRegistrationNumber()The registration number.BooleangetTaxAbsent()The tax information is absent.List<TaxInformation>getTaxInformation()The tax information of the entity.Trust.TypeEnumgetType()Type of trust.List<UndefinedBeneficiary>getUndefinedBeneficiaryInfo()The undefined beneficiary information of the entity.Trust.VatAbsenceReasonEnumgetVatAbsenceReason()The reason for not providing a VAT number.StringgetVatNumber()The VAT number.inthashCode()Trustname(String name)TrustprincipalPlaceOfBusiness(Address principalPlaceOfBusiness)TrustregisteredAddress(Address registeredAddress)TrustregistrationNumber(String registrationNumber)voidsetCountryOfGoverningLaw(String countryOfGoverningLaw)The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.voidsetDateOfIncorporation(String dateOfIncorporation)The date when the legal arrangement was incorporated in YYYY-MM-DD format.voidsetDoingBusinessAs(String doingBusinessAs)The registered name, if different from the `name`.voidsetName(String name)The legal name.voidsetPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)principalPlaceOfBusinessvoidsetRegisteredAddress(Address registeredAddress)registeredAddressvoidsetRegistrationNumber(String registrationNumber)The registration number.voidsetTaxAbsent(Boolean taxAbsent)The tax information is absent.voidsetTaxInformation(List<TaxInformation> taxInformation)The tax information of the entity.voidsetType(Trust.TypeEnum type)Type of trust.voidsetUndefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo)The undefined beneficiary information of the entity.voidsetVatAbsenceReason(Trust.VatAbsenceReasonEnum vatAbsenceReason)The reason for not providing a VAT number.voidsetVatNumber(String vatNumber)The VAT number.TrusttaxAbsent(Boolean taxAbsent)TrusttaxInformation(List<TaxInformation> taxInformation)StringtoJson()Convert an instance of Trust to an JSON stringStringtoString()Trusttype(Trust.TypeEnum type)TrustundefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo)TrustvatAbsenceReason(Trust.VatAbsenceReasonEnum vatAbsenceReason)TrustvatNumber(String vatNumber)
-
-
-
Field Detail
-
JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW
public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATE_OF_INCORPORATION
public static final String JSON_PROPERTY_DATE_OF_INCORPORATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOING_BUSINESS_AS
public static final String JSON_PROPERTY_DOING_BUSINESS_AS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS
public static final String JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTERED_ADDRESS
public static final String JSON_PROPERTY_REGISTERED_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTRATION_NUMBER
public static final String JSON_PROPERTY_REGISTRATION_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ABSENT
public static final String JSON_PROPERTY_TAX_ABSENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_INFORMATION
public static final String JSON_PROPERTY_TAX_INFORMATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO
public static final String JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VAT_ABSENCE_REASON
public static final String JSON_PROPERTY_VAT_ABSENCE_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VAT_NUMBER
public static final String JSON_PROPERTY_VAT_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCountryOfGoverningLaw
public String getCountryOfGoverningLaw()
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.- Returns:
- countryOfGoverningLaw
-
setCountryOfGoverningLaw
public void setCountryOfGoverningLaw(String countryOfGoverningLaw)
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.- Parameters:
countryOfGoverningLaw-
-
getDateOfIncorporation
public String getDateOfIncorporation()
The date when the legal arrangement was incorporated in YYYY-MM-DD format.- Returns:
- dateOfIncorporation
-
setDateOfIncorporation
public void setDateOfIncorporation(String dateOfIncorporation)
The date when the legal arrangement was incorporated in YYYY-MM-DD format.- Parameters:
dateOfIncorporation-
-
getDoingBusinessAs
public String getDoingBusinessAs()
The registered name, if different from the `name`.- Returns:
- doingBusinessAs
-
setDoingBusinessAs
public void setDoingBusinessAs(String doingBusinessAs)
The registered name, if different from the `name`.- Parameters:
doingBusinessAs-
-
getName
public String getName()
The legal name.- Returns:
- name
-
setName
public void setName(String name)
The legal name.- Parameters:
name-
-
getPrincipalPlaceOfBusiness
public Address getPrincipalPlaceOfBusiness()
Get principalPlaceOfBusiness- Returns:
- principalPlaceOfBusiness
-
setPrincipalPlaceOfBusiness
public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)
principalPlaceOfBusiness- Parameters:
principalPlaceOfBusiness-
-
getRegisteredAddress
public Address getRegisteredAddress()
Get registeredAddress- Returns:
- registeredAddress
-
setRegisteredAddress
public void setRegisteredAddress(Address registeredAddress)
registeredAddress- Parameters:
registeredAddress-
-
getRegistrationNumber
public String getRegistrationNumber()
The registration number.- Returns:
- registrationNumber
-
setRegistrationNumber
public void setRegistrationNumber(String registrationNumber)
The registration number.- Parameters:
registrationNumber-
-
getTaxAbsent
public Boolean getTaxAbsent()
The tax information is absent.- Returns:
- taxAbsent
-
setTaxAbsent
public void setTaxAbsent(Boolean taxAbsent)
The tax information is absent.- Parameters:
taxAbsent-
-
taxInformation
public Trust taxInformation(List<TaxInformation> taxInformation)
-
addTaxInformationItem
public Trust addTaxInformationItem(TaxInformation taxInformationItem)
-
getTaxInformation
public List<TaxInformation> getTaxInformation()
The tax information of the entity.- Returns:
- taxInformation
-
setTaxInformation
public void setTaxInformation(List<TaxInformation> taxInformation)
The tax information of the entity.- Parameters:
taxInformation-
-
type
public Trust type(Trust.TypeEnum type)
-
getType
public Trust.TypeEnum getType()
Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.- Returns:
- type
-
setType
public void setType(Trust.TypeEnum type)
Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.- Parameters:
type-
-
undefinedBeneficiaryInfo
public Trust undefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo)
-
addUndefinedBeneficiaryInfoItem
public Trust addUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBeneficiaryInfoItem)
-
getUndefinedBeneficiaryInfo
public List<UndefinedBeneficiary> getUndefinedBeneficiaryInfo()
The undefined beneficiary information of the entity.- Returns:
- undefinedBeneficiaryInfo
-
setUndefinedBeneficiaryInfo
public void setUndefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo)
The undefined beneficiary information of the entity.- Parameters:
undefinedBeneficiaryInfo-
-
vatAbsenceReason
public Trust vatAbsenceReason(Trust.VatAbsenceReasonEnum vatAbsenceReason)
-
getVatAbsenceReason
public Trust.VatAbsenceReasonEnum getVatAbsenceReason()
The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.- Returns:
- vatAbsenceReason
-
setVatAbsenceReason
public void setVatAbsenceReason(Trust.VatAbsenceReasonEnum vatAbsenceReason)
The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.- Parameters:
vatAbsenceReason-
-
getVatNumber
public String getVatNumber()
The VAT number.- Returns:
- vatNumber
-
setVatNumber
public void setVatNumber(String vatNumber)
The VAT number.- Parameters:
vatNumber-
-
equals
public boolean equals(Object o)
Return true if this Trust object is equal to o.
-
fromJson
public static Trust fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Trust given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Trust
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Trust
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Trust to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-