MockOrder

Properties

Name Type Description
id faker.datatype.uuid()
customer_id faker.datatype.uuid()
email faker.internet.email()
created_at faker.date.past().toString()
updated_at faker.date.past().toString()
status faker.random.word()
totals this.createTotals()
applied_codes this.couponFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
items this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 5 }))
billing_addresses this.addressFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
shipping_addresses this.addressFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
shipments this.shipmentFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
payment this.paymentFactory.create()
invoices this.invoiceFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
credits this.invoiceFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.