| Line 171... |
Line 171... |
| 171 |
3:CartStatus status, //current status
|
171 |
3:CartStatus status, //current status
|
| 172 |
4:i64 createdOn, //creation timestamp
|
172 |
4:i64 createdOn, //creation timestamp
|
| 173 |
5:i64 updatedOn, //time of last update in cart (like addition/deletion/updation of cart items )
|
173 |
5:i64 updatedOn, //time of last update in cart (like addition/deletion/updation of cart items )
|
| 174 |
6:i64 committedOn, //commited timestamp
|
174 |
6:i64 committedOn, //commited timestamp
|
| 175 |
7:i64 userId, //user id to which it belongs
|
175 |
7:i64 userId, //user id to which it belongs
|
| 176 |
8:i64 addressId //address on which this will be shipped
|
176 |
8:i64 addressId, //address on which this will be shipped
|
| - |
|
177 |
9:i32 estimate //delivery estimate in hours
|
| 177 |
}
|
178 |
}
|
| 178 |
|
179 |
|
| 179 |
enum WidgetType{
|
180 |
enum WidgetType{
|
| 180 |
SIMILAR_ITEMS,
|
181 |
SIMILAR_ITEMS,
|
| 181 |
RECOMMENDED_ITEMS,
|
182 |
RECOMMENDED_ITEMS,
|
| Line 250... |
Line 251... |
| 250 |
void changeCartStatus(1:i64 cartId, 2:CartStatus status) throws (1:ShoppingCartException scx),
|
251 |
void changeCartStatus(1:i64 cartId, 2:CartStatus status) throws (1:ShoppingCartException scx),
|
| 251 |
void addItemToCart(1:i64 cartId, 2:i64 itemId, 3:i64 quantity) throws (1:ShoppingCartException scx),
|
252 |
void addItemToCart(1:i64 cartId, 2:i64 itemId, 3:i64 quantity) throws (1:ShoppingCartException scx),
|
| 252 |
void deleteItemFromCart(1:i64 cartId, 2:i64 itemId) throws (1:ShoppingCartException scx),
|
253 |
void deleteItemFromCart(1:i64 cartId, 2:i64 itemId) throws (1:ShoppingCartException scx),
|
| 253 |
void changeQuantity(1:i64 cartId, 2:i64 itemId, 3:i64 quantity) throws (1:ShoppingCartException scx),
|
254 |
void changeQuantity(1:i64 cartId, 2:i64 itemId, 3:i64 quantity) throws (1:ShoppingCartException scx),
|
| 254 |
void changeItemStatus(1:i64 cartId, 2:i64 itemId, 3:LineStatus status) throws (1:ShoppingCartException scx),
|
255 |
void changeItemStatus(1:i64 cartId, 2:i64 itemId, 3:LineStatus status) throws (1:ShoppingCartException scx),
|
| 255 |
void addAddressToCart(1:i64 cartId, 2:i64 addressId),
|
256 |
void addAddressToCart(1:i64 cartId, 2:i64 addressId) throws (1:ShoppingCartException scx),
|
| 256 |
bool commitCart(1:i64 cartId) throws (1:ShoppingCartException scx),
|
257 |
i64 commitCart(1:i64 cartId) throws (1:ShoppingCartException scx),
|
| 257 |
bool validateCart(1:i64 cartId),
|
258 |
bool validateCart(1:i64 cartId) throws (1:ShoppingCartException scex),
|
| - |
|
259 |
bool refreshCart(1:i64 cartId) throws (1:ShoppingCartException scex),
|
| 258 |
void mergeCart(1:i64 fromCartId, 2:i64 toCartId)
|
260 |
void mergeCart(1:i64 fromCartId, 2:i64 toCartId)
|
| 259 |
|
261 |
|
| 260 |
void addWidget(1:Widget widget) throws (1:WidgetException scx),
|
262 |
void addWidget(1:Widget widget) throws (1:WidgetException scx),
|
| 261 |
void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
|
263 |
void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
|
| 262 |
void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
|
264 |
void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
|