Skip to content

Commit

Permalink
Merge pull request #13 from tarfin-labs/documentation-fix
Browse files Browse the repository at this point in the history
documentation and error code description changes
  • Loading branch information
hozdemir authored Mar 5, 2020
2 parents 7860bfe + 1f25715 commit 92a1a5e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to `netgsm` will be documented in this file

## Unreleased

## 2.1.1 - 2020-03-05

- "vendor:publish" section in the documentation has been fixed.
- error code descriptions fixed for balance service

## 2.1.0 - 2020-03-04

- added an exception for unhandled netgsm error codes.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ composer require tarfin-labs/netgsm
Next, you should publish the Laravel config migration file using the vendor:publish Artisan command.

```
php artisan vendor:publish --provider="TarfinLabs\Netgsm\NetgsmServiceProvider" --tag="netgsm"
php artisan vendor:publish --provider="TarfinLabs\Netgsm\NetgsmServiceProvider" --tag="config"
```

### Setting up the Netgsm service
Expand Down
2 changes: 1 addition & 1 deletion src/Balance/NetgsmAvailableCredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NetgsmAvailableCredit extends NetgsmApiClient
*/
protected $errorCodes = [
'30' => NetgsmErrors::CREDENTIALS_INCORRECT,
'40' => NetgsmErrors::CREDENTIALS_INCORRECT,
'40' => NetgsmErrors::NO_RECORD,
'100' => NetgsmErrors::SYSTEM_ERROR,
];

Expand Down
4 changes: 2 additions & 2 deletions src/Balance/NetgsmPackages.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class NetgsmPackages extends NetgsmApiClient
* @var array
*/
protected $errorCodes = [
'30' => NetgsmErrors::MESSAGE_TOO_LONG,
'40' => NetgsmErrors::CREDENTIALS_INCORRECT,
'30' => NetgsmErrors::CREDENTIALS_INCORRECT,
'40' => NetgsmErrors::NO_RECORD,
'100' => NetgsmErrors::SYSTEM_ERROR,
];

Expand Down

0 comments on commit 92a1a5e

Please sign in to comment.