Skip to content

Commit 93a8162

Browse files
authored
Merge pull request magento#4136 from magento-engcom/graphql-develop-prs
[EngCom] Public Pull Requests - GraphQL
2 parents a562d34 + 56f79ed commit 93a8162

File tree

45 files changed

+1066
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1066
-458
lines changed

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

Lines changed: 0 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -16,179 +16,6 @@ type Query {
1616
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "The category query searches for categories that match the criteria specified in the search and filter attributes") @cache(cacheTag: "cat_c", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
1717
}
1818

19-
enum CurrencyEnum @doc(description: "The list of available currency codes") {
20-
AFN
21-
ALL
22-
AZN
23-
DZD
24-
AOA
25-
ARS
26-
AMD
27-
AWG
28-
AUD
29-
BSD
30-
BHD
31-
BDT
32-
BBD
33-
BYR
34-
BZD
35-
BMD
36-
BTN
37-
BOB
38-
BAM
39-
BWP
40-
BRL
41-
GBP
42-
BND
43-
BGN
44-
BUK
45-
BIF
46-
KHR
47-
CAD
48-
CVE
49-
CZK
50-
KYD
51-
GQE
52-
CLP
53-
CNY
54-
COP
55-
KMF
56-
CDF
57-
CRC
58-
HRK
59-
CUP
60-
DKK
61-
DJF
62-
DOP
63-
XCD
64-
EGP
65-
SVC
66-
ERN
67-
EEK
68-
ETB
69-
EUR
70-
FKP
71-
FJD
72-
GMD
73-
GEK
74-
GEL
75-
GHS
76-
GIP
77-
GTQ
78-
GNF
79-
GYD
80-
HTG
81-
HNL
82-
HKD
83-
HUF
84-
ISK
85-
INR
86-
IDR
87-
IRR
88-
IQD
89-
ILS
90-
JMD
91-
JPY
92-
JOD
93-
KZT
94-
KES
95-
KWD
96-
KGS
97-
LAK
98-
LVL
99-
LBP
100-
LSL
101-
LRD
102-
LYD
103-
LTL
104-
MOP
105-
MKD
106-
MGA
107-
MWK
108-
MYR
109-
MVR
110-
LSM
111-
MRO
112-
MUR
113-
MXN
114-
MDL
115-
MNT
116-
MAD
117-
MZN
118-
MMK
119-
NAD
120-
NPR
121-
ANG
122-
YTL
123-
NZD
124-
NIC
125-
NGN
126-
KPW
127-
NOK
128-
OMR
129-
PKR
130-
PAB
131-
PGK
132-
PYG
133-
PEN
134-
PHP
135-
PLN
136-
QAR
137-
RHD
138-
RON
139-
RUB
140-
RWF
141-
SHP
142-
STD
143-
SAR
144-
RSD
145-
SCR
146-
SLL
147-
SGD
148-
SKK
149-
SBD
150-
SOS
151-
ZAR
152-
KRW
153-
LKR
154-
SDG
155-
SRD
156-
SZL
157-
SEK
158-
CHF
159-
SYP
160-
TWD
161-
TJS
162-
TZS
163-
THB
164-
TOP
165-
TTD
166-
TND
167-
TMM
168-
USD
169-
UGX
170-
UAH
171-
AED
172-
UYU
173-
UZS
174-
VUV
175-
VEB
176-
VEF
177-
VND
178-
CHE
179-
CHW
180-
XOF
181-
WST
182-
YER
183-
ZMK
184-
ZWD
185-
TRY
186-
AZM
187-
ROL
188-
TRL
189-
XPF
190-
}
191-
19219
type Price @doc(description: "The Price object defines the price of a product as well as any tax-related adjustments.") {
19320
amount: Money @doc(description: "The price of a product plus a three-letter currency code")
19421
adjustments: [PriceAdjustment] @doc(description: "An array that provides information about tax, weee, or weee_tax adjustments")
@@ -214,11 +41,6 @@ enum PriceTypeEnum @doc(description: "This enumeration the price type.") {
21441
DYNAMIC
21542
}
21643

217-
type Money @doc(description: "A Money object defines a monetary value, including a numeric value and a currency code.") {
218-
value: Float @doc(description: "A number expressing a monetary value")
219-
currency: CurrencyEnum @doc(description: "A three-letter currency code, such as USD or EUR")
220-
}
221-
22244
type ProductPrices @doc(description: "The ProductPrices object contains the regular price of an item, as well as its minimum and maximum prices. Only composite products, which include bundle, configurable, and grouped products, can contain a minimum and maximum price.") {
22345
minimalPrice: Price @doc(description: "The lowest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the from value.")
22446
maximalPrice: Price @doc(description: "The highest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the to value.")

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

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,181 @@ enum SortEnum @doc(description: "This enumeration indicates whether to return re
3939
type ComplexTextValue {
4040
html: String! @doc(description: "HTML format")
4141
}
42+
43+
type Money @doc(description: "A Money object defines a monetary value, including a numeric value and a currency code.") {
44+
value: Float @doc(description: "A number expressing a monetary value")
45+
currency: CurrencyEnum @doc(description: "A three-letter currency code, such as USD or EUR")
46+
}
47+
48+
enum CurrencyEnum @doc(description: "The list of available currency codes") {
49+
AFN
50+
ALL
51+
AZN
52+
DZD
53+
AOA
54+
ARS
55+
AMD
56+
AWG
57+
AUD
58+
BSD
59+
BHD
60+
BDT
61+
BBD
62+
BYR
63+
BZD
64+
BMD
65+
BTN
66+
BOB
67+
BAM
68+
BWP
69+
BRL
70+
GBP
71+
BND
72+
BGN
73+
BUK
74+
BIF
75+
KHR
76+
CAD
77+
CVE
78+
CZK
79+
KYD
80+
GQE
81+
CLP
82+
CNY
83+
COP
84+
KMF
85+
CDF
86+
CRC
87+
HRK
88+
CUP
89+
DKK
90+
DJF
91+
DOP
92+
XCD
93+
EGP
94+
SVC
95+
ERN
96+
EEK
97+
ETB
98+
EUR
99+
FKP
100+
FJD
101+
GMD
102+
GEK
103+
GEL
104+
GHS
105+
GIP
106+
GTQ
107+
GNF
108+
GYD
109+
HTG
110+
HNL
111+
HKD
112+
HUF
113+
ISK
114+
INR
115+
IDR
116+
IRR
117+
IQD
118+
ILS
119+
JMD
120+
JPY
121+
JOD
122+
KZT
123+
KES
124+
KWD
125+
KGS
126+
LAK
127+
LVL
128+
LBP
129+
LSL
130+
LRD
131+
LYD
132+
LTL
133+
MOP
134+
MKD
135+
MGA
136+
MWK
137+
MYR
138+
MVR
139+
LSM
140+
MRO
141+
MUR
142+
MXN
143+
MDL
144+
MNT
145+
MAD
146+
MZN
147+
MMK
148+
NAD
149+
NPR
150+
ANG
151+
YTL
152+
NZD
153+
NIC
154+
NGN
155+
KPW
156+
NOK
157+
OMR
158+
PKR
159+
PAB
160+
PGK
161+
PYG
162+
PEN
163+
PHP
164+
PLN
165+
QAR
166+
RHD
167+
RON
168+
RUB
169+
RWF
170+
SHP
171+
STD
172+
SAR
173+
RSD
174+
SCR
175+
SLL
176+
SGD
177+
SKK
178+
SBD
179+
SOS
180+
ZAR
181+
KRW
182+
LKR
183+
SDG
184+
SRD
185+
SZL
186+
SEK
187+
CHF
188+
SYP
189+
TWD
190+
TJS
191+
TZS
192+
THB
193+
TOP
194+
TTD
195+
TND
196+
TMM
197+
USD
198+
UGX
199+
UAH
200+
AED
201+
UYU
202+
UZS
203+
VUV
204+
VEB
205+
VEF
206+
VND
207+
CHE
208+
CHW
209+
XOF
210+
WST
211+
YER
212+
ZMK
213+
ZWD
214+
TRY
215+
AZM
216+
ROL
217+
TRL
218+
XPF
219+
}

0 commit comments

Comments
 (0)