PromotionHandler.java 1.42 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  aQute.bnd.annotation.ConsumerType
 *  org.apache.sling.api.SlingHttpServletRequest
 */
package com.adobe.cq.commerce.api.promotion;

import aQute.bnd.annotation.ConsumerType;
import com.adobe.cq.commerce.api.CommerceException;
import com.adobe.cq.commerce.api.CommerceSession;
import com.adobe.cq.commerce.api.PriceInfo;
import com.adobe.cq.commerce.api.promotion.Promotion;
import java.util.Map;
import org.apache.sling.api.SlingHttpServletRequest;

@ConsumerType
public interface PromotionHandler {
    public static final String TYPE = "commerce.promotion.type";

    public PriceInfo applyCartEntryPromotion(CommerceSession var1, Promotion var2, CommerceSession.CartEntry var3) throws CommerceException;

    public PriceInfo applyOrderPromotion(CommerceSession var1, Promotion var2) throws CommerceException;

    public PriceInfo applyShippingPromotion(CommerceSession var1, Promotion var2) throws CommerceException;

    @Deprecated
    public String getMessage(SlingHttpServletRequest var1, CommerceSession var2, Promotion var3) throws CommerceException;

    public String getDescription(SlingHttpServletRequest var1, CommerceSession var2, Promotion var3) throws CommerceException;

    public Map<Integer, String> getMessages(SlingHttpServletRequest var1, CommerceSession var2, Promotion var3) throws CommerceException;

    public void invalidateCaches();
}