forked from openedx/openedx-app-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a985f18
commit f2cc82e
Showing
25 changed files
with
531 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 26 additions & 7 deletions
33
core/src/main/java/org/openedx/core/domain/model/iap/PurchaseFlowData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
package org.openedx.core.domain.model.iap | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
import org.openedx.core.domain.ProductInfo | ||
|
||
@Parcelize | ||
data class PurchaseFlowData( | ||
val screenName: String? = null, | ||
val courseId: String? = null, | ||
val courseName: String? = null, | ||
val isSelfPaced: Boolean? = null, | ||
val componentId: String? = null, | ||
val productInfo: ProductInfo? = null, | ||
) { | ||
var screenName: String? = null, | ||
var courseId: String? = null, | ||
var courseName: String? = null, | ||
var isSelfPaced: Boolean? = null, | ||
var componentId: String? = null, | ||
var productInfo: ProductInfo? = null, | ||
) : Parcelable { | ||
|
||
var currencyCode: String = "" | ||
var price: Double = 0.0 | ||
var formattedPrice: String? = null | ||
var purchaseToken: String? = null | ||
var basketId: Long = -1 | ||
|
||
var flowStartTime: Long = 0 | ||
|
||
fun reset() { | ||
screenName = null | ||
courseId = null | ||
courseName = null | ||
isSelfPaced = null | ||
componentId = null | ||
productInfo = null | ||
currencyCode = "" | ||
price = 0.0 | ||
formattedPrice = null | ||
purchaseToken = null | ||
basketId = -1 | ||
flowStartTime = 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.