Class UpdateCartRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.provider.external.domain.cart.UpdateCartRequest
-
- All Implemented Interfaces:
Serializable
public class UpdateCartRequest extends Object implements Serializable
A request containing the new version ofCartfor update or replace operations, along with aCartActionAuditto create if needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateCartRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<com.broadleafcommerce.order.common.domain.Adjustment>getAdjustments()InstantgetApprovalRequestedDate()StringgetApproverEmail()Map<String,com.broadleafcommerce.order.common.domain.AttributeChoiceValue>getAttributeChoices()Map<String,Object>getAttributes()List<com.broadleafcommerce.order.common.domain.CampaignRef>getCampaignRefs()com.broadleafcommerce.cart.client.domain.CartgetCart()An updatedCartobject.com.broadleafcommerce.cart.client.domain.CartActionAuditgetCartActionAuditToCreate()ACartActionAuditto create along with the cart update.List<com.broadleafcommerce.cart.client.domain.CartAlert>getCartAlerts()List<com.broadleafcommerce.cart.client.domain.CartItem>getCartItems()List<com.broadleafcommerce.cart.client.domain.CartItem>getCartItemsWithDependentItems()com.broadleafcommerce.cart.client.domain.CartPricinggetCartPricing()Map<String,Instant>getCheckoutSubmissions()com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()InstantgetCreateDate()javax.money.CurrencyUnitgetCurrency()com.broadleafcommerce.order.common.domain.CustomerRefgetCustomerRef()StringgetEmailAddress()List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup>getFulfillmentGroups()StringgetId()Map<String,Object>getInternalAttributes()InstantgetLastCatalogReprice()LocalegetLocale()StringgetName()List<String>getOfferCodes()StringgetOrderNumber()intgetQuantity()StringgetStatus()InstantgetSubmitDate()IntegergetVersion()List<com.broadleafcommerce.order.common.domain.Voucher>getVouchers()inthashCode()booleanisAnonymous()booleanisPriced()booleanisTaxEstimated()voidsetAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments)voidsetApprovalRequestedDate(Instant approvalRequestedDate)voidsetApproverEmail(String approverEmail)voidsetAttributeChoices(Map<String,com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices)voidsetAttributes(Map<String,Object> attributes)voidsetCampaignRefs(List<com.broadleafcommerce.order.common.domain.CampaignRef> campaignRefs)voidsetCart(com.broadleafcommerce.cart.client.domain.Cart cart)An updatedCartobject.voidsetCartActionAuditToCreate(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)ACartActionAuditto create along with the cart update.voidsetCartAlerts(List<com.broadleafcommerce.cart.client.domain.CartAlert> cartAlerts)voidsetCartItems(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)voidsetCartPricing(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)voidsetCheckoutSubmissions(Map<String,Instant> checkoutSubmissions)voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)voidsetCreateDate(Instant createDate)voidsetCurrency(javax.money.CurrencyUnit currencyUnit)voidsetCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef)voidsetEmailAddress(String emailAddress)voidsetFulfillmentGroups(List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> fulfillmentGroups)voidsetId(String id)voidsetInternalAttributes(Map<String,Object> internalAttributes)voidsetLastCatalogReprice(Instant lastCatalogReprice)voidsetLocale(Locale locale)voidsetName(String name)voidsetOfferCodes(List<String> offerCodes)voidsetOrderNumber(String orderNumber)voidsetPriced(boolean isPriced)voidsetStatus(String status)voidsetSubmitDate(Instant submitDate)voidsetTaxEstimated(boolean isTaxEstimated)voidsetVersion(Integer version)voidsetVouchers(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)StringtoString()
-
-
-
Method Detail
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()
An updatedCartobject.The usages of
JsonIgnore,Delegate, andnew Cart();are to support the old approach of sendingCartas the request body for those endpoints, doing so will ensure backward compatibility such that the request body will still be deserialized asUpdateCartRequest.
-
getCartActionAuditToCreate
@Nullable public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()
ACartActionAuditto create along with the cart update.This is typically for B2B use cases where a
CartActionAuditneeds to be created when an action is performed on an account cart.
-
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
An updatedCartobject.The usages of
JsonIgnore,Delegate, andnew Cart();are to support the old approach of sendingCartas the request body for those endpoints, doing so will ensure backward compatibility such that the request body will still be deserialized asUpdateCartRequest.
-
setCartActionAuditToCreate
public void setCartActionAuditToCreate(@Nullable com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)ACartActionAuditto create along with the cart update.This is typically for B2B use cases where a
CartActionAuditneeds to be created when an action is performed on an account cart.
-
canEqual
protected boolean canEqual(Object other)
-
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()
-
getVouchers
public List<com.broadleafcommerce.order.common.domain.Voucher> getVouchers()
-
getCampaignRefs
public List<com.broadleafcommerce.order.common.domain.CampaignRef> getCampaignRefs()
-
getAttributeChoices
public Map<String,com.broadleafcommerce.order.common.domain.AttributeChoiceValue> getAttributeChoices()
-
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)
-
setVouchers
public void setVouchers(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)
-
setCampaignRefs
public void setCampaignRefs(List<com.broadleafcommerce.order.common.domain.CampaignRef> campaignRefs)
-
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)
-
-