Inherits from NSObject
Declared in REPricing.h

Tasks

Properties

addons

@property (nonatomic) NSDictionary *addons
Discussion

Addons

Declared In

REPricing.h

countryCode

@property (nonatomic) NSString *countryCode
Discussion

Country code. Used for taxes

Declared In

REPricing.h

couponCode

@property (nonatomic) NSString *couponCode
Discussion

Coupon code. Used for discounts

Declared In

REPricing.h

currency

@property (nonatomic, readonly) NSString *currency
Discussion

Currency code

Declared In

REPricing.h

delegate

@property (nonatomic, weak) id<REPricingHandlerDelegate> delegate
Discussion

Delegate

Declared In

REPricing.h

planCount

@property (nonatomic) NSUInteger planCount
Discussion

Number of plans included. 1 by default

Declared In

REPricing.h

postalCode

@property (nonatomic) NSString *postalCode
Discussion

Postal code. Used for taxes

Declared In

REPricing.h

vatCode

@property (nonatomic) NSString *vatCode
Discussion

VAT code. Used for taxes

Declared In

REPricing.h

Instance Methods

initWithCurrency:

- (instancetype)initWithCurrency:(NSString *)currency
Discussion

Initializes a Pricing object with the specified currency.

Parameters

currency

Currency code

Declared In

REPricing.h

setAddress:

- (void)setAddress:(REAddress *)anAddress
Discussion

Sets address. Used to populate the country and postal code

Parameters

anAddress

Address container

Declared In

REPricing.h

setCountryCode:

- (void)setCountryCode:(NSString *)country
Discussion

Sets the country code. Used for taxing

Parameters

country

Country Code

Declared In

REPricing.h

setPlanCode:

- (void)setPlanCode:(NSString *)planCode
Discussion

Sets the plan code

Parameters

planCode

Plan code

Declared In

REPricing.h

updateAddon:quantity:

- (void)updateAddon:(NSString *)addonName quantity:(NSUInteger)quantity
Discussion

Updates the quantity of included addons.

Parameters

addonName

Addon name

quantity

Number of the specified addons included

Declared In

REPricing.h