CommerceSession.java
5.22 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* aQute.bnd.annotation.ConsumerType
* org.apache.commons.collections.Predicate
*/
package com.adobe.cq.commerce.api;
import aQute.bnd.annotation.ConsumerType;
import com.adobe.cq.commerce.api.CommerceException;
import com.adobe.cq.commerce.api.PaymentMethod;
import com.adobe.cq.commerce.api.PlacedOrder;
import com.adobe.cq.commerce.api.PlacedOrderResult;
import com.adobe.cq.commerce.api.PriceInfo;
import com.adobe.cq.commerce.api.Product;
import com.adobe.cq.commerce.api.ShippingMethod;
import com.adobe.cq.commerce.api.promotion.PromotionInfo;
import com.adobe.cq.commerce.api.promotion.Voucher;
import com.adobe.cq.commerce.api.promotion.VoucherInfo;
import com.adobe.cq.commerce.api.smartlist.SmartListManager;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.apache.commons.collections.Predicate;
@ConsumerType
public interface CommerceSession {
public static final String PN_QUANTITY = "quantity";
public static final String PN_READONLY = "readonly";
public void logout() throws CommerceException;
public void setUserLocale(Locale var1);
public Locale getUserLocale();
public List<String> getAvailableCountries() throws CommerceException;
public List<ShippingMethod> getAvailableShippingMethods() throws CommerceException;
public List<PaymentMethod> getAvailablePaymentMethods() throws CommerceException;
public List<PriceInfo> getProductPriceInfo(Product var1) throws CommerceException;
public List<PriceInfo> getProductPriceInfo(Product var1, Predicate var2) throws CommerceException;
public String getProductPrice(Product var1, Predicate var2) throws CommerceException;
public String getProductPrice(Product var1) throws CommerceException;
public int getCartEntryCount() throws CommerceException;
public List<CartEntry> getCartEntries() throws CommerceException;
public List<PriceInfo> getCartPriceInfo(Predicate var1) throws CommerceException;
public String getCartPrice(Predicate var1) throws CommerceException;
public void addCartEntry(Product var1, int var2) throws CommerceException;
public void addCartEntry(Product var1, int var2, Map<String, Object> var3) throws CommerceException;
public void modifyCartEntry(int var1, int var2) throws CommerceException;
public void modifyCartEntry(int var1, Map<String, Object> var2) throws CommerceException;
public void deleteCartEntry(int var1) throws CommerceException;
public void addVoucher(String var1) throws CommerceException;
public void removeVoucher(String var1) throws CommerceException;
public List<VoucherInfo> getVoucherInfos() throws CommerceException;
public boolean supportsClientsidePromotionResolution();
public void addPromotion(String var1) throws CommerceException;
public void removePromotion(String var1) throws CommerceException;
public List<PromotionInfo> getPromotions() throws CommerceException;
public String getOrderId() throws CommerceException;
public Map<String, Object> getOrderDetails(String var1) throws CommerceException;
public Map<String, Object> getOrder() throws CommerceException;
public void updateOrderDetails(Map<String, Object> var1, String var2) throws CommerceException;
public void updateOrder(Map<String, Object> var1) throws CommerceException;
public void placeOrder(Map<String, Object> var1) throws CommerceException;
public PlacedOrderResult getPlacedOrders(String var1, int var2, int var3, String var4) throws CommerceException;
public PlacedOrder getPlacedOrder(String var1) throws CommerceException;
public SmartListManager getSmartListManager();
@Deprecated
public String getPriceInfo(Product var1) throws CommerceException;
@Deprecated
public String getCartPreTaxPrice() throws CommerceException;
@Deprecated
public String getCartTax() throws CommerceException;
@Deprecated
public String getCartTotalPrice() throws CommerceException;
@Deprecated
public String getOrderShipping() throws CommerceException;
@Deprecated
public String getOrderTotalTax() throws CommerceException;
@Deprecated
public String getOrderTotalPrice() throws CommerceException;
@Deprecated
public List<Voucher> getVouchers() throws CommerceException;
@Deprecated
public void updateOrderDetails(Map<String, String> var1) throws CommerceException;
@Deprecated
public Map<String, String> getOrderDetails() throws CommerceException;
@Deprecated
public void submitOrder(Map<String, String> var1) throws CommerceException;
public static interface CartEntry {
public int getEntryIndex();
public Product getProduct() throws CommerceException;
public int getQuantity();
public List<PriceInfo> getPriceInfo(Predicate var1) throws CommerceException;
public String getPrice(Predicate var1) throws CommerceException;
public <T> T getProperty(String var1, Class<T> var2);
@Deprecated
public String getUnitPrice();
@Deprecated
public String getPreTaxPrice();
@Deprecated
public String getTax();
@Deprecated
public String getTotalPrice();
}
}