GitHub

DaffMagentoCartPaymentTransformer

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

Transforms magento carts into an object usable by daffodil.

@Injectable()
class DaffMagentoCartPaymentTransformer {
  transform(responsePayment: MagentoCartPaymentMethod): DaffCartPaymentMethod
}

() Methods

transform
DaffCartPaymentMethod

Transforms the magento CartPayment from the magento cart query into a DaffCartPaymentMethod.

Parameters
ParameterresponsePayment: MagentoCartPaymentMethod
Description

the response from a magento cart query.