@everymatrix/cashier-method-details 1.44.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CashierConfirmModal-B-t1-wAt.js +1063 -0
- package/components/CashierConfirmModal-O8Y6vOPF.cjs +4 -0
- package/components/CashierError-CnDiY61e.cjs +5 -0
- package/components/CashierError-DaumM6Zr.js +3758 -0
- package/components/CashierHeader-4ARwc1sM.cjs +1 -0
- package/components/CashierHeader-CYcLko5g.js +361 -0
- package/components/CashierIframeRedirect-BOPLcueW.cjs +1 -0
- package/components/CashierIframeRedirect-Bilctj-5.js +384 -0
- package/components/CashierMethodDetails-7O4DrJHq.cjs +18 -0
- package/components/CashierMethodDetails-CJU3RjOA.js +8096 -0
- package/components/CashierModal-CdNYc0Aj.js +220 -0
- package/components/CashierModal-DjXj2L6b.cjs +1 -0
- package/components/CashierNotifications-BVX2JvTh.cjs +1 -0
- package/components/CashierNotifications-DOgyzpyH.js +136 -0
- package/components/CashierReceiptPage-D9_BjYHP.cjs +1 -0
- package/components/CashierReceiptPage-DT7FhfRz.js +1093 -0
- package/components/CashierSpinner-BUe-mWNE.js +71 -0
- package/components/CashierSpinner-C7awkOxo.cjs +1 -0
- package/es2015/cashier-method-details.cjs +1 -0
- package/es2015/cashier-method-details.js +16 -0
- package/package.json +22 -32
- package/CHANGELOG.md +0 -36
- package/README.md +0 -30
- package/dist/cashier-method-details.js +0 -875
- package/dist/cashier-method-details.js.map +0 -1
- package/index.html +0 -36
- 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/CashierMethodDetails.svelte +0 -1539
- package/src/CashierMethodDetails.types.ts +0 -68
- package/src/i18n.js +0 -32
- package/src/index.ts +0 -4
- package/src/translations.js +0 -46
- package/stories/CashierMethodDetails.stories.js +0 -13
- package/tsconfig.json +0 -6
@@ -1,68 +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: PaymentMethodCurrencyConfig[];
|
16
|
-
Fields: 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: 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 interface DateTimeFormat {
|
66
|
-
Placeholder: string;
|
67
|
-
Format: string;
|
68
|
-
}
|
package/src/i18n.js
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
dictionary,
|
3
|
-
locale,
|
4
|
-
init,
|
5
|
-
addMessages,
|
6
|
-
_
|
7
|
-
} from 'svelte-i18n';
|
8
|
-
|
9
|
-
init({
|
10
|
-
fallbackLocale: 'en'
|
11
|
-
});
|
12
|
-
|
13
|
-
function setupI18n({ withLocale: _locale, translations }) {
|
14
|
-
locale.subscribe((data) => {
|
15
|
-
if (data == null) {
|
16
|
-
dictionary.set(translations);
|
17
|
-
locale.set(_locale);
|
18
|
-
}
|
19
|
-
}); // maybe we will need this to make sure that the i18n is set up only once
|
20
|
-
/*dictionary.set(translations);
|
21
|
-
locale.set(_locale);*/
|
22
|
-
}
|
23
|
-
|
24
|
-
function addNewMessages(lang, dict) {
|
25
|
-
addMessages(lang, dict);
|
26
|
-
}
|
27
|
-
|
28
|
-
function setLocale(_locale) {
|
29
|
-
locale.set(_locale);
|
30
|
-
}
|
31
|
-
|
32
|
-
export { _, setupI18n, addNewMessages, setLocale };
|
package/src/index.ts
DELETED
package/src/translations.js
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
export const TRANSLATIONS = {
|
2
|
-
"en": {
|
3
|
-
"loading": "Loading...",
|
4
|
-
"amountLabel": "Amount",
|
5
|
-
"redirectTitle": "You are redirected to the payment's provider page",
|
6
|
-
"redirectMessage": "Please complete your transaction on the payment's provider page.",
|
7
|
-
"backToPayment": "Close",
|
8
|
-
"retryText": "Please note that your popup blocker may prevent the payment window from appearing",
|
9
|
-
"retryButton": "RETRY",
|
10
|
-
"processingButton": "PROCESSING...",
|
11
|
-
"generalMin": "Min:",
|
12
|
-
"generalMax": "Max:",
|
13
|
-
"amountPlaceholder": "0.00",
|
14
|
-
"change": "Change",
|
15
|
-
"errorEmptyField": "Please enter data",
|
16
|
-
"minAmountError": "Amount cannot be smaller than {amount} {currency}",
|
17
|
-
"maxAmountError": "Amount cannot be bigger than {amount} {currency}",
|
18
|
-
"amountMultiplierError": "Amount should be multiple of {multiplier}",
|
19
|
-
"amountIntError": "Amount should be integer value",
|
20
|
-
"amountDecimalError": "Amount should have 2 or less digits after decimal point",
|
21
|
-
"invalidFieldError": "{field} is invalid",
|
22
|
-
"backToMethodList": "BACK TO PAYMENT METHODS",
|
23
|
-
},
|
24
|
-
"tr": {
|
25
|
-
"loading": "Yükleniyor...",
|
26
|
-
"amountLabel": "Miktar",
|
27
|
-
"redirectTitle": "Ödeme sağlayıcısı sayfasına yönlendirilirsiniz",
|
28
|
-
"redirectMessage": "Lütfen ödeme sağlayıcısı sayfasında işleminizi tamamlayın.",
|
29
|
-
"backToPayment": "KAPALI",
|
30
|
-
"retryText": "Açılır pencere engelleyicinizin ödeme penceresinin görünmesini engelleyebileceğini lütfen unutmayın",
|
31
|
-
"retryButton": "Yeniden Dene",
|
32
|
-
"processingButton": "İŞLEME...",
|
33
|
-
"generalMin": "Min:",
|
34
|
-
"generalMax": "Maks:",
|
35
|
-
"amountPlaceholder": "0",
|
36
|
-
"change": "Değiştir",
|
37
|
-
"errorEmptyField": "Lütfen verileri girin",
|
38
|
-
"minAmountError": "Tutar {amount} {currency}'den küçük olamaz",
|
39
|
-
"maxAmountError": "Tutar {amount} {currency}'den büyük olamaz",
|
40
|
-
"amountMultiplierError": "Tutar {multiplier}'nin katı olmalıdır",
|
41
|
-
"amountIntError": "Tutar tam sayı olmalıdır",
|
42
|
-
"amountDecimalError": "Tutarın ondalık noktadan sonra 2 veya daha az hanesi olmalıdır",
|
43
|
-
"invalidFieldError": "{field} geçersiz",
|
44
|
-
"backToMethodList": "ÖDEME YÖNTEMLERİNE GERİ DÖN"
|
45
|
-
}
|
46
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { html } from 'lit-element';
|
2
|
-
|
3
|
-
import CashierMethodDetails from '../src/CashierMethodDetails';
|
4
|
-
|
5
|
-
// This default export determines where your story goes in the story list
|
6
|
-
export default {
|
7
|
-
title: 'CashierMethodDetails',
|
8
|
-
};
|
9
|
-
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
11
|
-
const CashierMethodDetails = ({ aProperty }) => html`<cashier-method-details></cashier-method-details>`;
|
12
|
-
|
13
|
-
export const FirstStory = CashierMethodDetails.bind({});
|