Class BookingContract

java.lang.Object
io.trippay.sdk.payment.model.BookingContract

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-03-06T15:20:29.359634909+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(String id)
    • getId

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

      public void setId(String id)
    • createdDate

      public BookingContract createdDate(LocalDateTime createdDate)
    • getCreatedDate

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

      public void setCreatedDate(LocalDateTime createdDate)
    • lastUpdate

      public BookingContract lastUpdate(LocalDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(LocalDateTime 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()
      Whether the booking was cancelled.
      Returns:
      cancelled
    • setCancelled

      public void setCancelled(Boolean cancelled)
    • cancelledOn

      public BookingContract cancelledOn(LocalDateTime cancelledOn)
    • getCancelledOn

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

      public void setCancelledOn(LocalDateTime 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)
    • fundsAddedToLedger

      public BookingContract fundsAddedToLedger(Boolean fundsAddedToLedger)
    • getFundsAddedToLedger

      @Nullable public Boolean getFundsAddedToLedger()
      Whether the contract has been added to the ledger; rady for payout.
      Returns:
      fundsAddedToLedger
    • setFundsAddedToLedger

      public void setFundsAddedToLedger(Boolean fundsAddedToLedger)
    • fundsProcessed

      public BookingContract fundsProcessed(Boolean fundsProcessed)
    • getFundsProcessed

      @Nullable public Boolean getFundsProcessed()
      Whether a funds transfer request has been created for this booking.
      Returns:
      fundsProcessed
    • setFundsProcessed

      public void setFundsProcessed(Boolean fundsProcessed)
    • refunds

      public BookingContract refunds(List<Refund> refunds)
    • addRefundsItem

      public BookingContract addRefundsItem(Refund refundsItem)
    • getRefunds

      @Nullable @Valid public @Valid List<Refund> getRefunds()
      An optional list of refunds that occurred with this booking. If the refund amount(s) is the same as the total price, the booking also gets cancelled.
      Returns:
      refunds
    • setRefunds

      public void setRefunds(List<Refund> refunds)
    • 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)
    • totalDisplayPriceAfterRefund

      public BookingContract totalDisplayPriceAfterRefund(Moneys totalDisplayPriceAfterRefund)
    • getTotalDisplayPriceAfterRefund

      @Nullable @Valid public @Valid Moneys getTotalDisplayPriceAfterRefund()
      Get totalDisplayPriceAfterRefund
      Returns:
      totalDisplayPriceAfterRefund
    • setTotalDisplayPriceAfterRefund

      public void setTotalDisplayPriceAfterRefund(Moneys totalDisplayPriceAfterRefund)
    • totalInternalPriceAfterRefund

      public BookingContract totalInternalPriceAfterRefund(Moneys totalInternalPriceAfterRefund)
    • getTotalInternalPriceAfterRefund

      @Nullable @Valid public @Valid Moneys getTotalInternalPriceAfterRefund()
      Get totalInternalPriceAfterRefund
      Returns:
      totalInternalPriceAfterRefund
    • setTotalInternalPriceAfterRefund

      public void setTotalInternalPriceAfterRefund(Moneys totalInternalPriceAfterRefund)
    • totalSupplierPriceAfterRefund

      public BookingContract totalSupplierPriceAfterRefund(Moneys totalSupplierPriceAfterRefund)
    • getTotalSupplierPriceAfterRefund

      @Nullable @Valid public @Valid Moneys getTotalSupplierPriceAfterRefund()
      Get totalSupplierPriceAfterRefund
      Returns:
      totalSupplierPriceAfterRefund
    • setTotalSupplierPriceAfterRefund

      public void setTotalSupplierPriceAfterRefund(Moneys totalSupplierPriceAfterRefund)
    • totalSourcePriceAfterRefund

      public BookingContract totalSourcePriceAfterRefund(Moneys totalSourcePriceAfterRefund)
    • getTotalSourcePriceAfterRefund

      @Nullable @Valid public @Valid Moneys getTotalSourcePriceAfterRefund()
      Get totalSourcePriceAfterRefund
      Returns:
      totalSourcePriceAfterRefund
    • setTotalSourcePriceAfterRefund

      public void setTotalSourcePriceAfterRefund(Moneys totalSourcePriceAfterRefund)
    • totalCapturePriceAfterRefund

      public BookingContract totalCapturePriceAfterRefund(Moneys totalCapturePriceAfterRefund)
    • getTotalCapturePriceAfterRefund

      @Nullable @Valid public @Valid Moneys getTotalCapturePriceAfterRefund()
      Get totalCapturePriceAfterRefund
      Returns:
      totalCapturePriceAfterRefund
    • setTotalCapturePriceAfterRefund

      public void setTotalCapturePriceAfterRefund(Moneys totalCapturePriceAfterRefund)
    • 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)
    • refundedCapturePrice

      public BookingContract refundedCapturePrice(Moneys refundedCapturePrice)
    • getRefundedCapturePrice

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

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

      public BookingContract lodging(BookingContractItem lodging)
    • getLodging

      @Nullable @Valid public @Valid BookingContractItem getLodging()
      Get lodging
      Returns:
      lodging
    • setLodging

      public void setLodging(BookingContractItem lodging)
    • 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)
    • refundableDisplayPrice

      public BookingContract refundableDisplayPrice(Boolean refundableDisplayPrice)
    • getRefundableDisplayPrice

      @Nullable public Boolean getRefundableDisplayPrice()
      Get refundableDisplayPrice
      Returns:
      refundableDisplayPrice
    • setRefundableDisplayPrice

      public void setRefundableDisplayPrice(Boolean refundableDisplayPrice)
    • refundableInternalPrice

      public BookingContract refundableInternalPrice(Boolean refundableInternalPrice)
    • getRefundableInternalPrice

      @Nullable public Boolean getRefundableInternalPrice()
      Get refundableInternalPrice
      Returns:
      refundableInternalPrice
    • setRefundableInternalPrice

      public void setRefundableInternalPrice(Boolean refundableInternalPrice)
    • refundableSupplierPrice

      public BookingContract refundableSupplierPrice(Boolean refundableSupplierPrice)
    • getRefundableSupplierPrice

      @Nullable public Boolean getRefundableSupplierPrice()
      Get refundableSupplierPrice
      Returns:
      refundableSupplierPrice
    • setRefundableSupplierPrice

      public void setRefundableSupplierPrice(Boolean refundableSupplierPrice)
    • refundableSourcePrice

      public BookingContract refundableSourcePrice(Boolean refundableSourcePrice)
    • getRefundableSourcePrice

      @Nullable public Boolean getRefundableSourcePrice()
      Get refundableSourcePrice
      Returns:
      refundableSourcePrice
    • setRefundableSourcePrice

      public void setRefundableSourcePrice(Boolean refundableSourcePrice)
    • refundableCapturePrice

      public BookingContract refundableCapturePrice(Boolean refundableCapturePrice)
    • getRefundableCapturePrice

      @Nullable public Boolean getRefundableCapturePrice()
      Get refundableCapturePrice
      Returns:
      refundableCapturePrice
    • setRefundableCapturePrice

      public void setRefundableCapturePrice(Boolean refundableCapturePrice)
    • 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