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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateDeliveryCostRow(OrderModel order, List<Map<String, Object>> result) protected voidcreateGrossPriceRow(OrderModel order, List<Map<String, Object>> result, AbstractOrderEntryModel entry) protected voidcreateOrderDiscountRows(OrderModel order, List<Map<String, Object>> result) protected voidcreatePaymentCostRow(OrderModel order, List<Map<String, Object>> result) protected voidcreateProductDiscountRows(OrderModel order, List<Map<String, Object>> result, AbstractOrderEntryModel entry) createRows(OrderModel order) protected voidcreateTaxRows(OrderModel order, List<Map<String, Object>> result, AbstractOrderEntryModel entry) protected StringdeterminePromotionDiscountCode(OrderModel order, de.hybris.platform.util.DiscountValue discountValue) static <T> Iterable<T>emptyIfNull(Iterable<T> iterable) intintintintintintDeprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 .de.hybris.platform.ruleengineservices.rule.services.RuleServicegetTax1()static List<de.hybris.platform.util.DiscountValue>voidsetBatchIdAttributes(Map<String, String> batchIdAttributes) voidsetConditionCounterDeliveryCost(int conditionCounterDeliveryCost) voidsetConditionCounterGrossPrice(int conditionCounterGrossPrice) voidsetConditionCounterPaymentCost(int conditionCounterPaymentCost) voidsetConditionCounterStartOrderDiscount(int conditionCounterStartOrderDiscount) voidsetConditionCounterStartProductDiscount(int conditionCounterStartProductDiscount) voidsetConditionCounterTax(int conditionCounterTax) protected voidsetConditionTypes(OrderModel order) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 .voidsetDeliveryCosts(String deliveryCosts) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 .voidsetGrossPrice(String grossPrice) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 .voidsetPaymentCosts(String paymentCosts) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 .voidsetRuleService(de.hybris.platform.ruleengineservices.rule.services.RuleService ruleService) voidprotected booleansyncPricingInactive(List<AbstractOrderEntryModel> entries)
-
Field Details
-
PROMOTION_DISCOUNT_CODE_PREFIX
- See Also:
-
-
Constructor Details
-
DefaultSalesConditionsContributor
public DefaultSalesConditionsContributor()
-
-
Method Details
-
getBatchIdAttributes
-
setBatchIdAttributes
-
getRuleService
public de.hybris.platform.ruleengineservices.rule.services.RuleService getRuleService() -
setRuleService
public void setRuleService(de.hybris.platform.ruleengineservices.rule.services.RuleService ruleService) -
getColumns
- Specified by:
getColumnsin interfaceRawItemContributor<OrderModel>- Returns:
- Columns to be included in the CSV string
-
setConditionTypes
Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 . Not needed anymore. -
createRows
- Specified by:
createRowsin interfaceRawItemContributor<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
-
createPaymentCostRow
-
createDeliveryCostRow
-
safe
-
emptyIfNull
-
createOrderDiscountRows
-
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
-
setGrossPrice
Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 . Not needed anymore. -
setDeliveryCosts
Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP4 . Not needed anymore. -
setPaymentCosts
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, for removal: This API element is subject to removal in a future version.since 2211.FP4 . Not needed anymore. -
getTax1
-