MockMagentoProductPreview

Properties

Name Type Description
__typename MagentoProductTypeEnum.SimpleProduct
uid faker.datatype.uuid()
url_key faker.random.alphaNumeric(16)
url_suffix '.html'
name faker.random.word()
sku faker.random.alphaNumeric(16)
stock_status MagentoProductStockStatusEnum.InStock
image { __typename: 'ProductImage', label: faker.random.words(3), url: faker.image.imageUrl() }
description { __typename: 'ComplexTextValue', html: faker.random.words(5) }
price_range { __typename: 'PriceRange', maximum_price: { __typename: 'ProductPrice', regular_price: { __typename: 'Money', value: faker.datatype.number({ min: 100, max: 1000 }), currency: null }, discount: { __typename: 'ProductDiscount', amount_off: faker.datatype.number({ min: 1, max: 99 }), percent_off: faker.datatype.number({ min: 1, max: 99 }) } } }
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.