import { DaffMagentoCartCustomerService } from '@daffodil/cart-customer/driver/magento'
A service for making Magento GraphQL queries for carts.
@Injectable()
class DaffMagentoCartCustomerService implements DaffCartServiceInterface<DaffCart> {
get(cartId: string): any
create(): any
addToCart(
productId: string
qty: number
): any
clear(cartId: string): any
merge(
guestCart: string
customerCart?: string
): any
}
anyRetrieve a cart.
@param id The cart ID.
| Parameter | cartId: string |
|---|---|
| Description |
anyCreates a cart.
any| Parameter | productId: string |
|---|---|
| Description |
| Parameter | qty: number |
|---|---|
| Description |
anyRemove all items from a cart.
| Parameter | cartId: string |
|---|---|
| Description |
anyMerge a guest cart into a customer cart.
| Parameter | guestCart: string |
|---|---|
| Description |
| Parameter | customerCart: string |
|---|---|
| Description |