Skip to content

Commit

Permalink
Merge pull request #4 from kmee/feature/improve-user-model
Browse files Browse the repository at this point in the history
[IMP] User model
  • Loading branch information
mileo authored Feb 28, 2021
2 parents 59ce072 + 1c92963 commit 5b64683
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions febraban/cnab240/user.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@


class User:

def __init__(self, name, identifier, bank=None, address=None):
def __init__(self, name, identifier, bank=None, address=None, email=None,
phone=None, personType=None):
self.name = name
self.identifier = identifier
self.bank = bank
self.address = address
self.email = email
self.phone = phone
self.personType = personType


class UserBank:
Expand All @@ -21,10 +23,12 @@ def __init__(self, bankId, branchCode, accountNumber, accountVerifier, bankName=

class UserAddress:

def __init__(self, streetLine1, city, stateCode, zipCode, district="", streetLine2=""):
def __init__(self, streetLine1, city, stateCode, zipCode, district="",
streetLine2="", streetNumber=None):
self.streetLine1 = streetLine1
self.streetLine2 = streetLine2
self.district = district
self.city = city
self.stateCode = stateCode
self.zipCode = zipCode
self.zipCode = zipCode
self.streetNumber = streetNumber

0 comments on commit 5b64683

Please sign in to comment.