Project

General

Profile

Wiki » History » Revision 2

Revision 1 (Ondrej Grman, 03/21/2023 01:09 PM) → Revision 2/4 (Ondrej Grman, 03/21/2023 02:02 PM)

# Qorpo Laravel Common 

 Library of shared services and helpers. 

 ## Auth 

 - 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 

 ## Exceptions 

 | HTTP STATUS | CODE     | EXCEPTION                            | 
 |-------------|--------|------------------------------------| 
 | 400           | 999999 | Undefined Basic Qorpo ID Exception | 
 | 400           | 400001 | Cognito Provider Exception           | 
 | 400           | 400002 | Socialite Exception                  | 
 | 400           | 400003 | Metamask Exception                   | 
 | 400           | 400004 | Withdrawal Exception                 | 
 | 400           | 400005 | Transfer Exception                   | 
 | 400           | 400006 | MFA Code Required Exception          | 
 | 400           | 400020 | QorpoId service bad request          | 
 | 400           | 400021 | Blockchain service bad request       | 
 | 400           | 400022 | Nitro Wallet service bad request     | 
 | 400           | 400023 | Race service bad request             | 
 | 400           | 400024 | Market service bad request           | 
 | 400           | 400025 | Games Core service bad request       | 
 | 400           | 400026 | Metadata service bad request         | 
 | 400           | 400027 | Friends service bad request          | 
 | 400           | 400028 | Voting service bad request           | 
 | 400           | 400029 | Message service bad request          | 
 | 401           | 401001 | Unauthorized                         | 
 | 422           | 422001 | Validation Exception                 | 
 | 503           | 503020 | QorpoId service unavailable          | 
 | 503           | 503021 | Blockchain service unavailable       | 
 | 503           | 503022 | Nitro Wallet service unavailable     | 
 | 503           | 503023 | Race service unavailable             | 
 | 503           | 503024 | Market service unavailable           | 
 | 503           | 503025 | Games Core service unavailable       | 
 | 503           | 503026 | Metadata service unavailable         | 
 | 503           | 503027 | Friends service unavailable          | 
 | 503           | 503028 | Voting service unavailable           | 
 | 503           | 503029 | Message service unavailable          | 

 ## Services 

 * **GoogleRecaptcha** 
 * **BlockchainService** 
 * **MarketService** 
 * **NitroWalletService** 
 * **PriceListService** 
 * **RaceService** 
 * **TransferService** 
 * **NftInfoService** *(metadata service)* 
 * **FriendsService** 
 * **VotingService** 
 * **MessageService**