java.lang.Object
com.aoapps.payments.TransactionResult
com.aoapps.payments.AuthorizationResult
- All Implemented Interfaces:
Cloneable
Encapsulates the results of an authorization.
- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The set of supported approval results.static enum
The set of supported address verification results.static enum
The set of supported card verification results.static enum
The set of supported decline reasons.static enum
The set of supported review reasons.Nested classes/interfaces inherited from class com.aoapps.payments.TransactionResult
TransactionResult.CommunicationResult, TransactionResult.ErrorCode
-
Constructor Summary
ConstructorDescriptionAuthorizationResult
(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId, TokenizedCreditCard tokenizedCreditCard, String providerApprovalResult, AuthorizationResult.ApprovalResult approvalResult, String providerDeclineReason, AuthorizationResult.DeclineReason declineReason, String providerReviewReason, AuthorizationResult.ReviewReason reviewReason, String providerCvvResult, AuthorizationResult.CvvResult cvvResult, String providerAvsResult, AuthorizationResult.AvsResult avsResult, String approvalCode) Creates a new authorization result.AuthorizationResult
(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId, String providerApprovalResult, AuthorizationResult.ApprovalResult approvalResult, String providerDeclineReason, AuthorizationResult.DeclineReason declineReason, String providerReviewReason, AuthorizationResult.ReviewReason reviewReason, String providerCvvResult, AuthorizationResult.CvvResult cvvResult, String providerAvsResult, AuthorizationResult.AvsResult avsResult, String approvalCode) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Gets the approval code.Gets the provider-neutral approval response code.Gets the provider-neutral AVS result.Gets the provider-neutral CVV result.Gets the provider-neutral decline reason.Gets the provider-specific approval response.Gets the provider-specific AVS result.Gets the provider-specific CVV result.Gets the provider-specific decline reason.Gets the provider-specific review reason.Gets the provider-neutral review reason.Gets the tokenized card used for this authorization.Methods inherited from class com.aoapps.payments.TransactionResult
getCommunicationResult, getErrorCode, getProviderErrorCode, getProviderErrorMessage, getProviderId, getProviderUniqueId
-
Constructor Details
-
AuthorizationResult
public AuthorizationResult(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId, TokenizedCreditCard tokenizedCreditCard, String providerApprovalResult, AuthorizationResult.ApprovalResult approvalResult, String providerDeclineReason, AuthorizationResult.DeclineReason declineReason, String providerReviewReason, AuthorizationResult.ReviewReason reviewReason, String providerCvvResult, AuthorizationResult.CvvResult cvvResult, String providerAvsResult, AuthorizationResult.AvsResult avsResult, String approvalCode) Creates a new authorization result. -
AuthorizationResult
@Deprecated(forRemoval=true) public AuthorizationResult(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId, String providerApprovalResult, AuthorizationResult.ApprovalResult approvalResult, String providerDeclineReason, AuthorizationResult.DeclineReason declineReason, String providerReviewReason, AuthorizationResult.ReviewReason reviewReason, String providerCvvResult, AuthorizationResult.CvvResult cvvResult, String providerAvsResult, AuthorizationResult.AvsResult avsResult, String approvalCode) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new authorization result.
-
-
Method Details
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getTokenizedCreditCard
Gets the tokenized card used for this authorization.- Returns:
- The tokenized card or
null
when replacement not supported
-
getProviderApprovalResult
Gets the provider-specific approval response. -
getApprovalResult
Gets the provider-neutral approval response code. -
getProviderDeclineReason
Gets the provider-specific decline reason. -
getDeclineReason
Gets the provider-neutral decline reason. -
getProviderReviewReason
Gets the provider-specific review reason. -
getReviewReason
Gets the provider-neutral review reason. -
getProviderCvvResult
Gets the provider-specific CVV result. -
getCvvResult
Gets the provider-neutral CVV result. -
getProviderAvsResult
Gets the provider-specific AVS result. -
getAvsResult
Gets the provider-neutral AVS result. -
getApprovalCode
Gets the approval code.
-
AuthorizationResult(java.lang.String, com.aoapps.payments.TransactionResult.CommunicationResult, java.lang.String, com.aoapps.payments.TransactionResult.ErrorCode, java.lang.String, java.lang.String, com.aoapps.payments.TokenizedCreditCard, java.lang.String, com.aoapps.payments.AuthorizationResult.ApprovalResult, java.lang.String, com.aoapps.payments.AuthorizationResult.DeclineReason, java.lang.String, com.aoapps.payments.AuthorizationResult.ReviewReason, java.lang.String, com.aoapps.payments.AuthorizationResult.CvvResult, java.lang.String, com.aoapps.payments.AuthorizationResult.AvsResult, java.lang.String)