import { DaffMagentoProductResponseTransformers } from '@daffodil/product/driver/magento'
Transforms the MagentoProduct from the magento product query into a DaffProductDriverResponse.
@Injectable()
class DaffMagentoProductResponseTransformers {
transformMagentoProductResponse(
product: MagentoProduct
mediaUrl: string
): DaffProductDriverResponse<DaffProduct>
}
DaffProductDriverResponse<DaffProduct>| Parameter | product: MagentoProduct |
|---|---|
| Description |
| Parameter | mediaUrl: string |
|---|---|
| Description |