Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow VoidedAt on CreditNote to be nullable #1783

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Conversation

remi-stripe
Copy link
Contributor

Fixes #1782

r? @ob-stripe
cc @stripe/api-libraries

Is this a breaking change?

@ob-stripe
Copy link
Contributor

Is this a breaking change?

Technically, yeah, it is. ? is just syntactic sugar, this PR changes the type of VoidedAt from DateTime to System.Nullable<DateTime>. Users would have to call VoidedAt.HasValue to check if the value is null or not, and VoidedAt.Value to get the actual DateTime struct if it's not null.

@remi-stripe
Copy link
Contributor Author

@ob-stripe Yeah I know it technically is, but is it in this case? I'm assuming almost no one could deserialize CreditNote until that fix

@ob-stripe
Copy link
Contributor

Yeah, we can probably release this as a patch or minor since it's really a bug fix, with a note that it's technically breaking.

@remi-stripe
Copy link
Contributor Author

I'm happy to wait for the next major otherwise if it's coming soon. Can I leave to you otherwise?

@ob-stripe ob-stripe merged commit bac82fa into master Sep 12, 2019
@ob-stripe ob-stripe deleted the remi-fix-credit-notes branch September 12, 2019 17:52
@ob-stripe
Copy link
Contributor

Released as 29.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List credit notes error
2 participants