Class CommerceOrderLocalServiceWrapper
- All Implemented Interfaces:
CommerceOrderLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderLocalService>
CommerceOrderLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommerceOrderLocalServiceWrapper
(CommerceOrderLocalService commerceOrderLocalService) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.repository.model.FileEntry
addAttachmentFileEntry
(String externalReferenceCode, long userId, long commerceOrderId, String fileName, InputStream inputStream) addCommerceOrder
(long userId, long groupId, long billingAddressId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId, long commerceShippingMethodId, long shippingAddressId, String commercePaymentMethodKey, String name, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, int orderStatus, int paymentStatus, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalWithTaxAmount, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCommerceOrder
(long userId, long groupId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId) addCommerceOrder
(CommerceOrder commerceOrder) Adds the commerce order to the database.addOrUpdateCommerceOrder
(String externalReferenceCode, long userId, 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, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalWithTaxAmount, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) applyCouponCode
(long commerceOrderId, String couponCode, CommerceContext commerceContext) createCommerceOrder
(long commerceOrderId) Creates a new commerce order with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteAttachmentFileEntry
(long attachmentFileEntryId, long commerceOrderId) deleteCommerceOrder
(long commerceOrderId) Deletes the commerce order with the primary key from the database.deleteCommerceOrder
(CommerceOrder commerceOrder) Deletes the commerce order from the database.void
deleteCommerceOrders
(long groupId) void
deleteCommerceOrders
(long userId, Date date, int status) Deprecated.As of Athanasius (7.3.x), delete by commerceAccountIdvoid
deleteCommerceOrdersByAccountId
(long commerceAccountId, Date date, int status) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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.<T> 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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.executeWorkflowTransition
(long userId, long commerceOrderId, long workflowTaskId, String transitionName, String comment) fetchCommerceOrder
(long commerceOrderId) fetchCommerceOrder
(long commerceAccountId, long groupId, int orderStatus) Deprecated.As of Athanasius (7.3.x)fetchCommerceOrder
(long commerceAccountId, long groupId, long userId, int orderStatus) fetchCommerceOrderByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCommerceOrderByUuidAndGroupId
(String uuid, long groupId) Returns the commerce order matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCommerceOrder
(long commerceOrderId) Returns the commerce order with the primary key.getCommerceOrderByExternalReferenceCode
(String externalReferenceCode, long companyId) getCommerceOrderByUuidAndGroupId
(String uuid, long groupId) Returns the commerce order matching the UUID and group.getCommerceOrders
(int start, int end) Returns a range of all the commerce orders.getCommerceOrders
(long groupId, int[] orderStatuses) getCommerceOrders
(long groupId, int[] orderStatuses, int start, int end) getCommerceOrders
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) getCommerceOrders
(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) getCommerceOrders
(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus, int start, int end) getCommerceOrders
(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus, int start, int end, com.liferay.portal.kernel.search.Sort sort) getCommerceOrders
(long groupId, String commercePaymentMethodKey) getCommerceOrdersByBillingAddress
(long billingAddressId) getCommerceOrdersByCommerceAccountId
(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) getCommerceOrdersByShippingAddress
(long shippingAddressId) getCommerceOrdersByUuidAndCompanyId
(String uuid, long companyId) Returns all the commerce orders matching the UUID and company.getCommerceOrdersByUuidAndCompanyId
(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.int
Returns the number of commerce orders.int
getCommerceOrdersCount
(long groupId) int
getCommerceOrdersCount
(long groupId, long commerceAccountId) long
getCommerceOrdersCount
(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus) int
getCommerceOrdersCountByCommerceAccountId
(long commerceAccountId) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getShippedCommerceOrdersByCommerceShipmentId
(long commerceShipmentId, int start, int end) getUserCommerceOrders
(long groupId, long userId, long commerceAccountId, Integer orderStatus, boolean excludeOrderStatus, String keywords, int start, int end) Deprecated.As of Mueller (7.2.x)int
getUserCommerceOrdersCount
(long groupId, long userId, long commerceAccountId, Integer orderStatus, boolean excludeOrderStatus, String keywords) Deprecated.As of Mueller (7.2.x)void
mergeGuestCommerceOrder
(long userId, long guestCommerceOrderId, long userCommerceOrderId, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) recalculatePrice
(long commerceOrderId, CommerceContext commerceContext) reorderCommerceOrder
(long userId, long commerceOrderId, CommerceContext commerceContext) resetCommerceOrderAddresses
(long commerceOrderId, boolean billingAddress, boolean shippingAddress) resetCommerceOrderShipping
(long commerceOrderId) void
resetCommerceOrderShippingByAddressId
(long addressId) resetTermsAndConditions
(long commerceOrderId, boolean resetDeliveryCommerceTerm, boolean resetPaymentCommerceTermEntry) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrder>
searchCommerceOrders
(com.liferay.portal.kernel.search.SearchContext searchContext) long
searchCommerceOrdersCount
(com.liferay.portal.kernel.search.SearchContext searchContext) void
setWrappedService
(CommerceOrderLocalService commerceOrderLocalService) updateAccount
(long commerceOrderId, long userId, long commerceAccountId) updateBillingAddress
(long commerceOrderId, long billingAddressId) updateBillingAddress
(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) updateCommerceOrder
(long userId, String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId, long commerceShippingMethodId, long deliveryCommerceTermEntryId, long paymentCommerceTermEntryId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String couponCode, String deliveryCommerceTermEntryDescription, String deliveryCommerceTermEntryName, Date lastPriceUpdateDate, boolean manuallyAdjusted, String name, Date orderDate, int orderStatus, String paymentCommerceTermEntryDescription, String paymentCommerceTermEntryName, int paymentStatus, String printedNote, String purchaseOrderNumber, Date requestedDeliveryDate, boolean shippable, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal shippingDiscountPercentageLevel1WithTaxAmount, BigDecimal shippingDiscountPercentageLevel2WithTaxAmount, BigDecimal shippingDiscountPercentageLevel3WithTaxAmount, BigDecimal shippingDiscountPercentageLevel4WithTaxAmount, BigDecimal shippingDiscountWithTaxAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount, BigDecimal subtotalDiscountWithTaxAmount, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4, BigDecimal totalDiscountPercentageLevel1WithTaxAmount, BigDecimal totalDiscountPercentageLevel2WithTaxAmount, BigDecimal totalDiscountPercentageLevel3WithTaxAmount, BigDecimal totalDiscountPercentageLevel4WithTaxAmount, BigDecimal totalDiscountWithTaxAmount, BigDecimal totalWithTaxAmount, String transactionId, int status, long statusByUserId, String statusByUserName, Date statusDate, boolean recalculate, CommerceContext commerceContext) updateCommerceOrder
(CommerceOrder commerceOrder) Updates the commerce order in the database or adds it if it does not yet exist.updateCommerceOrder
(String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceShippingMethodId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String name, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal subtotal, BigDecimal total) updateCommerceOrder
(String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceShippingMethodId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String name, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalWithTaxAmount) void
updateCommerceOrderAddresses
(long addressId) updateCommerceOrderExternalReferenceCode
(String externalReferenceCode, long commerceOrderId) updateCommerceOrderPrices
(long commerceOrderId, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4) updateCommerceOrderPrices
(long commerceOrderId, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal shippingDiscountPercentageLevel1WithTaxAmount, BigDecimal shippingDiscountPercentageLevel2WithTaxAmount, BigDecimal shippingDiscountPercentageLevel3WithTaxAmount, BigDecimal shippingDiscountPercentageLevel4WithTaxAmount, BigDecimal shippingDiscountWithTaxAmount, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount, BigDecimal subtotalDiscountWithTaxAmount, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4, BigDecimal totalDiscountPercentageLevel1WithTaxAmount, BigDecimal totalDiscountPercentageLevel2WithTaxAmount, BigDecimal totalDiscountPercentageLevel3WithTaxAmount, BigDecimal totalDiscountPercentageLevel4WithTaxAmount, BigDecimal totalDiscountWithTaxAmount, BigDecimal totalWithTaxAmount) updateCommercePaymentMethodKey
(long commerceOrderId, String commercePaymentMethodKey) updateCommerceShippingMethod
(long commerceOrderId, long commerceShippingMethodId, String commerceShippingOptionName, CommerceContext commerceContext, Locale locale) updateCommerceShippingMethod
(long commerceOrderId, long commerceShippingMethodId, String commerceShippingOptionName, BigDecimal shippingAmount, CommerceContext commerceContext) updateInfo
(long commerceOrderId, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear, int requestedDeliveryDateHour, int requestedDeliveryDateMinute, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateOrderDate
(long commerceOrderId, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, com.liferay.portal.kernel.service.ServiceContext serviceContext) updatePaymentStatus
(long userId, long commerceOrderId, int paymentStatus) updatePaymentStatusAndTransactionId
(long userId, long commerceOrderId, int paymentStatus, String transactionId) updatePrintedNote
(long commerceOrderId, String printedNote) updatePurchaseOrderNumber
(long commerceOrderId, String purchaseOrderNumber) updateShippingAddress
(long commerceOrderId, long shippingAddressId) updateShippingAddress
(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) updateStatus
(long userId, long commerceOrderId, int status, Map<String, Serializable> workflowContext) updateTermsAndConditions
(long commerceOrderId, long deliveryCommerceTermEntryId, long paymentCommerceTermEntryId, String languageId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CommerceOrderLocalServiceWrapper
public CommerceOrderLocalServiceWrapper() -
CommerceOrderLocalServiceWrapper
-
-
Method Details
-
addAttachmentFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry addAttachmentFileEntry(String externalReferenceCode, long userId, long commerceOrderId, String fileName, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addAttachmentFileEntry
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceOrder
Adds the commerce order to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrder
- the commerce order- Returns:
- the commerce order that was added
-
addCommerceOrder
public CommerceOrder addCommerceOrder(long userId, long groupId, long billingAddressId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId, long commerceShippingMethodId, long shippingAddressId, String commercePaymentMethodKey, String name, int orderDateMonth, int orderDateDay, int orderDateYear, int orderDateHour, int orderDateMinute, int orderStatus, int paymentStatus, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalWithTaxAmount, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceOrder
public CommerceOrder addCommerceOrder(long userId, long groupId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceOrder
public CommerceOrder addOrUpdateCommerceOrder(String externalReferenceCode, long userId, 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, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalWithTaxAmount, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOrUpdateCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
applyCouponCode
public CommerceOrder applyCouponCode(long commerceOrderId, String couponCode, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
applyCouponCode
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCommerceOrder
Creates a new commerce order with the primary key. Does not add the commerce order to the database.- Specified by:
createCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrderId
- the primary key for the new commerce order- Returns:
- the new commerce order
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCommerceOrderLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteAttachmentFileEntry
public void deleteAttachmentFileEntry(long attachmentFileEntryId, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteAttachmentFileEntry
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrder
public CommerceOrder deleteCommerceOrder(CommerceOrder commerceOrder) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce order from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrder
- the commerce order- Returns:
- the commerce order that was removed
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrder
public CommerceOrder deleteCommerceOrder(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce order with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrderId
- the primary key of the commerce order- Returns:
- the commerce order that was removed
- Throws:
PortalException
- if a commerce order with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrders
public void deleteCommerceOrders(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrders
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrders
Deprecated.As of Athanasius (7.3.x), delete by commerceAccountId- Specified by:
deleteCommerceOrders
in interfaceCommerceOrderLocalService
-
deleteCommerceOrdersByAccountId
public void deleteCommerceOrdersByAccountId(long commerceAccountId, Date date, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrdersByAccountId
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCommerceOrderLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCommerceOrderLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCommerceOrderLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommerceOrderLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCommerceOrderLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceOrderLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceOrderLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCommerceOrderLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCommerceOrderLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
executeWorkflowTransition
public CommerceOrder executeWorkflowTransition(long userId, long commerceOrderId, long workflowTaskId, String transitionName, String comment) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
executeWorkflowTransition
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceOrder
- Specified by:
fetchCommerceOrder
in interfaceCommerceOrderLocalService
-
fetchCommerceOrder
@Deprecated public CommerceOrder fetchCommerceOrder(long commerceAccountId, long groupId, int orderStatus) Deprecated.As of Athanasius (7.3.x)- Specified by:
fetchCommerceOrder
in interfaceCommerceOrderLocalService
-
fetchCommerceOrder
public CommerceOrder fetchCommerceOrder(long commerceAccountId, long groupId, long userId, int orderStatus) - Specified by:
fetchCommerceOrder
in interfaceCommerceOrderLocalService
-
fetchCommerceOrderByExternalReferenceCode
public CommerceOrder fetchCommerceOrderByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommerceOrderByExternalReferenceCode
in interfaceCommerceOrderLocalService
-
fetchCommerceOrderByUuidAndGroupId
Returns the commerce order matching the UUID and group.- Specified by:
fetchCommerceOrderByUuidAndGroupId
in interfaceCommerceOrderLocalService
- Parameters:
uuid
- the commerce order's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce order, or
null
if a matching commerce order could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommerceOrderLocalService
-
getCommerceOrder
public CommerceOrder getCommerceOrder(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order with the primary key.- Specified by:
getCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrderId
- the primary key of the commerce order- Returns:
- the commerce order
- Throws:
PortalException
- if a commerce order with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderByExternalReferenceCode
public CommerceOrder getCommerceOrderByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderByExternalReferenceCode
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderByUuidAndGroupId
public CommerceOrder getCommerceOrderByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order matching the UUID and group.- Specified by:
getCommerceOrderByUuidAndGroupId
in interfaceCommerceOrderLocalService
- Parameters:
uuid
- the commerce order's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce order
- Throws:
PortalException
- if a matching commerce order could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceOrders
Returns a range of all the commerce orders.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderModelImpl
.- Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
- Parameters:
start
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)- Returns:
- the range of commerce orders
-
getCommerceOrders
public List<CommerceOrder> getCommerceOrders(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) - Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
-
getCommerceOrders
- Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
-
getCommerceOrders
- Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
-
getCommerceOrders
public List<CommerceOrder> getCommerceOrders(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) - Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
-
getCommerceOrders
public List<CommerceOrder> getCommerceOrders(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrders
public List<CommerceOrder> getCommerceOrders(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrders
- Specified by:
getCommerceOrders
in interfaceCommerceOrderLocalService
-
getCommerceOrdersByBillingAddress
- Specified by:
getCommerceOrdersByBillingAddress
in interfaceCommerceOrderLocalService
-
getCommerceOrdersByCommerceAccountId
public List<CommerceOrder> getCommerceOrdersByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) - Specified by:
getCommerceOrdersByCommerceAccountId
in interfaceCommerceOrderLocalService
-
getCommerceOrdersByShippingAddress
- Specified by:
getCommerceOrdersByShippingAddress
in interfaceCommerceOrderLocalService
-
getCommerceOrdersByUuidAndCompanyId
Returns all the commerce orders matching the UUID and company.- Specified by:
getCommerceOrdersByUuidAndCompanyId
in interfaceCommerceOrderLocalService
- Parameters:
uuid
- the UUID of the commerce orderscompanyId
- the primary key of the company- Returns:
- the matching commerce orders, or an empty list if no matches were found
-
getCommerceOrdersByUuidAndCompanyId
public List<CommerceOrder> getCommerceOrdersByUuidAndCompanyId(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.- Specified by:
getCommerceOrdersByUuidAndCompanyId
in interfaceCommerceOrderLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the range of matching commerce orders, or an empty list if no matches were found
-
getCommerceOrdersCount
public int getCommerceOrdersCount()Returns the number of commerce orders.- Specified by:
getCommerceOrdersCount
in interfaceCommerceOrderLocalService
- Returns:
- the number of commerce orders
-
getCommerceOrdersCount
public int getCommerceOrdersCount(long groupId) - Specified by:
getCommerceOrdersCount
in interfaceCommerceOrderLocalService
-
getCommerceOrdersCount
public int getCommerceOrdersCount(long groupId, long commerceAccountId) - Specified by:
getCommerceOrdersCount
in interfaceCommerceOrderLocalService
-
getCommerceOrdersCount
public long getCommerceOrdersCount(long companyId, long groupId, long[] commerceAccountIds, String keywords, int[] orderStatuses, boolean excludeOrderStatus) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrdersCount
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrdersCountByCommerceAccountId
public int getCommerceOrdersCountByCommerceAccountId(long commerceAccountId) - Specified by:
getCommerceOrdersCountByCommerceAccountId
in interfaceCommerceOrderLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCommerceOrderLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommerceOrderLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommerceOrderLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCommerceOrderLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getShippedCommerceOrdersByCommerceShipmentId
public List<CommerceOrder> getShippedCommerceOrdersByCommerceShipmentId(long commerceShipmentId, int start, int end) - Specified by:
getShippedCommerceOrdersByCommerceShipmentId
in interfaceCommerceOrderLocalService
-
getUserCommerceOrders
@Deprecated public List<CommerceOrder> getUserCommerceOrders(long groupId, long userId, long commerceAccountId, Integer orderStatus, boolean excludeOrderStatus, String keywords, int start, int end) Deprecated.As of Mueller (7.2.x)- Specified by:
getUserCommerceOrders
in interfaceCommerceOrderLocalService
-
getUserCommerceOrdersCount
@Deprecated public int getUserCommerceOrdersCount(long groupId, long userId, long commerceAccountId, Integer orderStatus, boolean excludeOrderStatus, String keywords) Deprecated.As of Mueller (7.2.x)- Specified by:
getUserCommerceOrdersCount
in interfaceCommerceOrderLocalService
-
mergeGuestCommerceOrder
public void mergeGuestCommerceOrder(long userId, long guestCommerceOrderId, long userCommerceOrderId, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
mergeGuestCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
recalculatePrice
public CommerceOrder recalculatePrice(long commerceOrderId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
recalculatePrice
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
reorderCommerceOrder
public CommerceOrder reorderCommerceOrder(long userId, long commerceOrderId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
reorderCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
resetCommerceOrderAddresses
public CommerceOrder resetCommerceOrderAddresses(long commerceOrderId, boolean billingAddress, boolean shippingAddress) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
resetCommerceOrderAddresses
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
resetCommerceOrderShipping
public CommerceOrder resetCommerceOrderShipping(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
resetCommerceOrderShipping
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
resetCommerceOrderShippingByAddressId
public void resetCommerceOrderShippingByAddressId(long addressId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
resetCommerceOrderShippingByAddressId
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
resetTermsAndConditions
public CommerceOrder resetTermsAndConditions(long commerceOrderId, boolean resetDeliveryCommerceTerm, boolean resetPaymentCommerceTermEntry) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
resetTermsAndConditions
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrders
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrder> searchCommerceOrders(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommerceOrders
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrdersCount
public long searchCommerceOrdersCount(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommerceOrdersCount
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAccount
public CommerceOrder updateAccount(long commerceOrderId, long userId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateAccount
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateBillingAddress
public CommerceOrder updateBillingAddress(long commerceOrderId, long billingAddressId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateBillingAddress
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateBillingAddress
public CommerceOrder updateBillingAddress(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 - Specified by:
updateBillingAddress
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrder
Updates the commerce order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateCommerceOrder
in interfaceCommerceOrderLocalService
- Parameters:
commerceOrder
- the commerce order- Returns:
- the commerce order that was updated
-
updateCommerceOrder
public CommerceOrder updateCommerceOrder(long userId, String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceAccountId, String commerceCurrencyCode, long commerceOrderTypeId, long commerceShippingMethodId, long deliveryCommerceTermEntryId, long paymentCommerceTermEntryId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String couponCode, String deliveryCommerceTermEntryDescription, String deliveryCommerceTermEntryName, Date lastPriceUpdateDate, boolean manuallyAdjusted, String name, Date orderDate, int orderStatus, String paymentCommerceTermEntryDescription, String paymentCommerceTermEntryName, int paymentStatus, String printedNote, String purchaseOrderNumber, Date requestedDeliveryDate, boolean shippable, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal shippingDiscountPercentageLevel1WithTaxAmount, BigDecimal shippingDiscountPercentageLevel2WithTaxAmount, BigDecimal shippingDiscountPercentageLevel3WithTaxAmount, BigDecimal shippingDiscountPercentageLevel4WithTaxAmount, BigDecimal shippingDiscountWithTaxAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount, BigDecimal subtotalDiscountWithTaxAmount, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4, BigDecimal totalDiscountPercentageLevel1WithTaxAmount, BigDecimal totalDiscountPercentageLevel2WithTaxAmount, BigDecimal totalDiscountPercentageLevel3WithTaxAmount, BigDecimal totalDiscountPercentageLevel4WithTaxAmount, BigDecimal totalDiscountWithTaxAmount, BigDecimal totalWithTaxAmount, String transactionId, int status, long statusByUserId, String statusByUserName, Date statusDate, boolean recalculate, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrder
public CommerceOrder updateCommerceOrder(String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceShippingMethodId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String name, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal subtotal, BigDecimal total) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrder
public CommerceOrder updateCommerceOrder(String externalReferenceCode, long commerceOrderId, long billingAddressId, long commerceShippingMethodId, long shippingAddressId, String advanceStatus, String commercePaymentMethodKey, String name, String purchaseOrderNumber, BigDecimal shippingAmount, String shippingOptionName, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalWithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrder
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderAddresses
public void updateCommerceOrderAddresses(long addressId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderAddresses
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderExternalReferenceCode
public CommerceOrder updateCommerceOrderExternalReferenceCode(String externalReferenceCode, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderExternalReferenceCode
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderPrices
public CommerceOrder updateCommerceOrderPrices(long commerceOrderId, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderPrices
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderPrices
public CommerceOrder updateCommerceOrderPrices(long commerceOrderId, BigDecimal shippingAmount, BigDecimal shippingDiscountAmount, BigDecimal shippingDiscountPercentageLevel1, BigDecimal shippingDiscountPercentageLevel2, BigDecimal shippingDiscountPercentageLevel3, BigDecimal shippingDiscountPercentageLevel4, BigDecimal shippingDiscountPercentageLevel1WithTaxAmount, BigDecimal shippingDiscountPercentageLevel2WithTaxAmount, BigDecimal shippingDiscountPercentageLevel3WithTaxAmount, BigDecimal shippingDiscountPercentageLevel4WithTaxAmount, BigDecimal shippingDiscountWithTaxAmount, BigDecimal shippingWithTaxAmount, BigDecimal subtotal, BigDecimal subtotalDiscountAmount, BigDecimal subtotalDiscountPercentageLevel1, BigDecimal subtotalDiscountPercentageLevel2, BigDecimal subtotalDiscountPercentageLevel3, BigDecimal subtotalDiscountPercentageLevel4, BigDecimal subtotalDiscountPercentageLevel1WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel2WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel3WithTaxAmount, BigDecimal subtotalDiscountPercentageLevel4WithTaxAmount, BigDecimal subtotalDiscountWithTaxAmount, BigDecimal subtotalWithTaxAmount, BigDecimal taxAmount, BigDecimal total, BigDecimal totalDiscountAmount, BigDecimal totalDiscountPercentageLevel1, BigDecimal totalDiscountPercentageLevel2, BigDecimal totalDiscountPercentageLevel3, BigDecimal totalDiscountPercentageLevel4, BigDecimal totalDiscountPercentageLevel1WithTaxAmount, BigDecimal totalDiscountPercentageLevel2WithTaxAmount, BigDecimal totalDiscountPercentageLevel3WithTaxAmount, BigDecimal totalDiscountPercentageLevel4WithTaxAmount, BigDecimal totalDiscountWithTaxAmount, BigDecimal totalWithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderPrices
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommercePaymentMethodKey
public CommerceOrder updateCommercePaymentMethodKey(long commerceOrderId, String commercePaymentMethodKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommercePaymentMethodKey
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceShippingMethod
public CommerceOrder updateCommerceShippingMethod(long commerceOrderId, long commerceShippingMethodId, String commerceShippingOptionName, BigDecimal shippingAmount, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceShippingMethod
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceShippingMethod
public CommerceOrder updateCommerceShippingMethod(long commerceOrderId, long commerceShippingMethodId, String commerceShippingOptionName, CommerceContext commerceContext, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceShippingMethod
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateInfo
public CommerceOrder updateInfo(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 - Specified by:
updateInfo
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateOrderDate
public 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 - Specified by:
updateOrderDate
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePaymentStatus
public CommerceOrder updatePaymentStatus(long userId, long commerceOrderId, int paymentStatus) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePaymentStatus
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePaymentStatusAndTransactionId
public CommerceOrder updatePaymentStatusAndTransactionId(long userId, long commerceOrderId, int paymentStatus, String transactionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePaymentStatusAndTransactionId
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePrintedNote
public CommerceOrder updatePrintedNote(long commerceOrderId, String printedNote) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePrintedNote
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePurchaseOrderNumber
public CommerceOrder updatePurchaseOrderNumber(long commerceOrderId, String purchaseOrderNumber) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePurchaseOrderNumber
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateShippingAddress
public CommerceOrder updateShippingAddress(long commerceOrderId, long shippingAddressId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateShippingAddress
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateShippingAddress
public CommerceOrder updateShippingAddress(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 - Specified by:
updateShippingAddress
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CommerceOrder updateStatus(long userId, long commerceOrderId, int status, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateStatus
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateTermsAndConditions
public CommerceOrder updateTermsAndConditions(long commerceOrderId, long deliveryCommerceTermEntryId, long paymentCommerceTermEntryId, String languageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateTermsAndConditions
in interfaceCommerceOrderLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderLocalService>
-