import { DaffTestingCartService } from '@daffodil/cart/driver/testing'
@Injectable()
class DaffTestingCartService implements DaffCartServiceInterface {
get(id: string): any
addToCart(
productId: string
qty: number
): any
clear(id: string): any
create(): any
merge(
guestCart: string
customerCart?: string
): any
}
anyRetrieve a cart.
| Parameter | id: string |
|---|---|
| Description |
any| Parameter | productId: string |
|---|---|
| Description |
| Parameter | qty: number |
|---|---|
| Description |
anyRemove all items from a cart.
| Parameter | id: string |
|---|---|
| Description |
anyCreates a cart.
anyMerge a guest cart into a customer cart.
| Parameter | guestCart: string |
|---|---|
| Description |
| Parameter | customerCart: string |
|---|---|
| Description |