Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping and billing address on contacts #51

Open
teunovic opened this issue Jun 7, 2021 · 1 comment
Open

Shipping and billing address on contacts #51

teunovic opened this issue Jun 7, 2021 · 1 comment

Comments

@teunovic
Copy link

teunovic commented Jun 7, 2021

The $keysToPersist on the ContactsService class lacks billing_address and shipping_address

@teunovic
Copy link
Author

teunovic commented Jun 7, 2021

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant