-
Notifications
You must be signed in to change notification settings - Fork 0
/
Account.h
41 lines (31 loc) · 1.1 KB
/
Account.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Account.h
// Allowance
//
// Created by Pablo Collins on 6/13/10.
//
#import <CoreData/CoreData.h>
@class Kid;
@interface Account : NSManagedObject {
}
@property (nonatomic, strong) NSNumber * isExpenseType;
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSDate * createdAt;
@property (nonatomic, strong) NSSet* debitTransactions;
@property (nonatomic, strong) Kid * owner;
@property (nonatomic, strong) NSSet* creditTransactions;
@property (nonatomic, strong) NSNumber * balance;
+ (void)findOrCreateMasterAccount;
+ (Account *)masterAccount;
- (NSArray *)transactionHistory;
@end
@interface Account (CoreDataGeneratedAccessors)
- (void)addDebitTransactionsObject:(NSManagedObject *)value;
- (void)removeDebitTransactionsObject:(NSManagedObject *)value;
- (void)addDebitTransactions:(NSSet *)value;
- (void)removeDebitTransactions:(NSSet *)value;
- (void)addCreditTransactionsObject:(NSManagedObject *)value;
- (void)removeCreditTransactionsObject:(NSManagedObject *)value;
- (void)addCreditTransactions:(NSSet *)value;
- (void)removeCreditTransactions:(NSSet *)value;
@end