Inherits from NSObject
Declared in REAddon.h

Overview

Encapsulates an addon included in a plan. Instances of this class are populared with the response of a REPlanRequest.

Tasks

Properties

code

@property (nonatomic, readonly) NSString *code
Discussion

Addon id

Declared In

REAddon.h

name

@property (nonatomic, readonly) NSString *name
Discussion

Addon name

Declared In

REAddon.h

price

@property (nonatomic, readonly) NSDictionary *price
Discussion

Dictionary containing the addon price for each currency. You should better use the priceForCurrency: method.

Declared In

REAddon.h

quantity

@property (nonatomic, readonly) NSUInteger quantity
Discussion

Number of units

Declared In

REAddon.h

Instance Methods

priceForCurrency:

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

Returns the addon’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

REAddon.h