Project

General

Profile

Wiki » History » Version 1

Ondrej Grman, 03/21/2023 01:09 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
| 401         | 401001 | Unauthorized                       |
30
| 422         | 422001 | Validation Exception               |
31
| 503         | 503020 | QorpoId service unavailable        |
32
| 503         | 503021 | Blockchain service unavailable     |
33
| 503         | 503022 | Nitro Wallet service unavailable   |
34
| 503         | 503023 | Race service unavailable           |
35
| 503         | 503024 | Market service unavailable         |
36
| 503         | 503025 | Games Core service unavailable     |
37
| 503         | 503026 | Metadata service unavailable       |
38
| 503         | 503027 | Friends service unavailable        |
39
| 503         | 503028 | Voting service unavailable         |
40
41
## Services
42
43
* **GoogleRecaptcha**
44
* **BlockchainService**
45
* **MarketService**
46
* **NitroWalletService**
47
* **PriceListService**
48
* **RaceService**
49
* **TransferService**
50
* **NftInfoService** *(metadata service)*
51
* **FriendsService**
52
* **VotingService**