diff --git a/content/messages/CA/generic.json b/content/messages/CA/generic.json index 3dc5407215..89e32d2377 100644 --- a/content/messages/CA/generic.json +++ b/content/messages/CA/generic.json @@ -3,7 +3,7 @@ "id": "", "offerCountry": "CA", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "${CREDIT_OFFERS_DS.total_payments}", "lander": "", "variables": { diff --git a/content/messages/CA/generic_fr.json b/content/messages/CA/generic_fr.json index 08aeed4e22..1e165dbcdb 100644 --- a/content/messages/CA/generic_fr.json +++ b/content/messages/CA/generic_fr.json @@ -4,7 +4,7 @@ "offerCountry": "CA", "language": "fr-CA", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "${CREDIT_OFFERS_DS.total_payments}", "lander": "", "variables": { diff --git a/content/messages/DE/generic-non-de.json b/content/messages/DE/generic-non-de.json index 98449fde93..e4a16ffee4 100644 --- a/content/messages/DE/generic-non-de.json +++ b/content/messages/DE/generic-non-de.json @@ -2,7 +2,7 @@ "meta": { "offerCountry": "DE", "offerType": "GENERIC", - "messageType": "GENERIC_XB", + "messageType": "PL_GENERIC_XB", "offerTerm": "{total_payments}", "lander": "", "variables": { diff --git a/content/messages/DE/generic.json b/content/messages/DE/generic.json index 33877b6156..9b03624171 100644 --- a/content/messages/DE/generic.json +++ b/content/messages/DE/generic.json @@ -2,7 +2,7 @@ "meta": { "offerCountry": "DE", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "{total_payments}", "lander": "", "variables": { diff --git a/content/messages/ES/short_term_no_amount.json b/content/messages/ES/short_term_no_amount.json index f77b86dd90..630a155037 100644 --- a/content/messages/ES/short_term_no_amount.json +++ b/content/messages/ES/short_term_no_amount.json @@ -1,8 +1,8 @@ { "meta": { "offerCountry": "ES", - "offerType": "PAY_LATER_SHORT_TERM", - "messageType": "PLST_NA", + "offerType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "{total_payments}", "lander": "", "variables": { diff --git a/content/messages/IT/short_term_no_amount.json b/content/messages/IT/short_term_no_amount.json index 6da05c2065..afc218c997 100644 --- a/content/messages/IT/short_term_no_amount.json +++ b/content/messages/IT/short_term_no_amount.json @@ -1,8 +1,8 @@ { "meta": { "offerCountry": "IT", - "offerType": "PAY_LATER_SHORT_TERM", - "messageType": "PLST_NA", + "offerType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "{total_payments}", "lander": "", "variables": { diff --git a/content/messages/US/buttons/generic_pay_later.json b/content/messages/US/buttons/generic_pay_later.json index ce4c21e9c8..39972be76f 100644 --- a/content/messages/US/buttons/generic_pay_later.json +++ b/content/messages/US/buttons/generic_pay_later.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC_PL", + "messageType": "PP:PL_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [["Pay in full or Pay Later", ["default", "xsmall"]]], diff --git a/content/messages/US/buttons/generic_pay_later_bnpl.json b/content/messages/US/buttons/generic_pay_later_bnpl.json index 513ddaefc4..53e2726228 100644 --- a/content/messages/US/buttons/generic_pay_later_bnpl.json +++ b/content/messages/US/buttons/generic_pay_later_bnpl.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [ diff --git a/content/messages/US/buttons/generic_paypal.json b/content/messages/US/buttons/generic_paypal.json index 85d0de3572..735f012b30 100644 --- a/content/messages/US/buttons/generic_paypal.json +++ b/content/messages/US/buttons/generic_paypal.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC_PAYPAL", + "messageType": "PP_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [["A safer, easier way to pay", ["default", "xsmall"]]], diff --git a/content/messages/US/generic.json b/content/messages/US/generic.json index 4a312cb850..e3772c68ab 100644 --- a/content/messages/US/generic.json +++ b/content/messages/US/generic.json @@ -3,7 +3,7 @@ "id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "offerTerm": "${CREDIT_OFFERS_DS.total_payments}", "lander": "https://www.paypal.com/ppclander", "variables": { diff --git a/content/messages/US/long_term_multi_gtz_3mez.json b/content/messages/US/long_term_multi_gtz_3mez.json index 9c3f46c81b..fca743516b 100644 --- a/content/messages/US/long_term_multi_gtz_3mez.json +++ b/content/messages/US/long_term_multi_gtz_3mez.json @@ -2,7 +2,8 @@ "meta": { "id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6", "offerCountry": "US", - "offerType": "LT_MQGZ:3MEZ", + "offerType": "PAY_LATER_LONG_TERM", + "messageType": "PLLT_MQ_GZ:PLLT_SQ_EZ", "offerTerm": "${CREDIT_OFFERS_DS.total_payments}", "lander": "https://www.paypal.com/ppclander", "variables": { diff --git a/content/messages/US/marks/generic_pay_later.json b/content/messages/US/marks/generic_pay_later.json index ce4c21e9c8..39972be76f 100644 --- a/content/messages/US/marks/generic_pay_later.json +++ b/content/messages/US/marks/generic_pay_later.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC_PL", + "messageType": "PP:PL_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [["Pay in full or Pay Later", ["default", "xsmall"]]], diff --git a/content/messages/US/marks/generic_pay_later_bnpl.json b/content/messages/US/marks/generic_pay_later_bnpl.json index beb6cdc476..ab648ec232 100644 --- a/content/messages/US/marks/generic_pay_later_bnpl.json +++ b/content/messages/US/marks/generic_pay_later_bnpl.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC", + "messageType": "PL_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [["Buy now, pay later", ["default", "xsmall"]]], diff --git a/content/messages/US/marks/generic_paypal.json b/content/messages/US/marks/generic_paypal.json index 85d0de3572..735f012b30 100644 --- a/content/messages/US/marks/generic_paypal.json +++ b/content/messages/US/marks/generic_paypal.json @@ -6,7 +6,7 @@ "id": "", "offerCountry": "US", "offerType": "GENERIC", - "messageType": "GENERIC_PAYPAL", + "messageType": "PP_GENERIC", "lander": "https://www.paypal.com/credit-presentment/lander/modal" }, "headline": [["A safer, easier way to pay", ["default", "xsmall"]]], diff --git a/demo/helpers/accounts.js b/demo/helpers/accounts.js index 6ced2387c2..2554fd28ac 100644 --- a/demo/helpers/accounts.js +++ b/demo/helpers/accounts.js @@ -80,7 +80,7 @@ const accounts = [ // 'DEV0000ESPLNQ', // 'DEV0000ESPLNA', // 'DEV0000ESPLTQ', - // 'DEV0000ESPLTNQ' + // 'DEV000ESPLTNQ', // AU // 'DEV000000AUPL', @@ -89,9 +89,9 @@ const accounts = [ // IT // 'DEV0000ITPLNA', // 'DEV00000ITPLQ', - // 'DEV0000ITPLNQ' + // 'DEV0000ITPLNQ', // 'DEV0000ITPLTQ', - // 'DEV0000ITPLTNQ' + // 'DEV000ITPLTNQ', // CA // 'DEV000ENCAPLQ', diff --git a/docs/message-types.md b/docs/message-types.md index c907027acb..1ef165007b 100644 --- a/docs/message-types.md +++ b/docs/message-types.md @@ -8,7 +8,7 @@ The following are abbreviations used in reference to various messages and files. | messageType | PStudio Name | File Name | Message | | --------------- | -------------------- | -------------------------- | ------------------------------------------------------------------------------- | -| GENERIC | Generic Message | generic | Pay Later - No Amount Message | +| PL_GENERIC | Generic Message | generic | Pay Later - No Amount Message | | PLST_SQ | Short Term - Q | short_term_q | Pay Later - Pay in 4, Qualifying Purchase | | PLST_NQ | Short Term - NQ | short_term_nq | Pay Later - Pay in 4, Non-Qualifying Purchase | | PLLT_MQ_EZ | Long Term - MQEZ | long_term_multi_eqz | Pay Later - Pay Monthly, Multiple Qualifying Offers = 0% APR | @@ -44,8 +44,8 @@ The following are abbreviations used in reference to various messages and files. | PLLT_MQ_GZ | DE Long Term - Q GTZ | gplq_gtz | Pay Later - Ratenzahlung, Non-Qualifying Offers, >0% APR | | PLP1_SQ_XB | DE Pay In 1 - Q NON-DE | pi30q-non-de | Pay Later - Pay in 1, Non-DE, Qualifying Purchase | | PIP1_SQ | DE Pay In 1 - Q | pi30q | Pay Later - Pay in 1, Qualifying Purchase | -| GENERIC_XB | DE Generic Message - NON-DE | generic-non-de | Pay Later - Non-DE, No Amount Message | -| GENERIC | DE Generic Message | generic | Pay Later - No Amount Message | +| PL_GENERIC_XB | DE Generic Message - NON-DE | generic-non-de | Pay Later - Non-DE, No Amount Message | +| PL_GENERIC | DE Generic Message | generic | Pay Later - No Amount Message | | PLP1_NQ_XB | DE Pay In 1 - NQ NON-DE | pi30nq-non-de | Pay Later - Pay in 1, Non-DE, Non-Qualifying Purchase | | PLP1_NQ | DE Pay In 1 - NQ | pi30nq | Pay Later - Pay in 1, Non-Qualifying Purchase | | PLLT_NQ_EZ_XB | DE Long Term - NQ EQZ NON-DE | gpl_eqz-non-de | Pay Later - Ratenzahlung, Non-DE, Non-Qualifying Purchase, 0% APR | @@ -85,7 +85,7 @@ The following are abbreviations used in reference to various messages and files. | messageType | PStudio Name | File Name | Message | | ----------- | ------------------ | -------------------- | -------------------------------------------- | -| PLST_NA | IT Short Term - NA | short_term_no_amount | Pay Later, Pay in 3, No Amount | +| PL_GENERIC | IT Short Term - NA | short_term_no_amount | Pay Later, Pay in 3, No Amount | | PLST_SQ | IT Short Term - Q | short_term_q | Pay Later, Pay in 3, Qualifying Purchase | | PLST_NQ | IT Short Term - NQ | short_term_nq | Pay Later, Pay in 3, Non-Qualifying Purchase | @@ -93,7 +93,7 @@ The following are abbreviations used in reference to various messages and files. | messageType | PStudio Name | File Name | Message | | ----------- | ------------------ | -------------------- | -------------------------------------------- | -| PLST_NA | ES Short Term - NA | short_term_no_amount | Pay Later, Pay in 3, No Amount | +| PL_GENERIC | ES Short Term - NA | short_term_no_amount | Pay Later, Pay in 3, No Amount | | PLST_SQ | ES Short Term - Q | short_term_q | Pay Later, Pay in 3, Qualifying Purchase | | PLST_NQ | ES Short Term - NQ | short_term_nq | Pay Later, Pay in 3, Non-Qualifying Purchase | diff --git a/src/server/locale/CA/mutations/index.js b/src/server/locale/CA/mutations/index.js index a0f585c3c3..8ab501a794 100644 --- a/src/server/locale/CA/mutations/index.js +++ b/src/server/locale/CA/mutations/index.js @@ -11,6 +11,7 @@ export default function getMutations(id, type) { case 'PLST_NQ': return shortTermNQ[type]; case 'GENERIC': + case 'PL_GENERIC': default: return generic[type]; } diff --git a/src/server/locale/ES/mutations/index.js b/src/server/locale/ES/mutations/index.js index be51f22b87..742bc7b830 100644 --- a/src/server/locale/ES/mutations/index.js +++ b/src/server/locale/ES/mutations/index.js @@ -19,6 +19,7 @@ export default function getMutations(id, type) { return shortTermNq[type]; case 'SHORT_TERM:NO_AMOUNT': case 'PLST_NA': + case 'PL_GENERIC': default: return shortTermNoAmount[type]; } diff --git a/src/server/locale/IT/mutations/index.js b/src/server/locale/IT/mutations/index.js index be51f22b87..742bc7b830 100644 --- a/src/server/locale/IT/mutations/index.js +++ b/src/server/locale/IT/mutations/index.js @@ -19,6 +19,7 @@ export default function getMutations(id, type) { return shortTermNq[type]; case 'SHORT_TERM:NO_AMOUNT': case 'PLST_NA': + case 'PL_GENERIC': default: return shortTermNoAmount[type]; } diff --git a/src/server/locale/US/CONTEXTUAL_COMPONENTS/BUTTONS/mutations/index.js b/src/server/locale/US/CONTEXTUAL_COMPONENTS/BUTTONS/mutations/index.js index 274d6661ed..fb842ecbfe 100644 --- a/src/server/locale/US/CONTEXTUAL_COMPONENTS/BUTTONS/mutations/index.js +++ b/src/server/locale/US/CONTEXTUAL_COMPONENTS/BUTTONS/mutations/index.js @@ -54,15 +54,18 @@ export default function getMutations(id, type) { // Generic Messages // Generic Pay Later message case 'GENERIC_PL': + case 'PP:PL_GENERIC': return genericPayLater[type]; // // Generic Pay Later - Buy now, Pay Later message case 'GENERIC_PL_BNPL': case 'GENERIC': + case 'PL_GENERIC': return genericPayLaterBNPL[type]; case 'PURCHASE_PROTECTION': return purchaseProtection[type]; // // Generic PayPal message case 'GENERIC_PAYPAL': + case 'PP_GENERIC': default: return genericPayPal[type]; } diff --git a/src/server/locale/US/CONTEXTUAL_COMPONENTS/MARKS/mutations/index.js b/src/server/locale/US/CONTEXTUAL_COMPONENTS/MARKS/mutations/index.js index 274d6661ed..fb842ecbfe 100644 --- a/src/server/locale/US/CONTEXTUAL_COMPONENTS/MARKS/mutations/index.js +++ b/src/server/locale/US/CONTEXTUAL_COMPONENTS/MARKS/mutations/index.js @@ -54,15 +54,18 @@ export default function getMutations(id, type) { // Generic Messages // Generic Pay Later message case 'GENERIC_PL': + case 'PP:PL_GENERIC': return genericPayLater[type]; // // Generic Pay Later - Buy now, Pay Later message case 'GENERIC_PL_BNPL': case 'GENERIC': + case 'PL_GENERIC': return genericPayLaterBNPL[type]; case 'PURCHASE_PROTECTION': return purchaseProtection[type]; // // Generic PayPal message case 'GENERIC_PAYPAL': + case 'PP_GENERIC': default: return genericPayPal[type]; } diff --git a/src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js b/src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js index af11603d32..0c20a06817 100644 --- a/src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js +++ b/src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js @@ -26,6 +26,7 @@ export default function getMutations(id, type) { return longTermMultiGTZ[type]; case 'LT_MQGZ:3MEZ': case 'PLLT_MQGZ:3MEZ': + case 'PLLT_MQ_GZ:PLLT_SQ_EZ': return longTermMultiGTZ3MEZ[type]; case 'LT_SQEZ': case 'PLLT_SQ_EZ': diff --git a/src/utils/miscellaneous.js b/src/utils/miscellaneous.js index e1de323cdf..9efb66857a 100644 --- a/src/utils/miscellaneous.js +++ b/src/utils/miscellaneous.js @@ -212,6 +212,7 @@ export function getStandardProductOffer(offer) { case 'LT_MQEZ_RB': case 'LT_MQGZ': case 'LT_MQGZ:3MEZ': + case 'PLLT_MQ_GZ:PLLT_SQ_EZ': case 'LT_SQEZ': case 'LT_SQEZ_RB': case 'LT_SQGZ':