Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

35 lignes
2.0 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Mutation {
  4. """phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
  5. 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.")
  6. }
  7. type DeletePaymentTokenOutput @doc(description: "Indicates whether the request succeeded and returns the remaining customer payment tokens.") {
  8. result: Boolean! @doc(description: "Indicates whether the request succeeded.")
  9. customerPaymentTokens: CustomerPaymentTokens @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") @doc(description: "A container for the customer's remaining payment tokens.")
  10. }
  11. type Query {
  12. 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)
  13. }
  14. type CustomerPaymentTokens @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") @doc(description: "Contains payment tokens stored in the customer's vault.") {
  15. items: [PaymentToken]! @doc(description: "An array of payment tokens.")
  16. }
  17. type PaymentToken @doc(description: "The stored payment method available to the customer.") {
  18. public_hash: String! @doc(description: "The public hash of the token.")
  19. payment_method_code: String! @doc(description: "The payment method code associated with the token.")
  20. type: PaymentTokenTypeEnum! @doc(description: "Specifies the payment token type.")
  21. details: String @doc(description: "A description of the stored account details.")
  22. }
  23. enum PaymentTokenTypeEnum @doc(description: "The list of available payment token types.") {
  24. """phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
  25. card
  26. """phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
  27. account
  28. }