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