java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Payment>
com.aoindustries.aoserv.client.CachedObject<Integer,Payment>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Payment>
com.aoindustries.aoserv.client.payment.Payment
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
Payment>
A
CreditCardTransaction
stores the complete history of credit card transactions.- Author:
- AO Industries, Inc.
-
Field Summary
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
ConstructorDescriptionPayment()
Deprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authorizeCompleted
(String authorizationCommunicationResult, String authorizationProviderErrorCode, String authorizationErrorCode, String authorizationProviderErrorMessage, String authorizationProviderUniqueId, String authorizationResult_providerReplacementMaskedCardNumber, String authorizationResult_replacementMaskedCardNumber, String authorizationResult_providerReplacementExpiration, Byte authorizationResult_replacementExpirationMonth, Short authorizationResult_replacementExpirationYear, String providerApprovalResult, String approvalResult, String providerDeclineReason, String declineReason, String providerReviewReason, String reviewReason, String providerCvvResult, String cvvResult, String providerAvsResult, String avsResult, String approvalCode, String status) Called when an authorization has been completed.For AOServ sub-account support, this is the account that is making the payment.Gets the amount of the transaction.Gets theAdministrator
who authorized this transactions.Gets the application-specific username who authorized this transaction.Gets the time of the authorization if not available.Gets theAdministrator
who captured this transactions.Gets the application-specific username who captured this transaction.Gets the time of the capture.protected Object
getColumnImpl
(int i) Gets the credit card two-digit ISO 3166-1 alpha-2 country code.Gets the application-provided principal who added this credit card.Gets the credit card processor used for this transaction.int
Gets the duplicate detection window in seconds.Gets the optional duty amount for this transaction.boolean
Gets the group name for this transaction.Gets the order number.Gets the optional shipping amount for this transaction.Gets the shipping two-digit ISO 3166-1 alpha-2 country code.Gets the optional tax amount of the transaction.boolean
Gets the taxExempt flag for this transaction.boolean
Gets the test mode flag.Gets theAdministrator
who voided this transactions.Gets the application-specific username who voided this transaction.Gets the time of the void.void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
saleCompleted
(String authorizationCommunicationResult, String authorizationProviderErrorCode, String authorizationErrorCode, String authorizationProviderErrorMessage, String authorizationProviderUniqueId, String authorizationResult_providerReplacementMaskedCardNumber, String authorizationResult_replacementMaskedCardNumber, String authorizationResult_providerReplacementExpiration, Byte authorizationResult_replacementExpirationMonth, Short authorizationResult_replacementExpirationYear, String providerApprovalResult, String approvalResult, String providerDeclineReason, String declineReason, String providerReviewReason, String reviewReason, String providerCvvResult, String cvvResult, String providerAvsResult, String avsResult, String approvalCode, Timestamp captureTime, String capturePrincipalName, String captureCommunicationResult, String captureProviderErrorCode, String captureErrorCode, String captureProviderErrorMessage, String captureProviderUniqueId, String status) Called when a sale (combined authorization and capture) has been completed.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
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
-
Constructor Details
-
Payment
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getCreditCardProcessor
Gets the credit card processor used for this transaction.- Throws:
SQLException
IOException
-
getAccount_name
-
getAccount
For AOServ sub-account support, this is the account that is making the payment. For application-only use (not a sub-account to parent-account payment), use the same account as the owner of the credit card processor.- Throws:
SQLException
IOException
-
getGroupName
Gets the group name for this transaction. This is an arbitrary accounting name or grouping level. -
getTestMode
public boolean getTestMode()Gets the test mode flag. -
getDuplicateWindow
public int getDuplicateWindow()Gets the duplicate detection window in seconds. -
getOrderNumber
Gets the order number. -
getAmount
Gets the amount of the transaction. This amount should not include any tax, shipping charges, or duty. Thus the total amount of the transaction is the amount + taxAmount + shippingAmount + dutyAmount. -
getTaxAmount
Gets the optional tax amount of the transaction. -
getTaxExempt
public boolean getTaxExempt()Gets the taxExempt flag for this transaction. -
getShippingAmount
Gets the optional shipping amount for this transaction. -
getDutyAmount
Gets the optional duty amount for this transaction. -
getShippingFirstName
-
getShippingLastName
-
getShippingCompanyName
-
getShippingStreetAddress1
-
getShippingStreetAddress2
-
getShippingCity
-
getShippingState
-
getShippingPostalCode
-
getShippingCountryCode
Gets the shipping two-digit ISO 3166-1 alpha-2 country code.- Throws:
SQLException
IOException
-
getEmailCustomer
public boolean getEmailCustomer() -
getMerchantEmail
-
getInvoiceNumber
-
getPurchaseOrderNumber
-
getCreditCardCreatedBy
- Throws:
SQLException
IOException
-
getCreditCardPrincipalName
Gets the application-provided principal who added this credit card. -
getCreditCardAccount
- Throws:
SQLException
IOException
-
getCreditCardGroupName
-
getCreditCardProviderUniqueId
-
getCreditCardMaskedCardNumber
-
getCreditCard_expirationMonth
-
getCreditCard_expirationYear
-
getCreditCardFirstName
-
getCreditCardLastName
-
getCreditCardCompanyName
-
getCreditCardEmail
-
getCreditCardPhone
-
getCreditCardFax
-
getCreditCardCustomerId
-
getCreditCardCustomerTaxId
-
getCreditCardStreetAddress1
-
getCreditCardStreetAddress2
-
getCreditCardCity
-
getCreditCardState
-
getCreditCardPostalCode
-
getCreditCardCountryCode
Gets the credit card two-digit ISO 3166-1 alpha-2 country code.- Throws:
SQLException
IOException
-
getCreditCardComments
-
getAuthorizationTime
Gets the time of the authorization if not available. -
getAuthorizationAdministrator
Gets theAdministrator
who authorized this transactions. This is the username of the account that has access to control credit card transactions.- Throws:
SQLException
IOException
-
getAuthorizationPrincipalName
Gets the application-specific username who authorized this transaction. For pure-AOServ data, this will contain the username of theAdministrator
who was logged in and made the payment. -
getAuthorizationCommunicationResult
-
getAuthorizationProviderErrorCode
-
getAuthorizationErrorCode
-
getAuthorizationProviderErrorMessage
-
getAuthorizationProviderUniqueId
-
getAuthorizationProviderReplacementMaskedCardNumber
-
getAuthorizationReplacementMaskedCardNumber
-
getAuthorizationProviderReplacementExpiration
-
getAuthorizationReplacementExpirationMonth
-
getAuthorizationReplacementExpirationYear
-
getAuthorizationProviderApprovalResult
-
getAuthorizationApprovalResult
-
getAuthorizationProviderDeclineReason
-
getAuthorizationDeclineReason
-
getAuthorizationProviderReviewReason
-
getAuthorizationReviewReason
-
getAuthorizationProviderCvvResult
-
getAuthorizationCvvResult
-
getAuthorizationProviderAvsResult
-
getAuthorizationAvsResult
-
getAuthorizationApprovalCode
-
getCaptureTime
Gets the time of the capture. -
getCaptureAdministrator
Gets theAdministrator
who captured this transactions. This is the username of the account that has access to control credit card transactions.- Throws:
SQLException
IOException
-
getCapturePrincipalName
Gets the application-specific username who captured this transaction. For pure-AOServ data, this will contain the username of theAdministrator
who was logged in and initiated the capture. -
getCaptureCommunicationResult
-
getCaptureProviderErrorCode
-
getCaptureErrorCode
-
getCaptureProviderErrorMessage
-
getCaptureProviderUniqueId
-
getVoidTime
Gets the time of the void. -
getVoidAdministrator
Gets theAdministrator
who voided this transactions. This is the username of the account that has access to control credit card transactions.- Throws:
SQLException
IOException
-
getVoidPrincipalName
Gets the application-specific username who voided this transaction. For pure-AOServ data, this will contain the username of theAdministrator
who was logged in and caused the void. -
getVoidCommunicationResult
-
getVoidProviderErrorCode
-
getVoidErrorCode
-
getVoidProviderErrorMessage
-
getVoidProviderUniqueId
-
getStatus
-
getDescription
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Payment>
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Payment>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Payment> - 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,
Payment> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Payment> - Throws:
IOException
-
saleCompleted
public void saleCompleted(String authorizationCommunicationResult, String authorizationProviderErrorCode, String authorizationErrorCode, String authorizationProviderErrorMessage, String authorizationProviderUniqueId, String authorizationResult_providerReplacementMaskedCardNumber, String authorizationResult_replacementMaskedCardNumber, String authorizationResult_providerReplacementExpiration, Byte authorizationResult_replacementExpirationMonth, Short authorizationResult_replacementExpirationYear, String providerApprovalResult, String approvalResult, String providerDeclineReason, String declineReason, String providerReviewReason, String reviewReason, String providerCvvResult, String cvvResult, String providerAvsResult, String avsResult, String approvalCode, Timestamp captureTime, String capturePrincipalName, String captureCommunicationResult, String captureProviderErrorCode, String captureErrorCode, String captureProviderErrorMessage, String captureProviderUniqueId, String status) throws IOException, SQLException Called when a sale (combined authorization and capture) has been completed.- Throws:
IOException
SQLException
-
authorizeCompleted
public void authorizeCompleted(String authorizationCommunicationResult, String authorizationProviderErrorCode, String authorizationErrorCode, String authorizationProviderErrorMessage, String authorizationProviderUniqueId, String authorizationResult_providerReplacementMaskedCardNumber, String authorizationResult_replacementMaskedCardNumber, String authorizationResult_providerReplacementExpiration, Byte authorizationResult_replacementExpirationMonth, Short authorizationResult_replacementExpirationYear, String providerApprovalResult, String approvalResult, String providerDeclineReason, String declineReason, String providerReviewReason, String reviewReason, String providerCvvResult, String cvvResult, String providerAvsResult, String avsResult, String approvalCode, String status) throws IOException, SQLException Called when an authorization has been completed.- Throws:
IOException
SQLException
-