Package io.trippay.sdk.payment.model
Class Account
java.lang.Object
io.trippay.sdk.payment.model.Account
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-08-12T10:13:49.239999511+07:00[Asia/Bangkok]")
public class Account
extends Object
Account holds KYC, bank account and contact information of an affiliate, supplier, payment 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountEmail(String accountEmail) accountOwnerIdentifier(String accountOwnerIdentifier) accountPhoneNumber(String accountPhoneNumber) addAcquirersItem(Acquirer acquirersItem) addBankAccountsItem(BankAccount bankAccountsItem) addTasksItem(AccountStatusEntry tasksItem) bankAccounts(List<BankAccount> bankAccounts) createdDate(LocalDateTime createdDate) currencyCode(String currencyCode) description(String description) boolean@NotNull StringAccount email is where we will send KYC documents and other account specific mailings@NotNull StringThe entity that created this account.Account phone number is mostly used for KYC purchasesGet acquirers@NotNull @Valid AddressGet address@Valid List<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 StringgetName()Name of company / full name of person@NotNull @Valid ContactgetOwner()Get owner@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.Account status shows if it's approved@Valid List<AccountStatusEntry> getTasks()Get tasks@NotNull Account.TypeEnumgetType()Type of account tells us what the account is capable of.@NotNull StringgetUrl()Company website.@NotNull StringThe authenticated user that owns this account.Version 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<Acquirer> acquirers) voidsetAddress(Address address) voidsetBankAccounts(List<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) voidsetTasks(List<AccountStatusEntry> tasks) voidsetType(Account.TypeEnum type) voidvoidsetUserIdentifier(String userIdentifier) voidsetVersion(Long version) status(Account.StatusEnum status) tasks(List<AccountStatusEntry> tasks) 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:
-
-
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
-
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
Company 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
-
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(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(Account.PreferredDisbursementTypeEnum preferredDisbursementType) -
equals
-
hashCode
-
toString
-