Class CartHistoryResponse
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartHistoryResponse
- All Implemented Interfaces:
Serializable
A DTO object is used for returning the cart with hydrated payments if requested.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
List<com.broadleafcommerce.order.common.domain.Adjustment>
List<com.broadleafcommerce.order.common.domain.CampaignRef>
com.broadleafcommerce.cart.client.domain.Cart
getCart()
List<com.broadleafcommerce.cart.client.domain.CartAlert>
List<com.broadleafcommerce.cart.client.domain.CartItem>
List<com.broadleafcommerce.cart.client.domain.CartItem>
com.broadleafcommerce.cart.client.domain.CartPricing
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
javax.money.CurrencyUnit
com.broadleafcommerce.order.common.domain.CustomerRef
List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup>
getId()
com.broadleafcommerce.cart.client.domain.CartActionAudit
getName()
The payments for this cart.int
getType()
List<com.broadleafcommerce.order.common.domain.Voucher>
int
hashCode()
boolean
boolean
isPriced()
boolean
void
setAdjustments
(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments) void
setApprovalRequestedDate
(Instant approvalRequestedDate) void
setApproverEmail
(String approverEmail) void
setAssignedSalesRepEmail
(String assignedSalesRepEmail) void
setAssignedSalesRepId
(String assignedSalesRepId) void
setAttributeChoices
(Map<String, com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices) void
setAttributes
(Map<String, Object> attributes) void
setCampaignRefs
(List<com.broadleafcommerce.order.common.domain.CampaignRef> campaignRefs) void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) void
setCartAlerts
(List<com.broadleafcommerce.cart.client.domain.CartAlert> cartAlerts) void
setCartItems
(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) void
setCartPricing
(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing) void
setCheckoutSubmissions
(Map<String, Instant> checkoutSubmissions) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setCreateDate
(Instant createDate) void
setCurrency
(javax.money.CurrencyUnit currencyUnit) void
setCustomerRef
(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) void
setEmailAddress
(String emailAddress) void
setExpirationDate
(Instant expirationDate) void
setFulfillmentGroups
(List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> fulfillmentGroups) void
void
setInternalAttributes
(Map<String, Object> internalAttributes) void
setLastCatalogReprice
(Instant lastCatalogReprice) void
setLastUpdatedAudit
(com.broadleafcommerce.cart.client.domain.CartActionAudit lastUpdatedAudit) void
void
void
setOfferCodes
(List<String> offerCodes) void
setOrderNumber
(String orderNumber) void
setPayments
(List<PaymentSummary> payments) The payments for this cart.void
setPriced
(boolean isPriced) void
void
setSubmitDate
(Instant submitDate) void
setTaxEstimated
(boolean isTaxEstimated) void
void
setVersion
(Integer version) void
setVouchers
(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers) toString()
-
Constructor Details
-
CartHistoryResponse
public CartHistoryResponse()
-
-
Method Details
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart() -
getPayments
The payments for this cart. -
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) -
setPayments
The payments for this cart. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getQuantity
public int getQuantity() -
isAnonymous
public boolean isAnonymous() -
setCurrency
public void setCurrency(javax.money.CurrencyUnit currencyUnit) -
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getCartItemsWithDependentItems
-
getId
-
getName
-
getType
-
getStatus
-
getCustomerRef
public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef() -
getApprovalRequestedDate
-
getApproverEmail
-
getEmailAddress
-
getOrderNumber
-
getCreateDate
-
getSubmitDate
-
getLocale
-
getCartPricing
public com.broadleafcommerce.cart.client.domain.CartPricing getCartPricing() -
getCartItems
-
getFulfillmentGroups
-
getAdjustments
-
getOfferCodes
-
getVouchers
-
getCampaignRefs
-
getAssignedSalesRepId
-
getAssignedSalesRepEmail
-
getAttributes
-
getInternalAttributes
-
getAttributeChoices
-
getCheckoutSubmissions
-
isPriced
public boolean isPriced() -
isTaxEstimated
public boolean isTaxEstimated() -
getVersion
-
getCartAlerts
-
getLastCatalogReprice
-
getExpirationDate
-
getLastUpdatedAudit
public com.broadleafcommerce.cart.client.domain.CartActionAudit getLastUpdatedAudit() -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setId
-
setName
-
setType
-
setStatus
-
setCustomerRef
public void setCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) -
setApprovalRequestedDate
-
setApproverEmail
-
setEmailAddress
-
setOrderNumber
-
setCreateDate
-
setSubmitDate
-
setLocale
-
setCartPricing
public void setCartPricing(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing) -
setCartItems
-
setFulfillmentGroups
public void setFulfillmentGroups(List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> fulfillmentGroups) -
setAdjustments
-
setOfferCodes
-
setVouchers
-
setCampaignRefs
public void setCampaignRefs(List<com.broadleafcommerce.order.common.domain.CampaignRef> campaignRefs) -
setAssignedSalesRepId
-
setAssignedSalesRepEmail
-
setAttributes
-
setInternalAttributes
-
setAttributeChoices
-
setCheckoutSubmissions
-
setPriced
public void setPriced(boolean isPriced) -
setTaxEstimated
public void setTaxEstimated(boolean isTaxEstimated) -
setVersion
-
setCartAlerts
-
setLastCatalogReprice
-
setExpirationDate
-
setLastUpdatedAudit
public void setLastUpdatedAudit(com.broadleafcommerce.cart.client.domain.CartActionAudit lastUpdatedAudit) -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-