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.
  • Field Details

  • Constructor Details

    • Account

      public Account()
  • Method Details

    • id

      public Account id(@Nullable String id)
    • getId

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

      public void setId(@Nullable String id)
    • createdDate

      public Account createdDate(@Nullable LocalDateTime createdDate)
    • getCreatedDate

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

      public void setCreatedDate(@Nullable LocalDateTime createdDate)
    • lastUpdate

      public Account lastUpdate(@Nullable LocalDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(@Nullable LocalDateTime lastUpdate)
    • version

      public Account version(@Nullable 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(@Nullable Long version)
    • type

      public Account type(@Nonnull 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(@Nonnull Account.TypeEnum type)
    • ownerType

      public Account ownerType(@Nonnull 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(@Nonnull Account.OwnerTypeEnum ownerType)
    • accountOwnerIdentifier

      public Account accountOwnerIdentifier(@Nonnull String accountOwnerIdentifier)
    • getAccountOwnerIdentifier

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getAccountOwnerIdentifier()
      The entity that created this account.
      Returns:
      accountOwnerIdentifier
    • setAccountOwnerIdentifier

      public void setAccountOwnerIdentifier(@Nonnull String accountOwnerIdentifier)
    • name

      public Account name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull String name)
    • legalName

      public Account legalName(@Nullable String legalName)
    • getLegalName

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

      public void setLegalName(@Nullable String legalName)
    • userIdentifier

      public Account userIdentifier(@Nonnull String userIdentifier)
    • getUserIdentifier

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getUserIdentifier()
      The authenticated user that owns this account.
      Returns:
      userIdentifier
    • setUserIdentifier

      public void setUserIdentifier(@Nonnull String userIdentifier)
    • owner

      public Account owner(@Nonnull Contact owner)
    • getOwner

      @Nonnull @NotNull @Valid public @NotNull @Valid Contact getOwner()
      The owning user entity.
      Returns:
      owner
    • setOwner

      public void setOwner(@Nonnull Contact owner)
    • accountEmail

      public Account accountEmail(@Nonnull String accountEmail)
    • getAccountEmail

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

      public void setAccountEmail(@Nonnull String accountEmail)
    • accountPhoneNumber

      public Account accountPhoneNumber(@Nullable String accountPhoneNumber)
    • getAccountPhoneNumber

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

      public void setAccountPhoneNumber(@Nullable String accountPhoneNumber)
    • description

      public Account description(@Nonnull String description)
    • getDescription

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

      public void setDescription(@Nonnull String description)
    • url

      public Account url(@Nonnull String url)
    • getUrl

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

      public void setUrl(@Nonnull String url)
    • status

      public Account status(@Nonnull Account.StatusEnum status)
    • getStatus

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

      public void setStatus(@Nonnull Account.StatusEnum status)
    • currencyCode

      public Account currencyCode(@Nonnull 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(@Nonnull String currencyCode)
    • address

      public Account address(@Nonnull Address address)
    • getAddress

      @Nonnull @NotNull @Valid public @NotNull @Valid Address getAddress()
      Account address. Usually the business address
      Returns:
      address
    • setAddress

      public void setAddress(@Nonnull Address address)
    • acquirers

      public Account acquirers(@Nullable List<Object> acquirers)
    • addAcquirersItem

      public Account addAcquirersItem(Object acquirersItem)
    • getAcquirers

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

      public void setAcquirers(@Nullable List<Object> acquirers)
    • bankAccounts

      public Account bankAccounts(@Nullable List<@Valid BankAccount> bankAccounts)
    • addBankAccountsItem

      public Account addBankAccountsItem(BankAccount bankAccountsItem)
    • getBankAccounts

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

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

      public Account ownerTypeIdentifier(@Nullable 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(@Nullable String ownerTypeIdentifier)
    • dob

      public Account dob(@Nullable LocalDate dob)
    • getDob

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

      public void setDob(@Nullable LocalDate dob)
    • tasks

      public Account tasks(@Nullable List<Object> tasks)
    • addTasksItem

      public Account addTasksItem(Object tasksItem)
    • getTasks

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

      public void setTasks(@Nullable List<Object> tasks)
    • preferredDisbursementType

      public Account preferredDisbursementType(@Nullable 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(@Nullable Account.PreferredDisbursementTypeEnum preferredDisbursementType)
    • vatID

      public Account vatID(@Nullable String vatID)
    • getVatID

      @Nullable public String getVatID()
      An optional VAT ID
      Returns:
      vatID
    • setVatID

      public void setVatID(@Nullable String vatID)
    • 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