Skip to content

Commit c257dd4

Browse files
committed
MC-21494: Graphql Weee storeCofnig Document schema changes
1 parent 709c94c commit c257dd4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

app/code/Magento/WeeeGraphQl/Model/Resolver/StoreConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ class StoreConfig implements ResolverInterface
2424
/**
2525
* @var string
2626
*/
27-
private static $weeeDisplaySettingsNone = 'NONE';
27+
private static $weeeDisplaySettingsNone = 'FPT_DISABLED';
2828

2929
/**
3030
* @var array
3131
*/
3232
private static $weeeDisplaySettings = [
33-
WeeeDisplayConfig::DISPLAY_INCL => 'INCLUDING_FPT',
34-
WeeeDisplayConfig::DISPLAY_INCL_DESCR => 'INCLUDING_FPT_AND_FPT_DESCRIPTION',
35-
WeeeDisplayConfig::DISPLAY_EXCL_DESCR_INCL => 'EXCLUDING_FPT_INCLUDING_FPT_AND_FPT_DESCRIPTION',
36-
WeeeDisplayConfig::DISPLAY_EXCL => 'EXCLUDING_FPT'
33+
WeeeDisplayConfig::DISPLAY_INCL => 'INCLUDE_FPT_WITHOUT_DETAILS',
34+
WeeeDisplayConfig::DISPLAY_INCL_DESCR => 'INCLUDE_FPT_WITH_DETAILS',
35+
WeeeDisplayConfig::DISPLAY_EXCL_DESCR_INCL => 'EXCLUDE_FPT_WITH_DETAILS',
36+
WeeeDisplayConfig::DISPLAY_EXCL => 'EXCLUDE_FPT_WITHOUT_DETAILS'
3737
];
3838

3939
/**

app/code/Magento/WeeeGraphQl/etc/schema.graphqls

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ type FixedProductTax @doc(description: "A single FPT that can be applied to a pr
1616
}
1717

1818
type StoreConfig {
19-
product_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "The product page display setting for the fixed product tax") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
20-
category_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "The category page display setting for the fixed product tax") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
21-
sales_fixed_product_tax_display_setting : FixedProductTaxDisplaySettings @doc(description: "The sales modules pages display setting for the fixed product tax") @resolver(class: "Magento\\WeeeGraphQl\\Model\\Resolver\\StoreConfig")
19+
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")
20+
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")
21+
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")
2222
}
2323

2424
enum FixedProductTaxDisplaySettings @doc(description: "This enumeration display settings for the fixed product tax") {
25-
INCLUDING_FPT @doc(description: "Fixed product tax amount(s) is included into the price and details from fixed_product_taxes should not be displayed")
26-
INCLUDING_FPT_AND_FPT_DESCRIPTION @doc(description: "Fixed product tax amount(s) is included into the price and the details from fixed_product_taxes should be displayed")
27-
EXCLUDING_FPT_INCLUDING_FPT_AND_FPT_DESCRIPTION @doc(description: "Fixed product tax amount(s) is included into the price and the details from fixed_product_taxes should be shown, also price without the amount(s) of fixed_product_taxes should be displayed")
28-
EXCLUDING_FPT @doc(description: "Fixed product tax amount(s) is excluded from the price and details from fixed_product_taxes should not be displayed")
29-
NONE @doc(description: "Fixed product tax feature is disabled and we should not show or query fixed_product_taxes field")
25+
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**")
26+
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**")
27+
EXCLUDE_FPT_WITH_DETAILS @doc(description: "The displayed price does not include the FPT amount. The values of ProductPrice.fixed_product_taxes are displayed separately. This value corresponds to **Excluding FPT, Including FPT description and final price**")
28+
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**")
29+
FPT_DISABLED @doc(description: "The FPT feature is not enabled. You can omit ProductPrice.fixed_product_taxes from your query")
3030
}

0 commit comments

Comments
 (0)