1   /**
2    * Copyright (c) 2000-2009 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 is a wrapper for {@link ShoppingOrderService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       ShoppingOrderService
40   * @generated
41   */
42  public class ShoppingOrderServiceWrapper implements ShoppingOrderService {
43      public ShoppingOrderServiceWrapper(
44          ShoppingOrderService shoppingOrderService) {
45          _shoppingOrderService = shoppingOrderService;
46      }
47  
48      public void completeOrder(long groupId, 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 {
54          _shoppingOrderService.completeOrder(groupId, number, ppTxnId,
55              ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
56      }
57  
58      public void deleteOrder(long groupId, long orderId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          _shoppingOrderService.deleteOrder(groupId, orderId);
62      }
63  
64      public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
65          long groupId, long orderId)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return _shoppingOrderService.getOrder(groupId, orderId);
69      }
70  
71      public void sendEmail(long groupId, long orderId, java.lang.String emailType)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          _shoppingOrderService.sendEmail(groupId, orderId, emailType);
75      }
76  
77      public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
78          long groupId, long orderId, java.lang.String ppTxnId,
79          java.lang.String ppPaymentStatus, double ppPaymentGross,
80          java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException {
83          return _shoppingOrderService.updateOrder(groupId, orderId, ppTxnId,
84              ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
85      }
86  
87      public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
88          long groupId, long orderId, java.lang.String billingFirstName,
89          java.lang.String billingLastName, java.lang.String billingEmailAddress,
90          java.lang.String billingCompany, java.lang.String billingStreet,
91          java.lang.String billingCity, java.lang.String billingState,
92          java.lang.String billingZip, java.lang.String billingCountry,
93          java.lang.String billingPhone, boolean shipToBilling,
94          java.lang.String shippingFirstName, java.lang.String shippingLastName,
95          java.lang.String shippingEmailAddress,
96          java.lang.String shippingCompany, java.lang.String shippingStreet,
97          java.lang.String shippingCity, java.lang.String shippingState,
98          java.lang.String shippingZip, java.lang.String shippingCountry,
99          java.lang.String shippingPhone, java.lang.String ccName,
100         java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
101         int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException {
104         return _shoppingOrderService.updateOrder(groupId, orderId,
105             billingFirstName, billingLastName, billingEmailAddress,
106             billingCompany, billingStreet, billingCity, billingState,
107             billingZip, billingCountry, billingPhone, shipToBilling,
108             shippingFirstName, shippingLastName, shippingEmailAddress,
109             shippingCompany, shippingStreet, shippingCity, shippingState,
110             shippingZip, shippingCountry, shippingPhone, ccName, ccType,
111             ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
112     }
113 
114     public ShoppingOrderService getWrappedShoppingOrderService() {
115         return _shoppingOrderService;
116     }
117 
118     private ShoppingOrderService _shoppingOrderService;
119 }