GitHub

DaffMagentoCartTransformer

Transforms magento carts into an object usable by daffodil.

import { DaffMagentoCartTransformer } from '@daffodil/cart/driver/magento'
@Injectable()
class DaffMagentoCartTransformer<<T extends MagentoCart = MagentoCart, V extends DaffCart = DaffCart>>  {
  transform(cart: T): V
}

Properties

Name Type Description
transform V

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