CalStoreSubscription Class Reference

Inherits from CalStorePageItemPurchasable : CalStorePageItem : CalStoreObject : NSObject
Declared in CalStoreSubscription.h

Overview

The main class for handling the subscription status and purchase workflow. There is only instance per app, that manages the access to the CalendarStore items. To get the shared instance use [CalStoreSubscriptionHandler sharedSubscription]

  subscriptionId

The unique id that identifies a subscripion on the backend. There is only one subscription and therefore one subscriptionId per user. This is used to get and update the subscription status hand in hand with the backend.

@property (nonatomic, retain) NSString *subscriptionId

Declared In

CalStoreSubscription.h

  purchaseDate

The date when the subscription was purcahsed the last time.

@property (nonatomic, retain) NSDate *purchaseDate

Declared In

CalStoreSubscription.h

  expirationDate

The date when the subscription will expire and the user will loose access to his subscribed calendars.

@property (nonatomic, retain) NSDate *expirationDate

Declared In

CalStoreSubscription.h

  userId

The user id, which is calculated on the client side for each app (re-) installation.

@property (nonatomic, retain) NSString *userId

Declared In

CalStoreSubscription.h

  transactionIds

All transactionIds of the intial purchase, subsequential renewals and restored transactions.

@property (nonatomic, retain) NSArray *transactionIds

Declared In

CalStoreSubscription.h

  freeTrialEnabled

YES, if there is a free trial available for the user.

@property (nonatomic, assign) BOOL freeTrialEnabled

Declared In

CalStoreSubscription.h

  freeTrialDurationInDays

The number of days before a user gets charged after enabling the subscription.

@property (nonatomic, assign) NSUInteger freeTrialDurationInDays

Declared In

CalStoreSubscription.h

  localizedUpgradeButtonText

The button/action text to encourage users to buy a subscription.

@property (nonatomic, retain) NSString *localizedUpgradeButtonText

Declared In

CalStoreSubscription.h

  localizedPriceInfo

The localized price info to display for the user, prior to the subscription purchase.

@property (nonatomic, retain) NSString *localizedPriceInfo

Declared In

CalStoreSubscription.h

  subscriptionStatus

The current status of the app subscription. This is used for access handling of the CalendarStore items.

@property (nonatomic, assign, readonly) enum CSSubscriptionStatus subscriptionStatus

Declared In

CalStoreSubscription.h