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 StripeSourceTypeModel public #809

Merged
merged 1 commit into from
Feb 26, 2019
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • Make StripeSourceTypeModel public
  • Clean up the internal structure of StripeSourceTypeModel

Motivation

Source#getSourceTypeModel() is a public method, but it returns
a type (StripeSourceTypeModel) that is package-private, causing
warnings in the IDE. This is a safe change, because the methods in
StripeSourceTypeModel that should not be accessed publicly are
still package-private. In addition, StripeSourceTypeModel extends
StripeJsonModel, which itself is public.

Fixes #616

Testing

Existing unit test coverage.

**Summary**
- Make `StripeSourceTypeModel` public
- Clean up the internal structure of `StripeSourceTypeModel`

**Motivation**
`Source#getSourceTypeModel()` is a public method, but it returns
a type (`StripeSourceTypeModel`) that is package-private, causing
warnings in the IDE. This is a safe change, because the methods in
`StripeSourceTypeModel` that should not be accessed publicly are
still package-private. In addition, `StripeSourceTypeModel` extends
`StripeJsonModel`, which itself is public.

Fixes #616
Copy link
Contributor

@danwaters-stripe danwaters-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mshafrir-stripe mshafrir-stripe merged commit 8379ddd into master Feb 26, 2019
@mshafrir-stripe mshafrir-stripe deleted the stripe-source-type-model branch February 26, 2019 17:57
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

4 participants