Class SubscriptionOrderEntryPopulator
java.lang.Object
de.hybris.platform.commercefacades.order.converters.populator.OrderEntryPopulator
de.hybris.platform.subscriptionfacades.order.converters.populator.SubscriptionOrderEntryPopulator
- All Implemented Interfaces:
Populator<AbstractOrderEntryModel,OrderEntryData>
Converter for converting order / cart entries. It sets the total and base prices for entries that have multiple
billing frequencies (as they are subscription products)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<BillingTimeData>protected OrderEntryPriceDataprotected Comparatorprotected Converter<BillingTimeModel,BillingTimeData> protected List<OrderEntryPriceData>protected SubscriptionProductServiceprotected SubscriptionXStreamAliasConvertervoidpopulate(AbstractOrderEntryModel source, OrderEntryData target) Populate the target instance with values from the source instance.voidsetBillingTimeComparator(BillingTimeComparator billingTimeComparator) voidsetBillingTimeConverter(Converter<BillingTimeModel, BillingTimeData> billingFrequencyConverter) voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService) voidsetSubscriptionXStreamAliasConverter(SubscriptionXStreamAliasConverter subscriptionXStreamAliasConverter) Methods inherited from class de.hybris.platform.commercefacades.order.converters.populator.OrderEntryPopulator
addComments, addCommon, addConfigurations, addDeliveryMode, addEntryGroups, addProduct, addTotals, adjustUpdateable, createPrice, getDeliveryModeConverter, getEntryGroupService, getEntryOrderChecker, getOrderCommentConverter, getPointOfServiceConverter, getPriceDataFactory, getProductConfigurationConverter, getProductConverter, setDeliveryModeConverter, setEntryGroupService, setEntryOrderChecker, setOrderCommentConverter, setPointOfServiceConverter, setPriceDataFactory, setProductConfigurationConverter, setProductConverter
-
Constructor Details
-
SubscriptionOrderEntryPopulator
public SubscriptionOrderEntryPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractOrderEntryModel,OrderEntryData> - Overrides:
populatein classOrderEntryPopulator- Parameters:
source- the source objecttarget- the target to fill
-
getOrderEntryPricesForEntry
@Nonnull protected List<OrderEntryPriceData> getOrderEntryPricesForEntry(@Nonnull AbstractOrderEntryModel source) -
buildBillingTimes
-
createOrderEntryPriceDataForEntry
@Nonnull protected OrderEntryPriceData createOrderEntryPriceDataForEntry(@Nonnull AbstractOrderEntryModel entry) -
getBillingTimeConverter
-
setBillingTimeConverter
public void setBillingTimeConverter(Converter<BillingTimeModel, BillingTimeData> billingFrequencyConverter) -
getSubscriptionXStreamAliasConverter
-
setSubscriptionXStreamAliasConverter
public void setSubscriptionXStreamAliasConverter(SubscriptionXStreamAliasConverter subscriptionXStreamAliasConverter) -
getSubscriptionProductService
- Returns:
- subscription product service.
-
setSubscriptionProductService
-
getBillingTimeComparator
-
setBillingTimeComparator
-