| 1 | <?php |
||
| 10 | class NetgsmAvailableCredit extends NetgsmApiClient |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $response; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $successCodes = [ |
||
| 21 | '00', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | protected $url = 'balance/list/get'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $errorCodes = [ |
||
| 30 | '30' => NetgsmErrors::CREDENTIALS_INCORRECT, |
||
| 31 | '40' => NetgsmErrors::CREDENTIALS_INCORRECT, |
||
| 32 | '100' => NetgsmErrors::SYSTEM_ERROR, |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | * @throws NetgsmException |
||
| 38 | */ |
||
| 39 | public function parseResponse(): ?string |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @throws NetgsmErrors |
||
| 59 | * @throws GuzzleException |
||
| 60 | * @throws NetgsmException |
||
| 61 | */ |
||
| 62 | public function getCredit(): ?string |
||
| 68 | } |
||
| 69 |