@managesome/eposmatic-toolkit 0.2.426 → 0.2.427
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/RFQ.js +8 -8
- package/package.json +1 -1
package/lib/constants/RFQ.js
CHANGED
|
@@ -26,13 +26,13 @@ function getRfqRespondPageResult(code, action, rfqType) {
|
|
|
26
26
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.PROCESSED:
|
|
27
27
|
return {
|
|
28
28
|
status: 'PENDING',
|
|
29
|
-
title: action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM ? `${label}
|
|
29
|
+
title: action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM ? `${label} Accepted` : `${label} Declined`,
|
|
30
30
|
message: getRfqPublicRespondMessage(code, action),
|
|
31
31
|
};
|
|
32
32
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.ALREADY_PROCESSED:
|
|
33
33
|
return {
|
|
34
34
|
status: 'COMPLETED',
|
|
35
|
-
title: action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM ? 'Already
|
|
35
|
+
title: action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM ? 'Already Accepted' : 'Already Declined',
|
|
36
36
|
message: getRfqPublicRespondMessage(code, action),
|
|
37
37
|
};
|
|
38
38
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.EXPIRED:
|
|
@@ -66,20 +66,20 @@ function getRfqPublicRespondMessage(code, action) {
|
|
|
66
66
|
switch (code) {
|
|
67
67
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.PROCESSED:
|
|
68
68
|
return action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM
|
|
69
|
-
? '
|
|
70
|
-
: '
|
|
69
|
+
? 'You have accepted this RFQ. The buyer will review your response.'
|
|
70
|
+
: 'You have declined this RFQ.';
|
|
71
71
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.ALREADY_PROCESSED:
|
|
72
72
|
return action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM
|
|
73
|
-
? '
|
|
74
|
-
: '
|
|
73
|
+
? 'You have already accepted this RFQ.'
|
|
74
|
+
: 'You have already declined this RFQ.';
|
|
75
75
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.EXPIRED:
|
|
76
76
|
return 'This RFQ has expired and can no longer be responded to.';
|
|
77
77
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.NOT_FOUND:
|
|
78
78
|
return 'This RFQ could not be found. It may have been deleted or the link is invalid.';
|
|
79
79
|
case RFQ_PUBLIC_RESPOND_CODE_ENUM.INVALID_TRANSITION:
|
|
80
80
|
return action === RFQ_PUBLIC_RESPOND_ACTION_ENUM.CONFIRM
|
|
81
|
-
? 'This RFQ has already been
|
|
82
|
-
: 'This RFQ has already been
|
|
81
|
+
? 'This RFQ has already been declined and cannot be accepted.'
|
|
82
|
+
: 'This RFQ has already been accepted and cannot be declined via this link.';
|
|
83
83
|
default:
|
|
84
84
|
return 'An unknown error occurred.';
|
|
85
85
|
}
|