@managesome/eposmatic-toolkit 0.2.425 → 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.
@@ -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} Approved` : `${label} Cancelled`,
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 Approved' : 'Already Cancelled',
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
- ? 'The RFQ has been approved successfully.'
70
- : 'The RFQ has been cancelled successfully.';
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
- ? 'This RFQ has already been approved.'
74
- : 'This RFQ has already been cancelled.';
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 cancelled and cannot be approved.'
82
- : 'This RFQ has already been approved and cannot be cancelled via this link.';
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
  }
@@ -180,7 +180,6 @@ export interface IWorker_UpdateOrderStatusOnDeliveryStatusUpdate {
180
180
  export interface IWorker_SyncAsaanBillPaymentStatus {
181
181
  order_id: string;
182
182
  tenant_id: string;
183
- pId: string;
184
183
  payment_id: string;
185
184
  amount_due: number;
186
185
  order_number?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.425",
3
+ "version": "0.2.427",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",