Skip to content

Commit 0aa3f6f

Browse files
committed
update message types
1 parent cae5cba commit 0aa3f6f

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

content/messages/ES/long_term_nq.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"offerCountry": "ES",
44
"offerType": "PAY_LATER_LONG_TERM",
55
"offerTerm": "{total_payments}",
6+
"messageType": "PLLT_NQ_GZ",
67
"lander": "https://www.paypal.com/credit-presentment/lander/modal",
78
"variables": {
89
"offer_id": "${CREDIT_OFFERS_DS.offer_id}",

content/messages/ES/long_term_q.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"offerCountry": "IT",
44
"offerType": "PAY_LATER_LONG_TERM",
5-
"messageType": "LONG_TERM:Q",
5+
"messageType": "PLLT_MQ_GZ",
66
"offerTerm": "{total_payments}",
77
"lander": "https://www.paypal.com/credit-presentment/lander/modal",
88
"variables": {

content/messages/IT/long_term_nq.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"meta": {
33
"offerCountry": "IT",
44
"offerType": "PAY_LATER_LONG_TERM",
5+
"messageType": "PLLT_NQ_GZ",
56
"offerTerm": "{total_payments}",
67
"lander": "https://www.paypal.com/credit-presentment/lander/modal",
78
"variables": {

content/messages/IT/long_term_q.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"offerCountry": "IT",
44
"offerType": "PAY_LATER_LONG_TERM",
5-
"messageType": "LONG_TERM:Q",
5+
"messageType": "PLLT_MQ_GZ",
66
"offerTerm": "{total_payments}",
77
"lander": "https://www.paypal.com/credit-presentment/lander/modal",
88
"variables": {

src/server/locale/ES/mutations/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
// mutations import here.
2+
import longTermQ from './long_term_q';
3+
import longTermNq from './long_term_nq';
24
import shortTermQ from './short_term_q';
35
import shortTermNq from './short_term_nq';
46
import shortTermNoAmount from './short_term_no_amount';
57

68
export default function getMutations(id, type) {
79
switch (id) {
10+
case 'PLLT_MQ_GZ':
11+
return longTermQ[type];
12+
case 'PLLT_NQ_GZ':
13+
return longTermNq[type];
814
case 'SHORT_TERM:Q':
915
case 'PLST_SQ':
1016
return shortTermQ[type];

src/server/locale/IT/mutations/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ import shortTermNoAmount from './short_term_no_amount';
77

88
export default function getMutations(id, type) {
99
switch (id) {
10-
case 'LONG_TERM:Q':
11-
case 'PLLT_SQ':
10+
case 'PLLT_MQ_GZ':
1211
return longTermQ[type];
13-
case 'LONG_TERM:NQ':
14-
case 'PLLT_NQ':
12+
case 'PLLT_NQ_GZ':
1513
return longTermNq[type];
1614
case 'SHORT_TERM:Q':
1715
case 'PLST_SQ':

src/utils/miscellaneous.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ export function getStandardProductOffer(offer) {
215215
case 'LT_SQEZ':
216216
case 'LT_SQEZ_RB':
217217
case 'LT_SQGZ':
218-
case 'LONG_TERM:Q':
219-
case 'LONG_TERM:NQ':
220218
case 'GPL:EQZ':
221219
case 'GPL:GTZ':
222220
case 'GPLQ:EQZ':

0 commit comments

Comments
 (0)