add new eet and qt 6.12

This commit is contained in:
2026-10-14 22:38:06 +02:00
parent 464216d6c3
commit 99f98b0451
17 changed files with 505 additions and 100 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef SHOP_EETV4ADAPTER_H
#define SHOP_EETV4ADAPTER_H
#include <QUrl>
#include <eetv4request.h>
#include "../data/voucher.h"
struct EetV4ShopConfig
{
QUrl endpoint;
QString taxpayerEic;
qint32 unitId{0};
QString cashRegisterId;
int timeoutMilliseconds{30000};
bool verificationMode{true};
bool validate(QString *error = nullptr) const;
};
class EetV4ShopAdapter
{
public:
static bool createRequest(const Voucher &voucher,
const EetV4ShopConfig &config,
EetV4SaleRequest *request,
QString *error = nullptr);
private:
static bool amountText(const QDecDouble &amount, QString *text, QString *error);
};
#endif // SHOP_EETV4ADAPTER_H