GitHub

MockOrderTotal

import { MockOrderTotal } from '@daffodil/order/driver/magento/2-4-1/testing'
class MockOrderTotal implements MagentoOrderTotal {
  discounts: this.createDiscounts()
  grand_total: this.createMoney()
  subtotal: this.createMoney()
  total_shipping: this.createMoney()
  total_tax: this.createMoney()
}

Properties

Name Type Description
discounts this.createDiscounts()
grand_total this.createMoney()
subtotal this.createMoney()
total_shipping this.createMoney()
total_tax this.createMoney()