rewrite for eet 2.0 api version v4
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user