List of all members | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
TaxIntegration Class Referenceabstract

#include <taxIntegration.h>

Inheritance diagram for TaxIntegration:
QObject AvalaraIntegration NoIntegration

Signals

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

Public Member Functions

 TaxIntegration (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 QString error ()
 
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)
 
virtual Q_INVOKABLE void wait ()
 

Static Public Member Functions

static Q_INVOKABLE TaxIntegrationgetTaxIntegration (bool=false)
 

Protected Slots

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

Protected Member Functions

virtual void done ()
 
virtual void sendRequest (QString, QString=QString(), int=0, QString=QString(), QStringList=QStringList(), QString=QString())=0
 

Protected Attributes

QString _error
 
QElapsedTimer timer
 

Constructor & Destructor Documentation

◆ TaxIntegration()

TaxIntegration::TaxIntegration ( bool  listen = false)

Member Function Documentation

◆ calculateTax()

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

◆ cancel()

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

◆ commit()

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

◆ connectionTested

void TaxIntegration::connectionTested ( QString  )
signal

◆ done()

void TaxIntegration::done ( )
protectedvirtual

Reimplemented in AvalaraIntegration.

◆ error()

QString TaxIntegration::error ( )
virtual

◆ getTaxCodes()

void TaxIntegration::getTaxCodes ( )
virtual

◆ getTaxExemptCategories()

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

◆ getTaxIntegration()

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

◆ handleResponse

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

◆ refund()

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

◆ sendRequest()

virtual void TaxIntegration::sendRequest ( QString  ,
QString  = QString(),
int  = 0,
QString  = QString(),
QStringList  = QStringList(),
QString  = QString() 
)
protectedpure virtual

Implemented in AvalaraIntegration, and NoIntegration.

◆ sNotified

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

◆ taxCalculated

void TaxIntegration::taxCalculated ( double  ,
QString   
)
signal

◆ taxCodesFetched

void TaxIntegration::taxCodesFetched ( QJsonObject  ,
QString   
)
signal

◆ taxExemptCategoriesFetched

void TaxIntegration::taxExemptCategoriesFetched ( QJsonObject  ,
QString   
)
signal

◆ test()

void TaxIntegration::test ( QStringList  config)
virtual

◆ wait()

void TaxIntegration::wait ( )
virtual

Reimplemented in AvalaraIntegration.

Member Data Documentation

◆ _error

QString TaxIntegration::_error
protected

◆ timer

QElapsedTimer TaxIntegration::timer
protected

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