Class DefaultSalesConditionsContributor

java.lang.Object
de.hybris.platform.sap.orderexchange.outbound.impl.DefaultSalesConditionsContributor
All Implemented Interfaces:
RawItemContributor<OrderModel>
Direct Known Subclasses:
DefaultSapQuoteSalesConditionsContributor, SapOmsSalesConditionsContributor

public class DefaultSalesConditionsContributor extends Object implements RawItemContributor<OrderModel>
Builds the Row map for the CSV files for the Sales Conditions in an Order
  • Field Details

  • Constructor Details

    • DefaultSalesConditionsContributor

      public DefaultSalesConditionsContributor()
  • Method Details

    • getBatchIdAttributes

      public Map<String,String> getBatchIdAttributes()
    • setBatchIdAttributes

      public void setBatchIdAttributes(Map<String,String> batchIdAttributes)
    • getRuleService

      public de.hybris.platform.ruleengineservices.rule.services.RuleService getRuleService()
    • setRuleService

      public void setRuleService(de.hybris.platform.ruleengineservices.rule.services.RuleService ruleService)
    • getColumns

      public Set<String> getColumns()
      Specified by:
      getColumns in interface RawItemContributor<OrderModel>
      Returns:
      Columns to be included in the CSV string
    • setConditionTypes

      @Deprecated(since="2211.FP4", forRemoval=true) protected void setConditionTypes(OrderModel order)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2211.FP4 . Not needed anymore.
    • createRows

      public List<Map<String,Object>> createRows(OrderModel order)
      Specified by:
      createRows in interface RawItemContributor<OrderModel>
      Parameters:
      order - The item model from which parts of the CSV string shall be created
      Returns:
      Name / value pairs. The names must correspond to the column names as returned in RawItemContributor.getColumns(). Each list entry corresponds to one line of the CSV string
    • syncPricingInactive

      protected boolean syncPricingInactive(List<AbstractOrderEntryModel> entries)
    • createPaymentCostRow

      protected void createPaymentCostRow(OrderModel order, List<Map<String,Object>> result)
    • createDeliveryCostRow

      protected void createDeliveryCostRow(OrderModel order, List<Map<String,Object>> result)
    • safe

      public static List<de.hybris.platform.util.DiscountValue> safe(List<de.hybris.platform.util.DiscountValue> other)
    • emptyIfNull

      public static <T> Iterable<T> emptyIfNull(Iterable<T> iterable)
    • createOrderDiscountRows

      protected void createOrderDiscountRows(OrderModel order, List<Map<String,Object>> result)
    • createProductDiscountRows

      protected void createProductDiscountRows(OrderModel order, List<Map<String,Object>> result, AbstractOrderEntryModel entry)
    • createTaxRows

      protected void createTaxRows(OrderModel order, List<Map<String,Object>> result, AbstractOrderEntryModel entry)
    • createGrossPriceRow

      protected void createGrossPriceRow(OrderModel order, List<Map<String,Object>> result, AbstractOrderEntryModel entry)
    • determinePromotionDiscountCode

      protected String determinePromotionDiscountCode(OrderModel order, de.hybris.platform.util.DiscountValue discountValue)
    • setTax1

      public void setTax1(String tax1)
    • setGrossPrice

      @Deprecated(since="2211.FP4", forRemoval=true) public void setGrossPrice(String grossPrice)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2211.FP4 . Not needed anymore.
    • setDeliveryCosts

      @Deprecated(since="2211.FP4", forRemoval=true) public void setDeliveryCosts(String deliveryCosts)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2211.FP4 . Not needed anymore.
    • setPaymentCosts

      @Deprecated(since="2211.FP4", forRemoval=true) public void setPaymentCosts(String paymentCosts)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2211.FP4 . Not needed anymore.
    • getConditionCounterDeliveryCost

      public int getConditionCounterDeliveryCost()
    • setConditionCounterDeliveryCost

      public void setConditionCounterDeliveryCost(int conditionCounterDeliveryCost)
    • getConditionCounterPaymentCost

      public int getConditionCounterPaymentCost()
    • setConditionCounterPaymentCost

      public void setConditionCounterPaymentCost(int conditionCounterPaymentCost)
    • getConditionCounterTax

      public int getConditionCounterTax()
    • setConditionCounterTax

      public void setConditionCounterTax(int conditionCounterTax)
    • getConditionCounterStartProductDiscount

      public int getConditionCounterStartProductDiscount()
    • setConditionCounterStartProductDiscount

      public void setConditionCounterStartProductDiscount(int conditionCounterStartProductDiscount)
    • getConditionCounterStartOrderDiscount

      public int getConditionCounterStartOrderDiscount()
    • setConditionCounterStartOrderDiscount

      public void setConditionCounterStartOrderDiscount(int conditionCounterStartOrderDiscount)
    • getConditionCounterGrossPrice

      public int getConditionCounterGrossPrice()
    • setConditionCounterGrossPrice

      public void setConditionCounterGrossPrice(int conditionCounterGrossPrice)
    • getGrossPrice

      @Deprecated(since="2211.FP4", forRemoval=true) public String getGrossPrice()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2211.FP4 . Not needed anymore.
    • getTax1

      public String getTax1()