Receipt
Receipt(
date,
market,
market_address,
cashier,
checkout,
vatin,
items,
total,
given,
change,
payout,
loyalty,
tax_details,
)Represents a receipt.
Attributes: date (datetime): The date of the receipt. market (str): The market of the receipt. market_address (Optional[MarketAddress]): The market address. cashier (str): The cashier of the receipt. checkout (str): The checkout number. vatin (str): The VAT identification number. items (List[ReceiptItem]): The items in the receipt. total (float): The total amount of the receipt. given (List[Payment]): The given payments. change (Optional[float]): The change returned. payout (Optional[float]): The payout amount. loyalty (Optional[LoyaltyData]): Loyalty program data for the receipt. tax_details (TaxDetails): The tax details.
Methods
| Name | Description |
|---|---|
| to_dict | Converts the Receipt instance to a dictionary. |
to_dict
Receipt.to_dict()Converts the Receipt instance to a dictionary.
Returns: dict: A dictionary representation of the Receipt instance.