@everymatrix/cashier-receipt-page 1.44.0 → 1.45.2
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/CashierError-BXS0DXei.cjs +5 -0
- package/components/CashierError-CJeowd0q.js +4332 -0
- package/components/CashierReceiptPage-DqMJJKGB.js +1460 -0
- package/components/CashierReceiptPage-J69aU_m5.cjs +1 -0
- package/es2015/cashier-receipt-page.cjs +1 -0
- package/es2015/cashier-receipt-page.js +16 -0
- package/package.json +17 -32
- package/CHANGELOG.md +0 -15
- package/README.md +0 -30
- package/dist/cashier-receipt-page.js +0 -620
- package/dist/cashier-receipt-page.js.map +0 -1
- package/index.html +0 -46
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -61
- package/src/CashierReceiptPage.svelte +0 -441
- package/src/assets/maintenance.png +0 -0
- package/src/assets/txn-failed.png +0 -0
- package/src/assets/txn-pending.png +0 -0
- package/src/assets/txn-success.png +0 -0
- package/src/i18n.js +0 -32
- package/src/index.ts +0 -4
- package/src/statuses.ts +0 -36
- package/src/translations.js +0 -204
- package/stories/CashierReceiptPage.stories.js +0 -13
- package/tsconfig.json +0 -6
package/src/statuses.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const getStatusImage = (imageUrl, status) => `${imageUrl + statusImages[status]}`;
|
|
2
|
-
export const getTitleKey = (status, type) => `${typeKey[type]}.${statusTitle[status]}.title`;
|
|
3
|
-
export const getSubTitleKey = (status, type) => `${typeKey[type]}.${statusTitle[status]}.subTitle`;
|
|
4
|
-
export const getTextKey = (status, type) => `${typeKey[type]}.${statusTitle[status]}.text`;
|
|
5
|
-
|
|
6
|
-
export const statusImages = {
|
|
7
|
-
Success: '/txn-success.png',
|
|
8
|
-
Voided: '/txn-success.png',
|
|
9
|
-
Rejected: '/txn-failed.png',
|
|
10
|
-
Failed: '/txn-failed.png',
|
|
11
|
-
Canceled: '/txn-failed.png',
|
|
12
|
-
PendingNotification: '/txn-pending.png',
|
|
13
|
-
PendingConfirmation: '/txn-pending.png',
|
|
14
|
-
PendingApprovalStage1: '/txn-pending.png',
|
|
15
|
-
PendingApprovalStage2: '/txn-pending.png',
|
|
16
|
-
PendingApprovalStage3: '/txn-pending.png',
|
|
17
|
-
PendingOfflineNotification: '/txn-pending.png'
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const typeKey = {
|
|
21
|
-
Deposit: 'deposit',
|
|
22
|
-
Withdraw: 'withdrawal'
|
|
23
|
-
};
|
|
24
|
-
export const statusTitle = {
|
|
25
|
-
Success: 'success',
|
|
26
|
-
Voided: 'success',
|
|
27
|
-
Rejected: 'reject',
|
|
28
|
-
Failed: 'fail',
|
|
29
|
-
Canceled: 'cancel',
|
|
30
|
-
PendingNotification: 'pending',
|
|
31
|
-
PendingConfirmation: 'pending',
|
|
32
|
-
PendingApprovalStage1: 'pending',
|
|
33
|
-
PendingApprovalStage3: 'pending',
|
|
34
|
-
PendingApprovalStage2: 'pending',
|
|
35
|
-
PendingOfflineNotification: 'pending'
|
|
36
|
-
};
|
package/src/translations.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
export const TRANSLATIONS = {
|
|
2
|
-
en: {
|
|
3
|
-
"deposit": {
|
|
4
|
-
"success": {
|
|
5
|
-
"title": "{amount} {currency}",
|
|
6
|
-
"subTitle": "Deposited in your account",
|
|
7
|
-
"text": "Your deposit is successful"
|
|
8
|
-
},
|
|
9
|
-
"pending": {
|
|
10
|
-
"title": "{amount} {currency}",
|
|
11
|
-
"subTitle": "Transaction is in progress",
|
|
12
|
-
"text": "Thank you. Your deposit is being processed."
|
|
13
|
-
},
|
|
14
|
-
"reject": {
|
|
15
|
-
"title": "Deposit Rejected",
|
|
16
|
-
"subTitle": " ",
|
|
17
|
-
"text": " "
|
|
18
|
-
},
|
|
19
|
-
"fail": {
|
|
20
|
-
"title": "Error",
|
|
21
|
-
"subTitle": " ",
|
|
22
|
-
"text": "{errorText}"
|
|
23
|
-
},
|
|
24
|
-
"cancel": {
|
|
25
|
-
"title": "You have cancelled the transaction",
|
|
26
|
-
"subTitle": " ",
|
|
27
|
-
"text": " "
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"withdrawal" : {
|
|
31
|
-
"success": {
|
|
32
|
-
"title": "{amount} {currency}",
|
|
33
|
-
"subTitle": "Withdrawn from your account",
|
|
34
|
-
"text": "Your withdrawal is successful"
|
|
35
|
-
},
|
|
36
|
-
"pending": {
|
|
37
|
-
"title": "{amount} {currency}",
|
|
38
|
-
"subTitle": "Withdrawn from your account",
|
|
39
|
-
"text": "Thank you. Your withdrawal is being processed."
|
|
40
|
-
},
|
|
41
|
-
"reject": {
|
|
42
|
-
"title": "Withdrawal Rejected",
|
|
43
|
-
"subTitle": " ",
|
|
44
|
-
"text": " "
|
|
45
|
-
},
|
|
46
|
-
"fail": {
|
|
47
|
-
"title": "Error",
|
|
48
|
-
"subTitle": " ",
|
|
49
|
-
"text": "{errorText}"
|
|
50
|
-
},
|
|
51
|
-
"cancel": {
|
|
52
|
-
"title": "You have cancelled the transaction",
|
|
53
|
-
"subTitle": " ",
|
|
54
|
-
"text": " "
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"reference": "Reference ID: {code}",
|
|
58
|
-
"close": "Close",
|
|
59
|
-
"receipt": {
|
|
60
|
-
"maintenance": {
|
|
61
|
-
"title": "We’ll Be Back Soon",
|
|
62
|
-
"text": "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"tr": {
|
|
67
|
-
"deposit": {
|
|
68
|
-
"success": {
|
|
69
|
-
"title": "{amount} {currency}",
|
|
70
|
-
"subTitle": "Hesabınıza yatırıldı",
|
|
71
|
-
"text": "Para yatırma işleminiz başarılı"
|
|
72
|
-
},
|
|
73
|
-
"pending": {
|
|
74
|
-
"title": "{amount} {currency}",
|
|
75
|
-
"subTitle": "İşlem devam ediyor",
|
|
76
|
-
"text": "Teşekkür ederim. Para yatırma işleminiz yapılıyor."
|
|
77
|
-
},
|
|
78
|
-
"reject": {
|
|
79
|
-
"title": "Para Yatırma Reddedildi",
|
|
80
|
-
"subTitle": " ",
|
|
81
|
-
"text": " "
|
|
82
|
-
},
|
|
83
|
-
"fail": {
|
|
84
|
-
"title": "Hata",
|
|
85
|
-
"subTitle": " ",
|
|
86
|
-
"text": "{errorText}"
|
|
87
|
-
},
|
|
88
|
-
"cancel": {
|
|
89
|
-
"title": "İşlemi iptal ettiniz",
|
|
90
|
-
"subTitle": " ",
|
|
91
|
-
"text": " "
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"withdrawal" : {
|
|
95
|
-
"success": {
|
|
96
|
-
"title": "{amount} {currency}",
|
|
97
|
-
"subTitle": "Hesabınızdan çekildi",
|
|
98
|
-
"text": "Para çekme işleminiz başarılı"
|
|
99
|
-
},
|
|
100
|
-
"pending": {
|
|
101
|
-
"title": "{amount} {currency}",
|
|
102
|
-
"subTitle": "Hesabınızdan çekildi",
|
|
103
|
-
"text": "Teşekkür ederim. Para çekme işleminiz işleniyor."
|
|
104
|
-
},
|
|
105
|
-
"reject": {
|
|
106
|
-
"title": "Para Çekme Reddedildi",
|
|
107
|
-
"subTitle": " ",
|
|
108
|
-
"text": " "
|
|
109
|
-
},
|
|
110
|
-
"fail": {
|
|
111
|
-
"title": "Hata",
|
|
112
|
-
"subTitle": " ",
|
|
113
|
-
"text": "{errorText}"
|
|
114
|
-
},
|
|
115
|
-
"cancel": {
|
|
116
|
-
"title": "İşlemi iptal ettiniz",
|
|
117
|
-
"subTitle": " ",
|
|
118
|
-
"text": " "
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"reference": "Referans Kimliği: {code}",
|
|
122
|
-
"close": "Kapalı",
|
|
123
|
-
"receipt": {
|
|
124
|
-
"maintenance": {
|
|
125
|
-
"title": "Yakında Geri Döneceğiz",
|
|
126
|
-
"text": "Planlı bir bakım nedeniyle kapalıyız ve birkaç dakika içinde tekrar çevrimiçi olmayı bekliyoruz"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"pt-br": {
|
|
131
|
-
"deposit": {
|
|
132
|
-
"success": {
|
|
133
|
-
"title": "{amount} {currency}",
|
|
134
|
-
"subTitle": "Depositado em sua conta",
|
|
135
|
-
"text": "Seu depósito foi bem-sucedido"
|
|
136
|
-
},
|
|
137
|
-
"pending": {
|
|
138
|
-
"title": "{amount} {currency}",
|
|
139
|
-
"subTitle": "Transação em andamento",
|
|
140
|
-
"text": "Obrigado. Seu depósito está sendo processado."
|
|
141
|
-
},
|
|
142
|
-
"reject": {
|
|
143
|
-
"title": "Depósito Rejeitado",
|
|
144
|
-
"subTitle": "",
|
|
145
|
-
"text": "{errorText}"
|
|
146
|
-
},
|
|
147
|
-
"fail": {
|
|
148
|
-
"title": "Erro",
|
|
149
|
-
"subTitle": "",
|
|
150
|
-
"text": "{errorText}"
|
|
151
|
-
},
|
|
152
|
-
"cancel": {
|
|
153
|
-
"title": "Você cancelou a transação",
|
|
154
|
-
"subTitle": "",
|
|
155
|
-
"text": "{errorText}"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"reference": "Referência ID: {code}",
|
|
159
|
-
"close": "VOLTAR AO PROVEDOR DE PAGAMENTO",
|
|
160
|
-
"receipt": {
|
|
161
|
-
"maintenance": {
|
|
162
|
-
"title": "We’ll Be Back Soon",
|
|
163
|
-
"text": "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"es-mx": {
|
|
168
|
-
"deposit": {
|
|
169
|
-
"success": {
|
|
170
|
-
"title": "{amount} {currency}",
|
|
171
|
-
"subTitle": "Depositado en tu cuenta",
|
|
172
|
-
"text": "Tu depósito fue exitoso"
|
|
173
|
-
},
|
|
174
|
-
"pending": {
|
|
175
|
-
"title": "{amount} {currency}",
|
|
176
|
-
"subTitle": "Transacción en proceso",
|
|
177
|
-
"text": "Gracias. Tu depósito está siendo procesado."
|
|
178
|
-
},
|
|
179
|
-
"reject": {
|
|
180
|
-
"title": "Depósito Rechazado",
|
|
181
|
-
"subTitle": " ",
|
|
182
|
-
"text": "{errorText}"
|
|
183
|
-
},
|
|
184
|
-
"fail": {
|
|
185
|
-
"title": "Error",
|
|
186
|
-
"subTitle": " ",
|
|
187
|
-
"text": "{errorText}"
|
|
188
|
-
},
|
|
189
|
-
"cancel": {
|
|
190
|
-
"title": "Has cancelado la transacción",
|
|
191
|
-
"subTitle": " ",
|
|
192
|
-
"text": "{errorText}"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"reference": "Referencia ID: {code}",
|
|
196
|
-
"close": "REGRESAR A PROVEEDOR DE PAGO",
|
|
197
|
-
"receipt": {
|
|
198
|
-
"maintenance": {
|
|
199
|
-
"title": "We’ll Be Back Soon",
|
|
200
|
-
"text": "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import CashierReceiptPage from '../src/CashierReceiptPage';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'CashierReceiptPage',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const CashierReceiptPage = ({ aProperty }) => html`<cashier-receipt-page></cashier-receipt-page>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = CashierReceiptPage.bind({});
|