GitHub

DaffMagentoCartAddressTransformer

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

Transforms magento addresses into an object usable by daffodil.

@Injectable()
class DaffMagentoCartAddressTransformer {
  transform(address: MagentoCartAddress): DaffCartAddress
}

() Methods

transform
DaffCartAddress

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

Parameters
Parameteraddress: MagentoCartAddress
Description

the address from a magento cart query.