-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathabstractprovider.py
38 lines (28 loc) · 1.08 KB
/
abstractprovider.py
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
#provider.py
#Hides provider-specific details for the main csvtoqbo method.
class AbstractProvider:
#Abstract base class to be inherited by all concrete provider classes.
__providerID = ''
__providerName = ''
def getID( self ):
raise NotImplementedError( "Method getProviderID not implemented." )
def getName(self):
raise NotImplementedError( "Method getName not implemented." )
@staticmethod
def getStatus(self,row):
raise NotImplementedError( "Method getStatus not implemented." )
@staticmethod
def getDatePosted(self, row):
raise NotImplementedError( "Method getDatePosted not implemented." )
@staticmethod
def getTxnType(self,row):
raise NotImplementedError( "Method getTxnType not implemented." )
@staticmethod
def getToFrom(self,row):
raise NotImplementedError( "Method getToFrom not implemented." )
@staticmethod
def getTxnAmount(self,row):
raise NotImplementedError( "Method getTxnAmount not implemented." )
@staticmethod
def getTxnName(self,row):
raise NotImplementedError( "Method getTxnName not implemented." )