PFDiscount

Objective-C

@interface PFDiscount : NSObject

Swift

class PFDiscount : NSObject

Discount! This represents discount from PurchaseFly

  • id

    Discount identifier

    Declaration

    Objective-C

    @property (readonly) NSString *_Nonnull id;

    Swift

    var id: String { get }
  • Discounted product price

    Declaration

    Objective-C

    @property (readonly) CGFloat price;

    Swift

    var price: CGFloat { get }
  • The locale used to format the price of the product

    Declaration

    Objective-C

    @property (readonly) NSLocale *_Nonnull locale;

    Swift

    var locale: Locale { get }
  • The type of the discount, PFDiscountType

    Declaration

    Objective-C

    @property (readonly) PFDiscountType discountType;

    Swift

    var discountType: PFDiscountType { get }
  • The payment mode used in discount, PFPaymentMode

    Declaration

    Objective-C

    @property (readonly) PFPaymentMode paymentMode;

    Swift

    var paymentMode: PFPaymentMode { get }
  • Subscription period, possible values are “P1W” (one week), “P1M” (one month), “P3M” (three months), “P6M” (six months), and “P1Y” (one year).

    Declaration

    Objective-C

    @property (readonly) NSString *_Nonnull subscriptionPeriod;

    Swift

    var subscriptionPeriod: String { get }