| Current Path : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-vault-graph-ql/etc/ |
| Current File : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-vault-graph-ql/etc/schema.graphqls |
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.
type Mutation {
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
deletePaymentToken(public_hash: String! @doc(description: "The reusable payment token securely stored in the vault.")): DeletePaymentTokenOutput @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\DeletePaymentToken") @doc(description:"Delete a customer's payment token.")
}
type DeletePaymentTokenOutput @doc(description: "Indicates whether the request succeeded and returns the remaining customer payment tokens.") {
result: Boolean! @doc(description: "Indicates whether the request succeeded.")
customerPaymentTokens: CustomerPaymentTokens @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") @doc(description: "A container for the customer's remaining payment tokens.")
}
type Query {
customerPaymentTokens: CustomerPaymentTokens @doc(description: "Return a list of customer payment tokens stored in the vault.") @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") @cache(cacheable: false)
}
type CustomerPaymentTokens @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") @doc(description: "Contains payment tokens stored in the customer's vault.") {
items: [PaymentToken]! @doc(description: "An array of payment tokens.")
}
type PaymentToken @doc(description: "The stored payment method available to the customer.") {
public_hash: String! @doc(description: "The public hash of the token.")
payment_method_code: String! @doc(description: "The payment method code associated with the token.")
type: PaymentTokenTypeEnum! @doc(description: "Specifies the payment token type.")
details: String @doc(description: "A description of the stored account details.")
}
enum PaymentTokenTypeEnum @doc(description: "The list of available payment token types.") {
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
card
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
account
}