woocommerce/tests/e2e/api-core-tests/data/coupon.js

34 lines
647 B
JavaScript
Raw Normal View History

2021-08-23 17:39:03 +00:00
/**
* A basic coupon.
*
* For more details on a coupon's properties, see:
*
* https://woocommerce.github.io/woocommerce-rest-api-docs/#coupons
*
*/
const coupon = {
code: '10off',
amount: '10',
discount_type: 'percent',
description: '',
date_expires: '',
date_expires_gmt: '',
individual_use: true,
product_ids: [],
excluded_product_ids: [],
usage_limit: 0,
usage_limit_per_user: 0,
limit_usage_to_x_items: 0,
free_shipping: false,
product_categories: [],
excluded_product_categories: [],
exclude_sale_items: false,
minimum_amount: '100.00',
maximum_amount: '',
2021-09-07 22:20:44 +00:00
email_restrictions: [],
};
2021-08-23 17:39:03 +00:00
module.exports = {
2021-09-07 22:20:44 +00:00
coupon,
};