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

Make ChargeTransferData.Amount nullable #1531

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Conversation

ob-stripe
Copy link
Contributor

cc @remi-stripe

The API can return null for this attribute, so the Stripe.net property needs to be nullable, otherwise trying to deserialize null will cause an exception.

Fixes the issue described in the second part of this comment: #1528 (comment).

(We should start thinking about a larger solution to this problem since it's so easy to get this wrong. The sledgehammer solution would be to make all value types nullable, like we already in options classes.)

@ob-stripe ob-stripe self-assigned this Feb 20, 2019
@ob-stripe ob-stripe merged commit 4de396e into master Feb 20, 2019
@ob-stripe ob-stripe deleted the ob-fix-transfer-data branch February 20, 2019 11:18
@ob-stripe
Copy link
Contributor Author

Fixed in 24.0.2.

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.

None yet

1 participant