- Add TaskDumpRecorder to save task-related XML dumps and upload failure info to Telegram. - Integrate TaskDumpRecorder into `PayByPhoneScript` and `PayByCardScript` for Dushanbe and Ozon banks. - Extend ADB utilities to record XML dumps with TaskDumpRecorder and refine keyboard dismissal logic. - Enhance freeze detection with consecutive dump checks in CommonScript and payment scripts. - Update mock server profiles and scenario configurations with new material IDs.
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
#pragma once
|
||
#include "CommonScript.h"
|
||
#include <QDateTime>
|
||
#include <QJsonObject>
|
||
#include "db/DeviceInfo.h"
|
||
#include "db/BankProfileInfo.h"
|
||
|
||
namespace Dushanbe {
|
||
|
||
class GetLastTransactionsScript final : public CommonScript {
|
||
Q_OBJECT
|
||
|
||
public:
|
||
explicit GetLastTransactionsScript(
|
||
QString deviceId,
|
||
QString appCode,
|
||
double searchAmount = 0,
|
||
QDateTime searchTime = {},
|
||
QString materialId = {},
|
||
QObject *parent = nullptr
|
||
);
|
||
|
||
~GetLastTransactionsScript() override;
|
||
|
||
signals:
|
||
// Испускается, когда транзакция найдена и распарсена с экрана деталей.
|
||
// EventHandler использует эти данные напрямую для task_result вместо
|
||
// повторного чтения из БД.
|
||
void transactionParsed(const QJsonObject &tx);
|
||
|
||
protected:
|
||
void doStart() override;
|
||
|
||
private:
|
||
QString m_deviceId;
|
||
const QString m_appCode;
|
||
const double m_searchAmount; // сумма в сомони (0 = все последние)
|
||
const QDateTime m_searchTime; // примерное время (UTC)
|
||
const QString m_materialId; // UUID задачи (для сохранения дампов)
|
||
QString m_error;
|
||
};
|
||
|
||
} // namespace Dushanbe
|