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, "")