Package travel.wink.sdk.affiliate.model
Class BookingContract
java.lang.Object
travel.wink.sdk.affiliate.model.BookingContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-07-03T20:09:51.912811+07:00[Asia/Bangkok]")
public class BookingContract
extends Object
Booking contract created by TripPay
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemListItem(BookingContractItem itemListItem) cancellableBySupplier(Boolean cancellableBySupplier) cancellableByTraveler(Boolean cancellableByTraveler) cancellableWithNoCharges(Boolean cancellableWithNoCharges) cancellationChargesIncurred(Boolean cancellationChargesIncurred) cancellationType(BookingContract.CancellationTypeEnum cancellationType) cancelledOn(OffsetDateTime cancelledOn) canceller(BookingContract.CancellerEnum canceller) cancellerUserIdentifier(String cancellerUserIdentifier) cancelReason(String cancelReason) capturePriceQuote(Quote capturePriceQuote) commissionableTotalCaptureAmount(Moneys commissionableTotalCaptureAmount) commissionableTotalDisplayAmount(Moneys commissionableTotalDisplayAmount) commissionableTotalInternalAmount(Moneys commissionableTotalInternalAmount) commissionableTotalSourceAmount(Moneys commissionableTotalSourceAmount) commissionableTotalSupplierAmount(Moneys commissionableTotalSupplierAmount) 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.Get cancellationChargesIncurredReason type.Optional geoname externalIdentifier to remote inventory.@Valid OffsetDateTimeWhen the booking was cancelled.Type of entity that cancelled the booking.User identifier that cancelled the entity.Reason for cancellation.@NotNull @Valid QuoteGet capturePriceQuote@Valid MoneysGet commissionableTotalCaptureAmount@Valid MoneysGet commissionableTotalDisplayAmount@Valid MoneysGet commissionableTotalInternalAmount@Valid MoneysGet commissionableTotalSourceAmount@Valid MoneysGet commissionableTotalSupplierAmount@Valid OffsetDateTimeDatetime this record was first created@NotNull @Valid QuoteGet displayPriceQuoteExternal booking code generated by the affiliateContract creator can choose to geoname this record with her own identifier@Valid UUIDgetId()Document UUID@NotNull @Valid UUIDUnique 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 updatedGet 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 togetherinthashCode()identifier(UUID identifier) internalPriceQuote(Quote internalPriceQuote) itemList(List<BookingContractItem> itemList) lastUpdate(OffsetDateTime lastUpdate) 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) voidsetCancellationChargesIncurred(Boolean cancellationChargesIncurred) voidsetCancellationType(BookingContract.CancellationTypeEnum cancellationType) voidsetCancelled(Boolean cancelled) voidsetCancelledOn(OffsetDateTime cancelledOn) voidsetCanceller(BookingContract.CancellerEnum canceller) voidsetCancellerUserIdentifier(String cancellerUserIdentifier) voidsetCancelReason(String cancelReason) voidsetCapturePriceQuote(Quote capturePriceQuote) voidsetCommissionableTotalCaptureAmount(Moneys commissionableTotalCaptureAmount) voidsetCommissionableTotalDisplayAmount(Moneys commissionableTotalDisplayAmount) voidsetCommissionableTotalInternalAmount(Moneys commissionableTotalInternalAmount) voidsetCommissionableTotalSourceAmount(Moneys commissionableTotalSourceAmount) voidsetCommissionableTotalSupplierAmount(Moneys commissionableTotalSupplierAmount) voidsetCreatedDate(OffsetDateTime createdDate) voidsetDisplayPriceQuote(Quote displayPriceQuote) voidsetExternalSupplierBookingCode(String externalSupplierBookingCode) voidsetExternalSupplierIdentifier(String externalSupplierIdentifier) voidvoidsetIdentifier(UUID identifier) voidsetInternalPriceQuote(Quote internalPriceQuote) voidsetIpAddress(String ipAddress) voidsetItemList(List<BookingContractItem> itemList) voidsetLastUpdate(OffsetDateTime lastUpdate) 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) 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_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_SOURCE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_DISPLAY_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_SUPPLIER_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_INTERNAL_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_SOURCE_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_DISPLAY_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_SUPPLIER_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_INTERNAL_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_TOTAL_CAPTURE_PRICE_AFTER_CANCELLATION
- See Also:
-
JSON_PROPERTY_REFUNDED_SOURCE_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_DISPLAY_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_SUPPLIER_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_INTERNAL_PRICE
- See Also:
-
JSON_PROPERTY_REFUNDED_CAPTURE_PRICE
- See Also:
-
JSON_PROPERTY_TOTAL_TOKENS_EARNED
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_SUPPLIER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_TRAVELER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_NO_CHARGES
- See Also:
-
JSON_PROPERTY_CANCELLATION_CHARGES_INCURRED
- See Also:
-
JSON_PROPERTY_COMMISSIONABLE_TOTAL_SOURCE_AMOUNT
- See Also:
-
JSON_PROPERTY_COMMISSIONABLE_TOTAL_CAPTURE_AMOUNT
- See Also:
-
JSON_PROPERTY_COMMISSIONABLE_TOTAL_DISPLAY_AMOUNT
- See Also:
-
JSON_PROPERTY_COMMISSIONABLE_TOTAL_INTERNAL_AMOUNT
- See Also:
-
JSON_PROPERTY_COMMISSIONABLE_TOTAL_SUPPLIER_AMOUNT
- 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
-
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. Create a UUID for this purpose.- 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 affiliate- 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
-
totalSourcePrice
-
getTotalSourcePrice
Get totalSourcePrice- Returns:
- totalSourcePrice
-
setTotalSourcePrice
-
totalDisplayPrice
-
getTotalDisplayPrice
Get totalDisplayPrice- Returns:
- totalDisplayPrice
-
setTotalDisplayPrice
-
totalSupplierPrice
-
getTotalSupplierPrice
Get totalSupplierPrice- Returns:
- totalSupplierPrice
-
setTotalSupplierPrice
-
totalInternalPrice
-
getTotalInternalPrice
Get totalInternalPrice- Returns:
- totalInternalPrice
-
setTotalInternalPrice
-
totalCapturePrice
-
getTotalCapturePrice
Get totalCapturePrice- Returns:
- totalCapturePrice
-
setTotalCapturePrice
-
totalSourcePriceAfterCancellation
-
getTotalSourcePriceAfterCancellation
Get totalSourcePriceAfterCancellation- Returns:
- totalSourcePriceAfterCancellation
-
setTotalSourcePriceAfterCancellation
-
totalDisplayPriceAfterCancellation
public BookingContract totalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation) -
getTotalDisplayPriceAfterCancellation
Get totalDisplayPriceAfterCancellation- Returns:
- totalDisplayPriceAfterCancellation
-
setTotalDisplayPriceAfterCancellation
-
totalSupplierPriceAfterCancellation
public BookingContract totalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation) -
getTotalSupplierPriceAfterCancellation
Get totalSupplierPriceAfterCancellation- Returns:
- totalSupplierPriceAfterCancellation
-
setTotalSupplierPriceAfterCancellation
-
totalInternalPriceAfterCancellation
public BookingContract totalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation) -
getTotalInternalPriceAfterCancellation
Get totalInternalPriceAfterCancellation- Returns:
- totalInternalPriceAfterCancellation
-
setTotalInternalPriceAfterCancellation
-
totalCapturePriceAfterCancellation
public BookingContract totalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation) -
getTotalCapturePriceAfterCancellation
Get totalCapturePriceAfterCancellation- Returns:
- totalCapturePriceAfterCancellation
-
setTotalCapturePriceAfterCancellation
-
refundedSourcePrice
-
getRefundedSourcePrice
Get refundedSourcePrice- Returns:
- refundedSourcePrice
-
setRefundedSourcePrice
-
refundedDisplayPrice
-
getRefundedDisplayPrice
Get refundedDisplayPrice- Returns:
- refundedDisplayPrice
-
setRefundedDisplayPrice
-
refundedSupplierPrice
-
getRefundedSupplierPrice
Get refundedSupplierPrice- Returns:
- refundedSupplierPrice
-
setRefundedSupplierPrice
-
refundedInternalPrice
-
getRefundedInternalPrice
Get refundedInternalPrice- Returns:
- refundedInternalPrice
-
setRefundedInternalPrice
-
refundedCapturePrice
-
getRefundedCapturePrice
Get refundedCapturePrice- Returns:
- refundedCapturePrice
-
setRefundedCapturePrice
-
totalTokensEarned
-
getTotalTokensEarned
Total amount of tokens minted on this contract.- Returns:
- totalTokensEarned
-
setTotalTokensEarned
-
cancellableBySupplier
-
getCancellableBySupplier
Whether the booking can still be cancelled completely by the supplier.- Returns:
- cancellableBySupplier
-
setCancellableBySupplier
-
cancellableByTraveler
-
getCancellableByTraveler
Whether the booking can still be cancelled completely by the traveller.- Returns:
- cancellableByTraveler
-
setCancellableByTraveler
-
cancellableWithNoCharges
-
getCancellableWithNoCharges
Whether the cancellation comes at no cost to the traveler.- Returns:
- cancellableWithNoCharges
-
setCancellableWithNoCharges
-
cancellationChargesIncurred
-
getCancellationChargesIncurred
Get cancellationChargesIncurred- Returns:
- cancellationChargesIncurred
-
setCancellationChargesIncurred
-
commissionableTotalSourceAmount
-
getCommissionableTotalSourceAmount
Get commissionableTotalSourceAmount- Returns:
- commissionableTotalSourceAmount
-
setCommissionableTotalSourceAmount
-
commissionableTotalCaptureAmount
-
getCommissionableTotalCaptureAmount
Get commissionableTotalCaptureAmount- Returns:
- commissionableTotalCaptureAmount
-
setCommissionableTotalCaptureAmount
-
commissionableTotalDisplayAmount
-
getCommissionableTotalDisplayAmount
Get commissionableTotalDisplayAmount- Returns:
- commissionableTotalDisplayAmount
-
setCommissionableTotalDisplayAmount
-
commissionableTotalInternalAmount
-
getCommissionableTotalInternalAmount
Get commissionableTotalInternalAmount- Returns:
- commissionableTotalInternalAmount
-
setCommissionableTotalInternalAmount
-
commissionableTotalSupplierAmount
-
getCommissionableTotalSupplierAmount
Get commissionableTotalSupplierAmount- Returns:
- commissionableTotalSupplierAmount
-
setCommissionableTotalSupplierAmount
-
equals
-
hashCode
public int hashCode() -
toString
-