Class Mapping

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

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

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

      public void setId(UUID id)
    • createdDate

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

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

      public void setAccountOwnerIdentifier(UUID accountOwnerIdentifier)
    • localAccountIdentifier

      public Mapping localAccountIdentifier(UUID localAccountIdentifier)
    • getLocalAccountIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getLocalAccountIdentifier()
      Local account identifier is the payment identifier
      Returns:
      localAccountIdentifier
    • setLocalAccountIdentifier

      public void setLocalAccountIdentifier(UUID 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(UUID accountIdentifier)
    • getAccountIdentifier

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

      public void setAccountIdentifier(UUID 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