Class BookingContract

java.lang.Object
travel.wink.sdk.payment.model.BookingContract

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-05-28T12:57:53.332531+07:00[Asia/Bangkok]") public class BookingContract extends Object
A booking record is the contract that got created after a successful payment was submitted.
  • Field Details

  • Constructor Details

  • Method Details

    • getId

      @Nullable public String getId()
      Document UUID
      Returns:
      id
    • getCreatedDate

      @Nullable @Valid public @Valid OffsetDateTime getCreatedDate()
      Datetime this record was first created
      Returns:
      createdDate
    • getLastUpdate

      @Nullable @Valid public @Valid OffsetDateTime getLastUpdate()
      Datetime this record was last updated
      Returns:
      lastUpdate
    • getVersion

      @Nullable public Long 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
    • ipAddress

      public BookingContract ipAddress(String ipAddress)
    • getIpAddress

      @Nonnull @NotNull public @NotNull String getIpAddress()
      Caller's IP address
      Returns:
      ipAddress
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • getTraceId

      @Nonnull public String getTraceId()
      Way to track which booking contracts were made together
      Returns:
      traceId
    • getSourceUrl

      @Nonnull public String getSourceUrl()
      Where did the booking occur
      Returns:
      sourceUrl
    • getIdentifier

      @Nonnull public String getIdentifier()
      Unique identifier used to track the contract.
      Returns:
      identifier
    • getSupplierIdentifier

      @Nonnull public String getSupplierIdentifier()
      Supplier identifier
      Returns:
      supplierIdentifier
    • getSupplierName

      @Nonnull public String getSupplierName()
      Supplier name
      Returns:
      supplierName
    • displayPriceQuote

      public BookingContract displayPriceQuote(QuoteData displayPriceQuote)
    • getDisplayPriceQuote

      @Nonnull @NotNull @Valid public @NotNull @Valid QuoteData getDisplayPriceQuote()
      Get displayPriceQuote
      Returns:
      displayPriceQuote
    • setDisplayPriceQuote

      public void setDisplayPriceQuote(QuoteData displayPriceQuote)
    • supplierPriceQuote

      public BookingContract supplierPriceQuote(QuoteData supplierPriceQuote)
    • getSupplierPriceQuote

      @Nonnull @NotNull @Valid public @NotNull @Valid QuoteData getSupplierPriceQuote()
      Get supplierPriceQuote
      Returns:
      supplierPriceQuote
    • setSupplierPriceQuote

      public void setSupplierPriceQuote(QuoteData supplierPriceQuote)
    • internalPriceQuote

      public BookingContract internalPriceQuote(QuoteData internalPriceQuote)
    • getInternalPriceQuote

      @Nonnull @NotNull @Valid public @NotNull @Valid QuoteData getInternalPriceQuote()
      Get internalPriceQuote
      Returns:
      internalPriceQuote
    • setInternalPriceQuote

      public void setInternalPriceQuote(QuoteData internalPriceQuote)
    • capturePriceQuote

      public BookingContract capturePriceQuote(QuoteData capturePriceQuote)
    • getCapturePriceQuote

      @Nonnull @NotNull @Valid public @NotNull @Valid QuoteData getCapturePriceQuote()
      Get capturePriceQuote
      Returns:
      capturePriceQuote
    • setCapturePriceQuote

      public void setCapturePriceQuote(QuoteData capturePriceQuote)
    • 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

      @Nullable public String getExternalSupplierIdentifier()
      Contract creator can choose to reference this record with her own identifier
      Returns:
      externalSupplierIdentifier
    • getExternalSupplierBookingCode

      @Nullable public String getExternalSupplierBookingCode()
      External booking code generated by the caller
      Returns:
      externalSupplierBookingCode
    • payment

    • getPayment

      @Nonnull @NotNull @Valid public @NotNull @Valid BookingContractPaymentDetails getPayment()
      Get payment
      Returns:
      payment
    • setPayment

      public void setPayment(BookingContractPaymentDetails payment)
    • cancelled

      public BookingContract cancelled(Boolean cancelled)
    • getCancelled

      @Nonnull @NotNull public @NotNull Boolean getCancelled()
      Optional reference externalIdentifier to remote inventory.
      Returns:
      cancelled
    • setCancelled

      public void setCancelled(Boolean cancelled)
    • cancelledOn

      public BookingContract cancelledOn(OffsetDateTime cancelledOn)
    • getCancelledOn

      @Nullable @Valid public @Valid OffsetDateTime getCancelledOn()
      When the booking was cancelled.
      Returns:
      cancelledOn
    • setCancelledOn

      public void setCancelledOn(OffsetDateTime cancelledOn)
    • canceller

      public BookingContract canceller(BookingContract.CancellerEnum canceller)
    • getCanceller

      @Nullable public BookingContract.CancellerEnum getCanceller()
      Type of entity that cancelled the booking.
      Returns:
      canceller
    • setCanceller

      public void setCanceller(BookingContract.CancellerEnum canceller)
    • cancellationType

      public BookingContract cancellationType(BookingContract.CancellationTypeEnum cancellationType)
    • getCancellationType

      @Nullable public BookingContract.CancellationTypeEnum getCancellationType()
      Reason type.
      Returns:
      cancellationType
    • setCancellationType

      public void setCancellationType(BookingContract.CancellationTypeEnum cancellationType)
    • cancellerUserIdentifier

      public BookingContract cancellerUserIdentifier(String cancellerUserIdentifier)
    • getCancellerUserIdentifier

      @Nullable public String getCancellerUserIdentifier()
      User identifier that cancelled the entity.
      Returns:
      cancellerUserIdentifier
    • setCancellerUserIdentifier

      public void setCancellerUserIdentifier(String cancellerUserIdentifier)
    • cancelReason

      public BookingContract cancelReason(String cancelReason)
    • getCancelReason

      @Nullable public String getCancelReason()
      Reason for cancellation.
      Returns:
      cancelReason
    • setCancelReason

      public void setCancelReason(String cancelReason)
    • totalCapturePriceAfterCancellation

      public BookingContract totalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation)
    • getTotalCapturePriceAfterCancellation

      @Nullable @Valid public @Valid Moneys getTotalCapturePriceAfterCancellation()
      Get totalCapturePriceAfterCancellation
      Returns:
      totalCapturePriceAfterCancellation
    • setTotalCapturePriceAfterCancellation

      public void setTotalCapturePriceAfterCancellation(Moneys totalCapturePriceAfterCancellation)
    • cancellableWithPotentialCharges

      public BookingContract cancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges)
    • getCancellableWithPotentialCharges

      @Nullable public Boolean getCancellableWithPotentialCharges()
      Whether a cancellation comes with partial charges. I.e. Only some of the items in contract are not fully refundable.
      Returns:
      cancellableWithPotentialCharges
    • setCancellableWithPotentialCharges

      public void setCancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges)
    • totalSourcePriceAfterCancellation

      public BookingContract totalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation)
    • getTotalSourcePriceAfterCancellation

      @Nullable @Valid public @Valid Moneys getTotalSourcePriceAfterCancellation()
      Get totalSourcePriceAfterCancellation
      Returns:
      totalSourcePriceAfterCancellation
    • setTotalSourcePriceAfterCancellation

      public void setTotalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation)
    • totalSupplierPriceAfterCancellation

      public BookingContract totalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation)
    • getTotalSupplierPriceAfterCancellation

      @Nullable @Valid public @Valid Moneys getTotalSupplierPriceAfterCancellation()
      Get totalSupplierPriceAfterCancellation
      Returns:
      totalSupplierPriceAfterCancellation
    • setTotalSupplierPriceAfterCancellation

      public void setTotalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation)
    • totalDisplayPriceAfterCancellation

      public BookingContract totalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation)
    • getTotalDisplayPriceAfterCancellation

      @Nullable @Valid public @Valid Moneys getTotalDisplayPriceAfterCancellation()
      Get totalDisplayPriceAfterCancellation
      Returns:
      totalDisplayPriceAfterCancellation
    • setTotalDisplayPriceAfterCancellation

      public void setTotalDisplayPriceAfterCancellation(Moneys totalDisplayPriceAfterCancellation)
    • totalInternalPriceAfterCancellation

      public BookingContract totalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation)
    • getTotalInternalPriceAfterCancellation

      @Nullable @Valid public @Valid Moneys getTotalInternalPriceAfterCancellation()
      Get totalInternalPriceAfterCancellation
      Returns:
      totalInternalPriceAfterCancellation
    • setTotalInternalPriceAfterCancellation

      public void setTotalInternalPriceAfterCancellation(Moneys totalInternalPriceAfterCancellation)
    • cancellableWithNoCharges

      public BookingContract cancellableWithNoCharges(Boolean cancellableWithNoCharges)
    • getCancellableWithNoCharges

      @Nullable public Boolean getCancellableWithNoCharges()
      Whether the cancellation comes at no cost to the traveler.
      Returns:
      cancellableWithNoCharges
    • setCancellableWithNoCharges

      public void setCancellableWithNoCharges(Boolean cancellableWithNoCharges)
    • refundedDisplayPrice

      public BookingContract refundedDisplayPrice(Moneys refundedDisplayPrice)
    • getRefundedDisplayPrice

      @Nullable @Valid public @Valid Moneys getRefundedDisplayPrice()
      Get refundedDisplayPrice
      Returns:
      refundedDisplayPrice
    • setRefundedDisplayPrice

      public void setRefundedDisplayPrice(Moneys refundedDisplayPrice)
    • refundedInternalPrice

      public BookingContract refundedInternalPrice(Moneys refundedInternalPrice)
    • getRefundedInternalPrice

      @Nullable @Valid public @Valid Moneys getRefundedInternalPrice()
      Get refundedInternalPrice
      Returns:
      refundedInternalPrice
    • setRefundedInternalPrice

      public void setRefundedInternalPrice(Moneys refundedInternalPrice)
    • refundedSupplierPrice

      public BookingContract refundedSupplierPrice(Moneys refundedSupplierPrice)
    • getRefundedSupplierPrice

      @Nullable @Valid public @Valid Moneys getRefundedSupplierPrice()
      Get refundedSupplierPrice
      Returns:
      refundedSupplierPrice
    • setRefundedSupplierPrice

      public void setRefundedSupplierPrice(Moneys refundedSupplierPrice)
    • refundedSourcePrice

      public BookingContract refundedSourcePrice(Moneys refundedSourcePrice)
    • getRefundedSourcePrice

      @Nullable @Valid public @Valid Moneys getRefundedSourcePrice()
      Get refundedSourcePrice
      Returns:
      refundedSourcePrice
    • setRefundedSourcePrice

      public void setRefundedSourcePrice(Moneys refundedSourcePrice)
    • totalTokensEarned

      public BookingContract totalTokensEarned(Long totalTokensEarned)
    • getTotalTokensEarned

      @Nullable public Long getTotalTokensEarned()
      Total amount of tokens minted on this contract.
      Returns:
      totalTokensEarned
    • setTotalTokensEarned

      public void setTotalTokensEarned(Long totalTokensEarned)
    • cancellableByTraveler

      public BookingContract cancellableByTraveler(Boolean cancellableByTraveler)
    • getCancellableByTraveler

      @Nullable public Boolean getCancellableByTraveler()
      Whether the booking can still be cancelled completely by the traveller.
      Returns:
      cancellableByTraveler
    • setCancellableByTraveler

      public void setCancellableByTraveler(Boolean cancellableByTraveler)
    • cancellableBySupplier

      public BookingContract cancellableBySupplier(Boolean cancellableBySupplier)
    • getCancellableBySupplier

      @Nullable public Boolean getCancellableBySupplier()
      Whether the booking can still be cancelled completely by the supplier.
      Returns:
      cancellableBySupplier
    • setCancellableBySupplier

      public void setCancellableBySupplier(Boolean cancellableBySupplier)
    • totalSourcePrice

      public BookingContract totalSourcePrice(Moneys totalSourcePrice)
    • getTotalSourcePrice

      @Nullable @Valid public @Valid Moneys getTotalSourcePrice()
      Get totalSourcePrice
      Returns:
      totalSourcePrice
    • setTotalSourcePrice

      public void setTotalSourcePrice(Moneys totalSourcePrice)
    • totalSupplierPrice

      public BookingContract totalSupplierPrice(Moneys totalSupplierPrice)
    • getTotalSupplierPrice

      @Nullable @Valid public @Valid Moneys getTotalSupplierPrice()
      Get totalSupplierPrice
      Returns:
      totalSupplierPrice
    • setTotalSupplierPrice

      public void setTotalSupplierPrice(Moneys totalSupplierPrice)
    • totalDisplayPrice

      public BookingContract totalDisplayPrice(Moneys totalDisplayPrice)
    • getTotalDisplayPrice

      @Nullable @Valid public @Valid Moneys getTotalDisplayPrice()
      Get totalDisplayPrice
      Returns:
      totalDisplayPrice
    • setTotalDisplayPrice

      public void setTotalDisplayPrice(Moneys totalDisplayPrice)
    • totalInternalPrice

      public BookingContract totalInternalPrice(Moneys totalInternalPrice)
    • getTotalInternalPrice

      @Nullable @Valid public @Valid Moneys getTotalInternalPrice()
      Get totalInternalPrice
      Returns:
      totalInternalPrice
    • setTotalInternalPrice

      public void setTotalInternalPrice(Moneys totalInternalPrice)
    • totalCapturePrice

      public BookingContract totalCapturePrice(Moneys totalCapturePrice)
    • getTotalCapturePrice

      @Nullable @Valid public @Valid Moneys getTotalCapturePrice()
      Get totalCapturePrice
      Returns:
      totalCapturePrice
    • setTotalCapturePrice

      public void setTotalCapturePrice(Moneys totalCapturePrice)
    • lodgingItinerary

      public BookingContract lodgingItinerary(Itinerary lodgingItinerary)
    • getLodgingItinerary

      @Nullable @Valid public @Valid Itinerary getLodgingItinerary()
      Get lodgingItinerary
      Returns:
      lodgingItinerary
    • setLodgingItinerary

      public void setLodgingItinerary(Itinerary lodgingItinerary)
    • refundedCapturePrice

      public BookingContract refundedCapturePrice(Moneys refundedCapturePrice)
    • getRefundedCapturePrice

      @Nullable @Valid public @Valid Moneys getRefundedCapturePrice()
      Get refundedCapturePrice
      Returns:
      refundedCapturePrice
    • setRefundedCapturePrice

      public void setRefundedCapturePrice(Moneys refundedCapturePrice)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object