nexushub-commands 2.7.3 → 2.7.5
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.
|
@@ -51,7 +51,7 @@ let DepositCommand = DepositCommand_1 = class DepositCommand extends evogram_1.C
|
|
|
51
51
|
}
|
|
52
52
|
let order;
|
|
53
53
|
if (method === 'card') {
|
|
54
|
-
for (const _method of ['
|
|
54
|
+
for (const _method of ['card', 'qrcode']) {
|
|
55
55
|
method = _method;
|
|
56
56
|
order = yield config.API.post(`orders`, {
|
|
57
57
|
mirrorId: context.mammoth.mirror.mirror.id,
|
|
@@ -353,7 +353,7 @@ tslib_1.__decorate([
|
|
|
353
353
|
error: error === null || error === void 0 ? void 0 : error.message,
|
|
354
354
|
}, {
|
|
355
355
|
reply_markup: {
|
|
356
|
-
inline_keyboard: args.suggestedDepositAmounts === false ? undefined : keyboard,
|
|
356
|
+
inline_keyboard: args.suggestedDepositAmounts === false || args.method !== 'card' || suggestedDepositAmountsSetting === 'null' ? undefined : keyboard,
|
|
357
357
|
},
|
|
358
358
|
})).text;
|
|
359
359
|
}),
|
package/package.json
CHANGED
|
@@ -250,7 +250,7 @@ export class DepositCommand extends Command {
|
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
reply_markup: {
|
|
253
|
-
inline_keyboard: args.suggestedDepositAmounts === false || args.method !== 'card' ? undefined : keyboard,
|
|
253
|
+
inline_keyboard: args.suggestedDepositAmounts === false || args.method !== 'card' || suggestedDepositAmountsSetting === 'null' ? undefined : keyboard,
|
|
254
254
|
},
|
|
255
255
|
},
|
|
256
256
|
)
|
|
@@ -310,7 +310,7 @@ export class DepositCommand extends Command {
|
|
|
310
310
|
let order: any
|
|
311
311
|
|
|
312
312
|
if (method === 'card') {
|
|
313
|
-
for (const _method of ['
|
|
313
|
+
for (const _method of ['card', 'qrcode']) {
|
|
314
314
|
method = _method
|
|
315
315
|
|
|
316
316
|
order = await config.API.post(`orders`, {
|