Skip to content

Commit

Permalink
add description field in invoice response
Browse files Browse the repository at this point in the history
  • Loading branch information
wuttinanhi committed Nov 14, 2022
1 parent d775bbc commit 1f4d9ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion payment/model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import enum
from datetime import datetime

from database import Base
from sqlalchemy import Column, DateTime, Enum, Float, ForeignKey, Integer, String

from database import Base


class InvoiceStatus(enum.Enum):
UNPAID = "UNPAID"
Expand Down Expand Up @@ -56,4 +57,5 @@ def json(self):
"invoice_charge_amount": self.charge_amount,
"invoice_create_date": self.create_date,
"invoice_status": str(self.status),
"invoice_description": self.description,
}

0 comments on commit 1f4d9ac

Please sign in to comment.