Object that contains all the data on a in-app purchase SKU for an App Platform.

public class NamiSKU: NSObject, Codable {
    public var platformID : String
    public var product : SKProduct?
    public var platform : NamiPlatformType = .other 
    public var type : NamiSKUType,
    public var productMetadata : [String:Any]
}
@interface NamiSKU : NSObject
	@property (nonatomic, copy) NSString * _Nonnull platformID;
	@property (nonatomic, strong) SKProduct * _Nullable product;
	@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable productMetadata;
	@property (nonatomic) enum NamiPlatformType platform;
	@property (nonatomic) enum NamiSKUType type;
@end
data class NamiSKU(
    val skuId: String,
    val skuDetails: SkuDetails,
    val platform: NamiPlatformType,
    val id: String?,
    val type: NamiSKUType
)
NamiSKU = {
    "platformID": String,
    'product': Dictionary (product details),
    "platform": String,
  	"type":	String,
  	"productMetadata": Dictionary (product dictionary from nami server)
}
class NamiSKU {
  final String description;
  final String title;
  final NamiSKUType type;
  final String localizedMultipliedPrice; // iOS only
  final String price;
  final String subscriptionGroupIdentifier; // iOS only
  final String skuId;
  final String localizedPrice;
  final int numberOfUnits;
  final String priceLanguage; // iOS only
  final String priceCurrency;
  final String priceCountry; // iOS only
  final PeriodUnit periodUnit;
}

Parameters

  • platformID - The id for the in-app purchase product SKU, from the Control Center. Is also used as the platform product ID.
  • product - the platform specific product class, if available.
  • platform - NamiPlatformType for which App Platform the product SKU belongs to.
  • type - NamiSKUType - indicates subscription, or non-subscription product.
  • productMetadata - any extra product metadata returned from server.