Class AbstractPaymentTransactionEntryCreationStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentTransactionEntryCreationStrategy
- Direct Known Subclasses:
AccommodationRefundTransactionEntryCreationStrategy,DefaultRefundTransactionEntryCreationStrategy
Abstract class handling basic operations involved in the creation of payment transaction entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublecalculateTaxes(List<AbstractOrderEntryModel> entries) protected voidcreateRefundEntry(PaymentTransactionModel transaction, BigDecimal amountToRefund) protected DoublegetAvailableFunds(PaymentTransactionModel transaction) protected List<PaymentTransactionModel>getAvailableTransactions(List<PaymentTransactionModel> involvedTransactions) protected BigDecimalgetBookingTimeAmount(List<AbstractOrderEntryModel> entries, AbstractOrderModel abstractOrder) protected BigDecimalgetEntriesAmount(List<AbstractOrderEntryModel> entries) protected BigDecimalgetEntriesTotalWithDiscounts(BigDecimal paymentTotal, List<AbstractOrderEntryModel> entries) protected BigDecimalgetGuaranteeAmount(Double amountPercent, BigDecimal totalPrice) protected de.hybris.platform.servicelayer.model.ModelServiceprotected de.hybris.platform.order.OrderServiceprotected OrderModelgetOriginalOrder(AbstractOrderModel abstractOrder) Deprecated.Deprecated since version 4.0.protected de.hybris.platform.payment.PaymentServiceprotected TaxCompensationStrategyprotected de.hybris.platform.servicelayer.time.TimeServiceprotected BigDecimalgetTotalToPayWithGuarantee(GuaranteeModel guaranteeToApply, AccommodationOrderEntryGroupModel group, AbstractOrderModel abstractOrder) protected TransactionCalculationStrategyprotected TravelCartServiceprotected booleanhasIncreased(AbstractOrderEntryModel entry, AbstractOrderModel originalOrder) voidsetGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetOrderService(de.hybris.platform.order.OrderService orderService) voidsetPaymentService(de.hybris.platform.payment.PaymentService paymentService) voidsetTaxCompensationStrategy(TaxCompensationStrategy taxCompensationStrategy) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) voidsetTransactionCalculationStrategy(TransactionCalculationStrategy transactionCalculationStrategy) voidsetTravelCartService(TravelCartService travelCartService)
-
Constructor Details
-
AbstractPaymentTransactionEntryCreationStrategy
public AbstractPaymentTransactionEntryCreationStrategy()
-
-
Method Details
-
createRefundEntry
-
getTotalToPayWithGuarantee
protected BigDecimal getTotalToPayWithGuarantee(GuaranteeModel guaranteeToApply, AccommodationOrderEntryGroupModel group, AbstractOrderModel abstractOrder) -
getGuaranteeAmount
-
calculateTaxes
-
getBookingTimeAmount
protected BigDecimal getBookingTimeAmount(List<AbstractOrderEntryModel> entries, AbstractOrderModel abstractOrder) -
getEntriesAmount
-
getEntriesTotalWithDiscounts
protected BigDecimal getEntriesTotalWithDiscounts(BigDecimal paymentTotal, List<AbstractOrderEntryModel> entries) -
getOriginalOrder
Deprecated.Deprecated since version 4.0. useBookingService.getOriginalOrder(AbstractOrderModel)- Parameters:
abstractOrder-- Returns:
-
hasIncreased
-
getAvailableFunds
-
getAvailableTransactions
protected List<PaymentTransactionModel> getAvailableTransactions(List<PaymentTransactionModel> involvedTransactions) -
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) - Parameters:
timeService- the timeService to set
-
getPaymentService
protected de.hybris.platform.payment.PaymentService getPaymentService()- Returns:
- thepaymentService
-
setPaymentService
public void setPaymentService(de.hybris.platform.payment.PaymentService paymentService) - Parameters:
paymentService- the paymentService to set
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) - Parameters:
modelService- the modelService to set
-
getOrderService
protected de.hybris.platform.order.OrderService getOrderService()- Returns:
- the orderService
-
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService) - Parameters:
orderService- the orderService to set
-
getTransactionCalculationStrategy
- Returns:
- the transactionCalculationStrategy
-
setTransactionCalculationStrategy
public void setTransactionCalculationStrategy(TransactionCalculationStrategy transactionCalculationStrategy) - Parameters:
transactionCalculationStrategy- the transactionCalculationStrategy to set
-
getTravelCartService
- Returns:
- the travelCartService
-
setTravelCartService
- Parameters:
travelCartService- the travelCartService to set
-
getGlobalDiscountCalculationStrategyMap
protected Map<OrderEntryType,GlobalDiscountByEntryTypeCalculationStrategy> getGlobalDiscountCalculationStrategyMap()- Returns:
- the getGlobalDiscountCalculationStrategyMap
-
setGlobalDiscountCalculationStrategyMap
public void setGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) - Parameters:
globalDiscountCalculationStrategyMap- the getGlobalDiscountCalculationStrategyMap to set
-
getTaxCompensationStrategy
- Returns:
- taxCompensationStrategy
-
setTaxCompensationStrategy
- Parameters:
taxCompensationStrategy- the taxCompensationStrategy to set
-