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

Refactor Source class #2569

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Refactor Source class #2569

merged 1 commit into from
Jun 10, 2020

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • Rename Source.SourceFlow to Source.Flow and make it an enum
  • Rename Source.SourceStatus to Source.Status and make it an enum
  • Make Source.Usage an enum
  • Move SourceCodeVerification to Source.CodeVerification
  • Move SourceOwner to Source.Owner
  • Move SourceReceiver to Source.Receiver
  • Move SourceRedirect to Source.Redirect

Motivation

Make Source class more ergonomic

Testing

Updated tests

Summary
- Rename `Source.SourceFlow` to `Source.Flow` and make it an enum
- Rename `Source.SourceStatus` to `Source.Status` and make it an enum
- Make `Source.Usage` an enum
- Move `SourceCodeVerification` to `Source.CodeVerification`
- Move `SourceOwner` to `Source.Owner`
- Move `SourceReceiver` to `Source.Receiver`
- Move `SourceRedirect` to `Source.Redirect`

Motivation
Make Source class more ergonomic

Testing
Updated tests
@mshafrir-stripe mshafrir-stripe merged commit 97ec2ca into master Jun 10, 2020
@mshafrir-stripe mshafrir-stripe deleted the source-enum branch June 10, 2020 17:35
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.

None yet

3 participants