1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service;
24  
25  
26  /**
27   * <a href="ShoppingOrderServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.shopping.service.ShoppingOrderService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.shopping.service.ShoppingOrderService
45   *
46   */
47  public class ShoppingOrderServiceUtil {
48      public static void completeOrder(long plid, java.lang.String number,
49          java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
50          double ppPaymentGross, java.lang.String ppReceiverEmail,
51          java.lang.String ppPayerEmail)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException, java.rmi.RemoteException {
54          _service.completeOrder(plid, number, ppTxnId, ppPaymentStatus,
55              ppPaymentGross, ppReceiverEmail, ppPayerEmail);
56      }
57  
58      public static void deleteOrder(long plid, long orderId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException, java.rmi.RemoteException {
61          _service.deleteOrder(plid, orderId);
62      }
63  
64      public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
65          long plid, long orderId)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException, java.rmi.RemoteException {
68          return _service.getOrder(plid, orderId);
69      }
70  
71      public static void sendEmail(long plid, long orderId,
72          java.lang.String emailType)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException, java.rmi.RemoteException {
75          _service.sendEmail(plid, orderId, emailType);
76      }
77  
78      public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
79          long plid, long orderId, java.lang.String billingFirstName,
80          java.lang.String billingLastName, java.lang.String billingEmailAddress,
81          java.lang.String billingCompany, java.lang.String billingStreet,
82          java.lang.String billingCity, java.lang.String billingState,
83          java.lang.String billingZip, java.lang.String billingCountry,
84          java.lang.String billingPhone, boolean shipToBilling,
85          java.lang.String shippingFirstName, java.lang.String shippingLastName,
86          java.lang.String shippingEmailAddress,
87          java.lang.String shippingCompany, java.lang.String shippingStreet,
88          java.lang.String shippingCity, java.lang.String shippingState,
89          java.lang.String shippingZip, java.lang.String shippingCountry,
90          java.lang.String shippingPhone, java.lang.String ccName,
91          java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
92          int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException, java.rmi.RemoteException {
95          return _service.updateOrder(plid, orderId, billingFirstName,
96              billingLastName, billingEmailAddress, billingCompany,
97              billingStreet, billingCity, billingState, billingZip,
98              billingCountry, billingPhone, shipToBilling, shippingFirstName,
99              shippingLastName, shippingEmailAddress, shippingCompany,
100             shippingStreet, shippingCity, shippingState, shippingZip,
101             shippingCountry, shippingPhone, ccName, ccType, ccNumber,
102             ccExpMonth, ccExpYear, ccVerNumber, comments);
103     }
104 
105     public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
106         long plid, long orderId, java.lang.String ppTxnId,
107         java.lang.String ppPaymentStatus, double ppPaymentGross,
108         java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException, java.rmi.RemoteException {
111         return _service.updateOrder(plid, orderId, ppTxnId, ppPaymentStatus,
112             ppPaymentGross, ppReceiverEmail, ppPayerEmail);
113     }
114 
115     public static ShoppingOrderService getService() {
116         return _service;
117     }
118 
119     public void setService(ShoppingOrderService service) {
120         _service = service;
121     }
122 
123     private static ShoppingOrderService _service;
124 }