| java.lang.Object org.ofbiz.order.shoppingcart.ShoppingCart
All known Subclasses: org.ofbiz.order.shoppingcart.WebShoppingCart,
Inner Class :public static class ShoppingCartItemGroup implements Serializable | |
Inner Class :public static class ProductPromoUseInfo implements Serializable | |
Inner Class :public static class CartShipInfo implements Serializable | |
Constructor Summary | |
protected | ShoppingCart() | public | ShoppingCart(ShoppingCart cart) Creates a new cloned ShoppingCart Object. | public | ShoppingCart(GenericDelegator delegator, String productStoreId, String webSiteId, Locale locale, String currencyUom, String billToCustomerPartyId, String billFromVendorPartyId) Creates new empty ShoppingCart object. | public | ShoppingCart(GenericDelegator delegator, String productStoreId, String webSiteId, Locale locale, String currencyUom) Creates new empty ShoppingCart object. | public | ShoppingCart(GenericDelegator delegator, String productStoreId, Locale locale, String currencyUom) Creates a new empty ShoppingCart object. |
Method Summary | |
public void | addAdditionalPartyRole(String partyId, String roleTypeId) Associates a party with a role to the order. | public int | addAdjustment(GenericValue adjustment) | public void | addContactMech(String contactMechPurposeTypeId, String contactMechId) | public void | addFreeShippingProductPromoAction(GenericValue productPromoAction) Adds a ProductPromoAction to be used for free shipping (must be of type free shipping, or nothing will be done). | public void | addInternalOrderNote(String note) | public int | addItem(int index, ShoppingCartItem item) Add an item to the shopping cart. | public String | addItemGroup(String groupName, String parentGroupNumber) | public int | addItemToEnd(String productId, Double amount, double quantity, Double unitPrice, HashMap features, HashMap attributes, String prodCatalogId, String itemType, LocalDispatcher dispatcher, Boolean triggerExternalOps, Boolean triggerPriceRules) Add an item to the shopping cart. | public int | addItemToEnd(String productId, Double amount, double quantity, Double unitPrice, HashMap features, HashMap attributes, String prodCatalogId, String itemType, LocalDispatcher dispatcher, Boolean triggerExternalOps, Boolean triggerPriceRules, Boolean skipInventoryChecks, Boolean skipProductChecks) Add an item to the shopping cart. | public int | addItemToEnd(ShoppingCartItem item) Add an item to the shopping cart. | public int | addNonProductItem(String itemType, String description, String categoryId, Double price, double quantity, Map attributes, String prodCatalogId, String itemGroupNumber, LocalDispatcher dispatcher) Add a non-product item to the shopping cart. | public int | addOrIncreaseItem(String productId, Double selectedAmountDbl, double quantity, Timestamp reservStart, Double reservLengthDbl, Double reservPersonsDbl, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map features, Map attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, String itemGroupNumber, String parentProductId, LocalDispatcher dispatcher) Add an item to the shopping cart, or if already there, increase the quantity. | public void | addOrderNote(String note) | public int | addOrderTerm(String termTypeId, Double termValue, Long termDays) | public int | addOrderTerm(String termTypeId, Double termValue, Long termDays, String description) | public int | addOrderTerm(GenericValue orderTerm) | public CartPaymentInfo | addPayment(String id) | public CartPaymentInfo | addPaymentAmount(String id, Double amount, String refNum, String authCode, boolean isSingleUse, boolean isPresent, boolean replace) | public CartPaymentInfo | addPaymentAmount(String id, Double amount, boolean isSingleUse) | public CartPaymentInfo | addPaymentAmount(String id, double amount, boolean isSingleUse) | public CartPaymentInfo | addPaymentAmount(String id, Double amount) | public CartPaymentInfo | addPaymentAmount(String id, double amount) | public void | addPaymentRef(String id, String ref, String authCode) | public String | addProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher) Adds a promotion code to the cart, checking if it is valid. | public void | addProductPromoUse(String productPromoId, String productPromoCodeId, double totalDiscountAmount, double quantityLeftInActions) | public int | addShipInfo() | protected boolean | checkShipItemInfo(CartShipInfo csi, CartShipInfo.CartShipItemInfo csii) | protected void | cleanUpShipGroups() | public void | clear() Clears out the cart. | public void | clearAllAdjustments() | public void | clearAllItemStatus() | public void | clearAllPromotionAdjustments() | public void | clearAllPromotionInformation() | public void | clearCartItemUseInPromoInfo() | public void | clearDeclinedPaymentMethodsFromOrder(GenericDelegator delegator, String orderId) remove declined payment methods for an order from cart. | public void | clearItemShipInfo(ShoppingCartItem item) | public void | clearPayment(String id) | public void | clearPayment(int index) | public void | clearPaymentMethodsById(List paymentMethodIdsToRemove) | public void | clearPayments() | public void | clearProductPromoUseInfo() | public synchronized void | confirmPromoRuleUse(String productPromoId, String productPromoRuleId) | public boolean | containAllWorkEffortCartItems() | public boolean | containAnyWorkEffortCartItems() | public boolean | containOnlyDigitalGoods() Check to see if the cart contains only Digital Goods, ie no Finished Goods and no Finished/Digital Goods, et cetera. | public void | createDropShipGroups(LocalDispatcher dispatcher) | public void | deleteItemGroup(String groupNumber) | public void | ensureItemsQuantity(List cartItems, LocalDispatcher dispatcher, double quantity) | public double | ensureItemsTotalQuantity(List cartItems, LocalDispatcher dispatcher, double quantity) | public void | explodeItems(List shoppingCartItems, LocalDispatcher dispatcher) Does an "explode", or "unitize" operation on a list of cart items. | protected void | finalize() | public List | findAllCartItems(String productId) Get all ShoppingCartItems from the cart object with the given productId. | public List | findAllCartItems(String productId, String groupNumber) | public List | findAllCartItemsInCategory(String productCategoryId, String groupNumber) | public ShoppingCartItem | findCartItem(String productId, Map features, Map attributes, String prodCatalogId, double selectedAmount) Get a ShoppingCartItem from the cart object. | public ShoppingCartItem | findCartItem(int index) Get a ShoppingCartItem from the cart object. | public ShoppingCartItem | findCartItem(String orderItemSeqId) | public Map | getAdditionalPartyRoleMap() | public List | getAdjustments() | public String | getAgreementId() | public Map | getAllDesiredAlternateGiftByActionCopy() | public Object | getAttribute(String name) | public String | getAutoOrderShoppingListId() | public String | getAutoSaveListId() | public GenericValue | getAutoUserLogin() | public String | getBillFromVendorPartyId() | public String | getBillToCustomerPartyId() | public double | getBillingAccountAmount() Returns the amount to be billed to the billing account. | public String | getBillingAccountId() Returns the billing message string. | public double | getBillingAccountPaymentPreferenceTotal() | public String | getCarrierPartyId(int idx) | public String | getCarrierPartyId() | public Timestamp | getCartCreatedTime() | public List | getCartItemsInGroup(String groupNumber) | public List | getCartItemsInNoGroup() | public String | getChannelType() | public String | getContactMech(String contactMechPurposeTypeId) | public double | getCreditCardPaymentPreferenceTotal() | public List | getCreditCards() | public String | getCurrency() Get the current currency setting. | public String | getDefaultItemComment() | public String | getDefaultItemDeliveryDate() | public Timestamp | getDefaultShipAfterDate() | public Timestamp | getDefaultShipBeforeDate() | public GenericDelegator | getDelegator() | public String | getDesiredAlternateGiftByAction(GenericPK productPromoActionPK) | public double | getDisplayGrandTotal() Returns the total from the cart, including tax/shipping. | public double | getDisplayRecurringSubTotal() | public double | getDisplaySubTotal() | public String | getEndUserCustomerPartyId() | public String | getExternalId() | public String | getFacilityId() | public Map | getFeatureIdQtyMap(int idx) Returns a Map of all features applied to products in the cart with quantities for a specific ship group. | public String | getFirstAttemptOrderId() Returns the first attempt order ID associated with this cart or null if no order has been created yet. | public List | getFreeShippingProductPromoActions() | public double | getGiftCardPaymentPreferenceTotal() | public List | getGiftCards() | public GenericValue | getGiftCertSettingFromStore(GenericDelegator delegator) | public String | getGiftMessage(int idx) | public String | getGiftMessage() | public double | getGrandTotal() Returns the total from the cart, including tax/shipping. | public boolean | getHoldOrder() | public String | getInternalCode() | public List | getInternalOrderNotes() | public String | getIsGift(int idx) | public String | getIsGift() | public ShoppingCart.ShoppingCartItemGroup | getItemGroupByNumber(String groupNumber) | public int | getItemIndex(ShoppingCartItem item) Returns this item's index. | public double | getItemShipGroupEstimate(int idx) | public double | getItemShipGroupQty(ShoppingCartItem item, int idx) | public double | getItemShipGroupQty(int itemIndex, int idx) | public double | getItemTotal() Returns the item-total in the cart (not including discount/tax/shipping). | public static List | getItemsProducts(List cartItems) | public static double | getItemsTotalQuantity(List cartItems) | public Timestamp | getLastListRestore() | public List | getLineListOrderedByBasePrice(boolean ascending) | public Locale | getLocale() | public String | getMaySplit(int idx) | public String | getMaySplit() | public String | getOrderAdditionalEmails() | public String | getOrderAttribute(String name) | public Map | getOrderContactMechIds() | public Timestamp | getOrderDate() | public String | getOrderId() Returns the order ID associated with this cart or null if no order has been created yet. | public String | getOrderName() | public List | getOrderNotes() | public double | getOrderOtherAdjustmentTotal() | public String | getOrderPartyId() | public double | getOrderPaymentPreferenceTotalByType(String paymentMethodTypeId) Get the total payment amount by payment type. | public double | getOrderShipping() | public List | getOrderTerms() | public String | getOrderType() Returns the order type. | public Double | getPartyDaysSinceCreated(Timestamp nowTimestamp) | public String | getPartyId() | public Double | getPaymentAmount(String id) | public CartPaymentInfo | getPaymentInfo(int index) | public CartPaymentInfo | getPaymentInfo(String id, String refNum, String authCode, Double amount, boolean update) | public CartPaymentInfo | getPaymentInfo(String id, String refNum, String authCode, Double amount) | public CartPaymentInfo | getPaymentInfo(String id) | public int | getPaymentInfoIndex(String id, String refNum) | public List | getPaymentInfos(boolean isPaymentMethod, boolean isPaymentMethodType, boolean hasRefNum) | public List | getPaymentMethodIds() | public String | getPaymentMethodTypeId(String paymentMethodId) | public List | getPaymentMethodTypeIds() | public List | getPaymentMethodTypes() | public List | getPaymentMethods() | public String | getPaymentRef(String id) | public double | getPaymentTotal() | public String | getPlacingCustomerPartyId() | public String | getPoNumber() Returns the po number. | public int | getProductPromoCodeUse(String productPromoCodeId) | public Set | getProductPromoCodesEntered() | public int | getProductPromoUseCount(String productPromoId) | public Iterator | getProductPromoUseInfoIter() | public double | getProductPromoUseTotalDiscount(String productPromoId) | public String | getProductStoreId() | public String | getQuoteId() | public Timestamp | getShipAfterDate(int idx) | public Timestamp | getShipAfterDate() | public Timestamp | getShipBeforeDate(int idx) | public Timestamp | getShipBeforeDate() | public String | getShipFromVendorPartyId() | public Map | getShipGroupItems(int idx) | public int | getShipGroupSize() | public List | getShipGroups() | public Map | getShipGroups(ShoppingCartItem item) | public Map | getShipGroups(int itemIndex) | public Map | getShipGroupsBySupplier(String supplierPartyId) | public CartShipInfo | getShipInfo(int idx) | public String | getShipToCustomerPartyId() | public GenericValue | getShipmentMethodType(int idx) Returns the shipment method type. | public String | getShipmentMethodTypeId(int idx) | public String | getShipmentMethodTypeId() | public List | getShippableItemInfo(int idx) | public double | getShippableQuantity(int idx) Returns the total SHIPPABLE quantity in the cart for a specific ship group. | public List | getShippableSizes(int idx) Returns a List of shippable item's size for a specific ship group. | public double | getShippableTotal(int idx) Returns the SHIPPABLE item-total in the cart for a specific ship group. | public double | getShippableWeight(int idx) Returns the total SHIPPABLE weight in the cart for a specific ship group. | public GenericValue | getShippingAddress(int idx) | public GenericValue | getShippingAddress() | public String | getShippingContactMechId(int idx) Returns the shipping contact mech id. | public String | getShippingContactMechId() | public String | getShippingInstructions(int idx) Returns the shipping instructions. | public String | getShippingInstructions() | public double | getSubTotal() Returns the sub-total in the cart (item-total - discount). | public double | getSubTotalForPromotions() Returns the sub-total in the cart (item-total - discount). | public String | getSupplierAgentPartyId() | public String | getSupplierPartyId(int idx) Returns the supplier for the given ship group (drop shipment). | public String | getTerminalId() | public double | getTotalQuantity() Returns the total quantity in the cart. | public double | getTotalSalesTax(int shipGroup) | public double | getTotalSalesTax() Returns the tax amount from the cart object. | public double | getTotalShipping() Returns the shipping amount from the cart object. | public double | getTotalWeight() Returns the total weight in the cart. | public String | getTransactionId() | public GenericValue | getUserLogin() | public String | getWebSiteId() | public void | handleNewUser(LocalDispatcher dispatcher) | public boolean | isOrderTermSet() | public boolean | isPaymentMethodType(String id) | public boolean | isPaymentSelected(String id) | public boolean | isPinRequiredForGC(GenericDelegator delegator) Determines whether pin numbers are required for gift cards, based on ProductStoreFinActSetting. | public boolean | isPurchaseOrder() | public boolean | isReadOnlyCart() | public boolean | isSalesOrder() | public boolean | isValidateGCFinAccount(GenericDelegator delegator) Returns whether the cart should validate gift cards against FinAccount (ie, internal gift certificates). | public List | items() Returns a Collection of items in the cart object. | public Iterator | iterator() Returns an iterator of cart items. | public List | makeAllAdjustments() | public List | makeAllOrderAttributes() | public List | makeAllOrderContactMechs() | public List | makeAllOrderItemAssociations() | public List | makeAllOrderItemAttributes() | public List | makeAllOrderItemContactMechs() | public List | makeAllOrderItemPriceInfos() | public List | makeAllOrderItemSurveyResponses() | public List | makeAllOrderPaymentInfos(LocalDispatcher dispatcher) | public List | makeAllQuoteAdjustments() make a list of all quote adjustments including header adjustments, line adjustments, and special adjustments (shipping and tax if applicable). | public List | makeAllShipGroupInfos() | public Map | makeCartMap(LocalDispatcher dispatcher, boolean explodeItems) | public List | makeOrderItemGroups() | public List | makeOrderItems() | public List | makeOrderItems(boolean explodeItems, LocalDispatcher dispatcher) | public CartPaymentInfo | makePaymentInfo(String id, String refNum, Double amount) | public List | makeProductPromoUses() | public List | makeWorkEfforts() | public void | moveCartItem(int fromIndex, int toIndex) Moves a line item to a differnt index. | public void | positionItemToGroup(int itemIndex, double quantity, int fromIndex, int toIndex, boolean clearEmptyGroups) | public void | positionItemToGroup(ShoppingCartItem item, double quantity, int fromIndex, int toIndex, boolean clearEmptyGroups) | public void | removeAdditionalPartyRole(String partyId, String roleTypeId) Removes a previously associated party to the order. | public void | removeAdjustment(int index) | public void | removeAdjustmentByType(String orderAdjustmentTypeId) | public void | removeAllDesiredAlternateGiftByActions() | public void | removeAllFreeShippingProductPromoActions() | public void | removeCartItem(ShoppingCartItem item, LocalDispatcher dispatcher) | public void | removeCartItem(int index, LocalDispatcher dispatcher) Remove an item from the cart object. | public String | removeContactMech(String contactMechPurposeTypeId) | public void | removeEmptyCartItems() Remove quantity 0 ShoppingCartItems from the cart object. | public void | removeExtraItems(List multipleItems, LocalDispatcher dispatcher, int maxItems) | public void | removeFreeShippingProductPromoAction(GenericPK productPromoActionPK) Removes a free shipping ProductPromoAction by trying to find one in the list with the same primary key. | public void | removeOrderAttribute(String name) | public void | removeOrderTerm(int index) | public void | removeOrderTerms() | public synchronized void | resetPromoRuleUse(String productPromoId, String productPromoRuleId) | public int | selectedPayments() | public void | setAgreementId(String agreementId) | public void | setAttribute(String name, Object value) | public void | setAutoOrderShoppingListId(String autoOrderShoppingListId) | public void | setAutoSaveListId(String id) | public void | setAutoUserLogin(GenericValue autoUserLogin, LocalDispatcher dispatcher) | protected void | setAutoUserLogin(GenericValue autoUserLogin) | public void | setBillFromVendorPartyId(String billFromVendorPartyId) | public void | setBillToCustomerPartyId(String billToCustomerPartyId) | public void | setBillingAccount(String billingAccountId, double amount) Sets the billing account id string. | public void | setCarrierPartyId(int idx, String carrierPartyId) | public void | setCarrierPartyId(String carrierPartyId) | public void | setChannelType(String channelType) | public void | setCurrency(LocalDispatcher dispatcher, String currencyUom) Sets the currency for the cart. | public void | setDefaultCheckoutOptions(LocalDispatcher dispatcher) | public void | setDefaultItemComment(String comment) | public void | setDefaultItemDeliveryDate(String date) | public void | setDefaultShipAfterDate(Timestamp defaultShipAfterDate) | public void | setDefaultShipBeforeDate(Timestamp defaultShipBeforeDate) | public void | setDesiredAlternateGiftByAction(GenericPK productPromoActionPK, String productId) | public void | setEndUserCustomerPartyId(String endUserCustomerPartyId) | public void | setExternalId(String externalId) | public void | setFacilityId(String facilityId) | public void | setFirstAttemptOrderId(String orderId) TODO: Sets the first attempt orderId for this cart. | public void | setGiftMessage(int idx, String giftMessage) | public void | setGiftMessage(String giftMessage) | public void | setHoldOrder(boolean b) | public void | setInternalCode(String internalCode) | public void | setIsGift(int idx, Boolean isGift) | public void | setIsGift(Boolean isGift) | public void | setItemShipGroupEstimate(double amount, int idx) | public void | setItemShipGroupQty(int itemIndex, double quantity, int idx) | public void | setItemShipGroupQty(ShoppingCartItem item, double quantity, int idx) | public void | setItemShipGroupQty(ShoppingCartItem item, int itemIndex, double quantity, int idx) | public void | setLastListRestore(Timestamp time) | public void | setLocale(Locale locale) | public void | setMaySplit(int idx, Boolean maySplit) | public void | setMaySplit(Boolean maySplit) | public void | setNextItemSeq(long seq) | public void | setOrderAdditionalEmails(String orderAdditionalEmails) | public void | setOrderAttribute(String name, String value) | public void | setOrderDate(Timestamp t) | public void | setOrderId(String orderId) Sets the orderId associated with this cart. | public void | setOrderName(String orderName) | public void | setOrderPartyId(String orderPartyId) | public void | setOrderTermSet(boolean orderTermSet) | public void | setOrderType(String orderType) Sets the order type. | public void | setPlacingCustomerPartyId(String placingCustomerPartyId) | public void | setPoNumber(String poNumber) Sets the PO Number in the cart. | public void | setProductStoreId(String productStoreId) This is somewhat of a dangerous method, changing the productStoreId changes a lot of stuff including:
- some items in the cart may not be valid in any catalog in the new store
- promotions need to be recalculated for the products that remain
- what else? lots of settings on the ProductStore...
So for now this can only be called if the cart is empty... | public void | setQuoteId(String quoteId) | public void | setReadOnlyCart(boolean readOnlyCart) | public void | setShipAfterDate(int idx, Timestamp shipAfterDate) | public void | setShipAfterDate(Timestamp shipAfterDate) | public void | setShipBeforeDate(int idx, Timestamp shipBeforeDate) | public void | setShipBeforeDate(Timestamp shipBeforeDate) | public void | setShipFromVendorPartyId(String shipFromVendorPartyId) | public void | setShipGroupShipDatesFromItem(ShoppingCartItem item) Updates the shipBefore and shipAfterDates of all ship groups that the item belongs to, re-setting
ship group ship before date if item ship before date is before it and ship group ship after date if
item ship after date is before it. | public void | setShipToCustomerPartyId(String shipToCustomerPartyId) | public void | setShipmentMethodTypeId(int idx, String shipmentMethodTypeId) Sets the shipment method type. | public void | setShipmentMethodTypeId(String shipmentMethodTypeId) | public void | setShippingContactMechId(int idx, String shippingContactMechId) Sets the shipping contact mech id. | public void | setShippingContactMechId(String shippingContactMechId) | public void | setShippingInstructions(int idx, String shippingInstructions) Sets the shipping instructions. | public void | setShippingInstructions(String shippingInstructions) | public void | setSupplierAgentPartyId(String supplierAgentPartyId) | public void | setSupplierPartyId(int idx, String supplierPartyId) Sets the supplier for the given ship group (drop shipment). | public void | setTerminalId(String terminalId) | public void | setTransactionId(String transactionId) | public void | setUserLogin(GenericValue userLogin, LocalDispatcher dispatcher) | protected void | setUserLogin(GenericValue userLogin) | public void | setViewCartOnAdd(boolean viewCartOnAdd) Returns true if the user wishes to view the cart everytime an item is added. | public void | setWebSiteId(String webSiteId) | public boolean | shippingApplies() | public int | size() Returns the number of items in the cart object. | public boolean | taxApplies() | public boolean | viewCartOnAdd() Returns true if the user wishes to view the cart everytime an item is added. |
autoOrderShoppingListId | protected String autoOrderShoppingListId(Code) | | |
billFromVendorPartyId | protected String billFromVendorPartyId(Code) | | |
billToCustomerPartyId | protected String billToCustomerPartyId(Code) | | |
endUserCustomerPartyId | protected String endUserCustomerPartyId(Code) | | |
holdOrder | protected boolean holdOrder(Code) | | |
nextGroupNumber | protected long nextGroupNumber(Code) | | |
orderPartyId | protected String orderPartyId(Code) | | General partyId for the Order, all other IDs default to this one if not specified explicitly
|
placingCustomerPartyId | protected String placingCustomerPartyId(Code) | | |
resource_error | final public static String resource_error(Code) | | |
rounding | final public static int rounding(Code) | | |
scale | final public static int scale(Code) | | |
shipFromVendorPartyId | protected String shipFromVendorPartyId(Code) | | |
shipToCustomerPartyId | protected String shipToCustomerPartyId(Code) | | |
supplierAgentPartyId | protected String supplierAgentPartyId(Code) | | |
taxCalcScale | final public static int taxCalcScale(Code) | | |
taxFinalScale | final public static int taxFinalScale(Code) | | |
taxRounding | final public static int taxRounding(Code) | | |
ShoppingCart | protected ShoppingCart()(Code) | | don't allow empty constructor
|
ShoppingCart | public ShoppingCart(ShoppingCart cart)(Code) | | Creates a new cloned ShoppingCart Object.
|
addAdditionalPartyRole | public void addAdditionalPartyRole(String partyId, String roleTypeId)(Code) | | Associates a party with a role to the order.
Parameters: partyId - identifier of the party to associate to order Parameters: roleTypeId - identifier of the role used in party-order association |
addAdjustment | public int addAdjustment(GenericValue adjustment)(Code) | | Add an adjustment to the order; don't worry about setting the orderId, orderItemSeqId or orderAdjustmentId; they will be set when the order is created
|
addContactMech | public void addContactMech(String contactMechPurposeTypeId, String contactMechId)(Code) | | Add a contact mech to this purpose; the contactMechPurposeTypeId is required
|
addFreeShippingProductPromoAction | public void addFreeShippingProductPromoAction(GenericValue productPromoAction)(Code) | | Adds a ProductPromoAction to be used for free shipping (must be of type free shipping, or nothing will be done).
|
addInternalOrderNote | public void addInternalOrderNote(String note)(Code) | | |
addItemGroup | public String addItemGroup(String groupName, String parentGroupNumber)(Code) | | Creates a new Item Group and returns the groupNumber that represents it
|
addItemToEnd | public int addItemToEnd(String productId, Double amount, double quantity, Double unitPrice, HashMap features, HashMap attributes, String prodCatalogId, String itemType, LocalDispatcher dispatcher, Boolean triggerExternalOps, Boolean triggerPriceRules) throws CartItemModifyException, ItemNotFoundException(Code) | | Add an item to the shopping cart.
|
addItemToEnd | public int addItemToEnd(String productId, Double amount, double quantity, Double unitPrice, HashMap features, HashMap attributes, String prodCatalogId, String itemType, LocalDispatcher dispatcher, Boolean triggerExternalOps, Boolean triggerPriceRules, Boolean skipInventoryChecks, Boolean skipProductChecks) throws CartItemModifyException, ItemNotFoundException(Code) | | Add an item to the shopping cart.
|
addOrIncreaseItem | public int addOrIncreaseItem(String productId, Double selectedAmountDbl, double quantity, Timestamp reservStart, Double reservLengthDbl, Double reservPersonsDbl, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map features, Map attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, String itemGroupNumber, String parentProductId, LocalDispatcher dispatcher) throws CartItemModifyException, ItemNotFoundException(Code) | | Add an item to the shopping cart, or if already there, increase the quantity.
the new/increased item index throws: CartItemModifyException - |
addOrderTerm | public int addOrderTerm(String termTypeId, Double termValue, Long termDays)(Code) | | Add an orderTerm to the order
|
addOrderTerm | public int addOrderTerm(String termTypeId, Double termValue, Long termDays, String description)(Code) | | Add an orderTerm to the order
|
addOrderTerm | public int addOrderTerm(GenericValue orderTerm)(Code) | | Add an orderTerm to the order
|
addPayment | public CartPaymentInfo addPayment(String id)(Code) | | adds a payment method/payment method type
|
addPaymentAmount | public CartPaymentInfo addPaymentAmount(String id, Double amount, String refNum, String authCode, boolean isSingleUse, boolean isPresent, boolean replace)(Code) | | adds a payment method/payment method type
|
addPaymentAmount | public CartPaymentInfo addPaymentAmount(String id, Double amount, boolean isSingleUse)(Code) | | adds a payment method/payment method type
|
addPaymentAmount | public CartPaymentInfo addPaymentAmount(String id, double amount, boolean isSingleUse)(Code) | | adds a payment method/payment method type
|
addPaymentAmount | public CartPaymentInfo addPaymentAmount(String id, Double amount)(Code) | | adds a payment method/payment method type
|
addPaymentAmount | public CartPaymentInfo addPaymentAmount(String id, double amount)(Code) | | adds a payment method/payment method type
|
addProductPromoCode | public String addProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher)(Code) | | Adds a promotion code to the cart, checking if it is valid. If it is valid this will return null, otherwise it will return a message stating why it was not valid
Parameters: productPromoCodeId - The promotion code to check and add String that is null if valid, and added to cart, or an error message of the code was not valid and not added to the cart. |
addProductPromoUse | public void addProductPromoUse(String productPromoId, String productPromoCodeId, double totalDiscountAmount, double quantityLeftInActions)(Code) | | |
addShipInfo | public int addShipInfo()(Code) | | |
checkShipItemInfo | protected boolean checkShipItemInfo(CartShipInfo csi, CartShipInfo.CartShipItemInfo csii)(Code) | | |
cleanUpShipGroups | protected void cleanUpShipGroups()(Code) | | |
clear | public void clear()(Code) | | Clears out the cart.
|
clearAllAdjustments | public void clearAllAdjustments()(Code) | | |
clearAllItemStatus | public void clearAllItemStatus()(Code) | | |
clearAllPromotionAdjustments | public void clearAllPromotionAdjustments()(Code) | | |
clearAllPromotionInformation | public void clearAllPromotionInformation()(Code) | | |
clearCartItemUseInPromoInfo | public void clearCartItemUseInPromoInfo()(Code) | | |
clearDeclinedPaymentMethodsFromOrder | public void clearDeclinedPaymentMethodsFromOrder(GenericDelegator delegator, String orderId)(Code) | | remove declined payment methods for an order from cart. The idea is to call this after an attempted order is rejected
|
clearPayment | public void clearPayment(String id)(Code) | | removes a specific payment method/payment method type
|
clearPayment | public void clearPayment(int index)(Code) | | removes a specific payment info from the list
|
clearPaymentMethodsById | public void clearPaymentMethodsById(List paymentMethodIdsToRemove)(Code) | | remove all the paymentMethods based on the paymentMethodIds
|
clearPayments | public void clearPayments()(Code) | | clears all payment method/payment method types
|
clearProductPromoUseInfo | public void clearProductPromoUseInfo()(Code) | | |
confirmPromoRuleUse | public synchronized void confirmPromoRuleUse(String productPromoId, String productPromoRuleId)(Code) | | |
containAllWorkEffortCartItems | public boolean containAllWorkEffortCartItems()(Code) | | |
containAnyWorkEffortCartItems | public boolean containAnyWorkEffortCartItems()(Code) | | |
containOnlyDigitalGoods | public boolean containOnlyDigitalGoods()(Code) | | Check to see if the cart contains only Digital Goods, ie no Finished Goods and no Finished/Digital Goods, et cetera.
This is determined by making sure no Product has a type where ProductType.isPhysical!=N.
|
deleteItemGroup | public void deleteItemGroup(String groupNumber)(Code) | | |
explodeItems | public void explodeItems(List shoppingCartItems, LocalDispatcher dispatcher)(Code) | | Does an "explode", or "unitize" operation on a list of cart items.
Resulting state for each item with quantity X is X items of quantity 1.
Parameters: shoppingCartItems - Parameters: dispatcher - |
findAllCartItems | public List findAllCartItems(String productId)(Code) | | Get all ShoppingCartItems from the cart object with the given productId.
|
findAllCartItems | public List findAllCartItems(String productId, String groupNumber)(Code) | | Get all ShoppingCartItems from the cart object with the given productId and optional groupNumber to limit it to a specific item group
|
findAllCartItemsInCategory | public List findAllCartItemsInCategory(String productCategoryId, String groupNumber)(Code) | | Get all ShoppingCartItems from the cart object with the given productCategoryId and optional groupNumber to limit it to a specific item group
|
findCartItem | public ShoppingCartItem findCartItem(int index)(Code) | | Get a ShoppingCartItem from the cart object.
|
getAdditionalPartyRoleMap | public Map getAdditionalPartyRoleMap()(Code) | | |
getAdjustments | public List getAdjustments()(Code) | | Get a List of adjustments on the order (ie cart)
|
getAllDesiredAlternateGiftByActionCopy | public Map getAllDesiredAlternateGiftByActionCopy()(Code) | | |
getAutoOrderShoppingListId | public String getAutoOrderShoppingListId()(Code) | | |
getBillFromVendorPartyId | public String getBillFromVendorPartyId()(Code) | | |
getBillToCustomerPartyId | public String getBillToCustomerPartyId()(Code) | | |
getBillingAccountAmount | public double getBillingAccountAmount()(Code) | | Returns the amount to be billed to the billing account.
|
getBillingAccountId | public String getBillingAccountId()(Code) | | Returns the billing message string.
|
getBillingAccountPaymentPreferenceTotal | public double getBillingAccountPaymentPreferenceTotal()(Code) | | |
getCarrierPartyId | public String getCarrierPartyId(int idx)(Code) | | |
getCartItemsInNoGroup | public List getCartItemsInNoGroup()(Code) | | |
getContactMech | public String getContactMech(String contactMechPurposeTypeId)(Code) | | Get the contactMechId for this cart given the contactMechPurposeTypeId
|
getCreditCardPaymentPreferenceTotal | public double getCreditCardPaymentPreferenceTotal()(Code) | | |
getCurrency | public String getCurrency()(Code) | | Get the current currency setting.
|
getDefaultItemComment | public String getDefaultItemComment()(Code) | | |
getDefaultItemDeliveryDate | public String getDefaultItemDeliveryDate()(Code) | | |
getDesiredAlternateGiftByAction | public String getDesiredAlternateGiftByAction(GenericPK productPromoActionPK)(Code) | | |
getDisplayGrandTotal | public double getDisplayGrandTotal()(Code) | | Returns the total from the cart, including tax/shipping.
|
getDisplayRecurringSubTotal | public double getDisplayRecurringSubTotal()(Code) | | |
getDisplaySubTotal | public double getDisplaySubTotal()(Code) | | |
getEndUserCustomerPartyId | public String getEndUserCustomerPartyId()(Code) | | |
getFeatureIdQtyMap | public Map getFeatureIdQtyMap(int idx)(Code) | | Returns a Map of all features applied to products in the cart with quantities for a specific ship group.
|
getFirstAttemptOrderId | public String getFirstAttemptOrderId()(Code) | | Returns the first attempt order ID associated with this cart or null if no order has been created yet.
|
getFreeShippingProductPromoActions | public List getFreeShippingProductPromoActions()(Code) | | |
getGiftCardPaymentPreferenceTotal | public double getGiftCardPaymentPreferenceTotal()(Code) | | |
getGrandTotal | public double getGrandTotal()(Code) | | Returns the total from the cart, including tax/shipping.
|
getHoldOrder | public boolean getHoldOrder()(Code) | | |
getInternalOrderNotes | public List getInternalOrderNotes()(Code) | | |
getItemShipGroupEstimate | public double getItemShipGroupEstimate(int idx)(Code) | | |
getItemShipGroupQty | public double getItemShipGroupQty(int itemIndex, int idx)(Code) | | |
getItemTotal | public double getItemTotal()(Code) | | Returns the item-total in the cart (not including discount/tax/shipping).
|
getItemsProducts | public static List getItemsProducts(List cartItems)(Code) | | |
getItemsTotalQuantity | public static double getItemsTotalQuantity(List cartItems)(Code) | | |
getLineListOrderedByBasePrice | public List getLineListOrderedByBasePrice(boolean ascending)(Code) | | |
getMaySplit | public String getMaySplit(int idx)(Code) | | Returns Boolean.TRUE if the order may be split (null if unspecified)
|
getOrderAdditionalEmails | public String getOrderAdditionalEmails()(Code) | | |
getOrderContactMechIds | public Map getOrderContactMechIds()(Code) | | |
getOrderId | public String getOrderId()(Code) | | Returns the order ID associated with this cart or null if no order has been created yet.
|
getOrderOtherAdjustmentTotal | public double getOrderOtherAdjustmentTotal()(Code) | | |
getOrderPaymentPreferenceTotalByType | public double getOrderPaymentPreferenceTotalByType(String paymentMethodTypeId)(Code) | | Get the total payment amount by payment type. Specify null to get amount
over all types.
|
getOrderShipping | public double getOrderShipping()(Code) | | Returns the order level shipping amount
|
getOrderTerms | public List getOrderTerms()(Code) | | Get a List of orderTerms on the order (ie cart)
|
getOrderType | public String getOrderType()(Code) | | Returns the order type.
|
getPaymentAmount | public Double getPaymentAmount(String id)(Code) | | returns the payment method/payment method type amount
|
getPaymentInfo | public CartPaymentInfo getPaymentInfo(int index)(Code) | | Locates an existing CartPaymentInfo object by index
|
getPaymentInfo | public CartPaymentInfo getPaymentInfo(String id, String refNum, String authCode, Double amount, boolean update)(Code) | | Locates an existing (or creates a new) CartPaymentInfo object
|
getPaymentInfo | public CartPaymentInfo getPaymentInfo(String id, String refNum, String authCode, Double amount)(Code) | | Locates an existing (or creates a new) CartPaymentInfo object
|
getPaymentInfo | public CartPaymentInfo getPaymentInfo(String id)(Code) | | Locates an existing (or creates a new) CartPaymentInfo object
|
getPaymentInfoIndex | public int getPaymentInfoIndex(String id, String refNum)(Code) | | Locates the index of an existing CartPaymentInfo object or -1 if none found
|
getPaymentInfos | public List getPaymentInfos(boolean isPaymentMethod, boolean isPaymentMethodType, boolean hasRefNum)(Code) | | Returns the CartPaymentInfo objects which have matching fields
|
getPaymentMethodIds | public List getPaymentMethodIds()(Code) | | Returns the Payment Method Ids
|
getPaymentMethodTypeIds | public List getPaymentMethodTypeIds()(Code) | | Returns the Payment Method Ids
|
getPaymentMethodTypes | public List getPaymentMethodTypes()(Code) | | Returns a list of PaymentMethodType value objects selected in the cart
|
getPaymentMethods | public List getPaymentMethods()(Code) | | Returns a list of PaymentMethod value objects selected in the cart
|
getPaymentTotal | public double getPaymentTotal()(Code) | | returns the total payment amounts
|
getPlacingCustomerPartyId | public String getPlacingCustomerPartyId()(Code) | | |
getPoNumber | public String getPoNumber()(Code) | | Returns the po number.
|
getProductPromoCodeUse | public int getProductPromoCodeUse(String productPromoCodeId)(Code) | | |
getProductPromoCodesEntered | public Set getProductPromoCodesEntered()(Code) | | |
getProductPromoUseCount | public int getProductPromoUseCount(String productPromoId)(Code) | | |
getProductPromoUseInfoIter | public Iterator getProductPromoUseInfoIter()(Code) | | |
getProductPromoUseTotalDiscount | public double getProductPromoUseTotalDiscount(String productPromoId)(Code) | | |
getShipAfterDate | public Timestamp getShipAfterDate(int idx)(Code) | | Get ship after date for a particular ship group
Parameters: idx - |
getShipAfterDate | public Timestamp getShipAfterDate()(Code) | | Get ship after date for ship group 0
|
getShipBeforeDate | public Timestamp getShipBeforeDate(int idx)(Code) | | Get ship before date for a particular ship group
Parameters: idx - |
getShipBeforeDate | public Timestamp getShipBeforeDate()(Code) | | Get ship before date for ship group 0
|
getShipFromVendorPartyId | public String getShipFromVendorPartyId()(Code) | | |
getShipGroupItems | public Map getShipGroupItems(int idx)(Code) | | Returns the ShoppingCartItem (key) and quantity (value) associated with the ship group
|
getShipGroupSize | public int getShipGroupSize()(Code) | | |
getShipGroups | public Map getShipGroups(int itemIndex)(Code) | | |
getShipGroupsBySupplier | public Map getShipGroupsBySupplier(String supplierPartyId)(Code) | | |
getShipInfo | public CartShipInfo getShipInfo(int idx)(Code) | | |
getShipToCustomerPartyId | public String getShipToCustomerPartyId()(Code) | | |
getShipmentMethodType | public GenericValue getShipmentMethodType(int idx)(Code) | | Returns the shipment method type.
|
getShipmentMethodTypeId | public String getShipmentMethodTypeId(int idx)(Code) | | Returns the shipment method type ID
|
getShipmentMethodTypeId | public String getShipmentMethodTypeId()(Code) | | |
getShippableItemInfo | public List getShippableItemInfo(int idx)(Code) | | Returns a List of shippable item info (quantity, size, weight) for a specific ship group
|
getShippableQuantity | public double getShippableQuantity(int idx)(Code) | | Returns the total SHIPPABLE quantity in the cart for a specific ship group.
|
getShippableSizes | public List getShippableSizes(int idx)(Code) | | Returns a List of shippable item's size for a specific ship group.
|
getShippableTotal | public double getShippableTotal(int idx)(Code) | | Returns the SHIPPABLE item-total in the cart for a specific ship group.
|
getShippableWeight | public double getShippableWeight(int idx)(Code) | | Returns the total SHIPPABLE weight in the cart for a specific ship group.
|
getShippingContactMechId | public String getShippingContactMechId(int idx)(Code) | | Returns the shipping contact mech id.
|
getShippingContactMechId | public String getShippingContactMechId()(Code) | | |
getShippingInstructions | public String getShippingInstructions(int idx)(Code) | | Returns the shipping instructions.
|
getShippingInstructions | public String getShippingInstructions()(Code) | | |
getSubTotal | public double getSubTotal()(Code) | | Returns the sub-total in the cart (item-total - discount).
|
getSubTotalForPromotions | public double getSubTotalForPromotions()(Code) | | Returns the sub-total in the cart (item-total - discount).
|
getSupplierAgentPartyId | public String getSupplierAgentPartyId()(Code) | | |
getSupplierPartyId | public String getSupplierPartyId(int idx)(Code) | | Returns the supplier for the given ship group (drop shipment).
|
getTotalQuantity | public double getTotalQuantity()(Code) | | Returns the total quantity in the cart.
|
getTotalSalesTax | public double getTotalSalesTax(int shipGroup)(Code) | | |
getTotalSalesTax | public double getTotalSalesTax()(Code) | | Returns the tax amount from the cart object.
|
getTotalShipping | public double getTotalShipping()(Code) | | Returns the shipping amount from the cart object.
|
getTotalWeight | public double getTotalWeight()(Code) | | Returns the total weight in the cart.
|
getUserLogin | public GenericValue getUserLogin()(Code) | | Gets the userLogin associated with the cart; may be null
|
isOrderTermSet | public boolean isOrderTermSet()(Code) | | |
isPaymentMethodType | public boolean isPaymentMethodType(String id)(Code) | | |
isPaymentSelected | public boolean isPaymentSelected(String id)(Code) | | |
isPinRequiredForGC | public boolean isPinRequiredForGC(GenericDelegator delegator)(Code) | | Determines whether pin numbers are required for gift cards, based on ProductStoreFinActSetting. Default to true.
|
isPurchaseOrder | public boolean isPurchaseOrder()(Code) | | |
isReadOnlyCart | public boolean isReadOnlyCart()(Code) | | |
isSalesOrder | public boolean isSalesOrder()(Code) | | |
isValidateGCFinAccount | public boolean isValidateGCFinAccount(GenericDelegator delegator)(Code) | | Returns whether the cart should validate gift cards against FinAccount (ie, internal gift certificates). Defaults to false.
Parameters: delegator - |
items | public List items()(Code) | | Returns a Collection of items in the cart object.
|
iterator | public Iterator iterator()(Code) | | Returns an iterator of cart items.
|
makeAllAdjustments | public List makeAllAdjustments()(Code) | | make a list of all adjustments including order adjustments, order line adjustments, and special adjustments (shipping and tax if applicable)
|
makeAllOrderAttributes | public List makeAllOrderAttributes()(Code) | | |
makeAllOrderContactMechs | public List makeAllOrderContactMechs()(Code) | | make a list of OrderContactMechs from the ShoppingCart and the ShoppingCartItems
|
makeAllOrderItemAssociations | public List makeAllOrderItemAssociations()(Code) | | |
makeAllOrderItemAttributes | public List makeAllOrderItemAttributes()(Code) | | |
makeAllOrderItemContactMechs | public List makeAllOrderItemContactMechs()(Code) | | make a list of OrderContactMechs from the ShoppingCart and the ShoppingCartItems
|
makeAllOrderItemPriceInfos | public List makeAllOrderItemPriceInfos()(Code) | | make a list of OrderItemPriceInfos from the ShoppingCartItems
|
makeAllOrderItemSurveyResponses | public List makeAllOrderItemSurveyResponses()(Code) | | make a list of SurveyResponse object to update with order information set
|
makeAllOrderPaymentInfos | public List makeAllOrderPaymentInfos(LocalDispatcher dispatcher)(Code) | | make a list of all OrderPaymentPreferences and Billing info including all payment methods and types
|
makeAllQuoteAdjustments | public List makeAllQuoteAdjustments()(Code) | | make a list of all quote adjustments including header adjustments, line adjustments, and special adjustments (shipping and tax if applicable).
Internally, the quote adjustments are created from the order adjustments.
|
makeAllShipGroupInfos | public List makeAllShipGroupInfos()(Code) | | |
makeCartMap | public Map makeCartMap(LocalDispatcher dispatcher, boolean explodeItems)(Code) | | Returns a Map of cart values to pass to the storeOrder service
|
makeOrderItemGroups | public List makeOrderItemGroups()(Code) | | |
makePaymentInfo | public CartPaymentInfo makePaymentInfo(String id, String refNum, Double amount)(Code) | | Creates a CartPaymentInfo object
|
makeProductPromoUses | public List makeProductPromoUses()(Code) | | |
makeWorkEfforts | public List makeWorkEfforts()(Code) | | create WorkEfforts from the shoppingcart items when itemType = RENTAL_ORDER_ITEM
|
moveCartItem | public void moveCartItem(int fromIndex, int toIndex)(Code) | | Moves a line item to a differnt index.
|
positionItemToGroup | public void positionItemToGroup(int itemIndex, double quantity, int fromIndex, int toIndex, boolean clearEmptyGroups)(Code) | | |
positionItemToGroup | public void positionItemToGroup(ShoppingCartItem item, double quantity, int fromIndex, int toIndex, boolean clearEmptyGroups)(Code) | | |
removeAdditionalPartyRole | public void removeAdditionalPartyRole(String partyId, String roleTypeId)(Code) | | Removes a previously associated party to the order.
Parameters: partyId - identifier of the party to associate to order Parameters: roleTypeId - identifier of the role used in party-order association |
removeAdjustment | public void removeAdjustment(int index)(Code) | | |
removeAdjustmentByType | public void removeAdjustmentByType(String orderAdjustmentTypeId)(Code) | | go through the order adjustments and remove all adjustments with the given type
|
removeAllDesiredAlternateGiftByActions | public void removeAllDesiredAlternateGiftByActions()(Code) | | |
removeAllFreeShippingProductPromoActions | public void removeAllFreeShippingProductPromoActions()(Code) | | |
removeContactMech | public String removeContactMech(String contactMechPurposeTypeId)(Code) | | Remove the contactMechId from this cart given the contactMechPurposeTypeId
|
removeEmptyCartItems | public void removeEmptyCartItems()(Code) | | Remove quantity 0 ShoppingCartItems from the cart object.
|
removeFreeShippingProductPromoAction | public void removeFreeShippingProductPromoAction(GenericPK productPromoActionPK)(Code) | | Removes a free shipping ProductPromoAction by trying to find one in the list with the same primary key.
|
removeOrderAttribute | public void removeOrderAttribute(String name)(Code) | | |
removeOrderTerm | public void removeOrderTerm(int index)(Code) | | |
removeOrderTerms | public void removeOrderTerms()(Code) | | |
resetPromoRuleUse | public synchronized void resetPromoRuleUse(String productPromoId, String productPromoRuleId)(Code) | | |
selectedPayments | public int selectedPayments()(Code) | | |
setAgreementId | public void setAgreementId(String agreementId)(Code) | | |
setAutoOrderShoppingListId | public void setAutoOrderShoppingListId(String autoOrderShoppingListId)(Code) | | |
setAutoSaveListId | public void setAutoSaveListId(String id)(Code) | | |
setBillFromVendorPartyId | public void setBillFromVendorPartyId(String billFromVendorPartyId)(Code) | | |
setBillToCustomerPartyId | public void setBillToCustomerPartyId(String billToCustomerPartyId)(Code) | | |
setBillingAccount | public void setBillingAccount(String billingAccountId, double amount)(Code) | | Sets the billing account id string.
|
setCarrierPartyId | public void setCarrierPartyId(int idx, String carrierPartyId)(Code) | | |
setCarrierPartyId | public void setCarrierPartyId(String carrierPartyId)(Code) | | |
setChannelType | public void setChannelType(String channelType)(Code) | | |
setDefaultItemComment | public void setDefaultItemComment(String comment)(Code) | | |
setDefaultItemDeliveryDate | public void setDefaultItemDeliveryDate(String date)(Code) | | |
setDefaultShipAfterDate | public void setDefaultShipAfterDate(Timestamp defaultShipAfterDate)(Code) | | |
setDefaultShipBeforeDate | public void setDefaultShipBeforeDate(Timestamp defaultShipBeforeDate)(Code) | | |
setDesiredAlternateGiftByAction | public void setDesiredAlternateGiftByAction(GenericPK productPromoActionPK, String productId)(Code) | | |
setEndUserCustomerPartyId | public void setEndUserCustomerPartyId(String endUserCustomerPartyId)(Code) | | |
setExternalId | public void setExternalId(String externalId)(Code) | | |
setFacilityId | public void setFacilityId(String facilityId)(Code) | | |
setFirstAttemptOrderId | public void setFirstAttemptOrderId(String orderId)(Code) | | TODO: Sets the first attempt orderId for this cart.
|
setGiftMessage | public void setGiftMessage(int idx, String giftMessage)(Code) | | |
setGiftMessage | public void setGiftMessage(String giftMessage)(Code) | | |
setHoldOrder | public void setHoldOrder(boolean b)(Code) | | |
setInternalCode | public void setInternalCode(String internalCode)(Code) | | |
setItemShipGroupEstimate | public void setItemShipGroupEstimate(double amount, int idx)(Code) | | |
setItemShipGroupQty | public void setItemShipGroupQty(int itemIndex, double quantity, int idx)(Code) | | |
setItemShipGroupQty | public void setItemShipGroupQty(ShoppingCartItem item, int itemIndex, double quantity, int idx)(Code) | | |
setMaySplit | public void setMaySplit(int idx, Boolean maySplit)(Code) | | |
setOrderAdditionalEmails | public void setOrderAdditionalEmails(String orderAdditionalEmails)(Code) | | |
setOrderId | public void setOrderId(String orderId)(Code) | | Sets the orderId associated with this cart.
|
setOrderName | public void setOrderName(String orderName)(Code) | | |
setOrderPartyId | public void setOrderPartyId(String orderPartyId)(Code) | | |
setOrderTermSet | public void setOrderTermSet(boolean orderTermSet)(Code) | | |
setOrderType | public void setOrderType(String orderType)(Code) | | Sets the order type.
|
setPlacingCustomerPartyId | public void setPlacingCustomerPartyId(String placingCustomerPartyId)(Code) | | |
setPoNumber | public void setPoNumber(String poNumber)(Code) | | Sets the PO Number in the cart.
|
setProductStoreId | public void setProductStoreId(String productStoreId)(Code) | | This is somewhat of a dangerous method, changing the productStoreId changes a lot of stuff including:
- some items in the cart may not be valid in any catalog in the new store
- promotions need to be recalculated for the products that remain
- what else? lots of settings on the ProductStore...
So for now this can only be called if the cart is empty... otherwise it wil throw an exception
|
setReadOnlyCart | public void setReadOnlyCart(boolean readOnlyCart)(Code) | | |
setShipAfterDate | public void setShipAfterDate(int idx, Timestamp shipAfterDate)(Code) | | Set ship after date for a particular ship group
Parameters: idx - Parameters: shipAfterDate - |
setShipAfterDate | public void setShipAfterDate(Timestamp shipAfterDate)(Code) | | Set ship after date for a particular ship group
Parameters: shipAfterDate - |
setShipBeforeDate | public void setShipBeforeDate(int idx, Timestamp shipBeforeDate)(Code) | | Set ship before date for a particular ship group
Parameters: idx - Parameters: shipBeforeDate - |
setShipBeforeDate | public void setShipBeforeDate(Timestamp shipBeforeDate)(Code) | | Set ship before date for ship group 0
Parameters: shipBeforeDate - |
setShipFromVendorPartyId | public void setShipFromVendorPartyId(String shipFromVendorPartyId)(Code) | | |
setShipGroupShipDatesFromItem | public void setShipGroupShipDatesFromItem(ShoppingCartItem item)(Code) | | Updates the shipBefore and shipAfterDates of all ship groups that the item belongs to, re-setting
ship group ship before date if item ship before date is before it and ship group ship after date if
item ship after date is before it.
Parameters: item - |
setShipToCustomerPartyId | public void setShipToCustomerPartyId(String shipToCustomerPartyId)(Code) | | |
setShipmentMethodTypeId | public void setShipmentMethodTypeId(int idx, String shipmentMethodTypeId)(Code) | | Sets the shipment method type.
|
setShipmentMethodTypeId | public void setShipmentMethodTypeId(String shipmentMethodTypeId)(Code) | | |
setShippingContactMechId | public void setShippingContactMechId(int idx, String shippingContactMechId)(Code) | | Sets the shipping contact mech id.
|
setShippingContactMechId | public void setShippingContactMechId(String shippingContactMechId)(Code) | | |
setShippingInstructions | public void setShippingInstructions(int idx, String shippingInstructions)(Code) | | Sets the shipping instructions.
|
setShippingInstructions | public void setShippingInstructions(String shippingInstructions)(Code) | | |
setSupplierAgentPartyId | public void setSupplierAgentPartyId(String supplierAgentPartyId)(Code) | | |
setSupplierPartyId | public void setSupplierPartyId(int idx, String supplierPartyId)(Code) | | Sets the supplier for the given ship group (drop shipment).
|
setTerminalId | public void setTerminalId(String terminalId)(Code) | | |
setTransactionId | public void setTransactionId(String transactionId)(Code) | | |
setViewCartOnAdd | public void setViewCartOnAdd(boolean viewCartOnAdd)(Code) | | Returns true if the user wishes to view the cart everytime an item is added.
|
setWebSiteId | public void setWebSiteId(String webSiteId)(Code) | | |
shippingApplies | public boolean shippingApplies()(Code) | | Returns true when there are shippable items in the cart
|
size | public int size()(Code) | | Returns the number of items in the cart object.
|
taxApplies | public boolean taxApplies()(Code) | | Returns true when there are taxable items in the cart
|
viewCartOnAdd | public boolean viewCartOnAdd()(Code) | | Returns true if the user wishes to view the cart everytime an item is added.
|
|
|