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

Commit

Permalink
graphQl-292: fixed type in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliyboyko committed Jan 29, 2019
1 parent aa73086 commit 15f0f1d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/code/Magento/QuoteGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type Cart {
applied_coupon: AppliedCoupon
shipping_addresses: [CartAddress]! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAddresses")
billing_address: CartAddress! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\BillingAddress")
available_payment_methods : AvailablePaymentMethods @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethodsResolver") @doc(description: "Available payment methods")
available_payment_methods : [CheckoutPaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethodsResolver") @doc(description: "Available payment methods")
}

type CartAddress {
Expand Down Expand Up @@ -147,12 +147,8 @@ type CheckoutShippingMethod {
# TODO: Add more complex structure for shipping rates
}

type AvailablePaymentMethods @doc(description: "The type contains list of available payment methods") {
payment_methods : [CheckoutPaymentMethod] @doc(description: "Array of available payment methods")
}

type CheckoutPaymentMethod @doc(description: "The type contains list of active payment methods") {
code : Int @doc(description: "The payment method code")
code : String @doc(description: "The payment method code")
title : String @doc(description: "The payment method title.")
}

Expand Down

0 comments on commit 15f0f1d

Please sign in to comment.