rewrite for eet 2.0 api version v4
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#ifndef EETV4RESPONSE_H
|
||||
#define EETV4RESPONSE_H
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
|
||||
#include "eetcpp_global.h"
|
||||
|
||||
enum class EetV4ResponseStatus
|
||||
{
|
||||
Success,
|
||||
Error,
|
||||
SoapFault
|
||||
};
|
||||
|
||||
struct EETCPPSHARED_EXPORT EetV4Response
|
||||
{
|
||||
EetV4ResponseStatus status = EetV4ResponseStatus::Error;
|
||||
QString message;
|
||||
QString messageUuid;
|
||||
QDateTime receivedAt;
|
||||
QDateTime rejectedAt;
|
||||
QString pok;
|
||||
int errorCode = 0;
|
||||
bool test = false;
|
||||
QList<int> warningCodes;
|
||||
|
||||
bool isSuccess() const
|
||||
{
|
||||
return status == EetV4ResponseStatus::Success;
|
||||
}
|
||||
};
|
||||
|
||||
class EETCPPSHARED_EXPORT EetV4ResponseParser
|
||||
{
|
||||
public:
|
||||
static bool parseSoap(const QByteArray &soap,
|
||||
EetV4Response *response,
|
||||
QString *error = nullptr);
|
||||
};
|
||||
|
||||
#endif // EETV4RESPONSE_H
|
||||
Reference in New Issue
Block a user