Skip to content

Commit

Permalink
Added Card PaymentMethod. (mmohades#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwilson1 committed Mar 23, 2021
1 parent b726ad1 commit 1eb72c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion venmo_api/models/payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class BankAccount(PaymentMethod, BaseModel):
def __init__(self, pid, p_role, p_name, p_type, json=None):
super().__init__(pid, p_role, p_name, p_type, json)

class Card(PaymentMethod, BaseModel):
def __init__(self, pid, p_role, p_name, p_type, json=None):
super().__init__(pid, p_role, p_name, p_type, json)

class PaymentRole(Enum):
DEFAULT = 'default'
Expand All @@ -67,4 +70,4 @@ class PaymentPrivacy(Enum):
FRIENDS = 'friends'


payment_type = {'bank': BankAccount, 'balance': VenmoBalance}
payment_type = {'bank': BankAccount, 'balance': VenmoBalance, 'card': Card}

0 comments on commit 1eb72c9

Please sign in to comment.