Skip to content

Commit 6820530

Browse files
authored
1 parent 95b1cb9 commit 6820530

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright © Magento, Inc. All rights reserved.
2+
# See COPYING.txt for license details.
3+
4+
type Query {
5+
currency: Currency @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Currency") @doc(description: "The currency query returns information about store currency.") @cache(cacheable: false)
6+
countries: [Country] @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Countries") @doc(description: "The countries query provides information for all countries.") @cache(cacheable: false)
7+
country (id: String): Country @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Country") @doc(description: "The countries query provides information for a single country.") @cache(cacheable: false)
8+
}
9+
10+
type Currency {
11+
base_currency_code: String
12+
base_currency_symbol: String
13+
default_display_currecy_code: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_code`.")
14+
default_display_currency_code: String
15+
default_display_currecy_symbol: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_symbol`.")
16+
default_display_currency_symbol: String
17+
available_currency_codes: [String]
18+
exchange_rates: [ExchangeRate]
19+
}
20+
21+
type ExchangeRate {
22+
currency_to: String
23+
rate: Float
24+
}
25+
26+
type Country {
27+
id: String
28+
two_letter_abbreviation: String
29+
three_letter_abbreviation: String
30+
full_name_locale: String
31+
full_name_english: String
32+
available_regions: [Region]
33+
}
34+
35+
type Region {
36+
id: Int
37+
code: String
38+
name: String
39+
}

0 commit comments

Comments
 (0)