@feedmepos/mf-payment 1.5.34 → 1.5.36-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.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js → Actions.vue_vue_type_script_setup_true_lang-CSmRCpz2.js} +14 -14
- package/dist/{Chargeback-BkVFinyh.js → Chargeback-F4uNGOcy.js} +1 -1
- package/dist/{OnboardForm-B04cZaFV.js → OnboardForm-CmJck1RQ.js} +1 -1
- package/dist/{OnboardForm--wUvq0Bz.js → OnboardForm-DWKPrjY-.js} +1 -1
- package/dist/{PayoutAccount-jlCtwsaD.js → PayoutAccount-Cn7cy7kV.js} +1 -1
- package/dist/{PayoutAccount-E5ujCJqw.js → PayoutAccount-yNSUSaHi.js} +1 -1
- package/dist/Settlement-BAeQCoUt.js +610 -0
- package/dist/{Settlement-DJ6ETp2U.js → Settlement-CRlYjp36.js} +1 -1
- package/dist/{SettlementTransactions-cYUYH2RJ.js → SettlementTransactions-DEoxfkFL.js} +22 -18
- package/dist/{SettlementTransactions-DF2ybUos.js → SettlementTransactions-DN9uCpiR.js} +3 -3
- package/dist/Transaction-CvUypCQq.js +490 -0
- package/dist/{Transaction-A-sOT2PE.js → Transaction-HTemq8TC.js} +149 -156
- package/dist/{TransactionOld-DttRuS3v.js → TransactionOld-BEfflWka.js} +3 -3
- package/dist/api/settlement/index.d.ts +10 -4
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-qtpxMy1_.js → app-D3WWgJ8i.js} +141 -132
- package/dist/app.js +1 -1
- package/dist/{assets-gWQvONT9.js → assets-t2kJFjI9.js} +72 -71
- package/dist/components/SettlementSelector.vue.d.ts +12 -0
- package/dist/components/SourceSelector.vue.d.ts +2 -0
- package/dist/composable/transaction/index.d.ts +4 -0
- package/dist/index-CPf8YYLa.js +9 -0
- package/dist/{index-BcmesiC4.js → index-_EfmUlsc.js} +21 -19
- package/dist/{index-BRhAeH7J.js → index-jfRfVr4R.js} +14 -8
- package/dist/model/transaction.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-Ca3Ayv7S.js → payout-account-BviNeOr7.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-SoOQIN8y.js +0 -490
- package/dist/Transaction-CbZRbUDH.js +0 -482
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id: string;
|
|
3
|
+
by?: "PAYOUT_ACCOUNT" | "RESTAURANT" | string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:id": (...args: any[]) => void;
|
|
7
|
+
"update:by": (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:id"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
"onUpdate:by"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -2,6 +2,8 @@ type __VLS_Props = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
by?: "PAYOUT_ACCOUNT" | "RESTAURANT" | "DEVICE" | string;
|
|
4
4
|
excludePayoutAccount?: boolean;
|
|
5
|
+
excludeOrderingPayoutAccount?: boolean;
|
|
6
|
+
excludeMarketingPayoutAccount?: boolean;
|
|
5
7
|
excludeRestaurant?: boolean;
|
|
6
8
|
excludeDevice?: boolean;
|
|
7
9
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const u = () => ({
|
|
2
|
+
getBillLink: (e) => {
|
|
3
|
+
var n;
|
|
4
|
+
return !((n = e.payId) != null && n.startsWith("bill_")) || !e.restaurantId || e.restaurantId == "" || !e.businessId || e.businessId == "" ? null : `/restaurant-operation/transaction/${encodeURIComponent(e.payId)}?restaurantId=${encodeURIComponent(e.restaurantId)}&businessId=${encodeURIComponent(e.businessId)}`;
|
|
5
|
+
}
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
u
|
|
9
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as r,
|
|
1
|
+
import { g as r, f as i, b as m, h as l, l as c, i as d, j as y } from "./index-T2CVm7-_.js";
|
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
|
3
3
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
|
4
|
-
function* p(t,
|
|
4
|
+
function* p(t, a) {
|
|
5
5
|
const e = t[Symbol.iterator](), s = e.next();
|
|
6
6
|
if (!s.done) {
|
|
7
7
|
yield s.value;
|
|
8
|
-
for (const
|
|
9
|
-
yield
|
|
8
|
+
for (const n of e)
|
|
9
|
+
yield a, yield n;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
const S = {
|
|
@@ -23,23 +23,23 @@ const S = {
|
|
|
23
23
|
);
|
|
24
24
|
},
|
|
25
25
|
async downloadBankInstructionFile(t) {
|
|
26
|
-
const
|
|
26
|
+
const a = "7161151059";
|
|
27
27
|
if (t.length === 0)
|
|
28
28
|
throw Error("no settlement for export");
|
|
29
|
-
const e = t.map((
|
|
29
|
+
const e = t.map((n) => ({
|
|
30
30
|
productCode: "P2A",
|
|
31
31
|
settlementDate: o().format("DDMMYYYY"),
|
|
32
32
|
myRefNo: "",
|
|
33
|
-
companyAccNo:
|
|
34
|
-
amount: f(
|
|
33
|
+
companyAccNo: a,
|
|
34
|
+
amount: f(n.totalPayout).toUnit().toString(),
|
|
35
35
|
currency: t[0].totalPayout.currency,
|
|
36
36
|
proxyType: "",
|
|
37
37
|
transferType: "DFLT",
|
|
38
|
-
beneficiaryAccountNo:
|
|
39
|
-
beneficiarySwiftCode:
|
|
38
|
+
beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
|
|
39
|
+
beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
|
|
40
40
|
beneficiaryCountryCode: "",
|
|
41
41
|
duitNowID: "",
|
|
42
|
-
recipientReference:
|
|
42
|
+
recipientReference: n._id,
|
|
43
43
|
pf_payment: "",
|
|
44
44
|
notifyMethod: "",
|
|
45
45
|
emailAddress: ""
|
|
@@ -47,7 +47,7 @@ const S = {
|
|
|
47
47
|
Array.from(
|
|
48
48
|
p(
|
|
49
49
|
e.map(
|
|
50
|
-
(
|
|
50
|
+
(n) => Object.values(n).map((u) => u).join("|")
|
|
51
51
|
),
|
|
52
52
|
`
|
|
53
53
|
`
|
|
@@ -59,11 +59,11 @@ const S = {
|
|
|
59
59
|
);
|
|
60
60
|
return y(s, "duitnow_bulk_transfer.txt");
|
|
61
61
|
},
|
|
62
|
-
async downloadSummaryReport(t,
|
|
62
|
+
async downloadSummaryReport(t, a) {
|
|
63
63
|
return c(
|
|
64
64
|
t.map((e) => d(e)),
|
|
65
65
|
{
|
|
66
|
-
filename: `summary-report-${
|
|
66
|
+
filename: `summary-report-${a.start}-${a.end}.xlsx`,
|
|
67
67
|
exclude: [
|
|
68
68
|
"beneficiaryBank.swiftCode",
|
|
69
69
|
"beneficiaryBank.holderName",
|
|
@@ -105,12 +105,14 @@ const S = {
|
|
|
105
105
|
`settlement-report-${t.start}-${t.end}.xlsx`
|
|
106
106
|
);
|
|
107
107
|
},
|
|
108
|
-
async
|
|
108
|
+
async downloadBusinessSettlementReport(t) {
|
|
109
109
|
return l(
|
|
110
110
|
await i().get("/settlements/report", {
|
|
111
111
|
params: {
|
|
112
112
|
start: o(t.start).startOf("day").toISOString(),
|
|
113
|
-
end: o(t.end).endOf("day").toISOString()
|
|
113
|
+
end: o(t.end).endOf("day").toISOString(),
|
|
114
|
+
event: t.event,
|
|
115
|
+
id: t.id
|
|
114
116
|
}
|
|
115
117
|
}),
|
|
116
118
|
`settlement-report-${t.start}-${t.end}.xlsx`
|
|
@@ -121,19 +123,19 @@ const S = {
|
|
|
121
123
|
await m().get(`/settlements/${t}`)
|
|
122
124
|
);
|
|
123
125
|
},
|
|
124
|
-
async
|
|
126
|
+
async readBusinessSettlementById(t) {
|
|
125
127
|
return r(
|
|
126
128
|
await i().get(`/settlements/${t}`)
|
|
127
129
|
);
|
|
128
130
|
},
|
|
129
|
-
async
|
|
131
|
+
async readBusinessSettlements(t) {
|
|
130
132
|
return r(
|
|
131
133
|
await i().get("/settlements", {
|
|
132
134
|
params: t
|
|
133
135
|
})
|
|
134
136
|
);
|
|
135
137
|
},
|
|
136
|
-
async
|
|
138
|
+
async readBusinessRMSSettlements(t) {
|
|
137
139
|
return r(
|
|
138
140
|
await i().get("/settlements/rms", {
|
|
139
141
|
params: t
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as n, b as e, d as o, h as m, l,
|
|
1
|
+
import { g as n, b as e, d as o, h as m, l, f as i, r as f } from "./index-T2CVm7-_.js";
|
|
2
2
|
import { h as a } from "./moment-h96o7c8I.js";
|
|
3
3
|
const w = {
|
|
4
4
|
async readBySettlementId(t) {
|
|
@@ -45,17 +45,23 @@ const w = {
|
|
|
45
45
|
},
|
|
46
46
|
async bindPayId(t) {
|
|
47
47
|
return n(
|
|
48
|
-
await e().patch(
|
|
48
|
+
await e().patch(
|
|
49
|
+
`/transactions/${t.transactionId}/payId`,
|
|
50
|
+
{ payId: t.payId }
|
|
51
|
+
)
|
|
49
52
|
);
|
|
50
53
|
},
|
|
51
54
|
async setGatewayId(t) {
|
|
52
55
|
return n(
|
|
53
|
-
await e().patch(
|
|
56
|
+
await e().patch(
|
|
57
|
+
`/transactions/${t.transactionId}/gatewayTransactionId`,
|
|
58
|
+
{ gatewayTransactionId: t.gatewayTransactionId }
|
|
59
|
+
)
|
|
54
60
|
);
|
|
55
61
|
},
|
|
56
62
|
async readRestaurantTransactions(t) {
|
|
57
63
|
return n(
|
|
58
|
-
await
|
|
64
|
+
await f().get("/transactions", {
|
|
59
65
|
params: {
|
|
60
66
|
v2: !0,
|
|
61
67
|
start: a(t.start).startOf("day").toISOString(),
|
|
@@ -66,7 +72,7 @@ const w = {
|
|
|
66
72
|
},
|
|
67
73
|
async readTransactionsV2(t) {
|
|
68
74
|
return o(
|
|
69
|
-
await
|
|
75
|
+
await i().get("/transactions", {
|
|
70
76
|
params: {
|
|
71
77
|
status: t.status,
|
|
72
78
|
id: t.id,
|
|
@@ -80,15 +86,15 @@ const w = {
|
|
|
80
86
|
})
|
|
81
87
|
);
|
|
82
88
|
},
|
|
83
|
-
async
|
|
89
|
+
async readBusinessTransactionsBySettlementId(t) {
|
|
84
90
|
return n(
|
|
85
91
|
await i().get(
|
|
86
|
-
`/transactions
|
|
92
|
+
`/settlements/transactions/${t}`
|
|
87
93
|
)
|
|
88
94
|
);
|
|
89
95
|
},
|
|
90
96
|
async downloadPortalTransactionReport(t, c, d = !1) {
|
|
91
|
-
const u = a(t.startDate), y = a(t.endDate).endOf("day"), s = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
|
|
97
|
+
const u = a(t.startDate), y = a(t.endDate).endOf("day"), s = ["method", "fdoAmount", "amount", "fee", "payout", "flags", "businessId"];
|
|
92
98
|
return d && s.push(
|
|
93
99
|
"gatewayTransactionId",
|
|
94
100
|
"gatewayRefundId",
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as st, c as it, p as E, B as at } from "./index-T2CVm7-_.js";
|
|
2
2
|
import { useCoreStore as ut } from "@feedmepos/mf-common";
|
|
3
3
|
import { d as H } from "./index-BGIv1us6.js";
|
|
4
|
-
import { _ as ot } from "./app-
|
|
4
|
+
import { _ as ot } from "./app-D3WWgJ8i.js";
|
|
5
5
|
var Q = { exports: {} };
|
|
6
6
|
(function(i, a) {
|
|
7
7
|
(function(t, m) {
|