CommerceService.java 2.39 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  aQute.bnd.annotation.ConsumerType
 *  com.day.cq.wcm.api.Page
 *  org.apache.sling.api.SlingHttpServletRequest
 *  org.apache.sling.api.SlingHttpServletResponse
 *  org.apache.sling.api.resource.ResourceResolver
 */
package com.adobe.cq.commerce.api;

import aQute.bnd.annotation.ConsumerType;
import com.adobe.cq.commerce.api.CommerceException;
import com.adobe.cq.commerce.api.CommerceQuery;
import com.adobe.cq.commerce.api.CommerceResult;
import com.adobe.cq.commerce.api.CommerceSession;
import com.adobe.cq.commerce.api.Product;
import com.adobe.cq.commerce.api.collection.ProductCollection;
import com.adobe.cq.commerce.api.promotion.Promotion;
import com.adobe.cq.commerce.api.promotion.Voucher;
import com.day.cq.wcm.api.Page;
import java.util.List;
import java.util.Map;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.resource.ResourceResolver;

@ConsumerType
public interface CommerceService {
    public CommerceSession login(SlingHttpServletRequest var1, SlingHttpServletResponse var2) throws CommerceException;

    public boolean isAvailable(String var1);

    public String getServer();

    public void setContext(Map<String, Object> var1);

    public Map<String, Object> getContext();

    public Product getProduct(String var1) throws CommerceException;

    public Promotion getPromotion(String var1) throws CommerceException;

    public Voucher getVoucher(String var1) throws CommerceException;

    public ProductCollection getProductCollection(String var1) throws CommerceException;

    public boolean isActivated(Product var1) throws CommerceException;

    public void catalogRolloutHook(Page var1, Page var2) throws CommerceException;

    public void sectionRolloutHook(Page var1, Page var2) throws CommerceException;

    public void productRolloutHook(Product var1, Page var2, Product var3) throws CommerceException;

    public CommerceResult search(CommerceQuery var1) throws CommerceException;

    public List<Promotion> getAvailablePromotions(ResourceResolver var1) throws CommerceException;

    public List<String> getOrderPredicates() throws CommerceException;

    @Deprecated
    public List<String> getCountries() throws CommerceException;

    @Deprecated
    public List<String> getCreditCardTypes() throws CommerceException;
}