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] = []
@interface NamiEntitlement : NSObject
@property (nonatomic, copy) NSString * _Nullable name;
@property (nonatomic, copy) NSString * _Nullable desc;
@property (nonatomic, copy) NSString * _Nullable namiID;
@property (nonatomic, copy) NSString * _Nonnull referenceID;
@property (nonatomic, copy) NSArray<NamiSKU *> * _Nonnull relatedSKUs;
@property (nonatomic, copy) NSArray<NamiSKU *> * _Nonnull purchasedSKUs;
@property (nonatomic, copy) NSArray<NamiPurchase *> * _Nonnull activePurchases;
class NamiEntitlement(
  activePurchases: MutableList<NamiPurchase>
  desc: String?,
  name: String?,
  namiId: String?,
  referenceId: String?,
  relatedSKUs: MutableList<NamiSKU>,
  purchasedSKUs: MutableList<NamiSKU>
class NamiEntitlement(
  @NonNull List<NamiPurchase> activePurchases,
  @Nullable String desc,
  @Nullable String name,
  @Nullable String namiId,
  @Nullable String referenceId,
  @NonNull List<NamiSKU> relatedSKUs,
  @NonNull List<NamiSKU> purchasedSKUs
NamiEntitlement = {
  "activePurchases": NamiPurchase,
  "desc": String,
  "name": String,
  "namiID": String,
  "purchasedSKUs": [NamiSKU],
  "referenceID": String,
  "relatedSKUs": [NamiSKU]
class NamiEntitlement {
  final String name;
  final String description;
  final String namiId;
  final String referenceId;
  final List<NamiSKU> relatedSKUs;
  final List<NamiSKU> purchasedSKUs;
  final List<NamiPurchase> activePurchases;
interface NamiEntitlement : INativeObject {
  string Name { get; set; }
  string Desc { get; set; }
  string NamiID { get; set; }
  string ReferenceID { get; set; }
  NamiSKU[] RelatedSKUs { get; set; }
  NamiSKU[] PurchasedSKUs { get; set; }
  NamiPurchase[] ActivePurchases { get; set; }


  • activePurchases - a NamiPurchase 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 / NamiId - an internal id used by Nami for the entitlement
  • purchasedSKUs - 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 / referenceId - the unique id used to reference the entitlement, set in the Control Center
  • relatedSKUs - 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.