Package io.trippay.sdk.payment.model
Class PayableContract
java.lang.Object
io.trippay.sdk.payment.model.PayableContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-05-28T20:08:09.948192613+07:00[Asia/Bangkok]")
public class PayableContract
extends Object
A contract record is what gets saved upon pricing and converted to a BookingContract on payment and subsequently removed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquirerList(List<Acquirer> acquirerList) addAcquirerListItem(Acquirer acquirerListItem) affiliate(AffiliateInformation affiliate) contract(PricedSupplierContractWithAcquirer contract) createdDate(LocalDateTime createdDate) displayCurrency(String displayCurrency) booleanGet acquirerList@NotNull @Valid AffiliateInformationGet affiliate@NotNull @Valid PricedSupplierContractWithAcquirerGet contractDatetime this record was first created@NotNull StringThe desired quotegetId()Document UUIDDate to attach TTL.Datetime this record was last updatedDepending on the acquirer, we put in required data for creating the payment.@NotNull StringWhere to redirect to after booking [in-]completeVersion property that shows how many times this document has been persisted.inthashCode()instant(LocalDateTime instant) lastUpdate(LocalDateTime lastUpdate) putMetadataItem(String key, String metadataItem) redirectUrl(String redirectUrl) voidsetAcquirerList(List<Acquirer> acquirerList) voidsetAffiliate(AffiliateInformation affiliate) voidvoidsetCreatedDate(LocalDateTime createdDate) voidsetDisplayCurrency(String displayCurrency) voidvoidsetInstant(LocalDateTime instant) voidsetLastUpdate(LocalDateTime lastUpdate) voidsetMetadata(Map<String, String> metadata) voidsetRedirectUrl(String redirectUrl) voidsetVersion(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_AFFILIATE
- See Also:
-
JSON_PROPERTY_DISPLAY_CURRENCY
- See Also:
-
JSON_PROPERTY_REDIRECT_URL
- See Also:
-
JSON_PROPERTY_CONTRACT
- See Also:
-
JSON_PROPERTY_ACQUIRER_LIST
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_INSTANT
- See Also:
-
-
Constructor Details
-
PayableContract
public PayableContract()
-
-
Method Details
-
id
-
getId
-
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
-
affiliate
-
getAffiliate
Get affiliate- Returns:
- affiliate
-
setAffiliate
-
displayCurrency
-
getDisplayCurrency
The desired quote- Returns:
- displayCurrency
-
setDisplayCurrency
-
redirectUrl
-
getRedirectUrl
Where to redirect to after booking [in-]complete- Returns:
- redirectUrl
-
setRedirectUrl
-
contract
-
getContract
Get contract- Returns:
- contract
-
setContract
-
acquirerList
-
addAcquirerListItem
-
getAcquirerList
-
setAcquirerList
-
metadata
-
putMetadataItem
-
getMetadata
-
setMetadata
-
instant
-
getInstant
Date to attach TTL. Self-deletes after 1 hour of unuse.- Returns:
- instant
-
setInstant
-
equals
-
hashCode
-
toString
-