Class CreateSavedPaymentMethodRequest
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.domain.CreateSavedPaymentMethodRequest
- All Implemented Interfaces:
Serializable
A request DTO used to create a
SavedPaymentMethod
.- Author:
- Chad Harchar (charchar), Chris Kittrell (ckittrell), Sunny Yu
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Map to capture any additional information about the paymentThe billing address associated with this saved payment method.General use map to capture any display properties for this saved payment methodThe gateway used to process this saved payment method.getName()
The name of this saved payment method.The id of the entity that owns this saved payment method.Describes the owning user of the saved payment method.Map to capture any information about the payment method needed to perform gateway transactionsgetType()
The type of this saved payment method like Credit Card or Gift Card.The visibility of the payment method to child accountsint
hashCode()
boolean
Whether this saved payment method is the default payment method for the owner entity.void
setAttributes
(Map<String, String> attributes) Map to capture any additional information about the paymentvoid
setBillingAddress
(Address billingAddress) The billing address associated with this saved payment method.void
setDefaultForOwner
(boolean defaultForOwner) Whether this saved payment method is the default payment method for the owner entity.void
setDisplayAttributes
(Map<String, String> displayAttributes) General use map to capture any display properties for this saved payment methodvoid
setGatewayReferenceId
(String gatewayReferenceId) void
setGatewayType
(String gatewayType) The gateway used to process this saved payment method.void
The name of this saved payment method.void
setNextAction
(SavedPaymentMethodNextAction nextAction) void
setOwningUserId
(String owningUserId) The id of the entity that owns this saved payment method.void
setOwningUserType
(String owningUserType) Describes the owning user of the saved payment method.void
setPaymentMethodProperties
(Map<String, String> paymentMethodProperties) Map to capture any information about the payment method needed to perform gateway transactionsvoid
The type of this saved payment method like Credit Card or Gift Card.void
setVisibleToChildren
(String visibleToChildren) The visibility of the payment method to child accountstoString()
-
Constructor Details
-
CreateSavedPaymentMethodRequest
public CreateSavedPaymentMethodRequest()
-
-
Method Details
-
getName
The name of this saved payment method. This name is typically something like "Visa ending in 1234".- Returns:
- The name of this saved payment method.
-
isDefaultForOwner
public boolean isDefaultForOwner()Whether this saved payment method is the default payment method for the owner entity.- Returns:
- True if this saved payment method is the default payment method for the owner, otherwise false.
-
getOwningUserType
Describes the owning user of the saved payment method. For example, the saved payment could belong to a Broadleaf customer or an account, therefore this value might be BLC_CUSTOMER, or BLC_ACCOUNT.- Returns:
- The type describing the owning user of the saved payment method
- See Also:
-
getOwningUserId
The id of the entity that owns this saved payment method. For example, this may be a customer id, or an account id.- Returns:
- The id of the entity that owns this saved payment method.
-
getType
The type of this saved payment method like Credit Card or Gift Card.- Returns:
- The type of this saved payment method like Credit Card or Gift Card.
- See Also:
-
DefaultPaymentTypes
-
getGatewayType
The gateway used to process this saved payment method. Only a SINGLE payment gateway can modify transactions on a particular payment.- Returns:
- The gateway used to process this saved payment method.
- See Also:
-
PaymentGatewayType
-
getPaymentMethodProperties
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
Map to capture any additional information about the payment- Returns:
- Map to capture any additional information about the payment
-
getDisplayAttributes
General use map to capture any display properties for this saved payment method- Returns:
- General use map to capture any display properties for this saved payment method
-
getBillingAddress
The billing address associated with this saved payment method.- Returns:
- The billing address associated with this saved payment method.
-
getVisibleToChildren
The visibility of the payment method to child accounts- Returns:
- The visibility of the payment method to child accounts
-
getGatewayReferenceId
-
getNextAction
- See Also:
-
setName
The name of this saved payment method. This name is typically something like "Visa ending in 1234".- Parameters:
name
- The name of this saved payment method.
-
setDefaultForOwner
public void setDefaultForOwner(boolean defaultForOwner) Whether this saved payment method is the default payment method for the owner entity.- Parameters:
name
- Whether this saved payment method is the default payment method for the owner entity.
-
setOwningUserType
Describes the owning user of the saved payment method. For example, the saved payment could belong to a Broadleaf customer or an account, therefore this value might be BLC_CUSTOMER, or BLC_ACCOUNT.- Parameters:
owningUserType
- The type describing the owning user of the saved payment method- See Also:
-
setOwningUserId
The id of the entity that owns this saved payment method. For example, this may be a customer id, or an account id.- Parameters:
owningUserId
- The id of the entity that owns this saved payment method.
-
setType
The type of this saved payment method like Credit Card or Gift Card.- Parameters:
type
- The type of this saved payment method like Credit Card or Gift Card.- See Also:
-
DefaultPaymentTypes
-
setGatewayType
The gateway used to process this saved payment method. Only a SINGLE payment gateway can modify transactions on a particular payment.- Parameters:
gatewayType
- The gateway used to process this saved payment method.- See Also:
-
PaymentGatewayType
-
setPaymentMethodProperties
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
Map to capture any additional information about the payment- Parameters:
attributes
- Map to capture any additional information about the payment
-
setDisplayAttributes
General use map to capture any display properties for this saved payment method- Parameters:
displayAttributes
- General use map to capture any display properties for this saved payment
-
setBillingAddress
The billing address associated with this saved payment method.- Parameters:
billingAddress
- The billing address associated with this saved payment method.
-
setVisibleToChildren
The visibility of the payment method to child accounts- Parameters:
visibleToChildren
- The visibility of the payment method to child accounts
-
setGatewayReferenceId
-
setNextAction
- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-