Ejemplo n.º 1
0
 /**
  * Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store
  * pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship
  * the order, it must also have the full shipping address and shipping method. Shipping all
  * packages or picking up all pickups for an order will complete a paid order.
  *
  * <p>
  *
  * <pre><code>
  * FulfillmentAction fulfillmentaction = new FulfillmentAction();
  * CountDownLatch latch = fulfillmentaction.performFulfillmentAction( action,  orderId,  responseFields, callback );
  * latch.await()	 * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param callback callback handler for asynchronous operations
  * @param action Properties of an action to perform when fulfilling an item in an order, whether
  *     through in-store pickup or direct shipping.
  * @return com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
  */
 public CountDownLatch performFulfillmentActionAsync(
     com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action,
     String orderId,
     String responseFields,
     AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client =
       com.mozu.api.clients.commerce.orders.FulfillmentActionClient.performFulfillmentActionClient(
           action, orderId, responseFields);
   client.setContext(_apiContext);
   return client.executeRequest(callback);
 }
Ejemplo n.º 2
0
 /**
  * Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store
  * pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship
  * the order, it must also have the full shipping address and shipping method. Shipping all
  * packages or picking up all pickups for an order will complete a paid order.
  *
  * <p>
  *
  * <pre><code>
  * FulfillmentAction fulfillmentaction = new FulfillmentAction();
  * Order order = fulfillmentaction.performFulfillmentAction( action,  orderId,  responseFields);
  * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param action Properties of an action to perform when fulfilling an item in an order, whether
  *     through in-store pickup or direct shipping.
  * @return com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
  */
 public com.mozu.api.contracts.commerceruntime.orders.Order performFulfillmentAction(
     com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action,
     String orderId,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client =
       com.mozu.api.clients.commerce.orders.FulfillmentActionClient.performFulfillmentActionClient(
           action, orderId, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }