Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

49 linhas
2.9 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Mutation {
  4. sendEmailToFriend (input: SendEmailToFriendInput @doc(description: "An input object that defines sender, recipients, and product.")): SendEmailToFriendOutput @resolver(class: "\\Magento\\SendFriendGraphQl\\Model\\Resolver\\SendEmailToFriend") @doc(description: "Send a message on behalf of a customer to the specified email addresses.")
  5. }
  6. input SendEmailToFriendInput @doc(description: "Defines the referenced product and the email sender and recipients.") {
  7. product_id: Int! @doc(description: "The ID of the product that the sender is referencing.")
  8. sender: SendEmailToFriendSenderInput! @doc(description: "Information about the customer and the content of the message.")
  9. recipients: [SendEmailToFriendRecipientInput!]! @doc(description: "An array containing information about each recipient.")
  10. }
  11. input SendEmailToFriendSenderInput @doc(description: "Contains details about the sender.") {
  12. name: String! @doc(description: "The name of the sender.")
  13. email: String! @doc(description: "The email address of the sender.")
  14. message: String! @doc(description: "The text of the message to be sent.")
  15. }
  16. input SendEmailToFriendRecipientInput @doc(description: "Contains details about a recipient.") {
  17. name: String! @doc(description: "The name of the recipient.")
  18. email: String! @doc(description: "The email address of the recipient.")
  19. }
  20. type SendEmailToFriendOutput @doc(description: "Contains information about the sender and recipients.") {
  21. sender: SendEmailToFriendSender @doc(description: "Information about the customer and the content of the message.")
  22. recipients: [SendEmailToFriendRecipient] @doc(description: "An array containing information about each recipient.")
  23. }
  24. type SendEmailToFriendSender @doc(description: "An output object that contains information about the sender.") {
  25. name: String! @doc(description: "The name of the sender.")
  26. email: String! @doc(description: "The email address of the sender.")
  27. message: String! @doc(description: "The text of the message to be sent.")
  28. }
  29. type SendEmailToFriendRecipient @doc(description: "An output object that contains information about the recipient.") {
  30. name: String! @doc(description: "The name of the recipient.")
  31. email: String! @doc(description: "The email address of the recipient.")
  32. }
  33. type StoreConfig {
  34. send_friend: SendFriendConfiguration @resolver(class: "\\Magento\\SendFriendGraphQl\\Model\\Resolver\\SendFriendConfiguration") @doc(description: "Email to a Friend configuration.")
  35. }
  36. type SendFriendConfiguration @doc(description: "Contains details about the configuration of the Email to a Friend feature.") {
  37. enabled_for_customers: Boolean! @doc(description: "Indicates whether the Email to a Friend feature is enabled.")
  38. enabled_for_guests: Boolean! @doc(description: "Indicates whether the Email to a Friend feature is enabled for guests.")
  39. }