basecrm-php
basecrm-php copied to clipboard
Shipping and billing address on contacts
The $keysToPersist on the ContactsService class lacks billing_address and shipping_address
Workaround:
$client = new BaseCRM\Client(['accessToken' => $accessToken]);
$class = new ReflectionClass($client->contacts);
$property = $class->getProperty('keysToPersist');
$property->setAccessible(true);
$keys = $property->getValue($client->contacts);
array_push($keys, 'shipping_address', 'billing_address');
$property->setValue($keys);