Class Payment
java.lang.Object
com.broadleafcommerce.customer.service.provider.domain.Payment
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
@Deprecated(since="1.7.2",
forRemoval=true)
public class Payment
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.7.2, in favor of using PaymentTransactionServices as saved payment method
storage location.
This entity is designed to store payment methods associated to a Cart.
- Author:
- Chad Harchar (charchar), Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPayment()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.The collection of related addresses that may include billing or shipping addressesDeprecated, for removal: This API element is subject to removal in a future version.General use map to capture any additional attributes needed for this PaymentDeprecated, for removal: This API element is subject to removal in a future version.Gathers one of the payment's relatedaddressesby typecom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateDeprecated, for removal: This API element is subject to removal in a future version.A subset ofTrackinginformation to expose the context state for this object.Deprecated, for removal: This API element is subject to removal in a future version.A reference to the customer that owns this payment.Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any display properties for this PaymentDeprecated, for removal: This API element is subject to removal in a future version.The gateway used to process this payment.getId()Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment.getName()Deprecated, for removal: This API element is subject to removal in a future version.The name of this payment.Deprecated, for removal: This API element is subject to removal in a future version.The id of the entity that owns this payment.Deprecated, for removal: This API element is subject to removal in a future version.Describes the owner of the payment.Deprecated, for removal: This API element is subject to removal in a future version.Map to capture any information about the payment method needed to perform gateway transactionsbooleanDeprecated, for removal: This API element is subject to removal in a future version.Should the payment method be saved to the owning userbooleanDeprecated, for removal: This API element is subject to removal in a future version.since 1.7.2, in favor ofgetShouldSavePaymentForFutureUse()to support owning user types other than a customer (i.e.Deprecated, for removal: This API element is subject to removal in a future version.Transaction data representing each payment gateway interaction related to this payment.getType()Deprecated, for removal: This API element is subject to removal in a future version.The type of this payment like Credit Card or Gift Card.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.voidsetAddressByType(Map<String, Address> addressByType) Deprecated, for removal: This API element is subject to removal in a future version.The collection of related addresses that may include billing or shipping addressesvoidsetAttributes(Map<String, String> attributes) Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any additional attributes needed for this PaymentvoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) Deprecated, for removal: This API element is subject to removal in a future version.A subset ofTrackinginformation to expose the context state for this object.voidsetCustomerRef(CustomerRef customerRef) Deprecated, for removal: This API element is subject to removal in a future version.A reference to the customer that owns this payment.voidsetDisplayAttributes(Map<String, String> displayAttributes) Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any display properties for this PaymentvoidsetGatewayType(String gatewayType) Deprecated, for removal: This API element is subject to removal in a future version.The gateway used to process this payment.voidDeprecated, for removal: This API element is subject to removal in a future version.The id of this payment.voidDeprecated, for removal: This API element is subject to removal in a future version.The name of this payment.voidsetOwnerId(String ownerId) Deprecated, for removal: This API element is subject to removal in a future version.The id of the entity that owns this payment.voidsetOwnerType(String ownerType) Deprecated, for removal: This API element is subject to removal in a future version.Describes the owner of the payment.voidsetPaymentMethodProperties(Map<String, String> paymentMethodProperties) Deprecated, for removal: This API element is subject to removal in a future version.Map to capture any information about the payment method needed to perform gateway transactionsvoidsetShouldSavePaymentForFutureUse(boolean shouldSavePaymentForFutureUse) Deprecated, for removal: This API element is subject to removal in a future version.Should the payment method be saved to the owning user.voidsetShouldSavePaymentToCustomer(boolean shouldSavePaymentToCustomer) Deprecated.since 1.7.2, in favor ofshouldSavePaymentForFutureUseto support owning user types other than a customer (i.e.voidsetTransactions(List<PaymentTransaction> transactions) Deprecated, for removal: This API element is subject to removal in a future version.Transaction data representing each payment gateway interaction related to this payment.voidDeprecated, for removal: This API element is subject to removal in a future version.The type of this payment like Credit Card or Gift Card.toString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
Payment
public Payment()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getBillingAddress
Deprecated, for removal: This API element is subject to removal in a future version.Gathers one of the payment's relatedaddressesby type- Returns:
- The payment's related address identified by type
-
getShouldSavePaymentToCustomer
Deprecated, for removal: This API element is subject to removal in a future version.since 1.7.2, in favor ofgetShouldSavePaymentForFutureUse()to support owning user types other than a customer (i.e. account). -
getShouldSavePaymentForFutureUse
public boolean getShouldSavePaymentForFutureUse()Deprecated, for removal: This API element is subject to removal in a future version.Should the payment method be saved to the owning user- Returns:
- Should the payment method be saved to the owning user
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment.- Returns:
- The id of this payment.
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.The name of this payment. This name is typically something like "Visa ending in 1234".- Returns:
- The name of this payment.
-
getOwnerType
Deprecated, for removal: This API element is subject to removal in a future version.Describes the owner of the payment. For example, the payment could have originated with a cart or a subscription, therefore this value might be CART or SUBSCRIPTION.- Returns:
- The type describing the owner of the payment
-
getOwnerId
Deprecated, for removal: This API element is subject to removal in a future version.The id of the entity that owns this payment. For example, this may be a cart id, or a subscription billing cycle id.- Returns:
- The id of the entity that owns this payment.
-
getCustomerRef
Deprecated, for removal: This API element is subject to removal in a future version.A reference to the customer that owns this payment.- Returns:
- A reference to the customer that owns this payment.
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.The type of this payment like Credit Card or Gift Card.- Returns:
- The type of this payment like Credit Card or Gift Card.
-
getGatewayType
Deprecated, for removal: This API element is subject to removal in a future version.The gateway used to process this payment. Only a SINGLE payment gateway can modify transactions on a particular payment.- Returns:
- The gateway used to process this payment.
-
getAddressByType
Deprecated, for removal: This API element is subject to removal in a future version.The collection of related addresses that may include billing or shipping addresses- Returns:
- The collection of related addresses
-
getPaymentMethodProperties
Deprecated, for removal: This API element is subject to removal in a future version.Map to capture any information about the payment method needed to perform gateway transactions- Returns:
- Map to capture any information about the payment method needed to perform gateway transactions
-
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any additional attributes needed for this Payment- Returns:
- General use map to capture any additional attributes needed for this Payment
-
getDisplayAttributes
Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any display properties for this Payment- Returns:
- General use map to capture any display properties for this Payment
-
getTransactions
Deprecated, for removal: This API element is subject to removal in a future version.Transaction data representing each payment gateway interaction related to this payment.- Returns:
- Transactions related to this payment.
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()Deprecated, for removal: This API element is subject to removal in a future version.A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment.- Parameters:
id- The id of this payment.
-
setName
Deprecated, for removal: This API element is subject to removal in a future version.The name of this payment. This name is typically something like "Visa ending in 1234".- Parameters:
name- The name of this payment.
-
setOwnerType
Deprecated, for removal: This API element is subject to removal in a future version.Describes the owner of the payment. For example, the payment could have originated with a cart or a subscription, therefore this value might be CART or SUBSCRIPTION.- Parameters:
ownerType- The type describing the owner of the payment
-
setOwnerId
Deprecated, for removal: This API element is subject to removal in a future version.The id of the entity that owns this payment. For example, this may be a cart id, or a subscription billing cycle id.- Parameters:
ownerId- The id of the entity that owns this payment.
-
setCustomerRef
Deprecated, for removal: This API element is subject to removal in a future version.A reference to the customer that owns this payment.- Parameters:
customerRef- A reference to the customer that owns this payment.
-
setType
Deprecated, for removal: This API element is subject to removal in a future version.The type of this payment like Credit Card or Gift Card.- Parameters:
type- The type of this payment like Credit Card or Gift Card.
-
setGatewayType
Deprecated, for removal: This API element is subject to removal in a future version.The gateway used to process this payment. Only a SINGLE payment gateway can modify transactions on a particular payment.- Parameters:
gatewayType- The gateway used to process this payment.
-
setAddressByType
Deprecated, for removal: This API element is subject to removal in a future version.The collection of related addresses that may include billing or shipping addresses- Parameters:
addressByType- The collection of related addresses
-
setPaymentMethodProperties
Deprecated, for removal: This API element is subject to removal in a future version.Map to capture any information about the payment method needed to perform gateway transactions- Parameters:
paymentMethodProperties- Map to capture any information about the payment method needed to perform gateway transactions
-
setAttributes
Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any additional attributes needed for this Payment- Parameters:
attributes- General use map to capture any additional attributes needed for this Payment
-
setDisplayAttributes
Deprecated, for removal: This API element is subject to removal in a future version.General use map to capture any display properties for this Payment- Parameters:
displayAttributes- General use map to capture any display properties for this Payment
-
setShouldSavePaymentToCustomer
Deprecated.since 1.7.2, in favor ofshouldSavePaymentForFutureUseto support owning user types other than a customer (i.e. account). -
setShouldSavePaymentForFutureUse
public void setShouldSavePaymentForFutureUse(boolean shouldSavePaymentForFutureUse) Deprecated, for removal: This API element is subject to removal in a future version.Should the payment method be saved to the owning user.- Parameters:
shouldSavePaymentForFutureUse- Should the payment method be saved to the owning user
-
setTransactions
Deprecated, for removal: This API element is subject to removal in a future version.Transaction data representing each payment gateway interaction related to this payment.- Parameters:
transactions- Transactions related to this payment.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) Deprecated, for removal: This API element is subject to removal in a future version.A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
canEqual
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-