Done following: 1. Converted events createUpdateCustomerAndShippingAddress and createUpdateBillingAndPayment to services. 2. Written services in order component. 3. Removed dependency form ecommerce. 4. Moved checkout map processor to order and corrected its reference at all other places in ecommerce. 5. Introduced and seca setAnonUserLogin instead of using event from ecommerce. 6. Small respective changes in OnePageCheckoutProcess.ftl and checkoutProcess.js. 7. Also fixed some of the issues found during testing in old createUpdateShippingAddress and createUpdateBillingAddress services. Thanks Pranay for the contribution and Arun for your help in testing the patch for Anonymous & Registered user. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907181 13f79535-47bb-0310-9956-ffa450edef68
59 lines
3.7 KiB
XML
59 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/services.xsd">
|
|
|
|
<service name="createUpdateCustomerAndShippingAddress" engine="simple" location="component://order/script/org/ofbiz/order/order/CheckoutServices.xml" auth="false" invoke="createUpdateCustomerAndShippingAddress">
|
|
<implements service="createUpdateShippingAddress"/>
|
|
<attribute name="shoppingCart" type="org.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/>
|
|
<attribute name="firstName" type="String" mode="IN" optional="true"/>
|
|
<attribute name="lastName" type="String" mode="IN" optional="true"/>
|
|
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
|
|
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
|
|
<attribute name="countryCode" type="String" mode="IN" optional="true"/>
|
|
<attribute name="areaCode" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactNumber" type="String" mode="IN" optional="true"/>
|
|
<attribute name="extension" type="String" mode="IN" optional="true"/>
|
|
<attribute name="emailContactMechId" mode="INOUT" type="String" optional="true"/>
|
|
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
|
|
<attribute name="phoneContactMechId" type="String" mode="INOUT" optional="true"/>
|
|
</service>
|
|
|
|
<service name="createUpdateBillingAddressAndPaymentMethod" engine="simple" location="component://order/script/org/ofbiz/order/order/CheckoutServices.xml" auth="false" invoke="createUpdateBillingAddressAndPaymentMethod">
|
|
<implements service="createUpdateBillingAddress"/>
|
|
<implements service="createUpdateCreditCard"/>
|
|
<attribute name="shoppingCart" type="org.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/>
|
|
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
|
|
<attribute name="countryCode" type="String" mode="IN" optional="true"/>
|
|
<attribute name="areaCode" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactNumber" type="String" mode="IN" optional="true"/>
|
|
<attribute name="extension" type="String" mode="IN" optional="true"/>
|
|
<attribute name="cardSecurityCode" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
|
|
<attribute name="phoneContactMechId" mode="INOUT" type="String" optional="true"/>
|
|
</service>
|
|
|
|
<service name="setAnonUserLogin" engine="simple" location="component://order/script/org/ofbiz/order/order/CheckoutServices.xml" auth="false" invoke="setAnonUserLogin">
|
|
<attribute name="shoppingCart" type="org.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
</services> |