Class PayableContract
java.lang.Object
io.trippay.sdk.payment.model.PayableContract
@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 PayableContract
extends Object
A contract record is what gets saved upon pricing and converted to a BookingContract on reactive and subsequently removed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquirerList(List<Object> acquirerList) addAcquirerListItem(Object acquirerListItem) affiliate(AffiliateInformation affiliate) contract(PricedSupplierContractWithAcquirer contract) createdDate(LocalDateTime createdDate) displayCurrency(String displayCurrency) booleanGet acquirerList@NotNull @Valid AffiliateInformationAffiliate account making the request@NotNull @Valid PricedSupplierContractWithAcquirerValidated and priced contractDatetime this record was first created@NotNull @Size(min=1) 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 @Size(min=1) 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<Object> 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
Affiliate account making the request- 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
Validated and priced 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
-