Skip to content

Commit

Permalink
Update models.py PaymentMethod class to match current implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
joaovaladares committed Jan 3, 2025
1 parent 52859ff commit fb7892c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions incognia/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,19 @@ class CardInfo(TypedDict, total=False):
expiry_year: str
expiry_month: str


class PaymentMethod(TypedDict, total=False):
type: Literal['credit', 'debit']
type: Literal[
"credit",
"debit",
"apple_pay",
"google_pay",
"nu_pay",
"pix",
"account_balance",
"meal_voucher",
"cash",
"paypal",
"bancolombia",
]
credit_card_info: CardInfo
debit_card_info: CardInfo

0 comments on commit fb7892c

Please sign in to comment.