@@ -24,20 +24,22 @@ def __init__(self,
2424 outcomeInstrument : int , # -> Instrument.id
2525 outcomeAccount : UUID , # -> Account.id
2626 outcome : float , # >= 0
27- # tag: [String -> Tag.id]?
28- # merchant: UUID? -> Merchant.id
29- # payee: String?
27+ tag : list = None , # [String -> Tag.id]?
28+ merchant : UUID = None , # -> Merchant.id
29+ payee : str = None ,
3030 # originalPayee: String?
3131 # comment: String?
3232 date : datetime_date , # 'yyyy-MM-dd'
3333 # mcc: Int?
34- # reminderMarker: String? -> ReminderMarker.id
35- # opIncome: Double? >= 0
36- # opIncomeInstrument: Int? -> Instrument.id
37- # opOutcome: Double? >= 0
38- # opOutcomeInstrument: Int? -> Instrument.id
39- # latitude: Double? >= -90 && <= 90
40- # longitude: Double? >= -180 && <= 180
34+ reminderMarker : str = None , # -> ReminderMarker.id
35+ opIncome : float = None , # >= 0
36+ opIncomeInstrument : int = None , # -> Instrument.id
37+ opOutcome : float = None , # >= 0
38+ opOutcomeInstrument : int = None , # -> Instrument.id
39+ latitude : float = None , # >= -90 && <= 90
40+ longitude : float = None , # >= -180 && <= 180
41+ incomeBankID : str = None , # ???
42+ outcomeBankID : str = None , # ???
4143 ** kwargs
4244 ):
4345 self .id = id
@@ -51,6 +53,18 @@ def __init__(self,
5153 self .outcomeInstrument = outcomeInstrument
5254 self .outcomeAccount = outcomeAccount
5355 self .outcome = outcome
56+ self .tag = tag
57+ self .merchant = merchant
58+ self .payee = payee
59+ self .reminderMarker = reminderMarker
60+ self .opIncome = opIncome
61+ self .opIncomeInstrument = opIncomeInstrument
62+ self .opOutcome = opOutcome
63+ self .opOutcomeInstrument = opOutcomeInstrument
64+ self .incomeBankID = incomeBankID
65+ self .outcomeBankID = outcomeBankID
66+ self .longitude = longitude
67+ self .latitude = latitude
5468 self .date = str (date )
5569 for k , v in kwargs .items ():
5670 setattr (self , k , v )
0 commit comments