001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.service.BaseService;
024    
025    /**
026     * The interface for the shopping order remote service.
027     *
028     * <p>
029     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see ShoppingOrderServiceUtil
034     * @see com.liferay.portlet.shopping.service.base.ShoppingOrderServiceBaseImpl
035     * @see com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface ShoppingOrderService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link ShoppingOrderServiceUtil} to access the shopping order remote service. Add custom service methods to {@link com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            public void completeOrder(long groupId, java.lang.String number,
063                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
064                    double ppPaymentGross, java.lang.String ppReceiverEmail,
065                    java.lang.String ppPayerEmail,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public void deleteOrder(long groupId, long orderId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
076                    long groupId, long orderId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public void sendEmail(long groupId, long orderId,
081                    java.lang.String emailType,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
087                    long groupId, long orderId, java.lang.String ppTxnId,
088                    java.lang.String ppPaymentStatus, double ppPaymentGross,
089                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
094                    long groupId, long orderId, java.lang.String billingFirstName,
095                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
096                    java.lang.String billingCompany, java.lang.String billingStreet,
097                    java.lang.String billingCity, java.lang.String billingState,
098                    java.lang.String billingZip, java.lang.String billingCountry,
099                    java.lang.String billingPhone, boolean shipToBilling,
100                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
101                    java.lang.String shippingEmailAddress,
102                    java.lang.String shippingCompany, java.lang.String shippingStreet,
103                    java.lang.String shippingCity, java.lang.String shippingState,
104                    java.lang.String shippingZip, java.lang.String shippingCountry,
105                    java.lang.String shippingPhone, java.lang.String ccName,
106                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
107                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    }