Skip to content

Commit 0477757

Browse files
committed
feat: more statuses
1 parent ceefd20 commit 0477757

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/Enums/ErrorCodeEnum.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ enum ErrorCodeEnum: string
1515
{
1616
case SUCCESS = '00';
1717
case DUPLICATE_TRANSACTION = '01';
18-
case WRONG_REQUEST = '02';
19-
case UNAUTHENTICATED = '06';
20-
case ERROR = '11';
21-
case INVALID_ACCOUNT = '13';
18+
case UNABLE_TO_CREATE_REQUEST = '02';
19+
case UNKNOWN_STATE = '03';
20+
case TRANSACTION_QUERY_DATERANGE_EXPIRED = '04';
21+
case TRANSACTION_NOT_FOUND = '05';
22+
case AUTH_TOKEN_REQUIRED = '06';
23+
case EXPIRED_TOKEN = '07';
24+
case INVALID_TOKEN = '08';
25+
case INVALID_USER_CREDENTIALS = '09';
26+
case INACTIVE_CREDENTIALS = '10';
27+
case ERROR_PROCESSING_REQUEST = '11';
28+
case INVALID_CALLER_IP_ADDRESS = '12';
29+
case WRONG_ACCOUNT_PASSED = '13';
2230
case SYSTEM_EXCEPTION = '14';
31+
case INTERNAL_BAD_REQUEST = '15';
2332
}

src/Enums/StatusCodeEnum.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*/
1414
enum StatusCodeEnum: string
1515
{
16-
/**
17-
* Transaction processed.
18-
*/
16+
case PROCESSING = 'PROCESSING';
1917
case PROCESSED = 'PROCESSED';
18+
case PENDING = 'PENDING';
19+
case UNKNOWN = 'UNKNOWN';
2020
}

0 commit comments

Comments
 (0)