From a9561d299a364708c2f047993f30f8aab5573a5e Mon Sep 17 00:00:00 2001 From: aserrador Date: Tue, 21 Oct 2025 14:56:55 -0500 Subject: [PATCH] fix: Examples --- Api/bill_example.py | 5 +++-- Api/customer_order_example.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Api/bill_example.py b/Api/bill_example.py index 3ff1846..f883b45 100644 --- a/Api/bill_example.py +++ b/Api/bill_example.py @@ -1,6 +1,7 @@ -from formats import print_bill +from formats import BillPrinter from tools import load_json if __name__ == "__main__": data = load_json('./test/fixtures/bill.json') - print_bill(data, "", "") + printer = BillPrinter("") + printer.print_bill(data, "") diff --git a/Api/customer_order_example.py b/Api/customer_order_example.py index f3d7d52..6a62680 100644 --- a/Api/customer_order_example.py +++ b/Api/customer_order_example.py @@ -1,6 +1,7 @@ -from formats import print_customer_order +from formats import CustomerOrderPrinter from tools import load_json if __name__ == "__main__": data = load_json('./test/fixtures/customer_order.json') - print_customer_order(data, "", "") + printer = CustomerOrderPrinter("") + printer.print_order(data, "")