MockOrderInvoice
import { MockOrderInvoice } from '@daffodil/order/testing'
class MockOrderInvoice implements DaffOrderInvoice {
items: this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
totals: this.totalFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
billing_address: this.addressFactory.create()
shipping_address: this.addressFactory.create()
payment: this.paymentFactory.create()
shipping_method: this.shippingMethodFactory.create()
}
Properties
Name | Type | Description |
---|---|---|
items | this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 3 })) | |
totals | this.totalFactory.createMany(faker.datatype.number({ min: 1, max: 3 })) | |
billing_address | this.addressFactory.create() | |
shipping_address | this.addressFactory.create() | |
payment | this.paymentFactory.create() | |
shipping_method | this.shippingMethodFactory.create() |