Project

General

Profile

Wiki » History » Version 4

Ondrej Grman, 03/21/2023 05:07 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 4 Ondrej Grman
| 400         | 400029 | Messaging service bad request      |
30 3 Ondrej Grman
| 400         | 400030 | Asset Manager service bad request  |
31 1 Ondrej Grman
| 401         | 401001 | Unauthorized                       |
32
| 422         | 422001 | Validation Exception               |
33
| 503         | 503020 | QorpoId service unavailable        |
34
| 503         | 503021 | Blockchain service unavailable     |
35
| 503         | 503022 | Nitro Wallet service unavailable   |
36
| 503         | 503023 | Race service unavailable           |
37
| 503         | 503024 | Market service unavailable         |
38
| 503         | 503025 | Games Core service unavailable     |
39
| 503         | 503026 | Metadata service unavailable       |
40
| 503         | 503027 | Friends service unavailable        |
41
| 503         | 503028 | Voting service unavailable         |
42 4 Ondrej Grman
| 503         | 503029 | Messaging service unavailable      |
43 3 Ondrej Grman
| 503         | 503030 | Asset Manager service unavailable  |
44 1 Ondrej Grman
45
## Services
46
47
* **GoogleRecaptcha**
48
* **BlockchainService**
49
* **MarketService**
50 4 Ondrej Grman
* ~~NitroWalletService~~
51 1 Ondrej Grman
* **PriceListService**
52
* **RaceService**
53
* **TransferService**
54 4 Ondrej Grman
* ~~NftInfoService *(metadata service)*~~
55 1 Ondrej Grman
* **FriendsService**
56
* **VotingService**
57 4 Ondrej Grman
* **MessagingService**
58
* **AssetManagerService**