You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/CatalogGraphQl/etc/schema.graphqls
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,16 +21,16 @@ type Price @doc(description: "Price is deprecated, replaced by ProductPrice. The
21
21
adjustments: [PriceAdjustment] @deprecated(reason: "Price is deprecated, use ProductPrice.") @doc(description: "An array that provides information about tax, weee, or weee_tax adjustments.")
22
22
}
23
23
24
-
typePriceAdjustment@doc(description: "The PricedAdjustment object defines the amount of money to apply as an adjustment, the type of adjustment to apply, and whether the item is included or excluded from the adjustment.") {
24
+
typePriceAdjustment@doc(description: "PriceAdjustment is deprecated. Taxes will be included or excluded in the price. The PricedAdjustment object defines the amount of money to apply as an adjustment, the type of adjustment to apply, and whether the item is included or excluded from the adjustment.") {
25
25
amount: Money@doc(description: "The amount of the price adjustment and its currency code.")
26
-
code: PriceAdjustmentCodesEnum@doc(description: "Indicates whether the adjustment involves tax, weee, or weee_tax.")
27
-
description: PriceAdjustmentDescriptionEnum@doc(description: "Indicates whether the entity described by the code attribute is included or excluded from the adjustment.")
26
+
code: PriceAdjustmentCodesEnum@deprecated(reason: "PriceAdjustment is deprecated.") @doc(description: "Indicates whether the adjustment involves tax, weee, or weee_tax.")
27
+
description: PriceAdjustmentDescriptionEnum@deprecated(reason: "PriceAdjustment is deprecated.") @doc(description: "Indicates whether the entity described by the code attribute is included or excluded from the adjustment.")
28
28
}
29
29
30
-
enumPriceAdjustmentCodesEnum@doc(description: "Note: This enumeration contains values defined in modules other than the Catalog module.") {
30
+
enumPriceAdjustmentCodesEnum@doc(description: "PriceAdjustment.code is deprecated. This enumeration contains values defined in modules other than the Catalog module.") {
31
31
}
32
32
33
-
enumPriceAdjustmentDescriptionEnum@doc(description: "This enumeration states whether a price adjustment is included or excluded.") {
33
+
enumPriceAdjustmentDescriptionEnum@doc(description: "PriceAdjustmentDescriptionEnum is deprecated. This enumeration states whether a price adjustment is included or excluded.") {
Copy file name to clipboardExpand all lines: app/code/Magento/WeeeGraphQl/etc/schema.graphqls
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@
2
2
# See COPYING.txt for license details.
3
3
4
4
enumPriceAdjustmentCodesEnum {
5
-
WEE
6
-
WEETAX
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
+
typeProductPrice {
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
+
typeFixedProductTax@doc(description: "A single FPT that can be applied to a product price.") {
14
+
amount: Money@doc(description: "Amount of the FPT as a money object.")
15
+
label: String@doc(description: "The label assigned to the FPT to be displayed on the frontend.")
0 commit comments