<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_Customer
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <api>
        <resources>
            <customer translate="title" module="customer">
                <model>customer/customer_api</model>
                <title>Customer Api</title>
                <acl>customer</acl>
                <methods>
                    <list translate="title" module="customer">
                        <title>Retrieve customers</title>
                        <method>items</method>
                        <acl>customer/info</acl>
                    </list>
                    <create translate="title" module="customer">
                        <title>Create customer</title>
                        <acl>customer/create</acl>
                    </create>
                    <info translate="title" module="customer">
                        <title>Retrieve customer data</title>
                        <acl>customer/info</acl>
                    </info>
                    <update translate="title" module="customer">
                        <title>Update customer data</title>
                        <acl>customer/update</acl>
                    </update>
                    <delete translate="title" module="customer">
                        <title>Delete customer</title>
                        <acl>customer/delete</acl>
                    </delete>
                </methods>
                <faults module="customer">
                    <data_invalid>
                        <code>100</code>
                        <message>Invalid customer data. Details in error message.</message>
                    </data_invalid>
                    <filters_invalid>
                        <code>101</code>
                        <message>Invalid filters specified. Details in error message.</message>
                    </filters_invalid>
                    <not_exists>
                        <code>102</code>
                        <message>Customer not exists.</message>
                    </not_exists>
                    <not_deleted>
                        <code>103</code>
                        <message>Customer not deleted. Details in error message.</message>
                    </not_deleted>
                </faults>
            </customer>
            <customer_group>
                <model>customer/group_api</model>
                <title>Customer's Groups Api</title>
                <acl>customer</acl>
                <methods>
                    <list translate="title" module="customer">
                        <title>Retrieve customer groups</title>
                        <method>items</method>
                    </list>
                </methods>
            </customer_group>
            <customer_address>
                <model>customer/address_api</model>
                <title>Customer Address Api</title>
                <acl>customer/address</acl>
                <methods>
                    <list translate="title" module="customer">
                        <title>Retrieve customer addresses</title>
                        <method>items</method>
                        <acl>customer/address/info</acl>
                    </list>
                    <create translate="title" module="customer">
                        <title>Create customer address</title>
                        <acl>customer/address/create</acl>
                    </create>
                    <info translate="title" module="customer">
                        <title>Retrieve address data</title>
                        <acl>customer/address/info</acl>
                    </info>
                    <update translate="title" module="customer">
                        <title>Update customer address data</title>
                        <acl>customer/address/update</acl>
                    </update>
                    <delete translate="title" module="customer">
                        <title>Delete customer address</title>
                        <acl>customer/address/delete</acl>
                    </delete>
                </methods>
                <faults module="customer">
                    <data_invalid>
                        <code>100</code>
                        <message>Invalid address data. Details in error message.</message>
                    </data_invalid>
                    <customer_not_exists>
                        <code>101</code>
                        <message>Customer not exists.</message>
                    </customer_not_exists>
                    <not_exists>
                        <code>102</code>
                        <message>Address not exists.</message>
                    </not_exists>
                    <not_deleted>
                        <code>103</code>
                        <message>Address not deleted. Details in error message.</message>
                    </not_deleted>
                </faults>
            </customer_address>
        </resources>
        <v2>
            <resources_function_prefix>
                <customer>customerCustomer</customer>
                <customer_group>customerGroup</customer_group>
                <customer_address>customerAddress</customer_address>
            </resources_function_prefix>
        </v2>
        <acl>
            <resources>
                <customer translate="title" module="customer">
                     <title>Customers</title>
                     <sort_order>3</sort_order>
                     <create translate="title" module="customer">
                        <title>Create</title>
                     </create>
                     <update translate="title" module="customer">
                        <title>Update</title>
                     </update>
                     <delete translate="title" module="customer">
                        <title>Delete</title>
                     </delete>
                     <info translate="title" module="customer">
                        <title>Retrieve customer info</title>
                     </info>
                     <address translate="title" module="customer">
                         <title>Addresses</title>
                         <sort_order>100</sort_order>
                         <create translate="title" module="customer">
                            <title>Create</title>
                         </create>
                         <update translate="title" module="customer">
                            <title>Update</title>
                         </update>
                         <delete translate="title" module="customer">
                            <title>Delete</title>
                         </delete>
                         <info translate="title" module="customer">
                            <title>Retrieve address info</title>
                         </info>
                     </address>
                </customer>
            </resources>
        </acl>
    </api>
</config>
