-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from qonversion/release/8.0.0
Release/8.0.0
- Loading branch information
Showing
20 changed files
with
205 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<dependencies> | ||
<androidPackages> | ||
<androidPackage spec="io.qonversion.sandwich:sandwich:4.5.0" /> | ||
<androidPackage spec="io.qonversion.sandwich:sandwich:5.0.3" /> | ||
<androidPackage spec="com.fasterxml.jackson.core:jackson-databind:2.11.1" /> | ||
<androidPackage spec="org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.61" /> | ||
</androidPackages> | ||
<iosPods> | ||
<iosPod name="QonversionSandwich" version="4.5.0" /> | ||
<iosPod name="QonversionSandwich" version="5.0.3" /> | ||
</iosPods> | ||
</dependencies> |
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: 33 additions & 0 deletions
33
Runtime/Scripts/Dto/ProductStoreDetails/ProductInstallmentPlanDetails.cs
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,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace QonversionUnity | ||
{ | ||
/// <summary> | ||
/// This class represents the details about the installment plan for a subscription product. | ||
/// </summary> | ||
public class ProductInstallmentPlanDetails | ||
{ | ||
/// Committed payments count after a user signs up for this subscription plan. | ||
public readonly int CommitmentPaymentsCount; | ||
|
||
/// Subsequent committed payments count after this subscription plan renews. | ||
/// | ||
/// Returns 0 if the installment plan doesn't have any subsequent commitment, | ||
/// which means this subscription plan will fall back to a normal | ||
/// non-installment monthly plan when the plan renews. | ||
public readonly int SubsequentCommitmentPaymentsCount; | ||
|
||
public ProductInstallmentPlanDetails(Dictionary<string, object> dict) | ||
{ | ||
if (dict.TryGetValue("commitmentPaymentsCount", out object value)) CommitmentPaymentsCount = (int)(long)value; | ||
if (dict.TryGetValue("subsequentCommitmentPaymentsCount", out value)) SubsequentCommitmentPaymentsCount = (int)(long)value; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return $"{nameof(CommitmentPaymentsCount)}: {CommitmentPaymentsCount}, " + | ||
$"{nameof(SubsequentCommitmentPaymentsCount)}: {SubsequentCommitmentPaymentsCount}"; | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Runtime/Scripts/Dto/ProductStoreDetails/ProductInstallmentPlanDetails.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.