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

Remove toJson() from StripeJsonModel #1072

Closed
wants to merge 5 commits into from
Closed

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Remove all implementations of toJson() and rename StripeJsonModel
to StripeModel.

Also improve object construction in AbstractEphemeralKey by
creating a Builder object instead of using reflection.

Motivation

toJson() was previously used in the implementation of equals()
(see #813). Now that it is no longer used in equals(), it is
no longer needed.

Testing

Update tests

mshafrir-stripe and others added 5 commits June 10, 2019 09:57
This better reflects its usage for non-authentication scenarios.
Also rename related classes and methods.
`toJson()` was previously used in the implementation of `equals()`
(see #813). Now that it is no longer used in `equals()`, it is
no longer needed.

Remove all implementations of toJson() and rename StripeJsonModel
to StripeModel.

Also improve object construction in `AbstractEphemeralKey` by
creating a Builder object instead of using reflection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant