List of all members | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
AvalaraIntegration Class Reference

#include <avalaraIntegration.h>

Inheritance diagram for AvalaraIntegration:
TaxIntegration QObject

Signals

void connectionTested (QString)
 
void taxCalculated (double, QString)
 
void taxCodesFetched (QJsonObject, QString)
 
void taxExemptCategoriesFetched (QJsonObject, QString)
 

Public Member Functions

 AvalaraIntegration (bool=false)
 
virtual Q_INVOKABLE bool calculateTax (QString, int, bool=false)
 
virtual Q_INVOKABLE bool cancel (QString, int, QString=QString())
 
virtual Q_INVOKABLE bool commit (QString, int)
 
virtual Q_INVOKABLE void getTaxCodes ()
 
virtual Q_INVOKABLE void getTaxExemptCategories (QStringList=QStringList())
 
virtual Q_INVOKABLE void refund (int, QDate)
 
virtual Q_INVOKABLE void test (QStringList)
 
void wait ()
 

Static Public Member Functions

static Q_INVOKABLE TaxIntegrationgetTaxIntegration (bool=false)
 

Protected Slots

virtual void handleResponse (QNetworkReply *)
 
virtual void handleResponse (QString, QString, int, QString, QString)
 
virtual void handleResponse (QString, QString, int, QString, QString)
 
virtual void sNotified (const QString &, QSqlDriver::NotificationSource, const QVariant &)
 

Protected Member Functions

virtual void done ()
 
virtual Q_INVOKABLE QString error ()
 
virtual QString error (QString, QNetworkReply *, QJsonObject)
 
virtual void sendRequest (QString, QString, int, QString, QStringList, QString)
 

Protected Attributes

QString _error
 
QElapsedTimer timer
 

Constructor & Destructor Documentation

◆ AvalaraIntegration()

AvalaraIntegration::AvalaraIntegration ( bool  listen = false)

Member Function Documentation

◆ calculateTax()

bool TaxIntegration::calculateTax ( QString  orderType,
int  orderId,
bool  record = false 
)
virtualinherited

◆ cancel()

bool TaxIntegration::cancel ( QString  orderType,
int  orderId,
QString  orderNumber = QString() 
)
virtualinherited

◆ commit()

bool TaxIntegration::commit ( QString  orderType,
int  orderId 
)
virtualinherited

◆ connectionTested

void TaxIntegration::connectionTested ( QString  )
signalinherited

◆ done()

void AvalaraIntegration::done ( )
protectedvirtual

Reimplemented from TaxIntegration.

◆ error() [1/2]

QString TaxIntegration::error
protected

◆ error() [2/2]

QString AvalaraIntegration::error ( QString  type,
QNetworkReply *  reply,
QJsonObject  response 
)
protectedvirtual

◆ getTaxCodes()

void TaxIntegration::getTaxCodes ( )
virtualinherited

◆ getTaxExemptCategories()

void TaxIntegration::getTaxExemptCategories ( QStringList  config = QStringList())
virtualinherited

◆ getTaxIntegration()

TaxIntegration * TaxIntegration::getTaxIntegration ( bool  listen = false)
staticinherited

◆ handleResponse [1/3]

void AvalaraIntegration::handleResponse ( QNetworkReply *  reply)
protectedvirtualslot

◆ handleResponse [2/3]

void TaxIntegration::handleResponse
protectedslot

◆ handleResponse [3/3]

void TaxIntegration::handleResponse ( QString  type,
QString  orderType,
int  orderId,
QString  response,
QString  error 
)
protectedvirtualslotinherited

◆ refund()

void TaxIntegration::refund ( int  invcheadId,
QDate  refundDate 
)
virtualinherited

◆ sendRequest()

void AvalaraIntegration::sendRequest ( QString  type,
QString  orderType,
int  orderId,
QString  payload,
QStringList  config,
QString  orderNumber 
)
protectedvirtual

Implements TaxIntegration.

◆ sNotified

void TaxIntegration::sNotified ( const QString &  name,
QSqlDriver::NotificationSource  source,
const QVariant &  payload 
)
protectedvirtualslotinherited

◆ taxCalculated

void TaxIntegration::taxCalculated ( double  ,
QString   
)
signalinherited

◆ taxCodesFetched

void TaxIntegration::taxCodesFetched ( QJsonObject  ,
QString   
)
signalinherited

◆ taxExemptCategoriesFetched

void TaxIntegration::taxExemptCategoriesFetched ( QJsonObject  ,
QString   
)
signalinherited

◆ test()

void TaxIntegration::test ( QStringList  config)
virtualinherited

◆ wait()

void AvalaraIntegration::wait ( )
virtual

Reimplemented from TaxIntegration.

Member Data Documentation

◆ _error

QString TaxIntegration::_error
protectedinherited

◆ timer

QElapsedTimer TaxIntegration::timer
protectedinherited

The documentation for this class was generated from the following files:

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.0.0 doxygen 1.8.17