Project

General

Profile

Wiki » History » Version 2

Ondrej Grman, 03/21/2023 02:02 PM

1 1 Ondrej Grman
# Qorpo Laravel Common
2
3
Library of shared services and helpers.
4
5
## Auth
6
7
- for correct behavior of qorpo-common auth driver, you have to implement your AuthenticatableRepository (UserRepository) which implements Qorpo\QorpoCommon\Repositories/AuthenticatableRepositoryInterface.php and bind your repository class to this interface
8
9
## Exceptions
10
11
| HTTP STATUS | CODE   | EXCEPTION                          |
12
|-------------|--------|------------------------------------|
13
| 400         | 999999 | Undefined Basic Qorpo ID Exception |
14
| 400         | 400001 | Cognito Provider Exception         |
15
| 400         | 400002 | Socialite Exception                |
16
| 400         | 400003 | Metamask Exception                 |
17
| 400         | 400004 | Withdrawal Exception               |
18
| 400         | 400005 | Transfer Exception                 |
19
| 400         | 400006 | MFA Code Required Exception        |
20
| 400         | 400020 | QorpoId service bad request        |
21
| 400         | 400021 | Blockchain service bad request     |
22
| 400         | 400022 | Nitro Wallet service bad request   |
23
| 400         | 400023 | Race service bad request           |
24
| 400         | 400024 | Market service bad request         |
25
| 400         | 400025 | Games Core service bad request     |
26
| 400         | 400026 | Metadata service bad request       |
27
| 400         | 400027 | Friends service bad request        |
28
| 400         | 400028 | Voting service bad request         |
29 2 Ondrej Grman
| 400         | 400029 | Message service bad request        |
30 1 Ondrej Grman
| 401         | 401001 | Unauthorized                       |
31
| 422         | 422001 | Validation Exception               |
32
| 503         | 503020 | QorpoId service unavailable        |
33
| 503         | 503021 | Blockchain service unavailable     |
34
| 503         | 503022 | Nitro Wallet service unavailable   |
35
| 503         | 503023 | Race service unavailable           |
36
| 503         | 503024 | Market service unavailable         |
37
| 503         | 503025 | Games Core service unavailable     |
38
| 503         | 503026 | Metadata service unavailable       |
39
| 503         | 503027 | Friends service unavailable        |
40
| 503         | 503028 | Voting service unavailable         |
41 2 Ondrej Grman
| 503         | 503029 | Message service unavailable        |
42 1 Ondrej Grman
43
## Services
44
45
* **GoogleRecaptcha**
46
* **BlockchainService**
47
* **MarketService**
48
* **NitroWalletService**
49
* **PriceListService**
50
* **RaceService**
51
* **TransferService**
52
* **NftInfoService** *(metadata service)*
53
* **FriendsService**
54
* **VotingService**
55 2 Ondrej Grman
* **MessageService**