Skip to content

Commit f3654ba

Browse files
authored
Merge pull request #278 from magento-honey-badgers/product-pricing-schema-changes
Changes to Product pricing in schema
2 parents d267b9c + bb348a8 commit f3654ba

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
interface ProductInterface{
2+
...
3+
price: ProductPrices @deprecated (use price_range)
4+
price_range: PriceRange!
5+
tier_price: Float @deprecated
6+
tier_prices: [ProductTierPrices] @deprecated (use price_tiers)
7+
price_tiers: [TierPrice]
8+
...
9+
}
10+
11+
type ProductPrices { @deprecated (use PriceRange)
12+
minimalPrice: @deprecated
13+
maximalPrice: @deprecated
14+
regularPrice: @deprecated
15+
}
16+
17+
type ProductTierPrices @deprecated (replaced by TierPrice because it should be singular) {
18+
customer_group_id: String @deprecated (not relevant on storefront)
19+
qty: Float @deprecated (use TierPrice.quantity)
20+
value: Float @deprecated (use TierPrice.final_price)
21+
percentage_value: Float @deprecated (use TierPrice.discount)
22+
website_id: Float @deprecated (not relevant on storefront)
23+
}
24+
25+
type TierPrice {
26+
final_price: Money
27+
quantity: Float
28+
discount: ProductDiscount
29+
}
30+
31+
type PriceRange{
32+
minimum_price : ProductPrice!
33+
maximum_price : ProductPrice
34+
}
35+
36+
type ProductPrice{
37+
regular_price : Money!
38+
final_price : Money!
39+
discount : ProductDiscount
40+
fixed_product_taxes: [FixedProductTax]
41+
}
42+
43+
type ProductDiscount{
44+
percent_off : Float
45+
amount_off : Float
46+
}
47+
48+
type FixedProductTax {
49+
amount: Money
50+
label: String
51+
}
52+
53+
type Price @deprecated (replaced by ProductPrice){
54+
amount: Money
55+
adjustments: [PriceAdjustment]
56+
}
57+
58+
type PriceAdjustment @deprecated (replaced by FixedProductTax) {
59+
amount: Money
60+
code: PriceAdjustmentCodesEnum
61+
description: PriceAdjustmentDescriptionEnum
62+
}
63+
64+
enum PriceAdjustmentCodesEnum @deprecated (replaced by FixedProductTax) {
65+
# From WeeGraphQl
66+
WEE
67+
WEETAX
68+
}
69+
70+
enum PriceAdjustmentDescriptionEnum @deprecated (replaced by FixedProductTax) {
71+
INCLUDED
72+
EXCLUDED
73+
}
74+
75+
type Money{
76+
value : Float!
77+
currency : Currency!
78+
}

0 commit comments

Comments
 (0)