Photography
-
-
- US$
-
- 19
- .
- 99
- /mo
- per license
-
-
+
Storage:
@@ -198,42 +176,30 @@
20GB
-
-
- US$
-
- 9
- .
- 99
- /mo
- per license
-
-
-
- - Free trial
- - Buy now
+ data-display-tax="false" data-force-tax-exclusive="true"
+ data-wcs-osi="6WK1gybjBe2EKcq0HI0WvbsoiKOri2yRAwS9t_kGHoE">
+
+
Free trial
+
Buy now
Lightroom, Lightroom Classic, Photoshop on desktop and iPad, and 20GB of cloud storage.
1TB
-
-
- US$
-
- 19
- .
- 99
- /mo
- per license
-
-
- /li>
-
- Free trial
- - Buy now
+ data-display-tax="false" data-force-tax-exclusive="true"
+ data-wcs-osi="MzCpF9nUi8rEzyW-9slEUwtRenS69PRW5fp84a93uK4">
+ /li>
+ - Free trial
+ - Buy now
- Lightroom, Lightroom Classic, Photoshop on desktop and iPad, andz 1TB of cloud storage.
diff --git a/test/blocks/merch/merch.test.js b/test/blocks/merch/merch.test.js
index df54c08385..ec85c43b11 100644
--- a/test/blocks/merch/merch.test.js
+++ b/test/blocks/merch/merch.test.js
@@ -126,8 +126,8 @@ describe('Merch Block', () => {
before(async () => {
window.lana = { log: () => { } };
- document.head.innerHTML = await readMockText('head.html');
- document.body.innerHTML = await readMockText('body.html');
+ document.head.innerHTML = await readMockText('/test/blocks/merch/mocks/head.html');
+ document.body.innerHTML = await readMockText('/test/blocks/merch/mocks/body.html');
({ setCheckoutLinkConfigs, setSubscriptionsData } = await mockFetch());
config.commerce = { priceLiteralsPromise: fetchLiterals(PRICE_LITERALS_URL) };
setCheckoutLinkConfigs(CHECKOUT_LINK_CONFIGS);
@@ -309,7 +309,7 @@ describe('Merch Block', () => {
const { nodeName, href } = await el.onceSettled();
expect(nodeName).to.equal('A');
expect(el.getAttribute('is')).to.equal('checkout-link');
- expect(/0ADF92A6C8514F2800BE9E87DB641D2A/.test(href)).to.be.true;
+ expect(/B740D1F2F6369BD1C342E6E372A61B50/.test(href)).to.be.true;
});
it('renders merch link to cta with empty promo', async () => {
diff --git a/test/blocks/merch/mocks/fetch.js b/test/blocks/merch/mocks/fetch.js
index 98d38b8081..74e097ae5e 100644
--- a/test/blocks/merch/mocks/fetch.js
+++ b/test/blocks/merch/mocks/fetch.js
@@ -1,26 +1,44 @@
import sinon from 'sinon';
import { PRICE_LITERALS_URL } from '../../../../libs/blocks/merch/merch.js';
-
-const MOCKS_PATH = '/test/blocks/merch/mocks';
+import { applyPlanType } from '../../../../libs/deps/commerce.js';
const { fetch } = window;
-export const readMockJSON = async (fileName) => {
- const json = await fetch(`${MOCKS_PATH}/${fileName}`).then((res) => res.json());
+export const readMockJSON = async (path) => {
+ const json = await fetch(path).then((res) => res.json());
return json;
};
-export const readMockText = async (fileName) => {
- const text = await fetch(`${MOCKS_PATH}/${fileName}`).then((res) => res.text());
+export const readMockText = async (path) => {
+ const text = await fetch(path).then((res) => res.text());
return text;
};
export async function mockFetch() {
// this path allows to import this mock from tests for other blocks (e.g. commerce)
- const literals = await readMockJSON('literals.json');
- const offers = await readMockJSON('offers.json');
- const namedOffers = await readMockJSON('named-offers.json');
+ const basePath = '/test/blocks/merch/mocks/';
+ const literals = await readMockJSON(`${basePath}literals.json`);
+ const offers = await readMockJSON(`${basePath}offers.json`);
+ const namedOffers = await readMockJSON(`${basePath}named-offers.json`);
+
+ namedOffers.forEach(({ resolvedOffers: [offer] }) => {
+ const {
+ offerSelectorIds,
+ productArrangement: { productFamily },
+ offerType,
+ customerSegment,
+ marketSegments: [
+ marketSegment,
+ ],
+ language,
+ } = offer;
+ // eslint-disable-next-line no-nested-ternary
+ const segment = customerSegment === 'TEAM' ? 'cct' : marketSegment === 'COM' ? 'cci' : 'cce';
+ const { planType } = applyPlanType(offer);
+ const osi = `${productFamily}-${offerType}-${planType}-${language}-${segment}`.toLowerCase();
+ offerSelectorIds.unshift(osi);
+ });
let checkoutLinkConfigs;
const setCheckoutLinkConfigs = (data) => {
@@ -45,12 +63,14 @@ export async function mockFetch() {
if (pathname.endsWith('/web_commerce_artifact')) {
const osis = searchParams.get('offer_selector_ids').split(',');
const firstOsi = osis[0];
+ const namedOffer = namedOffers
+ .find(({ resolvedOffers: [offer] }) => offer.offerSelectorIds.includes(firstOsi));
return Promise.resolve({
status: 200,
statusText: '',
ok: true,
json: () => Promise.resolve(
- (/^[A-Za-z]/.test(firstOsi)) ? namedOffers[firstOsi] : {
+ namedOffer ?? {
resolvedOffers: osis.map((osi) => {
let index = Number.parseInt(osi, 10);
if (Number.isNaN(index) || !Number.isFinite(index) || index < 0) index = 0;
diff --git a/test/blocks/merch/mocks/named-offers.json b/test/blocks/merch/mocks/named-offers.json
index 02e792f95e..eb74113060 100644
--- a/test/blocks/merch/mocks/named-offers.json
+++ b/test/blocks/merch/mocks/named-offers.json
@@ -1,179 +1,973 @@
+[
{
- "gb1": {
- "resolvedOffers": [
- {
- "offerSelectorIds": [
- "gb1"
- ],
- "offerId": "0ADF92A6C8514F2800BE9E87DB641D2A",
- "priceDetails": {
- "price": 273.17,
- "priceWithoutTax": 0.0,
- "priceWithoutDiscountAndTax": 227.64,
- "usePrecision": true,
- "formatString": "'£'#,##0.00",
- "taxDisplay": "TAX_INCLUSIVE_DETAILS",
- "taxTerm": "VAT"
- },
- "analytics": "{\"offerId\":\"0ADF92A6C8514F2800BE9E87DB641D2A\",\"label\":\"phsp_direct_individual\",\"price\":\"273.17\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"GBP\"}",
- "productArrangementCode": "phsp_direct_individual",
- "productArrangement": {
- "productFamily": "PHOTOSHOP"
- },
- "buyingProgram": "RETAIL",
- "commitment": "YEAR",
- "term": "ANNUAL",
- "customerSegment": "INDIVIDUAL",
- "marketSegments": [
- "COM"
- ],
- "salesChannel": "DIRECT",
- "offerType": "TRIAL",
- "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
- "language": "MULT",
- "merchant": "ADOBE"
- },
- {
- "offerSelectorIds": [
- "gb1"
- ],
- "offerId": "49133266E474B3E6EE5D1CB98B95B824",
- "priceDetails": {
- "price": 262.51,
- "priceWithoutTax": 0.0,
- "priceWithoutDiscountAndTax": 218.76,
- "usePrecision": true,
- "formatString": "'£'#,##0.00",
- "taxDisplay": "TAX_INCLUSIVE_DETAILS",
- "taxTerm": "VAT"
- },
- "analytics": "{\"offerId\":\"49133266E474B3E6EE5D1CB98B95B824\",\"label\":\"phsp_direct_individual\",\"price\":\"262.51\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"GBP\"}",
- "productArrangementCode": "phsp_direct_individual",
- "productArrangement": {
- "productFamily": "PHOTOSHOP"
- },
- "buyingProgram": "RETAIL",
- "commitment": "YEAR",
- "term": "ANNUAL",
- "customerSegment": "INDIVIDUAL",
- "marketSegments": [
- "COM"
- ],
- "salesChannel": "DIRECT",
- "offerType": "TRIAL",
- "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
- "language": "EN",
- "merchant": "ADOBE"
- }
- ]
- },
- "illustrator-trial": {
- "resolvedOffers": [
- {
- "offerSelectorIds": [
- "illustrator-trial"
- ],
- "offerId": "C1C12BA6D34A45AB9C1F7836C88DD4F8",
- "priceDetails": {
- "price": 22.99,
- "priceWithoutTax": 0.0,
- "priceWithoutDiscountAndTax": 22.99,
- "usePrecision": true,
- "formatString": "'US$'#,##0.00",
- "taxDisplay": "TAX_EXCLUSIVE",
- "taxTerm": "TAX"
- },
- "analytics": "{\"offerId\":\"C1C12BA6D34A45AB9C1F7836C88DD4F8\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
- "productArrangementCode": "ilst_direct_individual",
- "productArrangement": {
- "productFamily": "ILLUSTRATOR"
- },
- "buyingProgram": "RETAIL",
- "commitment": "YEAR",
- "term": "MONTHLY",
- "customerSegment": "INDIVIDUAL",
- "marketSegments": [
- "COM"
- ],
- "salesChannel": "DIRECT",
- "offerType": "TRIAL",
- "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
- "language": "MULT",
- "merchant": "ADOBE"
- }
- ]
- },
- "premiere-trial": {
- "resolvedOffers": [
- {
- "offerSelectorIds": [
- "premiere-trial"
- ],
- "offerId": "A3E81CB2F000EA56DB1E25A35C53C15F",
- "startDate": "2020-04-20T07:01:00.000Z",
- "endDate": "2050-04-08T19:59:00.000Z",
- "priceDetails": {
- "price": 22.99,
- "priceWithoutTax": 0.0,
- "priceWithoutDiscountAndTax": 22.99,
- "usePrecision": true,
- "formatString": "'US$'#,##0.00",
- "taxDisplay": "TAX_EXCLUSIVE",
- "taxTerm": "TAX"
- },
- "analytics": "{\"offerId\":\"A3E81CB2F000EA56DB1E25A35C53C15F\",\"label\":\"ppro_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
- "productArrangementCode": "ppro_direct_individual",
- "productArrangement": {
- "productFamily": "PREMIERE"
- },
- "buyingProgram": "RETAIL",
- "commitment": "YEAR",
- "term": "MONTHLY",
- "customerSegment": "INDIVIDUAL",
- "marketSegments": [
- "COM"
- ],
- "salesChannel": "DIRECT",
- "offerType": "TRIAL",
- "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
- "language": "MULT",
- "merchant": "ADOBE"
- }
- ]
- },
- "illustrator": {
- "resolvedOffers": [
- {
- "offerSelectorIds": [
- "illustrator"
- ],
- "offerId": "43538F47236C326E137A08307BFA70F2",
- "priceDetails": {
- "price": 22.99,
- "priceWithoutTax": 22.99,
- "usePrecision": true,
- "formatString": "'US$'#,##0.00",
- "taxDisplay": "TAX_EXCLUSIVE",
- "taxTerm": "TAX"
- },
- "analytics": "{\"offerId\":\"43538F47236C326E137A08307BFA70F2\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"22.99\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
- "productArrangementCode": "ilst_direct_individual",
- "productArrangement": {
- "productFamily": "ILLUSTRATOR"
- },
- "buyingProgram": "RETAIL",
- "commitment": "YEAR",
- "term": "MONTHLY",
- "customerSegment": "INDIVIDUAL",
- "marketSegments": [
- "COM"
- ],
- "salesChannel": "DIRECT",
- "offerType": "BASE",
- "pricePoint": "REGULAR",
- "language": "MULT",
- "merchant": "ADOBE"
- }
- ]
- }
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "L2C9cKHNNDaFtBVB6GVsyNI88RlyimSlzVfkMM2gH4A"
+ ],
+ "offerId": "49133266E474B3E6EE5D1CB98B95B824",
+ "startDate": "2020-04-20T07:01:00.000Z",
+ "endDate": "2050-04-08T19:59:00.000Z",
+ "priceDetails": {
+ "price": 262.51,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 218.76,
+ "usePrecision": true,
+ "formatString": "'£'#,##0.00",
+ "taxDisplay": "TAX_INCLUSIVE_DETAILS",
+ "taxTerm": "VAT"
+ },
+ "analytics": "{\"offerId\":\"49133266E474B3E6EE5D1CB98B95B824\",\"label\":\"phsp_direct_individual\",\"price\":\"262.51\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"GBP\"}",
+ "productArrangementCode": "phsp_direct_individual",
+ "productArrangement": {
+ "productFamily": "PHOTOSHOP"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
+ "language": "EN",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "frr4PaPpP1IkTTLP1G6TbdQPle_7mE2P1tVg74Nsgr8"
+ ],
+ "offerId": "0DA56534F200535C111B5D8817710FD5",
+ "startDate": "2024-01-29T16:00:00.000Z",
+ "endDate": "2050-12-17T07:58:00.000Z",
+ "priceDetails": {
+ "price": 1079.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 1079.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"0DA56534F200535C111B5D8817710FD5\",\"label\":\"ccle_direct_indirect_team\",\"price\":\"1079.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccle_direct_indirect_team",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "TEAM",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_14_DAY_TWP_TEAM_DIRECT_CCT_ALL_APPS_COM",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "6QMorJyNNAuQLg35h64xQtcyXz6Gw7QE8tihSs-zciU"
+ ],
+ "offerId": "DAC628518DDD843D4D19A8BF7D8FF1FE",
+ "startDate": "2024-01-29T16:00:00.000Z",
+ "endDate": "2050-12-17T07:58:00.000Z",
+ "priceDetails": {
+ "price": 89.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 89.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"DAC628518DDD843D4D19A8BF7D8FF1FE\",\"label\":\"ccle_direct_indirect_team\",\"price\":\"89.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccle_direct_indirect_team",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "TEAM",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_14_DAY_TWP_TEAM_DIRECT_CCT_ALL_APPS_COM",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "nlYSyCqrsegoFuLBJfEe-QqgnptUzduO5I-jA06CNFI"
+ ],
+ "offerId": "A9BF1E083874F26DD3C707BD1B53CF45",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"A9BF1E083874F26DD3C707BD1B53CF45\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "TvnoJYwMsiSd-S7hS9FK-orjWmkhi4ufgfRJ1iaIvEM"
+ ],
+ "offerId": "3FC0FFAB1342E059CB3863F6176ECA37",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 263.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 263.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"3FC0FFAB1342E059CB3863F6176ECA37\",\"label\":\"ilst_direct_individual\",\"price\":\"263.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "pZrSvg9dNEHfddeT-TKYDWfAISNGyZcxJ_bwtFZRzAc"
+ ],
+ "offerId": "5866CD66539F34346816D66D0E17698D",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 34.49,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 34.49,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"5866CD66539F34346816D66D0E17698D\",\"label\":\"ilst_direct_individual\",\"price\":\"34.49\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "JzW8dgW8U1SrgbHDmTE-ABsOKPgtl5jugiW8bA5PtKg"
+ ],
+ "offerId": "65BA7CA7573834AC4D043B0E7CBD2349",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 59.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 59.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"65BA7CA7573834AC4D043B0E7CBD2349\",\"label\":\"ccsn_direct_individual\",\"price\":\"59.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccsn_direct_individual",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "7QWcHXX6VIH_2BeNYI1GizMNGHJ3ZFz9-IMoC0gC-4c"
+ ],
+ "offerId": "1AB23148DED3D18062177AFEACEA6ECE",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 659.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 659.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"1AB23148DED3D18062177AFEACEA6ECE\",\"label\":\"ccsn_direct_individual\",\"price\":\"659.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccsn_direct_individual",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "MasJgjrlDjj72m_B1q1_4VhTDtxldl6yG4C16DkznhI"
+ ],
+ "offerId": "76EB6C3E0486E92E67A0BC1AB3CC7E19",
+ "startDate": "2021-12-08T08:01:00.000Z",
+ "endDate": "2050-01-31T19:59:00.000Z",
+ "priceDetails": {
+ "price": 89.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 89.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"76EB6C3E0486E92E67A0BC1AB3CC7E19\",\"label\":\"ccsn_direct_individual\",\"price\":\"89.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccsn_direct_individual",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_BASE_OFFER_TWP_CCI_ALL_APPS_AND_SINGLE_APP_NON_CCX",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "xxgyCsZk7zx3WAfpZMqiE6IMtvvu0CP4JJeIey_UtYo"
+ ],
+ "offerId": "C6DBF840A991DF84B7B3F871ABAD2415",
+ "startDate": "2020-09-26T14:31:00.000Z",
+ "priceDetails": {
+ "price": 19.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 19.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"C6DBF840A991DF84B7B3F871ABAD2415\",\"label\":\"ccsn_direct_individual\",\"price\":\"19.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccsn_direct_individual",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "EDU"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TRIAL_STE_FIRST_YEAR_ABM_US_ONLY",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "6jAp4YpZosSe5N5bCVbDcomwBmDLgN3RqZwXmn5ZR1s"
+ ],
+ "offerId": "13F9169A5EA8997CDB23379393AC0649",
+ "startDate": "2020-09-26T14:46:00.000Z",
+ "priceDetails": {
+ "price": 239.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 239.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"13F9169A5EA8997CDB23379393AC0649\",\"label\":\"ccsn_direct_individual\",\"price\":\"239.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ccsn_direct_individual",
+ "productArrangement": {
+ "productFamily": "CC_ALL_APPS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "EDU"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TRIAL_STE_FIRST_YEAR_ABM_US_ONLY",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "An5oaimikvfougEJNQBSz_f3VEgmd6acfeTQGGaPCoE"
+ ],
+ "offerId": "7164A328080BC96CC60FEBF33F64342D",
+ "startDate": "2018-12-03T07:59:59.000Z",
+ "endDate": "2029-10-05T07:59:59.000Z",
+ "priceDetails": {
+ "price": 29.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 29.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"7164A328080BC96CC60FEBF33F64342D\",\"label\":\"stks_direct_individual\",\"price\":\"29.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "stks_direct_individual",
+ "productArrangement": {
+ "productFamily": "STOCK_ASSETS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_STOCK_7_DAY_TRIAL",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "UvwrHnX9p1fBz2LoI0UvEdQ8JnZ-KGQKDamDKfwtygk"
+ ],
+ "offerId": "E3171ADBB9D7A5359EC8128650B7710D",
+ "startDate": "2018-12-03T07:59:59.000Z",
+ "endDate": "2029-10-05T07:59:59.000Z",
+ "priceDetails": {
+ "price": 359.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 359.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"E3171ADBB9D7A5359EC8128650B7710D\",\"label\":\"stks_direct_individual\",\"price\":\"359.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "stks_direct_individual",
+ "productArrangement": {
+ "productFamily": "STOCK_ASSETS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_STOCK_7_DAY_TRIAL",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "BJWO8GmMhLAjgxfL55oSz-7c7KSyLQdY9jotgROXSqM"
+ ],
+ "offerId": "3002E1908F4574F62C0A9ABA58196755",
+ "startDate": "2018-12-03T07:59:59.000Z",
+ "endDate": "2029-10-05T07:59:59.000Z",
+ "priceDetails": {
+ "price": 49.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 49.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"3002E1908F4574F62C0A9ABA58196755\",\"label\":\"stks_direct_individual\",\"price\":\"49.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "stks_direct_individual",
+ "productArrangement": {
+ "productFamily": "STOCK_ASSETS"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_STOCK_7_DAY_TRIAL",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "1KfaN_o5h4Gvmvh_QwfK7KB7xGPpNpsTXsdhqpJUT5Y"
+ ],
+ "offerId": "43538F47236C326E137A08307BFA70F2",
+ "startDate": "2015-11-17T20:43:19.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"43538F47236C326E137A08307BFA70F2\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"22.99\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "kVGMtXot7H9toCNBffogFGxgFEh9IBRNKFA3gQhZhpo"
+ ],
+ "offerId": "971E1ACB6EF4E30EDF890D1B230DD162",
+ "startDate": "2020-04-20T07:01:00.000Z",
+ "endDate": "2050-04-08T19:59:00.000Z",
+ "priceDetails": {
+ "price": 263.88,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 263.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"971E1ACB6EF4E30EDF890D1B230DD162\",\"label\":\"ppro_direct_individual\",\"price\":\"263.88\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ppro_direct_individual",
+ "productArrangement": {
+ "productFamily": "PREMIERE"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "zLM1ML9mB8lFrOoTdmNsV9K5-F-n5k8HLYJyE4yonV8"
+ ],
+ "offerId": "A3E81CB2F000EA56DB1E25A35C53C15F",
+ "startDate": "2020-04-20T07:01:00.000Z",
+ "endDate": "2050-04-08T19:59:00.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"A3E81CB2F000EA56DB1E25A35C53C15F\",\"label\":\"ppro_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ppro_direct_individual",
+ "productArrangement": {
+ "productFamily": "PREMIERE"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "1avoYh4OfMbgnCts12Kjik6lIBOBMYip0a5EyG7PafM"
+ ],
+ "offerId": "07AF00C11EC96DACC4ADD42020911268",
+ "startDate": "2017-06-23T07:07:51.000Z",
+ "priceDetails": {
+ "price": 34.49,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 34.49,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"07AF00C11EC96DACC4ADD42020911268\",\"label\":\"ppro_direct_individual\",\"price\":\"34.49\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ppro_direct_individual",
+ "productArrangement": {
+ "productFamily": "PREMIERE"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_MODEL",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "1KfaN_o5h4Gvmvh_QwfK7KB7xGPpNpsTXsdhqpJUT5Y"
+ ],
+ "offerId": "43538F47236C326E137A08307BFA70F2",
+ "startDate": "2015-11-17T20:43:19.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"43538F47236C326E137A08307BFA70F2\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"22.99\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "MkR_-obCKAXTVvDwFzdmlC81ozQ1oxVwvC7uVbaiyB4"
+ ],
+ "offerId": "5F2E4A8FD58D70C8860F51A4DE042E0C",
+ "startDate": "2015-11-17T20:43:19.000Z",
+ "priceDetails": {
+ "price": 263.88,
+ "priceWithoutTax": 263.88,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"5F2E4A8FD58D70C8860F51A4DE042E0C\",\"label\":\"ilst_direct_individual\",\"price\":\"263.88\",\"amountWithoutTax\":\"263.88\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"ANNUAL\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "ANNUAL",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "gJARBXxvCj1u6Csv2qMeLrdHyvEdN3y_6Cvu_uCogQs"
+ ],
+ "offerId": "DC7F4D082C8EEEBE4E0F9E6B3CFD7BC0",
+ "startDate": "2015-11-17T20:43:19.000Z",
+ "priceDetails": {
+ "price": 34.49,
+ "priceWithoutTax": 34.49,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"DC7F4D082C8EEEBE4E0F9E6B3CFD7BC0\",\"label\":\"ilst_direct_individual\",\"price\":\"34.49\",\"amountWithoutTax\":\"34.49\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "ByqyQ6QmyXhzAOnjIcfHcoF1l6nfkeLgbzWz-aeM8GQ",
+ "illustrator-trial"
+ ],
+ "offerId": "C1C12BA6D34A45AB9C1F7836C88DD4F8",
+ "startDate": "2020-04-20T07:01:00.000Z",
+ "endDate": "2050-04-08T19:59:00.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"C1C12BA6D34A45AB9C1F7836C88DD4F8\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "zLM1ML9mB8lFrOoTdmNsV9K5-F-n5k8HLYJyE4yonV8",
+ "premiere-trial"
+ ],
+ "offerId": "A3E81CB2F000EA56DB1E25A35C53C15F",
+ "startDate": "2020-04-20T07:01:00.000Z",
+ "endDate": "2050-04-08T19:59:00.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 0.0,
+ "priceWithoutDiscountAndTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"A3E81CB2F000EA56DB1E25A35C53C15F\",\"label\":\"ppro_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"0.0\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ppro_direct_individual",
+ "productArrangement": {
+ "productFamily": "PREMIERE"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "TRIAL",
+ "pricePoint": "TRIAL_TWP3060_60_DAY_TRIAL_FOR_CCI_SINGLE_APPS_WINBACK",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "1KfaN_o5h4Gvmvh_QwfK7KB7xGPpNpsTXsdhqpJUT5Y",
+ "illustrator"
+ ],
+ "offerId": "43538F47236C326E137A08307BFA70F2",
+ "startDate": "2015-11-17T20:43:19.000Z",
+ "priceDetails": {
+ "price": 22.99,
+ "priceWithoutTax": 22.99,
+ "usePrecision": true,
+ "formatString": "'US$'#,##0.00",
+ "taxDisplay": "TAX_EXCLUSIVE",
+ "taxTerm": "TAX"
+ },
+ "analytics": "{\"offerId\":\"43538F47236C326E137A08307BFA70F2\",\"label\":\"ilst_direct_individual\",\"price\":\"22.99\",\"amountWithoutTax\":\"22.99\",\"commitmentType\":\"YEAR\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"USD\"}",
+ "productArrangementCode": "ilst_direct_individual",
+ "productArrangement": {
+ "productFamily": "ILLUSTRATOR"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "YEAR",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ }
+ ]
+ },
+ {
+ "resolvedOffers": [
+ {
+ "offerSelectorIds": [
+ "4z5djtg8zeOjZgMJ3jRwB3Uo1PJh7Y5ZzCADM_AbDDs",
+ "gb1"
+ ],
+ "offerId": "B740D1F2F6369BD1C342E6E372A61B50",
+ "startDate": "2015-11-17T20:52:25.000Z",
+ "priceDetails": {
+ "price": 34.16,
+ "priceWithoutTax": 28.47,
+ "usePrecision": true,
+ "formatString": "'£'#,##0.00",
+ "taxDisplay": "TAX_INCLUSIVE_DETAILS",
+ "taxTerm": "VAT"
+ },
+ "analytics": "{\"offerId\":\"B740D1F2F6369BD1C342E6E372A61B50\",\"label\":\"phsp_direct_individual\",\"price\":\"34.16\",\"amountWithoutTax\":\"28.47\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"GBP\"}",
+ "productArrangementCode": "phsp_direct_individual",
+ "productArrangement": {
+ "productFamily": "PHOTOSHOP"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "MULT",
+ "merchant": "ADOBE"
+ },
+ {
+ "offerSelectorIds": [
+ "4z5djtg8zeOjZgMJ3jRwB3Uo1PJh7Y5ZzCADM_AbDDs"
+ ],
+ "offerId": "D0B190C16F2CC5DEC4E549AD696B2D20",
+ "startDate": "2015-11-17T20:52:25.000Z",
+ "priceDetails": {
+ "price": 32.98,
+ "priceWithoutTax": 27.48,
+ "usePrecision": true,
+ "formatString": "'£'#,##0.00",
+ "taxDisplay": "TAX_INCLUSIVE_DETAILS",
+ "taxTerm": "VAT"
+ },
+ "analytics": "{\"offerId\":\"D0B190C16F2CC5DEC4E549AD696B2D20\",\"label\":\"phsp_direct_individual\",\"price\":\"32.98\",\"amountWithoutTax\":\"27.48\",\"commitmentType\":\"MONTH\",\"billingFrequency\":\"MONTHLY\",\"currencyCode\":\"GBP\"}",
+ "productArrangementCode": "phsp_direct_individual",
+ "productArrangement": {
+ "productFamily": "PHOTOSHOP"
+ },
+ "buyingProgram": "RETAIL",
+ "commitment": "MONTH",
+ "term": "MONTHLY",
+ "customerSegment": "INDIVIDUAL",
+ "marketSegments": [
+ "COM"
+ ],
+ "salesChannel": "DIRECT",
+ "offerType": "BASE",
+ "pricePoint": "REGULAR",
+ "language": "EN",
+ "merchant": "ADOBE"
+ }
+ ]
}
+]
diff --git a/test/features/dynamic-nav/dynamicNav.test.js b/test/features/dynamic-nav/dynamicNav.test.js
new file mode 100644
index 0000000000..47b168ccfa
--- /dev/null
+++ b/test/features/dynamic-nav/dynamicNav.test.js
@@ -0,0 +1,48 @@
+import { readFile } from '@web/test-runner-commands';
+import { expect } from '@esm-bundle/chai';
+import { setConfig } from '../../../libs/utils/utils.js';
+import dynamicNav from '../../../libs/features/dynamic-navigation.js';
+
+describe('Dynamic nav', () => {
+ beforeEach(() => {
+ const conf = { dynamicNavKey: 'bacom' };
+ setConfig(conf);
+ window.sessionStorage.setItem('gnavSource', 'some-source-string');
+ });
+
+ it('Saves the gnavSource and dynamicNavKey to session storage', async () => {
+ document.head.innerHTML = await readFile({ path: './mocks/entry.html' });
+ window.sessionStorage.removeItem('gnavSource');
+ dynamicNav('gnav/aem-sites', 'bacom');
+ expect(window.sessionStorage.getItem('gnavSource')).to.equal('gnav/aem-sites');
+ expect(window.sessionStorage.getItem('dynamicNavKey')).to.equal('bacom');
+ });
+
+ it('Returns the provided url when the dynamic nav metadata is not present', async () => {
+ document.head.innerHTML = await readFile({ path: './mocks/off.html' });
+ const url = dynamicNav('gnav/aem-sites', 'nocom');
+ expect(window.sessionStorage.getItem('gnavSource')).to.equal('some-source-string');
+ expect(url).to.equal('gnav/aem-sites');
+ });
+
+ it('Returns the provided url with when the wrong dynamicNavKey is passed', async () => {
+ document.head.innerHTML = await readFile({ path: './mocks/on.html' });
+ const url = dynamicNav('gnav/aem-sites', 'nocom');
+ expect(window.sessionStorage.getItem('gnavSource')).to.equal('some-source-string');
+ expect(url).to.equal('gnav/aem-sites');
+ });
+
+ it('Returns the sessionStorage url if the item exists, the keys match, and dynamic nav is on', async () => {
+ document.head.innerHTML = await readFile({ path: './mocks/on.html' });
+ const url = dynamicNav('gnav/aem-sites', 'bacom');
+ expect(window.sessionStorage.getItem('gnavSource')).to.equal('some-source-string');
+ expect(url).to.equal('some-source-string');
+ });
+
+ it('Returns the pprovided url if it does not find an item in sessionStorage and dynamic nav is on', async () => {
+ document.head.innerHTML = await readFile({ path: './mocks/on.html' });
+ window.sessionStorage.removeItem('gnavSource');
+ const url = dynamicNav('gnav/aem-sites', 'bacom');
+ expect(url).to.equal('gnav/aem-sites');
+ });
+});
diff --git a/test/features/dynamic-nav/mocks/entry.html b/test/features/dynamic-nav/mocks/entry.html
new file mode 100644
index 0000000000..aeb74d8121
--- /dev/null
+++ b/test/features/dynamic-nav/mocks/entry.html
@@ -0,0 +1 @@
+
diff --git a/test/features/dynamic-nav/mocks/off.html b/test/features/dynamic-nav/mocks/off.html
new file mode 100644
index 0000000000..60feb7b764
--- /dev/null
+++ b/test/features/dynamic-nav/mocks/off.html
@@ -0,0 +1 @@
+
diff --git a/test/features/dynamic-nav/mocks/on.html b/test/features/dynamic-nav/mocks/on.html
new file mode 100644
index 0000000000..43ea6ee38b
--- /dev/null
+++ b/test/features/dynamic-nav/mocks/on.html
@@ -0,0 +1 @@
+