Package travel.wink.sdk.payment.model
Class BookingContract
java.lang.Object
travel.wink.sdk.payment.model.BookingContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-07-01T17:01:23.504311+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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemListItem(BookingContractItem itemListItem) cancellableBySupplier(Boolean cancellableBySupplier) cancellableByTraveler(Boolean cancellableByTraveler) cancellableWithNoCharges(Boolean cancellableWithNoCharges) cancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges) cancellationType(BookingContract.CancellationTypeEnum cancellationType) cancelledOn(OffsetDateTime cancelledOn) canceller(BookingContract.CancellerEnum canceller) cancellerUserIdentifier(UUID cancellerUserIdentifier) cancelReason(String cancelReason) capturePriceQuote(Quote capturePriceQuote) createdDate(OffsetDateTime createdDate) displayPriceQuote(Quote displayPriceQuote) booleanexternalSupplierBookingCode(String externalSupplierBookingCode) externalSupplierIdentifier(String externalSupplierIdentifier) 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 BooleanOptional geoname externalIdentifier to remote inventory.@Valid OffsetDateTimeWhen the booking was cancelled.Type of entity that cancelled the booking.@Valid UUIDUser identifier that cancelled the entity.Reason for cancellation.@NotNull @Valid QuoteGet capturePriceQuote@Valid OffsetDateTimeDatetime 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 identifier@Valid UUIDgetId()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.@Valid OffsetDateTimeDatetime this record was last updated@Valid ItineraryGet lodgingItinerary@NotNull @Valid BookingContractPaymentDetailsGet payment@Valid MoneysGet refundedCapturePrice@Valid MoneysGet refundedDisplayPrice@Valid MoneysGet refundedInternalPrice@Valid MoneysGet refundedSourcePrice@Valid MoneysGet refundedSupplierPrice@NotNull StringWhere did the booking occur@NotNull @Valid UUIDSupplier identifier@NotNull StringSupplier name@NotNull @Valid QuoteGet supplierPriceQuote@Valid MoneysGet totalCapturePrice@Valid MoneysGet totalCapturePriceAfterCancellation@Valid MoneysGet totalDisplayPrice@Valid MoneysGet totalDisplayPriceAfterCancellation@Valid MoneysGet totalInternalPrice@Valid MoneysGet totalInternalPriceAfterCancellation@Valid MoneysGet totalSourcePrice@Valid MoneysGet totalSourcePriceAfterCancellation@Valid MoneysGet totalSupplierPrice@Valid MoneysGet totalSupplierPriceAfterCancellationTotal 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(OffsetDateTime lastUpdate) lodgingItinerary(Itinerary lodgingItinerary) payment(BookingContractPaymentDetails payment) 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(OffsetDateTime cancelledOn) voidsetCanceller(BookingContract.CancellerEnum canceller) voidsetCancellerUserIdentifier(UUID cancellerUserIdentifier) voidsetCancelReason(String cancelReason) voidsetCapturePriceQuote(Quote capturePriceQuote) voidsetCreatedDate(OffsetDateTime createdDate) voidsetDisplayPriceQuote(Quote displayPriceQuote) voidsetExternalSupplierBookingCode(String externalSupplierBookingCode) voidsetExternalSupplierIdentifier(String externalSupplierIdentifier) voidvoidsetIdentifier(String identifier) voidsetInternalPriceQuote(Quote internalPriceQuote) voidsetIpAddress(String ipAddress) voidsetItemList(List<BookingContractItem> itemList) voidsetLastUpdate(OffsetDateTime lastUpdate) voidsetLodgingItinerary(Itinerary lodgingItinerary) voidsetPayment(BookingContractPaymentDetails payment) voidsetRefundedCapturePrice(Moneys refundedCapturePrice) voidsetRefundedDisplayPrice(Moneys refundedDisplayPrice) voidsetRefundedInternalPrice(Moneys refundedInternalPrice) voidsetRefundedSourcePrice(Moneys refundedSourcePrice) voidsetRefundedSupplierPrice(Moneys refundedSupplierPrice) voidsetSourceUrl(String sourceUrl) voidsetSupplierIdentifier(UUID supplierIdentifier) voidsetSupplierName(String supplierName) voidsetSupplierPriceQuote(Quote supplierPriceQuote) voidsetTotalCapturePrice(Moneys totalCapturePrice) voidsetTotalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation) voidsetTotalDisplayPrice(Moneys totalDisplayPrice) voidsetTotalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation) voidsetTotalInternalPrice(Moneys totalInternalPrice) voidsetTotalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation) voidsetTotalSourcePrice(Moneys totalSourcePrice) voidsetTotalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation) voidsetTotalSupplierPrice(Moneys totalSupplierPrice) voidsetTotalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation) voidsetTotalTokensEarned(Long totalTokensEarned) voidsetTraceId(String traceId) voidsetVersion(Long version) supplierIdentifier(UUID supplierIdentifier) supplierName(String supplierName) supplierPriceQuote(Quote supplierPriceQuote) toString()totalCapturePrice(Moneys totalCapturePrice) totalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation) totalDisplayPrice(Moneys totalDisplayPrice) totalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation) totalInternalPrice(Moneys totalInternalPrice) totalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation) totalSourcePrice(Moneys totalSourcePrice) totalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation) totalSupplierPrice(Moneys totalSupplierPrice) totalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation) 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_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_CANCELLABLE_BY_TRAVELER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_SUPPLIER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_NO_CHARGES
- 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_REFUNDED_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_TOKENS_EARNED
- See Also:
-
JSON_PROPERTY_LODGING_ITINERARY
- See Also:
-
JSON_PROPERTY_TOTAL_DISPLAY_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_INTERNAL_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_SUPPLIER_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_SOURCE_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_CAPTURE_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_POTENTIAL_CHARGES
- 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
Optional geoname externalIdentifier to remote inventory.- 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
-
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
-
cancellableByTraveler
-
getCancellableByTraveler
Whether the booking can still be cancelled completely by the traveller.- Returns:
- cancellableByTraveler
-
setCancellableByTraveler
-
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
-
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
-
refundedCapturePrice
-
getRefundedCapturePrice
Get refundedCapturePrice- Returns:
- refundedCapturePrice
-
setRefundedCapturePrice
-
totalTokensEarned
-
getTotalTokensEarned
Total amount of tokens minted on this contract.- Returns:
- totalTokensEarned
-
setTotalTokensEarned
-
lodgingItinerary
-
getLodgingItinerary
Get lodgingItinerary- Returns:
- lodgingItinerary
-
setLodgingItinerary
-
totalDisplayPriceAfterCancellation
public BookingContract totalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation) -
getTotalDisplayPriceAfterCancellation
Get totalDisplayPriceAfterCancellation- Returns:
- totalDisplayPriceAfterCancellation
-
setTotalDisplayPriceAfterCancellation
-
totalInternalPriceAfterCancellation
public BookingContract totalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation) -
getTotalInternalPriceAfterCancellation
Get totalInternalPriceAfterCancellation- Returns:
- totalInternalPriceAfterCancellation
-
setTotalInternalPriceAfterCancellation
-
totalSupplierPriceAfterCancellation
public BookingContract totalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation) -
getTotalSupplierPriceAfterCancellation
Get totalSupplierPriceAfterCancellation- Returns:
- totalSupplierPriceAfterCancellation
-
setTotalSupplierPriceAfterCancellation
-
totalSourcePriceAfterCancellation
-
getTotalSourcePriceAfterCancellation
Get totalSourcePriceAfterCancellation- Returns:
- totalSourcePriceAfterCancellation
-
setTotalSourcePriceAfterCancellation
-
totalCapturePriceAfterCancellation
public BookingContract totalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation) -
getTotalCapturePriceAfterCancellation
Get totalCapturePriceAfterCancellation- Returns:
- totalCapturePriceAfterCancellation
-
setTotalCapturePriceAfterCancellation
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-