Class BookingContract
java.lang.Object
travel.wink.sdk.booking.engine.model.BookingContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-05-28T12:06:10.339522+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
ConstructorsConstructorDescriptionBookingContract(String id, OffsetDateTime createdDate, OffsetDateTime lastUpdate, String traceId, String sourceUrl, String identifier, String supplierIdentifier, String supplierName, List<BookingContractItem> itemList, String externalSupplierIdentifier, String externalSupplierBookingCode) -
Method Summary
Modifier and TypeMethodDescriptioncancellableBySupplier(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(QuoteData capturePriceQuote) commissionableTotalCaptureAmount(Moneys commissionableTotalCaptureAmount) commissionableTotalDisplayAmount(Moneys commissionableTotalDisplayAmount) commissionableTotalInternalAmount(Moneys commissionableTotalInternalAmount) commissionableTotalSourceAmount(Moneys commissionableTotalSourceAmount) commissionableTotalSupplierAmount(Moneys commissionableTotalSupplierAmount) displayPriceQuote(QuoteData displayPriceQuote) booleanWhether 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 reference 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 QuoteDataGet 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 QuoteDataGet displayPriceQuoteExternal booking code generated by the affiliateContract creator can choose to reference this record with her own identifiergetId()Document UUIDUnique identifier used to track the contract.@NotNull @Valid QuoteDataGet internalPriceQuote@NotNull StringCaller's IP address@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 refundedSupplierPriceWhere did the booking occurSupplier identifierSupplier name@NotNull @Valid QuoteDataGet 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.Way to track which booking contracts were made togetherinthashCode()internalPriceQuote(QuoteData internalPriceQuote) 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(QuoteData capturePriceQuote) voidsetCommissionableTotalCaptureAmount(Moneys commissionableTotalCaptureAmount) voidsetCommissionableTotalDisplayAmount(Moneys commissionableTotalDisplayAmount) voidsetCommissionableTotalInternalAmount(Moneys commissionableTotalInternalAmount) voidsetCommissionableTotalSourceAmount(Moneys commissionableTotalSourceAmount) voidsetCommissionableTotalSupplierAmount(Moneys commissionableTotalSupplierAmount) voidsetDisplayPriceQuote(QuoteData displayPriceQuote) voidsetInternalPriceQuote(QuoteData internalPriceQuote) voidsetIpAddress(String ipAddress) voidsetPayment(BookingContractPaymentDetails payment) voidsetRefundedCapturePrice(Moneys refundedCapturePrice) voidsetRefundedDisplayPrice(Moneys refundedDisplayPrice) voidsetRefundedInternalPrice(Moneys refundedInternalPrice) voidsetRefundedSourcePrice(Moneys refundedSourcePrice) voidsetRefundedSupplierPrice(Moneys refundedSupplierPrice) voidsetSupplierPriceQuote(QuoteData 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) supplierPriceQuote(QuoteData 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_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:
-
JSON_PROPERTY_CANCELLATION_CHARGES_INCURRED
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_NO_CHARGES
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_SUPPLIER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_TRAVELER
- See Also:
-
-
Constructor Details
-
BookingContract
public BookingContract() -
BookingContract
public BookingContract(String id, OffsetDateTime createdDate, OffsetDateTime lastUpdate, String traceId, String sourceUrl, String identifier, String supplierIdentifier, String supplierName, List<BookingContractItem> itemList, String externalSupplierIdentifier, String externalSupplierBookingCode)
-
-
Method Details
-
getId
Document UUID- Returns:
- id
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
ipAddress
-
getIpAddress
Caller's IP address- Returns:
- ipAddress
-
setIpAddress
-
getTraceId
Way to track which booking contracts were made together- Returns:
- traceId
-
getSourceUrl
Where did the booking occur- Returns:
- sourceUrl
-
getIdentifier
Unique identifier used to track the contract. Create a UUID for this purpose.- Returns:
- identifier
-
getSupplierIdentifier
Supplier identifier- Returns:
- supplierIdentifier
-
getSupplierName
Supplier name- Returns:
- supplierName
-
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
-
getItemList
@Nonnull @Valid @Size(min=1, max=2147483647) public @Valid @Size(min=1,max=2147483647) List<BookingContractItem> getItemList()Holds one booking line item for a specific supplier.- Returns:
- itemList
-
getExternalSupplierIdentifier
Contract creator can choose to reference this record with her own identifier- Returns:
- externalSupplierIdentifier
-
getExternalSupplierBookingCode
External booking code generated by the affiliate- Returns:
- externalSupplierBookingCode
-
payment
-
getPayment
Get payment- Returns:
- payment
-
setPayment
-
cancelled
-
getCancelled
Optional reference 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
-
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
-
cancellationChargesIncurred
-
getCancellationChargesIncurred
Get cancellationChargesIncurred- Returns:
- cancellationChargesIncurred
-
setCancellationChargesIncurred
-
cancellableWithNoCharges
-
getCancellableWithNoCharges
Whether the cancellation comes at no cost to the traveler.- Returns:
- cancellableWithNoCharges
-
setCancellableWithNoCharges
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-