Object that contains data about an entitlement on the Nami Platform.
public class NamiEntitlement : NSObject, Codable {
var activePurchases : NamiPurchase
var desc : String
var name : String
var namiId : String
var purchasedSkus : [NamiSKU] = []
var referenceId : String
var relatedSkus : [NamiSKU] = []
}
class NamiEntitlement(
val name: String?,
val desc: String? = null,
val namiId: String?,
val referenceId: String,
val relatedSKUs: List<NamiSKU> = listOf(),
val purchasedSKUs: List<NamiSKU> = listOf(),
val activePurchases: List<NamiPurchase> = listOf()
)
class NamiEntitlement {
final String? name;
final String? desc;
final String? namiId;
final String referenceId;
final List<NamiSKU> relatedSKUs;
final List<NamiSKU> purchasedSKUs;
final List<NamiPurchase> activePurchases;
}
export type NamiEntitlement = {
activePurchases: NamiPurchase[];
desc: string;
name: string;
namiId: string;
purchasedSkus: NamiSKU[];
referenceId: string;
relatedSkus: NamiSKU[];
};
public class NamiEntitlement
{
public List<NamiPurchase> ActivePurchases { get; private set; }
public string Desc { get; private set; }
public string Name { get; private set; }
public string NamiId { get; private set; }
public List<NamiSKU> PurchasedSKUs { get; private set; }
public string ReferenceId { get; private set; }
public List<NamiSKU> RelatedSKUs { get; private set; }
}
Parameters
activePurchases
- aNamiPurchase
object corresponding to the purchase that granted the entitlement. Will contain any general metadata know by the SDK. If the purchase was made on the current device, will contain additional platform-specific data.desc
- the description for the entitlement, set in the Control Center.name
- the name of the entitlement, set in the Control Center.namiId
- an internal id used by Nami for the entitlementpurchasedSkus
- a list of NamiSKU objects for the purchased in-app products that granted the entitlement. May contain some general metadata about the in-app purchase product when available. If the entitlement was purchased on device, this object will contain data about the in-app purchase product.referenceId
- the unique id used to reference the entitlement, set in the Control CenterrelatedSkus
- a list of NamiSKU objects. This is the list of all known in-app purchase products that can grant this entitlement. Set in the Control Center.