Class OrderServices


  • public class OrderServices
    extends java.lang.Object
    Order Processing Services
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderServices()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> addItemToApprovedOrder​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> addOrderItemShipGroup​(DispatchContext dctx, java.util.Map<java.lang.String,​java.lang.Object> context)
      Create an OrderItemShipGroup record
      static java.util.Map<java.lang.String,​java.lang.Object> addOrderItemShipGroupAssoc​(DispatchContext dctx, java.util.Map<java.lang.String,​java.lang.Object> context)
      Create orderItem and shipGroup association
      static java.util.Map<java.lang.String,​java.lang.Object> addRoleType​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to add a role type to an order
      static java.util.Map<java.lang.String,​java.lang.Object> allowOrderSplit​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> callProcessOrderPayments​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> cancelFlaggedSalesOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> cancelOrderItem​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to cancel an order item quantity
      static java.util.Map<java.lang.String,​java.lang.Object> cancelRemainingPurchaseOrderItems​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Cancels remaining (unreceived) quantities for items of an order.
      static java.util.Map<java.lang.String,​java.lang.Object> checkCreateDropShipPurchaseOrders​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> checkDigitalItemFulfillment​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> checkItemStatus​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for checking to see if an order is fully completed or canceled
      static java.util.Map<java.lang.String,​java.lang.Object> countProductQuantityOrdered​(DispatchContext ctx, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createAlsoBoughtProductAssocs​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createAlsoBoughtProductAssocsForOrder​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createOrder​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for creating a new order
      static java.util.Map<java.lang.String,​java.lang.Object> createOrderFromShoppingCart​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createOrderNote​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to create a order header note.
      static java.util.Map<java.lang.String,​java.lang.Object> createPaymentFromPreference​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to create a payment using an order payment preference.
      static java.util.Map<java.lang.String,​java.lang.Object> createSimpleNonProductSalesOrder​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> deleteOrderItemShipGroup​(DispatchContext ctx, java.util.Map<?,​?> context)
      Remove an OrderItemShipGroup record
      static java.lang.String determineSingleFacilityFromOrder​(GenericValue orderHeader)  
      static java.util.Map<java.lang.String,​java.lang.Object> fulfillDigitalItems​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> generateReqsFromCancelledPOItems​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Generates a product requirement for the total cancelled quantity over all order items for each product
      static java.util.Map<java.lang.String,​java.lang.Object> getOrderAddress​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to get an order contact mech.
      static java.util.Map<java.lang.String,​java.lang.Object> getOrderHeaderInformation​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to get order header information as standard results.
      static java.util.Map<java.lang.String,​java.lang.Object> getOrderItemInvoicedAmountAndQuantity​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Determines the total amount invoiced for a given order item over all invoices by totalling the item subtotal (via OrderItemBilling), any adjustments for that item (via OrderAdjustmentBilling), and the item's share of any order-level adjustments (that calculated by applying the percentage of the items total that the item represents to the order-level adjustments total (also via OrderAdjustmentBilling).
      static java.util.Map<java.lang.String,​java.lang.Object> getOrderShippingAmount​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to get the total shipping for an order.
      static java.lang.String getProductName​(GenericValue product, java.lang.String orderItemName)  
      static java.lang.String getProductName​(GenericValue product, GenericValue orderItem)  
      static java.util.Map<java.lang.String,​java.lang.Object> invoiceServiceItems​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to invoice service items from order
      static java.util.Map<java.lang.String,​java.lang.Object> loadCartForUpdate​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massCancelOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massCancelRemainingPurchaseOrderItems​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massChangeApproved​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massChangeItemStatus​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context, java.lang.String statusId)  
      static java.util.Map<java.lang.String,​java.lang.Object> massChangeOrderStatus​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context, java.lang.String statusId)  
      static java.util.Map<java.lang.String,​java.lang.Object> massCreateFileForOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massHoldOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massPickOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massPrintOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massProcessOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massQuickShipOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> massRejectOrders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> processOrderPayments​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> recalcOrderShipping​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for checking and re-calc the shipping amount
      static java.util.Map<java.lang.String,​java.lang.Object> recalcOrderTax​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for checking and re-calc the tax amount
      static java.util.Map<java.lang.String,​java.lang.Object> removeRoleType​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to remove a role type from an order
      static void reserveInventory​(Delegator delegator, LocalDispatcher dispatcher, GenericValue userLogin, java.util.Locale locale, java.util.List<GenericValue> orderItemShipGroupInfo, java.util.List<java.lang.String> dropShipGroupIds, java.util.Map<java.lang.String,​GenericValue> itemValuesBySeqId, java.lang.String orderTypeId, java.lang.String productStoreId, java.util.List<java.lang.String> resErrorMessages)  
      static java.util.Map<java.lang.String,​java.lang.Object> resetGrandTotal​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for resetting the OrderHeader grandTotal
      static java.util.Map<java.lang.String,​java.lang.Object> runSubscriptionAutoReorders​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> saveUpdatedCartToOrder​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> sendOrderBackorderNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email a customer with order changes
      static java.util.Map<java.lang.String,​java.lang.Object> sendOrderChangeNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email a customer with order changes
      static java.util.Map<java.lang.String,​java.lang.Object> sendOrderCompleteNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email a customer with order changes
      static java.util.Map<java.lang.String,​java.lang.Object> sendOrderConfirmNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email a customer with initial order confirmation
      protected static java.util.Map<java.lang.String,​java.lang.Object> sendOrderNotificationScreen​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context, java.lang.String emailType)  
      static java.util.Map<java.lang.String,​java.lang.Object> sendOrderPayRetryNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email a customer with order payment retry results
      static java.util.Map<java.lang.String,​java.lang.Object> sendProcessNotification​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to email order notifications for pending actions
      static java.util.Map<java.lang.String,​java.lang.Object> setEmptyGrandTotals​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for setting the OrderHeader grandTotal for all OrderHeaders with no grandTotal
      static java.util.Map<java.lang.String,​java.lang.Object> setGiftMessage​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> setItemStatus​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for changing the status on order item(s)
      static java.util.Map<java.lang.String,​java.lang.Object> setOrderPaymentStatus​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> setOrderStatus​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service for changing the status on an order header
      static java.util.Map<java.lang.String,​java.lang.Object> setShippingInstructions​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> shoppingCartRemoteTest​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> shoppingCartTest​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateApprovedOrderItems​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateOrderItemShipGroupAssoc​(DispatchContext dctx, java.util.Map<java.lang.String,​java.lang.Object> context)
      Update orderItem and shipgroup association
      static java.util.Map<java.lang.String,​java.lang.Object> updateOrderPaymentPreference​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateShipGroupShipInfo​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      This service runs when you update shipping method of Order from order view page.
      static java.util.Map<java.lang.String,​java.lang.Object> updateTrackingNumber​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Service to update the order tracking number
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
      • taxDecimals

        public static final int taxDecimals
      • taxRounding

        public static final java.math.RoundingMode taxRounding
      • orderDecimals

        public static final int orderDecimals
      • orderRounding

        public static final java.math.RoundingMode orderRounding
      • ZERO

        public static final java.math.BigDecimal ZERO
    • Constructor Detail

      • OrderServices

        public OrderServices()
    • Method Detail

      • createOrder

        public static java.util.Map<java.lang.String,​java.lang.Object> createOrder​(DispatchContext ctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for creating a new order
      • countProductQuantityOrdered

        public static java.util.Map<java.lang.String,​java.lang.Object> countProductQuantityOrdered​(DispatchContext ctx,
                                                                                                         java.util.Map<java.lang.String,​java.lang.Object> context)
      • reserveInventory

        public static void reserveInventory​(Delegator delegator,
                                            LocalDispatcher dispatcher,
                                            GenericValue userLogin,
                                            java.util.Locale locale,
                                            java.util.List<GenericValue> orderItemShipGroupInfo,
                                            java.util.List<java.lang.String> dropShipGroupIds,
                                            java.util.Map<java.lang.String,​GenericValue> itemValuesBySeqId,
                                            java.lang.String orderTypeId,
                                            java.lang.String productStoreId,
                                            java.util.List<java.lang.String> resErrorMessages)
                                     throws GeneralException
        Throws:
        GeneralException
      • getProductName

        public static java.lang.String getProductName​(GenericValue product,
                                                      java.lang.String orderItemName)
      • determineSingleFacilityFromOrder

        public static java.lang.String determineSingleFacilityFromOrder​(GenericValue orderHeader)
      • resetGrandTotal

        public static java.util.Map<java.lang.String,​java.lang.Object> resetGrandTotal​(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for resetting the OrderHeader grandTotal
      • setEmptyGrandTotals

        public static java.util.Map<java.lang.String,​java.lang.Object> setEmptyGrandTotals​(DispatchContext ctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for setting the OrderHeader grandTotal for all OrderHeaders with no grandTotal
      • recalcOrderTax

        public static java.util.Map<java.lang.String,​java.lang.Object> recalcOrderTax​(DispatchContext ctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for checking and re-calc the tax amount
      • recalcOrderShipping

        public static java.util.Map<java.lang.String,​java.lang.Object> recalcOrderShipping​(DispatchContext ctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for checking and re-calc the shipping amount
      • checkItemStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> checkItemStatus​(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for checking to see if an order is fully completed or canceled
      • cancelOrderItem

        public static java.util.Map<java.lang.String,​java.lang.Object> cancelOrderItem​(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to cancel an order item quantity
      • setItemStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> setItemStatus​(DispatchContext ctx,
                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for changing the status on order item(s)
      • setOrderStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> setOrderStatus​(DispatchContext ctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service for changing the status on an order header
      • updateTrackingNumber

        public static java.util.Map<java.lang.String,​java.lang.Object> updateTrackingNumber​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to update the order tracking number
      • addRoleType

        public static java.util.Map<java.lang.String,​java.lang.Object> addRoleType​(DispatchContext ctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to add a role type to an order
      • removeRoleType

        public static java.util.Map<java.lang.String,​java.lang.Object> removeRoleType​(DispatchContext ctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to remove a role type from an order
      • sendOrderConfirmNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendOrderConfirmNotification​(DispatchContext ctx,
                                                                                                          java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email a customer with initial order confirmation
      • sendOrderCompleteNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendOrderCompleteNotification​(DispatchContext ctx,
                                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email a customer with order changes
      • sendOrderBackorderNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendOrderBackorderNotification​(DispatchContext ctx,
                                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email a customer with order changes
      • sendOrderChangeNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendOrderChangeNotification​(DispatchContext ctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email a customer with order changes
      • sendOrderPayRetryNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendOrderPayRetryNotification​(DispatchContext ctx,
                                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email a customer with order payment retry results
      • sendOrderNotificationScreen

        protected static java.util.Map<java.lang.String,​java.lang.Object> sendOrderNotificationScreen​(DispatchContext dctx,
                                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                                                                            java.lang.String emailType)
      • sendProcessNotification

        public static java.util.Map<java.lang.String,​java.lang.Object> sendProcessNotification​(DispatchContext ctx,
                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to email order notifications for pending actions
      • getOrderHeaderInformation

        public static java.util.Map<java.lang.String,​java.lang.Object> getOrderHeaderInformation​(DispatchContext dctx,
                                                                                                       java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to get order header information as standard results.
      • getOrderShippingAmount

        public static java.util.Map<java.lang.String,​java.lang.Object> getOrderShippingAmount​(DispatchContext dctx,
                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to get the total shipping for an order.
      • getOrderAddress

        public static java.util.Map<java.lang.String,​java.lang.Object> getOrderAddress​(DispatchContext dctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to get an order contact mech.
      • createOrderNote

        public static java.util.Map<java.lang.String,​java.lang.Object> createOrderNote​(DispatchContext dctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to create a order header note.
      • allowOrderSplit

        public static java.util.Map<java.lang.String,​java.lang.Object> allowOrderSplit​(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • cancelFlaggedSalesOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> cancelFlaggedSalesOrders​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • checkDigitalItemFulfillment

        public static java.util.Map<java.lang.String,​java.lang.Object> checkDigitalItemFulfillment​(DispatchContext dctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • fulfillDigitalItems

        public static java.util.Map<java.lang.String,​java.lang.Object> fulfillDigitalItems​(DispatchContext ctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • invoiceServiceItems

        public static java.util.Map<java.lang.String,​java.lang.Object> invoiceServiceItems​(DispatchContext dctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to invoice service items from order
      • addItemToApprovedOrder

        public static java.util.Map<java.lang.String,​java.lang.Object> addItemToApprovedOrder​(DispatchContext dctx,
                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • updateApprovedOrderItems

        public static java.util.Map<java.lang.String,​java.lang.Object> updateApprovedOrderItems​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • loadCartForUpdate

        public static java.util.Map<java.lang.String,​java.lang.Object> loadCartForUpdate​(DispatchContext dctx,
                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • saveUpdatedCartToOrder

        public static java.util.Map<java.lang.String,​java.lang.Object> saveUpdatedCartToOrder​(DispatchContext dctx,
                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • processOrderPayments

        public static java.util.Map<java.lang.String,​java.lang.Object> processOrderPayments​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • shoppingCartTest

        public static java.util.Map<java.lang.String,​java.lang.Object> shoppingCartTest​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • shoppingCartRemoteTest

        public static java.util.Map<java.lang.String,​java.lang.Object> shoppingCartRemoteTest​(DispatchContext dctx,
                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createPaymentFromPreference

        public static java.util.Map<java.lang.String,​java.lang.Object> createPaymentFromPreference​(DispatchContext dctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Service to create a payment using an order payment preference.
        Returns:
        Map
      • massChangeApproved

        public static java.util.Map<java.lang.String,​java.lang.Object> massChangeApproved​(DispatchContext dctx,
                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massCancelOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massCancelOrders​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massRejectOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massRejectOrders​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massHoldOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massHoldOrders​(DispatchContext dctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massProcessOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massProcessOrders​(DispatchContext dctx,
                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massChangeOrderStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> massChangeOrderStatus​(DispatchContext dctx,
                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                                                                   java.lang.String statusId)
      • massChangeItemStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> massChangeItemStatus​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                                                                  java.lang.String statusId)
      • massQuickShipOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massQuickShipOrders​(DispatchContext dctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massPickOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massPickOrders​(DispatchContext dctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massPrintOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massPrintOrders​(DispatchContext dctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massCreateFileForOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> massCreateFileForOrders​(DispatchContext dctx,
                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • massCancelRemainingPurchaseOrderItems

        public static java.util.Map<java.lang.String,​java.lang.Object> massCancelRemainingPurchaseOrderItems​(DispatchContext dctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • checkCreateDropShipPurchaseOrders

        public static java.util.Map<java.lang.String,​java.lang.Object> checkCreateDropShipPurchaseOrders​(DispatchContext ctx,
                                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • updateOrderPaymentPreference

        public static java.util.Map<java.lang.String,​java.lang.Object> updateOrderPaymentPreference​(DispatchContext dctx,
                                                                                                          java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • generateReqsFromCancelledPOItems

        public static java.util.Map<java.lang.String,​java.lang.Object> generateReqsFromCancelledPOItems​(DispatchContext dctx,
                                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Generates a product requirement for the total cancelled quantity over all order items for each product
        Parameters:
        dctx - the dispatch context
        context - the context
        Returns:
        the result of the service execution
      • cancelRemainingPurchaseOrderItems

        public static java.util.Map<java.lang.String,​java.lang.Object> cancelRemainingPurchaseOrderItems​(DispatchContext dctx,
                                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Cancels remaining (unreceived) quantities for items of an order. Does not consider received-but-rejected quantities.
        Parameters:
        dctx - the dispatch context
        context - the context
        Returns:
        cancels remaining (unreceived) quantities for items of an order
      • createSimpleNonProductSalesOrder

        public static java.util.Map<java.lang.String,​java.lang.Object> createSimpleNonProductSalesOrder​(DispatchContext dctx,
                                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createOrderFromShoppingCart

        public static java.util.Map<java.lang.String,​java.lang.Object> createOrderFromShoppingCart​(DispatchContext dctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • callProcessOrderPayments

        public static java.util.Map<java.lang.String,​java.lang.Object> callProcessOrderPayments​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getOrderItemInvoicedAmountAndQuantity

        public static java.util.Map<java.lang.String,​java.lang.Object> getOrderItemInvoicedAmountAndQuantity​(DispatchContext dctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Determines the total amount invoiced for a given order item over all invoices by totalling the item subtotal (via OrderItemBilling), any adjustments for that item (via OrderAdjustmentBilling), and the item's share of any order-level adjustments (that calculated by applying the percentage of the items total that the item represents to the order-level adjustments total (also via OrderAdjustmentBilling). Also returns the quantity invoiced for the item over all invoices, to aid in prorating.
        Parameters:
        dctx - DispatchContext
        context - Map
        Returns:
        Map
      • setOrderPaymentStatus

        public static java.util.Map<java.lang.String,​java.lang.Object> setOrderPaymentStatus​(DispatchContext ctx,
                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • runSubscriptionAutoReorders

        public static java.util.Map<java.lang.String,​java.lang.Object> runSubscriptionAutoReorders​(DispatchContext dctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • addOrderItemShipGroup

        public static java.util.Map<java.lang.String,​java.lang.Object> addOrderItemShipGroup​(DispatchContext dctx,
                                                                                                   java.util.Map<java.lang.String,​java.lang.Object> context)
        Create an OrderItemShipGroup record
        Parameters:
        dctx -
        context -
        Returns:
      • deleteOrderItemShipGroup

        public static java.util.Map<java.lang.String,​java.lang.Object> deleteOrderItemShipGroup​(DispatchContext ctx,
                                                                                                      java.util.Map<?,​?> context)
                                                                                               throws GenericEntityException
        Remove an OrderItemShipGroup record
        Parameters:
        ctx -
        context - a map containing in paramaters
        Returns:
        result: a map containing out parameters
        Throws:
        GenericEntityException
      • addOrderItemShipGroupAssoc

        public static java.util.Map<java.lang.String,​java.lang.Object> addOrderItemShipGroupAssoc​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​java.lang.Object> context)
                                                                                                 throws GenericEntityException
        Create orderItem and shipGroup association
        Parameters:
        dctx -
        context -
        Returns:
        Throws:
        GenericEntityException
      • updateOrderItemShipGroupAssoc

        public static java.util.Map<java.lang.String,​java.lang.Object> updateOrderItemShipGroupAssoc​(DispatchContext dctx,
                                                                                                           java.util.Map<java.lang.String,​java.lang.Object> context)
                                                                                                    throws GeneralException
        Update orderItem and shipgroup association
        Parameters:
        dctx -
        context -
        Returns:
        Throws:
        GeneralException
      • setShippingInstructions

        public static java.util.Map<java.lang.String,​java.lang.Object> setShippingInstructions​(DispatchContext dctx,
                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • setGiftMessage

        public static java.util.Map<java.lang.String,​java.lang.Object> setGiftMessage​(DispatchContext dctx,
                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createAlsoBoughtProductAssocs

        public static java.util.Map<java.lang.String,​java.lang.Object> createAlsoBoughtProductAssocs​(DispatchContext dctx,
                                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createAlsoBoughtProductAssocsForOrder

        public static java.util.Map<java.lang.String,​java.lang.Object> createAlsoBoughtProductAssocsForOrder​(DispatchContext dctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • updateShipGroupShipInfo

        public static java.util.Map<java.lang.String,​java.lang.Object> updateShipGroupShipInfo​(DispatchContext dctx,
                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        This service runs when you update shipping method of Order from order view page.