com.liferay.commerce.service.http.CommerceOrderServiceHttp Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.service.http;
import com.liferay.commerce.service.CommerceOrderServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;
/**
* Provides the HTTP utility for the
* CommerceOrderServiceUtil
service
* utility. The
* static methods of this class calls the same methods of the service utility.
* However, the signatures are different because it requires an additional
* HttpPrincipal
parameter.
*
*
* The benefits of using the HTTP utility is that it is fast and allows for
* tunneling without the cost of serializing to text. The drawback is that it
* only works with Java.
*
*
*
* Set the property tunnel.servlet.hosts.allowed in portal.properties to
* configure security.
*
*
*
* The HTTP utility is only generated for remote services.
*
*
* @author Alessio Antonio Rendina
* @generated
*/
public class CommerceOrderServiceHttp {
public static com.liferay.portal.kernel.repository.model.FileEntry
addAttachmentFileEntry(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long userId, long commerceOrderId, String fileName,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "addAttachmentFileEntry",
_addAttachmentFileEntryParameterTypes0);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, userId, commerceOrderId,
fileName, inputStream);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.portal.kernel.repository.model.FileEntry)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder addCommerceOrder(
HttpPrincipal httpPrincipal, long groupId, long commerceAccountId,
String commerceCurrencyCode, long commerceOrderTypeId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "addCommerceOrder",
_addCommerceOrderParameterTypes1);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, commerceCurrencyCode,
commerceOrderTypeId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
addOrUpdateCommerceOrder(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long groupId, long billingAddressId, long commerceAccountId,
String commerceCurrencyCode, long commerceOrderTypeId,
long commerceShippingMethodId, long shippingAddressId,
String advanceStatus, String commercePaymentMethodKey,
String name, int orderDateMonth, int orderDateDay,
int orderDateYear, int orderDateHour, int orderDateMinute,
int orderStatus, int paymentStatus, String purchaseOrderNumber,
java.math.BigDecimal shippingAmount, String shippingOptionName,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal subtotal,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal taxAmount, java.math.BigDecimal total,
java.math.BigDecimal totalWithTaxAmount,
com.liferay.commerce.context.CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "addOrUpdateCommerceOrder",
_addOrUpdateCommerceOrderParameterTypes2);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, groupId, billingAddressId,
commerceAccountId, commerceCurrencyCode, commerceOrderTypeId,
commerceShippingMethodId, shippingAddressId, advanceStatus,
commercePaymentMethodKey, name, orderDateMonth, orderDateDay,
orderDateYear, orderDateHour, orderDateMinute, orderStatus,
paymentStatus, purchaseOrderNumber, shippingAmount,
shippingOptionName, shippingWithTaxAmount, subtotal,
subtotalWithTaxAmount, taxAmount, total, totalWithTaxAmount,
commerceContext, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
addOrUpdateCommerceOrder(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long groupId, long billingAddressId, long commerceAccountId,
String commerceCurrencyCode, long commerceOrderTypeId,
long commerceShippingMethodId, long shippingAddressId,
String advanceStatus, String commercePaymentMethodKey,
String name, int orderStatus, int paymentStatus,
String purchaseOrderNumber, java.math.BigDecimal shippingAmount,
String shippingOptionName,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal subtotal,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal taxAmount, java.math.BigDecimal total,
java.math.BigDecimal totalWithTaxAmount,
com.liferay.commerce.context.CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "addOrUpdateCommerceOrder",
_addOrUpdateCommerceOrderParameterTypes3);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, groupId, billingAddressId,
commerceAccountId, commerceCurrencyCode, commerceOrderTypeId,
commerceShippingMethodId, shippingAddressId, advanceStatus,
commercePaymentMethodKey, name, orderStatus, paymentStatus,
purchaseOrderNumber, shippingAmount, shippingOptionName,
shippingWithTaxAmount, subtotal, subtotalWithTaxAmount,
taxAmount, total, totalWithTaxAmount, commerceContext,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder applyCouponCode(
HttpPrincipal httpPrincipal, long commerceOrderId,
String couponCode,
com.liferay.commerce.context.CommerceContext commerceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "applyCouponCode",
_applyCouponCodeParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, couponCode, commerceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static void deleteAttachmentFileEntry(
HttpPrincipal httpPrincipal, long attachmentFileEntryId,
long commerceOrderId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "deleteAttachmentFileEntry",
_deleteAttachmentFileEntryParameterTypes5);
MethodHandler methodHandler = new MethodHandler(
methodKey, attachmentFileEntryId, commerceOrderId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static void deleteCommerceOrder(
HttpPrincipal httpPrincipal, long commerceOrderId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "deleteCommerceOrder",
_deleteCommerceOrderParameterTypes6);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
executeWorkflowTransition(
HttpPrincipal httpPrincipal, long commerceOrderId,
long workflowTaskId, String transitionName, String comment)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "executeWorkflowTransition",
_executeWorkflowTransitionParameterTypes7);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, workflowTaskId, transitionName,
comment);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder fetchCommerceOrder(
HttpPrincipal httpPrincipal, long commerceOrderId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "fetchCommerceOrder",
_fetchCommerceOrderParameterTypes8);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder fetchCommerceOrder(
HttpPrincipal httpPrincipal, long commerceAccountId, long groupId,
int orderStatus)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "fetchCommerceOrder",
_fetchCommerceOrderParameterTypes9);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAccountId, groupId, orderStatus);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder fetchCommerceOrder(
HttpPrincipal httpPrincipal, long commerceAccountId, long groupId,
long userId, int orderStatus)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "fetchCommerceOrder",
_fetchCommerceOrderParameterTypes10);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAccountId, groupId, userId, orderStatus);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder fetchCommerceOrder(
HttpPrincipal httpPrincipal, String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "fetchCommerceOrder",
_fetchCommerceOrderParameterTypes11);
MethodHandler methodHandler = new MethodHandler(
methodKey, uuid, groupId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
fetchCommerceOrderByExternalReferenceCode(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"fetchCommerceOrderByExternalReferenceCode",
_fetchCommerceOrderByExternalReferenceCodeParameterTypes12);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, companyId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder getCommerceOrder(
HttpPrincipal httpPrincipal, long commerceOrderId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrder",
_getCommerceOrderParameterTypes13);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
getCommerceOrderByUuidAndGroupId(
HttpPrincipal httpPrincipal, String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"getCommerceOrderByUuidAndGroupId",
_getCommerceOrderByUuidAndGroupIdParameterTypes14);
MethodHandler methodHandler = new MethodHandler(
methodKey, uuid, groupId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceOrders(
HttpPrincipal httpPrincipal, long groupId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrders",
_getCommerceOrdersParameterTypes15);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, start, end, orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceOrders(
HttpPrincipal httpPrincipal, long groupId, int[] orderStatuses)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrders",
_getCommerceOrdersParameterTypes16);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, orderStatuses);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceOrders(
HttpPrincipal httpPrincipal, long groupId, int[] orderStatuses,
int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrders",
_getCommerceOrdersParameterTypes17);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, orderStatuses, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceOrders(
HttpPrincipal httpPrincipal, long groupId,
long commerceAccountId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrders",
_getCommerceOrdersParameterTypes18);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, start, end,
orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceOrdersCount(
HttpPrincipal httpPrincipal, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrdersCount",
_getCommerceOrdersCountParameterTypes19);
MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceOrdersCount(
HttpPrincipal httpPrincipal, long groupId, long commerceAccountId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getCommerceOrdersCount",
_getCommerceOrdersCountParameterTypes20);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getPendingCommerceOrders(
HttpPrincipal httpPrincipal, long groupId,
long commerceAccountId, String keywords, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPendingCommerceOrders",
_getPendingCommerceOrdersParameterTypes21);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, keywords, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static long getPendingCommerceOrdersCount(
HttpPrincipal httpPrincipal, long companyId, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPendingCommerceOrdersCount",
_getPendingCommerceOrdersCountParameterTypes22);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Long)returnObj).longValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getPendingCommerceOrdersCount(
HttpPrincipal httpPrincipal, long groupId, long commerceAccountId,
String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPendingCommerceOrdersCount",
_getPendingCommerceOrdersCountParameterTypes23);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getPlacedCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPlacedCommerceOrders",
_getPlacedCommerceOrdersParameterTypes24);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getPlacedCommerceOrders(
HttpPrincipal httpPrincipal, long groupId,
long commerceAccountId, String keywords, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPlacedCommerceOrders",
_getPlacedCommerceOrdersParameterTypes25);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, keywords, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static long getPlacedCommerceOrdersCount(
HttpPrincipal httpPrincipal, long companyId, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPlacedCommerceOrdersCount",
_getPlacedCommerceOrdersCountParameterTypes26);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Long)returnObj).longValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getPlacedCommerceOrdersCount(
HttpPrincipal httpPrincipal, long groupId, long commerceAccountId,
String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getPlacedCommerceOrdersCount",
_getPlacedCommerceOrdersCountParameterTypes27);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getUserCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserCommerceOrders",
_getUserCommerceOrdersParameterTypes28);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static long getUserCommerceOrdersCount(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserCommerceOrdersCount",
_getUserCommerceOrdersCountParameterTypes29);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Long)returnObj).longValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getUserOpenCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, int start, int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserOpenCommerceOrders",
_getUserOpenCommerceOrdersParameterTypes30);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords, start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getUserPendingCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserPendingCommerceOrders",
_getUserPendingCommerceOrdersParameterTypes31);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static long getUserPendingCommerceOrdersCount(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"getUserPendingCommerceOrdersCount",
_getUserPendingCommerceOrdersCountParameterTypes32);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Long)returnObj).longValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getUserPlacedCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserPlacedCommerceOrders",
_getUserPlacedCommerceOrdersParameterTypes33);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getUserPlacedCommerceOrders(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, int start, int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "getUserPlacedCommerceOrders",
_getUserPlacedCommerceOrdersParameterTypes34);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords, start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static long getUserPlacedCommerceOrdersCount(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"getUserPlacedCommerceOrdersCount",
_getUserPlacedCommerceOrdersCountParameterTypes35);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Long)returnObj).longValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static void mergeGuestCommerceOrder(
HttpPrincipal httpPrincipal, long guestCommerceOrderId,
long userCommerceOrderId,
com.liferay.commerce.context.CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "mergeGuestCommerceOrder",
_mergeGuestCommerceOrderParameterTypes36);
MethodHandler methodHandler = new MethodHandler(
methodKey, guestCommerceOrderId, userCommerceOrderId,
commerceContext, serviceContext);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder recalculatePrice(
HttpPrincipal httpPrincipal, long commerceOrderId,
com.liferay.commerce.context.CommerceContext commerceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "recalculatePrice",
_recalculatePriceParameterTypes37);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, commerceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder reorderCommerceOrder(
HttpPrincipal httpPrincipal, long commerceOrderId,
com.liferay.commerce.context.CommerceContext commerceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "reorderCommerceOrder",
_reorderCommerceOrderParameterTypes38);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, commerceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
resetCommerceOrderAddresses(
HttpPrincipal httpPrincipal, long commerceOrderId,
boolean billingAddress, boolean shippingAddress)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "resetCommerceOrderAddresses",
_resetCommerceOrderAddressesParameterTypes39);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, billingAddress, shippingAddress);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
resetTermsAndConditions(
HttpPrincipal httpPrincipal, long commerceOrderId,
boolean deliveryCommerceTermEntry,
boolean paymentCommerceTermEntry)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "resetTermsAndConditions",
_resetTermsAndConditionsParameterTypes40);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, deliveryCommerceTermEntry,
paymentCommerceTermEntry);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateBillingAddress(
HttpPrincipal httpPrincipal, long commerceOrderId,
long billingAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateBillingAddress",
_updateBillingAddressParameterTypes41);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, billingAddressId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateBillingAddress(
HttpPrincipal httpPrincipal, long commerceOrderId, String name,
String description, String street1, String street2, String street3,
String city, String zip, long regionId, long countryId,
String phoneNumber,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateBillingAddress",
_updateBillingAddressParameterTypes42);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, name, description, street1, street2,
street3, city, zip, regionId, countryId, phoneNumber,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateCommerceOrder(
HttpPrincipal httpPrincipal,
com.liferay.commerce.model.CommerceOrder commerceOrder)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceOrder",
_updateCommerceOrderParameterTypes43);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrder);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateCommerceOrder(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long commerceOrderId, long billingAddressId,
long commerceShippingMethodId, long shippingAddressId,
String advanceStatus, String commercePaymentMethodKey, String name,
String purchaseOrderNumber, java.math.BigDecimal shippingAmount,
String shippingOptionName, java.math.BigDecimal subtotal,
java.math.BigDecimal total)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceOrder",
_updateCommerceOrderParameterTypes44);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, commerceOrderId,
billingAddressId, commerceShippingMethodId, shippingAddressId,
advanceStatus, commercePaymentMethodKey, name,
purchaseOrderNumber, shippingAmount, shippingOptionName,
subtotal, total);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateCommerceOrder(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long commerceOrderId, long billingAddressId,
long commerceShippingMethodId, long shippingAddressId,
String advanceStatus, String commercePaymentMethodKey, String name,
String purchaseOrderNumber, java.math.BigDecimal shippingAmount,
String shippingOptionName,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal subtotal,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal taxAmount, java.math.BigDecimal total,
java.math.BigDecimal totalDiscountAmount,
java.math.BigDecimal totalWithTaxAmount)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceOrder",
_updateCommerceOrderParameterTypes45);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, commerceOrderId,
billingAddressId, commerceShippingMethodId, shippingAddressId,
advanceStatus, commercePaymentMethodKey, name,
purchaseOrderNumber, shippingAmount, shippingOptionName,
shippingWithTaxAmount, subtotal, subtotalWithTaxAmount,
taxAmount, total, totalDiscountAmount, totalWithTaxAmount);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateCommerceOrderExternalReferenceCode(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long commerceOrderId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"updateCommerceOrderExternalReferenceCode",
_updateCommerceOrderExternalReferenceCodeParameterTypes46);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, commerceOrderId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateCommerceOrderPrices(
HttpPrincipal httpPrincipal, long commerceOrderId,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal shippingDiscountAmount,
java.math.BigDecimal shippingDiscountPercentageLevel1,
java.math.BigDecimal shippingDiscountPercentageLevel2,
java.math.BigDecimal shippingDiscountPercentageLevel3,
java.math.BigDecimal shippingDiscountPercentageLevel4,
java.math.BigDecimal subtotal,
java.math.BigDecimal subtotalDiscountAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel1,
java.math.BigDecimal subtotalDiscountPercentageLevel2,
java.math.BigDecimal subtotalDiscountPercentageLevel3,
java.math.BigDecimal subtotalDiscountPercentageLevel4,
java.math.BigDecimal taxAmount, java.math.BigDecimal total,
java.math.BigDecimal totalDiscountAmount,
java.math.BigDecimal totalDiscountPercentageLevel1,
java.math.BigDecimal totalDiscountPercentageLevel2,
java.math.BigDecimal totalDiscountPercentageLevel3,
java.math.BigDecimal totalDiscountPercentageLevel4)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceOrderPrices",
_updateCommerceOrderPricesParameterTypes47);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, shippingAmount,
shippingDiscountAmount, shippingDiscountPercentageLevel1,
shippingDiscountPercentageLevel2,
shippingDiscountPercentageLevel3,
shippingDiscountPercentageLevel4, subtotal,
subtotalDiscountAmount, subtotalDiscountPercentageLevel1,
subtotalDiscountPercentageLevel2,
subtotalDiscountPercentageLevel3,
subtotalDiscountPercentageLevel4, taxAmount, total,
totalDiscountAmount, totalDiscountPercentageLevel1,
totalDiscountPercentageLevel2, totalDiscountPercentageLevel3,
totalDiscountPercentageLevel4);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateCommerceOrderPrices(
HttpPrincipal httpPrincipal, long commerceOrderId,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal shippingDiscountAmount,
java.math.BigDecimal shippingDiscountPercentageLevel1,
java.math.BigDecimal shippingDiscountPercentageLevel2,
java.math.BigDecimal shippingDiscountPercentageLevel3,
java.math.BigDecimal shippingDiscountPercentageLevel4,
java.math.BigDecimal
shippingDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal
shippingDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal
shippingDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal
shippingDiscountPercentageLevel4WithTaxAmount,
java.math.BigDecimal shippingDiscountWithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal subtotal,
java.math.BigDecimal subtotalDiscountAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel1,
java.math.BigDecimal subtotalDiscountPercentageLevel2,
java.math.BigDecimal subtotalDiscountPercentageLevel3,
java.math.BigDecimal subtotalDiscountPercentageLevel4,
java.math.BigDecimal
subtotalDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal
subtotalDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal
subtotalDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal
subtotalDiscountPercentageLevel4WithTaxAmount,
java.math.BigDecimal subtotalDiscountWithTaxAmount,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal taxAmount, java.math.BigDecimal total,
java.math.BigDecimal totalDiscountAmount,
java.math.BigDecimal totalDiscountPercentageLevel1,
java.math.BigDecimal totalDiscountPercentageLevel2,
java.math.BigDecimal totalDiscountPercentageLevel3,
java.math.BigDecimal totalDiscountPercentageLevel4,
java.math.BigDecimal totalDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel4WithTaxAmount,
java.math.BigDecimal totalDiscountWithTaxAmount,
java.math.BigDecimal totalWithTaxAmount)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceOrderPrices",
_updateCommerceOrderPricesParameterTypes48);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, shippingAmount,
shippingDiscountAmount, shippingDiscountPercentageLevel1,
shippingDiscountPercentageLevel2,
shippingDiscountPercentageLevel3,
shippingDiscountPercentageLevel4,
shippingDiscountPercentageLevel1WithTaxAmount,
shippingDiscountPercentageLevel2WithTaxAmount,
shippingDiscountPercentageLevel3WithTaxAmount,
shippingDiscountPercentageLevel4WithTaxAmount,
shippingDiscountWithTaxAmount, shippingWithTaxAmount, subtotal,
subtotalDiscountAmount, subtotalDiscountPercentageLevel1,
subtotalDiscountPercentageLevel2,
subtotalDiscountPercentageLevel3,
subtotalDiscountPercentageLevel4,
subtotalDiscountPercentageLevel1WithTaxAmount,
subtotalDiscountPercentageLevel2WithTaxAmount,
subtotalDiscountPercentageLevel3WithTaxAmount,
subtotalDiscountPercentageLevel4WithTaxAmount,
subtotalDiscountWithTaxAmount, subtotalWithTaxAmount, taxAmount,
total, totalDiscountAmount, totalDiscountPercentageLevel1,
totalDiscountPercentageLevel2, totalDiscountPercentageLevel3,
totalDiscountPercentageLevel4,
totalDiscountPercentageLevel1WithTaxAmount,
totalDiscountPercentageLevel2WithTaxAmount,
totalDiscountPercentageLevel3WithTaxAmount,
totalDiscountPercentageLevel4WithTaxAmount,
totalDiscountWithTaxAmount, totalWithTaxAmount);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateCommercePaymentMethodKey(
HttpPrincipal httpPrincipal, long commerceOrderId,
String commercePaymentMethodKey)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"updateCommercePaymentMethodKey",
_updateCommercePaymentMethodKeyParameterTypes49);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, commercePaymentMethodKey);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateCommerceShippingMethod(
HttpPrincipal httpPrincipal, long commerceOrderId,
long commerceShippingMethodId,
String commerceShippingOptionName,
com.liferay.commerce.context.CommerceContext commerceContext,
java.util.Locale locale)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateCommerceShippingMethod",
_updateCommerceShippingMethodParameterTypes50);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, commerceShippingMethodId,
commerceShippingOptionName, commerceContext, locale);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateInfo(
HttpPrincipal httpPrincipal, long commerceOrderId,
String printedNote, int requestedDeliveryDateMonth,
int requestedDeliveryDateDay, int requestedDeliveryDateYear,
int requestedDeliveryDateHour, int requestedDeliveryDateMinute,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateInfo",
_updateInfoParameterTypes51);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, printedNote,
requestedDeliveryDateMonth, requestedDeliveryDateDay,
requestedDeliveryDateYear, requestedDeliveryDateHour,
requestedDeliveryDateMinute, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updateOrderDate(
HttpPrincipal httpPrincipal, long commerceOrderId,
int orderDateMonth, int orderDateDay, int orderDateYear,
int orderDateHour, int orderDateMinute,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateOrderDate",
_updateOrderDateParameterTypes52);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, orderDateMonth, orderDateDay,
orderDateYear, orderDateHour, orderDateMinute, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updatePaymentStatus(
HttpPrincipal httpPrincipal, long commerceOrderId,
int paymentStatus)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updatePaymentStatus",
_updatePaymentStatusParameterTypes53);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, paymentStatus);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updatePaymentStatusAndTransactionId(
HttpPrincipal httpPrincipal, long commerceOrderId,
int paymentStatus, String transactionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class,
"updatePaymentStatusAndTransactionId",
_updatePaymentStatusAndTransactionIdParameterTypes54);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, paymentStatus, transactionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder updatePrintedNote(
HttpPrincipal httpPrincipal, long commerceOrderId,
String printedNote)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updatePrintedNote",
_updatePrintedNoteParameterTypes55);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, printedNote);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updatePurchaseOrderNumber(
HttpPrincipal httpPrincipal, long commerceOrderId,
String purchaseOrderNumber)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updatePurchaseOrderNumber",
_updatePurchaseOrderNumberParameterTypes56);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, purchaseOrderNumber);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateShippingAddress(
HttpPrincipal httpPrincipal, long commerceOrderId,
long shippingAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateShippingAddress",
_updateShippingAddressParameterTypes57);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, shippingAddressId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateShippingAddress(
HttpPrincipal httpPrincipal, long commerceOrderId, String name,
String description, String street1, String street2,
String street3, String city, String zip, long regionId,
long countryId, String phoneNumber,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateShippingAddress",
_updateShippingAddressParameterTypes58);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, name, description, street1, street2,
street3, city, zip, regionId, countryId, phoneNumber,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceOrder
updateTermsAndConditions(
HttpPrincipal httpPrincipal, long commerceOrderId,
long deliveryCommerceTermEntryId,
long paymentCommerceTermEntryId, String languageId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceOrderServiceUtil.class, "updateTermsAndConditions",
_updateTermsAndConditionsParameterTypes59);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, deliveryCommerceTermEntryId,
paymentCommerceTermEntryId, languageId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceOrder)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
private static Log _log = LogFactoryUtil.getLog(
CommerceOrderServiceHttp.class);
private static final Class>[] _addAttachmentFileEntryParameterTypes0 =
new Class[] {
String.class, long.class, long.class, String.class,
java.io.InputStream.class
};
private static final Class>[] _addCommerceOrderParameterTypes1 =
new Class[] {long.class, long.class, String.class, long.class};
private static final Class>[] _addOrUpdateCommerceOrderParameterTypes2 =
new Class[] {
String.class, long.class, long.class, long.class, String.class,
long.class, long.class, long.class, String.class, String.class,
String.class, int.class, int.class, int.class, int.class, int.class,
int.class, int.class, String.class, java.math.BigDecimal.class,
String.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class,
com.liferay.commerce.context.CommerceContext.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _addOrUpdateCommerceOrderParameterTypes3 =
new Class[] {
String.class, long.class, long.class, long.class, String.class,
long.class, long.class, long.class, String.class, String.class,
String.class, int.class, int.class, String.class,
java.math.BigDecimal.class, String.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
com.liferay.commerce.context.CommerceContext.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _applyCouponCodeParameterTypes4 =
new Class[] {
long.class, String.class,
com.liferay.commerce.context.CommerceContext.class
};
private static final Class>[] _deleteAttachmentFileEntryParameterTypes5 =
new Class[] {long.class, long.class};
private static final Class>[] _deleteCommerceOrderParameterTypes6 =
new Class[] {long.class};
private static final Class>[] _executeWorkflowTransitionParameterTypes7 =
new Class[] {long.class, long.class, String.class, String.class};
private static final Class>[] _fetchCommerceOrderParameterTypes8 =
new Class[] {long.class};
private static final Class>[] _fetchCommerceOrderParameterTypes9 =
new Class[] {long.class, long.class, int.class};
private static final Class>[] _fetchCommerceOrderParameterTypes10 =
new Class[] {long.class, long.class, long.class, int.class};
private static final Class>[] _fetchCommerceOrderParameterTypes11 =
new Class[] {String.class, long.class};
private static final Class>[]
_fetchCommerceOrderByExternalReferenceCodeParameterTypes12 =
new Class[] {String.class, long.class};
private static final Class>[] _getCommerceOrderParameterTypes13 =
new Class[] {long.class};
private static final Class>[]
_getCommerceOrderByUuidAndGroupIdParameterTypes14 = new Class[] {
String.class, long.class
};
private static final Class>[] _getCommerceOrdersParameterTypes15 =
new Class[] {
long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceOrdersParameterTypes16 =
new Class[] {long.class, int[].class};
private static final Class>[] _getCommerceOrdersParameterTypes17 =
new Class[] {long.class, int[].class, int.class, int.class};
private static final Class>[] _getCommerceOrdersParameterTypes18 =
new Class[] {
long.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceOrdersCountParameterTypes19 =
new Class[] {long.class};
private static final Class>[] _getCommerceOrdersCountParameterTypes20 =
new Class[] {long.class, long.class};
private static final Class>[] _getPendingCommerceOrdersParameterTypes21 =
new Class[] {
long.class, long.class, String.class, int.class, int.class
};
private static final Class>[]
_getPendingCommerceOrdersCountParameterTypes22 = new Class[] {
long.class, long.class
};
private static final Class>[]
_getPendingCommerceOrdersCountParameterTypes23 = new Class[] {
long.class, long.class, String.class
};
private static final Class>[] _getPlacedCommerceOrdersParameterTypes24 =
new Class[] {long.class, long.class, int.class, int.class};
private static final Class>[] _getPlacedCommerceOrdersParameterTypes25 =
new Class[] {
long.class, long.class, String.class, int.class, int.class
};
private static final Class>[]
_getPlacedCommerceOrdersCountParameterTypes26 = new Class[] {
long.class, long.class
};
private static final Class>[]
_getPlacedCommerceOrdersCountParameterTypes27 = new Class[] {
long.class, long.class, String.class
};
private static final Class>[] _getUserCommerceOrdersParameterTypes28 =
new Class[] {
long.class, long.class, String.class, int.class, int.class
};
private static final Class>[]
_getUserCommerceOrdersCountParameterTypes29 = new Class[] {
long.class, long.class, String.class
};
private static final Class>[] _getUserOpenCommerceOrdersParameterTypes30 =
new Class[] {
long.class, long.class, String.class, int.class, int.class,
com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[]
_getUserPendingCommerceOrdersParameterTypes31 = new Class[] {
long.class, long.class, String.class, int.class, int.class
};
private static final Class>[]
_getUserPendingCommerceOrdersCountParameterTypes32 = new Class[] {
long.class, long.class, String.class
};
private static final Class>[]
_getUserPlacedCommerceOrdersParameterTypes33 = new Class[] {
long.class, long.class, String.class, int.class, int.class
};
private static final Class>[]
_getUserPlacedCommerceOrdersParameterTypes34 = new Class[] {
long.class, long.class, String.class, int.class, int.class,
com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[]
_getUserPlacedCommerceOrdersCountParameterTypes35 = new Class[] {
long.class, long.class, String.class
};
private static final Class>[] _mergeGuestCommerceOrderParameterTypes36 =
new Class[] {
long.class, long.class,
com.liferay.commerce.context.CommerceContext.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _recalculatePriceParameterTypes37 =
new Class[] {
long.class, com.liferay.commerce.context.CommerceContext.class
};
private static final Class>[] _reorderCommerceOrderParameterTypes38 =
new Class[] {
long.class, com.liferay.commerce.context.CommerceContext.class
};
private static final Class>[]
_resetCommerceOrderAddressesParameterTypes39 = new Class[] {
long.class, boolean.class, boolean.class
};
private static final Class>[] _resetTermsAndConditionsParameterTypes40 =
new Class[] {long.class, boolean.class, boolean.class};
private static final Class>[] _updateBillingAddressParameterTypes41 =
new Class[] {long.class, long.class};
private static final Class>[] _updateBillingAddressParameterTypes42 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class, com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateCommerceOrderParameterTypes43 =
new Class[] {com.liferay.commerce.model.CommerceOrder.class};
private static final Class>[] _updateCommerceOrderParameterTypes44 =
new Class[] {
String.class, long.class, long.class, long.class, long.class,
String.class, String.class, String.class, String.class,
java.math.BigDecimal.class, String.class,
java.math.BigDecimal.class, java.math.BigDecimal.class
};
private static final Class>[] _updateCommerceOrderParameterTypes45 =
new Class[] {
String.class, long.class, long.class, long.class, long.class,
String.class, String.class, String.class, String.class,
java.math.BigDecimal.class, String.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class
};
private static final Class>[]
_updateCommerceOrderExternalReferenceCodeParameterTypes46 =
new Class[] {String.class, long.class};
private static final Class>[] _updateCommerceOrderPricesParameterTypes47 =
new Class[] {
long.class, java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class
};
private static final Class>[] _updateCommerceOrderPricesParameterTypes48 =
new Class[] {
long.class, java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class, java.math.BigDecimal.class,
java.math.BigDecimal.class
};
private static final Class>[]
_updateCommercePaymentMethodKeyParameterTypes49 = new Class[] {
long.class, String.class
};
private static final Class>[]
_updateCommerceShippingMethodParameterTypes50 = new Class[] {
long.class, long.class, String.class,
com.liferay.commerce.context.CommerceContext.class,
java.util.Locale.class
};
private static final Class>[] _updateInfoParameterTypes51 = new Class[] {
long.class, String.class, int.class, int.class, int.class, int.class,
int.class, com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateOrderDateParameterTypes52 =
new Class[] {
long.class, int.class, int.class, int.class, int.class, int.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updatePaymentStatusParameterTypes53 =
new Class[] {long.class, int.class};
private static final Class>[]
_updatePaymentStatusAndTransactionIdParameterTypes54 = new Class[] {
long.class, int.class, String.class
};
private static final Class>[] _updatePrintedNoteParameterTypes55 =
new Class[] {long.class, String.class};
private static final Class>[] _updatePurchaseOrderNumberParameterTypes56 =
new Class[] {long.class, String.class};
private static final Class>[] _updateShippingAddressParameterTypes57 =
new Class[] {long.class, long.class};
private static final Class>[] _updateShippingAddressParameterTypes58 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class, com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateTermsAndConditionsParameterTypes59 =
new Class[] {long.class, long.class, long.class, String.class};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy