Class Transaction
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Transaction>
com.aoindustries.aoserv.client.CachedObject<Integer,Transaction>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Transaction>
com.aoindustries.aoserv.client.billing.Transaction
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
Transaction>
Each
Account
has an account of all the
charges and payments processed. Each entry in this
account is a Transaction
.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
Payment confirmation.static final byte
Payment confirmation.static final int
static final int
Represents not being assigned for a field of theint
type.static final byte
Payment confirmation.Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionvoid
approved
(int creditCardTransaction) Deprecated.Please provide updated cardInfo viaapproved(int, java.lang.String)
.void
void
declined
(int creditCardTransaction) Deprecated.Please provide updated cardInfo viadeclined(int, java.lang.String)
.void
Gets the effective amount of quantity * rate.Deprecated.Please directly access viagetPayment()
.protected Object
getColumnImpl
(int i) byte
static String
getPaymentConfirmedLabel
(int index) int
getRate()
getTime()
int
getType()
void
held
(int creditCardTransaction) Deprecated.Please provide updated cardInfo viaheld(int, java.lang.String)
.void
void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
Methods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
Field Details
-
UNASSIGNED
public static final int UNASSIGNEDRepresents not being assigned for a field of theint
type.- See Also:
-
WAITING_CONFIRMATION
public static final byte WAITING_CONFIRMATIONPayment confirmation.- See Also:
-
CONFIRMED
public static final byte CONFIRMEDPayment confirmation.- See Also:
-
NOT_CONFIRMED
public static final byte NOT_CONFIRMEDPayment confirmation.- See Also:
-
NUM_PAYMENT_CONFIRMATION_STATES
public static final int NUM_PAYMENT_CONFIRMATION_STATES- See Also:
-
-
Constructor Details
-
Transaction
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
approved
public void approved(int creditCardTransaction, String paymentInfo) throws IOException, SQLException - Parameters:
paymentInfo
- (Optional) The card info may have been updated during the transaction.- Throws:
IOException
SQLException
-
approved
Deprecated.Please provide updated cardInfo viaapproved(int, java.lang.String)
.- Throws:
IOException
SQLException
- See Also:
-
declined
public void declined(int creditCardTransaction, String paymentInfo) throws IOException, SQLException - Parameters:
paymentInfo
- (Optional) The card info may have been updated during the transaction.- Throws:
IOException
SQLException
-
declined
Deprecated.Please provide updated cardInfo viadeclined(int, java.lang.String)
.- Throws:
IOException
SQLException
- See Also:
-
held
- Parameters:
paymentInfo
- (Optional) The card info may have been updated during the transaction.- Throws:
IOException
SQLException
-
held
Deprecated.Please provide updated cardInfo viaheld(int, java.lang.String)
.- Throws:
IOException
SQLException
- See Also:
-
getAprNum
Deprecated.- Throws:
SQLException
IOException
- See Also:
-
getAccount_name
-
getAccount
- Throws:
SQLException
IOException
-
getSourceAccount_name
-
getSourceAccount
- Throws:
SQLException
IOException
-
getAdministrator_username
-
getAdministrator
- Throws:
SQLException
IOException
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Transaction>
-
getDescription
-
getProcessor_providerId
-
getProcessor
- Throws:
SQLException
IOException
-
getPayment_id
-
getPayment
- Throws:
SQLException
IOException
-
getPaymentConfirmed
public byte getPaymentConfirmed() -
getPaymentConfirmedLabel
-
getPaymentInfo
-
getPaymentType_name
-
getPaymentType
- Throws:
SQLException
IOException
-
getAmount
Gets the effective amount of quantity * rate. -
getQuantity
public int getQuantity() -
getRate
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Transaction>
-
getTime
-
getTransid
public int getTransid() -
getType_name
-
getType
- Throws:
SQLException
IOException
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Transaction> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Transaction> - Throws:
IOException
-
toStringImpl
Description copied from class:AoservObject
AoservObject.toString()
implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAoservObject.toString()
on the key (fromAoservObject.getKey()
). When the key isnull
, uses the default implementation fromObject.toString()
.- Overrides:
toStringImpl
in classCachedObjectIntegerKey<Transaction>
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Transaction> - Throws:
IOException
-