Class Account
java.lang.Object
io.trippay.sdk.payment.model.Account
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-06-26T20:12:05.578754358+07:00[Asia/Bangkok]",
comments="Generator version: 7.13.0")
public class Account
extends Object
Account holds KYC, bank account and contact information of an affiliate, supplier, reactive or any type of entity that is to be a beneficiary of funds through the payment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of account owner tells us whether ths account is managed by a company or an individual.static enumThe preferred method which the account holder wishes to be paid.static enumAccount status shows if it's approvedstatic enumType of account tells us what the account is capable of. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountEmail(String accountEmail) accountOwnerIdentifier(String accountOwnerIdentifier) accountPhoneNumber(String accountPhoneNumber) addAcquirersItem(Object acquirersItem) addBankAccountsItem(BankAccount bankAccountsItem) addTasksItem(Object tasksItem) bankAccounts(List<@Valid BankAccount> bankAccounts) createdDate(LocalDateTime createdDate) currencyCode(String currencyCode) description(String description) boolean@NotNull @Size(min=1) StringAccount email is where we will send KYC documents and other account specific mailings@NotNull @Size(min=1) StringThe entity that created this account.Account phone number is mostly used for KYC purchasesGet acquirers@NotNull @Valid AddressAccount address.@Valid List<@Valid BankAccount> Get bankAccountsDatetime this record was first created@NotNull @Size(min=3,max=3) StringAccount's main currency.@NotNull StringShort company / person description.@Valid LocalDategetDob()This is the individual's date of birth.getId()Document UUIDDatetime this record was last updatedLegal name of entity if other than name@NotNull @Size(min=1) StringgetName()Name of company / full name of person@NotNull @Valid ContactgetOwner()The owning user entity.@NotNull Account.OwnerTypeEnumType of account owner tells us whether ths account is managed by a company or an individual.This is the tax identification number (TIN) for individuals and entity identification number (EIN) for companies.The preferred method which the account holder wishes to be paid.@NotNull Account.StatusEnumAccount status shows if it's approvedgetTasks()Get tasks@NotNull Account.TypeEnumgetType()Type of account tells us what the account is capable of.@NotNull StringgetUrl()AffiliateAccountLightweight website.@NotNull @Size(min=1) StringThe authenticated user that owns this account.getVatID()An optional VAT IDVersion property that shows how many times this document has been persisted.inthashCode()lastUpdate(LocalDateTime lastUpdate) ownerType(Account.OwnerTypeEnum ownerType) ownerTypeIdentifier(String ownerTypeIdentifier) preferredDisbursementType(Account.PreferredDisbursementTypeEnum preferredDisbursementType) voidsetAccountEmail(String accountEmail) voidsetAccountOwnerIdentifier(String accountOwnerIdentifier) voidsetAccountPhoneNumber(String accountPhoneNumber) voidsetAcquirers(List<Object> acquirers) voidsetAddress(Address address) voidsetBankAccounts(List<@Valid BankAccount> bankAccounts) voidsetCreatedDate(LocalDateTime createdDate) voidsetCurrencyCode(String currencyCode) voidsetDescription(String description) voidvoidvoidsetLastUpdate(LocalDateTime lastUpdate) voidsetLegalName(String legalName) voidvoidvoidsetOwnerType(Account.OwnerTypeEnum ownerType) voidsetOwnerTypeIdentifier(String ownerTypeIdentifier) voidsetPreferredDisbursementType(Account.PreferredDisbursementTypeEnum preferredDisbursementType) voidsetStatus(Account.StatusEnum status) voidvoidsetType(Account.TypeEnum type) voidvoidsetUserIdentifier(String userIdentifier) voidvoidsetVersion(Long version) status(Account.StatusEnum status) toString()type(Account.TypeEnum type) userIdentifier(String userIdentifier)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_DATE
- See Also:
-
JSON_PROPERTY_LAST_UPDATE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_OWNER_TYPE
- See Also:
-
JSON_PROPERTY_ACCOUNT_OWNER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_LEGAL_NAME
- See Also:
-
JSON_PROPERTY_USER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_OWNER
- See Also:
-
JSON_PROPERTY_ACCOUNT_EMAIL
- See Also:
-
JSON_PROPERTY_ACCOUNT_PHONE_NUMBER
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_CURRENCY_CODE
- See Also:
-
JSON_PROPERTY_ADDRESS
- See Also:
-
JSON_PROPERTY_ACQUIRERS
- See Also:
-
JSON_PROPERTY_BANK_ACCOUNTS
- See Also:
-
JSON_PROPERTY_OWNER_TYPE_IDENTIFIER
- See Also:
-
JSON_PROPERTY_DOB
- See Also:
-
JSON_PROPERTY_TASKS
- See Also:
-
JSON_PROPERTY_PREFERRED_DISBURSEMENT_TYPE
- See Also:
-
JSON_PROPERTY_VAT_I_D
- See Also:
-
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
id
-
getId
-
setId
-
createdDate
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
setCreatedDate
-
lastUpdate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
setLastUpdate
-
version
-
getVersion
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.- Returns:
- version
-
setVersion
-
type
-
getType
Type of account tells us what the account is capable of.- Returns:
- type
-
setType
-
ownerType
-
getOwnerType
Type of account owner tells us whether ths account is managed by a company or an individual.- Returns:
- ownerType
-
setOwnerType
-
accountOwnerIdentifier
-
getAccountOwnerIdentifier
The entity that created this account.- Returns:
- accountOwnerIdentifier
-
setAccountOwnerIdentifier
-
name
-
getName
Name of company / full name of person- Returns:
- name
-
setName
-
legalName
-
getLegalName
-
setLegalName
-
userIdentifier
-
getUserIdentifier
The authenticated user that owns this account.- Returns:
- userIdentifier
-
setUserIdentifier
-
owner
-
getOwner
The owning user entity.- Returns:
- owner
-
setOwner
-
accountEmail
-
getAccountEmail
Account email is where we will send KYC documents and other account specific mailings- Returns:
- accountEmail
-
setAccountEmail
-
accountPhoneNumber
-
getAccountPhoneNumber
Account phone number is mostly used for KYC purchases- Returns:
- accountPhoneNumber
-
setAccountPhoneNumber
-
description
-
getDescription
Short company / person description.- Returns:
- description
-
setDescription
-
url
-
getUrl
AffiliateAccountLightweight website. If private person with no personal website, link to main social network account.- Returns:
- url
-
setUrl
-
status
-
getStatus
Account status shows if it's approved- Returns:
- status
-
setStatus
-
currencyCode
-
getCurrencyCode
Account's main currency.- Returns:
- currencyCode
-
setCurrencyCode
-
address
-
getAddress
Account address. Usually the business address- Returns:
- address
-
setAddress
-
acquirers
-
addAcquirersItem
-
getAcquirers
-
setAcquirers
-
bankAccounts
-
addBankAccountsItem
-
getBankAccounts
Get bankAccounts- Returns:
- bankAccounts
-
setBankAccounts
-
ownerTypeIdentifier
-
getOwnerTypeIdentifier
This is the tax identification number (TIN) for individuals and entity identification number (EIN) for companies.- Returns:
- ownerTypeIdentifier
-
setOwnerTypeIdentifier
-
dob
-
getDob
This is the individual's date of birth.- Returns:
- dob
-
setDob
-
tasks
-
addTasksItem
-
getTasks
-
setTasks
-
preferredDisbursementType
public Account preferredDisbursementType(@Nullable Account.PreferredDisbursementTypeEnum preferredDisbursementType) -
getPreferredDisbursementType
The preferred method which the account holder wishes to be paid. This will play a role if we choose to automate the payout flow.- Returns:
- preferredDisbursementType
-
setPreferredDisbursementType
public void setPreferredDisbursementType(@Nullable Account.PreferredDisbursementTypeEnum preferredDisbursementType) -
vatID
-
getVatID
-
setVatID
-
equals
-
hashCode
-
toString
-