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

Allow email OR phone to init BTShopperInsightsRequest #1149

Merged
merged 6 commits into from
Dec 8, 2023

Conversation

scannillo
Copy link
Contributor

Summary of changes

  • Add multiple inits to BTShopperInsightsRequest to allow for merchants to pass the following combinations:
    1. email only
    2. phone only
    3. email & phone
  • Cleanup docstrings & remove redundancies

Note: Tests for this will come once we start constructing the POST json body.

Checklist

  • Added a changelog entry

Authors

@scannillo

@scannillo scannillo requested a review from a team as a code owner December 7, 2023 18:17
@scannillo
Copy link
Contributor Author

UI test failures unrelated. Created a JIRA to investigate DTBTSDK-3253

/// The buyer's country code prefix to the national telephone number. An identifier for a specific country.
/// Must not contain special characters.
private let phoneCountryCode: String
private var email: String?
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will want these to be internal not private eventually so we can access the properties within the module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, maybe let's leave them private until we have to? I'm not sure that we will necessarily

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This type will end up being encoded for the POST to PaymentReady API

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ,gotcha. Yeah we can always change it down the road if needed!

@scannillo scannillo merged commit ef6421e into payment-insights-feature Dec 8, 2023
7 checks passed
@scannillo scannillo deleted the optional-email-phone branch December 8, 2023 20:37
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