Class SharedShoppingCartRepository
category |
System |
---|---|
package |
SharedShoppingCart |
__construct(\SharedShoppingCartReader $reader, \SharedShoppingCartWriter $writer, \SharedShoppingCartDeleter $deleter)
deleteShoppingCartsByCustomerId(\IdType $customerId)
deleteShoppingCartsOlderThan(\DateTime $expirationDate)
\DateTime
All shared shopping carts older than that date are expired
getShoppingCart(\StringType $shoppingCartHash) : string
string
JSON representation of the shopping cart
getShoppingCartsByCustomerId(\IdType $customerId) : \SharedShoppingCartCollection
storeShoppingCart(\StringType $jsonShoppingCart, \IdType|null $userId = null) : string
Throws |
|
---|
string
The hash of the cart