Class DefaultRefundTransactionEntryCreationStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentTransactionEntryCreationStrategy
de.hybris.platform.travelservices.strategies.payment.impl.DefaultRefundTransactionEntryCreationStrategy
- All Implemented Interfaces:
PaymentTransactionEntryCreationStrategy
- Direct Known Subclasses:
DefaultShoppingRefundTransactionEntryCreationStrategy
public class DefaultRefundTransactionEntryCreationStrategy
extends AbstractPaymentTransactionEntryCreationStrategy
implements PaymentTransactionEntryCreationStrategy
Concrete implementation handling the creation of transaction entries in case of refund
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublecalculateTotalExtras(List<AbstractOrderEntryModel> entries) protected voidcreateRefundTransactionEntries(List<PaymentTransactionModel> involvedTransactions, BigDecimal amountToRefund) voidcreateTransactionEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) Method to create transaction entriesprotected voiddistributeOrphanEntries(List<AbstractOrderEntryModel> increasedEntries, List<PaymentTransactionModel> availableTransactions, AbstractOrderModel originalOrder) protected DoublegetAmountDifference(AbstractOrderEntryModel entry, AbstractOrderModel originalOrder) protected BookingServiceprotected BigDecimalgetCurrentTransportTotal(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) protected OrderTotalByEntryTypeCalculationStrategyprotected TotalRefundCalculationStrategyvoidsetBookingService(BookingService bookingService) voidsetOrderTotalByEntryTypeCalculationStrategy(OrderTotalByEntryTypeCalculationStrategy orderTotalByEntryTypeCalculationStrategy) voidsetTotalRefundCalculationStrategy(TotalRefundCalculationStrategy totalRefundCalculationStrategy) Methods inherited from class de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentTransactionEntryCreationStrategy
calculateTaxes, createRefundEntry, getAvailableFunds, getAvailableTransactions, getBookingTimeAmount, getEntriesAmount, getEntriesTotalWithDiscounts, getGlobalDiscountCalculationStrategyMap, getGuaranteeAmount, getModelService, getOrderService, getOriginalOrder, getPaymentService, getTaxCompensationStrategy, getTimeService, getTotalToPayWithGuarantee, getTransactionCalculationStrategy, getTravelCartService, hasIncreased, setGlobalDiscountCalculationStrategyMap, setModelService, setOrderService, setPaymentService, setTaxCompensationStrategy, setTimeService, setTransactionCalculationStrategy, setTravelCartService
-
Constructor Details
-
DefaultRefundTransactionEntryCreationStrategy
public DefaultRefundTransactionEntryCreationStrategy()
-
-
Method Details
-
createTransactionEntries
public void createTransactionEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) Description copied from interface:PaymentTransactionEntryCreationStrategyMethod to create transaction entries- Specified by:
createTransactionEntriesin interfacePaymentTransactionEntryCreationStrategy
-
getCurrentTransportTotal
protected BigDecimal getCurrentTransportTotal(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) -
calculateTotalExtras
-
createRefundTransactionEntries
protected void createRefundTransactionEntries(List<PaymentTransactionModel> involvedTransactions, BigDecimal amountToRefund) -
distributeOrphanEntries
protected void distributeOrphanEntries(List<AbstractOrderEntryModel> increasedEntries, List<PaymentTransactionModel> availableTransactions, AbstractOrderModel originalOrder) -
getAmountDifference
protected Double getAmountDifference(AbstractOrderEntryModel entry, AbstractOrderModel originalOrder) -
getTotalRefundCalculationStrategy
- Returns:
- the totalRefundCalculationStrategy
-
setTotalRefundCalculationStrategy
public void setTotalRefundCalculationStrategy(TotalRefundCalculationStrategy totalRefundCalculationStrategy) - Parameters:
totalRefundCalculationStrategy- the totalRefundCalculationStrategy to set
-
getOrderTotalByEntryTypeCalculationStrategy
- Returns:
- the orderTotalByEntryTypeCalculationStrategy
-
setOrderTotalByEntryTypeCalculationStrategy
public void setOrderTotalByEntryTypeCalculationStrategy(OrderTotalByEntryTypeCalculationStrategy orderTotalByEntryTypeCalculationStrategy) - Parameters:
orderTotalByEntryTypeCalculationStrategy- the orderTotalByEntryTypeCalculationStrategy
-
getBookingService
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-