<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
            xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
    <throttle:MediatorThrottleAssertion>
        <wsp:Policy>
            <!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
             element.
             For ex:  <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
                      ......
             -->
            <throttle:ID throttle:type="ROLE">Ultimate</throttle:ID>
            <wsp:Policy>
                <throttle:Control>
                    <wsp:Policy>
                        <throttle:MaximumCount>20</throttle:MaximumCount>
                        <throttle:UnitTime>60000</throttle:UnitTime>
                        <!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
                        <wsp:Policy>
                        <throttle:Attributes>
                            <throttle:Attribute1>xxxx</throttle:Attribute1>
                            <throttle:Attribute2>xxxx</throttle:Attribute2>
                        </throttle:Attributes>
                        </wsp:Policy>
                        -->
                        <wsp:Policy>
                            <throttle:Attributes>
                                <throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
                                <throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
                            </throttle:Attributes>
                        </wsp:Policy>
                    </wsp:Policy>
                </throttle:Control>
            </wsp:Policy>
        </wsp:Policy>
        <wsp:Policy>
            <!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
            element.
            For ex:  <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
                     ......
            -->
            <throttle:ID throttle:type="ROLE">Plus</throttle:ID>
            <wsp:Policy>
                <throttle:Control>
                    <wsp:Policy>
                        <throttle:MaximumCount>5</throttle:MaximumCount>
                        <throttle:UnitTime>60000</throttle:UnitTime>
                        <!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
                        <wsp:Policy>
                        <throttle:Attributes>
                            <throttle:Attribute1>xxxx</throttle:Attribute1>
                            <throttle:Attribute2>xxxx</throttle:Attribute2>
                        </throttle:Attributes>
                        </wsp:Policy>
                        -->
                        <wsp:Policy>
                            <throttle:Attributes>
                                <throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
                                <throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
                            </throttle:Attributes>
                        </wsp:Policy>
                    </wsp:Policy>
                </throttle:Control>
            </wsp:Policy>
        </wsp:Policy>
        <wsp:Policy>
            <!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
            element.
            For ex:  <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
                     ......
            -->
            <throttle:ID throttle:type="ROLE">Basic</throttle:ID>
            <wsp:Policy>
                <throttle:Control>
                    <wsp:Policy>
                        <throttle:MaximumCount>1</throttle:MaximumCount>
                        <throttle:UnitTime>60000</throttle:UnitTime>
                        <!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
                        <wsp:Policy>
                        <throttle:Attributes>
                            <throttle:Attribute1>xxxx</throttle:Attribute1>
                            <throttle:Attribute2>xxxx</throttle:Attribute2>
                        </throttle:Attributes>
                        </wsp:Policy>
                        -->
                        <wsp:Policy>
                            <throttle:Attributes>
                                <throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
                                <throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
                            </throttle:Attributes>
                        </wsp:Policy>
                    </wsp:Policy>
                </throttle:Control>
            </wsp:Policy>
        </wsp:Policy>
        <wsp:Policy>
            <!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
            element.
            For ex:  <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
                     ......
            -->
            <throttle:ID throttle:type="ROLE">Unauthenticated</throttle:ID>
            <wsp:Policy>
                <throttle:Control>
                    <wsp:Policy>
                        <throttle:MaximumCount>60</throttle:MaximumCount>
                        <throttle:UnitTime>60000</throttle:UnitTime>
                        <!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
                        <wsp:Policy>
                        <throttle:Attributes>
                            <throttle:Attribute1>xxxx</throttle:Attribute1>
                            <throttle:Attribute2>xxxx</throttle:Attribute2>
                        </throttle:Attributes>
                        </wsp:Policy>
                        -->
                    </wsp:Policy>
                </throttle:Control>
            </wsp:Policy>
        </wsp:Policy>
    </throttle:MediatorThrottleAssertion>
</wsp:Policy>
