Package io.trippay.sdk.payment.model
Class BookingContract
java.lang.Object
io.trippay.sdk.payment.model.BookingContract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-04-12T17:32:17.983408277+07:00[Asia/Bangkok]")
public class BookingContract
extends Object
A booking record is the contract that got created after a successful payment was submitted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReason type.static enumType of entity that cancelled the booking. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemListItem(BookingContractItem itemListItem) addRefundsItem(Refund refundsItem) addTotalFundsGroupedByBeneficiaryItem(Beneficiary totalFundsGroupedByBeneficiaryItem) cancellableBySupplier(Boolean cancellableBySupplier) cancellableByTraveler(Boolean cancellableByTraveler) cancellableWithNoCharges(Boolean cancellableWithNoCharges) cancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges) cancellationType(BookingContract.CancellationTypeEnum cancellationType) cancelledOn(LocalDateTime cancelledOn) canceller(BookingContract.CancellerEnum canceller) cancellerUserIdentifier(String cancellerUserIdentifier) cancelReason(String cancelReason) captureAmount(Double captureAmount) captureAmountRefundModifier(Double captureAmountRefundModifier) captureCurrency(String captureCurrency) capturePriceQuote(Quote capturePriceQuote) createdDate(LocalDateTime createdDate) displayAmount(Double displayAmount) displayAmountRefundModifier(Double displayAmountRefundModifier) displayCurrency(String displayCurrency) displayPriceQuote(Quote displayPriceQuote) booleanexternalSupplierBookingCode(String externalSupplierBookingCode) externalSupplierIdentifier(String externalSupplierIdentifier) fundsAddedToLedger(Boolean fundsAddedToLedger) fundsProcessed(Boolean fundsProcessed) Whether the booking can still be cancelled completely by the supplier.Whether the booking can still be cancelled completely by the traveller.Whether the cancellation comes at no cost to the traveler.Whether a cancellation comes with partial charges.Reason type.@NotNull BooleanWhether the booking was cancelled.When the booking was cancelled.Type of entity that cancelled the booking.User identifier that cancelled the entity.Reason for cancellation.@NotNull @DecimalMin("0") DoubleThe total capture price.@DecimalMin("0") DoubleThe capture amount still due after a partial refund occurs.@NotNull StringThe capture currency@NotNull @Valid QuoteGet capturePriceQuoteDatetime this record was first created@NotNull @DecimalMin("0") DoubleThe total display price.@DecimalMin("0") DoubleThe display amount still due after a partial refund occurs.@NotNull StringThe display currency@NotNull @Valid QuoteGet displayPriceQuoteExternal booking code generated by the callerContract creator can choose to geoname this record with her own identifierWhether the contract has been added to the ledger; rady for payout.Whether a funds transfer request has been created for this booking.getId()Document UUID@NotNull StringUnique identifier used to track the contract.@NotNull @DecimalMin("0") DoubleGet internalAmount minimum: 0@DecimalMin("0") DoubleThe internal amount still due after a partial refund occurs.@NotNull StringThe internal currency@NotNull @Valid QuoteGet internalPriceQuote@NotNull StringCaller's IP address@NotNull @Valid @Size(min=1,max=2147483647) List<BookingContractItem>Holds one booking line item for a specific supplier.Datetime this record was last updated@Valid BookingContractItemGet lodging@Valid ItineraryGet lodgingItineraryGet netCaptureAmountGet netDisplayAmountGet netInternalAmountGet netSourceAmountGet netSupplierAmount@NotNull @Valid BookingContractPaymentDetailsGet paymentGet refundableGet refundedAn optional list of refunds that occurred with this booking.@NotNull @DecimalMin("0") DoubleThe total initial price as quoted in the original TripPay contract.@DecimalMin("0") DoubleThe source amount still due after a partial refund occurs.@NotNull StringThe source currency@NotNull StringWhere did the booking occur@NotNull @DecimalMin("0") DoubleThe total supplier price.@DecimalMin("0") DoubleThe supplier amount still due after a partial refund occurs.@NotNull StringThe supplier currency@NotNull @Valid UUIDSupplier identifier@NotNull StringSupplier name@NotNull @Valid QuoteGet supplierPriceQuote@Valid List<Beneficiary>Get totalFundsGroupedByBeneficiaryTotal amount of tokens minted on this contract.@NotNull StringWay to track which booking contracts were made togetherVersion property that shows how many times this document has been persisted.inthashCode()identifier(String identifier) internalAmount(Double internalAmount) internalAmountRefundModifier(Double internalAmountRefundModifier) internalCurrency(String internalCurrency) internalPriceQuote(Quote internalPriceQuote) itemList(List<BookingContractItem> itemList) lastUpdate(LocalDateTime lastUpdate) lodging(BookingContractItem lodging) lodgingItinerary(Itinerary lodgingItinerary) netCaptureAmount(Double netCaptureAmount) netDisplayAmount(Double netDisplayAmount) netInternalAmount(Double netInternalAmount) netSourceAmount(Double netSourceAmount) netSupplierAmount(Double netSupplierAmount) payment(BookingContractPaymentDetails payment) refundable(Boolean refundable) voidsetCancellableBySupplier(Boolean cancellableBySupplier) voidsetCancellableByTraveler(Boolean cancellableByTraveler) voidsetCancellableWithNoCharges(Boolean cancellableWithNoCharges) voidsetCancellableWithPotentialCharges(Boolean cancellableWithPotentialCharges) voidsetCancellationType(BookingContract.CancellationTypeEnum cancellationType) voidsetCancelled(Boolean cancelled) voidsetCancelledOn(LocalDateTime cancelledOn) voidsetCanceller(BookingContract.CancellerEnum canceller) voidsetCancellerUserIdentifier(String cancellerUserIdentifier) voidsetCancelReason(String cancelReason) voidsetCaptureAmount(Double captureAmount) voidsetCaptureAmountRefundModifier(Double captureAmountRefundModifier) voidsetCaptureCurrency(String captureCurrency) voidsetCapturePriceQuote(Quote capturePriceQuote) voidsetCreatedDate(LocalDateTime createdDate) voidsetDisplayAmount(Double displayAmount) voidsetDisplayAmountRefundModifier(Double displayAmountRefundModifier) voidsetDisplayCurrency(String displayCurrency) voidsetDisplayPriceQuote(Quote displayPriceQuote) voidsetExternalSupplierBookingCode(String externalSupplierBookingCode) voidsetExternalSupplierIdentifier(String externalSupplierIdentifier) voidsetFundsAddedToLedger(Boolean fundsAddedToLedger) voidsetFundsProcessed(Boolean fundsProcessed) voidvoidsetIdentifier(String identifier) voidsetInternalAmount(Double internalAmount) voidsetInternalAmountRefundModifier(Double internalAmountRefundModifier) voidsetInternalCurrency(String internalCurrency) voidsetInternalPriceQuote(Quote internalPriceQuote) voidsetIpAddress(String ipAddress) voidsetItemList(List<BookingContractItem> itemList) voidsetLastUpdate(LocalDateTime lastUpdate) voidsetLodging(BookingContractItem lodging) voidsetLodgingItinerary(Itinerary lodgingItinerary) voidsetNetCaptureAmount(Double netCaptureAmount) voidsetNetDisplayAmount(Double netDisplayAmount) voidsetNetInternalAmount(Double netInternalAmount) voidsetNetSourceAmount(Double netSourceAmount) voidsetNetSupplierAmount(Double netSupplierAmount) voidsetPayment(BookingContractPaymentDetails payment) voidsetRefundable(Boolean refundable) voidsetRefunded(Boolean refunded) voidsetRefunds(List<Refund> refunds) voidsetSourceAmount(Double sourceAmount) voidsetSourceAmountRefundModifier(Double sourceAmountRefundModifier) voidsetSourceCurrency(String sourceCurrency) voidsetSourceUrl(String sourceUrl) voidsetSupplierAmount(Double supplierAmount) voidsetSupplierAmountRefundModifier(Double supplierAmountRefundModifier) voidsetSupplierCurrency(String supplierCurrency) voidsetSupplierIdentifier(UUID supplierIdentifier) voidsetSupplierName(String supplierName) voidsetSupplierPriceQuote(Quote supplierPriceQuote) voidsetTotalFundsGroupedByBeneficiary(List<Beneficiary> totalFundsGroupedByBeneficiary) voidsetTotalTokensEarned(Long totalTokensEarned) voidsetTraceId(String traceId) voidsetVersion(Long version) sourceAmount(Double sourceAmount) sourceAmountRefundModifier(Double sourceAmountRefundModifier) sourceCurrency(String sourceCurrency) supplierAmount(Double supplierAmount) supplierAmountRefundModifier(Double supplierAmountRefundModifier) supplierCurrency(String supplierCurrency) supplierIdentifier(UUID supplierIdentifier) supplierName(String supplierName) supplierPriceQuote(Quote supplierPriceQuote) toString()totalFundsGroupedByBeneficiary(List<Beneficiary> totalFundsGroupedByBeneficiary) totalTokensEarned(Long totalTokensEarned)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_DATE
- See Also:
-
JSON_PROPERTY_LAST_UPDATE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_IP_ADDRESS
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
JSON_PROPERTY_SOURCE_URL
- See Also:
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_SUPPLIER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_SUPPLIER_NAME
- See Also:
-
JSON_PROPERTY_DISPLAY_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_SUPPLIER_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_INTERNAL_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_CAPTURE_PRICE_QUOTE
- See Also:
-
JSON_PROPERTY_ITEM_LIST
- See Also:
-
JSON_PROPERTY_EXTERNAL_SUPPLIER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_EXTERNAL_SUPPLIER_BOOKING_CODE
- See Also:
-
JSON_PROPERTY_PAYMENT
- See Also:
-
JSON_PROPERTY_CANCELLED
- See Also:
-
JSON_PROPERTY_CANCELLED_ON
- See Also:
-
JSON_PROPERTY_CANCELLER
- See Also:
-
JSON_PROPERTY_CANCELLATION_TYPE
- See Also:
-
JSON_PROPERTY_CANCELLER_USER_IDENTIFIER
- See Also:
-
JSON_PROPERTY_CANCEL_REASON
- See Also:
-
JSON_PROPERTY_FUNDS_ADDED_TO_LEDGER
- See Also:
-
JSON_PROPERTY_FUNDS_PROCESSED
- See Also:
-
JSON_PROPERTY_REFUNDS
- See Also:
-
JSON_PROPERTY_SOURCE_CURRENCY
- See Also:
-
JSON_PROPERTY_DISPLAY_CURRENCY
- See Also:
-
JSON_PROPERTY_SUPPLIER_CURRENCY
- See Also:
-
JSON_PROPERTY_INTERNAL_CURRENCY
- See Also:
-
JSON_PROPERTY_CAPTURE_CURRENCY
- See Also:
-
JSON_PROPERTY_SOURCE_AMOUNT
- See Also:
-
JSON_PROPERTY_DISPLAY_AMOUNT
- See Also:
-
JSON_PROPERTY_SUPPLIER_AMOUNT
- See Also:
-
JSON_PROPERTY_INTERNAL_AMOUNT
- See Also:
-
JSON_PROPERTY_CAPTURE_AMOUNT
- See Also:
-
JSON_PROPERTY_SOURCE_AMOUNT_REFUND_MODIFIER
- See Also:
-
JSON_PROPERTY_DISPLAY_AMOUNT_REFUND_MODIFIER
- See Also:
-
JSON_PROPERTY_SUPPLIER_AMOUNT_REFUND_MODIFIER
- See Also:
-
JSON_PROPERTY_INTERNAL_AMOUNT_REFUND_MODIFIER
- See Also:
-
JSON_PROPERTY_CAPTURE_AMOUNT_REFUND_MODIFIER
- See Also:
-
JSON_PROPERTY_NET_CAPTURE_AMOUNT
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_TRAVELER
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_SUPPLIER
- See Also:
-
JSON_PROPERTY_NET_SUPPLIER_AMOUNT
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_NO_CHARGES
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_POTENTIAL_CHARGES
- See Also:
-
JSON_PROPERTY_LODGING
- See Also:
-
JSON_PROPERTY_TOTAL_TOKENS_EARNED
- See Also:
-
JSON_PROPERTY_LODGING_ITINERARY
- See Also:
-
JSON_PROPERTY_TOTAL_FUNDS_GROUPED_BY_BENEFICIARY
- See Also:
-
JSON_PROPERTY_NET_SOURCE_AMOUNT
- See Also:
-
JSON_PROPERTY_NET_DISPLAY_AMOUNT
- See Also:
-
JSON_PROPERTY_NET_INTERNAL_AMOUNT
- See Also:
-
JSON_PROPERTY_REFUNDABLE
- See Also:
-
JSON_PROPERTY_REFUNDED
- See Also:
-
-
Constructor Details
-
BookingContract
public BookingContract()
-
-
Method Details
-
id
-
getId
Document UUID- Returns:
- id
-
setId
-
createdDate
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
setCreatedDate
-
lastUpdate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
setLastUpdate
-
version
-
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
-
ipAddress
-
getIpAddress
Caller's IP address- Returns:
- ipAddress
-
setIpAddress
-
traceId
-
getTraceId
Way to track which booking contracts were made together- Returns:
- traceId
-
setTraceId
-
sourceUrl
-
getSourceUrl
Where did the booking occur- Returns:
- sourceUrl
-
setSourceUrl
-
identifier
-
getIdentifier
Unique identifier used to track the contract.- Returns:
- identifier
-
setIdentifier
-
supplierIdentifier
-
getSupplierIdentifier
Supplier identifier- Returns:
- supplierIdentifier
-
setSupplierIdentifier
-
supplierName
-
getSupplierName
Supplier name- Returns:
- supplierName
-
setSupplierName
-
displayPriceQuote
-
getDisplayPriceQuote
Get displayPriceQuote- Returns:
- displayPriceQuote
-
setDisplayPriceQuote
-
supplierPriceQuote
-
getSupplierPriceQuote
Get supplierPriceQuote- Returns:
- supplierPriceQuote
-
setSupplierPriceQuote
-
internalPriceQuote
-
getInternalPriceQuote
Get internalPriceQuote- Returns:
- internalPriceQuote
-
setInternalPriceQuote
-
capturePriceQuote
-
getCapturePriceQuote
Get capturePriceQuote- Returns:
- capturePriceQuote
-
setCapturePriceQuote
-
itemList
-
addItemListItem
-
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
-
externalSupplierIdentifier
-
getExternalSupplierIdentifier
Contract creator can choose to geoname this record with her own identifier- Returns:
- externalSupplierIdentifier
-
setExternalSupplierIdentifier
-
externalSupplierBookingCode
-
getExternalSupplierBookingCode
External booking code generated by the caller- Returns:
- externalSupplierBookingCode
-
setExternalSupplierBookingCode
-
payment
-
getPayment
Get payment- Returns:
- payment
-
setPayment
-
cancelled
-
getCancelled
Whether the booking was cancelled.- Returns:
- cancelled
-
setCancelled
-
cancelledOn
-
getCancelledOn
When the booking was cancelled.- Returns:
- cancelledOn
-
setCancelledOn
-
canceller
-
getCanceller
Type of entity that cancelled the booking.- Returns:
- canceller
-
setCanceller
-
cancellationType
-
getCancellationType
Reason type.- Returns:
- cancellationType
-
setCancellationType
-
cancellerUserIdentifier
-
getCancellerUserIdentifier
User identifier that cancelled the entity.- Returns:
- cancellerUserIdentifier
-
setCancellerUserIdentifier
-
cancelReason
-
getCancelReason
Reason for cancellation.- Returns:
- cancelReason
-
setCancelReason
-
fundsAddedToLedger
-
getFundsAddedToLedger
Whether the contract has been added to the ledger; rady for payout.- Returns:
- fundsAddedToLedger
-
setFundsAddedToLedger
-
fundsProcessed
-
getFundsProcessed
Whether a funds transfer request has been created for this booking.- Returns:
- fundsProcessed
-
setFundsProcessed
-
refunds
-
addRefundsItem
-
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
-
sourceCurrency
-
getSourceCurrency
The source currency- Returns:
- sourceCurrency
-
setSourceCurrency
-
displayCurrency
-
getDisplayCurrency
The display currency- Returns:
- displayCurrency
-
setDisplayCurrency
-
supplierCurrency
-
getSupplierCurrency
The supplier currency- Returns:
- supplierCurrency
-
setSupplierCurrency
-
internalCurrency
-
getInternalCurrency
The internal currency- Returns:
- internalCurrency
-
setInternalCurrency
-
captureCurrency
-
getCaptureCurrency
The capture currency- Returns:
- captureCurrency
-
setCaptureCurrency
-
sourceAmount
-
getSourceAmount
The total initial price as quoted in the original TripPay contract. minimum: 0- Returns:
- sourceAmount
-
setSourceAmount
-
displayAmount
-
getDisplayAmount
The total display price. minimum: 0- Returns:
- displayAmount
-
setDisplayAmount
-
supplierAmount
-
getSupplierAmount
The total supplier price. minimum: 0- Returns:
- supplierAmount
-
setSupplierAmount
-
internalAmount
-
getInternalAmount
Get internalAmount minimum: 0- Returns:
- internalAmount
-
setInternalAmount
-
captureAmount
-
getCaptureAmount
The total capture price. minimum: 0- Returns:
- captureAmount
-
setCaptureAmount
-
sourceAmountRefundModifier
-
getSourceAmountRefundModifier
The source amount still due after a partial refund occurs. minimum: 0- Returns:
- sourceAmountRefundModifier
-
setSourceAmountRefundModifier
-
displayAmountRefundModifier
-
getDisplayAmountRefundModifier
The display amount still due after a partial refund occurs. minimum: 0- Returns:
- displayAmountRefundModifier
-
setDisplayAmountRefundModifier
-
supplierAmountRefundModifier
-
getSupplierAmountRefundModifier
The supplier amount still due after a partial refund occurs. minimum: 0- Returns:
- supplierAmountRefundModifier
-
setSupplierAmountRefundModifier
-
internalAmountRefundModifier
-
getInternalAmountRefundModifier
The internal amount still due after a partial refund occurs. minimum: 0- Returns:
- internalAmountRefundModifier
-
setInternalAmountRefundModifier
-
captureAmountRefundModifier
-
getCaptureAmountRefundModifier
The capture amount still due after a partial refund occurs. minimum: 0- Returns:
- captureAmountRefundModifier
-
setCaptureAmountRefundModifier
-
netCaptureAmount
-
getNetCaptureAmount
Get netCaptureAmount- Returns:
- netCaptureAmount
-
setNetCaptureAmount
-
cancellableByTraveler
-
getCancellableByTraveler
Whether the booking can still be cancelled completely by the traveller.- Returns:
- cancellableByTraveler
-
setCancellableByTraveler
-
cancellableBySupplier
-
getCancellableBySupplier
Whether the booking can still be cancelled completely by the supplier.- Returns:
- cancellableBySupplier
-
setCancellableBySupplier
-
netSupplierAmount
-
getNetSupplierAmount
Get netSupplierAmount- Returns:
- netSupplierAmount
-
setNetSupplierAmount
-
cancellableWithNoCharges
-
getCancellableWithNoCharges
Whether the cancellation comes at no cost to the traveler.- Returns:
- cancellableWithNoCharges
-
setCancellableWithNoCharges
-
cancellableWithPotentialCharges
-
getCancellableWithPotentialCharges
Whether a cancellation comes with partial charges. I.e. Only some of the items in contract are not fully refundable.- Returns:
- cancellableWithPotentialCharges
-
setCancellableWithPotentialCharges
-
lodging
-
getLodging
Get lodging- Returns:
- lodging
-
setLodging
-
totalTokensEarned
-
getTotalTokensEarned
Total amount of tokens minted on this contract.- Returns:
- totalTokensEarned
-
setTotalTokensEarned
-
lodgingItinerary
-
getLodgingItinerary
Get lodgingItinerary- Returns:
- lodgingItinerary
-
setLodgingItinerary
-
totalFundsGroupedByBeneficiary
public BookingContract totalFundsGroupedByBeneficiary(List<Beneficiary> totalFundsGroupedByBeneficiary) -
addTotalFundsGroupedByBeneficiaryItem
public BookingContract addTotalFundsGroupedByBeneficiaryItem(Beneficiary totalFundsGroupedByBeneficiaryItem) -
getTotalFundsGroupedByBeneficiary
Get totalFundsGroupedByBeneficiary- Returns:
- totalFundsGroupedByBeneficiary
-
setTotalFundsGroupedByBeneficiary
-
netSourceAmount
-
getNetSourceAmount
Get netSourceAmount- Returns:
- netSourceAmount
-
setNetSourceAmount
-
netDisplayAmount
-
getNetDisplayAmount
Get netDisplayAmount- Returns:
- netDisplayAmount
-
setNetDisplayAmount
-
netInternalAmount
-
getNetInternalAmount
Get netInternalAmount- Returns:
- netInternalAmount
-
setNetInternalAmount
-
refundable
-
getRefundable
Get refundable- Returns:
- refundable
-
setRefundable
-
refunded
-
getRefunded
Get refunded- Returns:
- refunded
-
setRefunded
-
equals
-
hashCode
public int hashCode() -
toString
-