|
| 1 | +# Copyright © Magento, Inc. All rights reserved. |
| 2 | +# See COPYING.txt for license details. |
| 3 | + |
| 4 | +enum PriceAdjustmentCodesEnum { |
| 5 | + WEEE @deprecated(reason: "WEEE code is deprecated, use fixed_product_taxes.label") |
| 6 | + WEEE_TAX @deprecated(reason: "Use fixed_product_taxes. PriceAdjustmentCodesEnum is deprecated. Tax is included or excluded in price. Tax is not shown separtely in Catalog") |
| 7 | +} |
| 8 | + |
| 9 | +type ProductPrice { |
| 10 | + fixed_product_taxes: [FixedProductTax] @doc(description: "The multiple FPTs that can be applied to a product price.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\FixedProductTax") |
| 11 | +} |
| 12 | + |
| 13 | +type CartItemPrices { |
| 14 | + fixed_product_taxes: [FixedProductTax] @doc(description: "Applied FPT to the cart item.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\Quote\\FixedProductTax") |
| 15 | +} |
| 16 | + |
| 17 | +type FixedProductTax @doc(description: "A single FPT that can be applied to a product price.") { |
| 18 | + amount: Money @doc(description: "Amount of the FPT as a money object.") |
| 19 | + label: String @doc(description: "The label assigned to the FPT to be displayed on the frontend.") |
| 20 | +} |
| 21 | + |
| 22 | +type StoreConfig { |
| 23 | + product_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices On Product View Page' field. It indicates how FPT information is displayed on product pages") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig") |
| 24 | + category_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices In Product Lists' field. It indicates how FPT information is displayed on category pages") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig") |
| 25 | + sales_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices In Sales Modules' field. It indicates how FPT information is displayed on cart, checkout, and order pages") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig") |
| 26 | +} |
| 27 | + |
| 28 | +enum FixedProductTaxDisplaySettings @doc(description: "This enumeration display settings for the fixed product tax") { |
| 29 | + INCLUDE_FPT_WITHOUT_DETAILS @doc(description: "The displayed price includes the FPT amount without displaying the ProductPrice.fixed_product_taxes values. This value corresponds to 'Including FPT only'") |
| 30 | + INCLUDE_FPT_WITH_DETAILS @doc(description: "The displayed price includes the FPT amount while displaying the values of ProductPrice.fixed_product_taxes separately. This value corresponds to 'Including FPT and FPT description'") |
| 31 | + EXCLUDE_FPT_AND_INCLUDE_WITH_DETAILS @doc(description: "The displayed price does not include the FPT amount. The values of ProductPrice.fixed_product_taxes and the price including the FPT are displayed separately. This value corresponds to 'Excluding FPT, Including FPT description and final price'") |
| 32 | + EXCLUDE_FPT_WITHOUT_DETAILS @doc(description: "The displayed price does not include the FPT amount. The values from ProductPrice.fixed_product_taxes are not displayed. This value corresponds to 'Excluding FPT'") |
| 33 | + FPT_DISABLED @doc(description: "The FPT feature is not enabled. You can omit ProductPrice.fixed_product_taxes from your query") |
| 34 | +} |
0 commit comments