Class JpaPayment
java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.domain.JpaPayment
- 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.mapping.money.CurrencyProvider
,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
,javax.money.CurrencySupplier
@Entity
@TrackableExtension(TENANT)
public class JpaPayment
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, com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider, javax.money.CurrencySupplier
- 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
getName()
javax.money.MonetaryAmount
javax.money.MonetaryAmount
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
getType()
int
The JPA managed version of this payment.int
hashCode()
boolean
boolean
boolean
Deprecated.boolean
void
preFromMe
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) void
setAccessRestrictions
(List<String> accessRestrictions) void
setAddressesByType
(Map<String, Address> addressesByType) void
setAdjustmentsTotal
(javax.money.MonetaryAmount adjustmentsTotal) void
setAmount
(javax.money.MonetaryAmount amount) void
setAttributes
(Map<String, Object> 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
setCustomerId
(String customerId) void
setCustomerRegistered
(boolean isCustomerRegistered) void
setDisplayAttributes
(Map<String, Object> displayAttributes) void
setFeesTotal
(javax.money.MonetaryAmount feesTotal) void
setFulfillmentTotal
(javax.money.MonetaryAmount fulfillmentTotal) void
setGatewayType
(String gatewayType) void
setIncludedTaxTotal
(javax.money.MonetaryAmount includedTaxTotal) void
void
setOwnerId
(String ownerId) void
setOwnerType
(String ownerType) void
setOwningUserEmailAddress
(String owningUserEmailAddress) void
setOwningUserId
(String owningUserId) void
setOwningUserName
(String owningUserName) void
setOwningUserType
(String owningUserType) void
setPaymentMethodProperties
(Map<String, String> paymentMethodProperties) void
setSavedPaymentMethodId
(String savedPaymentMethodId) void
setShouldSavePaymentForFutureUse
(boolean shouldSavePaymentForFutureUse) void
setShouldSavePaymentToCustomer
(boolean shouldSavePaymentToCustomer) Deprecated.since 1.0.2, in favor ofshouldSavePaymentForFutureUse
to support owning user types other than a customer (i.e.void
setSingleUsePaymentMethod
(boolean isSingleUsePaymentMethod) void
setSubtotal
(javax.money.MonetaryAmount subtotal) void
setTaxTotal
(javax.money.MonetaryAmount taxTotal) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) void
setTransactions
(List<JpaPaymentTransaction> transactions) void
void
setVersion
(int version) The JPA managed version of this payment.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, 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
-
JpaPayment
public JpaPayment()
-
-
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
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
preFromMe
public void preFromMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @NonNull Object businessDomain) - Specified by:
preFromMe
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
-
getOwnerType
- See Also:
-
getOwnerId
- See Also:
-
getOwningUserType
- See Also:
-
getOwningUserId
- See Also:
-
getOwningUserName
- See Also:
-
getOwningUserEmailAddress
- See Also:
-
getCustomerId
- See Also:
-
isCustomerRegistered
public boolean isCustomerRegistered()- See Also:
-
getAccessRestrictions
- See Also:
-
getName
- See Also:
-
getSavedPaymentMethodId
- See Also:
-
getType
- See Also:
-
getGatewayType
- See Also:
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency that is used to convert between aMonetaryAmount
and aBigDecimal
value.- Specified by:
getCurrency
in interfacejavax.money.CurrencySupplier
-
getAddressesByType
- See Also:
-
getPaymentMethodProperties
- See Also:
-
getAttributes
- See Also:
-
getDisplayAttributes
- See Also:
-
getTransactions
- See Also:
-
isSingleUsePaymentMethod
public boolean isSingleUsePaymentMethod()- See Also:
-
isShouldSavePaymentToCustomer
Deprecated.since 1.0.2, in favor ofshouldSavePaymentForFutureUse
to support owning user types other than a customer (i.e. account).- See Also:
-
isShouldSavePaymentForFutureUse
public boolean isShouldSavePaymentForFutureUse() -
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 payment. 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
-
setOwnerType
- See Also:
-
setOwnerId
- See Also:
-
setOwningUserType
- See Also:
-
setOwningUserId
- See Also:
-
setOwningUserName
- See Also:
-
setOwningUserEmailAddress
- See Also:
-
setCustomerId
- See Also:
-
setCustomerRegistered
public void setCustomerRegistered(boolean isCustomerRegistered) - See Also:
-
setAccessRestrictions
- See Also:
-
setName
- See Also:
-
setSavedPaymentMethodId
- See Also:
-
setType
- See Also:
-
setGatewayType
- See Also:
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency that is used to convert between aMonetaryAmount
and aBigDecimal
value. -
setAddressesByType
- See Also:
-
setPaymentMethodProperties
- See Also:
-
setAttributes
- See Also:
-
setDisplayAttributes
- See Also:
-
setTransactions
- See Also:
-
setSingleUsePaymentMethod
public void setSingleUsePaymentMethod(boolean isSingleUsePaymentMethod) - See Also:
-
setShouldSavePaymentToCustomer
Deprecated.since 1.0.2, in favor ofshouldSavePaymentForFutureUse
to support owning user types other than a customer (i.e. account).- See Also:
-
setShouldSavePaymentForFutureUse
public void setShouldSavePaymentForFutureUse(boolean shouldSavePaymentForFutureUse) -
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 payment. This should not be modified by application code. See JPA's@Version
. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-
shouldSavePaymentForFutureUse
to support owning user types other than a customer (i.e.