Adding CDPSM package.
[PyCIM.git] / CIM14 / IEC61968 / PaymentMetering / AccountMovement.py
blob0596dcbc730c219f0f1c184f55839fc52d6fefdb
1 # Copyright (C) 2010 Richard Lincoln
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA
17 from CIM14.Element import Element
19 class AccountMovement(Element):
20 """Credit/debit movements for an account.
21 """
23 def __init__(self, dateTime='', amount=0.0, reason='', *args, **kw_args):
24 """Initialises a new 'AccountMovement' instance.
26 @param dateTime: Date and time when the credit/debit transaction was performed.
27 @param amount: Amount that was credited to/debited from an account. For example: payment received/interest charge on arrears.
28 @param reason: Reason for credit/debit transaction on an account. Example: payment received/arrears interest levied.
29 """
30 #: Date and time when the credit/debit transaction was performed.
31 self.dateTime = dateTime
33 #: Amount that was credited to/debited from an account. For example: payment received/interest charge on arrears.
34 self.amount = amount
36 #: Reason for credit/debit transaction on an account. Example: payment received/arrears interest levied.
37 self.reason = reason
39 super(AccountMovement, self).__init__(*args, **kw_args)
41 _attrs = ["dateTime", "amount", "reason"]
42 _attr_types = {"dateTime": str, "amount": float, "reason": str}
43 _defaults = {"dateTime": '', "amount": 0.0, "reason": ''}
44 _enums = {}
45 _refs = []
46 _many_refs = []