Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 15f0f1d

Browse files
author
vitaliyboyko
committed
graphQl-292: fixed type in schema
1 parent aa73086 commit 15f0f1d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type Cart {
103103
applied_coupon: AppliedCoupon
104104
shipping_addresses: [CartAddress]! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAddresses")
105105
billing_address: CartAddress! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\BillingAddress")
106-
available_payment_methods : AvailablePaymentMethods @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethodsResolver") @doc(description: "Available payment methods")
106+
available_payment_methods : [CheckoutPaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethodsResolver") @doc(description: "Available payment methods")
107107
}
108108

109109
type CartAddress {
@@ -147,12 +147,8 @@ type CheckoutShippingMethod {
147147
# TODO: Add more complex structure for shipping rates
148148
}
149149

150-
type AvailablePaymentMethods @doc(description: "The type contains list of available payment methods") {
151-
payment_methods : [CheckoutPaymentMethod] @doc(description: "Array of available payment methods")
152-
}
153-
154150
type CheckoutPaymentMethod @doc(description: "The type contains list of active payment methods") {
155-
code : Int @doc(description: "The payment method code")
151+
code : String @doc(description: "The payment method code")
156152
title : String @doc(description: "The payment method title.")
157153
}
158154

0 commit comments

Comments
 (0)