Class CommercePriceEntryTestUtil
java.lang.Object
com.liferay.commerce.test.util.price.list.CommercePriceEntryTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.commerce.price.list.model.CommercePriceEntry
addCommercePriceEntry
(long groupId) static com.liferay.commerce.price.list.model.CommercePriceEntry
addCommercePriceEntry
(String externalReferenceCode, long skuId, long commercePriceListId, Double price, Double promoPrice) static com.liferay.commerce.price.list.model.CommercePriceEntry
addCommercePriceEntry
(String externalReferenceCode, long cpProductId, String cpInstanceUuid, long commercePriceListId, BigDecimal price) static com.liferay.commerce.price.list.model.CommercePriceEntry
addOrUpdateCommercePriceEntry
(String externalReferenceCode, long commercePriceEntryId, long skuId, long commercePriceListId, String skuExternalReferenceCode, Double price, Double promoPrice) static com.liferay.commerce.price.list.model.CommercePriceEntry
addOrUpdateCommercePriceEntry
(String externalReferenceCode, long commercePriceEntryId, long skuId, long commercePriceListId, String skuExternalReferenceCode, Double price, Double promoPrice, String unitOfMeasureKey) static void
deleteCommercePriceEntries
(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) static List<com.liferay.commerce.price.list.model.CommercePriceEntry>
getCommercePriceEntries
(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey)
-
Constructor Details
-
CommercePriceEntryTestUtil
public CommercePriceEntryTestUtil()
-
-
Method Details
-
addCommercePriceEntry
public static com.liferay.commerce.price.list.model.CommercePriceEntry addCommercePriceEntry(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommercePriceEntry
public static com.liferay.commerce.price.list.model.CommercePriceEntry addCommercePriceEntry(String externalReferenceCode, long skuId, long commercePriceListId, Double price, Double promoPrice) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommercePriceEntry
public static com.liferay.commerce.price.list.model.CommercePriceEntry addCommercePriceEntry(String externalReferenceCode, long cpProductId, String cpInstanceUuid, long commercePriceListId, BigDecimal price) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommercePriceEntry
public static com.liferay.commerce.price.list.model.CommercePriceEntry addOrUpdateCommercePriceEntry(String externalReferenceCode, long commercePriceEntryId, long skuId, long commercePriceListId, String skuExternalReferenceCode, Double price, Double promoPrice) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommercePriceEntry
public static com.liferay.commerce.price.list.model.CommercePriceEntry addOrUpdateCommercePriceEntry(String externalReferenceCode, long commercePriceEntryId, long skuId, long commercePriceListId, String skuExternalReferenceCode, Double price, Double promoPrice, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommercePriceEntries
public static void deleteCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommercePriceEntries
public static List<com.liferay.commerce.price.list.model.CommercePriceEntry> getCommercePriceEntries(String cpInstanceUuid, BigDecimal quantity, String unitOfMeasureKey)
-