Class Account

java.lang.Object
io.trippay.sdk.payment.model.Account

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-08T10:34:54.959445034+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.
  • Field Details

  • Constructor Details

    • Account

      public Account()
  • Method Details

    • id

      public Account id(String id)
    • getId

      @Nullable public String getId()
      Document UUID
      Returns:
      id
    • setId

      public void setId(String id)
    • createdDate

      public Account createdDate(LocalDateTime createdDate)
    • getCreatedDate

      @Nullable @Valid public LocalDateTime getCreatedDate()
      Datetime this record was first created
      Returns:
      createdDate
    • setCreatedDate

      public void setCreatedDate(LocalDateTime createdDate)
    • lastUpdate

      public Account lastUpdate(LocalDateTime lastUpdate)
    • getLastUpdate

      @Nullable @Valid public LocalDateTime getLastUpdate()
      Datetime this record was last updated
      Returns:
      lastUpdate
    • setLastUpdate

      public void setLastUpdate(LocalDateTime lastUpdate)
    • version

      public Account version(Long version)
    • getVersion

      @Nullable public Long 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

      public void setVersion(Long version)
    • type

      public Account type(Account.TypeEnum type)
    • getType

      @Nonnull @NotNull public @NotNull Account.TypeEnum getType()
      Type of account tells us what the account is capable of.
      Returns:
      type
    • setType

      public void setType(Account.TypeEnum type)
    • ownerType

      public Account ownerType(Account.OwnerTypeEnum ownerType)
    • getOwnerType

      @Nonnull @NotNull public @NotNull Account.OwnerTypeEnum getOwnerType()
      Type of account owner tells us whether ths account is managed by a company or an individual.
      Returns:
      ownerType
    • setOwnerType

      public void setOwnerType(Account.OwnerTypeEnum ownerType)
    • accountOwnerIdentifier

      public Account accountOwnerIdentifier(UUID accountOwnerIdentifier)
    • getAccountOwnerIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getAccountOwnerIdentifier()
      The entity that created this account.
      Returns:
      accountOwnerIdentifier
    • setAccountOwnerIdentifier

      public void setAccountOwnerIdentifier(UUID accountOwnerIdentifier)
    • name

      public Account name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      Name of company / full name of person
      Returns:
      name
    • setName

      public void setName(String name)
    • legalName

      public Account legalName(String legalName)
    • getLegalName

      @Nullable public String getLegalName()
      Legal name of entity if other than name
      Returns:
      legalName
    • setLegalName

      public void setLegalName(String legalName)
    • userIdentifier

      public Account userIdentifier(UUID userIdentifier)
    • getUserIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getUserIdentifier()
      The authenticated user that owns this account.
      Returns:
      userIdentifier
    • setUserIdentifier

      public void setUserIdentifier(UUID userIdentifier)
    • owner

      public Account owner(Contact owner)
    • getOwner

      @Nonnull @NotNull @Valid public @NotNull @Valid Contact getOwner()
      Get owner
      Returns:
      owner
    • setOwner

      public void setOwner(Contact owner)
    • accountEmail

      public Account accountEmail(String accountEmail)
    • getAccountEmail

      @Nonnull @NotNull public @NotNull String getAccountEmail()
      Account email is where we will send KYC documents and other account specific mailings
      Returns:
      accountEmail
    • setAccountEmail

      public void setAccountEmail(String accountEmail)
    • accountPhoneNumber

      public Account accountPhoneNumber(String accountPhoneNumber)
    • getAccountPhoneNumber

      @Nullable public String getAccountPhoneNumber()
      Account phone number is mostly used for KYC purchases
      Returns:
      accountPhoneNumber
    • setAccountPhoneNumber

      public void setAccountPhoneNumber(String accountPhoneNumber)
    • description

      public Account description(String description)
    • getDescription

      @Nonnull @NotNull public @NotNull String getDescription()
      Short company / person description.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • url

      public Account url(String url)
    • getUrl

      @Nonnull @NotNull public @NotNull String getUrl()
      Company website. If private person with no personal website, link to main social network account.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • status

      public Account status(Account.StatusEnum status)
    • getStatus

      @Nullable public Account.StatusEnum getStatus()
      Account status shows if it's approved
      Returns:
      status
    • setStatus

      public void setStatus(Account.StatusEnum status)
    • currencyCode

      public Account currencyCode(String currencyCode)
    • getCurrencyCode

      @Nonnull @NotNull @Size(min=3, max=3) public @NotNull @Size(min=3,max=3) String getCurrencyCode()
      Account's main currency.
      Returns:
      currencyCode
    • setCurrencyCode

      public void setCurrencyCode(String currencyCode)
    • address

      public Account address(Address address)
    • getAddress

      @Nonnull @NotNull @Valid public @NotNull @Valid Address getAddress()
      Get address
      Returns:
      address
    • setAddress

      public void setAddress(Address address)
    • acquirers

      public Account acquirers(List<Acquirer> acquirers)
    • addAcquirersItem

      public Account addAcquirersItem(Acquirer acquirersItem)
    • getAcquirers

      @Nullable @Valid public @Valid List<Acquirer> getAcquirers()
      Get acquirers
      Returns:
      acquirers
    • setAcquirers

      public void setAcquirers(List<Acquirer> acquirers)
    • bankAccounts

      public Account bankAccounts(List<BankAccount> bankAccounts)
    • addBankAccountsItem

      public Account addBankAccountsItem(BankAccount bankAccountsItem)
    • getBankAccounts

      @Nullable @Valid public @Valid List<BankAccount> getBankAccounts()
      Get bankAccounts
      Returns:
      bankAccounts
    • setBankAccounts

      public void setBankAccounts(List<BankAccount> bankAccounts)
    • ownerTypeIdentifier

      public Account ownerTypeIdentifier(String ownerTypeIdentifier)
    • getOwnerTypeIdentifier

      @Nullable public String getOwnerTypeIdentifier()
      This is the tax identification number (TIN) for individuals and entity identification number (EIN) for companies.
      Returns:
      ownerTypeIdentifier
    • setOwnerTypeIdentifier

      public void setOwnerTypeIdentifier(String ownerTypeIdentifier)
    • dob

      public Account dob(LocalDate dob)
    • getDob

      @Nullable @Valid public @Valid LocalDate getDob()
      This is the individual's date of birth.
      Returns:
      dob
    • setDob

      public void setDob(LocalDate dob)
    • tasks

      public Account tasks(List<AccountStatusEntry> tasks)
    • addTasksItem

      public Account addTasksItem(AccountStatusEntry tasksItem)
    • getTasks

      @Nullable @Valid public @Valid List<AccountStatusEntry> getTasks()
      Get tasks
      Returns:
      tasks
    • setTasks

      public void setTasks(List<AccountStatusEntry> tasks)
    • preferredDisbursementType

      public Account preferredDisbursementType(Account.PreferredDisbursementTypeEnum preferredDisbursementType)
    • getPreferredDisbursementType

      @Nullable public Account.PreferredDisbursementTypeEnum 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object