namespace OnlineBankingApplication

features
	OnlineBanking {abstract}
		mandatory
			UserManagement {abstract}
				or
					LocalUsersSetup {Price 50, NumUsers 100}
					CloudUserManagement {Price 200, NumUsers 1000}
			PaymentProcessing {abstract}
				mandatory
					BankTransfer {Price 30, TransferSpeed "High"}
						or
							SameBankTransfersOnly {Price 5, FlatFee 0.5}
							CrossBankTransfers {Price 25, FlatFee 1.0}
								mandatory
									NationalTransfers {Price 10, InterchangeFee 0.8}
									InternationalTransfers {Price 15, InternationalFee 1.5}
				alternative
					ConventionalPayments {Price 5, TransactionLimit 1000}
					FastPaymentGateway {Price 20, TransactionLimit 5000}
			BankingAccountsManagement {abstract}
				mandatory
					SavingsAccount {Price 20, InterestRate 0.01}
					CurrentAccount {Price 40, MinimumBalance 500}
				or
					JointSavingsAccount {Price 30, JointInterestRate 0.015}
			SecurityAndFraudProtection {abstract}
				mandatory
					TwoFactorAuthentication {Price 10}
						optional
							EmailVerification {Price 2}
							TextMessageVerification {Price 3}
				or
					BiometricAuthentication {Price 50}
			CustomerSupportServices {abstract}
				mandatory
					OnlineChat {Price 15}
					EmailResponse {Price 20}
				or
					PhoneAssistance {Price 30}
			MobileBankingFeatures {abstract}
				mandatory
					AccountSummary {Price 5}
					BillPayments {Price 10}
					TransferFunds {Price 5}
				or
					PayPalIntegration {Price 20, FlatFee 1}
			CardManagement {abstract}
				mandatory
					VirtualDebitCards {Price 30, CardLimit 1000}
				or
					SingleUsePlasticCards {Price 45}
constraints
	BankTransfer.Price + ConventionalPayments.Price > 70
	CloudUserManagement.NumUsers >= LocalUsersSetup.NumUsers * 5
	TwoFactorAuthentication => EmailVerification.Price <= 2
	FastPaymentGateway.TransactionLimit > ConventionalPayments.TransactionLimit + 1000
	MobileBankingFeatures.BillPayments.Price < CardManagement.VirtualDebitCards.CardLimit / 10
	SavingsAccount.InterestRate >= CurrentAccount.MinimumBalance * 0.005
	ConventionalPayments.TransactionLimit <= PhoneAssistance.Price * 2 + 2
	UserManagement.CloudUserManagement.Price > UserManagement.LocalUsersSetup.Price * 3
	BankTransfer.CrossBankTransfers.InterchangeFee >= NationalTransfers.FlatFee
	JointSavingsAccount.JointInterestRate <= SavingsAccount.InterestRate * 1.5