Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
SoftwareAndServices::Library::UPN::CcTransaction Class Reference

#include <SaS/UpnDb/UpnDB.hpp>

+ Inheritance diagram for SoftwareAndServices::Library::UPN::CcTransaction:
+ Collaboration diagram for SoftwareAndServices::Library::UPN::CcTransaction:

Public Member Functions

 CcTransaction (UpnDbUpnId_t UpnId, UpnDbCcId_t CcId, const String *VendorId, const String *VendorPw, const String *PartNumber, const String *Description, const String *Amount, const String *Tax, const String *Shipping, const String *Currency=NULL)
 
virtual ~CcTransaction ()
 
virtual bool CreditTheAccount (const String *RefNumber, const String *CashierNumber, const String *TransactionAmount, const String *SalesTaxAmount, const String *ShippingAmount, const String *OrigTransacionId, const String *OrigTransactionAmount)
 
virtual bool GetResultMessage (String *Results) const
 
virtual bool ProcessCc (bool IsTest=false)
 
virtual bool VoidTransaction (const String *TransactionId)
 
- Public Member Functions inherited from SoftwareAndServices::Library::UPN::UpnDB
 UpnDB ()
 
virtual ~UpnDB ()
 
UpnDbAddressId_t AddAddress (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbResourceId_t addressType, const String *street1, const String *street2, const String *city, const String *state, const String *zip, const String *country)
 
UpnDbAddressId_t AddAddress (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbResourceId_t addressType, const String *street1, const String *street2, const String *city, const String *state, const String *zip, UpnDbCountryCodeId_t country)
 
UpnDbCcId_t AddCc (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbAddressId_t addrId, const String *number, unsigned char expireMonth, unsigned short expireYear, const String *back, const char type, const String *cardHoldersName)
 
UpnDbEmailId_t AddEmail (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbResourceId_t ResourceType, const String *Email, const String *Name)
 
UpnDbMembershipId_t AddMembership (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, const String *name)
 
UpnDbPrefId_t AddPref (UpnDbAuthHandle_t AppAuth, UpnDbAuthHandle_t UpnAuth, const char *PrefKey, UpnDbPrefValueTypeId_t PrefType, const char *PrefValue, unsigned int Index=0)
 
UpnDbRealmId_t AddRealm (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t parentRealm, const String *newRealm, bool canHaveChild=true)
 
UpnDbRealmId_t AddRealm (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t parentRealm, const char *newRealm, bool canHaveChild=true)
 
bool AddRealmAdmin (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, UpnDbUpnId_t upnId)
 
UpnDbResourceId_t AddResourceId (UpnDbAuthHandle_t AuthHandle, UpnDbResourceTypeId_t System, const char *Name)
 
UpnDbUpnId_t AddUpn (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, const String *upn, const String *password, const String *namePrefix, const String *nameFirst, const String *nameMiddle, const String *nameLast, const String *nameSuffix, UpnDbResourceId_t type=ResourcePerson_t)
 
bool AddUpnToList (UpnDbAuthHandle_t AuthHandle, UpnDbMembershipId_t list, UpnDbUpnId_t upn, const String *expire)
 
UpnDbAuthHandle_t AppLogin (const String *GUID, const String *password, const String *appGUID, const String *appPassword, const String *host, const String *db)
 
UpnDbAuthHandle_t AppLogin (const char *GUID, const char *password, const char *appGUID, const char *appPassword, const char *host, const char *db)
 
UpnDbAuthHandle_t Authenticate (UpnDbRealmId_t realm, const String *upn, const String *pw)
 
UpnDbAuthHandle_t Authenticate (UpnDbRealmId_t realm, const char *upn, const char *pw)
 
bool CanHaveChildren (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t RealmId)
 
bool ChargeCc (UpnDbAuthHandle_t AuthHandle, UpnDbCcId_t cc, const String *partNumber, const String *description, const String *amount)
 
bool ChargeCcMonthly (UpnDbAuthHandle_t AuthHandle, UpnDbCcId_t cc, const String *partNumber, const String *description, const String *amount)
 
bool ChargeCcYearly (UpnDbAuthHandle_t AuthHandle, UpnDbCcId_t cc, const String *partNumber, const String *description, const String *amount)
 
bool Connect (const String *host, const String *dbName, const String *dbUser, const String *dbPassword, const String *sqlinterface=NULL)
 
bool Connect (const char *host, const char *dbName, const char *dbUser, const char *dbPassword, const char *sqlinterface=NULL)
 
bool DeleteResourceId (UpnDbAuthHandle_t AuthHandle, UpnDbResourceId_t ResourceId)
 
void Disconnect ()
 
bool GetAddress (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t UpnId, std::map< const char *, UpnDbAddressRecord *, OrderByIName > &Results)
 
UpnDbRealmId_t GetAddressRealm (UpnDbAddressId_t addrId)
 
UpnDbUpnId_t GetAddressUpnId (UpnDbAddressId_t addrId)
 
UpnDbCcId_t GetCc (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, unsigned int Nth)
 
bool GetCcExpire (UpnDbAuthHandle_t AuthHandle, String *Results, UpnDbCcId_t cc)
 
char * GetCcLast4 (UpnDbAuthHandle_t AuthHandle, UpnDbCcId_t cc)
 
bool GetEmail (UpnDbAuthHandle_t AuthHandle, String *Results, UpnDbUpnId_t upnId, unsigned int Nth)
 
bool GetEmailAddress (UpnDbAuthHandle_t AuthHandle, std::vector< String * > *Results, UpnDbUpnId_t upnId)
 
unsigned int GetErrorCode ()
 
void GetErrorMessage (String *Results)
 
bool GetGUID (String *Results) const
 
bool GetLicense (UpnDbAuthHandle_t AuthHandle, String *Results, UpnDbRealmId_t authRealmId, const String *licenseType, const String *requestCode)
 
UpnDbLicenseId_t GetLicenseInfo (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t authRealmId, UpnDbUpnId_t upnId, const String *requestCode, const String *licenseKey, const String *product, const String *version, bool *emailSent)
 
UpnDbRealmId_t GetListRealm (UpnDbMembershipId_t listId)
 
UpnDbMembershipId_t GetMembershipId (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realmId, const String *listName)
 
bool GetPref (UpnDbAuthHandle_t AppAuth, UpnDbAuthHandle_t UpnAuth, char *&Results, const char *Key, UpnDbPrefValueTypeId_t &PrefType, unsigned int Index)
 
UpnDbPrefId_t GetPrefId (UpnDbAuthHandle_t AppAuth, UpnDbAuthHandle_t UpnAuth, const char *Key, unsigned int Index)
 
UpnDbRealmId_t GetRealmId (UpnDbAuthHandle_t AuthHandle)
 
UpnDbRealmId_t GetRealmId (const String *realm)
 
UpnDbRealmId_t GetRealmId (const char *realm)
 
bool GetRealmRecord (UpnDbAuthHandle_t AuthHandle, UpnDbRealmRecord *Results, UpnDbRealmId_t authRealmId, const String *realm)
 
bool GetRealms (UpnDbAuthHandle_t AuthHandle, std::vector< UpnDbRealmRecord_t * > &Results)
 
bool GetRealms (UpnDbAuthHandle_t AuthHandle, std::map< const char *, Realm * > &Results)
 
std::list< const char * > * GetRealmsForUpn (UpnDbAuthHandle_t AuthHandle, const char *Upn)
 
bool GetResource (UpnDbAuthHandle_t AuthHandle, UpnDbResourceId_t Id, UpnDbResourceTypeId_t &System, String &Name)
 
bool GetResourceId (UpnDbAuthHandle_t AuthHandle, const char *Name, UpnDbResourceId_t &Results, UpnDbResourceTypeId_t &SystemResults)
 
bool GetSpoken (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, String &FileName, String &MimeType, String &Extension)
 
SQLGetSQL () const
 
bool GetUpn (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, String *namePrefix, String *nameFirst, String *nameMiddle, String *nameLast, String *nameSuffix)
 
UpnDbUpnId_t GetUpnId (UpnDbRealmId_t realm, const String *upn)
 
UpnDbUpnId_t GetUpnId (UpnDbRealmId_t realm, const char *upn)
 
UpnDbUpnId_t GetUpnId (UpnDbAuthHandle_t AuthHandle)
 
UpnDbRealmId_t GetUpnRealm (UpnDbUpnId_t upnId)
 
bool GetUpnRecord (UpnDbAuthHandle_t Auth, UpnDbRealmRecord_t *Results, UpnDbRealmId_t realm, const String *upn)
 
bool GetUpns (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, std::vector< UpnDbUpnId_t > *Answers)
 
bool GetUpns (UpnDbAuthHandle_t AuthHandle, std::vector< UpnDbUpnRecord_t * > &Results, UpnDbRealmId_t realmId)
 
bool GetUpnValue (String *Results, UpnDbUpnId_t upnId)
 
bool GetUserRecord (UpnDbAuthHandle_t Auth, UpnDbUserRecord *Results, UpnDbUpnId_t TheUpnId)
 
bool IsAdmin (UpnDbRealmId_t realm, UpnDbUpnId_t upn)
 
bool IsAdmin (UpnDbAuthHandle_t AuthHandle)
 
bool IsAdminForUpn (UpnDbUpnId_t upn1, UpnDbUpnId_t upn2)
 
bool IsDecendantRealm (UpnDbAuthHandle_t id, UpnDbRealmId_t ParentRealm, UpnDbRealmId_t ChildRealm)
 
bool IsMember (UpnDbAuthHandle_t AuthHandle, UpnDbMembershipId_t listId, UpnDbUpnId_t upnId, String *expireTime)
 
bool IsSiteAdmin (UpnDbUpnId_t upn)
 
bool IsSiteAdmin (UpnDbAuthHandle_t AuthHandle)
 
void Logout (UpnDbAuthHandle_t AuthHandle)
 
unsigned int PointsTotal (UpnDbUpnId_t upnId)
 
bool RemoveAddress (UpnDbAuthHandle_t AuthHandle, UpnDbAddressId_t addrId)
 
bool RemoveCc (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbCcId_t cc)
 
bool RemoveEmail (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, UpnDbEmailId_t emailId)
 
bool RemoveMembership (UpnDbAuthHandle_t AuthHandle, UpnDbMembershipId_t listId)
 
bool RemovePref (UpnDbAuthHandle_t AppAuth, UpnDbAuthHandle_t UpnAuth, UpnDbPrefId_t prefId)
 
bool RemoveRealm (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realmToRemove, bool force=false)
 
bool RemoveRealmAdmin (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, UpnDbUpnId_t upnId)
 
bool RemoveUpn (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId)
 
bool RemoveUpnFromList (UpnDbAuthHandle_t AuthHandle, UpnDbMembershipId_t list, UpnDbUpnId_t upn)
 
bool RenameResourceId (UpnDbAuthHandle_t AuthHandle, UpnDbResourceId_t ResourceId, const char *NewName)
 
bool ReparentRealm (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t realm, UpnDbRealmId_t newParent)
 
UpnDbLicenseId_t SaveLicenseInfo (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t authRealmId, UpnDbUpnId_t upnId, const String *requestCode, const String *licenseKey, const String *product, const String *version, bool emailSent)
 
unsigned int SendEmail (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t authRealmId, UpnDbUpnId_t fromUpnDbUpnId, const String *toListEmail, const String *toListNames, const String *ccListEmail, const String *ccListNames, const String *bccListEmail, const String *bccListNames, const String *errorsToList, const String *subject, const String **otherHeaders, const String *body, const String **attachments, const String **attachMimeType)
 
void SetLDAP ()
 
void SetMxHost (const String *mxHost)
 
bool SetSpoken (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, String &FileName, String &MimeType, String &Extension)
 
void SetSQL (SQL *sql, const char *Prefix=NULL)
 
bool UpdateAddress (UpnDbAuthHandle_t AuthHandle, UpnDbAddressId_t addrId, UpnDbResourceId_t addressType, const String *street1, const String *street2, const String *city, const String *state, const String *zip, UpnDbCountryCodeId_t country)
 
bool UpdatePref (UpnDbAuthHandle_t AppAuth, UpnDbAuthHandle_t UpnAuth, UpnDbPrefId_t PrefId, const char *PrefValue)
 
bool UpdateRealmChild (UpnDbAuthHandle_t AuthHandle, UpnDbRealmId_t toUpdateId, bool canHaveChild, bool force=false)
 
bool UpdateUpn (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, const String *namePrefix, const String *nameFirst, const String *nameMiddle, const String *nameLast, const String *nameSuffix)
 
bool UpdateUpn (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, const char *namePrefix, const char *nameFirst, const char *nameMiddle, const char *nameLast, const char *nameSuffix)
 
bool UpdateUpnInList (UpnDbAuthHandle_t AuthHandle, UpnDbMembershipId_t list, UpnDbUpnId_t upn, const String *expire)
 
bool UpdateUpnPassword (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, const String *oldPassword, const String *newPassword)
 
bool UpdateUpnValue (UpnDbAuthHandle_t AuthHandle, UpnDbUpnId_t upnId, const String *newValue)
 
UpnDbUpnId_t UpnExists (UpnDbRealmId_t realm, const String *upn)
 
unsigned int UrlViewed (UpnDbUpnId_t upnId, const String *urlVisited)
 
bool Watermark (String *Results, UpnDbUpnId_t upnId, const String *pdfUrl)
 
- Public Member Functions inherited from SoftwareAndServices::Library::Common::instance< UpnDB >
 instance ()
 
virtual InstanceCount_t decInstance () const
 
virtual InstanceCount_t getInstance () const
 
virtual InstanceCount_t incInstance () const
 
void operator delete (void *ToFree)
 

Protected Types

enum  chargeType { TodoCharge_t = 'T', ChargeMade_t = 'S', ChargeFailed_t = 'F', Returned_t = 'R' }
 

Protected Attributes

const char * ApplicationId
 
const char * ApprovalNumber
 
const char * AuthorizationNumber
 
const char * AvsResponseCode
 
const char * CashierNumber
 
UpnDbCcId_t CcId
 
const char * Currency
 
const char * CvvResponseCode
 
const char * Description
 
const char * PartNumber
 
UpnDbRealmId_t RealmId
 
const char * ReferenceNumber
 
const char * ResultCode
 
const char * ResultMessage
 
const char * ReturnedAccountNumber
 
const char * ReturnedReferenceNumber
 
const char * ReturnedTransactionAmount
 
const char * SalesTaxAmount
 
const char * ShippingAmount
 
const char * TerminalId
 
const char * TransactionAmount
 
const char * TransactionDate
 
const char * TransactionId
 
const char * TransactionTime
 
UpnDbUpnId_t UpnId
 
const char * VendorId
 
const char * VendorPassword
 
- Protected Attributes inherited from SoftwareAndServices::Library::UPN::UpnDB
unsigned int _ErrorCode
 
const char * _ErrorMessage
 
bool _OurSql
 
const char * _Prefix
 
UpnDbRealmId_t _Realm
 
SQL_Sql
 
UpnDbUpnId_t _Upn
 

Additional Inherited Members

- Static Public Member Functions inherited from SoftwareAndServices::Library::UPN::UpnDB
static bool CreateSqlDatabase (const char *DatabaseHost, const char *DatabaseName, const char *DatabaseUserName, const char *DatabaseUserPassword, unsigned short DatabasePort, const char *DatabaseUpnDbPrefix, const char *RuntimeUsername, const char *RuntimePassword, const char *DatabaseType, const char *InitFiles, String &ErrorMessages)
 
static UpnDbRealmId_t GetRealmId (const String *realm, SQL *sql, const char *Prefix)
 
static UpnDbRealmId_t GetRealmId (const char *realm, SQL *sql, const char *Prefix)
 
- Protected Member Functions inherited from SoftwareAndServices::Library::UPN::UpnDB
UpnDbRealmId_t _GetCcRealm (UpnDbCcId_t id)
 
UpnDbUpnId_t _GetCcUpn (UpnDbCcId_t id)
 
void _SetError (unsigned int code, const char *msg)
 
- Static Protected Attributes inherited from SoftwareAndServices::Library::UPN::UpnDB
static const char * _GUID
 

Detailed Description

Definition at line 66 of file libSaSUpnDb/cc.hpp.


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