gocardless-nodejs icon indicating copy to clipboard operation
gocardless-nodejs copied to clipboard

What is the rational for making every field optional

Open aharin opened this issue 2 years ago • 3 comments

Since release 3.0.0 all fields on Payment became optional. What is the rational for this? How are these types should now be used? Should we be using not-null assertion?

According to the api reference fields like amount cannot be undefined. Also it is very strange now that some fields can be both undefined and null.

aharin avatar Nov 22 '22 13:11 aharin