} yield CustomerException::CUSTOMER_OPTIN_NOT_COMPLETED =>
[ 'exception' => CustomerException::
customerOptinNotCompleted('id-1'
),
'statusCode' => Response::HTTP_UNAUTHORIZED,
'errorCode' => CustomerException::CUSTOMER_OPTIN_NOT_COMPLETED,
'message' => 'The customer with the id "id-1" has not completed the opt-in.',
];
yield CustomerException::CUSTOMER_AUTH_THROTTLED =>
[ 'exception' => CustomerException::
customerAuthThrottledException(100
),
'statusCode' => Response::HTTP_TOO_MANY_REQUESTS,
'errorCode' => CustomerException::CUSTOMER_AUTH_THROTTLED,
'message' => 'Customer auth throttled for 100 seconds.',
];
if (!Feature::
isActive('v6.6.0.0'
)) { yield CustomerException::COUNTRY_NOT_FOUND =>
[ 'exception' => CustomerException::
countryNotFound('100'
),
'statusCode' => Response::HTTP_BAD_REQUEST,
'errorCode' => CountryException::COUNTRY_NOT_FOUND,
'message' => 'Country with id "100" not found.',
];