woocommerce/packages/js/api-core-tests/data/variation.js

30 lines
450 B
JavaScript
Raw Normal View History

2021-11-15 14:30:34 +00:00
/**
* A basic product variation.
*
* For more details on the product variation properties, see:
*
* https://woocommerce.github.io/woocommerce-rest-api-docs/#product-variations
*
*/
const variation = {
2021-12-02 13:52:25 +00:00
regular_price: '1.00',
2021-11-15 14:30:34 +00:00
attributes: [
{
name: 'Size',
option: 'Large',
},
{
name: 'Colour',
option: 'Red',
},
],
};
2021-12-02 13:52:25 +00:00
const getVariationExample = () => {
2021-11-15 14:30:34 +00:00
return variation;
};
module.exports = {
2021-12-02 13:52:25 +00:00
getVariationExample,
2021-11-15 14:30:34 +00:00
};