For whatever reason I have some domains in the wholesale account (com.au/.net.au/.id.au) that don't appear to have the minimum required contact info attached to them. Strangely enough I can't update one of the missing fields in Synergy's web portal without it giving me errors about the other missing fields so no idea how we can have names with such missing info... I think these names may have been from transfers that we processed in "by hand" using their web interface if it matters.
SynergyWholesale\Exception\BadDataException Object ( [command:protected] => listContacts [response:protected] => stdClass Object ( [status] => OK [errorMessage] => Domain contacts retrieved [registrant] => stdClass Object ( [firstname] => Jarrod [lastname] => Linahan [suburb] => Somewhere [country] => AU [email] => email@example.com ) [tech] => stdClass Object ( [firstname] => Jarrod [lastname] => Linahan [suburb] => Somewhere [country] => AU [email] => firstname.lastname@example.org ) ) [message:protected] => Expected property [registrant->address1] missing from response data
Sorry to be annoying, but my git/PHP skills aren't up to par, and I've no idea how to run the PHPUnit tests
https://bitbucket.org/texh/synergy-wholesale/commits/cd3816292789ca5b293b13c60b193308cf3d0382 This has gotten me past these errors, but I guess will destroy their usefulness for validating data when submitting it to the Synergy API.
At the end of the day I guess there's a few things that can be done.. I go through and fix up these names by hand using their web portal and pray contact data doesn't disappear again in the future, or relax the validation that
ListContactsResponse is doing..
As .au transfers are free and I have a few nobody will notice me potentially breaking, I'd be interested in seeing if this is a transfer related bug and moving a few names out and back into Synergy after the contact info has been entered correctly and see if it disappears again.