Apiary docs state that, when getting a single pattern by ID, you can append ?expand=stops,route to retrieve a more filled-out response object with the related values to the route and stops.
This PR focuses on adding an options object to customer().pattern() to provide two new options: expandStops and expandRoute. Options can be left undefined as can each property inside the options.
Tests have been added to the PR to demonstrate the usage.
Apiary docs state that, when getting a single pattern by ID, you can append
?expand=stops,route
to retrieve a more filled-out response object with the related values to the route and stops.This PR focuses on adding an
options
object tocustomer().pattern()
to provide two new options:expandStops
andexpandRoute
. Options can be left undefined as can each property inside the options.Tests have been added to the PR to demonstrate the usage.