DaffTestingCartService
import { DaffTestingCartService } from '@daffodil/cart/driver/testing'
@Injectable()
class DaffTestingCartService implements DaffCartServiceInterface {
get(id: string): Observable<DaffDriverResponse<DaffCart>>
addToCart(
productId: string
qty: number
): Observable<DaffCart>
clear(id: string): Observable<DaffCart>
create()
merge(
guestCart: string
customerCart?: string
): Observable<DaffDriverResponse<DaffCart>>
}
Properties
Name | Type | Description |
---|---|---|
get | Observable<DaffDriverResponse<DaffCart>> | Retrieve a cart |
addToCart | Observable<DaffCart> | |
clear | Observable<DaffCart> | Remove all items from a cart. |
create | Creates a cart. |
|
merge | Observable<DaffDriverResponse<DaffCart>> | Merge a guest cart into a customer cart. |