Class BookingContractItem

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-24T07:24:28.877872362+07:00[Asia/Bangkok]") public class BookingContractItem extends Object
Holds one booking line item for a specific supplier.
  • Field Details

  • Constructor Details

    • BookingContractItem

      public BookingContractItem()
  • Method Details

    • supplierItemBookingCode

      public BookingContractItem supplierItemBookingCode(String supplierItemBookingCode)
    • getSupplierItemBookingCode

      @Nonnull @NotNull public @NotNull String getSupplierItemBookingCode()
      Booking code identifying the supplier line item.
      Returns:
      supplierItemBookingCode
    • setSupplierItemBookingCode

      public void setSupplierItemBookingCode(String supplierItemBookingCode)
    • user

      public BookingContractItem user(GuestUser user)
    • getUser

      @Nonnull @NotNull @Valid public @NotNull @Valid GuestUser getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(GuestUser user)
    • nameInEnglish

      public BookingContractItem nameInEnglish(String nameInEnglish)
    • getNameInEnglish

      @Nonnull @NotNull public @NotNull String getNameInEnglish()
      Name of item in English included in booking.
      Returns:
      nameInEnglish
    • setNameInEnglish

      public void setNameInEnglish(String nameInEnglish)
    • descriptionInEnglish

      public BookingContractItem descriptionInEnglish(String descriptionInEnglish)
    • getDescriptionInEnglish

      @Nonnull @NotNull public @NotNull String getDescriptionInEnglish()
      Short description in English of item included in booking.
      Returns:
      descriptionInEnglish
    • setDescriptionInEnglish

      public void setDescriptionInEnglish(String descriptionInEnglish)
    • itinerary

      public BookingContractItem itinerary(Itinerary itinerary)
    • getItinerary

      @Nonnull @NotNull @Valid public @NotNull @Valid Itinerary getItinerary()
      Get itinerary
      Returns:
      itinerary
    • setItinerary

      public void setItinerary(Itinerary itinerary)
    • pricingType

      public BookingContractItem pricingType(BookingContractItem.PricingTypeEnum pricingType)
    • getPricingType

      @Nonnull @NotNull public @NotNull BookingContractItem.PricingTypeEnum getPricingType()
      How to calculate the total amount.
      Returns:
      pricingType
    • setPricingType

      public void setPricingType(BookingContractItem.PricingTypeEnum pricingType)
    • type

    • getType

      @Nonnull @NotNull public @NotNull BookingContractItem.TypeEnum getType()
      Type of item this is.
      Returns:
      type
    • setType

      public void setType(BookingContractItem.TypeEnum type)
    • beneficiaryList

      public BookingContractItem beneficiaryList(List<Beneficiary> beneficiaryList)
    • addBeneficiaryListItem

      public BookingContractItem addBeneficiaryListItem(Beneficiary beneficiaryListItem)
    • getBeneficiaryList

      @Nonnull @NotNull @Valid @Size(min=1, max=2147483647) public @NotNull @Valid @Size(min=1,max=2147483647) List<Beneficiary> getBeneficiaryList()
      Get beneficiaryList
      Returns:
      beneficiaryList
    • setBeneficiaryList

      public void setBeneficiaryList(List<Beneficiary> beneficiaryList)
    • payable

    • getPayable

      @Nonnull @NotNull public @NotNull BookingContractItem.PayableEnum getPayable()
      When to charge for this item.
      Returns:
      payable
    • setPayable

      public void setPayable(BookingContractItem.PayableEnum payable)
    • policy

    • getPolicy

      @Nullable @Valid public @Valid SupplierContractItemPolicy getPolicy()
      Get policy
      Returns:
      policy
    • setPolicy

      public void setPolicy(SupplierContractItemPolicy policy)
    • externalIdentifier

      public BookingContractItem externalIdentifier(String externalIdentifier)
    • getExternalIdentifier

      @Nullable public String getExternalIdentifier()
      Optional externalIdentifier to remote inventory.
      Returns:
      externalIdentifier
    • setExternalIdentifier

      public void setExternalIdentifier(String externalIdentifier)
    • tokensEarned

      public BookingContractItem tokensEarned(Long tokensEarned)
    • getTokensEarned

      @Nullable public Long getTokensEarned()
      Tokens minted for this item
      Returns:
      tokensEarned
    • setTokensEarned

      public void setTokensEarned(Long tokensEarned)
    • dailyRateList

      public BookingContractItem dailyRateList(List<DailyRate> dailyRateList)
    • addDailyRateListItem

      public BookingContractItem addDailyRateListItem(DailyRate dailyRateListItem)
    • getDailyRateList

      @Nullable @Valid public @Valid List<DailyRate> getDailyRateList()
      Get dailyRateList
      Returns:
      dailyRateList
    • setDailyRateList

      public void setDailyRateList(List<DailyRate> dailyRateList)
    • cancelled

      public BookingContractItem cancelled(Boolean cancelled)
    • getCancelled

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

      public void setCancelled(Boolean cancelled)
    • sourceCurrency

      public BookingContractItem sourceCurrency(String sourceCurrency)
    • getSourceCurrency

      @Nonnull @NotNull public @NotNull String getSourceCurrency()
      The source currency
      Returns:
      sourceCurrency
    • setSourceCurrency

      public void setSourceCurrency(String sourceCurrency)
    • displayCurrency

      public BookingContractItem displayCurrency(String displayCurrency)
    • getDisplayCurrency

      @Nonnull @NotNull public @NotNull String getDisplayCurrency()
      The display currency
      Returns:
      displayCurrency
    • setDisplayCurrency

      public void setDisplayCurrency(String displayCurrency)
    • supplierCurrency

      public BookingContractItem supplierCurrency(String supplierCurrency)
    • getSupplierCurrency

      @Nonnull @NotNull public @NotNull String getSupplierCurrency()
      The supplier currency
      Returns:
      supplierCurrency
    • setSupplierCurrency

      public void setSupplierCurrency(String supplierCurrency)
    • internalCurrency

      public BookingContractItem internalCurrency(String internalCurrency)
    • getInternalCurrency

      @Nonnull @NotNull public @NotNull String getInternalCurrency()
      The internal currency
      Returns:
      internalCurrency
    • setInternalCurrency

      public void setInternalCurrency(String internalCurrency)
    • captureCurrency

      public BookingContractItem captureCurrency(String captureCurrency)
    • getCaptureCurrency

      @Nonnull @NotNull public @NotNull String getCaptureCurrency()
      The capture currency
      Returns:
      captureCurrency
    • setCaptureCurrency

      public void setCaptureCurrency(String captureCurrency)
    • sourceAmount

      public BookingContractItem sourceAmount(BigDecimal sourceAmount)
    • getSourceAmount

      @Nonnull @NotNull @Valid @DecimalMin("0") public @NotNull @Valid @DecimalMin("0") BigDecimal getSourceAmount()
      The total initial price as quoted in the original TripPay contract. minimum: 0
      Returns:
      sourceAmount
    • setSourceAmount

      public void setSourceAmount(BigDecimal sourceAmount)
    • displayAmount

      public BookingContractItem displayAmount(BigDecimal displayAmount)
    • getDisplayAmount

      @Nonnull @NotNull @Valid @DecimalMin("0") public @NotNull @Valid @DecimalMin("0") BigDecimal getDisplayAmount()
      The total display price. minimum: 0
      Returns:
      displayAmount
    • setDisplayAmount

      public void setDisplayAmount(BigDecimal displayAmount)
    • supplierAmount

      public BookingContractItem supplierAmount(BigDecimal supplierAmount)
    • getSupplierAmount

      @Nonnull @NotNull @Valid @DecimalMin("0") public @NotNull @Valid @DecimalMin("0") BigDecimal getSupplierAmount()
      The total supplier price. minimum: 0
      Returns:
      supplierAmount
    • setSupplierAmount

      public void setSupplierAmount(BigDecimal supplierAmount)
    • internalAmount

      public BookingContractItem internalAmount(BigDecimal internalAmount)
    • getInternalAmount

      @Nonnull @NotNull @Valid @DecimalMin("0") public @NotNull @Valid @DecimalMin("0") BigDecimal getInternalAmount()
      The total internal price. minimum: 0
      Returns:
      internalAmount
    • setInternalAmount

      public void setInternalAmount(BigDecimal internalAmount)
    • captureAmount

      public BookingContractItem captureAmount(BigDecimal captureAmount)
    • getCaptureAmount

      @Nonnull @NotNull @Valid @DecimalMin("0") public @NotNull @Valid @DecimalMin("0") BigDecimal getCaptureAmount()
      The total capture price. minimum: 0
      Returns:
      captureAmount
    • setCaptureAmount

      public void setCaptureAmount(BigDecimal captureAmount)
    • sourceAmountRefundModifier

      public BookingContractItem sourceAmountRefundModifier(BigDecimal sourceAmountRefundModifier)
    • getSourceAmountRefundModifier

      @Nullable @Valid @DecimalMin("0") public @Valid @DecimalMin("0") BigDecimal getSourceAmountRefundModifier()
      The source amount still due after a partial refund occurs. minimum: 0
      Returns:
      sourceAmountRefundModifier
    • setSourceAmountRefundModifier

      public void setSourceAmountRefundModifier(BigDecimal sourceAmountRefundModifier)
    • displayAmountRefundModifier

      public BookingContractItem displayAmountRefundModifier(BigDecimal displayAmountRefundModifier)
    • getDisplayAmountRefundModifier

      @Nullable @Valid @DecimalMin("0") public @Valid @DecimalMin("0") BigDecimal getDisplayAmountRefundModifier()
      The display amount still due after a partial refund occurs. minimum: 0
      Returns:
      displayAmountRefundModifier
    • setDisplayAmountRefundModifier

      public void setDisplayAmountRefundModifier(BigDecimal displayAmountRefundModifier)
    • supplierAmountRefundModifier

      public BookingContractItem supplierAmountRefundModifier(BigDecimal supplierAmountRefundModifier)
    • getSupplierAmountRefundModifier

      @Nullable @Valid @DecimalMin("0") public @Valid @DecimalMin("0") BigDecimal getSupplierAmountRefundModifier()
      The supplier amount still due after a partial refund occurs. minimum: 0
      Returns:
      supplierAmountRefundModifier
    • setSupplierAmountRefundModifier

      public void setSupplierAmountRefundModifier(BigDecimal supplierAmountRefundModifier)
    • internalAmountRefundModifier

      public BookingContractItem internalAmountRefundModifier(BigDecimal internalAmountRefundModifier)
    • getInternalAmountRefundModifier

      @Nullable @Valid @DecimalMin("0") public @Valid @DecimalMin("0") BigDecimal getInternalAmountRefundModifier()
      The internal amount still due after a partial refund occurs. minimum: 0
      Returns:
      internalAmountRefundModifier
    • setInternalAmountRefundModifier

      public void setInternalAmountRefundModifier(BigDecimal internalAmountRefundModifier)
    • captureAmountRefundModifier

      public BookingContractItem captureAmountRefundModifier(BigDecimal captureAmountRefundModifier)
    • getCaptureAmountRefundModifier

      @Nullable @Valid @DecimalMin("0") public @Valid @DecimalMin("0") BigDecimal getCaptureAmountRefundModifier()
      The capture amount still due after a partial refund occurs. minimum: 0
      Returns:
      captureAmountRefundModifier
    • setCaptureAmountRefundModifier

      public void setCaptureAmountRefundModifier(BigDecimal captureAmountRefundModifier)
    • metadata

      public BookingContractItem metadata(Map<String,String> metadata)
    • putMetadataItem

      public BookingContractItem putMetadataItem(String key, String metadataItem)
    • getMetadata

      @Nullable public Map<String,String> getMetadata()
      Place to add more data related to the booking contract item.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
    • netCaptureAmount

      public BookingContractItem netCaptureAmount(BigDecimal netCaptureAmount)
    • getNetCaptureAmount

      @Nullable @Valid public @Valid BigDecimal getNetCaptureAmount()
      Get netCaptureAmount
      Returns:
      netCaptureAmount
    • setNetCaptureAmount

      public void setNetCaptureAmount(BigDecimal netCaptureAmount)
    • cancellableByTraveler

      public BookingContractItem cancellableByTraveler(Boolean cancellableByTraveler)
    • getCancellableByTraveler

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

      public void setCancellableByTraveler(Boolean cancellableByTraveler)
    • cancellableBySupplier

      public BookingContractItem cancellableBySupplier(Boolean cancellableBySupplier)
    • getCancellableBySupplier

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

      public void setCancellableBySupplier(Boolean cancellableBySupplier)
    • cancellableWithNoCharges

      public BookingContractItem cancellableWithNoCharges(Boolean cancellableWithNoCharges)
    • getCancellableWithNoCharges

      @Nullable public Boolean getCancellableWithNoCharges()
      Whether the booking can still be cancelled and whether cancellation charges might still occur.
      Returns:
      cancellableWithNoCharges
    • setCancellableWithNoCharges

      public void setCancellableWithNoCharges(Boolean cancellableWithNoCharges)
    • cancellableWithPotentialCharges

      public BookingContractItem cancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges)
    • getCancellableWithPotentialCharges

      @Nullable public Boolean getCancellableWithPotentialCharges()
      Whether the booking can still be cancelled and whether cancellation charges might still occur.
      Returns:
      cancellableWithPotentialCharges
    • setCancellableWithPotentialCharges

      public void setCancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges)
    • netSupplierAmount

      public BookingContractItem netSupplierAmount(BigDecimal netSupplierAmount)
    • getNetSupplierAmount

      @Nullable @Valid public @Valid BigDecimal getNetSupplierAmount()
      Get netSupplierAmount
      Returns:
      netSupplierAmount
    • setNetSupplierAmount

      public void setNetSupplierAmount(BigDecimal netSupplierAmount)
    • netSourceAmount

      public BookingContractItem netSourceAmount(BigDecimal netSourceAmount)
    • getNetSourceAmount

      @Nullable @Valid public @Valid BigDecimal getNetSourceAmount()
      Get netSourceAmount
      Returns:
      netSourceAmount
    • setNetSourceAmount

      public void setNetSourceAmount(BigDecimal netSourceAmount)
    • netDisplayAmount

      public BookingContractItem netDisplayAmount(BigDecimal netDisplayAmount)
    • getNetDisplayAmount

      @Nullable @Valid public @Valid BigDecimal getNetDisplayAmount()
      Get netDisplayAmount
      Returns:
      netDisplayAmount
    • setNetDisplayAmount

      public void setNetDisplayAmount(BigDecimal netDisplayAmount)
    • netInternalAmount

      public BookingContractItem netInternalAmount(BigDecimal netInternalAmount)
    • getNetInternalAmount

      @Nullable @Valid public @Valid BigDecimal getNetInternalAmount()
      Get netInternalAmount
      Returns:
      netInternalAmount
    • setNetInternalAmount

      public void setNetInternalAmount(BigDecimal netInternalAmount)
    • 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