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

Send FPTI Analytics Events in American Express #866

Merged
merged 4 commits into from
Dec 19, 2023
Merged

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Update AmericanExpressClient to send FPTI analytics events
  • Update AmericanExpressAnalytics to be a simple object rather than enum

Checklist

  • [ ] Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner December 19, 2023 16:55
callback.onAmericanExpressResult(new AmericanExpressResult.Failure(e));
}
} else if (httpError != null) {
callback.onAmericanExpressResult(new AmericanExpressResult.Failure(httpError));
braintreeClient.sendAnalyticsEvent("amex.rewards-balance.error");
braintreeClient.sendAnalyticsEvent(AmericanExpressAnalytics.REWARDS_BALANCE_FAILED);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know in other modules we are refactoring to have a single success and error method for callbacks and analytics to confirm we always send analytics with the callback. That seemed a little overkill in this module since there is only one method, but I can add those in if we think it's still beneficial

Copy link
Contributor

Choose a reason for hiding this comment

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

We did it on iOS, just for consistency - but whatever you think works on Android 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated for consistency too 👍

@sarahkoop sarahkoop merged commit c197523 into v5 Dec 19, 2023
3 checks passed
@sarahkoop sarahkoop deleted the american_express_fpti branch December 19, 2023 21:13
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.

3 participants