@feedmepos/mf-payment 1.5.17-dev → 1.5.18-dev

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.
Files changed (26) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js +52 -0
  2. package/dist/{Chargeback-CN_5ffe0.js → Chargeback-tB9aRc32.js} +2 -2
  3. package/dist/{OnboardForm-5Ebr2vf9.js → OnboardForm-CFjqDHUQ.js} +1 -1
  4. package/dist/{OnboardForm-Ch_Ykfw_.js → OnboardForm-lzWPdRnK.js} +1 -1
  5. package/dist/{PayoutAccount-D238lqNT.js → PayoutAccount-C3dLv3vp.js} +1 -1
  6. package/dist/{PayoutAccount-PPkKjWQM.js → PayoutAccount-kUXbY4SV.js} +1 -1
  7. package/dist/{Restaurant-BjF1a029.js → Restaurant-BQUb95tS.js} +1 -1
  8. package/dist/{Settlement-BC3V4klw.js → Settlement-DnPXVtTO.js} +1 -1
  9. package/dist/{Settlement-ZBIhVddV.js → Settlement-zgU3INW2.js} +1 -1
  10. package/dist/{SettlementTransactions-NtqKVZ4y.js → SettlementTransactions-BeeHTBBa.js} +1 -1
  11. package/dist/{SettlementTransactions---x0z4Fg.js → SettlementTransactions-CgDzvPcF.js} +1 -1
  12. package/dist/{Transaction-JFDOKyml.js → Transaction-CwxShg0E.js} +1 -1
  13. package/dist/Transaction-DgrEw-tG.js +619 -0
  14. package/dist/{TransactionOld-CmRVIeU2.js → TransactionOld-DPF3VYZ7.js} +1 -1
  15. package/dist/api/transaction/index.d.ts +8 -0
  16. package/dist/{app-DKtypFfA.js → app-Fj7JOZst.js} +13 -13
  17. package/dist/app.js +1 -1
  18. package/dist/{index-s7pe9sTx.js → index-COi73LGz.js} +41 -31
  19. package/dist/package.json +1 -1
  20. package/dist/{payout-account-CGaqvbMg.js → payout-account-tKvh4Q7G.js} +1 -1
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/views/admin/transaction/TextInputDialog.vue.d.ts +34 -0
  23. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-I9eO197f.js +0 -47
  26. package/dist/Transaction-BiT6BRmx.js +0 -478
@@ -1128,7 +1128,7 @@ const Kn = {
1128
1128
  sidebarDisplay: "Restaurants",
1129
1129
  section: "payment-gateway"
1130
1130
  },
1131
- component: () => import("./Restaurant-BjF1a029.js")
1131
+ component: () => import("./Restaurant-BQUb95tS.js")
1132
1132
  },
1133
1133
  {
1134
1134
  path: "/admin/restaurants/:restaurantId",
@@ -1146,7 +1146,7 @@ const Kn = {
1146
1146
  sidebarDisplay: "Payout Accounts",
1147
1147
  section: "payment-gateway"
1148
1148
  },
1149
- component: () => import("./PayoutAccount-D238lqNT.js")
1149
+ component: () => import("./PayoutAccount-C3dLv3vp.js")
1150
1150
  },
1151
1151
  {
1152
1152
  path: "/admin/payout-accounts/:accountId",
@@ -1173,7 +1173,7 @@ const Kn = {
1173
1173
  meta: {
1174
1174
  parent: "mf-payment-admin.onboard-submission"
1175
1175
  },
1176
- component: () => import("./OnboardForm-Ch_Ykfw_.js")
1176
+ component: () => import("./OnboardForm-lzWPdRnK.js")
1177
1177
  },
1178
1178
  {
1179
1179
  path: "/admin/terminal/pos",
@@ -1244,7 +1244,7 @@ const Kn = {
1244
1244
  meta: {
1245
1245
  sidebarDisplay: "Transactions"
1246
1246
  },
1247
- component: () => import("./Transaction-BiT6BRmx.js")
1247
+ component: () => import("./Transaction-DgrEw-tG.js")
1248
1248
  },
1249
1249
  {
1250
1250
  path: "/admin/chargeback",
@@ -1252,7 +1252,7 @@ const Kn = {
1252
1252
  meta: {
1253
1253
  sidebarDisplay: "Chargebacks"
1254
1254
  },
1255
- component: () => import("./Chargeback-CN_5ffe0.js")
1255
+ component: () => import("./Chargeback-tB9aRc32.js")
1256
1256
  },
1257
1257
  {
1258
1258
  path: "/admin/settlement",
@@ -1260,7 +1260,7 @@ const Kn = {
1260
1260
  meta: {
1261
1261
  sidebarDisplay: "Settlements"
1262
1262
  },
1263
- component: () => import("./Settlement-BC3V4klw.js")
1263
+ component: () => import("./Settlement-DnPXVtTO.js")
1264
1264
  },
1265
1265
  {
1266
1266
  path: "/admin/settlement/:settlementId",
@@ -1269,7 +1269,7 @@ const Kn = {
1269
1269
  meta: {
1270
1270
  parent: "mf-payment-admin.settlement"
1271
1271
  },
1272
- component: () => import("./SettlementTransactions-NtqKVZ4y.js")
1272
+ component: () => import("./SettlementTransactions-BeeHTBBa.js")
1273
1273
  }
1274
1274
  ], ue = [
1275
1275
  {
@@ -1279,7 +1279,7 @@ const Kn = {
1279
1279
  {
1280
1280
  path: "/payout-account",
1281
1281
  name: "mf-payment-payout-account",
1282
- component: () => import("./PayoutAccount-PPkKjWQM.js"),
1282
+ component: () => import("./PayoutAccount-kUXbY4SV.js"),
1283
1283
  meta: {
1284
1284
  sidebarDisplay: "i18n:payment.routes.payout_account"
1285
1285
  }
@@ -1297,7 +1297,7 @@ const Kn = {
1297
1297
  path: "/onboard-submission/:type/:submission?",
1298
1298
  name: "mf-payment-onboard-submission-form",
1299
1299
  props: !0,
1300
- component: () => import("./OnboardForm-5Ebr2vf9.js"),
1300
+ component: () => import("./OnboardForm-CFjqDHUQ.js"),
1301
1301
  meta: {
1302
1302
  parent: "mf-payment-onboard-submission"
1303
1303
  }
@@ -1305,7 +1305,7 @@ const Kn = {
1305
1305
  {
1306
1306
  path: "/transaction-old",
1307
1307
  name: "mf-payment-old-transaction",
1308
- component: () => import("./TransactionOld-CmRVIeU2.js"),
1308
+ component: () => import("./TransactionOld-DPF3VYZ7.js"),
1309
1309
  meta: {
1310
1310
  sidebarDisplay: "i18n:payment.routes.transaction"
1311
1311
  }
@@ -1313,7 +1313,7 @@ const Kn = {
1313
1313
  {
1314
1314
  path: "/transaction",
1315
1315
  name: "mf-payment-transaction",
1316
- component: () => import("./Transaction-JFDOKyml.js"),
1316
+ component: () => import("./Transaction-CwxShg0E.js"),
1317
1317
  meta: {
1318
1318
  sidebarDisplay: "i18n:payment.routes.transaction-new",
1319
1319
  sidebarNew: !0
@@ -1322,7 +1322,7 @@ const Kn = {
1322
1322
  {
1323
1323
  path: "/settlement",
1324
1324
  name: "mf-payment-settlement",
1325
- component: () => import("./Settlement-ZBIhVddV.js"),
1325
+ component: () => import("./Settlement-zgU3INW2.js"),
1326
1326
  meta: {
1327
1327
  sidebarDisplay: "i18n:payment.routes.settlement"
1328
1328
  }
@@ -1331,7 +1331,7 @@ const Kn = {
1331
1331
  path: "/settlement/:settlementId",
1332
1332
  name: "mf-payment-settlement-transaction",
1333
1333
  props: !0,
1334
- component: () => import("./SettlementTransactions---x0z4Fg.js"),
1334
+ component: () => import("./SettlementTransactions-CgDzvPcF.js"),
1335
1335
  meta: {
1336
1336
  parent: "mf-payment-settlement"
1337
1337
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as o, r as p } from "./app-DKtypFfA.js";
1
+ import { a as e, i as o, r as p } from "./app-Fj7JOZst.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  export {
4
4
  e as FmApp,
@@ -1,16 +1,16 @@
1
- import { g as e, b as r, d as o, h as y, l, r as i, f } from "./index-QTsd1BO1.js";
1
+ import { g as n, b as e, d as o, h as m, l, r as i, f } from "./index-QTsd1BO1.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
- const h = {
3
+ const w = {
4
4
  async readBySettlementId(t) {
5
- return e(
6
- await r().get(
5
+ return n(
6
+ await e().get(
7
7
  `/transactions/settlements/${t}`
8
8
  )
9
9
  );
10
10
  },
11
11
  async readTransactions(t) {
12
- return e(
13
- await r().get("/transactions", {
12
+ return n(
13
+ await e().get("/transactions", {
14
14
  params: {
15
15
  search: t.search,
16
16
  skip: t.skip,
@@ -22,29 +22,39 @@ const h = {
22
22
  );
23
23
  },
24
24
  async removeTransactionFromSettlement(t) {
25
- return e(
26
- await r().delete(`/settlements/${t}`)
25
+ return n(
26
+ await e().delete(`/settlements/${t}`)
27
27
  );
28
28
  },
29
29
  async refetchTransaction({
30
30
  transactionId: t
31
31
  }) {
32
- return e(
33
- await r().get(`/transactions/query/${t}`)
32
+ return n(
33
+ await e().get(`/transactions/query/${t}`)
34
34
  );
35
35
  },
36
36
  async refundTransaction(t) {
37
- return e(
38
- await r().post("/transactions/refund", t)
37
+ return n(
38
+ await e().post("/transactions/refund", t)
39
39
  );
40
40
  },
41
41
  async renotifyTransaction(t) {
42
- return e(
43
- await r().post("/payments/re-notify", { transactionId: t })
42
+ return n(
43
+ await e().post("/payments/re-notify", { transactionId: t })
44
+ );
45
+ },
46
+ async bindPayId(t) {
47
+ return n(
48
+ await e().patch(`/transactions/${t.transactionId}/payId`, { payId: t.payId })
49
+ );
50
+ },
51
+ async setGatewayId(t) {
52
+ return n(
53
+ await e().patch(`/transactions/${t.transactionId}/gatewayTransactionId`, { gatewayTransactionId: t.gatewayTransactionId })
44
54
  );
45
55
  },
46
56
  async readRestaurantTransactions(t) {
47
- return e(
57
+ return n(
48
58
  await i().get("/transactions", {
49
59
  params: {
50
60
  v2: !0,
@@ -71,14 +81,14 @@ const h = {
71
81
  );
72
82
  },
73
83
  async readRestaurantTransactionsBySettlementId(t) {
74
- return e(
84
+ return n(
75
85
  await i().get(
76
86
  `/transactions/settlements/${t}`
77
87
  )
78
88
  );
79
89
  },
80
90
  async downloadPortalTransactionReport(t, c, d = !1) {
81
- const u = a(t.startDate), m = a(t.endDate).endOf("day"), s = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
91
+ const u = a(t.startDate), y = a(t.endDate).endOf("day"), s = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
82
92
  return d && s.push(
83
93
  "gatewayTransactionId",
84
94
  "gatewayRefundId",
@@ -86,7 +96,7 @@ const h = {
86
96
  "settlementId",
87
97
  "settlementAt"
88
98
  ), l(c, {
89
- filename: `transaction-report-${u.format("YYYY_MM_DD_HH:mm")}-${m.format("YYYY_MM_DD_HH:mm")}.xlsx`,
99
+ filename: `transaction-report-${u.format("YYYY_MM_DD_HH:mm")}-${y.format("YYYY_MM_DD_HH:mm")}.xlsx`,
90
100
  exclude: s,
91
101
  include: ["method.issuer", "fdoAmount.amount", "fdoAmount.currency"],
92
102
  rename: {
@@ -97,17 +107,17 @@ const h = {
97
107
  seqNumberBinded: "Bill Binded"
98
108
  },
99
109
  transformers: {
100
- gateway: (n) => n === "RAZER_MERCHANT_SERVICE" ? "FIUU" : n,
101
- "fdoAmount.amount": (n) => parseFloat((n / 100).toFixed(2)),
102
- transactionAt: (n) => a(n).format("YYYY-MM-DD HH:mm:ss"),
103
- refundedAt: (n) => n ? a(n).format("YYYY-MM-DD HH:mm:ss") : "-",
104
- seqNumberBinded: (n) => n ? "Yes" : "No"
110
+ gateway: (r) => r === "RAZER_MERCHANT_SERVICE" ? "FIUU" : r,
111
+ "fdoAmount.amount": (r) => parseFloat((r / 100).toFixed(2)),
112
+ transactionAt: (r) => a(r).format("YYYY-MM-DD HH:mm:ss"),
113
+ refundedAt: (r) => r ? a(r).format("YYYY-MM-DD HH:mm:ss") : "-",
114
+ seqNumberBinded: (r) => r ? "Yes" : "No"
105
115
  }
106
116
  });
107
117
  },
108
118
  async downloadTransactionReport(t) {
109
- return y(
110
- await r().get("/transactions/report", {
119
+ return m(
120
+ await e().get("/transactions/report", {
111
121
  params: {
112
122
  start: a(t.start).startOf("day").toISOString(),
113
123
  end: a(t.end).endOf("day").toISOString()
@@ -118,7 +128,7 @@ const h = {
118
128
  },
119
129
  async readChargebackTransactions(t) {
120
130
  return o(
121
- await r().get("/transactions/chargeback", {
131
+ await e().get("/transactions/chargeback", {
122
132
  params: {
123
133
  search: t.search,
124
134
  cursor: t.cursor,
@@ -130,13 +140,13 @@ const h = {
130
140
  );
131
141
  },
132
142
  async createChargebackTransaction(t) {
133
- return e(
134
- await r().post("/transactions/chargeback", t)
143
+ return n(
144
+ await e().post("/transactions/chargeback", t)
135
145
  );
136
146
  },
137
147
  async updateChargebackTransaction(t) {
138
- return e(
139
- await r().patch(
148
+ return n(
149
+ await e().patch(
140
150
  `/transactions/chargeback/${t.chargebackId}`,
141
151
  { canSettleAt: t.canSettleAt }
142
152
  )
@@ -144,5 +154,5 @@ const h = {
144
154
  }
145
155
  };
146
156
  export {
147
- h as t
157
+ w as t
148
158
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.17-dev",
3
+ "version": "1.5.18-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
1
  import { a as st, c as it, p as E, B as at } from "./index-QTsd1BO1.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
3
  import { d as H } from "./index-DTD9SWXp.js";
4
- import { _ as ot } from "./app-DKtypFfA.js";
4
+ import { _ as ot } from "./app-Fj7JOZst.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {