public class CxOrderMapper extends java.lang.Object implements CxConsumptionLayerProfileMapper
| Constructor and Description |
|---|
CxOrderMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected java.math.BigDecimal |
calculateAffinity(java.util.Optional<java.math.BigDecimal> ordersValue,
java.math.BigDecimal configuredOrdersValue) |
protected SegmentMappingData |
createSegment(java.lang.String name,
java.math.BigDecimal affinity) |
CxConfigurationService |
getCxConfigurationService() |
java.util.Set<java.lang.String> |
getRequiredFields()
Method define which profile attributes are needed by mapper.
They will be send to profile service. |
protected java.util.Optional<SegmentMappingData> |
getSegment(CxConfigModel configModel,
java.util.Optional<java.math.BigDecimal> ordersValue) |
protected boolean |
isAboveThreshold(java.util.Optional<java.math.BigDecimal> ordersValue,
java.math.BigDecimal configuredOrdersValue) |
void |
populate(Profile source,
MappingData target)
Populate the target instance with values from the source instance.
|
void |
setCxConfigurationService(CxConfigurationService cxConfigurationService) |
public java.util.Set<java.lang.String> getRequiredFields()
CxConsumptionLayerProfileMappergetRequiredFields in interface CxConsumptionLayerProfileMapperpublic void populate(Profile source, MappingData target)
Populatorpopulate in interface Populator<Profile,MappingData>source - the source objecttarget - the target to fillprotected java.util.Optional<SegmentMappingData> getSegment(CxConfigModel configModel, java.util.Optional<java.math.BigDecimal> ordersValue)
protected boolean isAboveThreshold(java.util.Optional<java.math.BigDecimal> ordersValue,
java.math.BigDecimal configuredOrdersValue)
protected java.math.BigDecimal calculateAffinity(java.util.Optional<java.math.BigDecimal> ordersValue,
java.math.BigDecimal configuredOrdersValue)
protected SegmentMappingData createSegment(java.lang.String name, java.math.BigDecimal affinity)
public CxConfigurationService getCxConfigurationService()
public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
Copyright © 2018 SAP SE. All Rights Reserved.