@everymatrix/cashier-page 1.43.4 → 1.45.0
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/components/CashierConfirmModal-BzlPDqCa.cjs +4 -0
- package/components/CashierConfirmModal-DUs77Z87.js +1071 -0
- package/components/CashierError-B6P10jDb.js +3758 -0
- package/components/CashierError-CPdkGqU9.cjs +5 -0
- package/components/CashierHeader-WPbfJpfK.cjs +1 -0
- package/components/CashierHeader-sNXvMDOE.js +361 -0
- package/components/CashierIframeRedirect-D-wtyZlJ.js +384 -0
- package/components/CashierIframeRedirect-D51bquYH.cjs +1 -0
- package/components/CashierMethodDetails-BMH-N9d_.js +8096 -0
- package/components/CashierMethodDetails-BRk_7FCh.cjs +18 -0
- package/components/CashierMethodsList-BzKakG_f.cjs +1 -0
- package/components/CashierMethodsList-C2cZyeSz.js +652 -0
- package/components/CashierModal-34pFwTKh.cjs +1 -0
- package/components/CashierModal-CSXMOh9Q.js +225 -0
- package/components/CashierNotifications-Bb_aXGZ9.cjs +1 -0
- package/components/CashierNotifications-CHJocFp_.js +136 -0
- package/components/CashierPage-CReuHHpH.js +1959 -0
- package/components/CashierPage-DMz34mKD.cjs +1 -0
- package/components/CashierReceiptPage-Bx1bgMaF.cjs +1 -0
- package/components/CashierReceiptPage-CCmpwoHS.js +1093 -0
- package/components/CashierSessionExpirationModal-CTAwPOlx.js +1116 -0
- package/components/CashierSessionExpirationModal-DgofnoWR.cjs +2 -0
- package/components/CashierSpinner---P14FXy.cjs +1 -0
- package/components/CashierSpinner-w2LALF8s.js +71 -0
- package/components/CashierVerifications-DR2HJAoY.js +496 -0
- package/components/CashierVerifications-T_tbaHJ5.cjs +1 -0
- package/es2015/cashier-page.cjs +1 -0
- package/es2015/cashier-page.js +16 -0
- package/package.json +23 -32
- package/CHANGELOG.md +0 -22
- package/README.md +0 -30
- package/dist/cashier-page.js +0 -1346
- package/dist/cashier-page.js.map +0 -1
- package/index.html +0 -37
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -65
- package/src/CashierPage.svelte +0 -669
- package/src/CashierPage.types.ts +0 -81
- package/src/assets/maintenance.png +0 -0
- package/src/assets/session-expired-icon.png +0 -0
- package/src/i18n.js +0 -33
- package/src/index.ts +0 -4
- package/src/translations.js +0 -73
- package/stories/CashierPage.stories.js +0 -13
- package/tsconfig.json +0 -6
package/src/CashierPage.types.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export interface PaymentMethod {
|
|
2
|
-
Name: string;
|
|
3
|
-
PaymentSolutionName: string;
|
|
4
|
-
Label: string;
|
|
5
|
-
Description: string;
|
|
6
|
-
IsAmountConfigurable: boolean;
|
|
7
|
-
HideAmountField: boolean;
|
|
8
|
-
IsIntegerAmount: boolean;
|
|
9
|
-
IsPrefirmSupported: boolean;
|
|
10
|
-
IsFake: boolean;
|
|
11
|
-
RedirectLink: string;
|
|
12
|
-
AmountMultiplier: number;
|
|
13
|
-
RedirectionMode: Number;
|
|
14
|
-
DisplayCurrency: PaymentMethodCurrencyConfig;
|
|
15
|
-
Currencies: Array<PaymentMethodCurrencyConfig>;
|
|
16
|
-
Fields: Array<PaymentMethodDetails>;
|
|
17
|
-
Account: any;
|
|
18
|
-
Logos: any;
|
|
19
|
-
PredefinedAmounts: number[];
|
|
20
|
-
PaymentMethodsAmounts: any;
|
|
21
|
-
InfoLink?: string;
|
|
22
|
-
ShortDescription?: string;
|
|
23
|
-
logoUrls: any;
|
|
24
|
-
DisableContinueButton: boolean;
|
|
25
|
-
Settings: any;
|
|
26
|
-
Tags: string[];
|
|
27
|
-
CardToken: string;
|
|
28
|
-
LoaderDisplayTime: number
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface PaymentMethodCurrencyConfig {
|
|
32
|
-
Name: string;
|
|
33
|
-
Label: string;
|
|
34
|
-
Description: string;
|
|
35
|
-
Amounts: Array<number>;
|
|
36
|
-
MinAmountLimit: number;
|
|
37
|
-
MaxAmountLimit: number;
|
|
38
|
-
}
|
|
39
|
-
export interface PaymentMethodDetails {
|
|
40
|
-
Name: string;
|
|
41
|
-
Label: string;
|
|
42
|
-
Description: string;
|
|
43
|
-
Type: string;
|
|
44
|
-
DefaultValue: any;
|
|
45
|
-
Format: string;
|
|
46
|
-
Placeholder: string;
|
|
47
|
-
DisplayPlaceholder?: string;
|
|
48
|
-
IsReadonly: boolean;
|
|
49
|
-
IsRequired: boolean;
|
|
50
|
-
IsPrimaryField: boolean;
|
|
51
|
-
DemandUserInput: boolean;
|
|
52
|
-
AutoTrim: boolean;
|
|
53
|
-
MaxValue: string;
|
|
54
|
-
MinValue: string;
|
|
55
|
-
AutoUppercase: boolean;
|
|
56
|
-
CorrelationFieldName: string;
|
|
57
|
-
CorrelationFieldValue: string[];
|
|
58
|
-
NotEqualToFieldName: string;
|
|
59
|
-
Values: any[];
|
|
60
|
-
Selected: Object;
|
|
61
|
-
UseCopyButton: boolean;
|
|
62
|
-
InputMask: string[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export enum TxnType {
|
|
66
|
-
Deposit='Deposit',
|
|
67
|
-
Withdraw='Withdraw'
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export enum TxnChannel {
|
|
71
|
-
Desktop='Desktop',
|
|
72
|
-
Mobile='Mobile',
|
|
73
|
-
NativeApp='NativeApp'
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export enum ResponseCode {
|
|
77
|
-
PlayerSessionIsNotValid ='PlayerSessionIsNotValid',
|
|
78
|
-
Success = 'Success',
|
|
79
|
-
JwtTokenError = 'JwtTokenError',
|
|
80
|
-
Maintenance = 'Maintenance'
|
|
81
|
-
}
|
|
Binary file
|
|
Binary file
|
package/src/i18n.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dictionary,
|
|
3
|
-
locale,
|
|
4
|
-
init,
|
|
5
|
-
addMessages,
|
|
6
|
-
_
|
|
7
|
-
} from 'svelte-i18n';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
init({
|
|
11
|
-
fallbackLocale: 'en'
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
function setupI18n({ withLocale: _locale, translations }) {
|
|
15
|
-
locale.subscribe((data) => {
|
|
16
|
-
if (data == null) {
|
|
17
|
-
dictionary.set(translations);
|
|
18
|
-
locale.set(_locale);
|
|
19
|
-
}
|
|
20
|
-
}); // maybe we will need this to make sure that the i18n is set up only once
|
|
21
|
-
/*dictionary.set(translations);
|
|
22
|
-
locale.set(_locale);*/
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function addNewMessages(lang, dict) {
|
|
26
|
-
addMessages(lang, dict);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function setLocale(_locale) {
|
|
30
|
-
locale.set(_locale);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { _, setupI18n, addNewMessages, setLocale };
|
package/src/index.ts
DELETED
package/src/translations.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const TRANSLATIONS = {
|
|
2
|
-
"en": {
|
|
3
|
-
"loading": "Loading...",
|
|
4
|
-
"closeModal": "CLOSE",
|
|
5
|
-
"continueSession": "CONTINUE",
|
|
6
|
-
"sessionExpiredTitle": "Session Expired!",
|
|
7
|
-
"sessionExpiredText": "Your session has ended. We apologize for any inconvenience. Please click the button to continue.",
|
|
8
|
-
"maintenanceText": "Payment Methods are currently closed for scheduled maintenance.",
|
|
9
|
-
"maintenanceTitle": "We’ll Be Back Soon",
|
|
10
|
-
"deposit": {
|
|
11
|
-
"makeTxnButton": "DEPOSIT",
|
|
12
|
-
"confirmText": "You're going to deposit to your account",
|
|
13
|
-
"confirmTextWithAmount": "You're going to deposit {amount} {currency} to your account",
|
|
14
|
-
"confirmButton": "Ok"
|
|
15
|
-
},
|
|
16
|
-
"withdraw": {
|
|
17
|
-
"makeTxnButton": "WITHDRAW",
|
|
18
|
-
"confirmText": "You're going to withdraw from your account",
|
|
19
|
-
"confirmTextWithAmount": "You're going to withdraw {amount} {currency} from your account",
|
|
20
|
-
"confirmButton": "Ok"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"hr": {
|
|
24
|
-
"loading": "Učitavanje",
|
|
25
|
-
"closeModal": "CLOSE",
|
|
26
|
-
"continueSession": "CONTINUE",
|
|
27
|
-
"sessionExpiredTitle": "Session Expired!",
|
|
28
|
-
"sessionExpiredText": "Your session has ended. We apologize for any inconvenience. Please click the button to continue.",
|
|
29
|
-
"maintenanceText": "We are down for a scheduled maintenance and expect to be back online in a few minutes",
|
|
30
|
-
"maintenanceTitle": "We’ll Be Back Soon",
|
|
31
|
-
"header": {
|
|
32
|
-
"deposit": "Uplata",
|
|
33
|
-
"withdraw": "Povlačenje"
|
|
34
|
-
},
|
|
35
|
-
"deposit": {
|
|
36
|
-
"makeTxnButton": "DEPOSIT",
|
|
37
|
-
"confirmText": "You're going to deposit to your account",
|
|
38
|
-
"confirmTextWithAmount": "You're going to deposit {amount} {currency} to your account",
|
|
39
|
-
"confirmButton": "Ok"
|
|
40
|
-
},
|
|
41
|
-
"withdraw": {
|
|
42
|
-
"makeTxnButton": "WITHDRAW",
|
|
43
|
-
"confirmText": "You're going to withdraw from your account",
|
|
44
|
-
"confirmTextWithAmount": "You're going to withdraw {amount} {currency} from your account",
|
|
45
|
-
"confirmButton": "Ok"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"tr": {
|
|
49
|
-
"loading": "Yükleniyor...",
|
|
50
|
-
"closeModal": "KAPAT",
|
|
51
|
-
"continueSession": "Devam et",
|
|
52
|
-
"sessionExpiredTitle": "Oturumun Süresi Doldu!",
|
|
53
|
-
"sessionExpiredText": 'Oturumunuz sona erdi. Herhangi bir rahatsızlıktan dolayı özür dileriz. Devam etmek için lütfen butona tıklayın.',
|
|
54
|
-
"maintenanceText": "Ödeme Yöntemleri planlanmış bakım nedeniyle şu anda kapalı.",
|
|
55
|
-
"maintenanceTitle": "Yakında Geri Döneceğiz",
|
|
56
|
-
"header": {
|
|
57
|
-
"deposit": "Yatır",
|
|
58
|
-
"withdraw": "Çek"
|
|
59
|
-
},
|
|
60
|
-
"deposit": {
|
|
61
|
-
"makeTxnButton": "YATIR",
|
|
62
|
-
"confirmText": "Hesabınıza yatırıyorsunuz",
|
|
63
|
-
"confirmTextWithAmount": "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
|
64
|
-
"confirmButton": "Tamam"
|
|
65
|
-
},
|
|
66
|
-
"withdraw": {
|
|
67
|
-
"makeTxnButton": "ÇEK",
|
|
68
|
-
"confirmText": "Hesabınızdan çekiyorsunuz",
|
|
69
|
-
"confirmTextWithAmount": "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
|
70
|
-
"confirmButton": "Tamam"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import CashierPage from '../src/CashierPage';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'CashierPage',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const CashierPage = ({ aProperty }) => html`<cashier-page></cashier-page>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = CashierPage.bind({});
|