Class TravelRuleInfo
java.lang.Object
markets.alpaca.client.openapi.broker.model.TravelRuleInfo
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class TravelRuleInfo
extends Object
implements Serializable
Travel rule information pertaining to the wallet being whitelisted. Identify the destination by providing beneficiary_vasp_id, setting beneficiary_is_self_hosted to true, or providing beneficiary_manual_entry. Either beneficiary_entity_name (for legal entities) or beneficiary_given_name and beneficiary_family_name (for natural persons) must be provided.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeneficiaryCountryOfResidence(String beneficiaryCountryOfResidence) beneficiaryEntityName(String beneficiaryEntityName) beneficiaryFamilyName(String beneficiaryFamilyName) beneficiaryGeographicAddressBuildingNumber(String beneficiaryGeographicAddressBuildingNumber) beneficiaryGeographicAddressCountry(String beneficiaryGeographicAddressCountry) beneficiaryGeographicAddressPostCode(String beneficiaryGeographicAddressPostCode) beneficiaryGeographicAddressStreetName(String beneficiaryGeographicAddressStreetName) beneficiaryGeographicAddressTownName(String beneficiaryGeographicAddressTownName) beneficiaryGivenName(String beneficiaryGivenName) beneficiaryIsSelfHosted(Boolean beneficiaryIsSelfHosted) beneficiaryManualEntry(TravelRuleManualEntry beneficiaryManualEntry) beneficiaryVaspId(String beneficiaryVaspId) booleanstatic TravelRuleInfoCreate an instance of TravelRuleInfo given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ISO 3166-1 country code for the beneficiary's country of residence.The beneficiary's legal entity name (required for legal entities)The beneficiary's last name (required for natural persons)Building number in the beneficiary's geographic address.ISO 3166-1 alpha-2 or alpha-3 country code in the beneficiary's geographic address.Postal code in the beneficiary's geographic address.Street name in the beneficiary's geographic address.Town or city in the beneficiary's geographic address.The beneficiary's first name (required for natural persons)Beneficiary is receiving funds to a self-hosted / non-custodial walletGet beneficiaryManualEntryThe W3C Decentralized Identifier (DID) representing the beneficiary's VASP.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetBeneficiaryCountryOfResidence(String beneficiaryCountryOfResidence) voidsetBeneficiaryEntityName(String beneficiaryEntityName) voidsetBeneficiaryFamilyName(String beneficiaryFamilyName) voidsetBeneficiaryGeographicAddressBuildingNumber(String beneficiaryGeographicAddressBuildingNumber) voidsetBeneficiaryGeographicAddressCountry(String beneficiaryGeographicAddressCountry) voidsetBeneficiaryGeographicAddressPostCode(String beneficiaryGeographicAddressPostCode) voidsetBeneficiaryGeographicAddressStreetName(String beneficiaryGeographicAddressStreetName) voidsetBeneficiaryGeographicAddressTownName(String beneficiaryGeographicAddressTownName) voidsetBeneficiaryGivenName(String beneficiaryGivenName) voidsetBeneficiaryIsSelfHosted(Boolean beneficiaryIsSelfHosted) voidsetBeneficiaryManualEntry(TravelRuleManualEntry beneficiaryManualEntry) voidsetBeneficiaryVaspId(String beneficiaryVaspId) toJson()Convert an instance of TravelRuleInfo to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BENEFICIARY_COUNTRY_OF_RESIDENCE
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_ENTITY_NAME
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_FAMILY_NAME
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GEOGRAPHIC_ADDRESS_BUILDING_NUMBER
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GEOGRAPHIC_ADDRESS_COUNTRY
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GEOGRAPHIC_ADDRESS_POST_CODE
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GEOGRAPHIC_ADDRESS_STREET_NAME
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GEOGRAPHIC_ADDRESS_TOWN_NAME
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_GIVEN_NAME
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_IS_SELF_HOSTED
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_MANUAL_ENTRY
- See Also:
-
SERIALIZED_NAME_BENEFICIARY_VASP_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TravelRuleInfo
public TravelRuleInfo()
-
-
Method Details
-
beneficiaryCountryOfResidence
-
getBeneficiaryCountryOfResidence
ISO 3166-1 country code for the beneficiary's country of residence.- Returns:
- beneficiaryCountryOfResidence
-
setBeneficiaryCountryOfResidence
-
beneficiaryEntityName
-
getBeneficiaryEntityName
The beneficiary's legal entity name (required for legal entities)- Returns:
- beneficiaryEntityName
-
setBeneficiaryEntityName
-
beneficiaryFamilyName
-
getBeneficiaryFamilyName
The beneficiary's last name (required for natural persons)- Returns:
- beneficiaryFamilyName
-
setBeneficiaryFamilyName
-
beneficiaryGeographicAddressBuildingNumber
public TravelRuleInfo beneficiaryGeographicAddressBuildingNumber(@Nullable String beneficiaryGeographicAddressBuildingNumber) -
getBeneficiaryGeographicAddressBuildingNumber
Building number in the beneficiary's geographic address.- Returns:
- beneficiaryGeographicAddressBuildingNumber
-
setBeneficiaryGeographicAddressBuildingNumber
public void setBeneficiaryGeographicAddressBuildingNumber(@Nullable String beneficiaryGeographicAddressBuildingNumber) -
beneficiaryGeographicAddressCountry
public TravelRuleInfo beneficiaryGeographicAddressCountry(@Nullable String beneficiaryGeographicAddressCountry) -
getBeneficiaryGeographicAddressCountry
ISO 3166-1 alpha-2 or alpha-3 country code in the beneficiary's geographic address.- Returns:
- beneficiaryGeographicAddressCountry
-
setBeneficiaryGeographicAddressCountry
public void setBeneficiaryGeographicAddressCountry(@Nullable String beneficiaryGeographicAddressCountry) -
beneficiaryGeographicAddressPostCode
public TravelRuleInfo beneficiaryGeographicAddressPostCode(@Nullable String beneficiaryGeographicAddressPostCode) -
getBeneficiaryGeographicAddressPostCode
Postal code in the beneficiary's geographic address.- Returns:
- beneficiaryGeographicAddressPostCode
-
setBeneficiaryGeographicAddressPostCode
public void setBeneficiaryGeographicAddressPostCode(@Nullable String beneficiaryGeographicAddressPostCode) -
beneficiaryGeographicAddressStreetName
public TravelRuleInfo beneficiaryGeographicAddressStreetName(@Nullable String beneficiaryGeographicAddressStreetName) -
getBeneficiaryGeographicAddressStreetName
Street name in the beneficiary's geographic address.- Returns:
- beneficiaryGeographicAddressStreetName
-
setBeneficiaryGeographicAddressStreetName
public void setBeneficiaryGeographicAddressStreetName(@Nullable String beneficiaryGeographicAddressStreetName) -
beneficiaryGeographicAddressTownName
public TravelRuleInfo beneficiaryGeographicAddressTownName(@Nullable String beneficiaryGeographicAddressTownName) -
getBeneficiaryGeographicAddressTownName
Town or city in the beneficiary's geographic address.- Returns:
- beneficiaryGeographicAddressTownName
-
setBeneficiaryGeographicAddressTownName
public void setBeneficiaryGeographicAddressTownName(@Nullable String beneficiaryGeographicAddressTownName) -
beneficiaryGivenName
-
getBeneficiaryGivenName
The beneficiary's first name (required for natural persons)- Returns:
- beneficiaryGivenName
-
setBeneficiaryGivenName
-
beneficiaryIsSelfHosted
-
getBeneficiaryIsSelfHosted
Beneficiary is receiving funds to a self-hosted / non-custodial wallet- Returns:
- beneficiaryIsSelfHosted
-
setBeneficiaryIsSelfHosted
-
beneficiaryManualEntry
public TravelRuleInfo beneficiaryManualEntry(@Nullable TravelRuleManualEntry beneficiaryManualEntry) -
getBeneficiaryManualEntry
Get beneficiaryManualEntry- Returns:
- beneficiaryManualEntry
-
setBeneficiaryManualEntry
-
beneficiaryVaspId
-
getBeneficiaryVaspId
The W3C Decentralized Identifier (DID) representing the beneficiary's VASP.- Returns:
- beneficiaryVaspId
-
setBeneficiaryVaspId
-
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 TravelRuleInfo 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 TravelRuleInfo
-
fromJson
Create an instance of TravelRuleInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TravelRuleInfo
- Throws:
IOException- if the JSON string is invalid with respect to TravelRuleInfo
-
toJson
Convert an instance of TravelRuleInfo to an JSON string- Returns:
- JSON string
-