woocommerce/packages/js/api-core-tests/data/tax-rate.js

34 lines
583 B
JavaScript
Raw Normal View History

2021-11-15 14:30:34 +00:00
/**
* A standard tax rate.
*
* For more details on the tax rate properties, see:
*
* https://woocommerce.github.io/woocommerce-rest-api-docs/#tax-rate-properties
*
*/
2021-12-02 13:52:25 +00:00
const standardTaxRate = {
2021-11-15 14:30:34 +00:00
name: 'Standard Rate',
rate: '10.0000',
class: 'standard',
};
2021-12-02 13:52:25 +00:00
const reducedTaxRate = {
name: 'Reduced Rate',
rate: '1.0000',
class: 'reduced-rate',
};
const zeroTaxRate = {
name: 'Zero Rate',
rate: '0.0000',
class: 'zero-rate',
};
const getTaxRateExamples = () => {
return { standardTaxRate, reducedTaxRate, zeroTaxRate };
2021-11-15 14:30:34 +00:00
};
module.exports = {
2021-12-02 13:52:25 +00:00
getTaxRateExamples,
2021-11-15 14:30:34 +00:00
};