001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class ShoppingOrderServiceUtil {
037 public static void completeOrder(long groupId, java.lang.String number,
038 java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
039 double ppPaymentGross, java.lang.String ppReceiverEmail,
040 java.lang.String ppPayerEmail)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 getService()
044 .completeOrder(groupId, number, ppTxnId, ppPaymentStatus,
045 ppPaymentGross, ppReceiverEmail, ppPayerEmail);
046 }
047
048 public static void deleteOrder(long groupId, long orderId)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException {
051 getService().deleteOrder(groupId, orderId);
052 }
053
054 public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
055 long groupId, long orderId)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException {
058 return getService().getOrder(groupId, orderId);
059 }
060
061 public static void sendEmail(long groupId, long orderId,
062 java.lang.String emailType)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 getService().sendEmail(groupId, orderId, emailType);
066 }
067
068 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
069 long groupId, long orderId, java.lang.String ppTxnId,
070 java.lang.String ppPaymentStatus, double ppPaymentGross,
071 java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .updateOrder(groupId, orderId, ppTxnId, ppPaymentStatus,
076 ppPaymentGross, ppReceiverEmail, ppPayerEmail);
077 }
078
079 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
080 long groupId, long orderId, java.lang.String billingFirstName,
081 java.lang.String billingLastName, java.lang.String billingEmailAddress,
082 java.lang.String billingCompany, java.lang.String billingStreet,
083 java.lang.String billingCity, java.lang.String billingState,
084 java.lang.String billingZip, java.lang.String billingCountry,
085 java.lang.String billingPhone, boolean shipToBilling,
086 java.lang.String shippingFirstName, java.lang.String shippingLastName,
087 java.lang.String shippingEmailAddress,
088 java.lang.String shippingCompany, java.lang.String shippingStreet,
089 java.lang.String shippingCity, java.lang.String shippingState,
090 java.lang.String shippingZip, java.lang.String shippingCountry,
091 java.lang.String shippingPhone, java.lang.String ccName,
092 java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
093 int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService()
097 .updateOrder(groupId, orderId, billingFirstName,
098 billingLastName, billingEmailAddress, billingCompany,
099 billingStreet, billingCity, billingState, billingZip,
100 billingCountry, billingPhone, shipToBilling, shippingFirstName,
101 shippingLastName, shippingEmailAddress, shippingCompany,
102 shippingStreet, shippingCity, shippingState, shippingZip,
103 shippingCountry, shippingPhone, ccName, ccType, ccNumber,
104 ccExpMonth, ccExpYear, ccVerNumber, comments);
105 }
106
107 public static ShoppingOrderService getService() {
108 if (_service == null) {
109 _service = (ShoppingOrderService)PortalBeanLocatorUtil.locate(ShoppingOrderService.class.getName());
110 }
111
112 return _service;
113 }
114
115 public void setService(ShoppingOrderService service) {
116 _service = service;
117 }
118
119 private static ShoppingOrderService _service;
120 }