Closed shengdaliu closed 1 year ago
Hello @shengdaliu,
Thanks for the PR. We are looking into it
Hello, @shengdaliu . The CreationDate is already present in the parent entity - EntityBase
Hello @iulian03
I tried on both release 1.30.0 (My current version on production) and 1.31.1
The mangopay.Cards.get()
method doesn't retrieve correctly the CreationDate.
Shall I use another endpoint to do that ?
It seems a bit redundant to make two API calls to get one object instance.
@shengdaliu I've tried reproducing your issue on both JS and TS, but the CreationDate is always returned:
JS:
TS:
OK, it's all good, I was using console.log('%j', card)
and logger.info('%j', card)
from Winston. Both formatter %j
filtered out the CreationDate field.
Thank you.
HTTP API endpoint results in comparison :
https://github.com/Mangopay/mangopay2-nodejs-sdk/blob/af159a907515b1b0760879a837da551888549f33/lib/models/Card.js#L4