Class BookingContractAffiliate

java.lang.Object
travel.wink.sdk.affiliate.model.BookingContractAffiliate

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-03-10T10:47:30.893146041+07:00[Asia/Bangkok]") public class BookingContractAffiliate extends Object
Booking contract created by TripPay
  • Field Details

  • Constructor Details

    • BookingContractAffiliate

      public BookingContractAffiliate()
  • Method Details

    • bookingContractIdentifier

      public BookingContractAffiliate bookingContractIdentifier(UUID bookingContractIdentifier)
    • getBookingContractIdentifier

      @Nullable @Valid public @Valid UUID getBookingContractIdentifier()
      Document UUID
      Returns:
      bookingContractIdentifier
    • setBookingContractIdentifier

      public void setBookingContractIdentifier(UUID bookingContractIdentifier)
    • createdDate

      public BookingContractAffiliate 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 BookingContractAffiliate lastUpdate(LocalDateTime lastUpdate)
    • getLastUpdate

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

      public void setLastUpdate(LocalDateTime lastUpdate)
    • ipAddress

      public BookingContractAffiliate ipAddress(String ipAddress)
    • getIpAddress

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

      public void setIpAddress(String ipAddress)
    • traceId

      public BookingContractAffiliate 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 BookingContractAffiliate 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 BookingContractAffiliate identifier(UUID identifier)
    • getIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getIdentifier()
      Unique identifier used to track the contract. Create a UUID for this purpose.
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(UUID identifier)
    • supplierIdentifier

      public BookingContractAffiliate supplierIdentifier(UUID supplierIdentifier)
    • getSupplierIdentifier

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

      public void setSupplierIdentifier(UUID supplierIdentifier)
    • supplierName

      public BookingContractAffiliate supplierName(String supplierName)
    • getSupplierName

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

      public void setSupplierName(String supplierName)
    • displayPriceQuote

      public BookingContractAffiliate displayPriceQuote(QuoteAffiliate displayPriceQuote)
    • getDisplayPriceQuote

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

      public void setDisplayPriceQuote(QuoteAffiliate displayPriceQuote)
    • supplierPriceQuote

      public BookingContractAffiliate supplierPriceQuote(QuoteAffiliate supplierPriceQuote)
    • getSupplierPriceQuote

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

      public void setSupplierPriceQuote(QuoteAffiliate supplierPriceQuote)
    • internalPriceQuote

      public BookingContractAffiliate internalPriceQuote(QuoteAffiliate internalPriceQuote)
    • getInternalPriceQuote

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

      public void setInternalPriceQuote(QuoteAffiliate internalPriceQuote)
    • capturePriceQuote

      public BookingContractAffiliate capturePriceQuote(QuoteAffiliate capturePriceQuote)
    • getCapturePriceQuote

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

      public void setCapturePriceQuote(QuoteAffiliate capturePriceQuote)
    • itemList

    • addItemListItem

      public BookingContractAffiliate addItemListItem(BookingContractItemAffiliate itemListItem)
    • getItemList

      @Nonnull @NotNull @Valid @Size(min=1, max=2147483647) public @NotNull @Valid @Size(min=1,max=2147483647) List<BookingContractItemAffiliate> getItemList()
      Holds one booking line item for a specific supplier.
      Returns:
      itemList
    • setItemList

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

      public BookingContractAffiliate 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 BookingContractAffiliate externalSupplierBookingCode(String externalSupplierBookingCode)
    • getExternalSupplierBookingCode

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

      public void setExternalSupplierBookingCode(String externalSupplierBookingCode)
    • payment

    • getPayment

      @Nullable @Valid public @Valid BookingContractPaymentDetailsAffiliate getPayment()
      Get payment
      Returns:
      payment
    • setPayment

      public void setPayment(BookingContractPaymentDetailsAffiliate payment)
    • cancelled

      public BookingContractAffiliate cancelled(Boolean cancelled)
    • getCancelled

      @Nullable public Boolean getCancelled()
      Optional geoname externalIdentifier to remote inventory.
      Returns:
      cancelled
    • setCancelled

      public void setCancelled(Boolean cancelled)
    • cancelledOn

      public BookingContractAffiliate cancelledOn(LocalDateTime cancelledOn)
    • getCancelledOn

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

      public void setCancelledOn(LocalDateTime cancelledOn)
    • canceller

    • getCanceller

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

      public void setCanceller(BookingContractAffiliate.CancellerEnum canceller)
    • cancellationType

      public BookingContractAffiliate cancellationType(BookingContractAffiliate.CancellationTypeEnum cancellationType)
    • getCancellationType

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

      public void setCancellationType(BookingContractAffiliate.CancellationTypeEnum cancellationType)
    • cancellerUserIdentifier

      public BookingContractAffiliate cancellerUserIdentifier(String cancellerUserIdentifier)
    • getCancellerUserIdentifier

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

      public void setCancellerUserIdentifier(String cancellerUserIdentifier)
    • cancelReason

      public BookingContractAffiliate cancelReason(String cancelReason)
    • getCancelReason

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

      public void setCancelReason(String cancelReason)
    • fundsProcessed

      public BookingContractAffiliate 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 BookingContractAffiliate refunds(List<RefundAffiliate> refunds)
    • addRefundsItem

      public BookingContractAffiliate addRefundsItem(RefundAffiliate refundsItem)
    • getRefunds

      @Nullable @Valid public @Valid List<RefundAffiliate> 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<RefundAffiliate> refunds)
    • totalSourcePrice

      public BookingContractAffiliate totalSourcePrice(MoneysAffiliate totalSourcePrice)
    • getTotalSourcePrice

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

      public void setTotalSourcePrice(MoneysAffiliate totalSourcePrice)
    • totalDisplayPrice

      public BookingContractAffiliate totalDisplayPrice(MoneysAffiliate totalDisplayPrice)
    • getTotalDisplayPrice

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

      public void setTotalDisplayPrice(MoneysAffiliate totalDisplayPrice)
    • totalSupplierPrice

      public BookingContractAffiliate totalSupplierPrice(MoneysAffiliate totalSupplierPrice)
    • getTotalSupplierPrice

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

      public void setTotalSupplierPrice(MoneysAffiliate totalSupplierPrice)
    • totalInternalPrice

      public BookingContractAffiliate totalInternalPrice(MoneysAffiliate totalInternalPrice)
    • getTotalInternalPrice

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

      public void setTotalInternalPrice(MoneysAffiliate totalInternalPrice)
    • totalCapturePrice

      public BookingContractAffiliate totalCapturePrice(MoneysAffiliate totalCapturePrice)
    • getTotalCapturePrice

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

      public void setTotalCapturePrice(MoneysAffiliate totalCapturePrice)
    • totalSourcePriceAfterRefund

      public BookingContractAffiliate totalSourcePriceAfterRefund(MoneysAffiliate totalSourcePriceAfterRefund)
    • getTotalSourcePriceAfterRefund

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

      public void setTotalSourcePriceAfterRefund(MoneysAffiliate totalSourcePriceAfterRefund)
    • totalDisplayPriceAfterRefund

      public BookingContractAffiliate totalDisplayPriceAfterRefund(MoneysAffiliate totalDisplayPriceAfterRefund)
    • getTotalDisplayPriceAfterRefund

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

      public void setTotalDisplayPriceAfterRefund(MoneysAffiliate totalDisplayPriceAfterRefund)
    • totalSupplierPriceAfterRefund

      public BookingContractAffiliate totalSupplierPriceAfterRefund(MoneysAffiliate totalSupplierPriceAfterRefund)
    • getTotalSupplierPriceAfterRefund

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

      public void setTotalSupplierPriceAfterRefund(MoneysAffiliate totalSupplierPriceAfterRefund)
    • totalInternalPriceAfterRefund

      public BookingContractAffiliate totalInternalPriceAfterRefund(MoneysAffiliate totalInternalPriceAfterRefund)
    • getTotalInternalPriceAfterRefund

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

      public void setTotalInternalPriceAfterRefund(MoneysAffiliate totalInternalPriceAfterRefund)
    • totalCapturePriceAfterRefund

      public BookingContractAffiliate totalCapturePriceAfterRefund(MoneysAffiliate totalCapturePriceAfterRefund)
    • getTotalCapturePriceAfterRefund

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

      public void setTotalCapturePriceAfterRefund(MoneysAffiliate totalCapturePriceAfterRefund)
    • refundedSourcePrice

      public BookingContractAffiliate refundedSourcePrice(MoneysAffiliate refundedSourcePrice)
    • getRefundedSourcePrice

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

      public void setRefundedSourcePrice(MoneysAffiliate refundedSourcePrice)
    • refundedDisplayPrice

      public BookingContractAffiliate refundedDisplayPrice(MoneysAffiliate refundedDisplayPrice)
    • getRefundedDisplayPrice

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

      public void setRefundedDisplayPrice(MoneysAffiliate refundedDisplayPrice)
    • refundedSupplierPrice

      public BookingContractAffiliate refundedSupplierPrice(MoneysAffiliate refundedSupplierPrice)
    • getRefundedSupplierPrice

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

      public void setRefundedSupplierPrice(MoneysAffiliate refundedSupplierPrice)
    • refundedInternalPrice

      public BookingContractAffiliate refundedInternalPrice(MoneysAffiliate refundedInternalPrice)
    • getRefundedInternalPrice

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

      public void setRefundedInternalPrice(MoneysAffiliate refundedInternalPrice)
    • refundedCapturePrice

      public BookingContractAffiliate refundedCapturePrice(MoneysAffiliate refundedCapturePrice)
    • getRefundedCapturePrice

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

      public void setRefundedCapturePrice(MoneysAffiliate refundedCapturePrice)
    • totalTokensEarned

      public BookingContractAffiliate totalTokensEarned(Long totalTokensEarned)
    • getTotalTokensEarned

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

      public void setTotalTokensEarned(Long totalTokensEarned)
    • cancellableWithNoCharges

      public BookingContractAffiliate 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)
    • isCancellableWithPotentialCharges

      public BookingContractAffiliate isCancellableWithPotentialCharges(Boolean isCancellableWithPotentialCharges)
    • getIsCancellableWithPotentialCharges

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

      public void setIsCancellableWithPotentialCharges(Boolean isCancellableWithPotentialCharges)
    • commissionableTotalSourceAmount

      public BookingContractAffiliate commissionableTotalSourceAmount(MoneysAffiliate commissionableTotalSourceAmount)
    • getCommissionableTotalSourceAmount

      @Nullable @Valid public @Valid MoneysAffiliate getCommissionableTotalSourceAmount()
      Get commissionableTotalSourceAmount
      Returns:
      commissionableTotalSourceAmount
    • setCommissionableTotalSourceAmount

      public void setCommissionableTotalSourceAmount(MoneysAffiliate commissionableTotalSourceAmount)
    • commissionableTotalCaptureAmount

      public BookingContractAffiliate commissionableTotalCaptureAmount(MoneysAffiliate commissionableTotalCaptureAmount)
    • getCommissionableTotalCaptureAmount

      @Nullable @Valid public @Valid MoneysAffiliate getCommissionableTotalCaptureAmount()
      Get commissionableTotalCaptureAmount
      Returns:
      commissionableTotalCaptureAmount
    • setCommissionableTotalCaptureAmount

      public void setCommissionableTotalCaptureAmount(MoneysAffiliate commissionableTotalCaptureAmount)
    • commissionableTotalDisplayAmount

      public BookingContractAffiliate commissionableTotalDisplayAmount(MoneysAffiliate commissionableTotalDisplayAmount)
    • getCommissionableTotalDisplayAmount

      @Nullable @Valid public @Valid MoneysAffiliate getCommissionableTotalDisplayAmount()
      Get commissionableTotalDisplayAmount
      Returns:
      commissionableTotalDisplayAmount
    • setCommissionableTotalDisplayAmount

      public void setCommissionableTotalDisplayAmount(MoneysAffiliate commissionableTotalDisplayAmount)
    • commissionableTotalSupplierAmount

      public BookingContractAffiliate commissionableTotalSupplierAmount(MoneysAffiliate commissionableTotalSupplierAmount)
    • getCommissionableTotalSupplierAmount

      @Nullable @Valid public @Valid MoneysAffiliate getCommissionableTotalSupplierAmount()
      Get commissionableTotalSupplierAmount
      Returns:
      commissionableTotalSupplierAmount
    • setCommissionableTotalSupplierAmount

      public void setCommissionableTotalSupplierAmount(MoneysAffiliate commissionableTotalSupplierAmount)
    • commissionableTotalInternalAmount

      public BookingContractAffiliate commissionableTotalInternalAmount(MoneysAffiliate commissionableTotalInternalAmount)
    • getCommissionableTotalInternalAmount

      @Nullable @Valid public @Valid MoneysAffiliate getCommissionableTotalInternalAmount()
      Get commissionableTotalInternalAmount
      Returns:
      commissionableTotalInternalAmount
    • setCommissionableTotalInternalAmount

      public void setCommissionableTotalInternalAmount(MoneysAffiliate commissionableTotalInternalAmount)
    • cancellableBySupplier

      public BookingContractAffiliate 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)
    • cancellableByTraveler

      public BookingContractAffiliate 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)
    • 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