stripe-go
stripe-go copied to clipboard
Parse unix timestamps into times (time.Time)
It'd be nice to parse timestamps into their time.Time during unmarshaling. I'd expect most people will be operating with the values as times (could be wrong) so most people are having to do time.Unix(invoice.PeriodEnd, 0)
Obviously not a big deal, but nice to have!
Hi @msingleton. I think this makes sense, and we have analogs in other libraries. We have plans to codegen this library in the not-too-distant future which would make a change like this a lot easier to do, so we will punt on this for now but possibly revisit after that lands.
👍 sounds great