You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 line
3.2 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. enum PriceAdjustmentCodesEnum {
  4. WEEE @deprecated(reason: "WEEE code is deprecated. Use `fixed_product_taxes.label` instead.")
  5. WEEE_TAX @deprecated(reason: "Use `fixed_product_taxes` instead. Tax is included or excluded in price. The tax is not shown separtely in Catalog.")
  6. }
  7. type ProductPrice {
  8. fixed_product_taxes: [FixedProductTax] @doc(description: "An array of the multiple Fixed Product Taxes that can be applied to a product price.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\FixedProductTax")
  9. }
  10. type CartItemPrices {
  11. fixed_product_taxes: [FixedProductTax] @doc(description: "An array of FPTs applied to the cart item.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\Quote\\FixedProductTax")
  12. }
  13. type FixedProductTax @doc(description: "A single FPT that can be applied to a product price.") {
  14. amount: Money @doc(description: "The amount of the Fixed Product Tax.")
  15. label: String @doc(description: "The display label assigned to the Fixed Product Tax.")
  16. }
  17. type StoreConfig {
  18. product_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices On Product View Page' field in the Admin. It indicates how FPT information is displayed on product pages.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
  19. category_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices In Product Lists' field in the Admin. It indicates how FPT information is displayed on category pages.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
  20. sales_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "Corresponds to the 'Display Prices In Sales Modules' field in the Admin. It indicates how FPT information is displayed on cart, checkout, and order pages.") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
  21. }
  22. enum FixedProductTaxDisplaySettings @doc(description: "Lists display settings for the Fixed Product Tax.") {
  23. 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'.")
  24. 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'.")
  25. 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.'")
  26. 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'.")
  27. FPT_DISABLED @doc(description: "The FPT feature is not enabled. You can omit `ProductPrice.fixed_product_taxes` from your query.")
  28. }