@feedmepos/mf-payment 1.0.4-beta.2 → 1.0.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 (60) hide show
  1. package/dist/{PayoutAccount-K-clfaW8.js → PayoutAccount-B6kGeSLY.js} +3 -3
  2. package/dist/{PayoutAccount-CUcmLnpF.js → PayoutAccount-BwBgS41r.js} +5 -5
  3. package/dist/{PayoutAccountSetting-B1uLo7gi.js → PayoutAccountSetting-C1yeSNv8.js} +4 -4
  4. package/dist/Restaurant-B02jty0J.js +262 -0
  5. package/dist/{RestaurantSetting-Dx0fPDEn.js → RestaurantSetting-CWZAKz1A.js} +4 -4
  6. package/dist/{Settlement-D0nuXQMV.js → Settlement-BKwie9R8.js} +3 -3
  7. package/dist/{Settlement-BGueDfpI.js → Settlement-ByPXBNx1.js} +3 -3
  8. package/dist/{SettlementTransactions-Dsnpidi1.js → SettlementTransactions-BGGqKJgP.js} +4 -4
  9. package/dist/{SettlementTransactions-DW8-tVPe.js → SettlementTransactions-BPEh0mSi.js} +4 -4
  10. package/dist/Terminal-DX8v8WpM.js +386 -0
  11. package/dist/{TerminalSetting-CrpB7DIV.js → TerminalSetting-qklmRz3H.js} +3 -3
  12. package/dist/{TerminalTransaction-2E_8keFp.js → TerminalTransaction-64Bn6vh0.js} +44 -50
  13. package/dist/{TerminalTransaction-BGy4ABmm.js → TerminalTransaction-YXcGJ2ne.js} +154 -184
  14. package/dist/{Transaction-DFqANzFa.js → Transaction-DMw2p-Wq.js} +27 -31
  15. package/dist/{Transaction-izWqPmdQ.js → Transaction-IDcY01Oi.js} +48 -81
  16. package/dist/{app-DPCnmmmg.js → app-CjbTCCDJ.js} +229 -229
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-NM2zCyV8.js → assets-DjRoCcqv.js} +1 -1
  19. package/dist/{index-DffVv67M.js → index-BEFlDEyV.js} +1 -1
  20. package/dist/{index-CZv4Ucw7.js → index-BWFqxSU3.js} +1 -1
  21. package/dist/{index-BWpuTiNy.js → index-BerQZMQW.js} +1 -1
  22. package/dist/{index-DfC2cb6i.js → index-Bp_58SiC.js} +1 -1
  23. package/dist/{index-BpclEVci.js → index-CKyh0nlu.js} +1 -1
  24. package/dist/{index-BbPdddp2.js → index-CWGSYCJG.js} +1 -1
  25. package/dist/{index-B5pmhl4r.js → index-DFePh4ct.js} +1 -1
  26. package/dist/{index-Bl77l-UI.js → index-Dj_LwPBy.js} +8321 -8489
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-Bm7Wybo3.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +1 -1
  28. package/dist/model/transaction.d.ts +0 -2
  29. package/dist/package.json +2 -2
  30. package/dist/{payout-account-DpAKpX1a.js → payout-account-ByuqS-Ea.js} +2 -2
  31. package/dist/stores/payoutAccount.d.ts +4 -4
  32. package/dist/{transaction-13xSmWg9.js → transaction-Cyw84Cks.js} +21 -25
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  35. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  36. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  37. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  38. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  39. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  40. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  41. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  42. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  43. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  44. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  45. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  46. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  47. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
  48. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  49. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  50. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  51. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +1 -3
  52. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  53. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  54. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  55. package/package.json +2 -2
  56. package/dist/Restaurant-D5L8pG25.js +0 -305
  57. package/dist/Terminal-BkhqmKjN.js +0 -404
  58. package/dist/grafana-CqkYm_ru.js +0 -46
  59. package/dist/helpers/grafana.d.ts +0 -7
  60. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +0 -5
@@ -25,19 +25,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  gateway: "FeedMe";
26
26
  } | {
27
27
  config?: {
28
- terminalId: string;
29
28
  merchantId: string;
29
+ terminalId: string;
30
30
  privateKey: string;
31
31
  } | null | undefined;
32
32
  gateway: "Ghl";
33
33
  })[] | null | undefined;
34
- _id: string;
35
34
  status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ updatedAt: string;
36
38
  referenceId: string;
37
39
  securityCode: string;
38
40
  deviceType: "KIOSK" | "TERMINAL" | "POS";
39
- createdAt: string;
40
- updatedAt: string;
41
41
  }>;
42
42
  required: true;
43
43
  };
@@ -70,19 +70,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  gateway: "FeedMe";
71
71
  } | {
72
72
  config?: {
73
- terminalId: string;
74
73
  merchantId: string;
74
+ terminalId: string;
75
75
  privateKey: string;
76
76
  } | null | undefined;
77
77
  gateway: "Ghl";
78
78
  })[] | null | undefined;
79
- _id: string;
80
79
  status: "Active" | "Inactive";
80
+ _id: string;
81
+ createdAt: string;
82
+ updatedAt: string;
81
83
  referenceId: string;
82
84
  securityCode: string;
83
85
  deviceType: "KIOSK" | "TERMINAL" | "POS";
84
- createdAt: string;
85
- updatedAt: string;
86
86
  }>;
87
87
  required: true;
88
88
  };
@@ -24,19 +24,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  gateway: "FeedMe";
25
25
  } | {
26
26
  config?: {
27
- terminalId: string;
28
27
  merchantId: string;
28
+ terminalId: string;
29
29
  privateKey: string;
30
30
  } | null | undefined;
31
31
  gateway: "Ghl";
32
32
  })[] | null | undefined;
33
- _id: string;
34
33
  status: "Active" | "Inactive";
34
+ _id: string;
35
+ createdAt: string;
36
+ updatedAt: string;
35
37
  referenceId: string;
36
38
  securityCode: string;
37
39
  deviceType: "KIOSK" | "TERMINAL" | "POS";
38
- createdAt: string;
39
- updatedAt: string;
40
40
  }>;
41
41
  required: true;
42
42
  };
@@ -65,19 +65,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
65
65
  gateway: "FeedMe";
66
66
  } | {
67
67
  config?: {
68
- terminalId: string;
69
68
  merchantId: string;
69
+ terminalId: string;
70
70
  privateKey: string;
71
71
  } | null | undefined;
72
72
  gateway: "Ghl";
73
73
  })[] | null | undefined;
74
- _id: string;
75
74
  status: "Active" | "Inactive";
75
+ _id: string;
76
+ createdAt: string;
77
+ updatedAt: string;
76
78
  referenceId: string;
77
79
  securityCode: string;
78
80
  deviceType: "KIOSK" | "TERMINAL" | "POS";
79
- createdAt: string;
80
- updatedAt: string;
81
81
  }>;
82
82
  required: true;
83
83
  };
@@ -25,19 +25,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  gateway: "FeedMe";
26
26
  } | {
27
27
  config?: {
28
- terminalId: string;
29
28
  merchantId: string;
29
+ terminalId: string;
30
30
  privateKey: string;
31
31
  } | null | undefined;
32
32
  gateway: "Ghl";
33
33
  })[] | null | undefined;
34
- _id: string;
35
34
  status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ updatedAt: string;
36
38
  referenceId: string;
37
39
  securityCode: string;
38
40
  deviceType: "KIOSK" | "TERMINAL" | "POS";
39
- createdAt: string;
40
- updatedAt: string;
41
41
  }>;
42
42
  required: true;
43
43
  };
@@ -70,19 +70,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  gateway: "FeedMe";
71
71
  } | {
72
72
  config?: {
73
- terminalId: string;
74
73
  merchantId: string;
74
+ terminalId: string;
75
75
  privateKey: string;
76
76
  } | null | undefined;
77
77
  gateway: "Ghl";
78
78
  })[] | null | undefined;
79
- _id: string;
80
79
  status: "Active" | "Inactive";
80
+ _id: string;
81
+ createdAt: string;
82
+ updatedAt: string;
81
83
  referenceId: string;
82
84
  securityCode: string;
83
85
  deviceType: "KIOSK" | "TERMINAL" | "POS";
84
- createdAt: string;
85
- updatedAt: string;
86
86
  }>;
87
87
  required: true;
88
88
  };
@@ -1,8 +1,6 @@
1
- import { F_TERMINAL_PAYMENT_GATEWAY_PROVIDER } from '@feedmepos/payment-entity';
2
- export type emitAction = "query" | "refund" | "history";
1
+ export type emitAction = "query" | "refund";
3
2
  type __VLS_Props = {
4
3
  onAction: (event: emitAction) => void;
5
- gateway: F_TERMINAL_PAYMENT_GATEWAY_PROVIDER;
6
4
  };
7
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
8
6
  export default _default;
@@ -1,4 +1,4 @@
1
- export type emitAction = "query" | "refund" | "notify" | "history";
1
+ export type emitAction = "query" | "refund" | "notify";
2
2
  type __VLS_Props = {
3
3
  onAction: (event: emitAction) => void;
4
4
  };
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  store: {
10
10
  bank?: {
11
11
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
12
- accountNumber?: string | null | undefined;
13
12
  holderName?: string | null | undefined;
13
+ accountNumber?: string | null | undefined;
14
14
  name: string;
15
15
  } | null | undefined;
16
16
  ssm?: string | null | undefined;
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  precision: number;
32
32
  } | null | undefined;
33
33
  tPlus?: number | null | undefined;
34
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
34
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
35
35
  variant: string;
36
36
  }[];
37
37
  businessId: string;
@@ -51,8 +51,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
51
51
  store: {
52
52
  bank?: {
53
53
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
54
- accountNumber?: string | null | undefined;
55
54
  holderName?: string | null | undefined;
55
+ accountNumber?: string | null | undefined;
56
56
  name: string;
57
57
  } | null | undefined;
58
58
  ssm?: string | null | undefined;
@@ -73,7 +73,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
73
73
  precision: number;
74
74
  } | null | undefined;
75
75
  tPlus?: number | null | undefined;
76
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
76
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
77
77
  variant: string;
78
78
  }[];
79
79
  businessId: string;
@@ -88,8 +88,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
88
88
  store: {
89
89
  bank?: {
90
90
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
91
- accountNumber?: string | null | undefined;
92
91
  holderName?: string | null | undefined;
92
+ accountNumber?: string | null | undefined;
93
93
  name: string;
94
94
  } | null | undefined;
95
95
  ssm?: string | null | undefined;
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
110
110
  precision: number;
111
111
  } | null | undefined;
112
112
  tPlus?: number | null | undefined;
113
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
113
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
114
114
  variant: string;
115
115
  }[];
116
116
  businessId: string;
@@ -130,8 +130,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
130
130
  store: {
131
131
  bank?: {
132
132
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
133
- accountNumber?: string | null | undefined;
134
133
  holderName?: string | null | undefined;
134
+ accountNumber?: string | null | undefined;
135
135
  name: string;
136
136
  } | null | undefined;
137
137
  ssm?: string | null | undefined;
@@ -152,7 +152,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
152
152
  precision: number;
153
153
  } | null | undefined;
154
154
  tPlus?: number | null | undefined;
155
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
155
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
156
156
  variant: string;
157
157
  }[];
158
158
  businessId: string;
@@ -3,17 +3,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3
3
  data: {
4
4
  type: PropType<{
5
5
  createdAt: Date;
6
+ remark?: string | null | undefined;
6
7
  store?: {
7
8
  id: string;
8
9
  event: "ORDERING" | "MARKETING";
9
10
  } | null | undefined;
10
- remark?: string | null | undefined;
11
11
  _id: string;
12
12
  beneficiaryBank: {
13
- name: string;
14
- accountNumber: string;
15
13
  holderName: string;
14
+ name: string;
16
15
  swiftCode: string;
16
+ accountNumber: string;
17
17
  };
18
18
  totalAmount: {
19
19
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
@@ -40,17 +40,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
40
40
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
41
41
  "row-click": (payment: {
42
42
  createdAt: Date;
43
+ remark?: string | null | undefined;
43
44
  store?: {
44
45
  id: string;
45
46
  event: "ORDERING" | "MARKETING";
46
47
  } | null | undefined;
47
- remark?: string | null | undefined;
48
48
  _id: string;
49
49
  beneficiaryBank: {
50
- name: string;
51
- accountNumber: string;
52
50
  holderName: string;
51
+ name: string;
53
52
  swiftCode: string;
53
+ accountNumber: string;
54
54
  };
55
55
  totalAmount: {
56
56
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
@@ -72,17 +72,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
72
72
  data: {
73
73
  type: PropType<{
74
74
  createdAt: Date;
75
+ remark?: string | null | undefined;
75
76
  store?: {
76
77
  id: string;
77
78
  event: "ORDERING" | "MARKETING";
78
79
  } | null | undefined;
79
- remark?: string | null | undefined;
80
80
  _id: string;
81
81
  beneficiaryBank: {
82
- name: string;
83
- accountNumber: string;
84
82
  holderName: string;
83
+ name: string;
85
84
  swiftCode: string;
85
+ accountNumber: string;
86
86
  };
87
87
  totalAmount: {
88
88
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
@@ -109,17 +109,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
109
109
  }>> & Readonly<{
110
110
  "onRow-click"?: ((payment: {
111
111
  createdAt: Date;
112
+ remark?: string | null | undefined;
112
113
  store?: {
113
114
  id: string;
114
115
  event: "ORDERING" | "MARKETING";
115
116
  } | null | undefined;
116
- remark?: string | null | undefined;
117
117
  _id: string;
118
118
  beneficiaryBank: {
119
- name: string;
120
- accountNumber: string;
121
119
  holderName: string;
120
+ name: string;
122
121
  swiftCode: string;
122
+ accountNumber: string;
123
123
  };
124
124
  totalAmount: {
125
125
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.0.4-beta.2",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -33,7 +33,7 @@
33
33
  "@casl/ability": "^3.2.0",
34
34
  "@feedmepos/core": "^2.6.0",
35
35
  "@feedmepos/mf-common": "^1.8.21",
36
- "@feedmepos/payment-entity": "^0.0.13",
36
+ "@feedmepos/payment-entity": "^0.0.6",
37
37
  "@feedmepos/ui-library": "^1.2.61",
38
38
  "axios": "^0.27.2",
39
39
  "buffer": "^6.0.3",
@@ -1,305 +0,0 @@
1
- import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as D, renderList as q, computed as C, watch as I, onMounted as N, unref as b, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-BWpuTiNy.js";
3
- import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
- import "@feedmepos/ui-library";
5
- import { u as G } from "./index-Bl77l-UI.js";
6
- import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-CZv4Ucw7.js";
8
- import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-CqkYm_ru.js";
10
- const Y = ["id"], L = /* @__PURE__ */ F({
11
- __name: "FmTableSelection",
12
- props: {
13
- value: {},
14
- items: {}
15
- },
16
- emits: ["update:modelValue"],
17
- setup(p, { emit: l }) {
18
- const m = l, u = p, s = y(!1);
19
- return (v, c) => {
20
- const o = g("FmButton"), n = g("FmMenuItem"), h = g("FmMenu");
21
- return x(), A(h, {
22
- "max-height": 264,
23
- shift: "",
24
- onMenuChanged: c[0] || (c[0] = (e) => s.value = e)
25
- }, {
26
- "menu-button": $(() => {
27
- var e;
28
- return [
29
- f(o, {
30
- icon: s.value ? "expand_less" : "expand_more",
31
- label: (e = v.items.find((t) => t.value === u.value)) == null ? void 0 : e.label,
32
- "icon-position": "append",
33
- size: "md",
34
- variant: "tertiary"
35
- }, null, 8, ["icon", "label"])
36
- ];
37
- }),
38
- "menu-wrapper": $(({ maxHeight: e }) => [
39
- d("div", {
40
- id: `menu-wrapper-${e}`,
41
- style: T({ maxHeight: `${e}px` }),
42
- class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
43
- }, [
44
- (x(!0), R(D, null, q(v.items, (t) => (x(), A(n, {
45
- key: t.value,
46
- label: t.label,
47
- value: t.value,
48
- "model-value": t.value === u.value,
49
- "onUpdate:modelValue": (w) => m("update:modelValue", t.value)
50
- }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
51
- ], 12, Y)
52
- ]),
53
- _: 1
54
- });
55
- };
56
- }
57
- }), Z = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, ee = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, te = { class: "flex gap-8 items-center" }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, ae = {
58
- class: /* @__PURE__ */ W(["flex gap-8 items-center"])
59
- }, ne = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, le = { class: "flex gap-8" }, se = /* @__PURE__ */ F({
60
- __name: "index",
61
- props: {
62
- columnDefs: {
63
- type: Array,
64
- required: !0
65
- },
66
- rowsDefs: {
67
- type: Function,
68
- required: !0
69
- },
70
- paginate: {
71
- type: Function,
72
- required: !0
73
- }
74
- },
75
- emits: ["row-click"],
76
- setup(p, { expose: l, emit: m }) {
77
- const u = [10, 20, 30, 50, 100].map((_) => ({
78
- label: _.toString(),
79
- value: _
80
- })), s = p, v = m, { isLoading: c, startLoading: o, stopLoading: n } = G(!0), h = y(), e = y(), t = y(10), w = y(0), r = y(1), k = async function(_ = !1) {
81
- if (o(), _ && (e.value = [], r.value != 1)) {
82
- r.value = 1;
83
- return;
84
- }
85
- const a = await s.paginate(t.value, r.value);
86
- e.value = a.resources, w.value = a.meta.totalPages ?? 1, n();
87
- }, K = C(() => r.value > 1), U = C(() => r.value < w.value), z = C(() => {
88
- var _;
89
- return (_ = e.value) == null ? void 0 : _.map(s.rowsDefs);
90
- });
91
- return I(t, () => k(!0)), I(r, () => k()), N(() => k()), l({
92
- reset: () => k(!0)
93
- }), (_, a) => {
94
- const M = g("FmTable"), S = g("FmButton");
95
- return x(), R(D, null, [
96
- f(M, {
97
- modelValue: h.value,
98
- "onUpdate:modelValue": a[0] || (a[0] = (i) => h.value = i),
99
- loading: b(c),
100
- "page-size": t.value,
101
- "row-data": z.value,
102
- "column-defs": p.columnDefs,
103
- "hide-footer": !0,
104
- onRowClick: a[1] || (a[1] = (i) => {
105
- var V;
106
- return v("row-click", (V = e.value) == null ? void 0 : V.at(i.index));
107
- })
108
- }, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
109
- d("div", Z, [
110
- d("div", ee, [
111
- d("div", te, [
112
- a[6] || (a[6] = d("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
113
- f(L, {
114
- items: b(u),
115
- value: t.value,
116
- "onUpdate:modelValue": a[2] || (a[2] = (i) => t.value = i)
117
- }, null, 8, ["items", "value"])
118
- ]),
119
- d("span", oe, B((r.value - 1) * t.value) + " - " + B((r.value - 1) * t.value + t.value), 1)
120
- ]),
121
- d("div", ae, [
122
- f(L, {
123
- items: Array.from(Array(w.value), (i, V) => V + 1).map(
124
- (i) => ({
125
- label: i.toString(),
126
- value: i
127
- })
128
- ),
129
- value: r.value,
130
- "onUpdate:modelValue": a[3] || (a[3] = (i) => r.value = i)
131
- }, null, 8, ["items", "value"]),
132
- d("span", ne, " Page " + B(r.value) + " of " + B(w.value), 1),
133
- d("div", le, [
134
- f(S, {
135
- disabled: !K.value,
136
- icon: "chevron_left",
137
- "icon-color": "neutral-black",
138
- variant: "tertiary",
139
- onClick: a[4] || (a[4] = () => r.value -= 1)
140
- }, null, 8, ["disabled"]),
141
- f(S, {
142
- disabled: !U.value,
143
- icon: "chevron_right",
144
- "icon-color": "neutral-black",
145
- variant: "tertiary",
146
- onClick: a[5] || (a[5] = () => r.value += 1)
147
- }, null, 8, ["disabled"])
148
- ])
149
- ])
150
- ])
151
- ], 64);
152
- };
153
- }
154
- }), re = /* @__PURE__ */ F({
155
- __name: "IsActive",
156
- props: {
157
- row: {},
158
- data: {}
159
- },
160
- setup(p) {
161
- const l = p;
162
- function m() {
163
- return l.data ? "#66BB6A" : "#EF5350";
164
- }
165
- function u() {
166
- return l.data ? "check" : "close";
167
- }
168
- return (s, v) => {
169
- const c = g("FmIcon");
170
- return x(), A(c, {
171
- name: u(),
172
- color: m(),
173
- size: "lg"
174
- }, null, 8, ["name", "color"]);
175
- };
176
- }
177
- }), ue = /* @__PURE__ */ F({
178
- __name: "LogButton",
179
- props: {
180
- id: {}
181
- },
182
- setup(p) {
183
- const l = p;
184
- function m() {
185
- const u = X([
186
- {
187
- type: "span",
188
- queryKey: "restaurant.id",
189
- queryValue: l.id
190
- }
191
- ]);
192
- window.open(u, "_blank");
193
- }
194
- return (u, s) => {
195
- const v = g("FmButton");
196
- return x(), R("div", {
197
- onClick: s[0] || (s[0] = (c) => {
198
- c.stopPropagation(), m();
199
- })
200
- }, [
201
- f(v, {
202
- variant: "plain",
203
- "prepend-icon": "history"
204
- })
205
- ]);
206
- };
207
- }
208
- }), ie = { class: "flex items-start mb-6" }, xe = /* @__PURE__ */ F({
209
- __name: "Restaurant",
210
- setup(p) {
211
- const { searchKey: l } = O({
212
- searchKey: ""
213
- }), m = y(), u = J();
214
- let s;
215
- I(l, async () => {
216
- s && clearTimeout(s), s = setTimeout(
217
- () => {
218
- var o;
219
- return (o = m.value) == null ? void 0 : o.reset();
220
- },
221
- 700
222
- );
223
- });
224
- const v = function(o) {
225
- const n = o.payoutAccount;
226
- return {
227
- id: o._id,
228
- name: o.profile.name,
229
- hasPayoutAccount: (n == null ? void 0 : n.enable) && n.status != "NEW"
230
- };
231
- }, c = [
232
- {
233
- header: () => "ID",
234
- accessorKey: "id",
235
- cell: ({ cell: o }) => P(Q, { data: o.getValue() }),
236
- meta: {
237
- maxWidth: "72px",
238
- textAlign: "right"
239
- }
240
- },
241
- {
242
- header: () => "Name",
243
- accessorKey: "name"
244
- },
245
- {
246
- header: () => "Account?",
247
- accessorKey: "hasPayoutAccount",
248
- meta: {
249
- maxWidth: "64px"
250
- },
251
- cell: ({ cell: o, row: n }) => P(re, { row: n, data: o.getValue() })
252
- },
253
- {
254
- header: () => "Actions",
255
- accessorKey: "logs",
256
- meta: {
257
- maxWidth: "64px"
258
- },
259
- cell: ({ row: o }) => P(ue, { id: o.original.id })
260
- }
261
- ];
262
- return (o, n) => {
263
- const h = g("FmSearch");
264
- return x(), A(j, {
265
- title: "Restaurants",
266
- loading: !1
267
- }, {
268
- default: $(() => [
269
- d("div", ie, [
270
- f(h, {
271
- "model-value": b(l),
272
- "onUpdate:modelValue": n[0] || (n[0] = (e) => E(l) ? l.value = e : null),
273
- class: "mr-8",
274
- label: "Search",
275
- placeholder: "Search Restaurants ..."
276
- }, null, 8, ["model-value"])
277
- ]),
278
- f(se, {
279
- ref_key: "controller",
280
- ref: m,
281
- "column-defs": c,
282
- "rows-defs": v,
283
- paginate: (e, t) => b(H).readRestaurantWithPagination({
284
- limit: e,
285
- skip: t - 1,
286
- sortBy: "name",
287
- search: b(l),
288
- descending: !1
289
- }),
290
- onRowClick: n[1] || (n[1] = (e) => b(u).push({
291
- name: "mf-payment-admin.restaurant-settings",
292
- params: {
293
- restaurantId: e._id
294
- }
295
- }))
296
- }, null, 8, ["paginate"])
297
- ]),
298
- _: 1
299
- });
300
- };
301
- }
302
- });
303
- export {
304
- xe as default
305
- };