Class CheckoutProcessDto
java.lang.Object
com.broadleafcommerce.cartoperation.domain.checkout.CheckoutProcessDto
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes that can be added to this request in order to provide more information.com.broadleafcommerce.cart.client.domain.Cart
getCart()
ResolvedCart
for this checkout process request.com.broadleafcommerce.order.common.domain.CustomerRef
ResolvedCustomerRef
for this checkout process request representing the user submitting checkout.Miscellaneous internal attributes for this DTO.The originalCart.getStatus()
before checkout submission.ResolvedPaymentSummaries
for this checkout process request.Resolved payment lock tokens for this checkout process request.A collection ofPaymentNextActions
describing the required next steps for the payment.Convenient method to get a list ofPaymentSummaries
fromgetPaymentById()
.A unique id used to represent the request.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be added to this request in order to provide more information.void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) ResolvedCart
for this checkout process request.void
setCustomerRef
(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) ResolvedCustomerRef
for this checkout process request representing the user submitting checkout.void
setInternalAttributes
(Map<String, Object> internalAttributes) Miscellaneous internal attributes for this DTO.void
setOriginalCartStatus
(String originalCartStatus) The originalCart.getStatus()
before checkout submission.void
setPaymentById
(Map<String, PaymentSummary> paymentById) ResolvedPaymentSummaries
for this checkout process request.void
setPaymentLockTokens
(Map<String, String> paymentLockTokens) Resolved payment lock tokens for this checkout process request.void
setPaymentNextActions
(List<PaymentNextAction> paymentNextActions) A collection ofPaymentNextActions
describing the required next steps for the payment.void
setPaymentSummaries
(List<PaymentSummary> paymentSummaries) Convenient method to setgetPaymentById()
from a list ofPaymentSummaries
void
setRequestId
(String requestId) A unique id used to represent the request.toString()
-
Constructor Details
-
CheckoutProcessDto
public CheckoutProcessDto()
-
-
Method Details
-
getPaymentSummaries
Convenient method to get a list ofPaymentSummaries
fromgetPaymentById()
.- Returns:
- a list of
PaymentSummaries
fromgetPaymentById()
.
-
setPaymentSummaries
Convenient method to setgetPaymentById()
from a list ofPaymentSummaries
- Parameters:
paymentSummaries
- a list ofPaymentSummaries
used to setgetPaymentById()
.
-
getRequestId
A unique id used to represent the request. This value can be used to link various persisted entities/values to the originating request. -
getOriginalCartStatus
The originalCart.getStatus()
before checkout submission. -
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()ResolvedCart
for this checkout process request. -
getCustomerRef
@Nullable public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()ResolvedCustomerRef
for this checkout process request representing the user submitting checkout. -
getPaymentLockTokens
Resolved payment lock tokens for this checkout process request. -
getPaymentById
ResolvedPaymentSummaries
for this checkout process request. -
getPaymentNextActions
A collection ofPaymentNextActions
describing the required next steps for the payment.- Returns:
- A collection of
PaymentNextActions
describing the required next steps for the payment.
-
getInternalAttributes
Miscellaneous internal attributes for this DTO. Distinguished fromgetAdditionalAttributes()
in that this map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with processing the cart's checkout.- Returns:
- Miscellaneous internal attributes for this DTO.
-
getAdditionalAttributes
Miscellaneous attributes that can be added to this request in order to provide more information. -
setRequestId
A unique id used to represent the request. This value can be used to link various persisted entities/values to the originating request. -
setOriginalCartStatus
The originalCart.getStatus()
before checkout submission. -
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) ResolvedCart
for this checkout process request. -
setCustomerRef
public void setCustomerRef(@Nullable com.broadleafcommerce.order.common.domain.CustomerRef customerRef) ResolvedCustomerRef
for this checkout process request representing the user submitting checkout. -
setPaymentLockTokens
Resolved payment lock tokens for this checkout process request. -
setPaymentById
ResolvedPaymentSummaries
for this checkout process request. -
setPaymentNextActions
A collection ofPaymentNextActions
describing the required next steps for the payment.- Parameters:
paymentNextActions
- A collection ofPaymentNextActions
describing the required next steps for the payment.
-
setInternalAttributes
Miscellaneous internal attributes for this DTO. Distinguished fromgetAdditionalAttributes()
in that this map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with processing the cart's checkout.- Parameters:
internalAttributes
- Miscellaneous internal attributes for this DTO.
-
setAdditionalAttributes
Miscellaneous attributes that can be added to this request in order to provide more information. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-