Copied!

CartServiceInterface

CartServiceInterface.php : 21

Methods

publicaddEntry()

CartServiceInterface.php : 62
public addEntry(CartInterface $cart, EntryAddStruct $entryAddStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entryAddStruct EntryAddStruct - -

Return values

CartInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException

publiccreateCart()

CartServiceInterface.php : 35
public createCart(CartCreateStruct $cartCreateStruct) : CartInterface

Parameters

Name Type Default value Description
$cartCreateStruct CartCreateStruct - -

Return values

CartInterface

Tags
Throws
UnauthorizedException
Throws
InvalidArgumentException

publicdeleteCart()

CartServiceInterface.php : 49
public deleteCart(CartInterface $cart) : void

Parameters

Name Type Default value Description
$cart CartInterface - -
Tags
Throws
UnauthorizedException

publicemptyCart()

CartServiceInterface.php : 54
public emptyCart(CartInterface $cart) : void

Parameters

Name Type Default value Description
$cart CartInterface - -
Tags
Throws
UnauthorizedException

publicfindCarts()

CartServiceInterface.php : 29
public findCarts([CartQuery|null $query = null ]) : CartListInterface

Parameters

Name Type Default value Description
$query CartQuery|null null -

Return values

CartListInterface

publicgetCart()

CartServiceInterface.php : 27
public getCart(string $identifier) : CartInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

CartInterface

Tags
Throws
UnauthorizedException
Throws
NotFoundException

publicmergeCarts()

CartServiceInterface.php : 86
public mergeCarts(CartInterface $targetCart, bool $deleteMergedCarts, CartInterface ...$cartsToMerge) : CartInterface

Parameters

Name Type Default value Description
$targetCart CartInterface - -
$deleteMergedCarts bool - -
$cartsToMerge CartInterface - -

Return values

CartInterface

publicremoveEntry()

CartServiceInterface.php : 71
public removeEntry(CartInterface $cart, EntryInterface $entry) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entry EntryInterface - -

Return values

CartInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException

publicupdateCartMetadata()

CartServiceInterface.php : 41
public updateCartMetadata(CartInterface $cart, CartMetadataUpdateStruct $cartUpdateStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$cartUpdateStruct CartMetadataUpdateStruct - -

Return values

CartInterface

Tags
Throws
UnauthorizedException
Throws
InvalidArgumentException

publicupdateEntry()

CartServiceInterface.php : 80
public updateEntry(CartInterface $cart, EntryInterface $entry, EntryUpdateStruct $entryUpdateStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entry EntryInterface - -
$entryUpdateStruct EntryUpdateStruct - -

Return values

CartInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException

publicvalidateCart()

CartServiceInterface.php : 56
public validateCart(CartInterface $cart) : ConstraintViolationListInterface

Parameters

Name Type Default value Description
$cart CartInterface - -

Return values

ConstraintViolationListInterface