Package io.trippay.sdk.payment.model
Class Mapping
java.lang.Object
io.trippay.sdk.payment.model.Mapping
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-10-30T09:45:07.381511750+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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountIdentifier(String accountIdentifier) accountOwnerIdentifier(String accountOwnerIdentifier) createdDate(LocalDateTime createdDate) booleanexternalIdentifier(String externalIdentifier) @NotNull StringAccount identifier is the account doing the mapping@NotNull StringThe entity that owns this account.Datetime this record was first created@NotNull StringExternal identifier is the identifier of this entity in a remote systemgetId()Document UUIDDatetime this record was last updated@NotNull StringLocal account identifier is the account identifier of the remote entity within TripPay@NotNull StringgetName()Name of the entity being mappedVersion property that shows how many times this document has been persisted.inthashCode()lastUpdate(LocalDateTime lastUpdate) localAccountIdentifier(String localAccountIdentifier) voidsetAccountIdentifier(String accountIdentifier) voidsetAccountOwnerIdentifier(String accountOwnerIdentifier) voidsetCreatedDate(LocalDateTime createdDate) voidsetExternalIdentifier(String externalIdentifier) voidvoidsetLastUpdate(LocalDateTime lastUpdate) voidsetLocalAccountIdentifier(String localAccountIdentifier) voidvoidsetVersion(Long version) toString()
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_DATE
- See Also:
-
JSON_PROPERTY_LAST_UPDATE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_ACCOUNT_OWNER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_LOCAL_ACCOUNT_IDENTIFIER
- See Also:
-
JSON_PROPERTY_EXTERNAL_IDENTIFIER
- See Also:
-
JSON_PROPERTY_ACCOUNT_IDENTIFIER
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
Mapping
public Mapping()
-
-
Method Details
-
id
-
getId
Document UUID- Returns:
- id
-
setId
-
createdDate
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
setCreatedDate
-
lastUpdate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
setLastUpdate
-
version
-
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
-
accountOwnerIdentifier
-
getAccountOwnerIdentifier
The entity that owns this account.- Returns:
- accountOwnerIdentifier
-
setAccountOwnerIdentifier
-
localAccountIdentifier
-
getLocalAccountIdentifier
Local account identifier is the account identifier of the remote entity within TripPay- Returns:
- localAccountIdentifier
-
setLocalAccountIdentifier
-
externalIdentifier
-
getExternalIdentifier
External identifier is the identifier of this entity in a remote system- Returns:
- externalIdentifier
-
setExternalIdentifier
-
accountIdentifier
-
getAccountIdentifier
Account identifier is the account doing the mapping- Returns:
- accountIdentifier
-
setAccountIdentifier
-
name
-
getName
Name of the entity being mapped- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-