Closed jchen293 closed 1 year ago
Not a fan of user-facing utilities like validate webhook or lowest smartrate being in the same file as internal utilities like instanceURL and getEncodedUrl, but that's for another day.
Why don't we move the internal stuff to a new InternalUtil
file then? That way we can retain the nice clean Util
namespace for user/public facing items and we separate out the internal from it?
util
or internalUtil
. validateWebhook
, and lowestSmartRate
from wherever they are to the util fileForced push to rebase from master branch to solve a few merge conflicts
Description
move
validateWebhook()
to Utilities file since it does not require an EasyPostClient object and does not belong to Webhook object instance.Testing
unit tests pass
Pull Request Type
Please select the option(s) that are relevant to this PR.