Class BookingContract
java.lang.Object
io.trippay.sdk.payment.acquiring.model.BookingContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-03-18T09:26:01.256708606+07:00[Asia/Bangkok]")
public class BookingContract
extends Object
A booking record is the contract that got created after a successful payment was submitted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReason type.static enumType of entity that cancelled the booking. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemListItem(BookingContractItem itemListItem) addRefundsItem(Refund refundsItem) cancellableBySupplier(Boolean cancellableBySupplier) cancellableByTraveler(Boolean cancellableByTraveler) cancellableWithNoCharges(Boolean cancellableWithNoCharges) cancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges) cancellationType(BookingContract.CancellationTypeEnum cancellationType) cancelledOn(LocalDateTime cancelledOn) canceller(BookingContract.CancellerEnum canceller) cancellerUserIdentifier(String cancellerUserIdentifier) cancelReason(String cancelReason) capturePriceQuote(Quote capturePriceQuote) createdDate(LocalDateTime createdDate) displayPriceQuote(Quote displayPriceQuote) booleanexternalSupplierBookingCode(String externalSupplierBookingCode) externalSupplierIdentifier(String externalSupplierIdentifier) fundsAddedToLedger(Boolean fundsAddedToLedger) fundsProcessed(Boolean fundsProcessed) Whether the booking can still be cancelled completely by the supplier.Whether the booking can still be cancelled completely by the traveller.Whether the cancellation comes at no cost to the traveler.Whether a cancellation comes with partial charges.Reason type.@NotNull BooleanWhether the booking was cancelled.When the booking was cancelled.Type of entity that cancelled the booking.User identifier that cancelled the entity.Reason for cancellation.@NotNull @Valid QuoteGet capturePriceQuoteDatetime this record was first created@NotNull @Valid QuoteGet displayPriceQuoteExternal booking code generated by the callerContract creator can choose to geoname this record with her own identifierWhether the contract has been added to the ledger; rady for payout.Whether a funds transfer request has been created for this booking.getId()Document UUID@NotNull StringUnique identifier used to track the contract.@NotNull @Valid QuoteGet internalPriceQuote@NotNull StringCaller's IP address@NotNull @Valid @Size(min=1,max=2147483647) List<BookingContractItem>Holds one booking line item for a specific supplier.Datetime this record was last updated@Valid BookingContractItemGet lodging@Valid ItineraryGet lodgingItinerary@NotNull @Valid BookingContractPaymentDetailsGet paymentGet refundableCapturePriceGet refundableDisplayPriceGet refundableInternalPriceGet refundableSourcePriceGet refundableSupplierPriceGet refunded@Valid MoneysGet refundedCapturePrice@Valid MoneysGet refundedDisplayPrice@Valid MoneysGet refundedInternalPrice@Valid MoneysGet refundedSourcePrice@Valid MoneysGet refundedSupplierPriceAn optional list of refunds that occurred with this booking.@NotNull StringWhere did the booking occur@NotNull @Valid UUIDSupplier identifier@NotNull StringSupplier name@NotNull @Valid QuoteGet supplierPriceQuote@Valid MoneysGet totalCapturePrice@Valid MoneysGet totalCapturePriceAfterRefund@Valid MoneysGet totalDisplayPrice@Valid MoneysGet totalDisplayPriceAfterRefund@Valid MoneysGet totalInternalPrice@Valid MoneysGet totalInternalPriceAfterRefund@Valid MoneysGet totalSourcePrice@Valid MoneysGet totalSourcePriceAfterRefund@Valid MoneysGet totalSupplierPrice@Valid MoneysGet totalSupplierPriceAfterRefundTotal amount of tokens minted on this contract.@NotNull StringWay to track which booking contracts were made togetherVersion property that shows how many times this document has been persisted.inthashCode()identifier(String identifier) internalPriceQuote(Quote internalPriceQuote) itemList(List<BookingContractItem> itemList) lastUpdate(LocalDateTime lastUpdate) lodging(BookingContractItem lodging) lodgingItinerary(Itinerary lodgingItinerary) payment(BookingContractPaymentDetails payment) refundableCapturePrice(Boolean refundableCapturePrice) refundableDisplayPrice(Boolean refundableDisplayPrice) refundableInternalPrice(Boolean refundableInternalPrice) refundableSourcePrice(Boolean refundableSourcePrice) refundableSupplierPrice(Boolean refundableSupplierPrice) refundedCapturePrice(Moneys refundedCapturePrice) refundedDisplayPrice(Moneys refundedDisplayPrice) refundedInternalPrice(Moneys refundedInternalPrice) refundedSourcePrice(Moneys refundedSourcePrice) refundedSupplierPrice(Moneys refundedSupplierPrice) voidsetCancellableBySupplier(Boolean cancellableBySupplier) voidsetCancellableByTraveler(Boolean cancellableByTraveler) voidsetCancellableWithNoCharges(Boolean cancellableWithNoCharges) voidsetCancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges) voidsetCancellationType(BookingContract.CancellationTypeEnum cancellationType) voidsetCancelled(Boolean cancelled) voidsetCancelledOn(LocalDateTime cancelledOn) voidsetCanceller(BookingContract.CancellerEnum canceller) voidsetCancellerUserIdentifier(String cancellerUserIdentifier) voidsetCancelReason(String cancelReason) voidsetCapturePriceQuote(Quote capturePriceQuote) voidsetCreatedDate(LocalDateTime createdDate) voidsetDisplayPriceQuote(Quote displayPriceQuote) voidsetExternalSupplierBookingCode(String externalSupplierBookingCode) voidsetExternalSupplierIdentifier(String externalSupplierIdentifier) voidsetFundsAddedToLedger(Boolean fundsAddedToLedger) voidsetFundsProcessed(Boolean fundsProcessed) voidvoidsetIdentifier(String identifier) voidsetInternalPriceQuote(Quote internalPriceQuote) voidsetIpAddress(String ipAddress) voidsetItemList(List<BookingContractItem> itemList) voidsetLastUpdate(LocalDateTime lastUpdate) voidsetLodging(BookingContractItem lodging) voidsetLodgingItinerary(Itinerary lodgingItinerary) voidsetPayment(BookingContractPaymentDetails payment) voidsetRefundableCapturePrice(Boolean refundableCapturePrice) voidsetRefundableDisplayPrice(Boolean refundableDisplayPrice) voidsetRefundableInternalPrice(Boolean refundableInternalPrice) voidsetRefundableSourcePrice(Boolean refundableSourcePrice) voidsetRefundableSupplierPrice(Boolean refundableSupplierPrice) voidsetRefunded(Boolean refunded) voidsetRefundedCapturePrice(Moneys refundedCapturePrice) voidsetRefundedDisplayPrice(Moneys refundedDisplayPrice) voidsetRefundedInternalPrice(Moneys refundedInternalPrice) voidsetRefundedSourcePrice(Moneys refundedSourcePrice) voidsetRefundedSupplierPrice(Moneys refundedSupplierPrice) voidsetRefunds(List<Refund> refunds) voidsetSourceUrl(String sourceUrl) voidsetSupplierIdentifier(UUID supplierIdentifier) voidsetSupplierName(String supplierName) voidsetSupplierPriceQuote(Quote supplierPriceQuote) voidsetTotalCapturePrice(Moneys totalCapturePrice) voidsetTotalCapturePriceAfterRefund(Moneys totalCapturePriceAfterRefund) voidsetTotalDisplayPrice(Moneys totalDisplayPrice) voidsetTotalDisplayPriceAfterRefund(Moneys totalDisplayPriceAfterRefund) voidsetTotalInternalPrice(Moneys totalInternalPrice) voidsetTotalInternalPriceAfterRefund(Moneys totalInternalPriceAfterRefund) voidsetTotalSourcePrice(Moneys totalSourcePrice) voidsetTotalSourcePriceAfterRefund(Moneys totalSourcePriceAfterRefund) voidsetTotalSupplierPrice(Moneys totalSupplierPrice) voidsetTotalSupplierPriceAfterRefund(Moneys totalSupplierPriceAfterRefund) voidsetTotalTokensEarned(Long totalTokensEarned) voidsetTraceId(String traceId) voidsetVersion(Long version) supplierIdentifier(UUID supplierIdentifier) supplierName(String supplierName) supplierPriceQuote(Quote supplierPriceQuote) toString()totalCapturePrice(Moneys totalCapturePrice) totalCapturePriceAfterRefund(Moneys totalCapturePriceAfterRefund) totalDisplayPrice(Moneys totalDisplayPrice) totalDisplayPriceAfterRefund(Moneys totalDisplayPriceAfterRefund) totalInternalPrice(Moneys totalInternalPrice) totalInternalPriceAfterRefund(Moneys totalInternalPriceAfterRefund) totalSourcePrice(Moneys totalSourcePrice) totalSourcePriceAfterRefund(Moneys totalSourcePriceAfterRefund) totalSupplierPrice(Moneys totalSupplierPrice) totalSupplierPriceAfterRefund(Moneys totalSupplierPriceAfterRefund) totalTokensEarned(Long totalTokensEarned)
-
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_IP_ADDRESS
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
JSON_PROPERTY_SOURCE_URL
- See Also:
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_SUPPLIER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_SUPPLIER_NAME
- See Also:
-
JSON_PROPERTY_DISPLAY_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_SUPPLIER_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_INTERNAL_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_CAPTURE_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_ITEM_LIST
- See Also:
-
JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE
- See Also:
-
JSON_PROPERTY_PAYMENT
- See Also:
-
JSON_PROPERTY_CANCELLED
- See Also:
-
JSON_PROPERTY_CANCELLED_ON
- See Also:
-
JSON_PROPERTY_CANCELLER
- See Also:
-
JSON_PROPERTY_CANCELLATION_TYPE
- See Also:
-
JSON_PROPERTY_CANCELLER_USER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_CANCEL_REASON
- See Also:
-
JSON_PROPERTY_FUNDS_ADDED_TO_LEDGER
- See Also:
-
JSON_PROPERTY_FUNDS_PROCESSED
- See Also:
-
JSON_PROPERTY_REFUNDS
- See Also:
-
JSON_PROPERTY_TOTAL_DISPLAY_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_INTERNAL_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_SUPPLIER_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_SOURCE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_DISPLAY_PRICE_AFTER_REFUND
- See Also:
-
JSON_PROPERTY_TOTAL_INTERNAL_PRICE_AFTER_REFUND
- See Also:
-
JSON_PROPERTY_TOTAL_SUPPLIER_PRICE_AFTER_REFUND
- See Also:
-
JSON_PROPERTY_TOTAL_SOURCE_PRICE_AFTER_REFUND
- See Also:
-
JSON_PROPERTY_TOTAL_CAPTURE_PRICE_AFTER_REFUND
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_TRAVELER
- See Also:
-
JSON_PROPERTY_REFUNDED_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_SUPPLIER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_NO_CHARGES
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_POTENTIAL_CHARGES
- See Also:
-
JSON_PROPERTY_LODGING
- See Also:
-
JSON_PROPERTY_REFUNDED_DISPLAY_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_INTERNAL_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_SUPPLIER_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_SOURCE_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDABLE_DISPLAY_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDABLE_INTERNAL_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDABLE_SUPPLIER_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDABLE_SOURCE_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDABLE_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED
- See Also:
-
JSON_PROPERTY_TOTAL_TOKENS_EARNED
- See Also:
-
JSON_PROPERTY_LODGING_ITINERARY
- See Also:
-
-
Constructor Details
-
BookingContract
public BookingContract()
-
-
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
-
ipAddress
-
getIpAddress
Caller's IP address- Returns:
- ipAddress
-
setIpAddress
-
traceId
-
getTraceId
Way to track which booking contracts were made together- Returns:
- traceId
-
setTraceId
-
sourceUrl
-
getSourceUrl
Where did the booking occur- Returns:
- sourceUrl
-
setSourceUrl
-
identifier
-
getIdentifier
Unique identifier used to track the contract.- Returns:
- identifier
-
setIdentifier
-
supplierIdentifier
-
getSupplierIdentifier
Supplier identifier- Returns:
- supplierIdentifier
-
setSupplierIdentifier
-
supplierName
-
getSupplierName
Supplier name- Returns:
- supplierName
-
setSupplierName
-
displayPriceQuote
-
getDisplayPriceQuote
Get displayPriceQuote- Returns:
- displayPriceQuote
-
setDisplayPriceQuote
-
supplierPriceQuote
-
getSupplierPriceQuote
Get supplierPriceQuote- Returns:
- supplierPriceQuote
-
setSupplierPriceQuote
-
internalPriceQuote
-
getInternalPriceQuote
Get internalPriceQuote- Returns:
- internalPriceQuote
-
setInternalPriceQuote
-
capturePriceQuote
-
getCapturePriceQuote
Get capturePriceQuote- Returns:
- capturePriceQuote
-
setCapturePriceQuote
-
itemList
-
addItemListItem
-
getItemList
@Nonnull @NotNull @Valid @Size(min=1, max=2147483647) public @NotNull @Valid @Size(min=1,max=2147483647) List<BookingContractItem> getItemList()Holds one booking line item for a specific supplier.- Returns:
- itemList
-
setItemList
-
externalSupplierIdentifier
-
getExternalSupplierIdentifier
Contract creator can choose to geoname this record with her own identifier- Returns:
- externalSupplierIdentifier
-
setExternalSupplierIdentifier
-
externalSupplierBookingCode
-
getExternalSupplierBookingCode
External booking code generated by the caller- Returns:
- externalSupplierBookingCode
-
setExternalSupplierBookingCode
-
payment
-
getPayment
Get payment- Returns:
- payment
-
setPayment
-
cancelled
-
getCancelled
Whether the booking was cancelled.- Returns:
- cancelled
-
setCancelled
-
cancelledOn
-
getCancelledOn
When the booking was cancelled.- Returns:
- cancelledOn
-
setCancelledOn
-
canceller
-
getCanceller
Type of entity that cancelled the booking.- Returns:
- canceller
-
setCanceller
-
cancellationType
-
getCancellationType
Reason type.- Returns:
- cancellationType
-
setCancellationType
-
cancellerUserIdentifier
-
getCancellerUserIdentifier
User identifier that cancelled the entity.- Returns:
- cancellerUserIdentifier
-
setCancellerUserIdentifier
-
cancelReason
-
getCancelReason
Reason for cancellation.- Returns:
- cancelReason
-
setCancelReason
-
fundsAddedToLedger
-
getFundsAddedToLedger
Whether the contract has been added to the ledger; rady for payout.- Returns:
- fundsAddedToLedger
-
setFundsAddedToLedger
-
fundsProcessed
-
getFundsProcessed
Whether a funds transfer request has been created for this booking.- Returns:
- fundsProcessed
-
setFundsProcessed
-
refunds
-
addRefundsItem
-
getRefunds
An optional list of refunds that occurred with this booking. If the refund amount(s) is the same as the total price, the booking also gets cancelled.- Returns:
- refunds
-
setRefunds
-
totalDisplayPrice
-
getTotalDisplayPrice
Get totalDisplayPrice- Returns:
- totalDisplayPrice
-
setTotalDisplayPrice
-
totalInternalPrice
-
getTotalInternalPrice
Get totalInternalPrice- Returns:
- totalInternalPrice
-
setTotalInternalPrice
-
totalSupplierPrice
-
getTotalSupplierPrice
Get totalSupplierPrice- Returns:
- totalSupplierPrice
-
setTotalSupplierPrice
-
totalSourcePrice
-
getTotalSourcePrice
Get totalSourcePrice- Returns:
- totalSourcePrice
-
setTotalSourcePrice
-
totalCapturePrice
-
getTotalCapturePrice
Get totalCapturePrice- Returns:
- totalCapturePrice
-
setTotalCapturePrice
-
totalDisplayPriceAfterRefund
-
getTotalDisplayPriceAfterRefund
Get totalDisplayPriceAfterRefund- Returns:
- totalDisplayPriceAfterRefund
-
setTotalDisplayPriceAfterRefund
-
totalInternalPriceAfterRefund
-
getTotalInternalPriceAfterRefund
Get totalInternalPriceAfterRefund- Returns:
- totalInternalPriceAfterRefund
-
setTotalInternalPriceAfterRefund
-
totalSupplierPriceAfterRefund
-
getTotalSupplierPriceAfterRefund
Get totalSupplierPriceAfterRefund- Returns:
- totalSupplierPriceAfterRefund
-
setTotalSupplierPriceAfterRefund
-
totalSourcePriceAfterRefund
-
getTotalSourcePriceAfterRefund
Get totalSourcePriceAfterRefund- Returns:
- totalSourcePriceAfterRefund
-
setTotalSourcePriceAfterRefund
-
totalCapturePriceAfterRefund
-
getTotalCapturePriceAfterRefund
Get totalCapturePriceAfterRefund- Returns:
- totalCapturePriceAfterRefund
-
setTotalCapturePriceAfterRefund
-
cancellableByTraveler
-
getCancellableByTraveler
Whether the booking can still be cancelled completely by the traveller.- Returns:
- cancellableByTraveler
-
setCancellableByTraveler
-
refundedCapturePrice
-
getRefundedCapturePrice
Get refundedCapturePrice- Returns:
- refundedCapturePrice
-
setRefundedCapturePrice
-
cancellableBySupplier
-
getCancellableBySupplier
Whether the booking can still be cancelled completely by the supplier.- Returns:
- cancellableBySupplier
-
setCancellableBySupplier
-
cancellableWithNoCharges
-
getCancellableWithNoCharges
Whether the cancellation comes at no cost to the traveler.- Returns:
- cancellableWithNoCharges
-
setCancellableWithNoCharges
-
cancellableWithPotentialCharges
-
getCancellableWithPotentialCharges
Whether a cancellation comes with partial charges. I.e. Only some of the items in contract are not fully refundable.- Returns:
- cancellableWithPotentialCharges
-
setCancellableWithPotentialCharges
-
lodging
-
getLodging
Get lodging- Returns:
- lodging
-
setLodging
-
refundedDisplayPrice
-
getRefundedDisplayPrice
Get refundedDisplayPrice- Returns:
- refundedDisplayPrice
-
setRefundedDisplayPrice
-
refundedInternalPrice
-
getRefundedInternalPrice
Get refundedInternalPrice- Returns:
- refundedInternalPrice
-
setRefundedInternalPrice
-
refundedSupplierPrice
-
getRefundedSupplierPrice
Get refundedSupplierPrice- Returns:
- refundedSupplierPrice
-
setRefundedSupplierPrice
-
refundedSourcePrice
-
getRefundedSourcePrice
Get refundedSourcePrice- Returns:
- refundedSourcePrice
-
setRefundedSourcePrice
-
refundableDisplayPrice
-
getRefundableDisplayPrice
Get refundableDisplayPrice- Returns:
- refundableDisplayPrice
-
setRefundableDisplayPrice
-
refundableInternalPrice
-
getRefundableInternalPrice
Get refundableInternalPrice- Returns:
- refundableInternalPrice
-
setRefundableInternalPrice
-
refundableSupplierPrice
-
getRefundableSupplierPrice
Get refundableSupplierPrice- Returns:
- refundableSupplierPrice
-
setRefundableSupplierPrice
-
refundableSourcePrice
-
getRefundableSourcePrice
Get refundableSourcePrice- Returns:
- refundableSourcePrice
-
setRefundableSourcePrice
-
refundableCapturePrice
-
getRefundableCapturePrice
Get refundableCapturePrice- Returns:
- refundableCapturePrice
-
setRefundableCapturePrice
-
refunded
-
getRefunded
Get refunded- Returns:
- refunded
-
setRefunded
-
totalTokensEarned
-
getTotalTokensEarned
Total amount of tokens minted on this contract.- Returns:
- totalTokensEarned
-
setTotalTokensEarned
-
lodgingItinerary
-
getLodgingItinerary
Get lodgingItinerary- Returns:
- lodgingItinerary
-
setLodgingItinerary
-
equals
-
hashCode
public int hashCode() -
toString
-