Skip to content

Commit

Permalink
Pedido
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaze committed Sep 11, 2024
1 parent 850ca79 commit fd55fe5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions carrinho_compras/pedido.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Pedido:
def __init__(self, data: str, valor_total: float) -> None:
self._data = data
self._valor_total = valor_total
self._itens_pedidos = "??????"

@property
def data(self) -> str:
return self._data

@data.setter
def data(self, nova_data) -> str:
self._data = nova_data

def __str__(self) -> str:
return f"""
{self._data = }
{self._valor_total = }
"""

0 comments on commit fd55fe5

Please sign in to comment.