Files
RedHotRoast-ios/Assets/AppsFlyer/AFSDKPurchaseDetailsIOS.cs
T

37 lines
1.1 KiB
C#
Raw Normal View History

2026-04-22 09:52:55 +08:00
using System;
using System.Collections.Generic;
namespace AppsFlyerSDK
{
/// <summary>
2026-05-20 14:29:11 +08:00
/// Purchase type enum matching iOS SDK AFSDKPurchaseType
/// </summary>
public enum AFSDKPurchaseType
{
Subscription,
OneTimePurchase
}
/// <summary>
/// Purchase details class matching iOS SDK AFSDKPurchaseDetails
2026-04-22 09:52:55 +08:00
/// </summary>
public class AFSDKPurchaseDetailsIOS
{
public string productId { get; private set; }
public string transactionId { get; private set; }
2026-05-20 14:29:11 +08:00
public AFSDKPurchaseType purchaseType { get; private set; }
2026-04-22 09:52:55 +08:00
2026-05-20 14:29:11 +08:00
private AFSDKPurchaseDetailsIOS(string productId, string transactionId, AFSDKPurchaseType purchaseType)
2026-04-22 09:52:55 +08:00
{
this.productId = productId;
this.transactionId = transactionId;
2026-05-20 14:29:11 +08:00
this.purchaseType = purchaseType;
2026-04-22 09:52:55 +08:00
}
2026-05-20 14:29:11 +08:00
public static AFSDKPurchaseDetailsIOS Init(string productId, string transactionId, AFSDKPurchaseType purchaseType)
2026-04-22 09:52:55 +08:00
{
2026-05-20 14:29:11 +08:00
return new AFSDKPurchaseDetailsIOS(productId, transactionId, purchaseType);
2026-04-22 09:52:55 +08:00
}
}
}