Inherits from LUAPIModel : NSObject
Declared in LUPaymentPreference.h
LUPaymentPreference.m

Overview

For some LevelUp-powered apps, users can choose how they wish to be billed: either to preload money into their account (and to automatically load more money when their balance is low), or to be billed monthly (or in certain cases, immediately after an order is made). LUPaymentPreference is used to select a user’s payment preference choice.

See LUPaymentPreferenceRequestFactory to request the payment options summary and to set a user’s payment preference.

Properties

preload

If YES, the user chooses to have money preloaded into their account. If NO, the user will be charged monthly (or in certain cases, immediately after an order).

@property (nonatomic, assign) BOOL preload

Discussion

If YES, the user chooses to have money preloaded into their account. If NO, the user will be charged monthly (or in certain cases, immediately after an order).

Declared In

LUPaymentPreference.h

preloadValue

If preload is set to YES, this value may be set to the amount of money to charge when money is loaded into their account.

@property (nonatomic, strong) LUMonetaryValue *preloadValue

Discussion

If preload is set to YES, this value may be set to the amount of money to charge when money is loaded into their account.

This property is optional; if it is set to nil, a default value will be used.

Declared In

LUPaymentPreference.h

Instance Methods

initWithPreload:

A convenience initializer for LUPaymentPreference.

- (id)initWithPreload:(BOOL)preload

Parameters

preload

Whether the user chooses preloading for their account.

Discussion

A convenience initializer for LUPaymentPreference.

Declared In

LUPaymentPreference.h

initWithPreload:preloadValue:

The designated initializer for LUPaymentPreference.

- (id)initWithPreload:(BOOL)preload preloadValue:(LUMonetaryValue *)preloadValue

Parameters

preload

Whether the user chooses preloading for their account.

preloadValue

The preload value if preloading has been chosen (optional).

Discussion

The designated initializer for LUPaymentPreference.

Declared In

LUPaymentPreference.h