Mangopay/mangopay2-nodejs-sdk

The CreationDate property is missing in the Cards model

shengdaliu opened this issue · 5 comments

HTTP API endpoint results in comparison :
Screenshot 2022-08-29 at 14 42 43

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.

Screenshot 2022-10-20 at 13 54 23

@shengdaliu I've tried reproducing your issue on both JS and TS, but the CreationDate is always returned:

JS:
image
image

TS:
image
image

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.