Class UpdateCartRequest

  • All Implemented Interfaces:
    Serializable

    public class UpdateCartRequest
    extends Object
    implements Serializable
    A request containing the new version of Cart for update or replace operations, along with a CartActionAudit to create if needed.
    See Also:
    Serialized Form
    • Constructor Detail

      • UpdateCartRequest

        public UpdateCartRequest()
    • Method Detail

      • getCart

        public com.broadleafcommerce.cart.client.domain.Cart getCart()
        An updated Cart object.

        The usages of JsonIgnore, Delegate, and new Cart(); are to support the old approach of sending Cart as the request body for those endpoints, doing so will ensure backward compatibility such that the request body will still be deserialized as UpdateCartRequest.

      • getCartActionAuditToCreate

        @Nullable
        public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()
        A CartActionAudit to create along with the cart update.

        This is typically for B2B use cases where a CartActionAudit needs to be created when an action is performed on an account cart.

      • setCart

        public void setCart​(com.broadleafcommerce.cart.client.domain.Cart cart)
        An updated Cart object.

        The usages of JsonIgnore, Delegate, and new Cart(); are to support the old approach of sending Cart as the request body for those endpoints, doing so will ensure backward compatibility such that the request body will still be deserialized as UpdateCartRequest.

      • setCartActionAuditToCreate

        public void setCartActionAuditToCreate​(@Nullable
                                               com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)
        A CartActionAudit to create along with the cart update.

        This is typically for B2B use cases where a CartActionAudit needs to be created when an action is performed on an account cart.

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getQuantity

        public int getQuantity()
      • isAnonymous

        public boolean isAnonymous()
      • setCurrency

        public void setCurrency​(javax.money.CurrencyUnit currencyUnit)
      • getCurrency

        public javax.money.CurrencyUnit getCurrency()
      • getCartItemsWithDependentItems

        public List<com.broadleafcommerce.cart.client.domain.CartItem> getCartItemsWithDependentItems()
      • getId

        public String getId()
      • getName

        public String getName()
      • getStatus

        public String getStatus()
      • getCustomerRef

        public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()
      • getApprovalRequestedDate

        public Instant getApprovalRequestedDate()
      • getApproverEmail

        public String getApproverEmail()
      • getEmailAddress

        public String getEmailAddress()
      • getOrderNumber

        public String getOrderNumber()
      • getCreateDate

        public Instant getCreateDate()
      • getSubmitDate

        public Instant getSubmitDate()
      • getLocale

        public Locale getLocale()
      • getCartPricing

        public com.broadleafcommerce.cart.client.domain.CartPricing getCartPricing()
      • getCartItems

        public List<com.broadleafcommerce.cart.client.domain.CartItem> getCartItems()
      • getFulfillmentGroups

        public List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> getFulfillmentGroups()
      • getAdjustments

        public List<com.broadleafcommerce.order.common.domain.Adjustment> getAdjustments()
      • getOfferCodes

        public List<String> getOfferCodes()
      • getVouchers

        public List<com.broadleafcommerce.order.common.domain.Voucher> getVouchers()
      • getCampaignRefs

        public List<com.broadleafcommerce.order.common.domain.CampaignRef> getCampaignRefs()
      • getInternalAttributes

        public Map<String,​Object> getInternalAttributes()
      • getAttributeChoices

        public Map<String,​com.broadleafcommerce.order.common.domain.AttributeChoiceValue> getAttributeChoices()
      • getCheckoutSubmissions

        public Map<String,​Instant> getCheckoutSubmissions()
      • isPriced

        public boolean isPriced()
      • isTaxEstimated

        public boolean isTaxEstimated()
      • getVersion

        public Integer getVersion()
      • getCartAlerts

        public List<com.broadleafcommerce.cart.client.domain.CartAlert> getCartAlerts()
      • getLastCatalogReprice

        public Instant getLastCatalogReprice()
      • getContextState

        public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      • setId

        public void setId​(String id)
      • setName

        public void setName​(String name)
      • setStatus

        public void setStatus​(String status)
      • setCustomerRef

        public void setCustomerRef​(com.broadleafcommerce.order.common.domain.CustomerRef customerRef)
      • setApprovalRequestedDate

        public void setApprovalRequestedDate​(Instant approvalRequestedDate)
      • setApproverEmail

        public void setApproverEmail​(String approverEmail)
      • setEmailAddress

        public void setEmailAddress​(String emailAddress)
      • setOrderNumber

        public void setOrderNumber​(String orderNumber)
      • setCreateDate

        public void setCreateDate​(Instant createDate)
      • setSubmitDate

        public void setSubmitDate​(Instant submitDate)
      • setLocale

        public void setLocale​(Locale locale)
      • setCartPricing

        public void setCartPricing​(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)
      • setCartItems

        public void setCartItems​(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)
      • setFulfillmentGroups

        public void setFulfillmentGroups​(List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> fulfillmentGroups)
      • setAdjustments

        public void setAdjustments​(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments)
      • setOfferCodes

        public void setOfferCodes​(List<String> offerCodes)
      • setVouchers

        public void setVouchers​(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)
      • setCampaignRefs

        public void setCampaignRefs​(List<com.broadleafcommerce.order.common.domain.CampaignRef> campaignRefs)
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
      • setInternalAttributes

        public void setInternalAttributes​(Map<String,​Object> internalAttributes)
      • setAttributeChoices

        public void setAttributeChoices​(Map<String,​com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices)
      • setCheckoutSubmissions

        public void setCheckoutSubmissions​(Map<String,​Instant> checkoutSubmissions)
      • setPriced

        public void setPriced​(boolean isPriced)
      • setTaxEstimated

        public void setTaxEstimated​(boolean isTaxEstimated)
      • setVersion

        public void setVersion​(Integer version)
      • setCartAlerts

        public void setCartAlerts​(List<com.broadleafcommerce.cart.client.domain.CartAlert> cartAlerts)
      • setLastCatalogReprice

        public void setLastCatalogReprice​(Instant lastCatalogReprice)
      • setContextState

        public void setContextState​(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)