Class AbstractPaymentTransactionEntryCreationStrategy

java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentTransactionEntryCreationStrategy
Direct Known Subclasses:
AccommodationRefundTransactionEntryCreationStrategy, DefaultRefundTransactionEntryCreationStrategy

public abstract class AbstractPaymentTransactionEntryCreationStrategy extends Object
Abstract class handling basic operations involved in the creation of payment transaction entries.
  • Constructor Details

    • AbstractPaymentTransactionEntryCreationStrategy

      public AbstractPaymentTransactionEntryCreationStrategy()
  • Method Details

    • createRefundEntry

      protected void createRefundEntry(PaymentTransactionModel transaction, BigDecimal amountToRefund)
    • getTotalToPayWithGuarantee

      protected BigDecimal getTotalToPayWithGuarantee(GuaranteeModel guaranteeToApply, AccommodationOrderEntryGroupModel group, AbstractOrderModel abstractOrder)
    • getGuaranteeAmount

      protected BigDecimal getGuaranteeAmount(Double amountPercent, BigDecimal totalPrice)
    • calculateTaxes

      protected Double calculateTaxes(List<AbstractOrderEntryModel> entries)
    • getBookingTimeAmount

      protected BigDecimal getBookingTimeAmount(List<AbstractOrderEntryModel> entries, AbstractOrderModel abstractOrder)
    • getEntriesAmount

      protected BigDecimal getEntriesAmount(List<AbstractOrderEntryModel> entries)
    • getEntriesTotalWithDiscounts

      protected BigDecimal getEntriesTotalWithDiscounts(BigDecimal paymentTotal, List<AbstractOrderEntryModel> entries)
    • getOriginalOrder

      @Deprecated protected OrderModel getOriginalOrder(AbstractOrderModel abstractOrder)
      Deprecated.
      Deprecated since version 4.0. use BookingService.getOriginalOrder(AbstractOrderModel)
      Parameters:
      abstractOrder -
      Returns:
    • hasIncreased

      protected boolean hasIncreased(AbstractOrderEntryModel entry, AbstractOrderModel originalOrder)
    • getAvailableFunds

      protected Double getAvailableFunds(PaymentTransactionModel transaction)
    • 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

      protected TransactionCalculationStrategy getTransactionCalculationStrategy()
      Returns:
      the transactionCalculationStrategy
    • setTransactionCalculationStrategy

      public void setTransactionCalculationStrategy(TransactionCalculationStrategy transactionCalculationStrategy)
      Parameters:
      transactionCalculationStrategy - the transactionCalculationStrategy to set
    • getTravelCartService

      protected TravelCartService getTravelCartService()
      Returns:
      the travelCartService
    • setTravelCartService

      public void setTravelCartService(TravelCartService travelCartService)
      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

      protected TaxCompensationStrategy getTaxCompensationStrategy()
      Returns:
      taxCompensationStrategy
    • setTaxCompensationStrategy

      public void setTaxCompensationStrategy(TaxCompensationStrategy taxCompensationStrategy)
      Parameters:
      taxCompensationStrategy - the taxCompensationStrategy to set