You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some time fields (the Invoice.DueAt for instance) may return a null value from the API but the client does not support pointer time fields, hence the set value on the resource is a zero value time.Time.
To Reproduce
Create an Invoice with no DueAt and fetch it via the API client in Go.
Expected behavior
DueAt to be a *time.Time, hence when a null value is fetched it's a nil and not a t time.Time with t.IsZero() == true.
Your Environment
Which version of this library are you using? github.com/recurly/recurly-client-go/v3 v3.13.0
Which version of golang are you using? go version go1.15 darwin/amd64
The text was updated successfully, but these errors were encountered:
Describe the bug
Some time fields (the
Invoice.DueAt
for instance) may return anull
value from the API but the client does not support pointer time fields, hence the set value on the resource is a zero valuetime.Time
.To Reproduce
Create an
Invoice
with noDueAt
and fetch it via the API client in Go.Expected behavior
DueAt
to be a*time.Time
, hence when anull
value is fetched it's anil
and not at time.Time
witht.IsZero() == true
.Your Environment
github.com/recurly/recurly-client-go/v3 v3.13.0
go version go1.15 darwin/amd64
The text was updated successfully, but these errors were encountered: