/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.resources.commerce.orders; import com.mozu.api.ApiContext; import java.util.List; import java.util.ArrayList; import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl; import com.mozu.api.Headers; import org.joda.time.DateTime; import com.mozu.api.AsyncCallback; import java.util.concurrent.CountDownLatch; import com.mozu.api.security.AuthTicket; import org.apache.commons.lang.StringUtils; /** <summary> * Use this subresource to manage ad-hoc order level price adjustments. * </summary> */ public class AdjustmentResource { /// /// <see cref="Mozu.Api.ApiContext"/> /// private ApiContext _apiContext; public AdjustmentResource(ApiContext apiContext) { _apiContext = apiContext; } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyHandlingAdjustment( adjustment, orderId); * </code></pre></p> * @param orderId * @param adjustment * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyHandlingAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId) throws Exception { return applyHandlingAdjustment( adjustment, orderId, null, null, null); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyHandlingAdjustment( adjustment, orderId, callback ); * latch.await() * </code></pre></p> * @param orderId * @param callback callback handler for asynchronous operations * @param adjustment * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyHandlingAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return applyHandlingAdjustmentAsync( adjustment, orderId, null, null, null, callback); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyHandlingAdjustment( adjustment, orderId, updateMode, version, responseFields); * </code></pre></p> * @param orderId * @param responseFields * @param updateMode * @param version * @param adjustment * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyHandlingAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.applyHandlingAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyHandlingAdjustment( adjustment, orderId, updateMode, version, responseFields, callback ); * latch.await() * </code></pre></p> * @param orderId * @param responseFields * @param updateMode * @param version * @param callback callback handler for asynchronous operations * @param adjustment * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyHandlingAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, 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.AdjustmentClient.applyHandlingAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); return client.executeRequest(callback); } /** * Applies a shipping adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyShippingAdjustment( adjustment, orderId); * </code></pre></p> * @param orderId Unique identifier of the order. * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyShippingAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId) throws Exception { return applyShippingAdjustment( adjustment, orderId, null, null, null); } /** * Applies a shipping adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyShippingAdjustment( adjustment, orderId, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param callback callback handler for asynchronous operations * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyShippingAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return applyShippingAdjustmentAsync( adjustment, orderId, null, null, null, callback); } /** * Applies a shipping adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyShippingAdjustment( adjustment, orderId, updateMode, version, responseFields); * </code></pre></p> * @param orderId Unique identifier of the order. * @param responseFields Use this field to include those fields which are not included by default. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyShippingAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.applyShippingAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * Applies a shipping adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyShippingAdjustment( adjustment, orderId, updateMode, version, responseFields, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param responseFields Use this field to include those fields which are not included by default. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param callback callback handler for asynchronous operations * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyShippingAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, 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.AdjustmentClient.applyShippingAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); return client.executeRequest(callback); } /** * Applies a price adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyAdjustment( adjustment, orderId); * </code></pre></p> * @param orderId Unique identifier of the order. * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId) throws Exception { return applyAdjustment( adjustment, orderId, null, null, null); } /** * Applies a price adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyAdjustment( adjustment, orderId, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param callback callback handler for asynchronous operations * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return applyAdjustmentAsync( adjustment, orderId, null, null, null, callback); } /** * Applies a price adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.applyAdjustment( adjustment, orderId, updateMode, version, responseFields); * </code></pre></p> * @param orderId Unique identifier of the order. * @param responseFields Use this field to include those fields which are not included by default. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public com.mozu.api.contracts.commerceruntime.orders.Order applyAdjustment(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.applyAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * Applies a price adjustment to the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.applyAdjustment( adjustment, orderId, updateMode, version, responseFields, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param responseFields Use this field to include those fields which are not included by default. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param callback callback handler for asynchronous operations * @param adjustment Properties of an ad-hoc price adjustment for an order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.commerce.Adjustment */ public CountDownLatch applyAdjustmentAsync(com.mozu.api.contracts.commerceruntime.commerce.Adjustment adjustment, String orderId, String updateMode, String version, 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.AdjustmentClient.applyAdjustmentClient( adjustment, orderId, updateMode, version, responseFields); client.setContext(_apiContext); return client.executeRequest(callback); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeHandlingAdjustment( orderId); * </code></pre></p> * @param orderId * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeHandlingAdjustment(String orderId) throws Exception { return removeHandlingAdjustment( orderId, null, null); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeHandlingAdjustment( orderId, callback ); * latch.await() * </code></pre></p> * @param orderId * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeHandlingAdjustmentAsync(String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return removeHandlingAdjustmentAsync( orderId, null, null, callback); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeHandlingAdjustment( orderId, updateMode, version); * </code></pre></p> * @param orderId * @param updateMode * @param version * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeHandlingAdjustment(String orderId, String updateMode, String version) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.removeHandlingAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeHandlingAdjustment( orderId, updateMode, version, callback ); * latch.await() * </code></pre></p> * @param orderId * @param updateMode * @param version * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeHandlingAdjustmentAsync(String orderId, String updateMode, String version, 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.AdjustmentClient.removeHandlingAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); return client.executeRequest(callback); } /** * Removes a shipping adjustment previously applied to an order or draft. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeShippingAdjustment( orderId); * </code></pre></p> * @param orderId Unique identifier of the order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeShippingAdjustment(String orderId) throws Exception { return removeShippingAdjustment( orderId, null, null); } /** * Removes a shipping adjustment previously applied to an order or draft. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeShippingAdjustment( orderId, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeShippingAdjustmentAsync(String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return removeShippingAdjustmentAsync( orderId, null, null, callback); } /** * Removes a shipping adjustment previously applied to an order or draft. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeShippingAdjustment( orderId, updateMode, version); * </code></pre></p> * @param orderId Unique identifier of the order. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeShippingAdjustment(String orderId, String updateMode, String version) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.removeShippingAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * Removes a shipping adjustment previously applied to an order or draft. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeShippingAdjustment( orderId, updateMode, version, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeShippingAdjustmentAsync(String orderId, String updateMode, String version, 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.AdjustmentClient.removeShippingAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); return client.executeRequest(callback); } /** * Removes a price adjustment from the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeAdjustment( orderId); * </code></pre></p> * @param orderId Unique identifier of the order. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeAdjustment(String orderId) throws Exception { return removeAdjustment( orderId, null, null); } /** * Removes a price adjustment from the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeAdjustment( orderId, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeAdjustmentAsync(String orderId, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { return removeAdjustmentAsync( orderId, null, null, callback); } /** * Removes a price adjustment from the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * Order order = adjustment.removeAdjustment( orderId, updateMode, version); * </code></pre></p> * @param orderId Unique identifier of the order. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public com.mozu.api.contracts.commerceruntime.orders.Order removeAdjustment(String orderId, String updateMode, String version) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.AdjustmentClient.removeAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } /** * Removes a price adjustment from the specified order. * <p><pre><code> * Adjustment adjustment = new Adjustment(); * CountDownLatch latch = adjustment.removeAdjustment( orderId, updateMode, version, callback ); * latch.await() * </code></pre></p> * @param orderId Unique identifier of the order. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit." * @param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one. * @param callback callback handler for asynchronous operations * @return com.mozu.api.contracts.commerceruntime.orders.Order * @see com.mozu.api.contracts.commerceruntime.orders.Order */ public CountDownLatch removeAdjustmentAsync(String orderId, String updateMode, String version, 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.AdjustmentClient.removeAdjustmentClient( orderId, updateMode, version); client.setContext(_apiContext); return client.executeRequest(callback); } }