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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
javax.money.MonetaryAmount
javax.money.MonetaryAmount
Class<?>
The JPA primary key.javax.money.CurrencyUnit
The currency that is used to convert between aMonetaryAmount
and aBigDecimal
value.javax.money.MonetaryAmount
javax.money.MonetaryAmount
javax.money.MonetaryAmount
com.broadleafcommerce.paymentgateway.domain.NextAction
A reference to the payment this transaction belongs to.javax.money.MonetaryAmount
javax.money.MonetaryAmount
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
getType()
int
The JPA managed version of this cart.int
hashCode()
boolean
boolean
void
setAdjustmentsTotal
(javax.money.MonetaryAmount adjustmentsTotal) void
setAmount
(javax.money.MonetaryAmount amount) void
setAttributes
(Map<String, String> attributes) void
setContextId
(String contextId) The JPA primary key.void
setCurrency
(javax.money.CurrencyUnit currency) The currency that is used to convert between aMonetaryAmount
and aBigDecimal
value.void
setCustomerIpAddress
(String customerIpAddress) void
setDateRecorded
(Instant dateRecorded) void
setDeclineType
(String declineType) void
setFailureType
(String failureType) void
setFeesTotal
(javax.money.MonetaryAmount feesTotal) void
setFlaggedForManualReview
(boolean flaggedForManualReview) void
setFulfillmentTotal
(javax.money.MonetaryAmount fulfillmentTotal) void
setGatewayMessage
(String gatewayMessage) void
setGatewayResponseCode
(String gatewayResponseCode) void
setGatewayTransactionId
(String gatewayTransactionId) void
setGatewayTransactionType
(String gatewayTransactionType) void
setIncludedTaxTotal
(javax.money.MonetaryAmount includedTaxTotal) void
setIndeterminateResult
(boolean indeterminateResult) void
setManagementState
(String managementState) void
setManagementStateReason
(String managementStateReason) void
setManualReviewResult
(String manualReviewResult) void
setManualReviewResultReason
(String manualReviewResultReason) void
setNextAction
(com.broadleafcommerce.paymentgateway.domain.NextAction nextAction) void
setParentSourceEntityId
(String parentSourceEntityId) void
setParentSourceEntityType
(String parentSourceEntityType) void
setParentTransactionId
(String parentTransactionId) void
setPayment
(JpaPayment payment) A reference to the payment this transaction belongs to.void
setPreviousRequestIds
(List<String> previousRequestIds) void
setRawResponse
(String rawResponse) void
setRequestId
(String requestId) void
void
setSourceEntityId
(String sourceEntityId) void
setSourceEntityType
(String sourceEntityType) void
void
setSubtotal
(javax.money.MonetaryAmount subtotal) void
setTaxTotal
(javax.money.MonetaryAmount taxTotal) void
setThreeDSecureVerificationUrl
(String threeDSecureVerificationUrl) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) void
setTransactionReferenceId
(String transactionReferenceId) void
void
setVersion
(int version) The JPA managed version of this cart.org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStates
Methods 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) -
getSubtotal
public javax.money.MonetaryAmount getSubtotal() -
setSubtotal
public void setSubtotal(javax.money.MonetaryAmount subtotal) -
getAdjustmentsTotal
public javax.money.MonetaryAmount getAdjustmentsTotal() -
setAdjustmentsTotal
public void setAdjustmentsTotal(javax.money.MonetaryAmount adjustmentsTotal) -
getFulfillmentTotal
public javax.money.MonetaryAmount getFulfillmentTotal() -
setFulfillmentTotal
public void setFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal) -
getFeesTotal
public javax.money.MonetaryAmount getFeesTotal() -
setFeesTotal
public void setFeesTotal(javax.money.MonetaryAmount feesTotal) -
getTaxTotal
public javax.money.MonetaryAmount getTaxTotal() -
setTaxTotal
public void setTaxTotal(javax.money.MonetaryAmount taxTotal) -
getIncludedTaxTotal
public javax.money.MonetaryAmount getIncludedTaxTotal() -
setIncludedTaxTotal
public void setIncludedTaxTotal(javax.money.MonetaryAmount includedTaxTotal) -
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
The JPA primary key.- Specified by:
getContextId
in 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 aMonetaryAmount
and aBigDecimal
value.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
-
getNextAction
public com.broadleafcommerce.paymentgateway.domain.NextAction getNextAction()- See Also:
-
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:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- the
TenantJpaTracking
information 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:
setContextId
in 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 aMonetaryAmount
and aBigDecimal
value.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
-
setNextAction
public void setNextAction(com.broadleafcommerce.paymentgateway.domain.NextAction nextAction) - See Also:
-
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:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
- Parameters:
tracking
- theTenantJpaTracking
information 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()
-