GitHub

DaffMagentoCartTransformer

import { DaffMagentoCartTransformer } from '@daffodil/cart/driver/magento'

Transforms magento carts into an object usable by daffodil.

@Injectable()
class DaffMagentoCartTransformer<<T extends MagentoCart = MagentoCart, V extends DaffCart = DaffCart>>  {
  transform(cart: T): V
}

() Methods

transform
V

Transforms the magento MagentoCart from the magento cart query into a DaffCart.

Parameters
Parametercart: T
Description

the cart from a magento cart query.