CommerceService.java
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* 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;
}