@jetthai/cuora 1.1.179 → 1.1.181
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.181](https://github.com/jetthai/cuora-module/compare/v1.1.180...v1.1.181) (2023-09-20)
|
|
6
|
+
|
|
7
|
+
### [1.1.180](https://github.com/jetthai/cuora-module/compare/v1.1.179...v1.1.180) (2023-09-19)
|
|
8
|
+
|
|
5
9
|
### [1.1.179](https://github.com/jetthai/cuora-module/compare/v1.1.178...v1.1.179) (2023-09-19)
|
|
6
10
|
|
|
7
11
|
### [1.1.178](https://github.com/jetthai/cuora-module/compare/v1.1.177...v1.1.178) (2023-09-19)
|
package/package.json
CHANGED
|
@@ -298,8 +298,8 @@ export default function (request) {
|
|
|
298
298
|
return selectedCrypto && selectedNetwork && amount && minimum <= +amount && +amount <= maximum
|
|
299
299
|
},
|
|
300
300
|
isSubmittable: (context, event) => {
|
|
301
|
-
const { selectedCrypto, selectedNetwork, amount } = context
|
|
302
|
-
return selectedCrypto && selectedNetwork && amount
|
|
301
|
+
const { selectedCrypto, selectedNetwork, amount, depositTime, receipt } = context
|
|
302
|
+
return selectedCrypto && selectedNetwork && amount && depositTime && receipt
|
|
303
303
|
},
|
|
304
304
|
isProcessing: (context, event) => {
|
|
305
305
|
return context.processing
|
|
@@ -321,11 +321,11 @@ export default function (request) {
|
|
|
321
321
|
)
|
|
322
322
|
},
|
|
323
323
|
submitDeposit: async (context, event) => {
|
|
324
|
-
const { selectedCrypto, selectedNetwork,
|
|
324
|
+
const { selectedCrypto, selectedNetwork, depositTime, receipt, amount } = context
|
|
325
325
|
return await request.send(
|
|
326
326
|
payment.submitDepositTransactionCrypto({
|
|
327
327
|
method: selectedCrypto.method,
|
|
328
|
-
amount:
|
|
328
|
+
amount: amount,
|
|
329
329
|
cryptoCurrency: selectedCrypto.channel,
|
|
330
330
|
cryptoNetwork: selectedNetwork.value,
|
|
331
331
|
depositTime,
|
|
@@ -269,11 +269,11 @@ export default function (request) {
|
|
|
269
269
|
)
|
|
270
270
|
},
|
|
271
271
|
submitDeposit: async (context, event) => {
|
|
272
|
-
const { selectedCrypto, selectedNetwork,
|
|
272
|
+
const { selectedCrypto, selectedNetwork, amount } = context
|
|
273
273
|
return await request.send(
|
|
274
274
|
payment.submitDepositTransactionCrypto({
|
|
275
275
|
method: selectedCrypto.method,
|
|
276
|
-
amount:
|
|
276
|
+
amount: amount,
|
|
277
277
|
cryptoCurrency: selectedCrypto.channel,
|
|
278
278
|
cryptoNetwork: selectedNetwork.value,
|
|
279
279
|
})
|
|
@@ -248,7 +248,7 @@ export default function (request, context) {
|
|
|
248
248
|
fetchCalculation: async (context, event) => {
|
|
249
249
|
const { selectedCrypto, selectedAmount, promotion } = context
|
|
250
250
|
return await request.send(
|
|
251
|
-
payment.
|
|
251
|
+
payment.getCryptoDepositExpectedResult({
|
|
252
252
|
method: selectedCrypto.method,
|
|
253
253
|
amount: selectedAmount,
|
|
254
254
|
cryptoCurrency: selectedCrypto.channel,
|
|
@@ -257,11 +257,11 @@ export default function (request, context) {
|
|
|
257
257
|
)
|
|
258
258
|
},
|
|
259
259
|
submitDeposit: async (context, event) => {
|
|
260
|
-
const { selectedCrypto, selectedNetwork,
|
|
260
|
+
const { selectedCrypto, selectedNetwork, selectedAmount, sourceAddress, promotion } = context
|
|
261
261
|
return await request.send(
|
|
262
262
|
payment.submitDepositTransactionCrypto({
|
|
263
263
|
method: selectedCrypto.method,
|
|
264
|
-
amount:
|
|
264
|
+
amount: selectedAmount,
|
|
265
265
|
cryptoCurrency: selectedCrypto.channel,
|
|
266
266
|
cryptoNetwork: selectedNetwork.value,
|
|
267
267
|
sourceAddress: sourceAddress,
|