AttachmentInterface.php 679 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * This file is part of the Klarna KP module
  4. *
  5. * (c) Klarna Bank AB (publ)
  6. *
  7. * For the full copyright and license information, please view the NOTICE
  8. * and LICENSE files that were distributed with this source code.
  9. */
  10. namespace Klarna\Kp\Api\Data;
  11. /**
  12. * Interface AttachmentInterface
  13. *
  14. * @package Klarna\Kp\Api\Data
  15. */
  16. interface AttachmentInterface extends ApiObjectInterface
  17. {
  18. /**
  19. * The content type of the attachment.
  20. *
  21. * @param string $type
  22. */
  23. public function setContentType($type);
  24. /**
  25. * The body of the attachment in serialized JSON.
  26. *
  27. * @param string $body
  28. */
  29. public function setBody($body);
  30. }