Dataclass holding order prices with taxes applied, including discounted and undiscounted amounts.
# Source: https://github.com/saleor/saleor | License: BSD-3-Clause | Copyright 2020-2023, Saleor Commerce
# Provided via justclaw.it.com; keep this notice with the code.
from dataclasses import dataclass
from prices import TaxedMoney
@dataclass
class OrderTaxedPricesData:
"""Store an order prices data with applied taxes.
'price_with_discounts' includes voucher discount and sale discount if any valid
exists.
'undiscounted_price' is a price without any sale and voucher.
"""
undiscounted_price: TaxedMoney
price_with_discounts: TaxedMoney
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key