2020-04-16 21:51:17 +01:00
|
|
|
from typing import NamedTuple
|
|
|
|
|
2020-08-30 23:19:43 -03:00
|
|
|
|
2020-04-16 21:51:17 +01:00
|
|
|
class Indexers(NamedTuple):
|
|
|
|
id: str
|
|
|
|
wallet: str
|
|
|
|
shopname: str
|
|
|
|
indexeraddress: str
|
2020-04-17 18:50:47 +01:00
|
|
|
online: bool
|
2020-04-16 21:51:17 +01:00
|
|
|
rating: str
|
|
|
|
shippingzone1: str
|
|
|
|
shippingzone2: str
|
|
|
|
zone1cost: int
|
|
|
|
zone2cost: int
|
|
|
|
email: str
|
|
|
|
|
2020-08-30 23:19:43 -03:00
|
|
|
|
2020-04-16 21:51:17 +01:00
|
|
|
class Products(NamedTuple):
|
|
|
|
id: str
|
|
|
|
wallet: str
|
|
|
|
product: str
|
|
|
|
categories: str
|
|
|
|
description: str
|
|
|
|
image: str
|
|
|
|
price: int
|
|
|
|
quantity: int
|
|
|
|
|
2020-08-30 23:19:43 -03:00
|
|
|
|
2020-04-16 21:51:17 +01:00
|
|
|
class Orders(NamedTuple):
|
|
|
|
id: str
|
|
|
|
productid: str
|
|
|
|
wallet: str
|
|
|
|
product: str
|
|
|
|
quantity: int
|
|
|
|
shippingzone: int
|
|
|
|
address: str
|
|
|
|
email: str
|
|
|
|
invoiceid: str
|
|
|
|
paid: bool
|
|
|
|
shipped: bool
|