Skip to content

Commit

Permalink
Some error codes changed to align with other eWAY SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
incarnate committed Jan 13, 2016
1 parent 92835d4 commit c1a8b59
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All Notable changes will be documented in this file

## 1.2.0

- Some error codes changed to align with other eWAY SDKs:
- S9900 => S9992
- S9992 => S9993
- S9993 => S9996

## 1.1.1

- Added `SaveCustomer` flag to Transactions to create a token when a transaction is completed
Expand Down
22 changes: 11 additions & 11 deletions lib/Rapid/Enum/ClientError.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
*/
var ClientError = {

/**
* Something wrong happened
* @type {String}
*/
EXCEPTION: 'S9900',

/**
* Invalid JSON data in server's response
* @type {String}
Expand Down Expand Up @@ -56,22 +50,28 @@ var ClientError = {
INVALID_CREDENTIAL: 'S9991',

/**
* Something wrong with the client request. HTTP Status code 4xx returned
* Something wrong happened
* @type {String}
*/
HTTP_CLIENT_ERROR: 'S9992',
EXCEPTION: 'S9992',

/**
* Something wrong with the server response. HTTP Status code 5xx returned
* Something wrong with the client request. HTTP Status code 4xx returned
* @type {String}
*/
HTTP_SERVER_ERROR: 'S9993',
HTTP_CLIENT_ERROR: 'S9993',

/**
* Invalid argument provided
* @type {String}
*/
INVALID_ARGUMENT: 'S9995'
INVALID_ARGUMENT: 'S9995',

/**
* Something wrong with the server response. HTTP Status code 5xx returned
* @type {String}
*/
HTTP_SERVER_ERROR: 'S9996'

};

Expand Down
14 changes: 7 additions & 7 deletions locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@
"V6165": "Invalid Visa Checkout data or decryption failed",
"V6170": "Invalid TransactionSearch, Invoice Number is not unique",
"V6171": "Invalid TransactionSearch, Invoice Number not found",
"S9900": "eWAY library has encountered an unknown exception",
"S9901": "eWAY library has encountered an invalid JSON response from server",
"S9902": "eWAY library has encountered an empty response from server",
"S9901": "eWAY library has encountered an invalid JSON response from the gateway",
"S9902": "eWAY library has encountered an empty response from the gateway",
"S9903": "eWAY library has encountered an unexpected method call",
"S9904": "eWAY library has encountered invalid data provided to models",
"S9990": "eWAY library does not have an Endpoint initialised, or not initialise to a URL",
"S9990": "eWAY library does not have an Endpoint initialised, or not initialised to a URL",
"S9991": "eWAY library does not have an API key or password initialised",
"S9992": "eWAY library has encountered an invalid API key or password",
"S9993": "eWAY library has encountered an error response from server",
"S9995": "eWAY library has encountered an invalid argument in method call"
"S9992": "eWAY library has encountered an unknown exception",
"S9993": "eWAY library has encountered an invalid API key or password",
"S9995": "eWAY library has encountered an invalid argument in method call",
"S9996": "eWAY library has encountered an error response from the gateway"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eway-rapid",
"version": "1.1.1",
"version": "1.2.0",
"description": "eWAY Rapid Node.js library",
"keywords": [
"eway",
Expand Down

0 comments on commit c1a8b59

Please sign in to comment.