Skip to content

feat: Add HeadlessRepository implementation#1640

Open
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-10-interactors-bridgefrom
bn/feature/cc-11-headless-repository
Open

feat: Add HeadlessRepository implementation#1640
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-10-interactors-bridgefrom
bn/feature/cc-11-headless-repository

Conversation

@bthebladeprimer
Copy link
Copy Markdown
Contributor

Summary

  • Add HeadlessRepositoryImpl — the central data repository bridging CheckoutComponents to the existing Headless SDK infrastructure
  • Add comprehensive test suite covering: analytics, delegate handling, payment methods retrieval, payment flow, card processing, raw data manager delegation, card network selection, validation, and vaulted payments
  • Add ContainerTests verifying DI container wiring
  • Add HeadlessRepositorySettingsTests for configuration scenarios

Context

PR 11 of 16 in the CheckoutComponents feature split. Depends on PR 10 (core interactors, mapper & bridge).

Notion tracker

Test plan

  • HeadlessRepositoryGetPaymentMethodsTests — verify payment method fetching
  • HeadlessRepositoryProcessCardPaymentTests — verify card payment processing
  • HeadlessRepositoryPaymentFlowTests — verify end-to-end payment flow
  • HeadlessRepositoryDelegateTests — verify delegate callback handling
  • HeadlessRepositoryAnalyticsTests — verify analytics event tracking
  • HeadlessRepositoryValidationFlowTests — verify input validation
  • HeadlessRepositorySelectCardNetworkTests — verify card network selection
  • HeadlessRepositoryVaultTests / VaultMockTests — verify vaulted payment handling
  • HeadlessRepositoryRawDataManagerDelegateTests — verify raw data manager delegation
  • HeadlessRepositoryOneShotContinuationTests — verify one-shot continuation pattern
  • HeadlessRepositoryAdditionalCoverageTests — edge case coverage
  • HeadlessRepositorySettingsTests — verify settings/configuration
  • ContainerTests — verify DI container registration

@bthebladeprimer bthebladeprimer requested a review from a team as a code owner March 26, 2026 15:50
@bthebladeprimer bthebladeprimer self-assigned this Mar 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Warnings
⚠️ > Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review.

Generated by 🚫 Danger Swift against 2450a3c

@bthebladeprimer bthebladeprimer marked this pull request as draft March 26, 2026 16:32
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-10-interactors-bridge branch from 58fc9db to 0594847 Compare March 31, 2026 14:07
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-11-headless-repository branch from 85a6802 to 4bcc4a5 Compare March 31, 2026 14:07
@bthebladeprimer bthebladeprimer marked this pull request as ready for review April 3, 2026 18:09
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-10-interactors-bridge branch from bd63963 to 3871834 Compare April 15, 2026 13:02
@bthebladeprimer bthebladeprimer requested a review from a team as a code owner April 15, 2026 13:03
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-11-headless-repository branch from 59af837 to 2450a3c Compare April 15, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant