[PM-33509] feat: Add BillingRepository and Hilt billing modules#6674
[PM-33509] feat: Add BillingRepository and Hilt billing modules#6674SaintPatrck merged 3 commits intomainfrom
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6674 +/- ##
==========================================
- Coverage 85.80% 85.67% -0.14%
==========================================
Files 807 851 +44
Lines 57331 58988 +1657
Branches 8362 8403 +41
==========================================
+ Hits 49193 50536 +1343
- Misses 5220 5520 +300
- Partials 2918 2932 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ae483aa to
2354259
Compare
a1bf609 to
b8796c3
Compare
Create BillingRepository and BillingRepositoryImpl to abstract billing service operations, plus Hilt modules (BillingModule, BillingNetworkModule) for dependency injection wiring.
b8796c3 to
2aaac13
Compare
app/src/main/kotlin/com/x8bit/bitwarden/data/billing/repository/BillingRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/x8bit/bitwarden/data/billing/repository/model/CheckoutSessionResult.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/x8bit/bitwarden/data/billing/repository/model/CustomerPortalResult.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/x8bit/bitwarden/data/billing/repository/BillingRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
app/src/test/kotlin/com/x8bit/bitwarden/data/billing/repository/BillingRepositoryTest.kt
Outdated
Show resolved
Hide resolved
|
Claude finished @SaintPatrck's task in 1m 57s —— View job Code Review: PR #6674
Overall Assessment: APPROVE ✅ This PR introduces a new Code Review DetailsNo findings. |
dd9fd33 to
d692519
Compare
|
Thanks @david-livefront |

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-33509
📔 Objective
Create
BillingRepositoryandBillingRepositoryImplto abstract billing service operations into a repository layer, plus Hilt DI modules (BillingModule,BillingNetworkModule) for dependency injection wiring.BillingRepositoryinterface exposesgetCheckoutSessionUrl()andgetPortalUrl()returning domain-specific sealed class result types (CheckoutSessionResult,CustomerPortalResult)BillingRepositoryImpldelegates toBillingServiceand maps response models using.fold()into the appropriate result typesBillingNetworkModuleprovidesBillingServiceviaBitwardenServiceClientBillingModuleprovidesBillingRepositoryas a singleton