Class BookingContract

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-03T20:10:53.210431+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

    • BookingContract

      public BookingContract()
  • Method Details

    • id

      public BookingContract id(UUID id)
    • getId

      @Nullable @Valid public @Valid UUID getId()
      Document UUID
      Returns:
      id
    • setId

      public void setId(UUID id)
    • createdDate

      public BookingContract createdDate(OffsetDateTime createdDate)
    • getCreatedDate

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

      public void setCreatedDate(OffsetDateTime createdDate)
    • lastUpdate

      public BookingContract lastUpdate(OffsetDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(OffsetDateTime lastUpdate)
    • version

      public BookingContract version(Long version)
    • 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
    • setVersion

      public void setVersion(Long 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)
    • traceId

      public BookingContract traceId(String traceId)
    • getTraceId

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

      public void setTraceId(String traceId)
    • sourceUrl

      public BookingContract sourceUrl(String sourceUrl)
    • getSourceUrl

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

      public void setSourceUrl(String sourceUrl)
    • identifier

      public BookingContract identifier(String identifier)
    • getIdentifier

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

      public void setIdentifier(String identifier)
    • supplierIdentifier

      public BookingContract supplierIdentifier(UUID supplierIdentifier)
    • getSupplierIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getSupplierIdentifier()
      Supplier identifier
      Returns:
      supplierIdentifier
    • setSupplierIdentifier

      public void setSupplierIdentifier(UUID supplierIdentifier)
    • supplierName

      public BookingContract supplierName(String supplierName)
    • getSupplierName

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

      public void setSupplierName(String supplierName)
    • displayPriceQuote

      public BookingContract displayPriceQuote(Quote displayPriceQuote)
    • getDisplayPriceQuote

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

      public void setDisplayPriceQuote(Quote displayPriceQuote)
    • supplierPriceQuote

      public BookingContract supplierPriceQuote(Quote supplierPriceQuote)
    • getSupplierPriceQuote

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

      public void setSupplierPriceQuote(Quote supplierPriceQuote)
    • internalPriceQuote

      public BookingContract internalPriceQuote(Quote internalPriceQuote)
    • getInternalPriceQuote

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

      public void setInternalPriceQuote(Quote internalPriceQuote)
    • capturePriceQuote

      public BookingContract capturePriceQuote(Quote capturePriceQuote)
    • getCapturePriceQuote

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

      public void setCapturePriceQuote(Quote capturePriceQuote)
    • itemList

      public BookingContract itemList(List<BookingContractItem> itemList)
    • addItemListItem

      public BookingContract addItemListItem(BookingContractItem itemListItem)
    • 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

      public void setItemList(List<BookingContractItem> itemList)
    • externalSupplierIdentifier

      public BookingContract externalSupplierIdentifier(String externalSupplierIdentifier)
    • getExternalSupplierIdentifier

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

      public void setExternalSupplierIdentifier(String externalSupplierIdentifier)
    • externalSupplierBookingCode

      public BookingContract externalSupplierBookingCode(String externalSupplierBookingCode)
    • getExternalSupplierBookingCode

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

      public void setExternalSupplierBookingCode(String 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 geoname 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(UUID cancellerUserIdentifier)
    • getCancellerUserIdentifier

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

      public void setCancellerUserIdentifier(UUID cancellerUserIdentifier)
    • cancelReason

      public BookingContract cancelReason(String cancelReason)
    • getCancelReason

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

      public void setCancelReason(String cancelReason)
    • 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)
    • totalSupplierPriceAfterCancellation

      public BookingContract totalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation)
    • getTotalSupplierPriceAfterCancellation

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

      public void setTotalSupplierPriceAfterCancellation(Moneys totalSupplierPriceAfterCancellation)
    • totalSourcePriceAfterCancellation

      public BookingContract totalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation)
    • getTotalSourcePriceAfterCancellation

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

      public void setTotalSourcePriceAfterCancellation(Moneys totalSourcePriceAfterCancellation)
    • 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)
    • 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)
    • totalSupplierPrice

      public BookingContract totalSupplierPrice(Moneys totalSupplierPrice)
    • getTotalSupplierPrice

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

      public void setTotalSupplierPrice(Moneys totalSupplierPrice)
    • totalSourcePrice

      public BookingContract totalSourcePrice(Moneys totalSourcePrice)
    • getTotalSourcePrice

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

      public void setTotalSourcePrice(Moneys totalSourcePrice)
    • totalCapturePrice

      public BookingContract totalCapturePrice(Moneys totalCapturePrice)
    • getTotalCapturePrice

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

      public void setTotalCapturePrice(Moneys totalCapturePrice)
    • 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)
    • 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)
    • refundedCapturePrice

      public BookingContract refundedCapturePrice(Moneys refundedCapturePrice)
    • getRefundedCapturePrice

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

      public void setRefundedCapturePrice(Moneys refundedCapturePrice)
    • 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)
    • lodgingItinerary

      public BookingContract lodgingItinerary(Itinerary lodgingItinerary)
    • getLodgingItinerary

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

      public void setLodgingItinerary(Itinerary lodgingItinerary)
    • 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