Files
pyspapi/pyspapi/types/payment.py
deesiigneer b3d56a6059 new version
2024-04-18 21:45:13 +05:00

19 lines
448 B
Python

class Item:
def __init__(self, name: str, count: int, price: int, comment: str):
self._name = name
self._count = count
self._price = price
self._comment = comment
@property
def name(self):
return self._name
def to_json(self):
return {
"name": self._name,
"count": self._count,
"price": self._price,
"comment": self._comment
}