Package travel.wink.payment.model
Class Mapping
java.lang.Object
travel.wink.payment.model.Mapping
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-05-24T12:59:53.026693+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
ConstructorsConstructorDescriptionMapping()Mapping(String id, OffsetDateTime createdDate, OffsetDateTime lastUpdate, Long version) -
Method Summary
Modifier and TypeMethodDescriptionaccountIdentifier(String accountIdentifier) accountOwnerIdentifier(String accountOwnerIdentifier) booleanexternalIdentifier(String externalIdentifier) @NotNull StringAccount identifier is the account doing the mapping@NotNull StringThe entity that owns this account.@Valid OffsetDateTimeDatetime this record was first created@NotNull StringExternal identifier is the identifier of this entity in a remote systemgetId()Document UUID@Valid OffsetDateTimeDatetime this record was last updated@NotNull StringLocal account identifier is the platform identifier@NotNull StringgetName()Name of the entity being mappedVersion property that shows how many times this document has been persisted.inthashCode()localAccountIdentifier(String localAccountIdentifier) voidsetAccountIdentifier(String accountIdentifier) voidsetAccountOwnerIdentifier(String accountOwnerIdentifier) voidsetExternalIdentifier(String externalIdentifier) voidsetLocalAccountIdentifier(String localAccountIdentifier) voidtoString()
-
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() -
Mapping
-
-
Method Details
-
getId
Document UUID- Returns:
- id
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
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
-
accountOwnerIdentifier
-
getAccountOwnerIdentifier
The entity that owns this account.- Returns:
- accountOwnerIdentifier
-
setAccountOwnerIdentifier
-
localAccountIdentifier
-
getLocalAccountIdentifier
Local account identifier is the platform identifier- 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
-