react-memory-optimization 0.0.83 → 0.0.84

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.
@@ -43,4 +43,5 @@ export type ResponseFlashPayUpiDeposit = {
43
43
  export type ResponseFlashPayUpiWithdraw = {
44
44
  status: keyof typeof EFlashPayStatusCode;
45
45
  code: string;
46
+ postponed: boolean;
46
47
  };
@@ -58,7 +58,21 @@ const impusFlashPayRestAdapterWithdraw = (data) => {
58
58
  },
59
59
  };
60
60
  }
61
- if (data.status === types_3.EFlashPayStatusCode[1]) {
61
+ if (data.status === types_3.EFlashPayStatusCode[0]) {
62
+ if (data.postponed) {
63
+ return {
64
+ key,
65
+ responseData: {
66
+ text: 'responseMoney.Postponed',
67
+ url: '',
68
+ isQR: false,
69
+ iconType: types_1.EIconType.Wait,
70
+ requestId: types_2.ERequestIds.WithdrawRequest,
71
+ // Notice: We can't show waiting notification description because we don't have the notification
72
+ isError: true,
73
+ },
74
+ };
75
+ }
62
76
  return {
63
77
  key,
64
78
  responseData: {
@@ -71,34 +85,6 @@ const impusFlashPayRestAdapterWithdraw = (data) => {
71
85
  },
72
86
  };
73
87
  }
74
- if (data.status === types_3.EFlashPayStatusCode[4]) {
75
- return {
76
- key,
77
- responseData: {
78
- text: 'responseMoney.Postponed',
79
- url: '',
80
- isQR: false,
81
- iconType: types_1.EIconType.Wait,
82
- requestId: types_2.ERequestIds.WithdrawRequest,
83
- // Notice: We can't show waiting notification description because we don't have the notification
84
- isError: true,
85
- },
86
- };
87
- }
88
- if (data.status === types_3.EFlashPayStatusCode[2]) {
89
- return {
90
- key,
91
- responseData: {
92
- text: 'responseMoney.OperatorResponseError',
93
- url: '',
94
- isQR: false,
95
- iconType: types_1.EIconType.Error,
96
- requestId: types_2.ERequestIds.WithdrawRequest,
97
- // Notice: We can't show waiting notification description because we don't have the notification
98
- isError: true,
99
- },
100
- };
101
- }
102
88
  const statusCode = +data.code;
103
89
  const instanceMoneyResponse = new moneyResponse_1.MoneyResponse();
104
90
  const { text, iconType, isError } = instanceMoneyResponse.getErrorCodeByStatus(statusCode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [