1
0
forked from BRT/arc
arc/database/dao/AccountDAO.h
slava 91f8e96fa6 Add Ozon scripts for retrieving card info, profile details, and transaction history
Implemented `GetCardInfoScript`, `GetProfileInfoScript`, and `GetLastTransactionsScript` to automate data extraction workflows for Ozon platform. Includes support for XML parsing, ad banner handling, card navigation, profile parsing, and transaction retrieval. Added related asset files.
2026-02-27 10:15:19 +07:00

31 lines
886 B
C++

#pragma once
#include "db/AccountInfo.h"
class AccountDAO {
public:
[[nodiscard]] static bool upsertAccount(const AccountInfo &info);
[[nodiscard]] static bool updateAccountById(
int id,
const QString &status,
const QString &description,
const QString &currency
);
[[nodiscard]] static bool deleteAccount(int id);
[[nodiscard]] static bool updateCardNumber(int accountId, const QString &cardNumber);
[[nodiscard]] static bool updateMaterialId(int accountId, const QString &materialId);
[[nodiscard]] static QList<AccountInfo> getAccounts(const QString &deviceId, const QString &appName);
[[nodiscard]] static AccountInfo getAccountById(int accountId);
[[nodiscard]] static AccountInfo findAppAccount(
const QString &deviceId,
const QString &appName,
const QString &lastNumber
);
};