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 AddPaymentMethodActivity.Result #2609

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Make AddPaymentMethodActivity.Result a sealed class and create
AddPaymentMethodActivity.Result.Success and
AddPaymentMethodActivity.Result.Failure and
AddPaymentMethodActivity.Result.Canceled subclasses.

Motivation

Better model results of AddPaymentMethodActivity

Testing

Add tests
Manually verify

Summary
Make `AddPaymentMethodActivity.Result` a sealed class and create
`AddPaymentMethodActivity.Result.Success` and
`AddPaymentMethodActivity.Result.Failure` and
`AddPaymentMethodActivity.Result.Canceled` subclasses.

Motivation
Better model results of `AddPaymentMethodActivity`

Testing
Add tests
Manually verify
@mshafrir-stripe mshafrir-stripe merged commit cf0dbdf into master Jun 22, 2020
@mshafrir-stripe mshafrir-stripe deleted the add-pm-result branch June 22, 2020 18:54
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