MockOrder

Properties

Name Type Description
__typename <const>'GraycoreGuestOrder'
id faker.datatype.uuid()
number faker.datatype.uuid()
email faker.internet.email()
order_date faker.date.past().toString()
status faker.random.word()
carrier faker.random.word()
shipping_method faker.random.word()
total this.totalFactory.create()
items this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 5 }))
billing_address this.addressFactory.create()
shipping_address this.addressFactory.create()
shipments this.shipmentFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
payment_methods this.paymentFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
invoices this.invoiceFactory.createMany(faker.datatype.number({ min: 1, max: 3 }))
credit_memos this.creditFactory.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.