Skip to content

Saleor Core: the high performance, composable, headless commerce API.

New GraphQL schema

fowczarekfbaef3dfaade
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 11ce43d340..5a73b4ac0e 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1803,6 +1803,7 @@ type Shop {
countries: [CountryDisplay]!
currencies: [String]!
defaultCurrency: String!
+ availablePaymentGateways: [GatewaysEnum]!
defaultCountry: CountryDisplay
description: String
domain: Domain!
diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.py
index eca6012dec..fa51770d00 100644
--- a/saleor/graphql/shop/types.py
+++ b/saleor/graphql/shop/types.py
@@ -78,7 +78,8 @@ class Shop(graphene.ObjectType):
default_currency = graphene.String(
description='Default shop\'s currency.', required=True)
available_payment_gateways = graphene.List(
- PaymentGatewayEnum, description='List of available payment gateways.')
+ PaymentGatewayEnum, description='List of available payment gateways.',
+ required=True)
default_country = graphene.Field(
CountryDisplay, description='Default shop\'s country')
description = graphene.String(description='Shop\'s description.')