It looks like deal field serialisation / de-serialisation is failing.
php -r '
require "vendor/autoload.php";
$json = json_decode(json_encode([
"success" => true,
"data" => [[
"id" => 1, "key" => "channel", "name" => "Channel", "field_type" => "enum",
"options" => [["id" => 1, "label" => "Partner.io"]],
]],
]));
try {
$r = \Pipedrive\versions\v2\ObjectSerializer::deserialize($json, "\\Pipedrive\\versions\\v2\\Model\\GetDealFields");
var_dump($r);
} catch (\Throwable $e) {
echo get_class($e), ": ", $e->getMessage(), "\n";
echo "is Exception? ", ($e instanceof \Exception ? "yes" : "NO"), "\n";
}
'
It looks like deal field serialisation / de-serialisation is failing.
Error: Class "OneOfIntegerString" not found
is Exception? NO