public class CommerceOrderLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.service.impl.CommerceOrderLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.CommerceOrderLocalService
Constructor and Description |
---|
CommerceOrderLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceOrder |
addCommerceOrder(CommerceOrder commerceOrder)
Adds the commerce order to the database.
|
static CommerceOrder |
addCommerceOrder(long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommerceOrder |
addCommerceOrder(long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId,
long commerceOrderTypeId) |
static CommerceOrder |
addCommerceOrder(long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId,
long commerceOrderTypeId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal taxAmount,
java.math.BigDecimal total,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal totalWithTaxAmount,
int paymentStatus,
int orderDateMonth,
int orderDateDay,
int orderDateYear,
int orderDateHour,
int orderDateMinute,
int orderStatus,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
addOrUpdateCommerceOrder(java.lang.String externalReferenceCode,
long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId,
long commerceOrderTypeId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal taxAmount,
java.math.BigDecimal total,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal totalWithTaxAmount,
int paymentStatus,
int orderDateMonth,
int orderDateDay,
int orderDateYear,
int orderDateHour,
int orderDateMinute,
int orderStatus,
java.lang.String advanceStatus,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
addOrUpdateCommerceOrder(java.lang.String externalReferenceCode,
long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal taxAmount,
java.math.BigDecimal total,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal totalWithTaxAmount,
int paymentStatus,
int orderDateMonth,
int orderDateDay,
int orderDateYear,
int orderDateHour,
int orderDateMinute,
int orderStatus,
java.lang.String advanceStatus,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x)
|
static CommerceOrder |
applyCouponCode(long commerceOrderId,
java.lang.String couponCode,
CommerceContext commerceContext) |
static CommerceOrder |
createCommerceOrder(long commerceOrderId)
Creates a new commerce order with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceOrder |
deleteCommerceOrder(CommerceOrder commerceOrder)
Deletes the commerce order from the database.
|
static CommerceOrder |
deleteCommerceOrder(long commerceOrderId)
Deletes the commerce order with the primary key from the database.
|
static void |
deleteCommerceOrders(long groupId) |
static void |
deleteCommerceOrders(long userId,
java.util.Date date,
int status)
Deprecated.
As of Athanasius (7.3.x), delete by commerceAccountId
|
static void |
deleteCommerceOrdersByAccountId(long commerceAccountId,
java.util.Date date,
int status) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static CommerceOrder |
executeWorkflowTransition(long userId,
long commerceOrderId,
long workflowTaskId,
java.lang.String transitionName,
java.lang.String comment) |
static CommerceOrder |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommerceOrder |
fetchCommerceOrder(long commerceOrderId) |
static CommerceOrder |
fetchCommerceOrder(long commerceAccountId,
long groupId,
int orderStatus)
Deprecated.
As of Athanasius (7.3.x)
|
static CommerceOrder |
fetchCommerceOrder(long commerceAccountId,
long groupId,
long userId,
int orderStatus) |
static CommerceOrder |
fetchCommerceOrderByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order with the matching external reference code and company.
|
static CommerceOrder |
fetchCommerceOrderByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCommerceOrderByExternalReferenceCode(long, String) |
static CommerceOrder |
fetchCommerceOrderByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce order matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static CommerceOrder |
getCommerceOrder(long commerceOrderId)
Returns the commerce order with the primary key.
|
static CommerceOrder |
getCommerceOrderByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order with the matching external reference code and company.
|
static CommerceOrder |
getCommerceOrderByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce order matching the UUID and group.
|
static java.util.List<CommerceOrder> |
getCommerceOrders(int start,
int end)
Returns a range of all the commerce orders.
|
static java.util.List<CommerceOrder> |
getCommerceOrders(long groupId,
int[] orderStatuses) |
static java.util.List<CommerceOrder> |
getCommerceOrders(long groupId,
int[] orderStatuses,
int start,
int end) |
static java.util.List<CommerceOrder> |
getCommerceOrders(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) |
static java.util.List<CommerceOrder> |
getCommerceOrders(long groupId,
long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) |
static java.util.List<CommerceOrder> |
getCommerceOrders(long companyId,
long groupId,
long[] commerceAccountIds,
java.lang.String keywords,
int[] orderStatuses,
boolean excludeOrderStatus,
int start,
int end) |
static java.util.List<CommerceOrder> |
getCommerceOrders(long groupId,
java.lang.String commercePaymentMethodKey) |
static java.util.List<CommerceOrder> |
getCommerceOrdersByBillingAddress(long billingAddressId) |
static java.util.List<CommerceOrder> |
getCommerceOrdersByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) |
static java.util.List<CommerceOrder> |
getCommerceOrdersByShippingAddress(long shippingAddressId) |
static java.util.List<CommerceOrder> |
getCommerceOrdersByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the commerce orders matching the UUID and company.
|
static java.util.List<CommerceOrder> |
getCommerceOrdersByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns a range of commerce orders matching the UUID and company.
|
static int |
getCommerceOrdersCount()
Returns the number of commerce orders.
|
static int |
getCommerceOrdersCount(long groupId) |
static int |
getCommerceOrdersCount(long groupId,
long commerceAccountId) |
static long |
getCommerceOrdersCount(long companyId,
long groupId,
long[] commerceAccountIds,
java.lang.String keywords,
int[] orderStatuses,
boolean excludeOrderStatus) |
static int |
getCommerceOrdersCountByCommerceAccountId(long commerceAccountId) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceOrderLocalService |
getService() |
static java.util.List<CommerceOrder> |
getShippedCommerceOrdersByCommerceShipmentId(long commerceShipmentId,
int start,
int end) |
static java.util.List<CommerceOrder> |
getUserCommerceOrders(long groupId,
long userId,
long commerceAccountId,
java.lang.Integer orderStatus,
boolean excludeOrderStatus,
java.lang.String keywords,
int start,
int end)
Deprecated.
As of Mueller (7.2.x)
|
static int |
getUserCommerceOrdersCount(long groupId,
long userId,
long commerceAccountId,
java.lang.Integer orderStatus,
boolean excludeOrderStatus,
java.lang.String keywords)
Deprecated.
As of Mueller (7.2.x)
|
static void |
mergeGuestCommerceOrder(long guestCommerceOrderId,
long userCommerceOrderId,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
recalculatePrice(long commerceOrderId,
CommerceContext commerceContext) |
static CommerceOrder |
reorderCommerceOrder(long userId,
long commerceOrderId,
CommerceContext commerceContext) |
static CommerceOrder |
resetCommerceOrderShipping(long commerceOrderId) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrder> |
searchCommerceOrders(com.liferay.portal.kernel.search.SearchContext searchContext) |
static long |
searchCommerceOrdersCount(com.liferay.portal.kernel.search.SearchContext searchContext) |
static CommerceOrder |
updateAccount(long commerceOrderId,
long userId,
long commerceAccountId) |
static CommerceOrder |
updateBillingAddress(long commerceOrderId,
long billingAddressId) |
static CommerceOrder |
updateBillingAddress(long commerceOrderId,
java.lang.String name,
java.lang.String description,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long regionId,
long countryId,
java.lang.String phoneNumber,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateCommerceOrder(CommerceOrder commerceOrder)
Updates the commerce order in the database or adds it if it does not yet exist.
|
static CommerceOrder |
updateCommerceOrder(long commerceOrderId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal total,
java.lang.String advanceStatus,
CommerceContext commerceContext) |
static CommerceOrder |
updateCommerceOrder(java.lang.String externalReferenceCode,
long commerceOrderId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal taxAmount,
java.math.BigDecimal total,
java.math.BigDecimal subtotalWithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal totalWithTaxAmount,
java.lang.String advanceStatus,
CommerceContext commerceContext) |
static CommerceOrder |
updateCommerceOrder(java.lang.String externalReferenceCode,
long commerceOrderId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal total,
java.lang.String advanceStatus,
CommerceContext commerceContext) |
static CommerceOrder |
updateCommerceOrderExternalReferenceCode(java.lang.String externalReferenceCode,
long commerceOrderId) |
static CommerceOrder |
updateCommerceOrderPrices(long commerceOrderId,
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 shippingAmount,
java.math.BigDecimal shippingDiscountAmount,
java.math.BigDecimal shippingDiscountPercentageLevel1,
java.math.BigDecimal shippingDiscountPercentageLevel2,
java.math.BigDecimal shippingDiscountPercentageLevel3,
java.math.BigDecimal shippingDiscountPercentageLevel4,
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) |
static CommerceOrder |
updateCommerceOrderPrices(long commerceOrderId,
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 shippingAmount,
java.math.BigDecimal shippingDiscountAmount,
java.math.BigDecimal shippingDiscountPercentageLevel1,
java.math.BigDecimal shippingDiscountPercentageLevel2,
java.math.BigDecimal shippingDiscountPercentageLevel3,
java.math.BigDecimal shippingDiscountPercentageLevel4,
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 subtotalWithTaxAmount,
java.math.BigDecimal subtotalDiscountWithTaxAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount,
java.math.BigDecimal shippingWithTaxAmount,
java.math.BigDecimal shippingDiscountWithTaxAmount,
java.math.BigDecimal shippingDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal shippingDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal shippingDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal shippingDiscountPercentageLevel4WithTaxAmount,
java.math.BigDecimal totalWithTaxAmount,
java.math.BigDecimal totalDiscountWithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel1WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel2WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel3WithTaxAmount,
java.math.BigDecimal totalDiscountPercentageLevel4WithTaxAmount) |
static CommerceOrder |
updateCommercePaymentMethodKey(long commerceOrderId,
java.lang.String commercePaymentMethodKey) |
static CommerceOrder |
updateCommerceShippingMethod(long commerceOrderId,
long commerceShippingMethodId,
java.lang.String commerceShippingOptionName,
java.math.BigDecimal shippingAmount,
CommerceContext commerceContext) |
static CommerceOrder |
updateCommerceShippingMethod(long commerceOrderId,
long commerceShippingMethodId,
java.lang.String commerceShippingOptionName,
CommerceContext commerceContext,
java.util.Locale locale) |
static CommerceOrder |
updateCustomFields(long commerceOrderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateInfo(long commerceOrderId,
java.lang.String printedNote,
int requestedDeliveryDateMonth,
int requestedDeliveryDateDay,
int requestedDeliveryDateYear,
int requestedDeliveryDateHour,
int requestedDeliveryDateMinute,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateOrderDate(long commerceOrderId,
int orderDateMonth,
int orderDateDay,
int orderDateYear,
int orderDateHour,
int orderDateMinute,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateOrderStatus(long commerceOrderId,
int orderStatus) |
static CommerceOrder |
updatePaymentStatus(long userId,
long commerceOrderId,
int paymentStatus) |
static CommerceOrder |
updatePaymentStatusAndTransactionId(long userId,
long commerceOrderId,
int paymentStatus,
java.lang.String transactionId) |
static CommerceOrder |
updatePrintedNote(long commerceOrderId,
java.lang.String printedNote) |
static CommerceOrder |
updatePurchaseOrderNumber(long commerceOrderId,
java.lang.String purchaseOrderNumber) |
static CommerceOrder |
updateShippingAddress(long commerceOrderId,
long shippingAddressId) |
static CommerceOrder |
updateShippingAddress(long commerceOrderId,
java.lang.String name,
java.lang.String description,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long regionId,
long countryId,
java.lang.String phoneNumber,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateStatus(long userId,
long commerceOrderId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
static CommerceOrder |
updateTransactionId(long commerceOrderId,
java.lang.String transactionId) |
static CommerceOrder |
updateUser(long commerceOrderId,
long userId) |
static CommerceOrder |
upsertCommerceOrder(java.lang.String externalReferenceCode,
long userId,
long groupId,
long commerceAccountId,
long commerceCurrencyId,
long billingAddressId,
long shippingAddressId,
java.lang.String commercePaymentMethodKey,
long commerceShippingMethodId,
java.lang.String shippingOptionName,
java.lang.String purchaseOrderNumber,
java.math.BigDecimal subtotal,
java.math.BigDecimal shippingAmount,
java.math.BigDecimal total,
int paymentStatus,
int orderStatus,
java.lang.String advanceStatus,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x)
|
public static CommerceOrder addCommerceOrder(CommerceOrder commerceOrder)
Important: Inspect CommerceOrderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceOrder
- the commerce order@Deprecated public static CommerceOrder addCommerceOrder(long userId, long groupId, long commerceAccountId, long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder addCommerceOrder(long userId, long groupId, long commerceAccountId, long commerceCurrencyId, long commerceOrderTypeId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder addCommerceOrder(long userId, long groupId, long commerceAccountId, long commerceCurrencyId, long commerceOrderTypeId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal taxAmount, java.math.BigDecimal total, java.math.BigDecimal subtotalWithTaxAmount, java.math.BigDecimal shippingWithTaxAmount, java.math.BigDecimal totalWithTaxAmount, int paymentStatus, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, int orderStatus, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder addOrUpdateCommerceOrder(java.lang.String externalReferenceCode, long userId, long groupId, long commerceAccountId, long commerceCurrencyId, long commerceOrderTypeId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal taxAmount, java.math.BigDecimal total, java.math.BigDecimal subtotalWithTaxAmount, java.math.BigDecimal shippingWithTaxAmount, java.math.BigDecimal totalWithTaxAmount, int paymentStatus, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, int orderStatus, java.lang.String advanceStatus, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommerceOrder addOrUpdateCommerceOrder(java.lang.String externalReferenceCode, long userId, long groupId, long commerceAccountId, long commerceCurrencyId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal taxAmount, java.math.BigDecimal total, java.math.BigDecimal subtotalWithTaxAmount, java.math.BigDecimal shippingWithTaxAmount, java.math.BigDecimal totalWithTaxAmount, int paymentStatus, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, int orderStatus, java.lang.String advanceStatus, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder applyCouponCode(long commerceOrderId, java.lang.String couponCode, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder createCommerceOrder(long commerceOrderId)
commerceOrderId
- the primary key for the new commerce orderpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder deleteCommerceOrder(CommerceOrder commerceOrder) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceOrderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceOrder
- the commerce ordercom.liferay.portal.kernel.exception.PortalException
public static CommerceOrder deleteCommerceOrder(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceOrderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceOrderId
- the primary key of the commerce ordercom.liferay.portal.kernel.exception.PortalException
- if a commerce order with the primary key could not be foundpublic static void deleteCommerceOrders(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static void deleteCommerceOrders(long userId, java.util.Date date, int status)
public static void deleteCommerceOrdersByAccountId(long commerceAccountId, java.util.Date date, int status)
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static CommerceOrder executeWorkflowTransition(long userId, long commerceOrderId, long workflowTaskId, java.lang.String transitionName, java.lang.String comment) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
public static CommerceOrder fetchCommerceOrder(long commerceOrderId)
@Deprecated public static CommerceOrder fetchCommerceOrder(long commerceAccountId, long groupId, int orderStatus)
public static CommerceOrder fetchCommerceOrder(long commerceAccountId, long groupId, long userId, int orderStatus)
public static CommerceOrder fetchCommerceOrderByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
companyId
- the primary key of the companyexternalReferenceCode
- the commerce order's external reference codenull
if a matching commerce order could not be found@Deprecated public static CommerceOrder fetchCommerceOrderByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceOrderByExternalReferenceCode(long, String)
public static CommerceOrder fetchCommerceOrderByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the commerce order's UUIDgroupId
- the primary key of the groupnull
if a matching commerce order could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static CommerceOrder getCommerceOrder(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
commerceOrderId
- the primary key of the commerce ordercom.liferay.portal.kernel.exception.PortalException
- if a commerce order with the primary key could not be foundpublic static CommerceOrder getCommerceOrderByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
companyId
- the primary key of the companyexternalReferenceCode
- the commerce order's external reference codecom.liferay.portal.kernel.exception.PortalException
- if a matching commerce order could not be foundpublic static CommerceOrder getCommerceOrderByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the commerce order's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching commerce order could not be foundpublic static java.util.List<CommerceOrder> getCommerceOrders(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderModelImpl
.
start
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> getCommerceOrders(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
public static java.util.List<CommerceOrder> getCommerceOrders(long groupId, int[] orderStatuses)
public static java.util.List<CommerceOrder> getCommerceOrders(long groupId, int[] orderStatuses, int start, int end)
public static java.util.List<CommerceOrder> getCommerceOrders(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
public static java.util.List<CommerceOrder> getCommerceOrders(long companyId, long groupId, long[] commerceAccountIds, java.lang.String keywords, int[] orderStatuses, boolean excludeOrderStatus, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceOrder> getCommerceOrders(long groupId, java.lang.String commercePaymentMethodKey)
public static java.util.List<CommerceOrder> getCommerceOrdersByBillingAddress(long billingAddressId)
public static java.util.List<CommerceOrder> getCommerceOrdersByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
public static java.util.List<CommerceOrder> getCommerceOrdersByShippingAddress(long shippingAddressId)
public static java.util.List<CommerceOrder> getCommerceOrdersByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the commerce orderscompanyId
- the primary key of the companypublic static java.util.List<CommerceOrder> getCommerceOrdersByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
uuid
- the UUID of the commerce orderscompanyId
- the primary key of the companystart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getCommerceOrdersCount()
public static int getCommerceOrdersCount(long groupId)
public static int getCommerceOrdersCount(long groupId, long commerceAccountId)
public static long getCommerceOrdersCount(long companyId, long groupId, long[] commerceAccountIds, java.lang.String keywords, int[] orderStatuses, boolean excludeOrderStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceOrdersCountByCommerceAccountId(long commerceAccountId)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceOrder> getShippedCommerceOrdersByCommerceShipmentId(long commerceShipmentId, int start, int end)
@Deprecated public static java.util.List<CommerceOrder> getUserCommerceOrders(long groupId, long userId, long commerceAccountId, java.lang.Integer orderStatus, boolean excludeOrderStatus, java.lang.String keywords, int start, int end)
@Deprecated public static int getUserCommerceOrdersCount(long groupId, long userId, long commerceAccountId, java.lang.Integer orderStatus, boolean excludeOrderStatus, java.lang.String keywords)
public static void mergeGuestCommerceOrder(long guestCommerceOrderId, long userCommerceOrderId, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder recalculatePrice(long commerceOrderId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder reorderCommerceOrder(long userId, long commerceOrderId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder resetCommerceOrderShipping(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrder> searchCommerceOrders(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long searchCommerceOrdersCount(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateAccount(long commerceOrderId, long userId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateBillingAddress(long commerceOrderId, long billingAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateBillingAddress(long commerceOrderId, java.lang.String name, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long regionId, long countryId, java.lang.String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrder(CommerceOrder commerceOrder)
Important: Inspect CommerceOrderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceOrder
- the commerce orderpublic static CommerceOrder updateCommerceOrder(long commerceOrderId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal total, java.lang.String advanceStatus, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrder(java.lang.String externalReferenceCode, long commerceOrderId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal taxAmount, java.math.BigDecimal total, java.math.BigDecimal subtotalWithTaxAmount, java.math.BigDecimal shippingWithTaxAmount, java.math.BigDecimal totalWithTaxAmount, java.lang.String advanceStatus, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrder(java.lang.String externalReferenceCode, long commerceOrderId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal total, java.lang.String advanceStatus, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrderExternalReferenceCode(java.lang.String externalReferenceCode, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrderPrices(long commerceOrderId, 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 shippingAmount, java.math.BigDecimal shippingDiscountAmount, java.math.BigDecimal shippingDiscountPercentageLevel1, java.math.BigDecimal shippingDiscountPercentageLevel2, java.math.BigDecimal shippingDiscountPercentageLevel3, java.math.BigDecimal shippingDiscountPercentageLevel4, 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
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceOrderPrices(long commerceOrderId, 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 shippingAmount, java.math.BigDecimal shippingDiscountAmount, java.math.BigDecimal shippingDiscountPercentageLevel1, java.math.BigDecimal shippingDiscountPercentageLevel2, java.math.BigDecimal shippingDiscountPercentageLevel3, java.math.BigDecimal shippingDiscountPercentageLevel4, 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 subtotalWithTaxAmount, java.math.BigDecimal subtotalDiscountWithTaxAmount, java.math.BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount, java.math.BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount, java.math.BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount, java.math.BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount, java.math.BigDecimal shippingWithTaxAmount, java.math.BigDecimal shippingDiscountWithTaxAmount, java.math.BigDecimal shippingDiscountPercentageLevel1WithTaxAmount, java.math.BigDecimal shippingDiscountPercentageLevel2WithTaxAmount, java.math.BigDecimal shippingDiscountPercentageLevel3WithTaxAmount, java.math.BigDecimal shippingDiscountPercentageLevel4WithTaxAmount, java.math.BigDecimal totalWithTaxAmount, java.math.BigDecimal totalDiscountWithTaxAmount, java.math.BigDecimal totalDiscountPercentageLevel1WithTaxAmount, java.math.BigDecimal totalDiscountPercentageLevel2WithTaxAmount, java.math.BigDecimal totalDiscountPercentageLevel3WithTaxAmount, java.math.BigDecimal totalDiscountPercentageLevel4WithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommercePaymentMethodKey(long commerceOrderId, java.lang.String commercePaymentMethodKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceShippingMethod(long commerceOrderId, long commerceShippingMethodId, java.lang.String commerceShippingOptionName, java.math.BigDecimal shippingAmount, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCommerceShippingMethod(long commerceOrderId, long commerceShippingMethodId, java.lang.String commerceShippingOptionName, CommerceContext commerceContext, java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateCustomFields(long commerceOrderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateInfo(long commerceOrderId, java.lang.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
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateOrderDate(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
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateOrderStatus(long commerceOrderId, int orderStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updatePaymentStatus(long userId, long commerceOrderId, int paymentStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updatePaymentStatusAndTransactionId(long userId, long commerceOrderId, int paymentStatus, java.lang.String transactionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updatePrintedNote(long commerceOrderId, java.lang.String printedNote) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updatePurchaseOrderNumber(long commerceOrderId, java.lang.String purchaseOrderNumber) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateShippingAddress(long commerceOrderId, long shippingAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateShippingAddress(long commerceOrderId, java.lang.String name, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long regionId, long countryId, java.lang.String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateStatus(long userId, long commerceOrderId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateTransactionId(long commerceOrderId, java.lang.String transactionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrder updateUser(long commerceOrderId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommerceOrder upsertCommerceOrder(java.lang.String externalReferenceCode, long userId, long groupId, long commerceAccountId, long commerceCurrencyId, long billingAddressId, long shippingAddressId, java.lang.String commercePaymentMethodKey, long commerceShippingMethodId, java.lang.String shippingOptionName, java.lang.String purchaseOrderNumber, java.math.BigDecimal subtotal, java.math.BigDecimal shippingAmount, java.math.BigDecimal total, int paymentStatus, int orderStatus, java.lang.String advanceStatus, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceOrderLocalService getService()