rewrite for eet 2.0 api version v4

This commit is contained in:
2026-10-13 23:28:55 +02:00
parent c926a173ba
commit 3f8e4796b3
55 changed files with 3698 additions and 1611 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef EETV4CLIENT_H
#define EETV4CLIENT_H
#include <QUrl>
#include <QSslConfiguration>
#include "eetcpp_global.h"
#include "eetv4request.h"
#include "eetv4response.h"
struct EETCPPSHARED_EXPORT EetV4ClientConfig
{
QUrl endpoint;
int timeoutMilliseconds{30000};
QSslConfiguration sslConfiguration;
};
class EETCPPSHARED_EXPORT EetV4Client
{
public:
explicit EetV4Client(EetV4ClientConfig config);
bool sendSale(const EetV4SaleRequest &request,
const QString &pkcs12Path,
const QByteArray &pkcs12Password,
EetV4Response *response,
QString *error = nullptr) const;
private:
EetV4ClientConfig m_config;
};
#endif // EETV4CLIENT_H