@feedmepos/mf-payment 1.1.0-beta.3 → 1.1.0-beta.5

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 (33) hide show
  1. package/dist/{PayoutAccount-aXUZqVC4.js → PayoutAccount-C8TaOd4c.js} +298 -284
  2. package/dist/{PayoutAccount-Dm__V5FS.js → PayoutAccount-k_oj_Se3.js} +5 -5
  3. package/dist/{PayoutAccountSetting-EbYjEXDF.js → PayoutAccountSetting-CqkCjQZG.js} +3 -3
  4. package/dist/{Restaurant-DLM9C8nc.js → Restaurant-9242Ya8l.js} +4 -4
  5. package/dist/{RestaurantSetting-GoDOJmXC.js → RestaurantSetting-BpWnw2Jj.js} +3 -3
  6. package/dist/{Settlement-CsLlypA1.js → Settlement-BOKEyc5M.js} +3 -3
  7. package/dist/{Settlement-BCGCz02p.js → Settlement-Fk2o5a_1.js} +3 -3
  8. package/dist/{SettlementTransactions-DtbZ2BMA.js → SettlementTransactions-Bcg3w7Hz.js} +3 -3
  9. package/dist/{SettlementTransactions-BXDX1-4U.js → SettlementTransactions-lYTbe3Pj.js} +3 -3
  10. package/dist/{Terminal-BhZitu-W.js → Terminal-B2Awbq_j.js} +5 -5
  11. package/dist/{TerminalSetting-lTAsTN8h.js → TerminalSetting-S_8IxAyI.js} +27 -27
  12. package/dist/{Transaction-AwhwSbRY.js → Transaction-DZ-dAEJB.js} +5 -5
  13. package/dist/{Transaction-CCTdVAZg.js → Transaction-dJxNlcIg.js} +7 -7
  14. package/dist/{TransactionOld-DLjym0JG.js → TransactionOld-B7uxSwpb.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-xSb40MKu.js → TransactionTable.vue_vue_type_script_setup_true_lang-vH38H_Lw.js} +58 -54
  16. package/dist/api/terminal/index.d.ts +2 -1
  17. package/dist/{app-348rfspt.js → app-CmhTSkBh.js} +291 -289
  18. package/dist/app.d.ts +2 -0
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-CizBCu1u.js → assets-BwS-N5IN.js} +2 -2
  21. package/dist/{grafana-NU2yqPXT.js → grafana-ysrdKpe6.js} +1 -1
  22. package/dist/index-Bgrrdm3Z.js +52 -0
  23. package/dist/{index-GlBLcdqs.js → index-CiOLWz3t.js} +1 -1
  24. package/dist/{index-OD8n4-_f.js → index-DDFIpPJy.js} +1 -1
  25. package/dist/{index-Dvg8rPAD.js → index-DloTaJJH.js} +1 -1
  26. package/dist/{index-DEvTHjDK.js → index-DrJyWI2l.js} +2815 -2813
  27. package/dist/{index-BDCzfWFu.js → index-bSRmzn11.js} +1 -1
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-D-xbKBxe.js → index.vue_vue_type_script_setup_true_lang-Iz1uC_Gw.js} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-5sqoL9UC.js → payout-account-CasV_7ez.js} +110 -110
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/index-D9Cv_ZfD.js +0 -45
package/dist/app.d.ts CHANGED
@@ -87,6 +87,7 @@ export declare const i18nMessages: {
87
87
  table: {
88
88
  id: string;
89
89
  pay_id: string;
90
+ gateway_id: string;
90
91
  bill_seq: string;
91
92
  gateway: string;
92
93
  method: string;
@@ -231,6 +232,7 @@ export declare const i18nMessages: {
231
232
  table: {
232
233
  id: string;
233
234
  pay_id: string;
235
+ gateway_id: string;
234
236
  bill_seq: string;
235
237
  gateway: string;
236
238
  method: string;
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-348rfspt.js";
1
+ import { h as e, i as r, f as o } from "./app-CmhTSkBh.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g, b as H, r as c, f as E, l as v, h as l, _ as J } from "./index-DEvTHjDK.js";
1
+ import { g, b as H, r as c, f as E, l as v, i as l, _ as J } from "./index-DrJyWI2l.js";
2
2
  import { h as C } from "./moment-h96o7c8I.js";
3
3
  import { d as O } from "./dinero-CIVmXLL-.js";
4
4
  const K = {
@@ -79,7 +79,7 @@ const K = {
79
79
  const B = C(A.startDate), t = C(A.endDate).endOf("day");
80
80
  return v(Q, {
81
81
  filename: `transaction-report-${B.format("YYYY_MM_DD_HH:mm")}-${t.format("YYYY_MM_DD_HH:mm")}.xlsx`,
82
- exclude: ["method", "fdoAmount", "amount", "fee", "payout"],
82
+ exclude: ["method", "fdoAmount", "amount", "fee", "payout", "flags"],
83
83
  include: ["method.issuer", "fdoAmount.amount", "fdoAmount.currency"],
84
84
  rename: {
85
85
  "method.issuer": "method",
@@ -1,4 +1,4 @@
1
- import { e as y } from "./index-DEvTHjDK.js";
1
+ import { e as y } from "./index-DrJyWI2l.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as m } from "./moment-h96o7c8I.js";
4
4
  const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) => ({
@@ -0,0 +1,52 @@
1
+ import { d as s, b as t, g as a, f as r, h as i } from "./index-DrJyWI2l.js";
2
+ const y = {
3
+ async create(e) {
4
+ return s(
5
+ await t().post("/payments/terminals", e)
6
+ );
7
+ },
8
+ async read(e) {
9
+ return s(
10
+ await t().get("/payments/terminals", {
11
+ params: { ...e }
12
+ })
13
+ );
14
+ },
15
+ async readById(e) {
16
+ return a(await t().get(`/payments/terminals/${e}`));
17
+ },
18
+ async updateById(e, n) {
19
+ return a(
20
+ await t().put(`/payments/terminals/${e}`, n)
21
+ );
22
+ },
23
+ async getBindCode(e) {
24
+ const { code: n } = a(
25
+ await t().get(`/payments/terminals/${e}/code`)
26
+ );
27
+ return n;
28
+ },
29
+ async unbind(e) {
30
+ return a(
31
+ await t().delete(`/payments/terminals/${e}/unbind`)
32
+ );
33
+ },
34
+ async delete(e) {
35
+ return a(
36
+ await t().delete(`/payments/terminals/${e}`)
37
+ );
38
+ },
39
+ async getBusinessTerminals() {
40
+ return a(await r().get("/terminals"));
41
+ },
42
+ async getRestaurantTerminals(e) {
43
+ return a(
44
+ await t().get(
45
+ `restaurants/${e}/terminals?deviceType=${i.FdoTerminalDeviceType.Enum.TERMINAL}`
46
+ )
47
+ );
48
+ }
49
+ };
50
+ export {
51
+ y as t
52
+ };
@@ -1,4 +1,4 @@
1
- import { d as u, b as s, g as t, f as e } from "./index-DEvTHjDK.js";
1
+ import { d as u, b as s, g as t, f as e } from "./index-DrJyWI2l.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return u(
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { a as y } from "./index-DEvTHjDK.js";
3
+ import { a as y } from "./index-DrJyWI2l.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-DEvTHjDK.js";
1
+ import { b as r, g as e } from "./index-DrJyWI2l.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);