-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct_request_model.py
More file actions
47 lines (40 loc) · 930 Bytes
/
product_request_model.py
File metadata and controls
47 lines (40 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from datetime import datetime
import json
class ProductResponseModel:
id: str
site_id: str
title: str
subtitle: str
seller_id: int
category_id: str
official_store_id: int
price: int
base_price: int
original_price: int
currency_id: str
initial_quantity: int
available_quantity: int
sold_quantity: int
buying_mode: str
listing_type_id: str
start_time: datetime
stop_time: datetime
condition: str
permalink: str
thumbnail_id: str
thumbnail: str
secure_thumbnail: str
video_id: str
accepts_mercadopago: bool
international_delivery_mode: str
listing_source: str
status: str
warranty: str
domain_id: str
automatic_relist: bool
date_created: datetime
last_updated: datetime
health: int
catalog_listing: bool
def __init__(self, response):
self.__dict__ = json.loads(response)