<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * BSS Commerce Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://bsscommerce.com/Bss-Commerce-License.txt
 *
 * @category   BSS
 * @package    Bss_CompanyAccount
 * @author     Extension Team
 * @copyright  Copyright (c) 2020 BSS Commerce Co. ( http://bsscommerce.com )
 * @license    http://bsscommerce.com/Bss-Commerce-License.txt
 */
-->
<!-- company_rules_file.xsd -->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:redefine schemaLocation="urn:magento:module:Bss_CompanyAccount:etc/company_rules.xsd">
        <xs:complexType name="ruleItemType">
            <xs:complexContent>
                <xs:restriction base="ruleItemType">
                    <xs:annotation>
                        <xs:documentation>
                            ACL Rule. Recursive complex type
                        </xs:documentation>
                    </xs:annotation>

                    <xs:sequence>
                        <xs:element minOccurs="0" maxOccurs="unbounded" name="rule" type="ruleItemType" />
                    </xs:sequence>

                    <xs:attribute name="value" type="xs:int" use="required" />
                    <xs:attribute name="title" type="xs:string" use="required" />
                    <xs:attribute name="translate" type="xs:boolean" use="optional" />
                    <xs:attribute name="remove" type="xs:boolean" use="optional" />
                </xs:restriction>
            </xs:complexContent>
        </xs:complexType>
    </xs:redefine>
</xs:schema>
