Class Mapping

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

@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 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(@Nullable String id)
    • getId

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

      public void setId(@Nullable String id)
    • createdDate

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

      public Mapping accountOwnerIdentifier(@Nonnull String accountOwnerIdentifier)
    • getAccountOwnerIdentifier

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

      public void setAccountOwnerIdentifier(@Nonnull String accountOwnerIdentifier)
    • localAccountIdentifier

      public Mapping localAccountIdentifier(@Nonnull String localAccountIdentifier)
    • getLocalAccountIdentifier

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

      public void setLocalAccountIdentifier(@Nonnull String localAccountIdentifier)
    • externalIdentifier

      public Mapping externalIdentifier(@Nonnull String externalIdentifier)
    • getExternalIdentifier

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

      public void setExternalIdentifier(@Nonnull String externalIdentifier)
    • accountIdentifier

      public Mapping accountIdentifier(@Nonnull String accountIdentifier)
    • getAccountIdentifier

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

      public void setAccountIdentifier(@Nonnull String accountIdentifier)
    • name

      public Mapping name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull 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