@feedmepos/mf-payment 1.7.19-dev → 1.7.21-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 (50) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BG2kBpO5.js → Actions.vue_vue_type_script_setup_true_lang-ffHJpvXa.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BdvtiVLt.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CfbmwrWK.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BxZt6EDX.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-By13wDdG.js} +2 -2
  4. package/dist/{Chargeback-8705ssuz.js → Chargeback-CZJQQ9gc.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CiI1CiLS.js → DocumentViewer.vue_vue_type_script_setup_true_lang-qP-vt90W.js} +1 -1
  6. package/dist/{OnboardForm-CLaIszWM.js → OnboardForm-B53FxupS.js} +199 -192
  7. package/dist/{OnboardForm-5r0fYV6-.js → OnboardForm-DLmRWhzp.js} +116 -116
  8. package/dist/{OnboardSubmission-Ce7ZpuPZ.js → OnboardSubmission-DJ7rU1wZ.js} +3 -3
  9. package/dist/{OnboardSubmission-CNQamOYQ.js → OnboardSubmission-sakKTYkk.js} +6 -6
  10. package/dist/{PayoutAccount-9O1nlqLq.js → PayoutAccount-BbL0ZGIp.js} +5 -5
  11. package/dist/{PayoutAccount-D1hIUDa5.js → PayoutAccount-DjsO2Zmp.js} +7 -7
  12. package/dist/{PayoutAccountSetting-Bsq44uGi.js → PayoutAccountSetting-BThyDhBb.js} +6 -6
  13. package/dist/{Restaurant-DEHGWg23.js → Restaurant-3EwpWvG0.js} +4 -4
  14. package/dist/{RestaurantSetting-B5qd5y-J.js → RestaurantSetting-Cq3qNh49.js} +3 -3
  15. package/dist/{Settlement-BikKSZle.js → Settlement-CkYnzrb9.js} +3 -3
  16. package/dist/{Settlement-Ctw5dS0H.js → Settlement-Yt7S32M5.js} +4 -4
  17. package/dist/{SettlementTransactions-DKkBKRL6.js → SettlementTransactions-Cb9qJOEj.js} +23 -19
  18. package/dist/{SettlementTransactions-CDODgpHm.js → SettlementTransactions-Ku_4e-zv.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-BjOVL2gZ.js → Status.vue_vue_type_script_setup_true_lang-DSp-aFCU.js} +1 -1
  20. package/dist/{Terminal-RVx6d8m5.js → Terminal-CaFd1Gc_.js} +5 -5
  21. package/dist/{TerminalSetting-C3a1qa_n.js → TerminalSetting-D0SFEEFS.js} +1309 -1306
  22. package/dist/{Transaction-CN_BMNGb.js → Transaction-C7k-A1m0.js} +180 -175
  23. package/dist/{Transaction-DBXgeJCZ.js → Transaction-gu5LaYsT.js} +10 -10
  24. package/dist/{TransactionOld-Fl78DjdT.js → TransactionOld-CcD_aF2l.js} +7 -7
  25. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-EDYvI3F4.js +90 -0
  26. package/dist/{app-OJHF121Y.js → app-im13caqF.js} +26 -23
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-DOm4WSnj.js → assets-DTQVIMfM.js} +1 -1
  29. package/dist/{grafana-CZhJ-kb0.js → grafana-BDmkGvlB.js} +1 -1
  30. package/dist/{index-mshqKLN4.js → index-BEUzu_r-.js} +1 -1
  31. package/dist/{index-BXmuBAla.js → index-BVDW0-ZU.js} +1 -1
  32. package/dist/{index-CDGYRQR_.js → index-CQECIxJN.js} +1 -1
  33. package/dist/{index-B2ihrnmG.js → index-D5xbRZEp.js} +1 -1
  34. package/dist/{index-xDoWArqk.js → index-D8TkGZl0.js} +4060 -4066
  35. package/dist/{index-Dve8PviD.js → index-DRG4CNUn.js} +1 -1
  36. package/dist/{index-CTdR0ACD.js → index-DqoTAh5-.js} +1 -1
  37. package/dist/{index-oogIEVP1.js → index-DtE260w6.js} +1 -1
  38. package/dist/{index-D4gNCFo_.js → index-MzVSdd2h.js} +2 -2
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-DCO3bEfF.js → index.vue_vue_type_script_setup_true_lang-DzEx8Tkw.js} +1 -1
  40. package/dist/model/transaction.d.ts +1 -0
  41. package/dist/{onboard-submission-OB4uY_qa.js → onboard-submission-C45MhH1f.js} +1 -1
  42. package/dist/package.json +1 -1
  43. package/dist/{payout-account-CGb_jgcQ.js → payout-account-EtjDZuJC.js} +3 -3
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +2 -2
  47. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
  48. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -0
  49. package/package.json +1 -1
  50. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-BseITPPF.js +0 -89
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
47
  receiptName?: string | null | undefined;
48
48
  gateway: "PROMPTPAY";
49
49
  } | {
50
- /** @type {[typeof __VLS_components.FmTextField, ]} */ config?: {
50
+ config?: {
51
51
  account: string;
52
52
  } | null | undefined;
53
53
  receiptName?: string | null | undefined;
@@ -134,7 +134,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
134
134
  receiptName?: string | null | undefined;
135
135
  gateway: "PROMPTPAY";
136
136
  } | {
137
- /** @type {[typeof __VLS_components.FmTextField, ]} */ config?: {
137
+ config?: {
138
138
  account: string;
139
139
  } | null | undefined;
140
140
  receiptName?: string | null | undefined;
@@ -1,4 +1,4 @@
1
- import { type Row } from '@feedmepos/ui-library';
1
+ import { type Row } from "@feedmepos/ui-library";
2
2
  type __VLS_Props = {
3
3
  row: Row<any>;
4
4
  data: unknown;
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  modelValue: string | null;
3
3
  label?: string;
4
+ hint?: string;
4
5
  type: "image" | "pdf";
5
6
  restaurantId?: string | null;
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.7.19-dev",
3
+ "version": "1.7.21-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,89 +0,0 @@
1
- import { p as t } from "./index-xDoWArqk.js";
2
- import { d as o } from "./dinero-CIVmXLL-.js";
3
- import { h as m } from "./moment-h96o7c8I.js";
4
- import { defineComponent as i, resolveComponent as c, openBlock as l, createBlock as p, normalizeClass as A, withCtx as T, createElementVNode as r, toDisplayString as y } from "vue";
5
- function f(a) {
6
- var s, u;
7
- let e = "", n = "";
8
- switch (!0) {
9
- case !!a.terminal:
10
- n = a.terminalType ?? "Device", e = a.terminal;
11
- break;
12
- case !!a.restaurant:
13
- n = "Restaurant", e = a.restaurant;
14
- break;
15
- case !!a.payoutAccountId:
16
- n = "PayoutAccount", e = a.payoutAccountId;
17
- break;
18
- }
19
- return {
20
- id: a._id,
21
- transactionId: a.transactionId,
22
- payId: a.payId,
23
- gatewayTransactionId: a.gatewayTransactionId,
24
- gatewayRefundId: a.gatewayTransactionId,
25
- method: a.method,
26
- gateway: a.gateway,
27
- status: a.status,
28
- payFor: a.payFor,
29
- source: e,
30
- sourceType: n,
31
- restaurantId: a.restaurant ?? "-",
32
- businessId: a.businessId ?? ((s = a == null ? void 0 : a.pf_payoutAccount) == null ? void 0 : s.businessId),
33
- settlementId: a.settlement ?? "-",
34
- settlementAt: a.canSettleAt ? m(a.canSettleAt).format("YYYY-MM-DD HH:mm:ss") : "-",
35
- transactionAt: m(a.callbackAt ?? a.createdAt).format(
36
- "YYYY-MM-DD HH:mm:ss"
37
- ),
38
- refundedAt: a.refundedAt ? m(a.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
39
- fdoAmount: a.amount,
40
- amount: o(a.amount).toFormat("$0.00"),
41
- gatewayAmount: o(a.gatewayAmount ?? a.amount).toFormat(
42
- "$0.00"
43
- ),
44
- fee: o(a.fee).toFormat("$0.00"),
45
- payout: o(a.payout).toFormat("$0.00"),
46
- billId: a == null ? void 0 : a.billId,
47
- seqNumber: a == null ? void 0 : a.seqNumber,
48
- seqNumberBinded: (a == null ? void 0 : a.seqNumberBinded) ?? !1,
49
- callbackResponse: a.callbackResponse,
50
- flags: {
51
- notify: a.status === "SUCCESS" && !!a.notifyUrl && a._id.length > 6,
52
- refund: a.status === "SUCCESS",
53
- query: a.payType !== "TERMINAL",
54
- isDelivery: ((u = a.method) == null ? void 0 : u.issuer) === "FEEDME" && a.method.variant === "DELIVERY"
55
- }
56
- };
57
- }
58
- function S(a) {
59
- return a.map(f);
60
- }
61
- const b = /* @__PURE__ */ i({
62
- __name: "TransactionStatus",
63
- props: {
64
- data: {}
65
- },
66
- setup(a) {
67
- const e = a;
68
- function n() {
69
- return e.data === t.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING || e.data === t.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING_SETTLEMENT ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === t.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === t.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
70
- }
71
- return (s, u) => {
72
- const d = c("FmBadge");
73
- return l(), p(d, {
74
- inline: "",
75
- class: A(n())
76
- }, {
77
- default: T(() => [
78
- r("div", null, y(a.data), 1)
79
- ]),
80
- _: 1
81
- }, 8, ["class"]);
82
- };
83
- }
84
- });
85
- export {
86
- b as _,
87
- f as a,
88
- S as t
89
- };