Class JpaPaymentTransaction
java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.domain.JpaPaymentTransaction
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,com.broadleafcommerce.data.tracking.core.Trackable,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,Serializable
@Entity(name="JpaPaymentTransaction")
@TrackableExtension(TENANT)
public class JpaPaymentTransaction
extends Object
implements com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
JPA-specific persisted-domain counterpart of
PaymentTransaction.
This is managed through JpaPayment.getTransactions().
- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()javax.money.MonetaryAmountClass<?>The JPA primary key.javax.money.CurrencyUnitThe currency that is used to convert between aMonetaryAmountand aBigDecimalvalue.A reference to the payment this transaction belongs to.com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTrackinggetType()intThe JPA managed version of this cart.inthashCode()booleanbooleanvoidsetAmount(javax.money.MonetaryAmount amount) voidsetAttributes(Map<String, String> attributes) voidsetContextId(String contextId) The JPA primary key.voidsetCurrency(javax.money.CurrencyUnit currency) The currency that is used to convert between aMonetaryAmountand aBigDecimalvalue.voidsetCustomerIpAddress(String customerIpAddress) voidsetDateRecorded(Instant dateRecorded) voidsetDeclineType(String declineType) voidsetFailureType(String failureType) voidsetFlaggedForManualReview(boolean flaggedForManualReview) voidsetGatewayMessage(String gatewayMessage) voidsetGatewayResponseCode(String gatewayResponseCode) voidsetGatewayTransactionId(String gatewayTransactionId) voidsetGatewayTransactionType(String gatewayTransactionType) voidsetIndeterminateResult(boolean indeterminateResult) voidsetManagementState(String managementState) voidsetManagementStateReason(String managementStateReason) voidsetManualReviewResult(String manualReviewResult) voidsetManualReviewResultReason(String manualReviewResultReason) voidsetParentSourceEntityId(String parentSourceEntityId) voidsetParentSourceEntityType(String parentSourceEntityType) voidsetParentTransactionId(String parentTransactionId) voidsetPayment(JpaPayment payment) A reference to the payment this transaction belongs to.voidsetPreviousRequestIds(List<String> previousRequestIds) voidsetRawResponse(String rawResponse) voidsetRequestId(String requestId) voidvoidsetSourceEntityId(String sourceEntityId) voidsetSourceEntityType(String sourceEntityType) voidvoidsetThreeDSecureVerificationUrl(String threeDSecureVerificationUrl) voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) voidsetTransactionReferenceId(String transactionReferenceId) voidvoidsetVersion(int version) The JPA managed version of this cart.org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStatesMethods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaPaymentTransaction
public JpaPaymentTransaction()
-
-
Method Details
-
getAmount
public javax.money.MonetaryAmount getAmount() -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) -
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
The JPA primary key.- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- the jpa primary key
-
getPayment
A reference to the payment this transaction belongs to. -
getType
- See Also:
-
getGatewayTransactionType
-
getManagementState
- See Also:
-
getManagementStateReason
-
getStatus
- See Also:
-
getTransactionReferenceId
-
getGatewayTransactionId
-
getSource
- See Also:
-
getParentSourceEntityType
-
getParentSourceEntityId
-
getSourceEntityType
- See Also:
-
getSourceEntityId
- See Also:
-
getRequestId
- See Also:
-
getPreviousRequestIds
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency that is used to convert between aMonetaryAmountand aBigDecimalvalue.The parent object will initialize this transient field prior to mapping between the business and persisted domains.
-
getDateRecorded
- See Also:
-
getGatewayResponseCode
-
getFailureType
- See Also:
-
getDeclineType
- See Also:
-
isFlaggedForManualReview
public boolean isFlaggedForManualReview() -
getManualReviewResult
-
getManualReviewResultReason
-
getThreeDSecureVerificationUrl
-
getGatewayMessage
- See Also:
-
getRawResponse
- See Also:
-
getParentTransactionId
-
getAttributes
- See Also:
-
getCustomerIpAddress
-
isIndeterminateResult
public boolean isIndeterminateResult() -
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- the
TenantJpaTrackinginformation for this - See Also:
-
TenantJpaTracking
-
getVersion
public int getVersion()The JPA managed version of this cart. This should not be modified by application code. See JPA's@Version. -
setContextId
The JPA primary key.- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Parameters:
_id- the jpa primary key
-
setPayment
A reference to the payment this transaction belongs to. -
setType
- See Also:
-
setGatewayTransactionType
-
setManagementState
- See Also:
-
setManagementStateReason
-
setStatus
- See Also:
-
setTransactionReferenceId
-
setGatewayTransactionId
-
setSource
- See Also:
-
setParentSourceEntityType
-
setParentSourceEntityId
-
setSourceEntityType
- See Also:
-
setSourceEntityId
- See Also:
-
setRequestId
- See Also:
-
setPreviousRequestIds
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency that is used to convert between aMonetaryAmountand aBigDecimalvalue.The parent object will initialize this transient field prior to mapping between the business and persisted domains.
-
setDateRecorded
- See Also:
-
setGatewayResponseCode
-
setFailureType
- See Also:
-
setDeclineType
- See Also:
-
setFlaggedForManualReview
public void setFlaggedForManualReview(boolean flaggedForManualReview) -
setManualReviewResult
-
setManualReviewResultReason
-
setThreeDSecureVerificationUrl
-
setGatewayMessage
- See Also:
-
setRawResponse
- See Also:
-
setParentTransactionId
-
setAttributes
- See Also:
-
setCustomerIpAddress
-
setIndeterminateResult
public void setIndeterminateResult(boolean indeterminateResult) -
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>- Parameters:
tracking- theTenantJpaTrackinginformation for this- See Also:
-
TenantJpaTracking
-
setVersion
public void setVersion(int version) The JPA managed version of this cart. This should not be modified by application code. See JPA's@Version. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-