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 ofCart
for update or replace operations, along with aCartActionAudit
to 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 boolean
canEqual(Object other)
boolean
equals(Object o)
List<com.broadleafcommerce.order.common.domain.Adjustment>
getAdjustments()
Instant
getApprovalRequestedDate()
String
getApproverEmail()
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.Cart
getCart()
An updatedCart
object.com.broadleafcommerce.cart.client.domain.CartActionAudit
getCartActionAuditToCreate()
ACartActionAudit
to 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.CartPricing
getCartPricing()
Map<String,Instant>
getCheckoutSubmissions()
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getContextState()
Instant
getCreateDate()
javax.money.CurrencyUnit
getCurrency()
com.broadleafcommerce.order.common.domain.CustomerRef
getCustomerRef()
String
getEmailAddress()
List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup>
getFulfillmentGroups()
String
getId()
Map<String,Object>
getInternalAttributes()
Instant
getLastCatalogReprice()
Locale
getLocale()
String
getName()
List<String>
getOfferCodes()
String
getOrderNumber()
int
getQuantity()
String
getStatus()
Instant
getSubmitDate()
Integer
getVersion()
List<com.broadleafcommerce.order.common.domain.Voucher>
getVouchers()
int
hashCode()
boolean
isAnonymous()
boolean
isPriced()
boolean
isTaxEstimated()
void
setAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments)
void
setApprovalRequestedDate(Instant approvalRequestedDate)
void
setApproverEmail(String approverEmail)
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)
An updatedCart
object.void
setCartActionAuditToCreate(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)
ACartActionAudit
to create along with the cart update.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
setFulfillmentGroups(List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> fulfillmentGroups)
void
setId(String id)
void
setInternalAttributes(Map<String,Object> internalAttributes)
void
setLastCatalogReprice(Instant lastCatalogReprice)
void
setLocale(Locale locale)
void
setName(String name)
void
setOfferCodes(List<String> offerCodes)
void
setOrderNumber(String orderNumber)
void
setPriced(boolean isPriced)
void
setStatus(String status)
void
setSubmitDate(Instant submitDate)
void
setTaxEstimated(boolean isTaxEstimated)
void
setVersion(Integer version)
void
setVouchers(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)
String
toString()
-
-
-
Method Detail
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()
An updatedCart
object.The usages of
JsonIgnore
,Delegate
, andnew Cart();
are to support the old approach of sendingCart
as 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()
ACartActionAudit
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 updatedCart
object.The usages of
JsonIgnore
,Delegate
, andnew Cart();
are to support the old approach of sendingCart
as 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)
ACartActionAudit
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)
-
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)
-
-