public interface PaymentCartService
Modifier and Type | Method and Description |
---|---|
void |
executeWithCartLock(CartModel cart,
java.lang.Runnable body)
Obtains the lock on given cart model and executes specified body in transaction.
|
CartModel |
getCartForGuid(java.lang.String guid)
Locate a cart for the specified cart guid.
|
CartModel getCartForGuid(java.lang.String guid)
guid
- the guid of the cartvoid executeWithCartLock(CartModel cart, java.lang.Runnable body)
cart
- the cart to be lockedbody
- the logic to be executed