using System; namespace UnityEngine.Purchasing.Extension { /// /// Represents a failed purchase as described /// by a purchasing service. /// public class PurchaseFailureDescription { /// /// Parametrized Constructor. /// /// The id of the product. /// The reason for the purchase failure /// The message containing details about the failed purchase. public PurchaseFailureDescription(string productId, PurchaseFailureReason reason, string message) { this.productId = productId; this.reason = reason; this.message = message; } /// /// The store specific product ID. /// public string productId { get; private set; } /// /// The reason for the failure. /// public PurchaseFailureReason reason { get; private set; } /// /// The message containing details about the failed purchase. /// public string message { get; private set; } } }