GitHub

MockOrderTotal

import { MockOrderTotal } from '@daffodil/order/driver/magento/2-4-1/testing'

class MockOrderTotal implements MagentoOrderTotal {
  discounts: MagentoDiscount[] = this.createDiscounts()
  grand_total: MagentoMoney = this.createMoney()
  subtotal: MagentoMoney = this.createMoney()
  total_shipping: MagentoMoney = this.createMoney()
  total_tax: MagentoMoney = this.createMoney()
}