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

Privacy Pro Subscriptions: Update some internal models and methods #5402

Merged
merged 14 commits into from
Dec 21, 2024
Prev Previous commit
Next Next commit
Remove Json parameter that is not needed anymore
  • Loading branch information
nalcalag committed Dec 20, 2024
commit 17678188a009a792c7293369ca2efab485ee8853
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ class SubscriptionWebViewViewModel @Inject constructor(
OfferJson(
type = offerType,
id = it,
displayPrice = offer.pricingPhases.first().formattedPrice,
durationInDays = offer.pricingPhases.first().getBillingPeriodInDays(),
isUserEligible = true, // TODO Noelia: Need to check if they already had a free trial before to return false
)
Expand Down Expand Up @@ -361,7 +360,6 @@ class SubscriptionWebViewViewModel @Inject constructor(
data class OfferJson(
val type: OfferType,
val id: String,
val displayPrice: String,
val durationInDays: Int?,
val isUserEligible: Boolean,
)
Expand Down
Loading