MNFTransactionSplitAction
Objective-C
@interface MNFTransactionSplitAction : MNFObject
Swift
class MNFTransactionSplitAction : MNFObject
The MNFTransactionSplitAction class encapsulates split action json data from the server in an object.
A split action can be directly initialized or initialized when fetching a transaction rule from the server.
-
@abstract The identifier of the corresponding rule.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nonnull transactionRuleId;Swift
var transactionRuleId: NSNumber { get set } -
@abstract Split ratio.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable ratio;Swift
var ratio: NSNumber? { get set } -
@abstract Split amount that should be applied by the corresponding rule.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nonnull amount;Swift
var amount: NSNumber { get set } -
@abstract The category id in which to put the split transaction.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nonnull categoryId;Swift
var categoryId: NSNumber { get set } -
@abstract A convenience initializer to simply create a transaction split action. The transaction rule id and identifyer are populated by the server once it has been created.
Declaration
Objective-C
+ (nonnull instancetype) transactionSplitActionWithRatio:(nonnull NSNumber *)ratio amount:(nonnull NSNumber *)amount categoryId:(nonnull NSNumber *)categoryId;Swift
convenience init(ratio: NSNumber, amount: NSNumber, categoryId: NSNumber)
View on GitHub