removing unused conf/multitenancy-billing-rules.drl
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c223eab2 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c223eab2 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c223eab2 Branch: refs/heads/master Commit: c223eab2320a2fb0244d47dc52e8ba9d2b9553f6 Parents: e13e202 Author: Udara Liyanage <[email protected]> Authored: Thu May 14 14:47:12 2015 +0530 Committer: Udara Liyanage <[email protected]> Committed: Thu May 14 20:01:48 2015 +0530 ---------------------------------------------------------------------- .../stratos/conf/multitenancy-billing-rules.drl | 53 -------------------- 1 file changed, 53 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/c223eab2/products/stratos/conf/multitenancy-billing-rules.drl ---------------------------------------------------------------------- diff --git a/products/stratos/conf/multitenancy-billing-rules.drl b/products/stratos/conf/multitenancy-billing-rules.drl deleted file mode 100755 index 20a45c6..0000000 --- a/products/stratos/conf/multitenancy-billing-rules.drl +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -import org.wso2.carbon.billing.core.dataobjects.*; -import org.wso2.carbon.billing.mgt.dataobjects.*; - - -rule smallSubscription -when -$item: MultitenancyPackage(name == "SMB") -$subItem: Item(parent == $item && name == "subscription") -then -$subItem.setCost(new Cash("$100")); -$subItem.setCreditLimit(new Cash("$200")); -end - - -rule mediumSubscription -when -$item: MultitenancyPackage(name == "Professional") -$subItem: Item(parent == $item && name == "subscription") -then -$subItem.setCost(new Cash("$500")); -$subItem.setCreditLimit(new Cash("$1000")); -end - - -rule largeSubscription -when -$item: MultitenancyPackage(name == "Enterprise") -$subItem: Item(parent == $item && name == "subscription") -then -$subItem.setCost(new Cash("$2000")); -$subItem.setCreditLimit(new Cash("$4000")); -end - -
