Inherits from NSObject
Declared in REPlan.h

Overview

Encapsulates the response of a REPlanRequest. This includes all the information of a specific plan, including addons.

Tasks

Properties

code

@property (nonatomic, readonly) NSString *code
Discussion

Plan id

Declared In

REPlan.h

interval

@property (nonatomic, readonly) NSString *interval
Discussion

Unit of the period: months, weeks, days, years

Declared In

REPlan.h

length

@property (nonatomic, readonly) NSUInteger length
Discussion

Length of the subscription period. If length = 2 and interval = months. The plan is billed each 2 months

Declared In

REPlan.h

name

@property (nonatomic, readonly) NSString *name
Discussion

Readable name

Declared In

REPlan.h

taxExempt

@property (nonatomic, readonly, getter=isTaxExempt) BOOL taxExempt
Discussion

Is tax exempt

Declared In

REPlan.h

trialInterval

@property (nonatomic, readonly) NSString *trialInterval
Discussion

Trial’s unit of the period: months, weeks, days, years

Declared In

REPlan.h

trialLength

@property (nonatomic, readonly) NSUInteger trialLength
Discussion

Length of the trial period. If length = 2 and interval = months. The trial would last for 2 months.

Declared In

REPlan.h

Instance Methods

addonForName:

- (REAddon *)addonForName:(NSString *)name
Discussion

Each plan has a list of associated addons. This method returns a full description of the addon given the addon’s name.

Parameters

name

Addon code name

Return Value

nil if there is not a defined price for the given currency

Declared In

REPlan.h

addons

- (NSArray *)addons
Discussion

Returns an array with all the addons supported in this plan

Declared In

REPlan.h

hasTrial

- (BOOL)hasTrial
Discussion

Returns if the plan has a trial period

Declared In

REPlan.h

priceForCurrency:

- (REPlanPrice *)priceForCurrency:(NSString *)aCurrency
Discussion

Returns the plan’s price for the specified currency code. ISO 4217

Parameters

aCurrency

Currency code

Return Value

nil if there is not a defined price for the given currency

Declared In

REPlan.h