-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interfaces for High performance api handles
- Loading branch information
Showing
8 changed files
with
65 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Bavix\Wallet\External\Api; | ||
|
||
use Bavix\Wallet\Interfaces\Wallet; | ||
use Bavix\Wallet\Models\Transaction; | ||
|
||
interface TransactionQueryInterface | ||
{ | ||
public const TYPE_DEPOSIT = Transaction::TYPE_DEPOSIT; | ||
|
||
public const TYPE_WITHDRAW = Transaction::TYPE_WITHDRAW; | ||
|
||
/** | ||
* @return self::TYPE_DEPOSIT|self::TYPE_WITHDRAW | ||
*/ | ||
public function getType(): string; | ||
|
||
public function getWallet(): Wallet; | ||
|
||
public function getAmount(): float|int|string; | ||
|
||
/** | ||
* @return array<mixed>|null | ||
*/ | ||
public function getMeta(): ?array; | ||
|
||
public function isConfirmed(): bool; | ||
|
||
public function getUuid(): ?string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Bavix\Wallet\External\Api; | ||
|
||
use Bavix\Wallet\External\Contracts\ExtraDtoInterface; | ||
use Bavix\Wallet\Interfaces\Wallet; | ||
|
||
interface TransferQueryInterface | ||
{ | ||
public function getFrom(): Wallet; | ||
|
||
public function getTo(): Wallet; | ||
|
||
public function getAmount(): float|int|string; | ||
|
||
/** | ||
* @return array<mixed>|ExtraDtoInterface|null | ||
*/ | ||
public function getMeta(): array|ExtraDtoInterface|null; | ||
} |