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

Support multiple offers #190

Merged
merged 4 commits into from
Jan 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct naming
kf99916 committed Jan 3, 2025
commit e2e99363807876e5f80fe25bb374f84690853c80
4 changes: 2 additions & 2 deletions iap/src/main/java/com/limurse/iap/BillingService.kt
Original file line number Diff line number Diff line change
@@ -322,7 +322,7 @@ class BillingService(
id = offerDetails.offerId,
token = offerDetails.offerToken,
tags = offerDetails.offerTags,
pricingPhase = offerDetails.pricingPhases.pricingPhaseList.map { pricingPhase ->
pricingPhases = offerDetails.pricingPhases.pricingPhaseList.map { pricingPhase ->
DataWrappers.PricingPhase(
priceCurrencyCode = pricingPhase.priceCurrencyCode,
price = pricingPhase.formattedPrice,
@@ -345,7 +345,7 @@ class BillingService(
id = null,
token = null,
tags = null,
pricingPhase = listOf(
pricingPhases = listOf(
DataWrappers.PricingPhase(
priceCurrencyCode = offerDetails.priceCurrencyCode,
price = offerDetails.formattedPrice,
2 changes: 1 addition & 1 deletion iap/src/main/java/com/limurse/iap/DataWrappers.kt
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ class DataWrappers {
val id: String?,
val token: String?,
val tags: List<String>?,
val pricingPhase: List<PricingPhase>
val pricingPhases: List<PricingPhase>
)

data class PricingPhase(