You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
2.8 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Query {
  4. currency: Currency @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Currency") @doc(description: "Return information about the store's currency.") @cache(cacheable: false)
  5. countries: [Country] @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Countries") @doc(description: "The countries query provides information for all countries.") @cache(cacheable: false)
  6. 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)
  7. }
  8. type Currency {
  9. base_currency_code: String @doc(description: "The base currency set for the store, such as USD.")
  10. base_currency_symbol: String @doc(description: "The symbol for the specified base currency, such as $.")
  11. default_display_currecy_code: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_code`.")
  12. default_display_currency_code: String @doc(description: "The currency that is displayed by default, such as USD.")
  13. default_display_currecy_symbol: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_code`.")
  14. default_display_currency_symbol: String @doc(description: "The currency symbol that is displayed by default, such as $.")
  15. available_currency_codes: [String] @doc(description: "An array of three-letter currency codes accepted by the store, such as USD and EUR.")
  16. exchange_rates: [ExchangeRate] @doc(description: "An array of exchange rates for currencies defined in the store.")
  17. }
  18. type ExchangeRate @doc(description: "Lists the exchange rate.") {
  19. currency_to: String @doc(description: "Specifies the store’s default currency to exchange to.")
  20. rate: Float @doc(description: "The exchange rate for the store’s default currency.")
  21. }
  22. type Country {
  23. id: String @doc(description: "The unique ID for a `Country` object.")
  24. two_letter_abbreviation: String @doc(description: "The two-letter abbreviation of the country, such as US.")
  25. three_letter_abbreviation: String @doc(description: "The three-letter abbreviation of the country, such as USA.")
  26. full_name_locale: String @doc(description: "The name of the country in the current locale.")
  27. full_name_english: String @doc(description: "The name of the country in English.")
  28. available_regions: [Region] @doc(description: "An array of regions within a particular country.")
  29. }
  30. type Region {
  31. id: Int @doc(description: "The unique ID for a `Region` object.")
  32. code: String @doc(description: "The two-letter code for the region, such as TX for Texas.")
  33. name: String @doc(description: "The name of the region, such as Texas.")
  34. }