add unknown code to response error object

This commit is contained in:
David Remer 2020-04-13 12:14:16 +03:00
parent 0a4d6d61f2
commit 7dc1d89c74
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ namespace Inpsyde\PayPalCommerce\ApiClient\Entity;
class ErrorResponse
{
const UNKNOWN = 'UNKNOWN';
/* Order error codes */
const ACTION_DOES_NOT_MATCH_INTENT='ACTION_DOES_NOT_MATCH_INTENT';
const AGREEMENT_ALREADY_CANCELLED='AGREEMENT_ALREADY_CANCELLED';

View file

@ -49,7 +49,7 @@ class ErrorResponseCollectionFactory
{
return new ErrorResponseCollection(
new ErrorResponse(
'UNKNOWN',
ErrorResponse::UNKNOWN,
'unknown',
0,
$url,