Class Mapping

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-31T08:59:00.067927603+07:00[Asia/Bangkok]") public class Mapping extends Object
Mapping record is responsible for mapping a local account identifier with a remote system. When a booking comes in from the remote system, we will know how to properly assign funds to the correct accounts.
  • Field Details

  • Constructor Details

    • Mapping

      public Mapping()
  • Method Details

    • id

      public Mapping id(String id)
    • getId

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

      public void setId(String id)
    • createdDate

      public Mapping 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 Mapping 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 Mapping 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)
    • accountOwnerIdentifier

      public Mapping accountOwnerIdentifier(String accountOwnerIdentifier)
    • getAccountOwnerIdentifier

      @Nonnull @NotNull public @NotNull String getAccountOwnerIdentifier()
      The entity that owns this account.
      Returns:
      accountOwnerIdentifier
    • setAccountOwnerIdentifier

      public void setAccountOwnerIdentifier(String accountOwnerIdentifier)
    • localAccountIdentifier

      public Mapping localAccountIdentifier(String localAccountIdentifier)
    • getLocalAccountIdentifier

      @Nonnull @NotNull public @NotNull String getLocalAccountIdentifier()
      Local account identifier is the account identifier of the remote entity within TripPay
      Returns:
      localAccountIdentifier
    • setLocalAccountIdentifier

      public void setLocalAccountIdentifier(String localAccountIdentifier)
    • externalIdentifier

      public Mapping externalIdentifier(String externalIdentifier)
    • getExternalIdentifier

      @Nonnull @NotNull public @NotNull String getExternalIdentifier()
      External identifier is the identifier of this entity in a remote system
      Returns:
      externalIdentifier
    • setExternalIdentifier

      public void setExternalIdentifier(String externalIdentifier)
    • accountIdentifier

      public Mapping accountIdentifier(String accountIdentifier)
    • getAccountIdentifier

      @Nonnull @NotNull public @NotNull String getAccountIdentifier()
      Account identifier is the account doing the mapping
      Returns:
      accountIdentifier
    • setAccountIdentifier

      public void setAccountIdentifier(String accountIdentifier)
    • name

      public Mapping name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      Name of the entity being mapped
      Returns:
      name
    • setName

      public void setName(String name)
    • 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