Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web-components/dist/commerce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web-components/dist/mas.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web-components/dist/merch-card-collection.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions web-components/src/inline-price.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ const DISPLAY_ALL_TAX_COUNTRIES = [
'NZ_en',
'TH_en',
'TH_th',
'MU_en',
];

// countries where tax is displayed for some segments only by default
const DISPLAY_TAX_MAP = {
[INDIVIDUAL]: [
'MU_en',
'LT_lt',
'LV_lv',
'NG_en',
Expand All @@ -71,15 +71,15 @@ const DISPLAY_TAX_MAP = {
'SG_en',
'KR_ko',
],
[BUSINESS]: ['MU_en', 'LT_lt', 'LV_lv', 'NG_en', 'CO_es', 'KR_ko'],
[BUSINESS]: ['LT_lt', 'LV_lv', 'NG_en', 'CO_es', 'KR_ko'],
[STUDENT]: ['LT_lt', 'LV_lv', 'SA_en', 'SG_en'],
[UNIVERSITY]: ['SG_en', 'KR_ko'],
};

// For most countries where tax label is displayed the tax is included for Individuals and Students
// and excluded for Business and Universities. This is the map of TaxExclusive values for other countries
const TAX_EXCLUDED_MAP = {
['MU_en']: [false, false, false, false],
['MU_en']: [true, true, true, true],
['NG_en']: [false, false, false, false],
['AU_en']: [false, false, false, false],
['JP_ja']: [false, false, false, false],
Expand Down
8 changes: 4 additions & 4 deletions web-components/test/price.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,10 @@ describe('class "InlinePrice"', () => {
{
locale: 'MU_en',
expected: [
[true, false],
[true, false],
[false, false],
[false, false],
[true, true],
[true, true],
[true, true],
[true, true],
],
},
{
Expand Down
Loading