helpscout / helpscout-api-php

PHP Wrapper for the Help Scout API
MIT License
99 stars 62 forks source link

Creating subentities with customers #144

Closed bkuhl closed 5 years ago

bkuhl commented 5 years ago

This is an expansion on the work begun in https://github.com/helpscout/helpscout-api-php/pull/142.

Problem

The underlying issue is that we built Customer support first, then went through and built support for its sub-entities such as Website, CustomField, etc. and overlooked ensuring those were extracted with the Customer itself. This meant that these extra details could not be attached to the initial Customer when it was being created.

Solution

With this branch these sub-entities are now extracted alongside the Customer, allowing them to be attached to the Customer during initial creation.