1
0

Automated commit message

This commit is contained in:
PayPalServerSDKs
2024-09-04 15:55:32 +00:00
parent c9cb1ad04a
commit f6cd8b4d4f
732 changed files with 73611 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
<?php
declare(strict_types=1);
/*
* PayPalRESTAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
namespace PayPalRESTAPIsLib\Models;
use Core\Utils\CoreHelper;
use Exception;
use stdClass;
/**
* The reason why the authorized status is `PENDING`.
*/
class AuthorizationIncompleteReason
{
public const PENDING_REVIEW = 'PENDING_REVIEW';
public const DECLINED_BY_RISK_FRAUD_FILTERS = 'DECLINED_BY_RISK_FRAUD_FILTERS';
private const _ALL_VALUES = [self::PENDING_REVIEW, self::DECLINED_BY_RISK_FRAUD_FILTERS];
/**
* Ensures that all the given values are present in this Enum.
*
* @param array|stdClass|null|string $value Value or a list/map of values to be checked
*
* @return array|null|string Input value(s), if all are a part of this Enum
*
* @throws Exception Throws exception if any given value is not in this Enum
*/
public static function checkValue($value)
{
$value = json_decode(json_encode($value), true); // converts stdClass into array
if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) {
return $value;
}
throw new Exception("$value is invalid for AuthorizationIncompleteReason.");
}
}