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

SEPA Direct Debit Single Result Object Pattern #855

Merged
merged 15 commits into from
Dec 14, 2023
Merged

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Update SEPA Direct Debit public methods with single result object callback pattern

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner December 13, 2023 20:07
* if you must continue the SEPA mandate web flow via
* {@link SEPADirectDebitLauncher#launch(FragmentActivity, SEPADirectDebitPaymentAuthRequest.ReadyToLaunch)}
*/
public class SEPADirectDebitPaymentAuthRequestParams {
Copy link
Contributor

Choose a reason for hiding this comment

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

QQ: I see that most of the newly created files are in kotlin. Any reason this is an exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah this file isn't actually new it was renamed from the previous SEPADirectDebitPaymentAuthRequest class (which is replaced by the new Kotlin sealed class in this PR). We are slowly migrating to Kotlin, so have been trying to add new files in Kotlin and convert small interfaces, but I didn't refactor this one into Kotlin yet.

*/
public interface SEPADirectDebitTokenizeCallback {
public interface SEPADirectDebitInternalTokenizeCallback {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the significance of the word internal?
We still expose this callback to the merchant, don't we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah whoops that should have been made package-private - updated!

Copy link
Collaborator

@tdchow tdchow left a comment

Choose a reason for hiding this comment

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

:shipit:

@sarahkoop sarahkoop merged commit d27b5fd into v5 Dec 14, 2023
3 checks passed
@sarahkoop sarahkoop deleted the sepa_single_result branch December 14, 2023 22:09
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.

4 participants