-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
7 changed files
with
145 additions
and
14 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
31 changes: 31 additions & 0 deletions
31
billing/src/main/java/com/hypersoft/billing/dataClasses/ProductDetail.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.hypersoft.billing.dataClasses | ||
|
||
import com.hypersoft.billing.enums.ProductType | ||
|
||
/** | ||
* @Author: SOHAIB AHMED | ||
* @Date: 13,June,2023 | ||
* @Accounts | ||
* -> https://github.com/epegasus | ||
* -> https://stackoverflow.com/users/20440272/sohaib-ahmed | ||
*/ | ||
/** | ||
* @property productId: Unique ID (Console's ID | ||
* @property price: e.g. Rs 750.00 | ||
* @property currencyCode: e.g. USD, PKR, etc | ||
* @property freeTrialPeriod: e.g. 3, 5, 7 | ||
* @property priceAmountMicros: e.g. 750000000 | ||
* @property freeTrial: isAvailable or not | ||
*/ | ||
|
||
data class ProductDetail( | ||
var productId: String, | ||
var price: String, | ||
var currencyCode: String, | ||
var freeTrialPeriod: Int, | ||
var priceAmountMicros: Long = 0, | ||
var freeTrial: Boolean = false, | ||
var productType: ProductType = ProductType.SUBS | ||
) { | ||
constructor() : this(productId = "", price = "", currencyCode = "", 0, 0, false) | ||
} |
14 changes: 14 additions & 0 deletions
14
billing/src/main/java/com/hypersoft/billing/enums/ProductType.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.hypersoft.billing.enums | ||
|
||
/** | ||
* @Author: SOHAIB AHMED | ||
* @Date: 13,June,2023 | ||
* @Accounts | ||
* -> https://github.com/epegasus | ||
* -> https://stackoverflow.com/users/20440272/sohaib-ahmed | ||
*/ | ||
|
||
enum class ProductType { | ||
INAPP, | ||
SUBS | ||
} |
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