Previous method of reflection to retrieve the id of an EasyPostResource often failed, resulting in fallback to empty string. As a result, the string representation of any EasyPostResource was often an empty string.
New method improves toString calculation, including accounting for present/non-present id field (ephemeral objects).
Testing
Pull Request Type
Please select the option(s) that are relevant to this PR.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Improvement (fixing a typo, updating readme, renaming a variable name, etc)
Description
Previous method of reflection to retrieve the
id
of anEasyPostResource
often failed, resulting in fallback to empty string. As a result, the string representation of anyEasyPostResource
was often an empty string.New method improves
toString
calculation, including accounting for present/non-presentid
field (ephemeral objects).Testing
Pull Request Type
Please select the option(s) that are relevant to this PR.