Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] User model #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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