Skip to content

Commit

Permalink
Updated mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 30, 2023
1 parent f079520 commit e5b96b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private const val TAG = "HomeFragment"
class HomeFragment : Fragment() {
lateinit var binding: FragmentHomeBinding

private val productIdSubs = "main"
private val productIdSubs = "annual"
private val productIdInApp = "in_app"
private val entitlementPlus = "plus"
private val entitlementStandart = "standart"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.util.Date
data class QTransaction(
@Json(name = "original_transaction_id") val originalTransactionId: String,
@Json(name = "transaction_id") val transactionId: String,
@Json(name = "offer_code") val offerCode: String,
@Json(name = "offer_code") val offerCode: String?,
@Json(name = "transaction_timestamp") val transactionDate: Date,
@Json(name = "expiration_timestamp") val expirationDate: Date?,
@Json(name = "transaction_revoke_timestamp") val transactionRevocationDate: Date?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.qonversion.android.sdk.dto.entitlements

enum class QTransactionType(val type: String) {
Unknown("unknown"),
SubscriptionStarted("subscription_started"),
SubscriptionRenewed("subscription_renewed"),
TrialStrated("trial_started"),
Expand All @@ -17,7 +18,7 @@ enum class QTransactionType(val type: String) {
"intro_started" -> IntroStarted
"intro_renewed" -> IntroRenewed
"non_consumable_purchase" -> NonConsumablePurchase
else -> SubscriptionRenewed
else -> Unknown
}
}
}
Expand Down

0 comments on commit e5b96b3

Please sign in to comment.