Created
March 24, 2020 16:20
-
-
Save Ananto30/5176fd19b4d075e58da3f9a68052cac4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from app.serializers.serialization_types import Btypes | |
class OrderStatus: | |
INITIATED = 0 | |
PACKING = 1 | |
SHIPPED = 2 | |
DELIVERED = 3 | |
class Order(Btypes): | |
# For now, just save here | |
orders = {} | |
def __init__(self, id, items, created_by, created_at, status, updated_at=None): | |
self.id = id | |
self.items = items | |
self.created_by = created_by | |
self.created_at = created_at | |
self.status = status | |
self.updated_at = updated_at |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment