MNFTransactionGroup
The MNFTransactionGroup class represents a list of transactions in a transaction page grouped together by either date or category.
A transaction group is automatically created when performing grouping on a transaction page.
-
@abstract The transactions in the group.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray *_Nullable transactions;
Swift
var transactions: [Any]? { get }
-
@abstract The sum of the transactions in the group.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nullable sum;
Swift
var sum: NSNumber? { get }
-
@abstract The rule by which the transactions are grouped.
Declaration
Objective-C
@property (nonatomic, readonly) MNFGroupedBy groupedBy;
Swift
var groupedBy: MNFGroupedBy { get }
-
@abstract The identifier of the group.
@discussion If transactions are grouped by categories this will be the categoryId with NSNumber format. If transactions are grouped by date this will be the date with NSDate format.
Declaration
Objective-C
@property (nonatomic, strong, readonly) id _Nullable groupId;
Swift
var groupId: Any? { get }
-
@abstract Initializes a transaction group object with a list of transactions. The list has to be sorted and grouped beforehand.
Declaration
Objective-C
+ (nonnull instancetype)groupBy:(MNFGroupedBy)groupedBy WithTransactions:(nonnull NSArray *)transactions;
Swift
convenience init(by groupedBy: MNFGroupedBy, withTransactions transactions: [Any])
Parameters
groupedBy
The rule by which the transactions are grouped.
transactions
The transactions of the group.
Return Value
An instance of MNFTransactionGroup.