NamiEntitlement

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] = []
}

Parameters

  • 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 - 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 - 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.

Last updated