Skip to content

Instantly share code, notes, and snippets.

@Ananto30
Created March 24, 2020 16:20
Show Gist options
  • Save Ananto30/5176fd19b4d075e58da3f9a68052cac4 to your computer and use it in GitHub Desktop.
Save Ananto30/5176fd19b4d075e58da3f9a68052cac4 to your computer and use it in GitHub Desktop.
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