34 lines
731 B
C++
34 lines
731 B
C++
#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
|