LUPaymentPreference Class Reference
| 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 preloadDiscussion
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.hpreloadValue
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 *preloadValueDiscussion
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.hInstance Methods
initWithPreload:
A convenience initializer for LUPaymentPreference.
- (id)initWithPreload:(BOOL)preloadParameters
- preload
Whether the user chooses preloading for their account.
Discussion
A convenience initializer for LUPaymentPreference.
Declared In
LUPaymentPreference.hinitWithPreload:preloadValue:
The designated initializer for LUPaymentPreference.
- (id)initWithPreload:(BOOL)preload preloadValue:(LUMonetaryValue *)preloadValueParameters
- 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