@feedmepos/mf-payment 1.0.4 → 1.0.5-beta.2

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 (71) hide show
  1. package/dist/{PayoutAccount-BnYhJ0R2.js → PayoutAccount-DoPGyjcC.js} +5 -5
  2. package/dist/{PayoutAccount-Cjkghc6L.js → PayoutAccount-xeea4ogM.js} +3 -3
  3. package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-CP-SP877.js +110 -0
  4. package/dist/{PayoutAccountSetting-C1yeSNv8.js → PayoutAccountSetting-CUCmcJak.js} +4 -4
  5. package/dist/Restaurant-BnWy9O5t.js +305 -0
  6. package/dist/{RestaurantSetting-CWZAKz1A.js → RestaurantSetting-CVGwsyzO.js} +4 -4
  7. package/dist/{Settlement-ByPXBNx1.js → Settlement-6voGKEDr.js} +3 -3
  8. package/dist/{Settlement-BKwie9R8.js → Settlement-DPmYq05c.js} +3 -3
  9. package/dist/{SettlementTransactions-rXQceUoG.js → SettlementTransactions-Duig1e4U.js} +4 -4
  10. package/dist/{SettlementTransactions-DVRoAUYv.js → SettlementTransactions-JYas_1C-.js} +4 -4
  11. package/dist/Terminal-BH0OOd3v.js +404 -0
  12. package/dist/{TerminalSetting-qklmRz3H.js → TerminalSetting-ChCIqCIe.js} +3 -3
  13. package/dist/{TerminalTransaction-YXcGJ2ne.js → TerminalTransaction-Bjs3Es1x.js} +184 -154
  14. package/dist/TerminalTransaction-DyTN8zj5.js +272 -0
  15. package/dist/Transaction-Ce33Gg4W.js +145 -0
  16. package/dist/{Transaction-CqTKm8KP.js → Transaction-D8WYnO8-.js} +81 -48
  17. package/dist/TransactionOld-CEvlp4U4.js +99 -0
  18. package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-_MmkKHxE.js +151 -0
  19. package/dist/api/terminal-transaction/index.d.ts +2 -1
  20. package/dist/api/transaction/index.d.ts +8 -1
  21. package/dist/{app-JZYaBz1E.js → app-Bcuom8z3.js} +460 -447
  22. package/dist/app.js +1 -1
  23. package/dist/{assets-DjRoCcqv.js → assets-Cppbnt4C.js} +1 -1
  24. package/dist/components/PayoutAccountSelector.vue.d.ts +23 -0
  25. package/dist/grafana-CqkYm_ru.js +46 -0
  26. package/dist/helpers/grafana.d.ts +7 -0
  27. package/dist/{index-BerQZMQW.js → index-BIH2Edx9.js} +1 -1
  28. package/dist/{index-BWFqxSU3.js → index-BKXt3n4_.js} +1 -1
  29. package/dist/{index-Dj_LwPBy.js → index-BqZakjyK.js} +8489 -8321
  30. package/dist/{index-CKyh0nlu.js → index-BwVE-Z1U.js} +10 -10
  31. package/dist/{index-BEFlDEyV.js → index-CmhokViT.js} +1 -1
  32. package/dist/{index-Bp_58SiC.js → index-FEQKf928.js} +1 -1
  33. package/dist/{index-DFePh4ct.js → index-GoHzCxeA.js} +1 -1
  34. package/dist/{index-CWGSYCJG.js → index-Rhk_nXeB.js} +1 -1
  35. package/dist/{index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js → index.vue_vue_type_script_setup_true_lang-BE90OAD9.js} +1 -1
  36. package/dist/model/transaction.d.ts +2 -0
  37. package/dist/package.json +3 -3
  38. package/dist/{payout-account-DWXNiWdx.js → payout-account-DFHGVtXO.js} +2 -2
  39. package/dist/router/index.d.ts +1 -0
  40. package/dist/stores/payoutAccount.d.ts +4 -4
  41. package/dist/transaction-BPkT1OxL.js +118 -0
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  44. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  45. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  46. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  47. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  48. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  49. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  50. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +5 -0
  51. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  52. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  53. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  54. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  55. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  56. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  57. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
  58. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  59. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  60. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  61. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -1
  62. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  63. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  64. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  65. package/dist/views/transaction/TransactionOld.vue.d.ts +2 -0
  66. package/package.json +3 -3
  67. package/dist/Restaurant-B02jty0J.js +0 -262
  68. package/dist/Terminal-DX8v8WpM.js +0 -386
  69. package/dist/TerminalTransaction-64Bn6vh0.js +0 -261
  70. package/dist/Transaction-BOc0NW9a.js +0 -238
  71. package/dist/transaction-Bxl86wzh.js +0 -100
@@ -25,19 +25,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  gateway: "FeedMe";
26
26
  } | {
27
27
  config?: {
28
- merchantId: string;
29
28
  terminalId: string;
29
+ merchantId: string;
30
30
  privateKey: string;
31
31
  } | null | undefined;
32
32
  gateway: "Ghl";
33
33
  })[] | null | undefined;
34
- status: "Active" | "Inactive";
35
34
  _id: string;
36
- createdAt: string;
37
- updatedAt: string;
35
+ status: "Active" | "Inactive";
38
36
  referenceId: string;
39
37
  securityCode: string;
40
38
  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
- merchantId: string;
74
73
  terminalId: string;
74
+ merchantId: string;
75
75
  privateKey: string;
76
76
  } | null | undefined;
77
77
  gateway: "Ghl";
78
78
  })[] | null | undefined;
79
- status: "Active" | "Inactive";
80
79
  _id: string;
81
- createdAt: string;
82
- updatedAt: string;
80
+ status: "Active" | "Inactive";
83
81
  referenceId: string;
84
82
  securityCode: string;
85
83
  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
- merchantId: string;
28
27
  terminalId: string;
28
+ merchantId: string;
29
29
  privateKey: string;
30
30
  } | null | undefined;
31
31
  gateway: "Ghl";
32
32
  })[] | null | undefined;
33
- status: "Active" | "Inactive";
34
33
  _id: string;
35
- createdAt: string;
36
- updatedAt: string;
34
+ status: "Active" | "Inactive";
37
35
  referenceId: string;
38
36
  securityCode: string;
39
37
  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
- merchantId: string;
69
68
  terminalId: string;
69
+ merchantId: string;
70
70
  privateKey: string;
71
71
  } | null | undefined;
72
72
  gateway: "Ghl";
73
73
  })[] | null | undefined;
74
- status: "Active" | "Inactive";
75
74
  _id: string;
76
- createdAt: string;
77
- updatedAt: string;
75
+ status: "Active" | "Inactive";
78
76
  referenceId: string;
79
77
  securityCode: string;
80
78
  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
- merchantId: string;
29
28
  terminalId: string;
29
+ merchantId: string;
30
30
  privateKey: string;
31
31
  } | null | undefined;
32
32
  gateway: "Ghl";
33
33
  })[] | null | undefined;
34
- status: "Active" | "Inactive";
35
34
  _id: string;
36
- createdAt: string;
37
- updatedAt: string;
35
+ status: "Active" | "Inactive";
38
36
  referenceId: string;
39
37
  securityCode: string;
40
38
  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
- merchantId: string;
74
73
  terminalId: string;
74
+ merchantId: string;
75
75
  privateKey: string;
76
76
  } | null | undefined;
77
77
  gateway: "Ghl";
78
78
  })[] | null | undefined;
79
- status: "Active" | "Inactive";
80
79
  _id: string;
81
- createdAt: string;
82
- updatedAt: string;
80
+ status: "Active" | "Inactive";
83
81
  referenceId: string;
84
82
  securityCode: string;
85
83
  deviceType: "KIOSK" | "TERMINAL" | "POS";
84
+ createdAt: string;
85
+ updatedAt: string;
86
86
  }>;
87
87
  required: true;
88
88
  };
@@ -1,6 +1,8 @@
1
- export type emitAction = "query" | "refund";
1
+ import { F_TERMINAL_PAYMENT_GATEWAY_PROVIDER } from '@feedmepos/payment-entity';
2
+ export type emitAction = "query" | "refund" | "history";
2
3
  type __VLS_Props = {
3
4
  onAction: (event: emitAction) => void;
5
+ gateway: F_TERMINAL_PAYMENT_GATEWAY_PROVIDER;
4
6
  };
5
7
  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>;
6
8
  export default _default;
@@ -1,4 +1,4 @@
1
- export type emitAction = "query" | "refund" | "notify";
1
+ export type emitAction = "query" | "refund" | "notify" | "history";
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
- holderName?: string | null | undefined;
13
12
  accountNumber?: string | null | undefined;
13
+ holderName?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
34
+ issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "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
- holderName?: string | null | undefined;
55
54
  accountNumber?: string | null | undefined;
55
+ holderName?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
76
+ issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "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
- holderName?: string | null | undefined;
92
91
  accountNumber?: string | null | undefined;
92
+ holderName?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
113
+ issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "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
- holderName?: string | null | undefined;
134
133
  accountNumber?: string | null | undefined;
134
+ holderName?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
155
+ issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "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;
7
6
  store?: {
8
7
  id: string;
9
8
  event: "ORDERING" | "MARKETING";
10
9
  } | null | undefined;
10
+ remark?: string | null | undefined;
11
11
  _id: string;
12
12
  beneficiaryBank: {
13
- holderName: string;
14
13
  name: string;
15
- swiftCode: string;
16
14
  accountNumber: string;
15
+ holderName: string;
16
+ swiftCode: 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;
44
43
  store?: {
45
44
  id: string;
46
45
  event: "ORDERING" | "MARKETING";
47
46
  } | null | undefined;
47
+ remark?: string | null | undefined;
48
48
  _id: string;
49
49
  beneficiaryBank: {
50
- holderName: string;
51
50
  name: string;
52
- swiftCode: string;
53
51
  accountNumber: string;
52
+ holderName: string;
53
+ swiftCode: 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;
76
75
  store?: {
77
76
  id: string;
78
77
  event: "ORDERING" | "MARKETING";
79
78
  } | null | undefined;
79
+ remark?: string | null | undefined;
80
80
  _id: string;
81
81
  beneficiaryBank: {
82
- holderName: string;
83
82
  name: string;
84
- swiftCode: string;
85
83
  accountNumber: string;
84
+ holderName: string;
85
+ swiftCode: 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;
113
112
  store?: {
114
113
  id: string;
115
114
  event: "ORDERING" | "MARKETING";
116
115
  } | null | undefined;
116
+ remark?: string | null | undefined;
117
117
  _id: string;
118
118
  beneficiaryBank: {
119
- holderName: string;
120
119
  name: string;
121
- swiftCode: string;
122
120
  accountNumber: string;
121
+ holderName: string;
122
+ swiftCode: 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";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -33,8 +33,8 @@
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.6",
37
- "@feedmepos/ui-library": "^1.2.61",
36
+ "@feedmepos/payment-entity": "^0.0.13",
37
+ "@feedmepos/ui-library": "^1.3.5",
38
38
  "axios": "^0.27.2",
39
39
  "buffer": "^6.0.3",
40
40
  "change-case": "^4.1.2",
@@ -1,262 +0,0 @@
1
- import { defineComponent as B, ref as g, resolveComponent as y, openBlock as h, createBlock as A, withCtx as P, createVNode as v, createElementVNode as i, normalizeStyle as L, createElementBlock as D, Fragment as z, renderList as N, computed as C, watch as I, onMounted as E, unref as b, toDisplayString as V, normalizeClass as W, isRef as q, h as $ } from "vue";
2
- import { u as j } from "./index-BerQZMQW.js";
3
- import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
- import "@feedmepos/ui-library";
5
- import { u as Q } from "./index-Dj_LwPBy.js";
6
- import { _ as G } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-BWFqxSU3.js";
8
- import { useRouter as J } from "vue-router";
9
- const X = ["id"], R = /* @__PURE__ */ B({
10
- __name: "FmTableSelection",
11
- props: {
12
- value: {},
13
- items: {}
14
- },
15
- emits: ["update:modelValue"],
16
- setup(f, { emit: l }) {
17
- const m = l, c = f, u = g(!1);
18
- return (_, d) => {
19
- const o = y("FmButton"), n = y("FmMenuItem"), x = y("FmMenu");
20
- return h(), A(x, {
21
- "max-height": 264,
22
- shift: "",
23
- onMenuChanged: d[0] || (d[0] = (e) => u.value = e)
24
- }, {
25
- "menu-button": P(() => {
26
- var e;
27
- return [
28
- v(o, {
29
- icon: u.value ? "expand_less" : "expand_more",
30
- label: (e = _.items.find((t) => t.value === c.value)) == null ? void 0 : e.label,
31
- "icon-position": "append",
32
- size: "md",
33
- variant: "tertiary"
34
- }, null, 8, ["icon", "label"])
35
- ];
36
- }),
37
- "menu-wrapper": P(({ maxHeight: e }) => [
38
- i("div", {
39
- id: `menu-wrapper-${e}`,
40
- style: L({ maxHeight: `${e}px` }),
41
- class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
42
- }, [
43
- (h(!0), D(z, null, N(_.items, (t) => (h(), A(n, {
44
- key: t.value,
45
- label: t.label,
46
- value: t.value,
47
- "model-value": t.value === c.value,
48
- "onUpdate:modelValue": (w) => m("update:modelValue", t.value)
49
- }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
50
- ], 12, X)
51
- ]),
52
- _: 1
53
- });
54
- };
55
- }
56
- }), Y = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, Z = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, ee = { class: "flex gap-8 items-center" }, te = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, ae = {
57
- class: /* @__PURE__ */ W(["flex gap-8 items-center"])
58
- }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, ne = { class: "flex gap-8" }, le = /* @__PURE__ */ B({
59
- __name: "index",
60
- props: {
61
- columnDefs: {
62
- type: Array,
63
- required: !0
64
- },
65
- rowsDefs: {
66
- type: Function,
67
- required: !0
68
- },
69
- paginate: {
70
- type: Function,
71
- required: !0
72
- }
73
- },
74
- emits: ["row-click"],
75
- setup(f, { expose: l, emit: m }) {
76
- const c = [10, 20, 30, 50, 100].map((p) => ({
77
- label: p.toString(),
78
- value: p
79
- })), u = f, _ = m, { isLoading: d, startLoading: o, stopLoading: n } = Q(!0), x = g(), e = g(), t = g(10), w = g(0), s = g(1), F = async function(p = !1) {
80
- o(), p && (e.value = [], s.value = 1);
81
- const a = await u.paginate(t.value, s.value);
82
- e.value = a.resources, w.value = a.meta.totalPages ?? 1, n();
83
- }, M = C(() => s.value > 1), T = C(() => s.value < w.value), U = C(() => {
84
- var p;
85
- return (p = e.value) == null ? void 0 : p.map(u.rowsDefs);
86
- });
87
- return I(t, () => F(!0)), I(s, () => F()), E(() => F()), l({
88
- reset: () => F(!0)
89
- }), (p, a) => {
90
- const K = y("FmTable"), S = y("FmButton");
91
- return h(), D(z, null, [
92
- v(K, {
93
- modelValue: x.value,
94
- "onUpdate:modelValue": a[0] || (a[0] = (r) => x.value = r),
95
- loading: b(d),
96
- "page-size": t.value,
97
- "row-data": U.value,
98
- "column-defs": f.columnDefs,
99
- "hide-footer": !0,
100
- onRowClick: a[1] || (a[1] = (r) => {
101
- var k;
102
- return _("row-click", (k = e.value) == null ? void 0 : k.at(r.index));
103
- })
104
- }, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
105
- i("div", Y, [
106
- i("div", Z, [
107
- i("div", ee, [
108
- a[6] || (a[6] = i("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
109
- v(R, {
110
- items: b(c),
111
- value: t.value,
112
- "onUpdate:modelValue": a[2] || (a[2] = (r) => t.value = r)
113
- }, null, 8, ["items", "value"])
114
- ]),
115
- i("span", te, V((s.value - 1) * t.value) + " - " + V((s.value - 1) * t.value + t.value), 1)
116
- ]),
117
- i("div", ae, [
118
- v(R, {
119
- items: Array.from(Array(w.value), (r, k) => k + 1).map(
120
- (r) => ({
121
- label: r.toString(),
122
- value: r
123
- })
124
- ),
125
- value: s.value,
126
- "onUpdate:modelValue": a[3] || (a[3] = (r) => s.value = r)
127
- }, null, 8, ["items", "value"]),
128
- i("span", oe, " Page " + V(s.value) + " of " + V(w.value), 1),
129
- i("div", ne, [
130
- v(S, {
131
- disabled: !M.value,
132
- icon: "chevron_left",
133
- "icon-color": "neutral-black",
134
- variant: "tertiary",
135
- onClick: a[4] || (a[4] = () => s.value -= 1)
136
- }, null, 8, ["disabled"]),
137
- v(S, {
138
- disabled: !T.value,
139
- icon: "chevron_right",
140
- "icon-color": "neutral-black",
141
- variant: "tertiary",
142
- onClick: a[5] || (a[5] = () => s.value += 1)
143
- }, null, 8, ["disabled"])
144
- ])
145
- ])
146
- ])
147
- ], 64);
148
- };
149
- }
150
- }), se = /* @__PURE__ */ B({
151
- __name: "IsActive",
152
- props: {
153
- row: {},
154
- data: {}
155
- },
156
- setup(f) {
157
- const l = f;
158
- function m() {
159
- return l.data ? "#66BB6A" : "#EF5350";
160
- }
161
- function c() {
162
- return l.data ? "check" : "close";
163
- }
164
- return (u, _) => {
165
- const d = y("FmIcon");
166
- return h(), A(d, {
167
- name: c(),
168
- color: m(),
169
- size: "lg"
170
- }, null, 8, ["name", "color"]);
171
- };
172
- }
173
- }), re = { class: "flex items-start mb-6" }, _e = /* @__PURE__ */ B({
174
- __name: "Restaurant",
175
- setup(f) {
176
- const { searchKey: l } = j({
177
- searchKey: ""
178
- }), m = g(), c = J();
179
- let u;
180
- I(l, async () => {
181
- u && clearTimeout(u), u = setTimeout(
182
- () => {
183
- var o;
184
- return (o = m.value) == null ? void 0 : o.reset();
185
- },
186
- 700
187
- );
188
- });
189
- const _ = function(o) {
190
- const n = o.payoutAccount;
191
- return {
192
- id: o._id,
193
- name: o.profile.name,
194
- hasPayoutAccount: (n == null ? void 0 : n.enable) && n.status != "NEW"
195
- };
196
- }, d = [
197
- {
198
- header: () => "ID",
199
- accessorKey: "id",
200
- cell: ({ cell: o }) => $(G, { data: o.getValue() }),
201
- meta: {
202
- maxWidth: "72px",
203
- textAlign: "right"
204
- }
205
- },
206
- {
207
- header: () => "Name",
208
- accessorKey: "name"
209
- },
210
- {
211
- header: () => "Account?",
212
- accessorKey: "hasPayoutAccount",
213
- meta: {
214
- maxWidth: "64px"
215
- },
216
- cell: ({ cell: o, row: n }) => $(se, { row: n, data: o.getValue() })
217
- }
218
- ];
219
- return (o, n) => {
220
- const x = y("FmSearch");
221
- return h(), A(O, {
222
- title: "Restaurants",
223
- loading: !1
224
- }, {
225
- default: P(() => [
226
- i("div", re, [
227
- v(x, {
228
- "model-value": b(l),
229
- "onUpdate:modelValue": n[0] || (n[0] = (e) => q(l) ? l.value = e : null),
230
- class: "mr-8",
231
- label: "Search",
232
- placeholder: "Search Restaurants ..."
233
- }, null, 8, ["model-value"])
234
- ]),
235
- v(le, {
236
- ref_key: "controller",
237
- ref: m,
238
- "column-defs": d,
239
- "rows-defs": _,
240
- paginate: (e, t) => b(H).readRestaurantWithPagination({
241
- limit: e,
242
- skip: t - 1,
243
- sortBy: "name",
244
- search: b(l),
245
- descending: !1
246
- }),
247
- onRowClick: n[1] || (n[1] = (e) => b(c).push({
248
- name: "mf-payment-admin.restaurant-settings",
249
- params: {
250
- restaurantId: e._id
251
- }
252
- }))
253
- }, null, 8, ["paginate"])
254
- ]),
255
- _: 1
256
- });
257
- };
258
- }
259
- });
260
- export {
261
- _e as default
262
- };