├── .gitignore ├── .travis.yml ├── README.md ├── composer.json ├── phpunit.xml ├── public └── .gitkeep ├── src ├── Owlgrin │ └── Wallet │ │ ├── Commands │ │ ├── AddCouponCommand.php │ │ ├── AddCouponForUserCommand.php │ │ ├── AddCreditsCommand.php │ │ └── WalletTableCommand.php │ │ ├── Coupon │ │ ├── CouponRepo.php │ │ └── DbCouponRepo.php │ │ ├── Exceptions │ │ ├── CouponExistsException.php │ │ ├── CouponLimitReachedException.php │ │ ├── EmptyWalletException.php │ │ ├── Exception.php │ │ ├── InternalException.php │ │ ├── InvalidTransactionException.php │ │ └── WalletNotCreatedException.php │ │ ├── Transaction │ │ ├── AbstractTransactionMaker.php │ │ ├── AmountTransactionMaker.php │ │ ├── DbTransactionRepo.php │ │ ├── MaxRedemptionTransactionMaker.php │ │ ├── RedemptionTransactionMaker.php │ │ ├── SimpleAmountTransactionMaker.php │ │ ├── SimpleRedemptionTransactionMaker.php │ │ ├── TransactionMaker.php │ │ └── TransactionRepo.php │ │ ├── Wallet.php │ │ ├── Wallet │ │ ├── DbWalletRepo.php │ │ └── WalletRepo.php │ │ ├── WalletFacade.php │ │ └── WalletServiceProvider.php ├── config │ ├── .gitkeep │ └── config.php ├── lang │ ├── .gitkeep │ └── en │ │ └── exception.php └── stubs │ └── migration.stub └── tests ├── .gitkeep ├── BalanceTest.php ├── Commands └── AddCouponCommandTest.php ├── CouponTest.php ├── CreditTest.php ├── RedemptionTest.php ├── TestCase.php └── TransactionTest.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/phpunit.xml -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Commands/AddCouponCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Commands/AddCouponCommand.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Commands/AddCouponForUserCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Commands/AddCouponForUserCommand.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Commands/AddCreditsCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Commands/AddCreditsCommand.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Commands/WalletTableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Commands/WalletTableCommand.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Coupon/CouponRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Coupon/CouponRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Coupon/DbCouponRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Coupon/DbCouponRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/CouponExistsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/CouponExistsException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/CouponLimitReachedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/CouponLimitReachedException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/EmptyWalletException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/EmptyWalletException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/Exception.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/InternalException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/InternalException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/InvalidTransactionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/InvalidTransactionException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Exceptions/WalletNotCreatedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Exceptions/WalletNotCreatedException.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/AbstractTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/AbstractTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/AmountTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/AmountTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/DbTransactionRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/DbTransactionRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/MaxRedemptionTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/MaxRedemptionTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/RedemptionTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/RedemptionTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/SimpleAmountTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/SimpleAmountTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/SimpleRedemptionTransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/SimpleRedemptionTransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/TransactionMaker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/TransactionMaker.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Transaction/TransactionRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Transaction/TransactionRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Wallet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Wallet.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Wallet/DbWalletRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Wallet/DbWalletRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/Wallet/WalletRepo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/Wallet/WalletRepo.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/WalletFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/WalletFacade.php -------------------------------------------------------------------------------- /src/Owlgrin/Wallet/WalletServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/Owlgrin/Wallet/WalletServiceProvider.php -------------------------------------------------------------------------------- /src/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/config/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/config/config.php -------------------------------------------------------------------------------- /src/lang/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lang/en/exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/lang/en/exception.php -------------------------------------------------------------------------------- /src/stubs/migration.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/src/stubs/migration.stub -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/BalanceTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/BalanceTest.php -------------------------------------------------------------------------------- /tests/Commands/AddCouponCommandTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/Commands/AddCouponCommandTest.php -------------------------------------------------------------------------------- /tests/CouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/CouponTest.php -------------------------------------------------------------------------------- /tests/CreditTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/CreditTest.php -------------------------------------------------------------------------------- /tests/RedemptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/RedemptionTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/TransactionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/owlgrin/wallet/HEAD/tests/TransactionTest.php --------------------------------------------------------------------------------