import { DaffTestingCartItemService } from '@daffodil/cart/driver/testing'
@Injectable()
class DaffTestingCartItemService implements DaffCartItemServiceInterface {
list(cartId: string): any
get(
cartId: string
itemId: string
): any
add(
cartId: string
input: DaffCartItemInput
): any
update(
cartId: string
itemId: string
item: Partial<DaffCartItem>
): any
delete(
cartId: string
itemId: string
): any
}
anyList all of the available items of a cart
| Parameter | cartId: string |
|---|---|
| Description |
anyGet a specific cart item of a cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | itemId: string |
|---|---|
| Description |
anyAdd something to a cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | input: DaffCartItemInput |
|---|---|
| Description |
anyUpdate an existing item in a cart
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | itemId: string |
|---|---|
| Description |
| Parameter | item: Partial<DaffCartItem> |
|---|---|
| Description |
anyRemove an item from a cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | itemId: string |
|---|---|
| Description |