Skip to content

Commit a9dcb3c

Browse files
committed
Revert "add model interfaces"
This reverts commit 28666e3.
1 parent 28666e3 commit a9dcb3c

File tree

6 files changed

+16
-97
lines changed

6 files changed

+16
-97
lines changed

src/Models/Transaction.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@
2929
* @property Wallet $payable
3030
* @property WalletModel $wallet
3131
*/
32-
class Transaction extends Model implements TransactionInterface
32+
class Transaction extends Model
3333
{
34+
public const TYPE_DEPOSIT = 'deposit';
35+
public const TYPE_WITHDRAW = 'withdraw';
36+
3437
/**
3538
* @var string[]
3639
*/

src/Models/TransactionInterface.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Models/Transfer.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
* @property Transaction $deposit
2626
* @property Transaction $withdraw
2727
*/
28-
class Transfer extends Model implements TransferInterface
28+
class Transfer extends Model
2929
{
30+
public const STATUS_EXCHANGE = 'exchange';
31+
public const STATUS_TRANSFER = 'transfer';
32+
public const STATUS_PAID = 'paid';
33+
public const STATUS_REFUND = 'refund';
34+
public const STATUS_GIFT = 'gift';
35+
3036
/**
3137
* @var string[]
3238
*/

src/Models/TransferInterface.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Models/Wallet.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
use function app;
88
use function array_key_exists;
9+
use Bavix\Wallet\Interfaces\Confirmable;
10+
use Bavix\Wallet\Interfaces\Customer;
11+
use Bavix\Wallet\Interfaces\Exchangeable;
12+
use Bavix\Wallet\Interfaces\WalletFloat;
913
use Bavix\Wallet\Internal\Exceptions\ExceptionInterface;
1014
use Bavix\Wallet\Internal\Service\DatabaseServiceInterface;
1115
use Bavix\Wallet\Services\WalletServiceLegacy;
@@ -32,7 +36,7 @@
3236
* @property \Bavix\Wallet\Interfaces\Wallet $holder
3337
* @property string $currency
3438
*/
35-
class Wallet extends Model implements WalletInterface
39+
class Wallet extends Model implements Customer, WalletFloat, Confirmable, Exchangeable
3640
{
3741
use CanConfirm;
3842
use CanExchange;

src/Models/WalletInterface.php

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)