/** * orders-orderrefunds Put ResendRefundEmail description DOCUMENT_HERE * * <p> * * <pre><code> * Refund refund = new Refund(); * refund.resendRefundEmail( orderId, refundId); * </code></pre> * * @param orderId Unique identifier of the order. * @param refundId * @return */ public void resendRefundEmail(String orderId, String refundId) throws Exception { MozuClient client = com.mozu.api.clients.commerce.orders.RefundClient.resendRefundEmailClient( orderId, refundId); client.setContext(_apiContext); client.executeRequest(); client.cleanupHttpConnection(); }
/** * orders-orderrefunds Post CreateRefund description DOCUMENT_HERE * * <p> * * <pre><code> * Refund refund = new Refund(); * Refund refund = refund.createRefund( refund, 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 refund Mozu.CommerceRuntime.Contracts.Refunds.Refund ApiType DOCUMENT_HERE * @return com.mozu.api.contracts.commerceruntime.refunds.Refund * @see com.mozu.api.contracts.commerceruntime.refunds.Refund * @see com.mozu.api.contracts.commerceruntime.refunds.Refund */ public com.mozu.api.contracts.commerceruntime.refunds.Refund createRefund( com.mozu.api.contracts.commerceruntime.refunds.Refund refund, String orderId, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.refunds.Refund> client = com.mozu.api.clients.commerce.orders.RefundClient.createRefundClient( refund, orderId, responseFields); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); }
/** * orders-orderrefunds Post CreateRefund description DOCUMENT_HERE * * <p> * * <pre><code> * Refund refund = new Refund(); * CountDownLatch latch = refund.createRefund( refund, 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 refund Mozu.CommerceRuntime.Contracts.Refunds.Refund ApiType DOCUMENT_HERE * @return com.mozu.api.contracts.commerceruntime.refunds.Refund * @see com.mozu.api.contracts.commerceruntime.refunds.Refund * @see com.mozu.api.contracts.commerceruntime.refunds.Refund */ public CountDownLatch createRefundAsync( com.mozu.api.contracts.commerceruntime.refunds.Refund refund, String orderId, String responseFields, AsyncCallback<com.mozu.api.contracts.commerceruntime.refunds.Refund> callback) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.refunds.Refund> client = com.mozu.api.clients.commerce.orders.RefundClient.createRefundClient( refund, orderId, responseFields); client.setContext(_apiContext); return client.executeRequest(callback); }