-
Notifications
You must be signed in to change notification settings - Fork 65
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 #278 from AppsFlyerSDK/releases/6.x.x/6.14.x/6.14.…
…3-rc1 Releases/6.x.x/6.14.x/6.14.3 rc1
- Loading branch information
Showing
31 changed files
with
507 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace AppsFlyerSDK | ||
{ | ||
public enum AFPurchaseType | ||
{ | ||
Subscription = 0, | ||
OneTimePurchase = 1 | ||
} | ||
|
||
/// <summary> | ||
// | ||
/// </summary> | ||
public class AFPurchaseDetailsAndroid | ||
|
||
{ | ||
public AFPurchaseType purchaseType { get; private set; } | ||
public string purchaseToken { get; private set; } | ||
public string productId { get; private set; } | ||
public string price { get; private set; } | ||
public string currency { get; private set; } | ||
|
||
public AFPurchaseDetailsAndroid(AFPurchaseType type, String purchaseToken, String productId, String price, String currency) | ||
{ | ||
this.purchaseType = type; | ||
this.purchaseToken = purchaseToken; | ||
this.productId = productId; | ||
this.price = price; | ||
this.currency = currency; | ||
} | ||
|
||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace AppsFlyerSDK | ||
{ | ||
/// <summary> | ||
// | ||
/// </summary> | ||
public class AFSDKPurchaseDetailsIOS | ||
{ | ||
public string productId { get; private set; } | ||
public string price { get; private set; } | ||
public string currency { get; private set; } | ||
public string transactionId { get; private set; } | ||
|
||
private AFSDKPurchaseDetailsIOS(string productId, string price, string currency, string transactionId) | ||
{ | ||
this.productId = productId; | ||
this.price = price; | ||
this.currency = currency; | ||
this.transactionId = transactionId; | ||
} | ||
|
||
public static AFSDKPurchaseDetailsIOS Init(string productId, string price, string currency, string transactionId) | ||
{ | ||
return new AFSDKPurchaseDetailsIOS(productId, price, currency, transactionId); | ||
} | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace AppsFlyerSDK | ||
{ | ||
public enum AFSDKValidateAndLogStatus | ||
{ | ||
AFSDKValidateAndLogStatusSuccess, | ||
AFSDKValidateAndLogStatusFailure, | ||
AFSDKValidateAndLogStatusError | ||
} | ||
|
||
|
||
/// <summary> | ||
// | ||
/// </summary> | ||
public class AFSDKValidateAndLogResult | ||
{ | ||
public AFSDKValidateAndLogStatus status { get; private set; } | ||
public Dictionary<string, object> result { get; private set; } | ||
public Dictionary<string, object> errorData { get; private set; } | ||
public string error { get; private set; } | ||
|
||
private AFSDKValidateAndLogResult(AFSDKValidateAndLogStatus status, Dictionary<string, object> result, Dictionary<string, object> errorData, string error) | ||
{ | ||
this.status = status; | ||
this.result = result; | ||
this.errorData = errorData; | ||
this.error = error; | ||
} | ||
|
||
public static AFSDKValidateAndLogResult Init(AFSDKValidateAndLogStatus status, Dictionary<string, object> result, Dictionary<string, object> errorData, string error) | ||
{ | ||
return new AFSDKValidateAndLogResult(status, result, errorData, error); | ||
} | ||
} | ||
|
||
} |
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
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,19 @@ | ||
namespace AppsFlyerSDK | ||
{ | ||
public interface IAppsFlyerValidateAndLog | ||
{ | ||
/// <summary> | ||
/// The success callback for validateAndSendInAppPurchase API. | ||
/// For Android : the callback will return JSON string. | ||
/// For iOS : the callback will return a JSON string from apples verifyReceipt API. | ||
/// </summary> | ||
/// <param name="result"></param> | ||
void onValidateAndLogComplete(string result); | ||
|
||
/// <summary> | ||
/// The error callback for validateAndSendInAppPurchase API. | ||
/// </summary> | ||
/// <param name="error">A string describing the error.</param> | ||
void onValidateAndLogFailure(string error); | ||
} | ||
} |
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
Oops, something went wrong.