Skip to content

Commit fd114ec

Browse files
committed
GraphQL-292: [Payment methods] Get list of available payment methods for current cart
1 parent 3c8ac9b commit fd114ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type Cart {
104104
applied_coupon: AppliedCoupon
105105
shipping_addresses: [CartAddress]! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAddresses")
106106
billing_address: CartAddress! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\BillingAddress")
107-
available_payment_methods : [CheckoutPaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethods") @doc(description: "Available payment methods")
107+
available_payment_methods : [PaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethods") @doc(description: "Available payment methods")
108108
}
109109

110110
type CartAddress {
@@ -156,9 +156,9 @@ type AvailableShippingMethod {
156156
price_incl_tax: Float!
157157
}
158158

159-
type CheckoutPaymentMethod @doc(description: "The type contains list of active payment methods") {
160-
code : String @doc(description: "The payment method code")
161-
title : String @doc(description: "The payment method title.")
159+
type PaymentMethod {
160+
code: String @doc(description: "The payment method code")
161+
title: String @doc(description: "The payment method title.")
162162
}
163163

164164
enum AdressTypeEnum {

0 commit comments

Comments
 (0)