@tap-payments/os-micro-frontend-shared 0.1.301 → 0.1.302
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/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/reports.d.ts +12 -0
- package/build/constants/reports.js +52 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.js +1 -0
- package/build/types/reports.d.ts +6 -0
- package/build/types/reports.js +7 -0
- package/package.json +1 -1
package/build/constants/index.js
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { APP_CODES } from './apps';
|
|
2
|
+
import { acceptanceAppIcon, billingAppIcon, payoutsAppIcon, walletAppIcon } from './assets';
|
|
3
|
+
export const filtersTypeMap = {
|
|
4
|
+
[APP_CODES.acceptance.services.charges.code]: ['CHARGE'],
|
|
5
|
+
[APP_CODES.acceptance.services.authorization.code]: ['AUTHORIZE'],
|
|
6
|
+
[APP_CODES.acceptance.services.refunds.code]: ['REFUND'],
|
|
7
|
+
[APP_CODES.acceptance.services.chargeback.code]: ['CHARGEBACKS'],
|
|
8
|
+
[APP_CODES.acceptance.services.destinations.code]: ['DESTINATIONS'],
|
|
9
|
+
[APP_CODES.acceptance.code]: ['CHARGE', 'AUTHORIZE', 'REFUND', 'CHARGEBACKS', 'DESTINATIONS'],
|
|
10
|
+
[APP_CODES.payouts.code]: ['PAYOUT'],
|
|
11
|
+
[APP_CODES.wallet.code]: ['STATEMENT', 'STATEMENT_SUMMARY'],
|
|
12
|
+
[APP_CODES.billing.code]: ['INVOICE'],
|
|
13
|
+
[APP_CODES.payouts.services.payouts.code]: ['PAYOUT'],
|
|
14
|
+
[APP_CODES.wallet.services.merchants.functions.statement.code]: ['STATEMENT'],
|
|
15
|
+
[APP_CODES.wallet.services.merchants.functions.summary.code]: ['STATEMENT_SUMMARY'],
|
|
16
|
+
[APP_CODES.billing.services.invoices.code]: ['INVOICE'],
|
|
17
|
+
};
|
|
18
|
+
export const REPORTS_APPS = [
|
|
19
|
+
{
|
|
20
|
+
code: APP_CODES.billing.code,
|
|
21
|
+
name: 'Billing',
|
|
22
|
+
icon: billingAppIcon,
|
|
23
|
+
services: [{ name: 'Invoices', code: 'INVOICE' }],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
code: APP_CODES.acceptance.code,
|
|
27
|
+
name: 'Acceptance',
|
|
28
|
+
icon: acceptanceAppIcon,
|
|
29
|
+
services: [
|
|
30
|
+
{ name: 'Authorisations', code: 'AUTHORIZE' },
|
|
31
|
+
{ name: 'Charges', code: 'CHARGE' },
|
|
32
|
+
{ name: 'Refunds', code: 'REFUND' },
|
|
33
|
+
{ name: 'Chargebacks', code: 'CHARGEBACKS' },
|
|
34
|
+
{ name: 'Destinations', code: 'DESTINATIONS' },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
code: APP_CODES.wallet.code,
|
|
39
|
+
name: 'Wallet',
|
|
40
|
+
icon: walletAppIcon,
|
|
41
|
+
services: [
|
|
42
|
+
{ name: 'Aggregated Statement', code: 'STATEMENT_SUMMARY' },
|
|
43
|
+
{ name: 'Detailed Statement', code: 'STATEMENT' },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: APP_CODES.payouts.code,
|
|
48
|
+
name: 'Payouts',
|
|
49
|
+
icon: payoutsAppIcon,
|
|
50
|
+
services: [{ name: 'Payouts', code: 'PAYOUT' }],
|
|
51
|
+
},
|
|
52
|
+
];
|
package/build/types/index.d.ts
CHANGED
package/build/types/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var ReportStatusEnum;
|
|
2
|
+
(function (ReportStatusEnum) {
|
|
3
|
+
ReportStatusEnum["COMPLETED"] = "COMPLETED";
|
|
4
|
+
ReportStatusEnum["FAILED"] = "FAILED";
|
|
5
|
+
ReportStatusEnum["PROCESSING"] = "PROCESSING";
|
|
6
|
+
ReportStatusEnum["INITIATED"] = "INITIATED";
|
|
7
|
+
})(ReportStatusEnum || (ReportStatusEnum = {}));
|
package/package.json
CHANGED