Class DefaultPROSCalculationService

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.impl.DefaultCalculationService
de.hybris.platform.shoppingservices.order.impl.DefaultShoppingCalculationService
de.hybris.platform.prosservices.order.impl.DefaultPROSCalculationService
All Implemented Interfaces:
de.hybris.platform.order.CalculationService, ShoppingCalculationService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultPROSCalculationService extends DefaultShoppingCalculationService
See Also:
  • Constructor Details

    • DefaultPROSCalculationService

      public DefaultPROSCalculationService()
  • Method Details

    • calculateTotalTaxValues

      protected double calculateTotalTaxValues(AbstractOrderModel order, boolean recalculate, int digits, double taxAdjustmentFactor, Map<de.hybris.platform.util.TaxValue,Map<Set<de.hybris.platform.util.TaxValue>,Double>> taxValueMap)
      This method calculates the total amount of the taxes present in the order. After the first calculation, checks if there is a repricer response of type refund in the order. If yes, calculates the compensation between the amount of each tax already paid and the refunded amount in the repricer response.
      Overrides:
      calculateTotalTaxValues in class de.hybris.platform.order.impl.DefaultCalculationService
      Parameters:
      order - the order
      recalculate - the boolean to trigger the recalculation of the cart
      digits - the digits for the apply tax
      taxAdjustmentFactor - the tax Adjustment factor
      taxValueMap - the map of the tax values
      Returns:
      the total amount of the taxes present in the order.
    • calculateNonRefundableTaxes

      protected double calculateNonRefundableTaxes(AbstractOrderModel orderModel, Map<String,Double> nonRefundableTaxes)
      Calculate non refundable taxes. If some of the taxes have not been fully refunded, the non-refunded amount will be added to the list of the taxes in the order.
      Parameters:
      orderModel - the order model
      nonRefundableTaxes - the non refundable taxes
      Returns:
      the total value of all the taxes in the order
    • getRepricerService

      protected ShoppingRepricingService getRepricerService()
      Gets repricer service.
      Returns:
      the repricer service
    • setRepricerService

      public void setRepricerService(ShoppingRepricingService repricerService)
      Sets repricer service.
      Parameters:
      repricerService - the repricer service
    • getSearchResponseService

      protected SearchResponseService getSearchResponseService()
      Gets search response service.
      Returns:
      the search response service
    • setSearchResponseService

      public void setSearchResponseService(SearchResponseService searchResponseService)
      Sets search response service.
      Parameters:
      searchResponseService - the search response service
    • getTransportOfferingService

      protected PROSTransportOfferingService getTransportOfferingService()
      Gets transport offering service.
      Returns:
      the transport offering service
    • setTransportOfferingService

      public void setTransportOfferingService(PROSTransportOfferingService transportOfferingService)
      Sets transport offering service.
      Parameters:
      transportOfferingService - the transport offering service