Skip to content

feature(ShopperInsights): add payPalCampaigns to CustomerSessionRequest#1647

Open
santugowda wants to merge 4 commits into
braintree:mainfrom
santugowda:paypal-campaigns-shopper-insights
Open

feature(ShopperInsights): add payPalCampaigns to CustomerSessionRequest#1647
santugowda wants to merge 4 commits into
braintree:mainfrom
santugowda:paypal-campaigns-shopper-insights

Conversation

@santugowda

Copy link
Copy Markdown

Summary of changes

  • Add PayPalCampaign(id) model and an optional payPalCampaigns list on CustomerSessionRequest.
  • Build the paypal_campaigns JSON array ([{ id }]) in CustomerSessionRequestBuilder and expose it on JsonRequestObjects.
  • Foundation only — the create/update session and generate-recommendations APIs are wired to send paypalCampaigns in a follow-up PR.

Part of enabling PayPal co-marketing campaign attribution (TikTok first) through the Shopper Insights v2 customer session. Backend support is merged (cosmos-apps #10542). The whole v2 surface is @ExperimentalBetaApi.

AI Usage

Which AI Agent Was Used?

  • Claude

How was AI used?
Research across PRD/HLD and backend PRs to confirm the wire contract and scope, plus code generation for the model, builder, and unit tests.

Estimated AI Code Contribution

  • 60 - 100%

Checklist

  • Added a changelog entry
  • Relevant test coverage

Authors

  • santugowda

Inner Source Checklist

  • Added all labels to the PR
  • All upstream dependencies are merged in and this PR can be released at any time
  • Unit tests and builds have been run locally and pass/compile as expected

Add PayPalCampaign model and an optional payPalCampaigns list on. CustomerSessionRequest, and build the paypal_campaigns JSON array in CustomerSessionRequestBuilder.
@santugowda

Copy link
Copy Markdown
Author

/inner source

@anibalb2500 anibalb2500 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small nitpick but looks good.

@anibalb2500

Copy link
Copy Markdown
Contributor

LGTM

@santugowda
santugowda marked this pull request as ready for review July 17, 2026 16:06
@santugowda
santugowda requested a review from a team July 17, 2026 16:06
@santugowda
santugowda requested a review from a team as a code owner July 17, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inner source This PR is internal to PP but external to the mobile SDK team tech lead review required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants