QualifyRequest.php 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Request;
  6. use Temando\Shipping\Rest\Request\Type\QualificationRequestType;
  7. /**
  8. * QualifyRequest
  9. *
  10. * @package Temando\Shipping\Rest
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. class QualifyRequest
  16. {
  17. /**
  18. * @var QualificationRequestType
  19. */
  20. private $requestType;
  21. /**
  22. * QualifyRequest constructor.
  23. *
  24. * @param QualificationRequestType $requestType
  25. */
  26. public function __construct(QualificationRequestType $requestType)
  27. {
  28. $this->requestType = $requestType;
  29. }
  30. /**
  31. * @return string
  32. */
  33. public function getRequestBody()
  34. {
  35. return json_encode($this->requestType);
  36. }
  37. }