Class Account

java.lang.Object
travel.wink.sdk.payment.model.Account

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-03T20:10:53.210431+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(UUID id)
    • getId

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

      public void setId(UUID id)
    • createdDate

      public Account createdDate(OffsetDateTime createdDate)
    • getCreatedDate

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

      public void setCreatedDate(OffsetDateTime createdDate)
    • lastUpdate

      public Account lastUpdate(OffsetDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(OffsetDateTime 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)
    • 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

      @Nonnull @NotNull public @NotNull 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)
    • integrations

      public Account integrations(List<Integration> integrations)
    • addIntegrationsItem

      public Account addIntegrationsItem(Integration integrationsItem)
    • getIntegrations

      @Nullable @Valid public @Valid List<Integration> getIntegrations()
      Get integrations
      Returns:
      integrations
    • setIntegrations

      public void setIntegrations(List<Integration> integrations)
    • 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(OffsetDateTime dob)
    • getDob

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

      public void setDob(OffsetDateTime dob)
    • 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