syncromatics / syncromatics-track-api

Library to interact with the Syncromatics Track API
https://www.npmjs.com/package/syncromatics-track-api
6 stars 1 forks source link

EN-9508 Add Expandable Properties to Get Pattern property #131

Closed wisc-gmv closed 5 days ago

wisc-gmv commented 6 days ago

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.