001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class ShoppingOrderServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static void completeOrder(long groupId, java.lang.String number,
059 java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
060 double ppPaymentGross, java.lang.String ppReceiverEmail,
061 java.lang.String ppPayerEmail,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 getService()
066 .completeOrder(groupId, number, ppTxnId, ppPaymentStatus,
067 ppPaymentGross, ppReceiverEmail, ppPayerEmail, serviceContext);
068 }
069
070 public static void deleteOrder(long groupId, long orderId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 getService().deleteOrder(groupId, orderId);
074 }
075
076 public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
077 long groupId, long orderId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getOrder(groupId, orderId);
081 }
082
083 public static void sendEmail(long groupId, long orderId,
084 java.lang.String emailType,
085 com.liferay.portal.service.ServiceContext serviceContext)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 getService().sendEmail(groupId, orderId, emailType, serviceContext);
089 }
090
091 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
092 long groupId, long orderId, java.lang.String ppTxnId,
093 java.lang.String ppPaymentStatus, double ppPaymentGross,
094 java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .updateOrder(groupId, orderId, ppTxnId, ppPaymentStatus,
099 ppPaymentGross, ppReceiverEmail, ppPayerEmail);
100 }
101
102 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
103 long groupId, long orderId, java.lang.String billingFirstName,
104 java.lang.String billingLastName, java.lang.String billingEmailAddress,
105 java.lang.String billingCompany, java.lang.String billingStreet,
106 java.lang.String billingCity, java.lang.String billingState,
107 java.lang.String billingZip, java.lang.String billingCountry,
108 java.lang.String billingPhone, boolean shipToBilling,
109 java.lang.String shippingFirstName, java.lang.String shippingLastName,
110 java.lang.String shippingEmailAddress,
111 java.lang.String shippingCompany, java.lang.String shippingStreet,
112 java.lang.String shippingCity, java.lang.String shippingState,
113 java.lang.String shippingZip, java.lang.String shippingCountry,
114 java.lang.String shippingPhone, java.lang.String ccName,
115 java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
116 int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return getService()
120 .updateOrder(groupId, orderId, billingFirstName,
121 billingLastName, billingEmailAddress, billingCompany,
122 billingStreet, billingCity, billingState, billingZip,
123 billingCountry, billingPhone, shipToBilling, shippingFirstName,
124 shippingLastName, shippingEmailAddress, shippingCompany,
125 shippingStreet, shippingCity, shippingState, shippingZip,
126 shippingCountry, shippingPhone, ccName, ccType, ccNumber,
127 ccExpMonth, ccExpYear, ccVerNumber, comments);
128 }
129
130 public static ShoppingOrderService getService() {
131 if (_service == null) {
132 _service = (ShoppingOrderService)PortalBeanLocatorUtil.locate(ShoppingOrderService.class.getName());
133
134 ReferenceRegistry.registerReference(ShoppingOrderServiceUtil.class,
135 "_service");
136 }
137
138 return _service;
139 }
140
141
144 public void setService(ShoppingOrderService service) {
145 }
146
147 private static ShoppingOrderService _service;
148 }