Implemented `GetLastTransactionsScript` for automated retrieval of transactions, handling home screen navigation, "Ver más" button detection, and transaction list parsing with database storage. Introduced `PayByCardScript` for automated card payments, covering recipient selection, amount input, payment confirmation, and transaction logging. Added XML assets and updates to support these workflows.
37 lines
631 B
C++
37 lines
631 B
C++
#pragma once
|
|
#include "CommonScript.h"
|
|
|
|
namespace Black {
|
|
|
|
class PayByCardScript final : public CommonScript {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PayByCardScript(
|
|
AccountInfo account,
|
|
QString cardNumber,
|
|
double amount,
|
|
QObject *parent = nullptr
|
|
);
|
|
|
|
~PayByCardScript() override;
|
|
|
|
protected:
|
|
void doStart() override;
|
|
|
|
private:
|
|
const AccountInfo m_account;
|
|
const QString m_cardNumber;
|
|
const double m_amount;
|
|
QString m_error;
|
|
|
|
void makePayment(
|
|
const QString &deviceId,
|
|
const QString &pinCode,
|
|
int width,
|
|
int height
|
|
);
|
|
};
|
|
|
|
} // namespace Black
|