@tap-payments/os-micro-frontend-shared 0.1.324-test.3 → 0.1.325
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/components/AnimatedSpinnerIcon/style.d.ts +1 -0
- package/build/components/Chip/style.d.ts +1 -0
- package/build/components/CountBadge/style.d.ts +1 -0
- package/build/components/Dialog/style.d.ts +1 -0
- package/build/components/FlippingCard/style.d.ts +1 -0
- package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
- package/build/components/JSONViewer/style.d.ts +1 -0
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
- package/build/components/SearchButton/styles.d.ts +1 -0
- package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -0
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
- package/build/components/TableReports/style.d.ts +1 -0
- package/build/components/VirtualTables/components/style.d.ts +1 -0
- package/build/constants/apps.d.ts +1 -6
- package/build/constants/apps.js +7 -6
- package/build/types/refund.d.ts +440 -0
- package/build/types/segment.d.ts +1 -7
- package/build/types/segment.js +0 -6
- package/build/utils/merchantSource.js +5 -5
- package/build/utils/segment.d.ts +0 -60
- package/build/utils/segment.js +0 -51
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { GetSourceAnimationFunction } from './type';
|
|
3
4
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
5
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { TableMode } from '../../../../types/index.js';
|
|
3
4
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
5
|
tableMode?: TableMode | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
3
4
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
3
4
|
isTextShown?: boolean | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -997,9 +997,4 @@ export declare const APP_ICONS: {
|
|
|
997
997
|
toolbarIconUrl: string;
|
|
998
998
|
}[];
|
|
999
999
|
export declare const excludedApps: string[];
|
|
1000
|
-
export declare const MF_APPS_MAPPER:
|
|
1001
|
-
TERMINALS: "TERMINALS";
|
|
1002
|
-
BILLING: "BILLING";
|
|
1003
|
-
ACCOUNT: "ACCOUNT";
|
|
1004
|
-
BUSINESS: "BUSINESS";
|
|
1005
|
-
}>;
|
|
1000
|
+
export declare const MF_APPS_MAPPER: ReadonlySet<string>;
|
package/build/constants/apps.js
CHANGED
|
@@ -481,9 +481,10 @@ export const APP_ICONS = [
|
|
|
481
481
|
},
|
|
482
482
|
];
|
|
483
483
|
export const excludedApps = ['login'];
|
|
484
|
-
export const MF_APPS_MAPPER =
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
484
|
+
export const MF_APPS_MAPPER = new Set([
|
|
485
|
+
APP_CODES.terminals.code,
|
|
486
|
+
APP_CODES.billing.code,
|
|
487
|
+
APP_CODES.account.code,
|
|
488
|
+
APP_CODES.business.code,
|
|
489
|
+
APP_CODES.payouts.code,
|
|
490
|
+
]);
|
package/build/types/refund.d.ts
CHANGED
|
@@ -1,5 +1,445 @@
|
|
|
1
|
+
import { AuthenticationStatus } from './index.js';
|
|
1
2
|
export type RefundOptions = Array<{
|
|
2
3
|
name: string;
|
|
3
4
|
value?: number;
|
|
4
5
|
currency?: string;
|
|
5
6
|
}>;
|
|
7
|
+
export interface Refund {
|
|
8
|
+
id: string;
|
|
9
|
+
object: string;
|
|
10
|
+
live_mode: boolean;
|
|
11
|
+
customer_initiated: boolean;
|
|
12
|
+
api_version: string;
|
|
13
|
+
method: string;
|
|
14
|
+
created: number;
|
|
15
|
+
date: number;
|
|
16
|
+
status: 'REFUNDED' | 'PENDING' | 'IN_PROGRESS' | 'CANCELLED' | 'FAILED' | 'DECLINED' | 'RESTRICTED' | 'TIMEDOUT' | 'UNKNOWN' | 'ACCEPTED';
|
|
17
|
+
amount: number;
|
|
18
|
+
currency: string;
|
|
19
|
+
threeDSecure: boolean;
|
|
20
|
+
card_threeDSecure: boolean;
|
|
21
|
+
save_card: boolean;
|
|
22
|
+
merchant_id: string;
|
|
23
|
+
product: string;
|
|
24
|
+
statement_descriptor: string;
|
|
25
|
+
description: string;
|
|
26
|
+
metadata: Record<string, string>;
|
|
27
|
+
transaction: {
|
|
28
|
+
authorization_id: string;
|
|
29
|
+
timezone: string;
|
|
30
|
+
date: {
|
|
31
|
+
created: number;
|
|
32
|
+
completed: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
reference: {
|
|
36
|
+
id: string;
|
|
37
|
+
track: string;
|
|
38
|
+
payment: string;
|
|
39
|
+
gateway: string;
|
|
40
|
+
acquirer: string;
|
|
41
|
+
transaction: string;
|
|
42
|
+
order: string;
|
|
43
|
+
invoice?: string;
|
|
44
|
+
trace_id?: string;
|
|
45
|
+
};
|
|
46
|
+
response: {
|
|
47
|
+
code: string;
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
receipt: {
|
|
51
|
+
id: string;
|
|
52
|
+
email: boolean;
|
|
53
|
+
sms: boolean;
|
|
54
|
+
};
|
|
55
|
+
acquirer: {
|
|
56
|
+
id: string;
|
|
57
|
+
response: {
|
|
58
|
+
code: string;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
name: string;
|
|
62
|
+
mid: string;
|
|
63
|
+
};
|
|
64
|
+
gateway: {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
response: {
|
|
68
|
+
code: string;
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
redirect: {
|
|
73
|
+
status: string;
|
|
74
|
+
url: string;
|
|
75
|
+
};
|
|
76
|
+
post: {
|
|
77
|
+
status: string;
|
|
78
|
+
};
|
|
79
|
+
payouts: {
|
|
80
|
+
amount: number;
|
|
81
|
+
currency: string;
|
|
82
|
+
count: number;
|
|
83
|
+
payout: Array<{
|
|
84
|
+
date: number;
|
|
85
|
+
by: string;
|
|
86
|
+
reference_id: string;
|
|
87
|
+
id: string;
|
|
88
|
+
amount: number;
|
|
89
|
+
created: number;
|
|
90
|
+
}>;
|
|
91
|
+
};
|
|
92
|
+
net: {
|
|
93
|
+
transaction_currency: string;
|
|
94
|
+
transaction_amount: number;
|
|
95
|
+
currency: string;
|
|
96
|
+
currency_rate: number;
|
|
97
|
+
fee: number;
|
|
98
|
+
amount: number;
|
|
99
|
+
};
|
|
100
|
+
fees: {
|
|
101
|
+
amount: number;
|
|
102
|
+
currency: string;
|
|
103
|
+
count: number;
|
|
104
|
+
fee: Array<{
|
|
105
|
+
id: string;
|
|
106
|
+
type: string;
|
|
107
|
+
by: string;
|
|
108
|
+
on: string;
|
|
109
|
+
amount: number;
|
|
110
|
+
currency: string;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
auto_reversed: boolean;
|
|
114
|
+
security: {
|
|
115
|
+
threeDSecure: {
|
|
116
|
+
id: string;
|
|
117
|
+
status: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
destinations: {
|
|
121
|
+
reverse_destinations: boolean;
|
|
122
|
+
amount: number;
|
|
123
|
+
currency: string;
|
|
124
|
+
count: number;
|
|
125
|
+
destination: Array<{
|
|
126
|
+
id: string;
|
|
127
|
+
amount: number;
|
|
128
|
+
currency: string;
|
|
129
|
+
reverse_transfer: {
|
|
130
|
+
id: string;
|
|
131
|
+
amount: number;
|
|
132
|
+
currency: string;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
};
|
|
136
|
+
refunds: {
|
|
137
|
+
refund: Array<{
|
|
138
|
+
id: string;
|
|
139
|
+
amount: number;
|
|
140
|
+
currency: string;
|
|
141
|
+
created: number;
|
|
142
|
+
date: number;
|
|
143
|
+
status: 'REFUNDED' | 'PENDING';
|
|
144
|
+
}>;
|
|
145
|
+
};
|
|
146
|
+
topup: {
|
|
147
|
+
id: string;
|
|
148
|
+
amount: number;
|
|
149
|
+
currency: string;
|
|
150
|
+
};
|
|
151
|
+
authenticate: {
|
|
152
|
+
id: string;
|
|
153
|
+
object: string;
|
|
154
|
+
type: string;
|
|
155
|
+
value: string;
|
|
156
|
+
by: string;
|
|
157
|
+
status: string;
|
|
158
|
+
created: string;
|
|
159
|
+
authenticated: string;
|
|
160
|
+
count: number;
|
|
161
|
+
retry_attempt: number;
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
summary?: {
|
|
165
|
+
charge_amount: number;
|
|
166
|
+
refund_amount: number;
|
|
167
|
+
refunded_count: number;
|
|
168
|
+
remaing_amount: number;
|
|
169
|
+
remaing_percentage: number;
|
|
170
|
+
};
|
|
171
|
+
balance: {
|
|
172
|
+
status?: 'PAID_OUT' | 'SETTLED' | 'PENDING';
|
|
173
|
+
payout: {
|
|
174
|
+
id: string;
|
|
175
|
+
scheduled: number;
|
|
176
|
+
activities: [
|
|
177
|
+
{
|
|
178
|
+
object: string;
|
|
179
|
+
status: 'PAID_OUT' | 'PENDING';
|
|
180
|
+
date: number;
|
|
181
|
+
}
|
|
182
|
+
];
|
|
183
|
+
};
|
|
184
|
+
settlement: {
|
|
185
|
+
id: string;
|
|
186
|
+
scheduled: number;
|
|
187
|
+
activities: [
|
|
188
|
+
{
|
|
189
|
+
object: string;
|
|
190
|
+
status: 'SETTLED' | 'PENDING';
|
|
191
|
+
date: number;
|
|
192
|
+
}
|
|
193
|
+
];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
charge: {
|
|
197
|
+
id: string;
|
|
198
|
+
refunds: {
|
|
199
|
+
refund: Array<{
|
|
200
|
+
id: string;
|
|
201
|
+
amount: number;
|
|
202
|
+
currency: string;
|
|
203
|
+
created: number;
|
|
204
|
+
date: number;
|
|
205
|
+
status: 'REFUNDED' | 'PENDING';
|
|
206
|
+
}>;
|
|
207
|
+
};
|
|
208
|
+
authentication: {
|
|
209
|
+
acsEci: string;
|
|
210
|
+
status: AuthenticationStatus;
|
|
211
|
+
data: {
|
|
212
|
+
asc_eci: string;
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
metadata: Record<string, string>;
|
|
217
|
+
receipt: {
|
|
218
|
+
id: string;
|
|
219
|
+
};
|
|
220
|
+
merchant: {
|
|
221
|
+
id: string;
|
|
222
|
+
legacy_id: string;
|
|
223
|
+
country: string;
|
|
224
|
+
name: string;
|
|
225
|
+
};
|
|
226
|
+
reference: {
|
|
227
|
+
id: string;
|
|
228
|
+
track: string;
|
|
229
|
+
payment: string;
|
|
230
|
+
gateway: string;
|
|
231
|
+
acquirer: string;
|
|
232
|
+
transaction: string;
|
|
233
|
+
order: string;
|
|
234
|
+
invoice?: string;
|
|
235
|
+
trace_id?: string;
|
|
236
|
+
};
|
|
237
|
+
flags: {
|
|
238
|
+
flag: Array<{
|
|
239
|
+
id: string;
|
|
240
|
+
status: 'OPEN' | 'CLEARED';
|
|
241
|
+
amount: number;
|
|
242
|
+
created: number;
|
|
243
|
+
note: string;
|
|
244
|
+
ishold: boolean;
|
|
245
|
+
}>;
|
|
246
|
+
};
|
|
247
|
+
amount: number;
|
|
248
|
+
currency: string;
|
|
249
|
+
customer_initiated: boolean;
|
|
250
|
+
source: {
|
|
251
|
+
object: string;
|
|
252
|
+
type: string;
|
|
253
|
+
payment_type: string;
|
|
254
|
+
payment_method: 'MASTERCARD' | 'VISA' | 'APPLE_PAY';
|
|
255
|
+
channel: string;
|
|
256
|
+
id: string;
|
|
257
|
+
region: 'Local' | 'Global' | 'Regional';
|
|
258
|
+
};
|
|
259
|
+
issuer?: {
|
|
260
|
+
id: string;
|
|
261
|
+
name: string;
|
|
262
|
+
country: string;
|
|
263
|
+
region: 'G' | 'L' | 'R';
|
|
264
|
+
issuer_region: {
|
|
265
|
+
code: string;
|
|
266
|
+
name: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
device?: {
|
|
270
|
+
type: 'DESKTOP' | 'PHONE' | 'TABLET';
|
|
271
|
+
id: string;
|
|
272
|
+
timezone: string;
|
|
273
|
+
location: {
|
|
274
|
+
ip: string;
|
|
275
|
+
country: string;
|
|
276
|
+
region: {
|
|
277
|
+
code: 'G' | 'L' | 'R';
|
|
278
|
+
name: 'Global' | 'Local' | 'Regional';
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
exchange?: {
|
|
283
|
+
capture?: {
|
|
284
|
+
amount: number;
|
|
285
|
+
currency: string;
|
|
286
|
+
};
|
|
287
|
+
settlement?: {
|
|
288
|
+
amount: number;
|
|
289
|
+
currency: string;
|
|
290
|
+
rate: number;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
balance: {
|
|
294
|
+
status?: 'PAID_OUT' | 'SETTLED' | 'PENDING';
|
|
295
|
+
payout: {
|
|
296
|
+
id: string;
|
|
297
|
+
scheduled: number;
|
|
298
|
+
activities: [
|
|
299
|
+
{
|
|
300
|
+
object: string;
|
|
301
|
+
status: 'PAID_OUT' | 'PENDING';
|
|
302
|
+
date: number;
|
|
303
|
+
}
|
|
304
|
+
];
|
|
305
|
+
};
|
|
306
|
+
settlement: {
|
|
307
|
+
id: string;
|
|
308
|
+
scheduled: number;
|
|
309
|
+
activities: [
|
|
310
|
+
{
|
|
311
|
+
object: string;
|
|
312
|
+
status: 'SETTLED' | 'PENDING';
|
|
313
|
+
date: number;
|
|
314
|
+
}
|
|
315
|
+
];
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
order: {
|
|
319
|
+
id: string;
|
|
320
|
+
currency: string;
|
|
321
|
+
amount: number;
|
|
322
|
+
items_count?: number;
|
|
323
|
+
items?: object[];
|
|
324
|
+
};
|
|
325
|
+
customer: {
|
|
326
|
+
country: {
|
|
327
|
+
code: string;
|
|
328
|
+
name: string;
|
|
329
|
+
};
|
|
330
|
+
id: string;
|
|
331
|
+
first_name: string;
|
|
332
|
+
last_name: string;
|
|
333
|
+
email: string;
|
|
334
|
+
phone: {
|
|
335
|
+
country_code: string;
|
|
336
|
+
number: string;
|
|
337
|
+
};
|
|
338
|
+
region: {
|
|
339
|
+
name: 'Local' | 'Global' | 'Regional';
|
|
340
|
+
code: 'R' | 'G' | 'L';
|
|
341
|
+
};
|
|
342
|
+
timezone: string;
|
|
343
|
+
};
|
|
344
|
+
payment_agreement?: {
|
|
345
|
+
id: string;
|
|
346
|
+
type: 'UNSCHEDULED' | 'SCHEDULED_INSTALLMENT' | 'SCHEDULED_SUBSCRIPTION' | 'SCHEDULED_BILLING';
|
|
347
|
+
contract?: {
|
|
348
|
+
id: string;
|
|
349
|
+
type: 'ORDER' | 'SAVED_CARD' | 'SUBSCRIPTION' | 'INSTALLMENT';
|
|
350
|
+
period: {
|
|
351
|
+
start_date: number;
|
|
352
|
+
end_date: number;
|
|
353
|
+
auto_renewal: boolean;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
variable_amount?: {
|
|
357
|
+
id: string;
|
|
358
|
+
maximum_amount: number;
|
|
359
|
+
};
|
|
360
|
+
scheduled_payments?: {
|
|
361
|
+
id: string;
|
|
362
|
+
count: number;
|
|
363
|
+
frequency: {
|
|
364
|
+
period: 'MINUTES' | 'HOURS' | 'DAYS' | 'MONTHS';
|
|
365
|
+
count: number;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
total_payments_count?: number;
|
|
369
|
+
};
|
|
370
|
+
payment: {
|
|
371
|
+
type: string;
|
|
372
|
+
account: string;
|
|
373
|
+
method: string;
|
|
374
|
+
scheme: string;
|
|
375
|
+
authentication?: '3DS' | 'Non-3DS';
|
|
376
|
+
card: string;
|
|
377
|
+
wallet: string;
|
|
378
|
+
};
|
|
379
|
+
card: {
|
|
380
|
+
object: string;
|
|
381
|
+
first_six: string;
|
|
382
|
+
first_eight: string;
|
|
383
|
+
scheme: string;
|
|
384
|
+
brand: string;
|
|
385
|
+
last_four: string;
|
|
386
|
+
name: string;
|
|
387
|
+
expiry: {
|
|
388
|
+
month: string;
|
|
389
|
+
year: string;
|
|
390
|
+
};
|
|
391
|
+
registered: boolean;
|
|
392
|
+
};
|
|
393
|
+
transaction: {
|
|
394
|
+
authorization_id: string;
|
|
395
|
+
timezone: string;
|
|
396
|
+
created: string | number;
|
|
397
|
+
expiry: {
|
|
398
|
+
period: number;
|
|
399
|
+
type: string;
|
|
400
|
+
};
|
|
401
|
+
asynchronous: boolean;
|
|
402
|
+
amount: number;
|
|
403
|
+
currency: string;
|
|
404
|
+
order: {
|
|
405
|
+
reference: string;
|
|
406
|
+
store_url: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
merchant: {
|
|
411
|
+
id: string;
|
|
412
|
+
legacy_id: string;
|
|
413
|
+
retailer: {
|
|
414
|
+
id: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
reason: string;
|
|
418
|
+
device?: {
|
|
419
|
+
type: 'DESKTOP' | 'PHONE' | 'TABLET';
|
|
420
|
+
id: string;
|
|
421
|
+
timezone: string;
|
|
422
|
+
location: {
|
|
423
|
+
ip: string;
|
|
424
|
+
country: string;
|
|
425
|
+
region: {
|
|
426
|
+
code: 'G' | 'L' | 'R';
|
|
427
|
+
name: 'Global' | 'Local' | 'Regional';
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
card: {
|
|
432
|
+
object: string;
|
|
433
|
+
first_six: string;
|
|
434
|
+
first_eight: string;
|
|
435
|
+
scheme: string;
|
|
436
|
+
brand: string;
|
|
437
|
+
last_four: string;
|
|
438
|
+
};
|
|
439
|
+
request_body?: Record<string, unknown>;
|
|
440
|
+
user?: {
|
|
441
|
+
id: string;
|
|
442
|
+
name: string;
|
|
443
|
+
channel: string;
|
|
444
|
+
};
|
|
445
|
+
}
|
package/build/types/segment.d.ts
CHANGED
|
@@ -8,14 +8,8 @@ export declare enum SEGMENT_CODE {
|
|
|
8
8
|
BUSINESS = "BUSINESS",
|
|
9
9
|
PLATFORM = "PLATFORM",
|
|
10
10
|
DEVELOPMENT = "DEVELOPMENT",
|
|
11
|
-
PSP = "PSP",
|
|
12
11
|
PAYMENT_TECHNOLOGY = "PAYMENT_TECHNOLOGY",
|
|
13
12
|
PAYMENT_FACILITATOR = "PAYMENT_FACILITATOR",
|
|
14
13
|
PAYMENT_ACQUIRER = "PAYMENT_ACQUIRER",
|
|
15
|
-
PAYMENT_GATEWAY = "PAYMENT_GATEWAY"
|
|
16
|
-
BILLING_PLATFORM = "BILLING_PLATFORM",
|
|
17
|
-
COMMERCE_PLATFORM = "COMMERCE_PLATFORM",
|
|
18
|
-
DEVELOPMENT_HOUSE = "DEVELOPMENT_HOUSE",
|
|
19
|
-
PAYMENT_GATEWAY_PROVIDER = "PAYMENT_GATEWAY_PROVIDER",
|
|
20
|
-
RETAIL_PLATFORM = "RETAIL_PLATFORM"
|
|
14
|
+
PAYMENT_GATEWAY = "PAYMENT_GATEWAY"
|
|
21
15
|
}
|
package/build/types/segment.js
CHANGED
|
@@ -3,14 +3,8 @@ export var SEGMENT_CODE;
|
|
|
3
3
|
SEGMENT_CODE["BUSINESS"] = "BUSINESS";
|
|
4
4
|
SEGMENT_CODE["PLATFORM"] = "PLATFORM";
|
|
5
5
|
SEGMENT_CODE["DEVELOPMENT"] = "DEVELOPMENT";
|
|
6
|
-
SEGMENT_CODE["PSP"] = "PSP";
|
|
7
6
|
SEGMENT_CODE["PAYMENT_TECHNOLOGY"] = "PAYMENT_TECHNOLOGY";
|
|
8
7
|
SEGMENT_CODE["PAYMENT_FACILITATOR"] = "PAYMENT_FACILITATOR";
|
|
9
8
|
SEGMENT_CODE["PAYMENT_ACQUIRER"] = "PAYMENT_ACQUIRER";
|
|
10
9
|
SEGMENT_CODE["PAYMENT_GATEWAY"] = "PAYMENT_GATEWAY";
|
|
11
|
-
SEGMENT_CODE["BILLING_PLATFORM"] = "BILLING_PLATFORM";
|
|
12
|
-
SEGMENT_CODE["COMMERCE_PLATFORM"] = "COMMERCE_PLATFORM";
|
|
13
|
-
SEGMENT_CODE["DEVELOPMENT_HOUSE"] = "DEVELOPMENT_HOUSE";
|
|
14
|
-
SEGMENT_CODE["PAYMENT_GATEWAY_PROVIDER"] = "PAYMENT_GATEWAY_PROVIDER";
|
|
15
|
-
SEGMENT_CODE["RETAIL_PLATFORM"] = "RETAIL_PLATFORM";
|
|
16
10
|
})(SEGMENT_CODE || (SEGMENT_CODE = {}));
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import capitalize from 'lodash/capitalize';
|
|
2
|
-
import {
|
|
2
|
+
import { lightUrl, PAYMENT_TYPES_ICONS } from '../constants/index.js';
|
|
3
3
|
import { getNameText } from './language';
|
|
4
4
|
export function transformPaymentMethodsData(data) {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Payment Methods',
|
|
7
7
|
type: 'payment_methods',
|
|
8
8
|
options: data === null || data === void 0 ? void 0 : data.map((category) => {
|
|
9
|
-
var _a
|
|
9
|
+
var _a;
|
|
10
10
|
return {
|
|
11
11
|
name: capitalize(getNameText(category === null || category === void 0 ? void 0 : category.name)),
|
|
12
12
|
type: category === null || category === void 0 ? void 0 : category.code,
|
|
13
|
-
icon:
|
|
14
|
-
options: (
|
|
13
|
+
icon: PAYMENT_TYPES_ICONS[category.code],
|
|
14
|
+
options: (_a = category.payment_methods) === null || _a === void 0 ? void 0 : _a.map((method) => ({
|
|
15
15
|
name: getNameText(method.name),
|
|
16
16
|
type: method.code,
|
|
17
|
-
icon:
|
|
17
|
+
icon: `${lightUrl}/payment-method/${method.code}.svg`,
|
|
18
18
|
})),
|
|
19
19
|
};
|
|
20
20
|
}),
|
package/build/utils/segment.d.ts
CHANGED
|
@@ -1,62 +1,2 @@
|
|
|
1
1
|
import { Segment, SegmentData } from '../types/index.js';
|
|
2
2
|
export declare const getSegmentData: (segments: Segment[], activeSegmentId: string, activeSegments: Segment[]) => SegmentData;
|
|
3
|
-
export declare const getBusinessSegmentConfig: (merchantsIds: string[]) => {
|
|
4
|
-
business?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
business: {
|
|
7
|
-
merchant: string[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const getNonBusinessSegmentConfig: (segmentCode: string, segmentId: string) => {
|
|
11
|
-
payment_provider: {
|
|
12
|
-
technology: {
|
|
13
|
-
orchestrator: string[];
|
|
14
|
-
gateway?: undefined;
|
|
15
|
-
};
|
|
16
|
-
institution?: undefined;
|
|
17
|
-
};
|
|
18
|
-
platform?: undefined;
|
|
19
|
-
development_agency?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
payment_provider: {
|
|
22
|
-
technology: {
|
|
23
|
-
gateway: string[];
|
|
24
|
-
orchestrator?: undefined;
|
|
25
|
-
};
|
|
26
|
-
institution?: undefined;
|
|
27
|
-
};
|
|
28
|
-
platform?: undefined;
|
|
29
|
-
development_agency?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
payment_provider: {
|
|
32
|
-
institution: {
|
|
33
|
-
facilitator: string[];
|
|
34
|
-
acquirer?: undefined;
|
|
35
|
-
};
|
|
36
|
-
technology?: undefined;
|
|
37
|
-
};
|
|
38
|
-
platform?: undefined;
|
|
39
|
-
development_agency?: undefined;
|
|
40
|
-
} | {
|
|
41
|
-
payment_provider: {
|
|
42
|
-
institution: {
|
|
43
|
-
acquirer: string[];
|
|
44
|
-
facilitator?: undefined;
|
|
45
|
-
};
|
|
46
|
-
technology?: undefined;
|
|
47
|
-
};
|
|
48
|
-
platform?: undefined;
|
|
49
|
-
development_agency?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
platform: string[];
|
|
52
|
-
payment_provider?: undefined;
|
|
53
|
-
development_agency?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
development_agency: string[];
|
|
56
|
-
payment_provider?: undefined;
|
|
57
|
-
platform?: undefined;
|
|
58
|
-
} | {
|
|
59
|
-
payment_provider?: undefined;
|
|
60
|
-
platform?: undefined;
|
|
61
|
-
development_agency?: undefined;
|
|
62
|
-
};
|
package/build/utils/segment.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SEGMENT_CODE } from '../types/index.js';
|
|
2
1
|
import { getDefaultEntityCountry } from './entity';
|
|
3
2
|
export const getSegmentData = (segments, activeSegmentId, activeSegments) => {
|
|
4
3
|
var _a, _b, _c;
|
|
@@ -12,53 +11,3 @@ export const getSegmentData = (segments, activeSegmentId, activeSegments) => {
|
|
|
12
11
|
return Object.assign(Object.assign({}, newSegment), { defaultCountry,
|
|
13
12
|
defaultEntity });
|
|
14
13
|
};
|
|
15
|
-
export const getBusinessSegmentConfig = (merchantsIds) => {
|
|
16
|
-
if (!merchantsIds || !(merchantsIds === null || merchantsIds === void 0 ? void 0 : merchantsIds.length))
|
|
17
|
-
return {};
|
|
18
|
-
return { business: { merchant: merchantsIds } };
|
|
19
|
-
};
|
|
20
|
-
export const getNonBusinessSegmentConfig = (segmentCode, segmentId) => {
|
|
21
|
-
if (segmentCode === SEGMENT_CODE.PAYMENT_TECHNOLOGY) {
|
|
22
|
-
return {
|
|
23
|
-
payment_provider: {
|
|
24
|
-
technology: {
|
|
25
|
-
orchestrator: [segmentId],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
if (segmentCode === SEGMENT_CODE.PAYMENT_GATEWAY || segmentCode === SEGMENT_CODE.PAYMENT_GATEWAY_PROVIDER) {
|
|
31
|
-
return {
|
|
32
|
-
payment_provider: {
|
|
33
|
-
technology: {
|
|
34
|
-
gateway: [segmentId],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
if (segmentCode === SEGMENT_CODE.PAYMENT_FACILITATOR) {
|
|
40
|
-
return {
|
|
41
|
-
payment_provider: {
|
|
42
|
-
institution: {
|
|
43
|
-
facilitator: [segmentId],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
if (segmentCode === SEGMENT_CODE.PAYMENT_ACQUIRER) {
|
|
49
|
-
return {
|
|
50
|
-
payment_provider: {
|
|
51
|
-
institution: {
|
|
52
|
-
acquirer: [segmentId],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
if (segmentCode === SEGMENT_CODE.PLATFORM) {
|
|
58
|
-
return { platform: [segmentId] };
|
|
59
|
-
}
|
|
60
|
-
if (segmentCode === SEGMENT_CODE.DEVELOPMENT) {
|
|
61
|
-
return { development_agency: [segmentId] };
|
|
62
|
-
}
|
|
63
|
-
return {};
|
|
64
|
-
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.325",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"registry": "https://registry.npmjs.org/"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|