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 *subscriptionIdDeclared In
CalStoreSubscription.h
purchaseDate
The date when the subscription was purcahsed the last time.
@property (nonatomic, retain) NSDate *purchaseDateDeclared 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 *expirationDateDeclared In
CalStoreSubscription.h
userId
The user id, which is calculated on the client side for each app (re-) installation.
@property (nonatomic, retain) NSString *userIdDeclared In
CalStoreSubscription.h
transactionIds
All transactionIds of the intial purchase, subsequential renewals and restored transactions.
@property (nonatomic, retain) NSArray *transactionIdsDeclared In
CalStoreSubscription.h
freeTrialEnabled
YES, if there is a free trial available for the user.
@property (nonatomic, assign) BOOL freeTrialEnabledDeclared In
CalStoreSubscription.h
freeTrialDurationInDays
The number of days before a user gets charged after enabling the subscription.
@property (nonatomic, assign) NSUInteger freeTrialDurationInDaysDeclared In
CalStoreSubscription.h
localizedUpgradeButtonText
The button/action text to encourage users to buy a subscription.
@property (nonatomic, retain) NSString *localizedUpgradeButtonTextDeclared In
CalStoreSubscription.h
localizedPriceInfo
The localized price info to display for the user, prior to the subscription purchase.
@property (nonatomic, retain) NSString *localizedPriceInfoDeclared 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 subscriptionStatusDeclared In
CalStoreSubscription.h